diff --git a/.backportrc.json b/.backportrc.json index d1d92740a7a05..1183ed5e2bb4d 100644 --- a/.backportrc.json +++ b/.backportrc.json @@ -1,5 +1,5 @@ { "upstream": "elastic/kibana", - "branches": [{ "name": "6.x", "checked": true }, "6.4", "6.3", "6.2", "6.1", "6.0", "5.6"], + "branches": [{ "name": "6.x", "checked": true }, "6.5", "6.4", "6.3", "6.2", "6.1", "6.0", "5.6"], "labels": ["backport"] } diff --git a/.ci/jobs.yml b/.ci/jobs.yml new file mode 100644 index 0000000000000..1740e1db33f2d --- /dev/null +++ b/.ci/jobs.yml @@ -0,0 +1,7 @@ +JOB: + - selenium + - intake + - x-pack + +# `~` is yaml for `null` +exclude: ~ diff --git a/.ci/run.sh b/.ci/run.sh new file mode 100755 index 0000000000000..32c138bd2f450 --- /dev/null +++ b/.ci/run.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +set -e + +# move to Kibana root +cd "$(dirname "$0")/.." + +case "$JOB" in +"selenium") + ./test/scripts/jenkins_selenium.sh + ;; +"intake") + ./test/scripts/jenkins_unit.sh + ;; +"x-pack") + ./test/scripts/jenkins_xpack.sh + ;; +*) + echo "JOB '$JOB' is not implemented." + exit 1 + ;; +esac diff --git a/.eslintignore b/.eslintignore index a9c0861b093d0..f697ad004caab 100644 --- a/.eslintignore +++ b/.eslintignore @@ -29,6 +29,6 @@ bower_components /x-pack/plugins/**/__tests__/fixtures/** /x-pack/plugins/canvas/common/lib/grammar.js /x-pack/plugins/canvas/canvas_plugin -/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts/* +/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts **/*.js.snap !/.eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js index ad86cde9dc52c..131b3851e726b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -32,6 +32,7 @@ module.exports = { files: [ '.eslintrc.js', 'packages/eslint-plugin-kibana-custom/**/*', + 'packages/kbn-config-schema/**/*', 'packages/kbn-pm/**/*', 'packages/kbn-es/**/*', 'packages/kbn-datemath/**/*', @@ -314,6 +315,19 @@ module.exports = { }, }, + /** + * disable jsx-a11y for kbn-ui-framework + */ + { + files: ['packages/kbn-ui-framework/**'], + rules: { + 'jsx-a11y/click-events-have-key-events': 'off', + 'jsx-a11y/anchor-has-content': 'off', + 'jsx-a11y/tabindex-no-positive': 'off', + 'jsx-a11y/aria-role': 'off', + }, + }, + /** * Monitoring overrides */ @@ -392,20 +406,10 @@ module.exports = { ], }, }, - { - files: ['x-pack/plugins/canvas/*', 'x-pack/plugins/canvas/**/*'], - rules: { - 'import/no-extraneous-dependencies': [ - 'error', - { - packageDir: './x-pack/', - }, - ], - }, - }, { files: [ 'x-pack/plugins/canvas/gulpfile.js', + 'x-pack/plugins/canvas/scripts/*.js', 'x-pack/plugins/canvas/tasks/*.js', 'x-pack/plugins/canvas/tasks/**/*.js', 'x-pack/plugins/canvas/__tests__/**/*', @@ -417,7 +421,6 @@ module.exports = { { devDependencies: true, peerDependencies: true, - packageDir: './x-pack/', }, ], }, @@ -426,12 +429,6 @@ module.exports = { files: ['x-pack/plugins/canvas/canvas_plugin_src/**/*'], globals: { canvas: true, $: true }, rules: { - 'import/no-extraneous-dependencies': [ - 'error', - { - packageDir: './x-pack/', - }, - ], 'import/no-unresolved': [ 'error', { @@ -440,5 +437,17 @@ module.exports = { ], }, }, + { + files: ['x-pack/plugins/canvas/public/**/*'], + env: { + browser: true, + }, + }, + { + files: ['x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts/**/*'], + env: { + jquery: true, + }, + }, ], }; diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 005849db0d8dc..d389c03e9beb0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,4 +1,6 @@ # GitHub CODEOWNERS definition # See: https://help.github.com/articles/about-codeowners/ +/x-pack/plugins/apm/ @elastic/apm-ui /x-pack/plugins/security/ @elastic/kibana-security +**/*.scss @elastic/kibana-design diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f422e8138da6f..5a80a11c5cbea 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,13 +1,19 @@ - \ No newline at end of file +## Summary + +Summarize your PR. If it involves visual changes include a screenshot or gif. + +### Checklist + +Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR. + +- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) +- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md) +- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials +- [ ] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios +- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist) + +### For maintainers + +- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process) +- [ ] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process) + diff --git a/.i18nrc.json b/.i18nrc.json index 30301d72f36ec..68fa80b55fe6a 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -1,11 +1,27 @@ { "paths": { "common.ui": "src/ui", - "inputControl":"src/core_plugins/input_control_vis", + "console": "src/core_plugins/console", + "inputControl": "src/core_plugins/input_control_vis", "kbn": "src/core_plugins/kibana", + "kbnVislibVisTypes": "src/core_plugins/kbn_vislib_vis_types", "markdownVis": "src/core_plugins/markdown_vis", + "metricVis": "src/core_plugins/metric_vis", + "vega": "src/core_plugins/vega", + "tableVis": "src/core_plugins/table_vis", + "regionMap": "src/core_plugins/region_map", "statusPage": "src/core_plugins/status_page", - "xpack.idxMgmt": "x-pack/plugins/index_management" + "tileMap": "src/core_plugins/tile_map", + "timelion": "src/core_plugins/timelion", + "tagCloud": "src/core_plugins/tagcloud", + "xpack.grokDebugger": "x-pack/plugins/grokdebugger", + "xpack.idxMgmt": "x-pack/plugins/index_management", + "xpack.licenseMgmt": "x-pack/plugins/license_management", + "xpack.monitoring": "x-pack/plugins/monitoring", + "xpack.rollupJobs": "x-pack/plugins/rollup", + "xpack.searchProfiler": "x-pack/plugins/searchprofiler", + "xpack.security": "x-pack/plugins/security", + "xpack.watcher": "x-pack/plugins/watcher" }, "exclude": [ "src/ui/ui_render/bootstrap/app_bootstrap.js", diff --git a/.yarnrc b/.yarnrc new file mode 100644 index 0000000000000..b551f7d7ba438 --- /dev/null +++ b/.yarnrc @@ -0,0 +1 @@ +--ignore-workspace-root-check true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f79fd011c4bb..9bb072317d053 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,6 +22,7 @@ A high level overview of our contributing guidelines. - [Setting Up SSL](#setting-up-ssl) - [Linting](#linting) - [Testing and Building](#testing-and-building) + - [Debugging server code](#debugging-server-code) - [Debugging Unit Tests](#debugging-unit-tests) - [Unit Testing Plugins](#unit-testing-plugins) - [Cross-browser compatibility](#cross-browser-compatibility) @@ -30,6 +31,7 @@ A high level overview of our contributing guidelines. - [Browser Automation Notes](#browser-automation-notes) - [Building OS packages](#building-os-packages) - [Writing documentation](#writing-documentation) + - [Release Notes Process](#release-notes-process) - [Signing the contributor license agreement](#signing-the-contributor-license-agreement) - [Submitting a Pull Request](#submitting-a-pull-request) - [Code Reviewing](#code-reviewing) @@ -189,9 +191,10 @@ node scripts/makelogs > Make sure to execute `node scripts/makelogs` *after* elasticsearch is up and running! Start the development server. - ```bash - yarn start - ``` + +```bash +yarn start +``` > On Windows, you'll need you use Git Bash, Cygwin, or a similar shell that exposes the `sh` command. And to successfully build you'll need Cygwin optional packages zip, tar, and shasum. @@ -279,7 +282,7 @@ macOS users on a machine with a discrete graphics card may see significant speed - Restart iTerm ### Debugging Server Code -`yarn debug` will start the server with Node's inspect flag. Kibana's development mode will start three processes. Chrome's developer tools can be configured to connect to all three under the connection tab. +`yarn debug` will start the server with Node's inspect flag. Kibana's development mode will start three processes on ports `9229`, `9230`, and `9231`. Chrome's developer tools need to be configured to connect to all three connections. Add `localhost:` for each Kibana process in Chrome's developer tools connection tab. ### Unit testing frameworks Kibana is migrating unit testing from Mocha to Jest. Legacy unit tests still exist in Mocha but all new unit tests should be written in Jest. @@ -405,6 +408,31 @@ README for getting the docs tooling set up. node scripts/docs.js --open ``` +### Release Notes Process + +Part of this process only applies to maintainers, since it requires access to Github labels. + +Kibana publishes major, minor and patch releases periodically through the year. During this process we run a script against this repo to collect the applicable PRs against that release and generate [Release Notes](https://www.elastic.co/guide/en/kibana/current/release-notes.html). To include your change in the Release Notes: + +1. In the title, summarize what the PR accomplishes in language that is meaningful to the user. In general, use present tense (for example, Adds, Fixes) in sentence case. +1. Label the PR with the targeted version (ex: 6.5). +1. Label the PR with the appropriate github labels: + * For a new feature or functionality, use `release_note:enhancement`. + * For an external-facing fix, use `release_note:fix`. Exception: docs, build, and test fixes do not go in the Release Notes. + * For a deprecated feature, use `release_note:deprecation`. + * For a breaking change, use `release-breaking:note`. + +We also produce a blog post that details more important breaking API changes every minor and major release. If the PR includes a breaking API change, apply the label `release_note:dev_docs`. Additionally add a brief summary of the break at the bottom of the PR using the format below: + + +``` +# Dev Docs + +## Name the feature with the break (ex: Visualize Loader) + +Summary of the change. Anything Under `#Dev Docs` will be used in the blog. +``` + ## Signing the contributor license agreement Please make sure you have signed the [Contributor License Agreement](http://www.elastic.co/contributor-agreement/). We are not asking you to assign copyright to us, but to give us the right to distribute your code without restriction. We ask this of all contributors in order to assure our users of the origin and continuing existence of the code. You only need to sign the CLA once. diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md index 90860721357a1..ac84949aba890 100644 --- a/STYLEGUIDE.md +++ b/STYLEGUIDE.md @@ -22,3 +22,7 @@ All filenames should use `snake_case`. *Wrong:* - `src/kibana/IndexPatterns/IndexPattern.js` + +## TypeScript vs JavaScript + +Whenever possible, write code in TypeScript instead of javascript, especially if it's new code. Check out [TYPESCRIPT.md](TYPESCRIPT.md) for help with this process. \ No newline at end of file diff --git a/TYPESCRIPT.md b/TYPESCRIPT.md new file mode 100644 index 0000000000000..ebcac32d59409 --- /dev/null +++ b/TYPESCRIPT.md @@ -0,0 +1,243 @@ +## TypeScriptifying Kibana Tips + +### Converting existing code + +To convert existing code over to TypeScript: +1. rename the file from `.js` to either `.ts` (if there is no html or jsx in the file) or `.tsx` (if there is). +2. Ensure tslint is running and installed in the IDE of your choice. There will usually be some linter errors after the file rename. +3. Auto-fix what you can. This will save you a lot of time! VSCode can be set to auto fix tslint errors when files are saved. + +### How to fix common TypeScript errors + +The first thing that will probably happen when you convert a `.js` file in our system to `.ts` is that some imports will be lacking types. + +#### EUI component is missing types + +1. Check https://github.com/elastic/eui/issues/256 to see if they know it’s missing, if it’s not on there, add it. +2. Temporarily get around the issue by using a declared module and exporting the missing types with the most basic types available. Bonus points if you write a PR yourself to the EUI repo to add the types, but having them available back in Kibana will take some time, as a new EUI release will need to be generated, then that new release pointed to in Kibana. Best, to make forward progress, to do a temporary workaround. + +```ts +declare module '@elastic/eui' { + export const EuiPopoverTitle: React.SFC; +} + +import { EuiPopoverTitle } from '@elastic/eui'; +``` + +Some background on the differences between module declaration and augmentation: + +In TypeScript module declarations can not be merged, which means each module can only be declared once. But it is possible to augment previously declared modules. The documentation about the distinction between module declaration and augmentation is sparse. The observed rules for `declare module '...' {}` in a `.d.ts` file seem to be: + +* it is treated as a module declaration when the file itself is not a module +* it is treated as a module augmentation when the file itself is module + +A `.d.ts` file is treated as a module if it contains any top-level `import` or `export` statements. That means that in order to write a module declaration the `import`s must be contained within the `declare` block and none must be located on the topmost level. Conversely, to write a module augmentation there must be at least one top-level `import` or `export` and the `declare` block must not contain any `import` statements. + +Since `@elastic/eui` already ships with a module declaration, any local additions must be performed using module augmentation, e.g. + +```typescript +// file `my_plugin/types/eui.d.ts` +import { CommonProps } from '@elastic/eui'; +import { SFC } from 'react'; + +declare module '@elastic/eui' { + export type EuiNewComponentProps = CommonProps & { + additionalProp: string; + }; + export const EuiNewComponent: SFC; +} +``` + +#### Internal dependency is missing types. + +1. Open up the file and see how easy it would be to convert to TypeScript. +2. If it's very straightforward, go for it. +3. If it's not and you wish to stay focused on your own PR, get around the error by adding a type definition file in the same folder as the dependency, with the same name. +4. Minimally you will need to type what you are using in your PR. No need to go crazy to fully type the thing or you might be there for awhile depending on what's available. + +For example: + +metadata.js: +```js +export let metadata = null; + +export function __newPlatformInit__(legacyMetadata) { + ... +} +``` + +documentation_links.js: +```js +import { metadata } from './metadata'; + +export const DOC_LINK_VERSION = metadata.branch; +``` + +To TypeScript `documentation_links.js` you'll need to add a type definition for `metadata.js` + +metadata.d.ts +``` +declare interface Metadata { + public branch: string; +} + +declare const metadata: Metadata; + +export { metadata }; +``` + +#### External dependency is missing types + +1. See if types exist for this module and can be installed, by doing something like: + +`yarn add -D @types/markdown-it@8.4.1` + +Use the version number that we have installed in package.json. This may not always work, and you might get something like: + +`Please choose a version of "@types/markdown-it" from this list:` + +If that happens, just pick the closest one. + +If yarn doesn't find the module it may not have types. For example, our `rison_node` package doesn't have types. In this case you have a few options: + +1. Contribute types into the DefinitelyTyped repo itself, or +2. Create a top level `types` folder and point to that in the tsconfig. For example, Infra team already handled this for `rison_node` and added: `x-pack/plugins/infra/types/rison_node.d.ts`. Other code uses it too so we will need to pull it up. Or, +3. Add a `// @ts-ignore` line above the import. This should be used minimally, the above options are better. However, sometimes you have to resort to this method. For example, the `expect.js` module will require this line. We don't have type definitions installed for this library. Installing these types would conflict with the jest typedefs for expect, and since they aren't API compatible with each other, it's not possible to make both test frameworks happy. Since we are moving from mocha => jest, we don't see this is a big issue. + +### TypeScripting react files + +React has it's own concept of runtime types via `proptypes`. TypeScript gives you compile time types so I prefer those. + +Before: +```jsx + +import PropTypes from 'prop-types'; + + export class Button extends Component { + state = { + buttonWasClicked = false + }; + + render() { + return + } + } + + Button.proptypes = { + text: PropTypes.string, + } +``` + +After: +```tsx + +interface Props { + text: string; +} + +interface State { + buttonWasClicked: boolean; +} + + export class Button extends Component { + state = { + buttonWasClicked = false + }; + + render() { + return + } + } +``` + +Note that the name of `Props` and `State` doesn't matter, the order does. If you are exporting those interfaces to be used elsewhere, you probably should give them more fleshed out names, such as `ButtonProps` and `ButtonState`. + +### Typing functions + +In react proptypes, we often will use `PropTypes.func`. In TypeScript, a function is `() => void`, or you can more fully flesh it out, for example: + +- `(inputParamName: string) => string` +- `(newLanguage: string) => void` +- `() => Promise` + +### Typing destructured object parameters + +Especially since we often use the spread operator, this syntax is a little different and probably worth calling out. + +Before: +```js +function ({ title, description }) { + ... +} +``` + +After: +```ts +function ({ title, description }: {title: string, description: string}) { + ... +} + +or, use an interface + +interface Options { + title: string; + description: string; +} + +function ({ title, description }: Options) { + ... +} +``` + +## Use `any` as little as possible + +Using any is sometimes valid, but should rarely be used, even if to make quicker progress. Even `Unknown` is better than using `any` if you aren't sure of an input parameter. + +If you use a variable that isn't initially defined, you should give it a type or it will be `any` by default (and strangely this isn't a warning, even though I think it should be) + +Before - `color` will be type `any`: +```js +let color; + +if (danger) { + color = 'red'; +} else { + color = 'green'; +} +``` + +After - `color` will be type `string`: +```ts +let color: string; + +if (danger) { + color = 'red'; +} else { + color = 'green'; +} +``` + +Another quirk, default `Map\WeakMap\Set` constructors use any-based type signature like `Map\WeakMap\Set`. That means that TS won't complain about the piece of code below: + +```ts +const anyMap = new Map(); +anyMap.set('1', 2); +anyMap.set('2', '3'); +anyMap.set(3, '4'); + +const anySet = new Set(); +anySet.add(1); +anySet.add('2'); +``` + +So we should explicitly define types for default constructors whenever possible: +```ts +const typedMap = new Map(); +typedMap.set('1', 2); +typedMap.set('2', '3'); // TS error +typedMap.set(3, '4'); // TS error + +const typedSet = new Set(); +typedSet.add(1); +typedSet.add('2'); // TS error +``` diff --git a/docs/api.asciidoc b/docs/api.asciidoc index afe7722a0cec5..a650d016ce951 100644 --- a/docs/api.asciidoc +++ b/docs/api.asciidoc @@ -26,7 +26,7 @@ entirely. [float] == APIs - +* <> * <> * <> * <> @@ -34,6 +34,7 @@ entirely. * <> -- +include::api/spaces-management.asciidoc[] include::api/role-management.asciidoc[] include::api/saved-objects.asciidoc[] include::api/dashboard-import.asciidoc[] diff --git a/docs/api/dashboard-import/export.asciidoc b/docs/api/dashboard-import/export.asciidoc index ddafeb35f7cc0..861fa7626de91 100644 --- a/docs/api/dashboard-import/export.asciidoc +++ b/docs/api/dashboard-import/export.asciidoc @@ -13,7 +13,7 @@ index patterns. ==== Query Parameters -`dashboard` (optional):: +`dashboard` (required):: (array|string) The id(s) of the dashboard(s) to export ==== Response body diff --git a/docs/api/role-management/put.asciidoc b/docs/api/role-management/put.asciidoc index a2b2ed7368431..d6974c3b9e08c 100644 --- a/docs/api/role-management/put.asciidoc +++ b/docs/api/role-management/put.asciidoc @@ -30,7 +30,7 @@ that begin with `_` are reserved for system usage. `elasticsearch`:: (object) Optional {es} cluster and index privileges, valid keys are `cluster`, `indices` and `run_as`. For more information, see {xpack-ref}/defining-roles.html[Defining Roles]. -`kibana`:: (list) A list of objects that specify the <>. +`kibana`:: (object) An object that specifies the <>. Valid keys are `global` and `space`. Privileges defined in the `global` key will apply to all spaces within Kibana, and will take precedent over any privileges defined in the `space` key. For example, specifying `global: ["all"]` will grant full access to all spaces within Kibana, even if the role indicates that a specific space should only have `read` privileges. ===== Example @@ -50,11 +50,11 @@ PUT /api/security/role/my_kibana_role "grant" : [ "title", "body" ] }, "query" : "{\"match\": {\"title\": \"foo\"}}" - } ], + } ] }, - "kibana": [ { - "privileges": [ "all" ] - } ], + "kibana": { + "global": ["all"] + } } -------------------------------------------------- // KIBANA @@ -62,3 +62,37 @@ PUT /api/security/role/my_kibana_role ==== Response A successful call returns a response code of `204` and no response body. + + +==== Granting access to specific spaces +To grant access to individual spaces within {kib}, specify the space identifier within the `kibana` object. + +Note: granting access + +[source,js] +-------------------------------------------------- +PUT /api/security/role/my_kibana_role +{ + "metadata" : { + "version" : 1 + }, + "elasticsearch": { + "cluster" : [ "all" ], + "indices" : [ { + "names" : [ "index1", "index2" ], + "privileges" : [ "all" ], + "field_security" : { + "grant" : [ "title", "body" ] + }, + "query" : "{\"match\": {\"title\": \"foo\"}}" + } ] + }, + "kibana": { + "global": [], + "space": { + "marketing": ["all"], + "engineering": ["read"] + } + } +} +-------------------------------------------------- diff --git a/docs/api/spaces-management.asciidoc b/docs/api/spaces-management.asciidoc new file mode 100644 index 0000000000000..f5f9a9d81c2fc --- /dev/null +++ b/docs/api/spaces-management.asciidoc @@ -0,0 +1,17 @@ +[role="xpack"] +[[spaces-api]] +== Kibana Spaces API + +experimental[This API is *experimental* and may be changed or removed completely in a future release. The underlying Spaces concepts are stable, but the APIs for managing Spaces are currently experimental.] + +The spaces API allows people to manage their spaces within {kib}. + +* <> +* <> +* <> +* <> + +include::spaces-management/post.asciidoc[] +include::spaces-management/put.asciidoc[] +include::spaces-management/get.asciidoc[] +include::spaces-management/delete.asciidoc[] diff --git a/docs/api/spaces-management/delete.asciidoc b/docs/api/spaces-management/delete.asciidoc new file mode 100644 index 0000000000000..c5ae025dd9e2e --- /dev/null +++ b/docs/api/spaces-management/delete.asciidoc @@ -0,0 +1,25 @@ +[[spaces-api-delete]] +=== Delete space + +experimental[This API is *experimental* and may be changed or removed completely in a future release. The underlying Spaces concepts are stable, but the APIs for managing Spaces are currently experimental.] + +[WARNING] +================================================== +Deleting a space will automatically delete all saved objects that belong to that space. This operation cannot be undone! +================================================== + +==== Request + +To delete a space, submit a DELETE request to the `/api/spaces/space/` +endpoint: + +[source,js] +-------------------------------------------------- +DELETE /api/spaces/space/marketing +-------------------------------------------------- +// KIBANA + +==== Response + +If the space is successfully deleted, the response code is `204`; otherwise, the response +code is 404. diff --git a/docs/api/spaces-management/get.asciidoc b/docs/api/spaces-management/get.asciidoc new file mode 100644 index 0000000000000..c79a883a80e4b --- /dev/null +++ b/docs/api/spaces-management/get.asciidoc @@ -0,0 +1,77 @@ +[[spaces-api-get]] +=== Get Space + +experimental[This API is *experimental* and may be changed or removed completely in a future release. The underlying Spaces concepts are stable, but the APIs for managing Spaces are currently experimental.] + +Retrieves all {kib} spaces, or a specific space. + +==== Get all {kib} spaces + +===== Request + +To retrieve all spaces, issue a GET request to the +/api/spaces/space endpoint. + +[source,js] +-------------------------------------------------- +GET /api/spaces/space +-------------------------------------------------- +// KIBANA + +===== Response + +A successful call returns a response code of `200` and a response body containing a JSON +representation of the spaces. + +[source,js] +-------------------------------------------------- +[ + { + "id": "default", + "name": "Default", + "description" : "This is the Default Space", + "_reserved": true + }, + { + "id": "marketing", + "name": "Marketing", + "description" : "This is the Marketing Space", + "color": "#aabbcc", + "initials": "MK" + }, + { + "id": "sales", + "name": "Sales", + "initials": "MK" + }, +] +-------------------------------------------------- + +==== Get a specific space + +===== Request + +To retrieve a specific space, issue a GET request to +the `/api/spaces/space/` endpoint: + +[source,js] +-------------------------------------------------- +GET /api/spaces/space/marketing +-------------------------------------------------- +// KIBANA + +===== Response + +A successful call returns a response code of `200` and a response body containing a JSON +representation of the space. + +[source,js] +-------------------------------------------------- +{ + "id": "marketing", + "name": "Marketing", + "description" : "This is the Marketing Space", + "color": "#aabbcc", + "initials": "MK" +} +-------------------------------------------------- diff --git a/docs/api/spaces-management/post.asciidoc b/docs/api/spaces-management/post.asciidoc new file mode 100644 index 0000000000000..38ff647051335 --- /dev/null +++ b/docs/api/spaces-management/post.asciidoc @@ -0,0 +1,50 @@ +[[spaces-api-post]] +=== Create Space + +experimental[This API is *experimental* and may be changed or removed completely in a future release. The underlying Spaces concepts are stable, but the APIs for managing Spaces are currently experimental.] + +Creates a new {kib} space. To update an existing space, use the PUT command. + +==== Request + +To create a space, issue a POST request to the +`/api/spaces/space` endpoint. + +[source,js] +-------------------------------------------------- +POST /api/spaces/space +-------------------------------------------------- + +==== Request Body + +The following parameters can be specified in the body of a POST request to create a space: + +`id`:: (string) Required identifier for the space. This identifier becomes part of Kibana's URL when inside the space. This cannot be changed by the update operation. + +`name`:: (string) Required display name for the space. + +`description`:: (string) Optional description for the space. + +`initials`:: (string) Optionally specify the initials shown in the Space Avatar for this space. By default, the initials will be automatically generated from the space name. +If specified, initials should be either 1 or 2 characters. + +`color`:: (string) Optioanlly specify the hex color code used in the Space Avatar for this space. By default, the color will be automatically generated from the space name. + +===== Example + +[source,js] +-------------------------------------------------- +POST /api/spaces/space +{ + "id": "marketing", + "name": "Marketing", + "description" : "This is the Marketing Space", + "color": "#aabbcc", + "initials": "MK" +} +-------------------------------------------------- +// KIBANA + +==== Response + +A successful call returns a response code of `200` with the created Space. diff --git a/docs/api/spaces-management/put.asciidoc b/docs/api/spaces-management/put.asciidoc new file mode 100644 index 0000000000000..529742bf2ce66 --- /dev/null +++ b/docs/api/spaces-management/put.asciidoc @@ -0,0 +1,50 @@ +[[spaces-api-put]] +=== Update Space + +experimental[This API is *experimental* and may be changed or removed completely in a future release. The underlying Spaces concepts are stable, but the APIs for managing Spaces are currently experimental.] + +Updates an existing {kib} space. To create a new space, use the POST command. + +==== Request + +To update a space, issue a PUT request to the +`/api/spaces/space/` endpoint. + +[source,js] +-------------------------------------------------- +PUT /api/spaces/space/ +-------------------------------------------------- + +==== Request Body + +The following parameters can be specified in the body of a PUT request to update a space: + +`id`:: (string) Required identifier for the space. This identifier becomes part of Kibana's URL when inside the space. This cannot be changed by the update operation. + +`name`:: (string) Required display name for the space. + +`description`:: (string) Optional description for the space. + +`initials`:: (string) Optionally specify the initials shown in the Space Avatar for this space. By default, the initials will be automatically generated from the space name. +If specified, initials should be either 1 or 2 characters. + +`color`:: (string) Optioanlly specify the hex color code used in the Space Avatar for this space. By default, the color will be automatically generated from the space name. + +===== Example + +[source,js] +-------------------------------------------------- +PUT /api/spaces/space/marketing +{ + "id": "marketing", + "name": "Marketing", + "description" : "This is the Marketing Space", + "color": "#aabbcc", + "initials": "MK" +} +-------------------------------------------------- +// KIBANA + +==== Response + +A successful call returns a response code of `200` with the updated Space. diff --git a/docs/apm/using-the-apm-ui.asciidoc b/docs/apm/using-the-apm-ui.asciidoc index 0fc8008d4cf23..012f778c3a311 100644 --- a/docs/apm/using-the-apm-ui.asciidoc +++ b/docs/apm/using-the-apm-ui.asciidoc @@ -65,12 +65,7 @@ Watches are managed separately in the dedicated Watcher UI available in Advanced image::apm/images/apm-errors-watcher-assistant.png[Example view of the Watcher assistant for errors in APM UI in Kibana] [[machine-learning-integration]] -=== Machine Learning integration (beta) - -[NOTE] -============ -Please note this feature is in beta. We kindly ask that you https://discuss.elastic.co/c/apm[provide feedback] if you experience any issues. -============ +=== Machine Learning integration The Machine Learning integration will initiate a new job predefined to calculate anomaly scores on transaction response times. The response time graph will show the expected bounds and annotate the graph when the anomaly score is 75 or above. @@ -80,12 +75,7 @@ image::apm/images/apm-ml-integration.png[Example view of anomaly scores on respo Jobs can be created per transaction type and based on the average response time. You can manage jobs in the Machine Learning jobs management page. It might take some time for results to appear on the graph. [[query-bar]] -=== Query bar (beta) - -[NOTE] -============ -Please note this feature is in beta. We kindly ask that you https://discuss.elastic.co/c/apm[provide feedback] if you experience any issues. -============ +=== Query bar The query bar is a powerful data query feature. Similar to the query bar in {kibana-ref}/discover.html[Discover] it enables you to pass advanced queries on your data to filter on particular pieces of information that you're interested in. It comes with a handy autocomplete that helps find the fields and even provides suggestions to the data they include. The query bar is available on Services, Transaction and Errors views, and any input will persist as you move between them. diff --git a/docs/canvas.asciidoc b/docs/canvas.asciidoc new file mode 100644 index 0000000000000..0a883831dbee5 --- /dev/null +++ b/docs/canvas.asciidoc @@ -0,0 +1,27 @@ +[[canvas]] += Canvas + +[partintro] +-- + +beta[] + +Congratulations on finding the Canvas application in {kib}. You are in for a treat. +Canvas is a whole new way of making data look amazing. Canvas combines data with +colors, shapes, text, and your own imagination to bring dynamic, multi-page, +pixel-perfect, data displays to screens large and small. + +We made Canvas for people like us. We figure, you are probably people like us: +you make neat stuff and you want to show that neat stuff to others. Canvas is +for makers who are a little bit creative, a little bit technical, and whole lot +of curious. + +We've put together <> to teach you +how to get the most out of Canvas. + +-- + +include::canvas/canvas-getting-started.asciidoc[] + +include::canvas/canvas-workpad.asciidoc[] + diff --git a/docs/canvas/canvas-getting-started.asciidoc b/docs/canvas/canvas-getting-started.asciidoc new file mode 100644 index 0000000000000..1b25f65320d49 --- /dev/null +++ b/docs/canvas/canvas-getting-started.asciidoc @@ -0,0 +1,31 @@ +[[canvas-getting-started]] +== Getting started with Canvas + +beta[]Your best bet to getting started with Canvas is to check out one +(or all) of the sample data sets that ship with {kib}. + +. Click the {kib} logo in the upper left hand corner of your browser to navigate +to the {kib} home page. +. Click *Load a data set and a Kibana dashboard*. This also loads a +Canvas workpad to go with the data set. +. Pick a data set. Let’s go with the eCommerce one for this example, but while you're +here, feel free to click *Add* on all of the available sample data sets. +. Click the Canvas icon in the left hand navigation menu. +. Find the *[eCommerce] Revenue Tracking* workpad and click on its name to open it. + +[role="screenshot"] +image::images/canvas-ecommerce.png[] + +You’re in! The first thing to do is to make a copy of this +workpad so you can come back to it later if needed. We’ll be making a mess +of it in this tutorial. + +. Click the name of the workpad in the lower left hand corner. ++ +You’ll notice this is similar to the first screen. You could switch to a new +workpad from here, but let's not for now. + +. Click the *Clone* icon in the *[eCommerce] Revenue Tracking* row. ++ +You now have a new workpad called *[eCommerce] Revenue Tracking - Copy*. + diff --git a/docs/canvas/canvas-workpad.asciidoc b/docs/canvas/canvas-workpad.asciidoc new file mode 100644 index 0000000000000..dc53ea099d5c2 --- /dev/null +++ b/docs/canvas/canvas-workpad.asciidoc @@ -0,0 +1,48 @@ +[[canvas-workpad]] +== Using the workpad + +beta[]Now that you have a workpad with sample data that you can mess with, let’s mess with it. +We’ll start out by making a few stylistic changes. + +. Click the gauge chart in the top left of the workpad (fun fact, these are actually pie charts). +Try clicking on the small red slice. If you click the number, you'll notice that +you’ve actually selected a number element, not the gauge itself. ++ +This element is now selected. Off to the right, you'll see that the side bar has changed. +This is where you can make changes to the element. ++ +[role="screenshot"] +image::images/canvas_workpad_edit_style.png[] + +. Try changing the color palette. Easy right? Click the Back button in your +browser to undo your change. + +. Try dragging the chart around the page. Grab the resize handles to make +the chart bigger and smaller. + +. Now click somewhere off of the element, but not on another element, +to deselect it. ++ +You will notice the sidebar changing again. You now have +access to the page and workpad-level settings. Feel free to change the page +background color or rename your workpad. + +Speaking of pages, Canvas workpads can have multiple pages. + +. Click the arrow to the right of the *Page 1 of 2* text in the toolbar at the bottom +of the page. You'll see a whole new view of the the eCommerce data. +. Click the *Page 2 of 2* text to see a live preview of all of the pages in your +workpad. +. Click the (+) button to create a new, blank page. +. Click the *Add element* button in the top right hand corner of the page. +. Add an *Area Chart.* ++ +[role="screenshot"] +image::images/canvas_workpad_3_page.png[] + +You now have a three-page workpad, and a new element connected +to some demo data. Your next step is to wire your new element +up to some real data; you can click on the *Data* tab in the right sidebar menu +and click "Change your data source" to start working with your Elasticsearch data. + + diff --git a/docs/dev-tools/grokdebugger/getting-started.asciidoc b/docs/dev-tools/grokdebugger/getting-started.asciidoc index 65aa43a7e1afd..88f2271110c92 100644 --- a/docs/dev-tools/grokdebugger/getting-started.asciidoc +++ b/docs/dev-tools/grokdebugger/getting-started.asciidoc @@ -16,6 +16,9 @@ endif::gs-mini[] TIP: See the documentation about the ingest node {ref}/grok-processor.html[grok processor] and the Logstash {logstash-ref}/plugins-filters-grok.html[grok filter] more info about grok. +NOTE: If you're using {security}, you must have the `manage_pipeline` +permission in order to use the Grok Debugger. + The Grok Debugger is automatically enabled in {kib}. It is located under the *DevTools* tab in {kib}. To start debugging grok patterns: diff --git a/docs/development/core/development-basepath.asciidoc b/docs/development/core/development-basepath.asciidoc index b7e0dec88bf50..c86ab6c5e797d 100644 --- a/docs/development/core/development-basepath.asciidoc +++ b/docs/development/core/development-basepath.asciidoc @@ -48,15 +48,15 @@ $http.get(chrome.addBasePath('/api/plugin/things')); [float] ==== Server side -Append `config.get('server.basePath')` to any absolute URL path. +Append `request.getBasePath()` to any absolute URL path. ["source","shell"] ----------- const basePath = server.config().get('server.basePath'); server.route({ path: '/redirect', - handler(req, reply) { - reply.redirect(`${basePath}/otherLocation`); + handler(request, h) { + return h.redirect(`${request.getBasePath()}/otherLocation`); } }); ----------- @@ -84,4 +84,4 @@ or `yarn start`. ["source","shell"] ----------- yarn start --no-base-path ------------ \ No newline at end of file +----------- diff --git a/docs/development/visualize/development-create-visualization.asciidoc b/docs/development/visualize/development-create-visualization.asciidoc index 24b5b44b9603f..56ed620e148c5 100644 --- a/docs/development/visualize/development-create-visualization.asciidoc +++ b/docs/development/visualize/development-create-visualization.asciidoc @@ -422,7 +422,6 @@ The `vis` object holds the visualization state and is the window into kibana: - *vis.isEditorMode()*: returns true if in editor mode - *vis.API.timeFilter*: allows you to access time picker - *vis.API.queryFilter*: gives you access to queryFilter -- *vis.API.queryManager*: gives you access to add filters to the filter bar - *vis.API.events.click*: default click handler - *vis.API.events.brush*: default brush handler diff --git a/docs/getting-started/tutorial-sample-data.asciidoc b/docs/getting-started/tutorial-sample-data.asciidoc index 7eb46bd26b900..d064f41c65073 100644 --- a/docs/getting-started/tutorial-sample-data.asciidoc +++ b/docs/getting-started/tutorial-sample-data.asciidoc @@ -25,8 +25,7 @@ In this tutorial, you’ll learn to: * Edit a visualization * Inspect the data behind the scenes -NOTE: If security is enabled, you must have the `all` Kibana privilege. -You must also have access to the `kibana_sample_data_flights` index with -the `read`, `write,` and `manage` privileges. See {xpack-ref}/security-privileges.html[Security Privileges] +NOTE: If security is enabled, you must have `read`, `write`, and `manage` privileges +on the `kibana_sample_data_*` indices. See {xpack-ref}/security-privileges.html[Security Privileges] for more information. diff --git a/docs/images/canvas-ecommerce.png b/docs/images/canvas-ecommerce.png new file mode 100644 index 0000000000000..58c0612881341 Binary files /dev/null and b/docs/images/canvas-ecommerce.png differ diff --git a/docs/images/canvas_workpad_3_page.png b/docs/images/canvas_workpad_3_page.png new file mode 100644 index 0000000000000..9a60ed3d00f60 Binary files /dev/null and b/docs/images/canvas_workpad_3_page.png differ diff --git a/docs/images/canvas_workpad_edit_style.png b/docs/images/canvas_workpad_edit_style.png new file mode 100644 index 0000000000000..d12ae2cd81b8f Binary files /dev/null and b/docs/images/canvas_workpad_edit_style.png differ diff --git a/docs/images/management_create_rollup_job.png b/docs/images/management_create_rollup_job.png new file mode 100644 index 0000000000000..398105e7af491 Binary files /dev/null and b/docs/images/management_create_rollup_job.png differ diff --git a/docs/images/management_create_rollup_menu.png b/docs/images/management_create_rollup_menu.png new file mode 100644 index 0000000000000..21e19af0c90fc Binary files /dev/null and b/docs/images/management_create_rollup_menu.png differ diff --git a/docs/images/management_rolled_dashboard.png b/docs/images/management_rolled_dashboard.png new file mode 100644 index 0000000000000..b6f797147781c Binary files /dev/null and b/docs/images/management_rolled_dashboard.png differ diff --git a/docs/images/management_rollup_job_details.png b/docs/images/management_rollup_job_details.png new file mode 100644 index 0000000000000..03983977239d7 Binary files /dev/null and b/docs/images/management_rollup_job_details.png differ diff --git a/docs/images/management_rollup_list.png b/docs/images/management_rollup_list.png new file mode 100644 index 0000000000000..0ca3ce9940fe3 Binary files /dev/null and b/docs/images/management_rollup_list.png differ diff --git a/docs/images/management_rollups_visualization.png b/docs/images/management_rollups_visualization.png new file mode 100644 index 0000000000000..d2c1adb67b942 Binary files /dev/null and b/docs/images/management_rollups_visualization.png differ diff --git a/docs/images/monitoring-dashboard.png b/docs/images/monitoring-dashboard.png index ef72d171e54d5..0ad5192df7678 100644 Binary files a/docs/images/monitoring-dashboard.png and b/docs/images/monitoring-dashboard.png differ diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 47c3f16dc500b..8b2a8e2eee561 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -24,7 +24,7 @@ include::introduction.asciidoc[] include::setup.asciidoc[] -include::monitoring/monitoring-xkib.asciidoc[] +include::monitoring/configuring-monitoring.asciidoc[] include::security/securing-kibana.asciidoc[] @@ -40,6 +40,8 @@ include::dashboard.asciidoc[] include::timelion.asciidoc[] +include::canvas.asciidoc[] + include::ml/index.asciidoc[] include::apm/index.asciidoc[] @@ -52,6 +54,8 @@ include::monitoring/index.asciidoc[] include::management.asciidoc[] +include::spaces/index.asciidoc[] + include::security/index.asciidoc[] include::management/watcher-ui/index.asciidoc[] @@ -74,4 +78,6 @@ include::release-notes/highlights.asciidoc[] include::migration.asciidoc[] -include::CHANGELOG.asciidoc[] \ No newline at end of file +include::CHANGELOG.asciidoc[] + +include::redirects.asciidoc[] \ No newline at end of file diff --git a/docs/limitations.asciidoc b/docs/limitations.asciidoc index 04bf5a72a24dc..bcf124d5acddd 100644 --- a/docs/limitations.asciidoc +++ b/docs/limitations.asciidoc @@ -6,7 +6,10 @@ Kibana currently has the following limitations. * <> +* <> -- include::limitations/nested-objects.asciidoc[] + +include::limitations/export-data.asciidoc[] diff --git a/docs/limitations/export-data.asciidoc b/docs/limitations/export-data.asciidoc new file mode 100644 index 0000000000000..442460c67017c --- /dev/null +++ b/docs/limitations/export-data.asciidoc @@ -0,0 +1,5 @@ +[[export-data]] +== Exporting data + +Exporting a data table or saved search from a dashboard or visualization report +has known limitations. The PDF report only includes the data visible on the screen. \ No newline at end of file diff --git a/docs/management.asciidoc b/docs/management.asciidoc index 909c5d3312548..2579779ef3889 100644 --- a/docs/management.asciidoc +++ b/docs/management.asciidoc @@ -17,6 +17,10 @@ include::management/managing-licenses.asciidoc[] include::management/index-patterns.asciidoc[] +include::management/rollups/create_and_manage_rollups.asciidoc[] + +include::management/rollups/visualize_rollup_data.asciidoc[] + include::management/managing-fields.asciidoc[] include::management/managing-indices.asciidoc[] diff --git a/docs/management/managing-fields.asciidoc b/docs/management/managing-fields.asciidoc index dbb4a30835c89..2926ddd895206 100644 --- a/docs/management/managing-fields.asciidoc +++ b/docs/management/managing-fields.asciidoc @@ -64,9 +64,9 @@ the https://adamwdraper.github.io/Numeral-js/[numeral.js] standard format defini Scripted fields compute data on the fly from the data in your Elasticsearch indices. Scripted field data is shown on the Discover tab as part of the document data, and you can use scripted fields in your visualizations. -Scripted field values are computed at query time so they aren't indexed and cannot be searched. - -NOTE: Kibana cannot query scripted fields. +Scripted field values are computed at query time so they aren't indexed and cannot be searched using Kibana's default +query language. However they can be queried using Kibana's new <>. Scripted +fields are also supported in the filter bar. WARNING: Computing data on the fly with scripted fields can be very resource intensive and can have a direct impact on Kibana's performance. Keep in mind that there's no built-in validation of a scripted field. If your scripts are diff --git a/docs/management/managing-licenses.asciidoc b/docs/management/managing-licenses.asciidoc index a55019030dfa5..aba61dbf1be79 100644 --- a/docs/management/managing-licenses.asciidoc +++ b/docs/management/managing-licenses.asciidoc @@ -26,4 +26,8 @@ At the end of the trial period, the Platinum features operate in a license, extend the trial, or purchase a subscription. For a comparison of the Elastic license levels, -see https://www.elastic.co/subscriptions[the subscription page]. +see https://www.elastic.co/subscriptions[the subscription page]. + +TIP: If {security} is enabled, before you can install a gold or platinum +license, you must configure Transport Layer Security (TLS) in {es}. See +{stack-ov}/encrypting-communications.html[Encrypting communications]. \ No newline at end of file diff --git a/docs/management/rollups/create_and_manage_rollups.asciidoc b/docs/management/rollups/create_and_manage_rollups.asciidoc new file mode 100644 index 0000000000000..aafdc9ffba78a --- /dev/null +++ b/docs/management/rollups/create_and_manage_rollups.asciidoc @@ -0,0 +1,80 @@ +[[data-rollups]] +== Working with rollup indices + +The {ref}/xpack-rollup.html[rollup feature in {es}] +enables you to summarize historical data and store it compactly for future analysis, +so you can query, aggregate, and visualize the data using a fraction of the storage. +This is a good way to keep costs down when you need to store months or years of +historical data for use in visualizations and reports. + +{kib} supports rolled up data in two ways: + +* You can create and manage a rollup job in Management +* You can create a visualization using rolled up data in +Visualize and view it in a dashboard + + + +[[create-and-manage-rollup-job]] +=== Create and manage rollup jobs + +In Management, you'll find a UI for viewing, creating, starting, stopping, and +deleting rollup jobs. A rollup job is a periodic task that summarizes data from +indices specified by an index pattern and rolls it into a new index. To navigate +to the UI, go to *Management*, and under *Elasticsearch*, click *Rollup Jobs*. + +[role="screenshot"] +image::images/management_rollup_list.png[][List of currently active rollup jobs] + +[float] +[[create-rollup-job]] +==== Creating a rollup job + +{kib} makes it easy for you to create a rollup job by walking you through the +process step by step. The first step is to define the job logistics. These include +the name of the rollup job, the index or indices to summarize, and the output rollup index. + +The index pattern cannot match the name of the output rollup index. For example, +if your index pattern is `metricbeat-*`, you cannot name your rollup index +`metricbeat-rollup`. Otherwise, the job will attempt to capture the data in the +rollup index. + +[role="screenshot"] +image::images/management_create_rollup_job.png[][Wizard that walks you through creation of a rollup job] + +You must set a schedule for the rollup job: how often to collect the data, +the number of documents to roll up at a time, and the duration of its latency. +The latency buffer field is provided to protect against the late arrival of data +from Beats or other sources. By delaying the rollup for the specified amount of +time from when the job starts, you allow for the inclusion of late-arriving data +in the rollup. + +In the subsequent phases, you define the Date Histogram aggregation for the job +and optionally the Terms and Histogram aggregations. + +* The Date Histogram aggregation defines the time intervals for summarizing the data. +This value is important because you cannot search the data with a smaller value +than this interval. However, you can aggregate buckets in a larger time interval. + +* The Terms histogram enables you to split the time buckets into sub buckets for +term field values. + +* The Histogram aggregation enables you to split the time buckets into sub buckets +for numeric field values. + +The final step is to specify the fields for calculating metrics. For each selected +field, you can collect any or all of the following: value count, average, sum, min, and max. + +Before you save the rollup job, {kib} displays a summary of the rollup job for +validation. + +[float] +[[manage-rollup-job]] +==== Managing rollup jobs + +Selecting a job on the *Rollup jobs* page shows its details. The Manage menu in +the lower right enables you to start, stop, and delete the rollup job. +You must first stop a rollup job before deleting it. + +[role="screenshot"] +image::images/management_rollup_job_details.png[][Rollup job details] diff --git a/docs/management/rollups/visualize_rollup_data.asciidoc b/docs/management/rollups/visualize_rollup_data.asciidoc new file mode 100644 index 0000000000000..1a8315f904c62 --- /dev/null +++ b/docs/management/rollups/visualize_rollup_data.asciidoc @@ -0,0 +1,48 @@ +[[visualize-rollup-data]] +=== Create a visualization using rolled up data + +beta[] + +You can visualize your rolled up data in a variety of charts, tables, maps, and +more. Most visualizations support rolled up data, with the exception of +Timelion, Visual Builder, and Vega visualizations. + +You create an index pattern for rolled up data the same way you do for any data, +in *Management > Kibana > Index patterns*. Clicking *Create index pattern* includes +an item for creating a rollup index pattern, if a rollup index is detected in the cluster. + +[role="screenshot"] +image::images/management_create_rollup_menu.png[Create index pattern menu] + +You can match an index pattern to only rolled up data, or mix both rolled up +and raw data to visualize all data together. An index +pattern can match only one rolled up index, not multiple. There is no restriction +on the number of standard indices that an index pattern can match. To match multiple indices, use a comma +to separate the names, with no space after the comma. + +When creating an index pattern, you’re asked to set a time field for filtering. +With a rollup index, the time filter field is the same field used for +the rolled up date histogram aggregation. + +Keep the following in mind when creating a visualization from rolled up data: + +* The data in a rollup index only has summarized metrics for specific fields. +You can’t search any other field from the original raw data. +* Data is summarized into time buckets that might be split into sub buckets for +numeric field values or terms. You can ask for a time aggregation that takes +several time buckets and combines them to lower granularity. For example, +if the rollup job was aggregated by hours, you can ask for buckets of days. + +The data represented in this visualization comes from a rollup index and +standard indices. + +[role="screenshot"] +image::images/management_rollups_visualization.png[][Rollups in visualizations] + +You can mix rollup visualizations and regular visualizations in a dashboard. +The following dashboard shows this mix, along with a field filter. Note +that not all queries and filters are supported by rollups. + +[role="screenshot"] +image::images/management_rolled_dashboard.png[][Rollups in dashboards] + diff --git a/docs/ml/creating-jobs.asciidoc b/docs/ml/creating-jobs.asciidoc index 4d9715736b891..3ad18bc475e1e 100644 --- a/docs/ml/creating-jobs.asciidoc +++ b/docs/ml/creating-jobs.asciidoc @@ -20,7 +20,7 @@ than running multiple jobs against the same data. A _population job_ detects activity that is unusual compared to the behavior of the population. For more information, see -{xpack-ref}/ml-configuring-pop.html[Performing Population Analysis]. +{stack-ov}/ml-configuring-pop.html[Performing Population Analysis]. An _advanced job_ can contain multiple detectors and enables you to configure all job settings. @@ -36,19 +36,20 @@ image::ml/images/ml-data-recognizer.jpg[A screenshot of the Apache and NGINX job If you are not certain which type of job to create, you can use the *Data Visualizer* to learn more about your data and to identify possible fields -for {ml} analysis. +for {ml} analysis. -[role="screenshot"] -image::ml/images/ml-data-visualizer.jpg[A screenshot of the Data Visualizer option when creating new jobs] - -NOTE: If your data is located outside of {es}, you cannot use {kib} to create +[NOTE] +=============================== +* If your index pattern does not contain a time field, you cannot use the *Data Visualizer*. +* If your data is located outside of {es}, you cannot use {kib} to create your jobs and you cannot use {dfeeds} to retrieve your data in real time. Machine learning analysis is still possible, however, by using APIs to create and manage jobs and post data to them. For more information, see {ref}/ml-apis.html[Machine Learning APIs]. +=============================== Ready to get some hands-on experience? See -{xpack-ref}/ml-getting-started.html[Getting Started with Machine Learning]. +{stack-ov}/ml-getting-started.html[Getting Started with Machine Learning]. The following video tutorials also demonstrate single metric, multi-metric, and advanced jobs: diff --git a/docs/ml/images/ml-calendar-management.jpg b/docs/ml/images/ml-calendar-management.jpg index 060877c1c1617..a1f22afc6c77f 100644 Binary files a/docs/ml/images/ml-calendar-management.jpg and b/docs/ml/images/ml-calendar-management.jpg differ diff --git a/docs/ml/images/ml-create-job.jpg b/docs/ml/images/ml-create-job.jpg index 506f3d8ea3c2e..ac4bece8dee4a 100644 Binary files a/docs/ml/images/ml-create-job.jpg and b/docs/ml/images/ml-create-job.jpg differ diff --git a/docs/ml/images/ml-data-visualizer-sample.jpg b/docs/ml/images/ml-data-visualizer-sample.jpg new file mode 100644 index 0000000000000..d3dfe8623c32f Binary files /dev/null and b/docs/ml/images/ml-data-visualizer-sample.jpg differ diff --git a/docs/ml/images/ml-data-visualizer.jpg b/docs/ml/images/ml-data-visualizer.jpg deleted file mode 100644 index 11758bab17b02..0000000000000 Binary files a/docs/ml/images/ml-data-visualizer.jpg and /dev/null differ diff --git a/docs/ml/images/ml-job-management.jpg b/docs/ml/images/ml-job-management.jpg index c459a1ac78d5a..9334665921a91 100644 Binary files a/docs/ml/images/ml-job-management.jpg and b/docs/ml/images/ml-job-management.jpg differ diff --git a/docs/ml/images/ml-settings.jpg b/docs/ml/images/ml-settings.jpg new file mode 100644 index 0000000000000..3c8d6153998e2 Binary files /dev/null and b/docs/ml/images/ml-settings.jpg differ diff --git a/docs/ml/images/ml-single-metric-viewer.jpg b/docs/ml/images/ml-single-metric-viewer.jpg index 7500e5a656af2..b943e6c78ddf3 100644 Binary files a/docs/ml/images/ml-single-metric-viewer.jpg and b/docs/ml/images/ml-single-metric-viewer.jpg differ diff --git a/docs/ml/index.asciidoc b/docs/ml/index.asciidoc index bafdfcaa2bd41..3832020436fab 100644 --- a/docs/ml/index.asciidoc +++ b/docs/ml/index.asciidoc @@ -7,42 +7,54 @@ As datasets increase in size and complexity, the human effort required to inspect dashboards or maintain rules for spotting infrastructure problems, -cyber attacks, or business issues becomes impractical. The {xpackml} features +cyber attacks, or business issues becomes impractical. The Elastic {ml-features} automatically model the normal behavior of your time series data — learning trends, periodicity, and more — in real time to identify anomalies, streamline root cause analysis, and reduce false positives. -{xpackml} runs in and scales with {es}, and includes an +The {ml-features} run in and scale with {es}, and include an intuitive UI on the {kib} *Machine Learning* page for creating anomaly detection jobs and understanding results. -You can use the *Job Management* pane to create and manage jobs and their -associated {dfeeds}: +If you have a basic license, you can use the *Data Visualizer* to learn more +about the data that you've stored in {es} and to identify possible fields for +{ml} analysis: + +[role="screenshot"] +image::ml/images/ml-data-visualizer-sample.jpg[Data Visualizer for sample flight data] + +experimental[] You can also upload a CSV, NDJSON, or log file (up to 100 MB in size). +The {ml-features} identify the file format and field mappings. You can then +optionally import that data into an {es} index. + +If you have a trial or platinum license, you can <> +and manage jobs and {dfeeds} from the *Job Management* pane: [role="screenshot"] image::ml/images/ml-job-management.jpg[Job Management] -You can use the *Settings* pane to add scheduled events to calendars and to -associate these calendars with your jobs: +You can use the *Settings* pane to create and edit +{stack-ov}/ml-calendars.html[calendars] and the filters that are used in +{stack-ov}/ml-rules.html[custom rules]: [role="screenshot"] -image::ml/images/ml-calendar-management.jpg[Calendar Management] +image::ml/images/ml-settings.jpg[Calendar Management] The *Anomaly Explorer* and *Single Metric Viewer* display the results of your -{ml} jobs. For example: +{ml} jobs. For example: [role="screenshot"] image::ml/images/ml-single-metric-viewer.jpg[Single Metric Viewer] -NOTE: The {xpack} {ml} features in {kib} use pop-ups. You must configure your +NOTE: The {kib} {ml-features} use pop-ups. You must configure your web browser so that it does not block pop-up windows or create an exception for -your Kibana URL. +your {kib} URL. For more information about {ml}, see -{xpack-ref}/xpack-ml.html[Machine Learning in the Elastic Stack]. +{stack-ov}/xpack-ml.html[Machine learning in the {stack}]. -- include::creating-jobs.asciidoc[] include::job-tips.asciidoc[] -//TO-DO: Add info about creating watch + diff --git a/docs/monitoring/beats-details.asciidoc b/docs/monitoring/beats-details.asciidoc index 4c9bc5aa31494..bc0cbfe6aaf06 100644 --- a/docs/monitoring/beats-details.asciidoc +++ b/docs/monitoring/beats-details.asciidoc @@ -1,6 +1,6 @@ [role="xpack"] [[beats-page]] -=== Beats Monitoring Metrics +== Beats Monitoring Metrics ++++ Beats Metrics ++++ diff --git a/docs/monitoring/cluster-alerts.asciidoc b/docs/monitoring/cluster-alerts.asciidoc index fce76965dd9ae..fb7d0c31c5189 100644 --- a/docs/monitoring/cluster-alerts.asciidoc +++ b/docs/monitoring/cluster-alerts.asciidoc @@ -1,6 +1,6 @@ [role="xpack"] [[cluster-alerts]] -=== Cluster Alerts +== Cluster Alerts The *Monitoring > Clusters* page in {kib} summarizes the status of your Elastic stack. You can drill down into the metrics to view more information about your diff --git a/docs/monitoring/configuring-monitoring.asciidoc b/docs/monitoring/configuring-monitoring.asciidoc index 82ef1bbd77f0b..9c35affc24ce6 100644 --- a/docs/monitoring/configuring-monitoring.asciidoc +++ b/docs/monitoring/configuring-monitoring.asciidoc @@ -1,4 +1,26 @@ +[role="xpack"] [[configuring-monitoring]] -== Configuring Monitoring +== Configuring monitoring in {kib} +++++ +Configuring monitoring +++++ -See {ref}/configuring-monitoring.html[Configuring Monitoring in {es}]. +If you enable the Elastic {monitor-features} in your cluster, you can +optionally collect metrics about {kib}: + +* <> +* <> + + +You can also use {kib} to visualize +monitoring data from across the {stack}: + +* <> + +To learn about monitoring in general, see +{stack-ov}/xpack-monitoring.html[Monitoring the {stack}]. + +include::monitoring-kibana.asciidoc[] +include::monitoring-metricbeat.asciidoc[] +include::viewing-metrics.asciidoc[] +include::{kib-repo-dir}/settings/monitoring-settings.asciidoc[] \ No newline at end of file diff --git a/docs/monitoring/elasticsearch-details.asciidoc b/docs/monitoring/elasticsearch-details.asciidoc index 751e20aa8dd2d..025fc8f2887cb 100644 --- a/docs/monitoring/elasticsearch-details.asciidoc +++ b/docs/monitoring/elasticsearch-details.asciidoc @@ -1,6 +1,6 @@ [role="xpack"] [[elasticsearch-metrics]] -=== {es} Monitoring Metrics +== {es} Monitoring Metrics ++++ {es} Metrics ++++ @@ -28,7 +28,7 @@ The panel at the top shows the current cluster statistics, the charts show the search and indexing performance over time, and the table at the bottom shows information about any shards that are being recovered. -image::monitoring/images/monitoring-overview.jpg["Elasticsearch Cluster Overview",link="images/monitoring-overview.jpg"] +image::monitoring/images/monitoring-overview.png["Elasticsearch Cluster Overview",link="images/monitoring-overview.png"] TIP: Not sure what a chart is showing? Click the info button for a description of the metrics. @@ -42,7 +42,7 @@ From there, you can dive into detailed metrics for particular nodes and indices. To view node metrics, click **Nodes**. The Nodes section shows the status of each node in your cluster. -image::monitoring/images/monitoring-nodes.jpg["Elasticsearch Nodes",link="images/monitoring-nodes.jpg"] +image::monitoring/images/monitoring-nodes.png["Elasticsearch Nodes",link="images/monitoring-nodes.png"] [float] [[nodes-page-overview]] @@ -51,7 +51,7 @@ image::monitoring/images/monitoring-nodes.jpg["Elasticsearch Nodes",link="images Click the name of a node to view its node statistics over time. These represent high-level statistics collected from {es} that provide a good overview of health. -image::monitoring/images/monitoring-node.jpg["Elasticsearch Node Overview",link="images/monitoring-node.jpg"] +image::monitoring/images/monitoring-node.png["Elasticsearch Node Overview",link="images/monitoring-node.png"] [float] [[nodes-page-advanced]] @@ -74,7 +74,7 @@ more advanced knowledge of {es}, such as poor garbage collection performance. To view index metrics, click **Indices**. The Indices section shows the same overall index and search metrics as the Overview and a table of your indices. -image::monitoring/images/monitoring-indices.jpg["Elasticsearch Indices",link="images/monitoring-indices.jpg"] +image::monitoring/images/monitoring-indices.png["Elasticsearch Indices",link="images/monitoring-indices.png"] [float] [[indices-page-overview]] @@ -83,7 +83,7 @@ image::monitoring/images/monitoring-indices.jpg["Elasticsearch Indices",link="im From the Indices listing, you can view data for a particular index. To drill down into the data for a particular index, click its name in the Indices table. -image::monitoring/images/monitoring-index.jpg["Elasticsearch Index Overview",link="images/monitoring-index.jpg"] +image::monitoring/images/monitoring-index.png["Elasticsearch Index Overview",link="images/monitoring-index.png"] [float] [[indices-page-advanced]] diff --git a/docs/monitoring/getting-started.asciidoc b/docs/monitoring/getting-started.asciidoc deleted file mode 100644 index 1782661d5f0c8..0000000000000 --- a/docs/monitoring/getting-started.asciidoc +++ /dev/null @@ -1,4 +0,0 @@ -[[monitoring-getting-started]] -== Getting Started - -See {kibana-ref}/monitoring-data.html[Viewing Monitoring Data in {kib}]. diff --git a/docs/monitoring/images/metricbeat.png b/docs/monitoring/images/metricbeat.png new file mode 100644 index 0000000000000..17b9516e91b8e Binary files /dev/null and b/docs/monitoring/images/metricbeat.png differ diff --git a/docs/monitoring/images/monitoring-index-advanced.jpg b/docs/monitoring/images/monitoring-index-advanced.jpg deleted file mode 100644 index 19523cbbc63e9..0000000000000 Binary files a/docs/monitoring/images/monitoring-index-advanced.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-index-advanced.png b/docs/monitoring/images/monitoring-index-advanced.png index 832b6f631847d..833ae3a0d7638 100644 Binary files a/docs/monitoring/images/monitoring-index-advanced.png and b/docs/monitoring/images/monitoring-index-advanced.png differ diff --git a/docs/monitoring/images/monitoring-index.jpg b/docs/monitoring/images/monitoring-index.jpg deleted file mode 100644 index fdbb0ab8dafe6..0000000000000 Binary files a/docs/monitoring/images/monitoring-index.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-index.png b/docs/monitoring/images/monitoring-index.png new file mode 100644 index 0000000000000..d510e2fb7ff25 Binary files /dev/null and b/docs/monitoring/images/monitoring-index.png differ diff --git a/docs/monitoring/images/monitoring-indices.jpg b/docs/monitoring/images/monitoring-indices.jpg deleted file mode 100644 index de69527ef1efd..0000000000000 Binary files a/docs/monitoring/images/monitoring-indices.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-indices.png b/docs/monitoring/images/monitoring-indices.png new file mode 100644 index 0000000000000..41904fa1f5941 Binary files /dev/null and b/docs/monitoring/images/monitoring-indices.png differ diff --git a/docs/monitoring/images/monitoring-kibana-instance.jpg b/docs/monitoring/images/monitoring-kibana-instance.jpg deleted file mode 100644 index 975b679cb0939..0000000000000 Binary files a/docs/monitoring/images/monitoring-kibana-instance.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-kibana-instance.png b/docs/monitoring/images/monitoring-kibana-instance.png new file mode 100644 index 0000000000000..ee2fdc7fa070c Binary files /dev/null and b/docs/monitoring/images/monitoring-kibana-instance.png differ diff --git a/docs/monitoring/images/monitoring-kibana-instances.jpg b/docs/monitoring/images/monitoring-kibana-instances.jpg deleted file mode 100644 index 42fed9f501d97..0000000000000 Binary files a/docs/monitoring/images/monitoring-kibana-instances.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-kibana-instances.png b/docs/monitoring/images/monitoring-kibana-instances.png new file mode 100644 index 0000000000000..3c1605b2582cf Binary files /dev/null and b/docs/monitoring/images/monitoring-kibana-instances.png differ diff --git a/docs/monitoring/images/monitoring-kibana-overview.jpg b/docs/monitoring/images/monitoring-kibana-overview.jpg deleted file mode 100644 index 86908d7aea2d6..0000000000000 Binary files a/docs/monitoring/images/monitoring-kibana-overview.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-kibana-overview.png b/docs/monitoring/images/monitoring-kibana-overview.png new file mode 100644 index 0000000000000..8eb161a039187 Binary files /dev/null and b/docs/monitoring/images/monitoring-kibana-overview.png differ diff --git a/docs/monitoring/images/monitoring-node-advanced.jpg b/docs/monitoring/images/monitoring-node-advanced.jpg deleted file mode 100644 index ccef74821241f..0000000000000 Binary files a/docs/monitoring/images/monitoring-node-advanced.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-node-advanced.png b/docs/monitoring/images/monitoring-node-advanced.png index e8838b57779c7..74aa967ab1ae8 100644 Binary files a/docs/monitoring/images/monitoring-node-advanced.png and b/docs/monitoring/images/monitoring-node-advanced.png differ diff --git a/docs/monitoring/images/monitoring-node.jpg b/docs/monitoring/images/monitoring-node.jpg deleted file mode 100644 index 9424054f5b7f7..0000000000000 Binary files a/docs/monitoring/images/monitoring-node.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-node.png b/docs/monitoring/images/monitoring-node.png new file mode 100644 index 0000000000000..dd798fb19ea6b Binary files /dev/null and b/docs/monitoring/images/monitoring-node.png differ diff --git a/docs/monitoring/images/monitoring-nodes.jpg b/docs/monitoring/images/monitoring-nodes.jpg deleted file mode 100644 index 7658087ce374e..0000000000000 Binary files a/docs/monitoring/images/monitoring-nodes.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-nodes.png b/docs/monitoring/images/monitoring-nodes.png new file mode 100644 index 0000000000000..ea0ca24b273df Binary files /dev/null and b/docs/monitoring/images/monitoring-nodes.png differ diff --git a/docs/monitoring/images/monitoring-overview.jpg b/docs/monitoring/images/monitoring-overview.jpg deleted file mode 100644 index 7790fdecc6961..0000000000000 Binary files a/docs/monitoring/images/monitoring-overview.jpg and /dev/null differ diff --git a/docs/monitoring/images/monitoring-overview.png b/docs/monitoring/images/monitoring-overview.png new file mode 100644 index 0000000000000..f58b10a2e0488 Binary files /dev/null and b/docs/monitoring/images/monitoring-overview.png differ diff --git a/docs/monitoring/index.asciidoc b/docs/monitoring/index.asciidoc index fa57d13ed9623..f60bb5c36f028 100644 --- a/docs/monitoring/index.asciidoc +++ b/docs/monitoring/index.asciidoc @@ -5,24 +5,28 @@ [partintro] -- -{monitoring} in {kib} serves two separate purposes: +The {kib} {monitor-features} serve two separate purposes: -. To visualize monitoring data from across the Elastic Stack. You can view -health and performance data for {es}, Logstash, and Beats in real time, as well -as analyze past performance. For more information, see {xpack-ref}/xpack-monitoring.html[Monitoring the Elastic Stack]. +. To visualize monitoring data from across the {stack}. You can view health and +performance data for {es}, {ls}, and Beats in real time, as well as analyze past +performance. For more information, see +{stack-ov}/xpack-monitoring.html[Monitoring the {stack}]. . To monitor {kib} itself and route that data to the monitoring cluster. -If you enable {monitoring} across the Elastic Stack, a monitoring agent runs on -each {es} node, Logstash node, {kib} instance, and Beat to collect and index -metrics. Each node and instance is considered unique based on its persistent +If you enable monitoring across the {stack}, each {es} node, {ls} node, {kib} +instance, and Beat is considered unique based on its persistent UUID, which is written to the <> directory when the node -or instance starts. +or instance starts. -* <> -* <> +NOTE: Watcher must be enabled to view cluster alerts. If you have a Basic +license, Top Cluster Alerts are not displayed. -- -include::viewing-metrics.asciidoc[] +include::beats-details.asciidoc[] +include::cluster-alerts.asciidoc[] +include::elasticsearch-details.asciidoc[] +include::kibana-details.asciidoc[] +include::logstash-details.asciidoc[] include::monitoring-troubleshooting.asciidoc[] diff --git a/docs/monitoring/kibana-details.asciidoc b/docs/monitoring/kibana-details.asciidoc index 58f2ee25a94b4..ac5daec87d92e 100644 --- a/docs/monitoring/kibana-details.asciidoc +++ b/docs/monitoring/kibana-details.asciidoc @@ -1,6 +1,6 @@ [role="xpack"] [[kibana-page]] -=== {kib} Monitoring Metrics +== {kib} Monitoring Metrics ++++ {kib} Metrics ++++ @@ -8,13 +8,13 @@ To view the key metrics that indicate the overall health of {kib} itself, click **Overview** in the {kib} section of the *Monitoring* page. -image::monitoring/images/monitoring-kibana-overview.jpg["Kibana Overview",link="images/monitoring-kibana-overview.jpg"] +image::monitoring/images/monitoring-kibana-overview.png["Kibana Overview",link="images/monitoring-kibana-overview.png"] To view {kib} instance metrics, click **Instances**. The Instances section shows the status of each {kib} instance. -image::monitoring/images/monitoring-kibana-instances.jpg["Kibana Instances",link="images/monitoring-kibana-instances.jpg"] +image::monitoring/images/monitoring-kibana-instances.png["Kibana Instances",link="images/monitoring-kibana-instances.png"] Click the name of an instance to view its instance statistics over time. -image::monitoring/images/monitoring-kibana-instance.jpg["Kibana Instance View",link="images/monitoring-kibana-instance.jpg"] +image::monitoring/images/monitoring-kibana-instance.png["Kibana Instance View",link="images/monitoring-kibana-instance.png"] diff --git a/docs/monitoring/logstash-details.asciidoc b/docs/monitoring/logstash-details.asciidoc index 42453e627f19e..65f7407e0575e 100644 --- a/docs/monitoring/logstash-details.asciidoc +++ b/docs/monitoring/logstash-details.asciidoc @@ -1,6 +1,6 @@ [role="xpack"] [[logstash-page]] -=== Logstash Monitoring Metrics +== Logstash Monitoring Metrics ++++ Logstash Metrics ++++ diff --git a/docs/monitoring/monitoring-elasticsearch.asciidoc b/docs/monitoring/monitoring-elasticsearch.asciidoc deleted file mode 100644 index e22285419a40e..0000000000000 --- a/docs/monitoring/monitoring-elasticsearch.asciidoc +++ /dev/null @@ -1,4 +0,0 @@ -[[monitoring-cluster]] -== Monitoring Elasticsearch - -See {ref}/es-monitoring.html[Monitoring {es}]. diff --git a/docs/monitoring/monitoring-kibana.asciidoc b/docs/monitoring/monitoring-kibana.asciidoc index 31ff8bc6b341e..4f2cfc92f874f 100644 --- a/docs/monitoring/monitoring-kibana.asciidoc +++ b/docs/monitoring/monitoring-kibana.asciidoc @@ -1,5 +1,121 @@ +[role="xpack"] [[monitoring-kibana]] -== Monitoring Kibana +=== Collecting {kib} monitoring data +++++ +Collecting monitoring data +++++ -See -{kibana-ref}/monitoring-xpack-kibana.html[Monitoring {kib}]. +If you enable the Elastic {monitor-features} in your cluster, you can +optionally collect metrics about {kib}. + +The following method involves sending the metrics to the production cluster, +which ultimately routes them to the monitoring cluster. For an alternative +method, see <>. + +To learn about monitoring in general, see +{stack-ov}/xpack-monitoring.html[Monitoring the {stack}]. + +. Set the `xpack.monitoring.collection.enabled` setting to `true` on each +node in the production cluster. By default, it is is disabled (`false`). ++ +-- +NOTE: You can specify this setting in either the `elasticsearch.yml` on each +node or across the cluster as a dynamic cluster setting. If {es} +{security-features} are enabled, you must have `monitor` cluster privileges to +view the cluster settings and `manage` cluster privileges to change them. + +-- + +** To update the cluster settings in {kib}: + +... Open {kib} in your web browser. ++ +-- +By default, if you are running {kib} locally, go to `http://localhost:5601/`. + +If {es} {security-features} are enabled, log in. +-- + +... In the side navigation, click *Monitoring*. If data collection is disabled, +you are prompted to turn it on. + +** From the Console or command line, set `xpack.monitoring.collection.enabled` +to `true` on the production cluster. + ++ +-- +For example, you can use the following APIs to review and change this setting: + +[source,js] +---------------------------------- +GET _cluster/settings + +PUT _cluster/settings +{ + "persistent": { + "xpack.monitoring.collection.enabled": true + } +} +---------------------------------- + +For more information, see {ref}/monitoring-settings.html[Monitoring settings in {es}] +and {ref}/cluster-update-settings.html[Cluster update settings]. +-- + +. Verify that `xpack.monitoring.enabled` and +`xpack.monitoring.kibana.collection.enabled` are set to `true` in the +`kibana.yml` file. These are the default values. For +more information, see <>. + +. Identify where to send monitoring data. {kib} automatically +sends metrics to the {es} cluster specified in the `elasticsearch.url` setting +in the `kibana.yml` file. This property has a default value of +`http://localhost:9200`. + ++ +-- +[TIP] +=============================== +In production environments, we strongly recommend using a separate cluster +(referred to as the _monitoring cluster_) to store the data. Using a separate +monitoring cluster prevents production cluster outages from impacting your +ability to access your monitoring data. It also prevents monitoring activities +from impacting the performance of your production cluster. + +If {security} is enabled on the production cluster, use an HTTPS URL such +as `https://:9200` in this setting. +=============================== + +-- + +. If the Elastic {security-features} are enabled on the production cluster: + +.. Verify that there is a +valid user ID and password in the `elasticsearch.username` and +`elasticsearch.password` settings in the `kibana.yml` file. These values are +used when {kib} sends monitoring data to the production cluster. + +.. Configure {kib} to encrypt communications between the {kib} server and the +production cluster. This set up involves generating a server certificate and +setting `server.ssl.*` and `elasticsearch.ssl.certificateAuthorities` settings +in the `kibana.yml` file on the {kib} server. For example: ++ +-- +[source,yaml] +-------------------------------------------------------------------------------- +server.ssl.key: /path/to/your/server.key +server.ssl.certificate: /path/to/your/server.crt +-------------------------------------------------------------------------------- + +If you are using your own certificate authority to sign certificates, specify +the location of the PEM file in the `kibana.yml` file: + +[source,yaml] +-------------------------------------------------------------------------------- +elasticsearch.ssl.certificateAuthorities: /path/to/your/cacert.pem +-------------------------------------------------------------------------------- + +For more information, see <>. +-- + +. <>. + +. <>. diff --git a/docs/monitoring/monitoring-logstash.asciidoc b/docs/monitoring/monitoring-logstash.asciidoc deleted file mode 100644 index 27a35303e3057..0000000000000 --- a/docs/monitoring/monitoring-logstash.asciidoc +++ /dev/null @@ -1,5 +0,0 @@ -[[monitoring-logstash]] -== Monitoring Logstash - -See -{logstash-ref}/monitoring-logstash.html[Monitoring Logstash]. diff --git a/docs/monitoring/monitoring-metricbeat.asciidoc b/docs/monitoring/monitoring-metricbeat.asciidoc new file mode 100644 index 0000000000000..5bd581d5d0718 --- /dev/null +++ b/docs/monitoring/monitoring-metricbeat.asciidoc @@ -0,0 +1,203 @@ +[role="xpack"] +[[monitoring-metricbeat]] +=== Collecting {kib} monitoring data with {metricbeat} +++++ +Collecting monitoring data with {metricbeat} +++++ + +beta[] + +In 6.4 and later, you can use {metricbeat} to collect data about {kib} +and ship it to the monitoring cluster, rather than routing it through the +production cluster as described in <>. + +image::monitoring/images/metricbeat.png[Example monitoring architecture] + +To learn about monitoring in general, see +{stack-ov}/xpack-monitoring.html[Monitoring the {stack}]. + +. Disable the default collection of {kib} monitoring metrics. + ++ +-- +Add the following setting in the {kib} configuration file (`kibana.yml`): + +[source,yaml] +---------------------------------- +xpack.monitoring.kibana.collection.enabled: false +---------------------------------- + +Leave the `xpack.monitoring.enabled` set to its default value (`true`). + +For more information, see +<>. +-- + +. <>. + +. Set the `xpack.monitoring.collection.enabled` setting to `true` on +each node in the production cluster. By default, it is disabled (`false`). ++ +-- +NOTE: You can specify this setting in either the `elasticsearch.yml` on each +node or across the cluster as a dynamic cluster setting. If {es} +{security-features} are enabled, you must have `monitor` cluster privileges to +view the cluster settings and `manage` cluster privileges to change them. + +-- + +** In {kib}: + +... Open {kib} in your web browser. ++ +-- +If you are running {kib} locally, go to `http://localhost:5601/`. + +If the Elastic {security-features} are enabled, log in. +-- + +... In the side navigation, click *Monitoring*. If data collection is disabled, +you are prompted to turn it on. + +** From the Console or command line, set `xpack.monitoring.collection.enabled` +to `true` on the production cluster. + ++ +-- +For example, you can use the following APIs to review and change this setting: + +[source,js] +---------------------------------- +GET _cluster/settings + +PUT _cluster/settings +{ + "persistent": { + "xpack.monitoring.collection.enabled": true + } +} +---------------------------------- + +For more information, see {ref}/monitoring-settings.html[Monitoring settings in {es}] +and {ref}/cluster-update-settings.html[Cluster update settings]. +-- + +. {metricbeat-ref}/metricbeat-installation.html[Install {metricbeat}] on the +same server as {kib}. + +. Enable the {kib} module in {metricbeat}. + ++ +-- +For example, to enable the default configuration in the `modules.d` directory, +run the following command: + +["source","sh",subs="attributes,callouts"] +---------------------------------------------------------------------- +metricbeat modules enable kibana +---------------------------------------------------------------------- + +For more information, see +{metricbeat-ref}/configuration-metricbeat.html[Specify which modules to run] and +{metricbeat-ref}/metricbeat-module-kibana.html[{kib} module]. +-- + +. Configure the {kib} module in {metricbeat}. + ++ +-- +You must specify the following settings in the `modules.d/kibana.yml` file: + +[source,yaml] +---------------------------------- +- module: kibana + metricsets: + - stats + period: 10s + hosts: ["http://localhost:5601"] <1> + xpack.enabled: true <2> +---------------------------------- +<1> This setting identifies the host and port number that are used to access {kib}. +<2> This setting ensures that {kib} can read the monitoring data successfully. +That is to say, it's stored in the same location and format as monitoring data +that is sent by {ref}/es-monitoring-exporters.html[exporters]. +-- + +. If the Elastic {security-features} are enabled, you must also provide a user +ID and password so that {metricbeat} can collect metrics successfully. + +... Create a user on the production cluster that has the +`remote_monitoring_collector` {stack-ov}/built-in-roles.html[built-in role]. +Alternatively, use the `remote_monitoring_user` +{stack-ov}/built-in-users.html[built-in user]. + +.. Add the `username` and `password` settings to the {kib} module configuration +file. ++ +-- +For example, add the following settings in the `modules.d/kibana.yml` file: + +[source,yaml] +---------------------------------- +- module: kibana + ... + username: remote_monitoring_user + password: YOUR_PASSWORD +---------------------------------- +-- + +. If you configured {kib} to use <>, +you must access it via HTTPS. For example, use a `hosts` setting like +`https://localhost:5601` in the `modules.d/kibana.yml` file. + +. Identify where to send the monitoring data. + ++ +-- +TIP: In production environments, we strongly recommend using a separate cluster +(referred to as the _monitoring cluster_) to store the data. Using a separate +monitoring cluster prevents production cluster outages from impacting your +ability to access your monitoring data. It also prevents monitoring activities +from impacting the performance of your production cluster. + +For example, specify the {es} output information in the {metricbeat} +configuration file (`metricbeat.yml`): + +[source,yaml] +---------------------------------- +output.elasticsearch: + hosts: ["http://es-mon-1:9200", "http://es-mon2:9200"] <1> +---------------------------------- +<1> In this example, the data is stored on a monitoring cluster with nodes +`es-mon-1` and `es-mon-2`. + +For more information about these configuration options, see +{metricbeat-ref}/elasticsearch-output.html[Configure the {es} output]. + +-- + +. If the {es} {security-features} are enabled on the monitoring cluster, you +must provide a valid user ID and password so that {metricbeat} can send metrics +successfully. + +... Create a user on the monitoring cluster that has the +`remote_monitoring_agent` {stack-ov}/built-in-roles.html[built-in role]. +Alternatively, use the `remote_monitoring_user` +{stack-ov}/built-in-users.html[built-in user]. + +.. Add the `username` and `password` settings to the {es} output information in +the {metricbeat} configuration file (`metricbeat.yml`): ++ +-- +[source,yaml] +---------------------------------- +output.elasticsearch: + ... + username: remote_monitoring_user + password: YOUR_PASSWORD +---------------------------------- +-- + +. If you configured the monitoring cluster to use +{ref}/configuring-tls.html[encrypted communications], you must access it via +HTTPS. For example, use a `hosts` setting like `https://es-mon-1:9200` in the +`metricbeat.yml` file. + +. {metricbeat-ref}/metricbeat-starting.html[Start {metricbeat}]. + +. <>. diff --git a/docs/monitoring/monitoring-xkib.asciidoc b/docs/monitoring/monitoring-xkib.asciidoc deleted file mode 100644 index 6a451308860fd..0000000000000 --- a/docs/monitoring/monitoring-xkib.asciidoc +++ /dev/null @@ -1,134 +0,0 @@ -[role="xpack"] -[[monitoring-xpack-kibana]] -== Configuring Monitoring in {kib} -++++ -Configuring Monitoring -++++ - -{monitoring} gives you insight into the operation of your {stack}. For more -information, see <> and -{stack-ov}/xpack-monitoring.html[Monitoring the {stack}]. - -. To monitor {kib}: - -.. Verify that the `xpack.monitoring.collection.enabled` setting is `true` on -the production cluster. If that setting is `false`, which is the default value, -the collection of monitoring data is disabled in {es} and data is ignored from -all other sources. For more information, see -{ref}/monitoring-settings.html[Monitoring Settings in {es}]. - -.. Verify that `xpack.monitoring.enabled` and -`xpack.monitoring.kibana.collection.enabled` are set to `true`, which are the -default values. For more information, see <>. - -.. Identify where to send monitoring data. {kib} automatically -sends metrics to the {es} cluster specified in the `elasticsearch.url` setting -in the `kibana.yml` file. This property has a default value of -`http://localhost:9200`. This cluster is often referred to as the -_production cluster_. -+ --- -TIP: If {security} is enabled on the production cluster, use an HTTPS URL such -as `https://:9200` in this setting. - --- - -. To visualize monitoring data: - -.. Verify that `xpack.monitoring.ui.enabled` is set to `true`, which is the -default value. For more information, see <>. - -.. Identify where to retrieve monitoring data from. If you want to use a -separate _monitoring cluster_, set `xpack.monitoring.elasticsearch.url` in the -`kibana.yml` file. Otherwise, the monitoring data is stored in the production -cluster. -+ --- -TIP: If {security} is enabled on the monitoring cluster, use an HTTPS URL such -as `https://:9200` in this setting. - -To learn more about typical monitoring architectures with separate -production and monitoring clusters, see -{xpack-ref}/how-monitoring-works.html[How Monitoring Works]. --- - -. If {security} is enabled on the production cluster: - -.. Verify that there is a -valid user ID and password in the `elasticsearch.username` and -`elasticsearch.password` settings in the `kibana.yml` file. These values are -used when {kib} sends monitoring data to the production cluster. - -.. Configure {kib} to encrypt communications between the {kib} server and the -production cluster. This set up involves generating a server certificate and -setting `server.ssl.*` and `elasticsearch.ssl.certificateAuthorities` settings -in the `kibana.yml` file on the {kib} server. For example: -+ --- -[source,yaml] --------------------------------------------------------------------------------- -server.ssl.key: /path/to/your/server.key -server.ssl.certificate: /path/to/your/server.crt --------------------------------------------------------------------------------- - -If you are using your own certificate authority to sign certificates, specify -the location of the PEM file in the `kibana.yml` file: - -[source,yaml] --------------------------------------------------------------------------------- -elasticsearch.ssl.certificateAuthorities: /path/to/your/cacert.pem --------------------------------------------------------------------------------- - -For more information, see <>. --- - -. If {security} is enabled on the monitoring cluster: - -.. Identify a user ID and password that {kib} can use to retrieve monitoring -data. Specify these values in the `xpack.monitoring.elasticsearch.username` and -`xpack.monitoring.elasticsearch.password` settings in the `kibana.yml` file. -If these settings are omitted, {kib} uses the `elasticsearch.username` and -`elasticsearch.password` setting values. - -.. Configure {kib} to encrypt communications between the {kib} server and the -monitoring cluster. Specify the `xpack.monitoring.elasticsearch.ssl.*` settings -in the `kibana.yml` file on the {kib} server. -+ --- -For example, if you are using your own certificate authority to sign -certificates, specify the location of the PEM file in the `kibana.yml` file: - -[source,yaml] --------------------------------------------------------------------------------- -xpack.monitoring.elasticsearch.ssl.certificateAuthorities: /path/to/your/cacert.pem --------------------------------------------------------------------------------- - --- - -. Restart {kib}. - -. If {security} is enabled on your {kib} server: - -.. Log in to {kib} as a user who has both the `kibana_user` and -`monitoring_user` roles. These roles have the necessary privileges to view the -monitoring dashboards. For example: -+ --- -[source,js] --------------------------------------------------- -POST /_xpack/security/user/stack-monitor -{ - "password" : "changeme", - "roles" : [ "kibana_user", "monitoring_user" ] -} --------------------------------------------------- -// CONSOLE --- - -.. If you are accessing a remote monitoring cluster, you must log in to {kib} -with username and password credentials that are valid on both the {kib} server -and the monitoring cluster. - -See also <>. - -include::{kib-repo-dir}/settings/monitoring-settings.asciidoc[] diff --git a/docs/monitoring/viewing-metrics.asciidoc b/docs/monitoring/viewing-metrics.asciidoc index 82ec152fdefa9..f2f1b7b971711 100644 --- a/docs/monitoring/viewing-metrics.asciidoc +++ b/docs/monitoring/viewing-metrics.asciidoc @@ -1,71 +1,105 @@ [role="xpack"] [[monitoring-data]] -== Viewing Monitoring Data in {kib} +=== Viewing monitoring data in {kib} ++++ -Viewing Monitoring Data +Viewing monitoring data ++++ -You can enable {monitoring} in {es}, Logstash, {kib}, and Beats. By default, the -monitoring agents on {es} index data within the same cluster. +After you collect monitoring data for one or more products in the {stack}, you +can configure {kib} to retrieve that information and display it in on the +*Monitoring* page. -TIP: If you have a dedicated monitoring cluster, the information is accessible -even if the {es} cluster you're monitoring is not. You can send data from -multiple clusters to the same monitoring cluster and view them all through the -same instance of {kib}. For more information, see +. Identify where to retrieve monitoring data from. ++ +-- +The cluster that contains the monitoring data is referred to +as the _monitoring cluster_. + +TIP: If the monitoring data is stored on a *dedicated* monitoring cluster, it is +accessible even when the cluster you're monitoring is not. If you have at least +a gold license, you can send data from multiple clusters to the same monitoring +cluster and view them all through the same instance of {kib}. + +By default, data is retrieved from the cluster specified in the +`elasticsearch.url` value in the `kibana.yml` file. If you want to retrieve it +from a different cluster, set `xpack.monitoring.elasticsearch.url`. + +To learn more about typical monitoring architectures, +see {stack-ov}/how-monitoring-works.html[How monitoring works] and +{stack-ov}/monitoring-production.html[Monitoring in a production environment]. +-- -To view and analyze the health and performance of {es}, Logstash, {kib}, and -Beats: +. Verify that `xpack.monitoring.ui.enabled` is set to `true`, which is the +default value, in the `kibana.yml` file. For more information, see +<>. -. {ref}/configuring-monitoring.html[Configure monitoring in {es}]. If you want -to use a separate monitoring cluster, see -{xpack-ref}/monitoring-production.html[Monitoring in a Production Environment]. +. If the Elastic {security-features} are enabled on the monitoring cluster, you +must provide a user ID and password so {kib} can retrieve the data. -. <>. +.. Create a user that has the `monitoring_user` +{stack-ov}/built-in-roles.html[built-in role] on the monitoring cluster. -. {logstash-ref}/configuring-logstash.html[Configure monitoring in Logstash]. +.. Add the `xpack.monitoring.elasticsearch.username` and +`xpack.monitoring.elasticsearch.password` settings in the `kibana.yml` file. +If these settings are omitted, {kib} uses the `elasticsearch.username` and +`elasticsearch.password` setting values. For more +information, see {kibana-ref}/using-kibana-with-security.html[Configuring security in {kib}]. + +. (Optional) Configure {kib} to encrypt communications between the {kib} server +and the monitoring cluster. See <>. + +. If the Elastic {security-features} are enabled on the {kib} server, only users +that have the authority to access {kib} indices and to read the monitoring indices +can use the monitoring dashboards. ++ +-- +NOTE: These users must exist on the monitoring cluster. If you are accessing a +remote monitoring cluster, you must use credentials that are valid on both the +{kib} server and the monitoring cluster. -. Configure monitoring in {auditbeat-ref}/monitoring.html[Auditbeat], -{filebeat-ref}/monitoring.html[Filebeat], -{heartbeat-ref}/monitoring.html[Heartbeat], -{metricbeat-ref}/monitoring.html[Metricbeat], -{packetbeat-ref}/monitoring.html[Packetbeat], and -{winlogbeat-ref}/monitoring.html[Winlogbeat]. +-- -. Open {kib} in your web browser and log in. If you are running {kib} -locally, go to `http://localhost:5601/`. To access {kib} and view the -monitoring dashboards, you must log in as a user who has the `kibana_user` -and `monitoring_user` roles. +.. Create users that have the `monitoring_user` and `kibana_user` +{stack-ov}/built-in-roles.html[built-in roles]. -. In the side navigation, click *Monitoring*. The first time you open {kib} -monitoring, data collection is -disabled. You will be prompted to turn on data collection. +. Open {kib} in your web browser. + -If you have permission to turn on data collection and there is data in the cluster, -{kib} displays the monitoring dashboards. You'll see cluster alerts +-- +By default, if you are running {kib} locally, go to `http://localhost:5601/`. + +If the Elastic {security-features} are enabled, log in. +-- + +. In the side navigation, click *Monitoring*. ++ +-- +If data collection is disabled, you are prompted to turn on data collection. +If {es} {security-features} are enabled, you must have `manage` cluster +privileges to turn on data collection. + +NOTE: If you are using a separate monitoring cluster, you do not need to turn on +data collection. The dashboards appear when there is data in the monitoring +cluster. + +-- + +You'll see cluster alerts that require your attention and a summary of the available monitoring metrics for {es}, Logstash, {kib}, and Beats. To view additional information, click the -Overview, Nodes, Indices, or Instances links. -+ +Overview, Nodes, Indices, or Instances links. See <>. + [role="screenshot"] image::images/monitoring-dashboard.png[Monitoring dashboard] -+ + If {kib} can't activate monitoring, here are some things to do: -+ + * If you don't have permission to activate monitoring, contact your system administrator. -+ + * If {kib} can't find monitoring data, set the time filter to “Last 1 hour”. When monitoring data appears in your cluster, the page automatically refreshes with the monitoring summary. -+ + * Check your `xpack.monitoring.elasticsearch.url` setting. See <>. - - -include::cluster-alerts-license.asciidoc[] -include::beats-details.asciidoc[] -include::cluster-alerts.asciidoc[] -include::elasticsearch-details.asciidoc[] -include::kibana-details.asciidoc[] -include::logstash-details.asciidoc[] diff --git a/docs/plugins/known-plugins.asciidoc b/docs/plugins/known-plugins.asciidoc index 45b5ae16758c5..384f44a0adf25 100644 --- a/docs/plugins/known-plugins.asciidoc +++ b/docs/plugins/known-plugins.asciidoc @@ -18,6 +18,7 @@ This list of plugins is not guaranteed to work on your version of Kibana. Instea * https://github.com/TrumanDu/indices_view[Indices View] - View indices related information. * https://github.com/johtani/analyze-api-ui-plugin[Analyze UI] (johtani) - UI for elasticsearch _analyze API * https://github.com/TrumanDu/cleaner[Cleaner] (TrumanDu)- Setting index ttl. +* https://github.com/bitsensor/elastalert-kibana-plugin[ElastAlert Kibana Plugin] (BitSensor) - UI to create, test and edit ElastAlert rules [float] === Timelion Extensions diff --git a/docs/redirects.asciidoc b/docs/redirects.asciidoc new file mode 100644 index 0000000000000..152e9a84717f6 --- /dev/null +++ b/docs/redirects.asciidoc @@ -0,0 +1,14 @@ +[role="exclude",id="redirects"] += Deleted pages + +[partintro] +-- + +The following pages have moved or been deleted. + +-- +[role="exclude",id="monitoring-xpack-kibana"] +== Configuring monitoring in {kib} + +See <>. + diff --git a/docs/reporting/reporting-troubleshooting.asciidoc b/docs/reporting/reporting-troubleshooting.asciidoc index 5576033421b63..b30fe28bd7072 100644 --- a/docs/reporting/reporting-troubleshooting.asciidoc +++ b/docs/reporting/reporting-troubleshooting.asciidoc @@ -16,6 +16,10 @@ those characters is installed. You might see "There was an error generating your report" or one of the following errors when you download your report. See below for an explanation of why the failure occurred and what you can do to fix it. +[float] +=== Data Table Visualization does not show all data in PDF reports +There is currently a known limitation with the Data Table visualization that only the first page of data rows, which are the only data visible on the screen, are shown in PDF reports. + [float] ==== `You must install fontconfig and freetype for Reporting to work'` Reporting using PhantomJS, the default browser, relies on system packages. Install the appropriate fontconfig and freetype diff --git a/docs/security/authorization/index.asciidoc b/docs/security/authorization/index.asciidoc index ddc5bca0cb042..3320843bc7a81 100644 --- a/docs/security/authorization/index.asciidoc +++ b/docs/security/authorization/index.asciidoc @@ -2,10 +2,13 @@ [[xpack-security-authorization]] === Authorization -Authorizing users to use {kib} in most configurations is as simple as assigning the user +Authorizing users to use {kib} in simple configurations is as easy as assigning the user either the `kibana_user` or `kibana_dashboard_only_user` reserved role. If you're running -a single tenant of {kib} against your {es} cluster, this is sufficient and no other -action is required. +a single tenant of {kib} against your {es} cluster, and you're not controlling access to individual spaces, then this is sufficient and no other action is required. + +==== Spaces + +If you want to control individual spaces in {kib}, do **not** use the `kibana_user` or `kibana_dashboard_only_user` roles. Users with these roles are able to access all spaces in Kibana. Instead, create your own roles that grant access to specific spaces. ==== Multi-tenant {kib} @@ -15,6 +18,8 @@ either the *Management / Security / Roles* page in {kib} or the <> at that tenant. After creating the custom role, you should assign this role to the user(s) that you wish to have access. +While multi-tenant installations are supported, the recommended approach to securing access to segments of {kib} is to grant users access to specific spaces. + ==== Legacy roles Prior to {kib} 6.4, {kib} users required index privileges to the `kibana.index` diff --git a/docs/security/securing-communications/index.asciidoc b/docs/security/securing-communications/index.asciidoc index e6b3987b36014..9e52c42b3c3c9 100644 --- a/docs/security/securing-communications/index.asciidoc +++ b/docs/security/securing-communications/index.asciidoc @@ -58,7 +58,7 @@ For more information, see <>. + -- NOTE: To perform this step, you must -{ref}/configuring-security.html[enable the {security} feature in {es}] or you +{ref}/configuring-security.html[enable the {es} {security-features}] or you must have a proxy that provides an HTTPS endpoint for {es}. -- @@ -89,3 +89,36 @@ Setting the `certificateAuthorities` property lets you use the default For more information, see <>. -- + +. (Optional) If the Elastic {monitor-features} are enabled, configure {kib} to +connect to the {es} monitoring cluster via HTTPS: ++ +-- +NOTE: To perform this step, you must +{ref}/configuring-security.html[enable the {es} {security-features}] or you +must have a proxy that provides an HTTPS endpoint for {es}. + +-- + +.. Specify the HTTPS URL in the `xpack.monitoring.elasticsearch.url` setting in +the {kib} configuration file, `kibana.yml` ++ +-- +[source,yaml] +-------------------------------------------------------------------------------- +xpack.monitoring.elasticsearch.url: "https://:9200" +-------------------------------------------------------------------------------- +-- + +.. Specify the `xpack.monitoring.elasticsearch.ssl.*` settings in the +`kibana.yml` file. ++ +-- +For example, if you are using your own certificate authority to sign +certificates, specify the location of the PEM file in the `kibana.yml` file: + +[source,yaml] +-------------------------------------------------------------------------------- +xpack.monitoring.elasticsearch.ssl.certificateAuthorities: /path/to/your/cacert.pem +-------------------------------------------------------------------------------- +-- diff --git a/docs/settings/reporting-settings.asciidoc b/docs/settings/reporting-settings.asciidoc index 9be86f53852f2..6aafeedf9cba4 100644 --- a/docs/settings/reporting-settings.asciidoc +++ b/docs/settings/reporting-settings.asciidoc @@ -51,8 +51,22 @@ reports, you might need to change the following settings. How often the index that stores reporting jobs rolls over to a new index. Valid values are `year`, `month`, `week`, `day`, and `hour`. Defaults to `week`. +`xpack.reporting.queue.pollEnabled`:: +Set to `true` (default) to enable the Kibana instance to to poll the index for +pending jobs and claim them for execution. Setting this to `false` allows the +Kibana instance to only add new jobs to the reporting queue, list jobs, and +provide the downloads to completed report through the UI. + +[NOTE] +============ +Running multiple instances of Kibana in a cluster for load balancing of +reporting requires identical values for `xpack.reporting.encryptionKey` and, if +security is enabled, `xpack.security.encryptionKey`. +============ + `xpack.reporting.queue.pollInterval`:: -How often idle workers poll the index for pending jobs. Defaults to `3000` (3 seconds). +Specifies the number of milliseconds that idle workers wait between polling the +index for pending jobs. Defaults to `3000` (3 seconds). [[xpack-reporting-q-timeout]]`xpack.reporting.queue.timeout`:: How long each worker has to produce a report. If your machine is slow or under @@ -122,5 +136,10 @@ content. The index is automatically created if it does not already exist. Defaults to `.reporting` `xpack.reporting.roles.allow`:: -Specifies the roles in addition to superusers that are allowed to access reporting. +Specifies the roles in addition to superusers that can use reporting. Defaults to `[ "reporting_user" ]` ++ +-- +NOTE: Each user has access to only their own reports. + +-- diff --git a/docs/settings/settings-xkb.asciidoc b/docs/settings/settings-xkb.asciidoc index 034bc43a4f109..979882e31701c 100644 --- a/docs/settings/settings-xkb.asciidoc +++ b/docs/settings/settings-xkb.asciidoc @@ -14,3 +14,4 @@ include::dev-settings.asciidoc[] include::graph-settings.asciidoc[] include::ml-settings.asciidoc[] include::reporting-settings.asciidoc[] +include::spaces-settings.asciidoc[] diff --git a/docs/settings/spaces-settings.asciidoc b/docs/settings/spaces-settings.asciidoc new file mode 100644 index 0000000000000..bb0a15b29a087 --- /dev/null +++ b/docs/settings/spaces-settings.asciidoc @@ -0,0 +1,22 @@ +[role="xpack"] +[[spaces-settings-kb]] +=== Spaces settings in {kib} +++++ +Spaces settings +++++ + +By default, Spaces is enabled in Kibana, and you can secure Spaces using +roles when Security is enabled. + +[float] +[[spaces-settings]] +==== Spaces settings + +`xpack.spaces.enabled`:: +Set to `true` (default) to enable Spaces in {kib}. + +`xpack.spaces.maxSpaces`:: +The maximum amount of Spaces that can be used with this instance of Kibana. Some operations +in Kibana return all spaces using a single `_search` from Elasticsearch, so this must be +set lower than the `index.max_result_window` in Elasticsearch. +Defaults to `1000`. \ No newline at end of file diff --git a/docs/setup/settings.asciidoc b/docs/setup/settings.asciidoc index 55128f213f356..4303e739d73fa 100644 --- a/docs/setup/settings.asciidoc +++ b/docs/setup/settings.asciidoc @@ -49,6 +49,11 @@ certificate and key files. These files are used to verify the identity of Kibana `elasticsearch.ssl.verificationMode:`:: *Default: full* Controls the verification of certificates presented by Elasticsearch. Valid values are `none`, `certificate`, and `full`. `full` performs hostname verification, and `certificate` does not. +`elasticsearch.ssl.alwaysPresentCertificate:`:: *Default: false* Controls whether to always present the certificate specified +by `elasticsearch.ssl.certificate` when requested. This applies to all requests to Elasticsearch, including requests that are +proxied for end-users. Setting this to `true` when Elasticsearch is using certificates to authenticate users can lead to proxied +requests for end-users being executed as the identity tied to the configured certificate. + `elasticsearch.startupTimeout:`:: *Default: 5000* Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying. diff --git a/docs/setup/upgrade.asciidoc b/docs/setup/upgrade.asciidoc index 548120541b5c9..9531831efd7de 100644 --- a/docs/setup/upgrade.asciidoc +++ b/docs/setup/upgrade.asciidoc @@ -41,3 +41,5 @@ include::upgrade/upgrade-standard.asciidoc[] include::upgrade/upgrade-standard-reindex.asciidoc[] include::upgrade/upgrade-new-install.asciidoc[] + +include::upgrade/upgrade-migrations.asciidoc[] diff --git a/docs/setup/upgrade/upgrade-migrations.asciidoc b/docs/setup/upgrade/upgrade-migrations.asciidoc new file mode 100644 index 0000000000000..6d140d7743ab8 --- /dev/null +++ b/docs/setup/upgrade/upgrade-migrations.asciidoc @@ -0,0 +1,48 @@ +[[upgrade-migrations]] +=== Saved object migrations + +Every time Kibana is upgraded it checks to see if all saved objects, such as dashboards, visualizations, and index patterns, are compatible with the new version. If any objects need to be updated, then the automatic saved object migration process is kicked off. + +[float] +[[upgrade-migrations-process]] +==== How the process works + +Saved objects are stored in an index named `.kibana_N`, where `N` is a number that increments over time as Kibana is upgraded. The index alias `.kibana` points to the latest up-to-date index for a given install. + +NOTE: Prior to 6.5.0, saved objects were stored directly in an index named `.kibana`, so the first time you upgrade to Kibana version 6.5+, Kibana will migrate into `.kibana_1` and set `.kibana` up as an index alias. + +While Kibana is starting up and before serving any HTTP traffic, it checks to see if any internal mapping changes or data transformations for existing saved objects are required. + +When changes are necessary, a new incremental `.kibana_N` index is created with updated mappings, then the saved objects are loaded in batches from the existing index, transformed to whatever extent necessary, and added to this new index. + +Once the objects are migrated, the `.kibana` index alias is updated to point to the new index, and Kibana finishes starting up and serving HTTP traffic. + +[float] +[[upgrade-migrations-old-indices]] +==== Handling old `.kibana` indices + +After migrations have run, there will be multiple Kibana indices in Elasticsearch: (`.kibana_1`, `.kibana_2`, etc). Kibana only uses the index that the `.kibana` alias points to. The other Kibana indices can be safely deleted, but are left around as a matter of historical record, and to facilitate rolling Kibana back to a previous version. + +[float] +[[upgrade-migrations-errors]] +==== Handling errors during saved object migrations + +If Kibana terminates unexpectedly while migrating a saved object index, some additional work may be required in order to get Kibana to re-attempt the migration. + +For example, if the `.kibana` alias is pointing to `.kibana_4`, and there is a `.kibana_5` index in Elasticsearch, the `.kibana_5` index will need to be deleted. Kibana will never attempt to overwrite an existing index. + +[float] +[[upgrade-migrations-multiple-instances]] +==== Support for multiple kibana instances + +If you're running multiple Kibana instances for a single index behind a load balancer, it's important that you stop all instances before upgrading, so you do not have multiple different versions of Kibana trying to perform saved object migrations. + +The first instance that triggers saved object migrations will run the entire process. Any other instances started up while a migration is running will log a message and then wait until saved object migration has completed before they start serving HTTP traffic. + +[float] +[[upgrade-migrations-rolling-back]] +==== Rolling back to a previous version of Kibana + +When rolling Kibana back to a previous version, point the `.kibana` alias to the appropriate Kibana index. When you have the previous version running again, delete the more recent `.kibana_N` index or indices so that future upgrades are based on the current Kibana index. + +WARNING: Rolling back to a previous Kibana version can result in saved object data loss if you had successfully upgraded and made changes to saved objects before rolling back. diff --git a/docs/spaces/getting-started.asciidoc b/docs/spaces/getting-started.asciidoc new file mode 100644 index 0000000000000..e6a96553873b7 --- /dev/null +++ b/docs/spaces/getting-started.asciidoc @@ -0,0 +1,8 @@ +[role="xpack"] +[[spaces-getting-started]] +=== Getting Started + +Spaces are automatically enabled in {kib}. If you don't wish to use this feature, you can disable it +by setting `xpack.spaces.enabled` to `false` in your `kibana.yml` configuration file. + +{kib} automatically creates a default space for you. If you are upgrading from another version of {kib}, then the default space will contain all of your existing saved objects. Although you can't delete the default space, you can customize it to your liking. \ No newline at end of file diff --git a/docs/spaces/images/delete-space.png b/docs/spaces/images/delete-space.png new file mode 100644 index 0000000000000..8237df1136a9e Binary files /dev/null and b/docs/spaces/images/delete-space.png differ diff --git a/docs/spaces/images/edit-space.png b/docs/spaces/images/edit-space.png new file mode 100644 index 0000000000000..dae7d01f665c0 Binary files /dev/null and b/docs/spaces/images/edit-space.png differ diff --git a/docs/spaces/images/securing-spaces.png b/docs/spaces/images/securing-spaces.png new file mode 100644 index 0000000000000..a94d2c36d4f5d Binary files /dev/null and b/docs/spaces/images/securing-spaces.png differ diff --git a/docs/spaces/images/space-management.png b/docs/spaces/images/space-management.png new file mode 100644 index 0000000000000..bd58605362024 Binary files /dev/null and b/docs/spaces/images/space-management.png differ diff --git a/docs/spaces/images/space-selector.png b/docs/spaces/images/space-selector.png new file mode 100644 index 0000000000000..a1977b01d1fa0 Binary files /dev/null and b/docs/spaces/images/space-selector.png differ diff --git a/docs/spaces/index.asciidoc b/docs/spaces/index.asciidoc new file mode 100644 index 0000000000000..b40c4267c2b49 --- /dev/null +++ b/docs/spaces/index.asciidoc @@ -0,0 +1,17 @@ +[role="xpack"] +[[xpack-spaces]] +== Spaces + +With spaces, you can organize your dashboards and other saved objects into meaningful categories. +After creating your own spaces, you will be asked to choose a space when you enter {kib}. Once inside a space, +you will only see the dashboards and other saved objects that belong to that space. You can change your active space at any time. + +With security enabled, you can control which users have access to individual spaces. + +[role="screenshot"] +image::spaces/images/space-selector.png["Space selector screen"] + +include::getting-started.asciidoc[] +include::managing-spaces.asciidoc[] +include::securing-spaces.asciidoc[] +include::moving-saved-objects.asciidoc[] diff --git a/docs/spaces/managing-spaces.asciidoc b/docs/spaces/managing-spaces.asciidoc new file mode 100644 index 0000000000000..73a21ff049b36 --- /dev/null +++ b/docs/spaces/managing-spaces.asciidoc @@ -0,0 +1,25 @@ +[role="xpack"] +[[spaces-managing]] +=== Managing spaces +You can manage spaces from the **Management > Spaces** page. Here you can create, edit, and delete your spaces. + +[NOTE] +{kib} has an <> if you want to create your spaces programatically. + +[role="screenshot"] +image::spaces/images/space-management.png["Space Management"] + +==== Creating and updating spaces +You can create as many spaces as you like, but each space must have a unique space identifier. The space identifier is a short string of text that is part of the {kib} URL when you are inside that space. {kib} automatically suggests a space identifier based on the name of your space, but you are free to customize this to your liking. + +[NOTE] +You cannot change the space identifier once the space is created. + +[role="screenshot"] +image::spaces/images/edit-space.png["Updating a space"] + +==== Deleting spaces +Deleting a space is a destructive operation, which cannot be undone. When you delete a space, all of the saved objects that belong to that space are also deleted. + +[role="screenshot"] +image::spaces/images/delete-space.png["Deleting a space"] \ No newline at end of file diff --git a/docs/spaces/moving-saved-objects.asciidoc b/docs/spaces/moving-saved-objects.asciidoc new file mode 100644 index 0000000000000..e6a116f54a252 --- /dev/null +++ b/docs/spaces/moving-saved-objects.asciidoc @@ -0,0 +1,14 @@ +[role="xpack"] +[[spaces-moving-objects]] +=== Moving saved objects between spaces +You can use {kib}'s <> interface to copy objects from one space to another: + +1. Navigate to the space that contains your saved objects. +2. Export your saved objects via the <> interface. +3. Navigate to the space you are importing to. +4. Import your saved objects via the <> interface. +5. (optional) Delete the saved objects from the space you exported from, if you don't want to keep a copy there. + + +[NOTE] +{kib} also has experimental <> and <> dashboard APIs if you are looking for a dashboard-centric way to automate this process. \ No newline at end of file diff --git a/docs/spaces/securing-spaces.asciidoc b/docs/spaces/securing-spaces.asciidoc new file mode 100644 index 0000000000000..1fd6e915bc4f8 --- /dev/null +++ b/docs/spaces/securing-spaces.asciidoc @@ -0,0 +1,7 @@ +[role="xpack"] +[[spaces-securing]] +=== Securing spaces + +With security enabled, you can control who has access to specific spaces. You can manage access in **Management > Roles**. + +image::spaces/images/securing-spaces.png["Securing spaces"] \ No newline at end of file diff --git a/docs/visualize/vega.asciidoc b/docs/visualize/vega.asciidoc index 9f88eeefbbb21..7351cd65ef090 100644 --- a/docs/visualize/vega.asciidoc +++ b/docs/visualize/vega.asciidoc @@ -215,7 +215,8 @@ the graph must specify `type=map` in the host configuration: // defaults to true, shows +/- buttons to zoom in/out "zoomControl": false, - // defaults to true, disables mouse wheel zoom + // Defaults to 'false', disables mouse wheel zoom. If set to + // 'true', map may zoom unexpectedly while scrolling dashboard "scrollWheelZoom": false, // When false, repaints on each move frame. diff --git a/package.json b/package.json index 9b97b52b54735..c029d8dbc15eb 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,9 @@ "dashboarding" ], "private": true, - "version": "7.0.0-alpha1", + "version": "7.0.0", "branch": "master", + "types": "./target/types/type_exports.d.ts", "build": { "number": 8467, "sha": "6cb7fec4e154faa0a4a3fee4b33dfef91b9870d9" @@ -37,7 +38,7 @@ "test:server": "grunt test:server", "test:coverage": "grunt test:coverage", "checkLicenses": "grunt licenses --dev", - "build": "node scripts/build", + "build": "node scripts/build --all-platforms", "start": "node scripts/kibana --dev", "debug": "node --nolazy --inspect scripts/kibana --dev", "debug-break": "node --nolazy --inspect-brk scripts/kibana --dev", @@ -52,23 +53,46 @@ "uiFramework:build": "cd packages/kbn-ui-framework && yarn docSiteBuild", "uiFramework:createComponent": "cd packages/kbn-ui-framework && yarn createComponent", "uiFramework:documentComponent": "cd packages/kbn-ui-framework && yarn documentComponent", - "kbn:watch": "node scripts/kibana --dev --logging.json=false" + "kbn:watch": "node scripts/kibana --dev --logging.json=false", + "build:types": "tsc --p tsconfig.types.json", + "kbn:bootstrap": "yarn build:types" }, "repository": { "type": "git", "url": "https://github.com/elastic/kibana.git" }, + "resolutions": { + "**/@types/node": "8.10.21", + "@types/react": "16.3.14" + }, + "workspaces": { + "packages": [ + "packages/*", + "x-pack", + "x-pack/plugins/*" + ], + "nohoist": [ + "**/@types/*", + "**/@types/*/**", + "**/grunt-*", + "**/grunt-*/**", + "x-pack/typescript" + ] + }, "dependencies": { - "@elastic/eui": "4.0.1", + "@elastic/eui": "5.0.0", "@elastic/filesaver": "1.1.2", + "@elastic/good": "8.1.1-kibana1", "@elastic/numeral": "2.3.2", "@elastic/ui-ace": "0.2.3", - "@kbn/babel-preset": "link:packages/kbn-babel-preset", - "@kbn/datemath": "link:packages/kbn-datemath", - "@kbn/i18n": "link:packages/kbn-i18n", - "@kbn/pm": "link:packages/kbn-pm", - "@kbn/test-subj-selector": "link:packages/kbn-test-subj-selector", - "@kbn/ui-framework": "link:packages/kbn-ui-framework", + "@kbn/babel-preset": "1.0.0", + "@kbn/config-schema": "1.0.0", + "@kbn/datemath": "5.0.0", + "@kbn/i18n": "1.0.0", + "@kbn/pm": "1.0.0", + "@kbn/test-subj-selector": "0.2.1", + "@kbn/ui-framework": "1.0.0", + "JSONStream": "1.1.1", "abortcontroller-polyfill": "^1.1.9", "angular": "1.6.9", "angular-aria": "1.6.6", @@ -83,7 +107,7 @@ "babel-polyfill": "6.20.0", "babel-register": "6.18.0", "bluebird": "2.9.34", - "boom": "5.2.0", + "boom": "^7.2.0", "brace": "0.11.1", "cache-loader": "1.0.3", "chalk": "^2.4.1", @@ -96,28 +120,27 @@ "d3-cloud": "1.2.1", "del": "^3.0.0", "dragula": "3.7.0", - "elasticsearch": "^15.1.1", - "elasticsearch-browser": "^15.1.1", + "elasticsearch": "^15.2.0", + "elasticsearch-browser": "^15.2.0", "encode-uri-query": "1.0.0", - "even-better": "7.0.2", "execa": "^0.10.0", "expiry-js": "0.1.7", "extract-text-webpack-plugin": "3.0.1", "file-loader": "1.1.4", "font-awesome": "4.4.0", + "getos": "^3.1.0", "glob": "^7.1.2", "glob-all": "^3.1.0", "good-squeeze": "2.1.0", - "h2o2": "5.1.1", - "h2o2-latest": "npm:h2o2@8.1.2", + "h2o2": "^8.1.2", "handlebars": "4.0.5", - "hapi": "14.2.0", - "hapi-latest": "npm:hapi@17.5.0", + "hapi": "^17.5.3", "hjson": "3.1.0", + "hoek": "^5.0.4", "http-proxy-agent": "^2.1.0", "https-proxy-agent": "^2.2.1", - "inert": "4.0.2", - "joi": "10.4.1", + "inert": "^5.1.0", + "joi": "^13.5.2", "jquery": "^3.3.1", "js-yaml": "3.4.1", "json-stringify-pretty-compact": "1.0.4", @@ -130,7 +153,7 @@ "leaflet.heat": "0.2.0", "less": "2.7.1", "less-loader": "4.0.5", - "lodash": "3.10.1", + "lodash": "npm:@elastic/lodash@3.10.1-kibana1", "lru-cache": "4.1.1", "markdown-it": "^8.4.1", "minimatch": "^3.0.4", @@ -141,6 +164,8 @@ "ngreact": "0.5.1", "no-ui-slider": "1.2.0", "node-fetch": "1.3.2", + "opn": "^5.4.0", + "oppsy": "^2.0.0", "pegjs": "0.9.0", "postcss-loader": "2.0.6", "prop-types": "15.5.8", @@ -157,7 +182,7 @@ "react-input-range": "^1.3.0", "react-markdown": "^3.1.4", "react-redux": "^5.0.7", - "react-router-dom": "4.2.2", + "react-router-dom": "^4.3.1", "react-sizeme": "^2.3.6", "react-toggle": "4.0.2", "reactcss": "1.2.3", @@ -165,7 +190,7 @@ "redux-actions": "2.2.1", "redux-thunk": "2.3.0", "regression": "2.0.0", - "request": "^2.85.0", + "request": "^2.88.0", "reselect": "^3.0.1", "resize-observer-polyfill": "1.2.1", "rimraf": "2.4.3", @@ -176,10 +201,11 @@ "style-loader": "0.19.0", "tar": "2.2.0", "tinygradient": "0.3.0", - "tinymath": "0.2.1", + "tinymath": "1.1.0", "topojson-client": "3.0.0", "trunc-html": "1.0.2", "trunc-text": "1.0.2", + "ts-optchain": "^0.1.1", "tslib": "^1.9.3", "type-detect": "^4.0.8", "uglifyjs-webpack-plugin": "^1.2.7", @@ -192,63 +218,77 @@ "vega-lite": "^2.4.0", "vega-schema-url-parser": "1.0.0", "vega-tooltip": "^0.9.14", - "vision": "4.1.0", + "vision": "^5.3.3", "webpack": "3.6.0", "webpack-merge": "4.1.0", "whatwg-fetch": "^2.0.3", - "wreck": "12.4.0", - "x-pack": "link:x-pack", + "wreck": "^14.0.2", + "x-pack": "7.0.0", "yauzl": "2.7.0" }, "devDependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0", - "@elastic/eslint-config-kibana": "link:packages/eslint-config-kibana", - "@elastic/eslint-plugin-kibana-custom": "link:packages/eslint-plugin-kibana-custom", - "@kbn/es": "link:packages/kbn-es", - "@kbn/eslint-import-resolver-kibana": "link:packages/kbn-eslint-import-resolver-kibana", - "@kbn/eslint-plugin-license-header": "link:packages/kbn-eslint-plugin-license-header", - "@kbn/plugin-generator": "link:packages/kbn-plugin-generator", - "@kbn/test": "link:packages/kbn-test", + "@elastic/eslint-config-kibana": "0.15.0", + "@elastic/eslint-plugin-kibana-custom": "1.1.0", + "@kbn/es": "1.0.0", + "@kbn/eslint-import-resolver-kibana": "2.0.0", + "@kbn/eslint-plugin-license-header": "1.0.0", + "@kbn/plugin-generator": "1.0.0", + "@kbn/test": "1.0.0", "@octokit/rest": "^15.10.0", - "@types/angular": "^1.6.45", + "@types/angular": "^1.6.50", + "@types/angular-mocks": "^1.7.0", "@types/babel-core": "^6.25.5", "@types/bluebird": "^3.1.1", "@types/boom": "^7.2.0", "@types/chance": "^1.0.0", "@types/classnames": "^2.2.3", + "@types/d3": "^5.0.0", "@types/dedent": "^0.7.0", + "@types/del": "^3.0.1", + "@types/elasticsearch": "^5.0.26", "@types/enzyme": "^3.1.12", "@types/eslint": "^4.16.2", "@types/execa": "^0.9.0", "@types/fetch-mock": "^5.12.2", "@types/getopts": "^2.0.0", "@types/glob": "^5.0.35", - "@types/hapi-latest": "npm:@types/hapi@17.0.12", + "@types/graphql": "^0.13.1", + "@types/hapi": "^17.0.18", "@types/has-ansi": "^3.0.0", + "@types/hoek": "^4.1.3", "@types/jest": "^23.3.1", - "@types/joi": "^10.4.4", + "@types/joi": "^13.4.2", "@types/jquery": "^3.3.6", "@types/js-yaml": "^3.11.1", "@types/listr": "^0.13.0", "@types/lodash": "^3.10.1", "@types/minimatch": "^2.0.29", + "@types/moment-timezone": "^0.5.8", + "@types/mustache": "^0.8.31", "@types/node": "^8.10.20", + "@types/opn": "^5.1.0", + "@types/podium": "^1.0.0", "@types/prop-types": "^15.5.3", "@types/puppeteer": "^1.6.2", - "@types/react": "^16.3.14", + "@types/react": "16.3.14", "@types/react-dom": "^16.0.5", "@types/react-redux": "^6.0.6", + "@types/react-router-dom": "^4.3.1", "@types/react-virtualized": "^9.18.7", "@types/redux": "^3.6.31", "@types/redux-actions": "^2.2.1", "@types/semver": "^5.5.0", "@types/sinon": "^5.0.1", "@types/strip-ansi": "^3.0.0", + "@types/styled-components": "^3.0.1", "@types/supertest": "^2.0.5", "@types/type-detect": "^4.0.1", "@types/uuid": "^3.4.4", + "@types/zen-observable": "^0.8.0", "angular-mocks": "1.4.7", + "archiver": "^3.0.0", "babel-eslint": "^9.0.0", "babel-jest": "^23.4.2", "backport": "4.4.1", @@ -256,22 +296,23 @@ "chance": "1.0.10", "cheerio": "0.22.0", "chokidar": "1.6.0", - "chromedriver": "^2.41.0", + "chromedriver": "2.42.1", "classnames": "2.2.5", "dedent": "^0.7.0", "enzyme": "3.2.0", "enzyme-adapter-react-16": "^1.1.1", "enzyme-to-json": "3.3.1", "eslint": "^5.6.0", - "eslint-config-prettier": "^2.9.0", - "eslint-plugin-babel": "4.1.2", - "eslint-plugin-import": "2.8.0", - "eslint-plugin-jest": "^21.22.0", - "eslint-plugin-mocha": "4.11.0", + "eslint-config-prettier": "^3.1.0", + "eslint-plugin-babel": "^5.2.0", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-jest": "^21.22.1", + "eslint-plugin-jsx-a11y": "^6.1.2", + "eslint-plugin-mocha": "^5.2.0", "eslint-plugin-no-unsanitized": "^3.0.2", - "eslint-plugin-prefer-object-spread": "1.2.1", - "eslint-plugin-prettier": "^2.6.0", - "eslint-plugin-react": "7.5.1", + "eslint-plugin-prefer-object-spread": "^1.2.1", + "eslint-plugin-prettier": "^2.6.2", + "eslint-plugin-react": "^7.11.1", "event-stream": "3.3.2", "expect.js": "0.3.1", "faker": "1.1.0", @@ -281,15 +322,16 @@ "globby": "^8.0.1", "grunt": "1.0.1", "grunt-cli": "^1.2.0", - "grunt-contrib-watch": "^1.0.0", + "grunt-contrib-watch": "^1.1.0", "grunt-karma": "2.0.0", "grunt-peg": "^2.0.1", "grunt-run": "0.7.0", "gulp-babel": "^7.0.1", "gulp-sourcemaps": "1.7.3", "has-ansi": "^3.0.0", - "husky": "0.8.1", + "husky": "^0.14.3", "image-diff": "1.6.0", + "intl-messageformat-parser": "^1.4.0", "istanbul-instrumenter-loader": "3.0.0", "jest": "^23.5.0", "jest-cli": "^23.5.0", @@ -308,7 +350,7 @@ "license-checker": "^16.0.0", "listr": "^0.14.1", "load-grunt-config": "0.19.2", - "makelogs": "^4.1.0", + "makelogs": "^4.3.0", "mocha": "3.3.0", "mock-fs": "^4.4.2", "murmurhash3js": "3.0.1", @@ -318,7 +360,7 @@ "normalize-path": "^3.0.0", "pixelmatch": "4.0.2", "postcss": "^7.0.2", - "prettier": "^1.14.0", + "prettier": "^1.14.3", "proxyquire": "1.7.11", "regenerate": "^1.4.0", "selenium-webdriver": "^4.0.0-alpha.1", @@ -333,7 +375,7 @@ "ts-node": "^7.0.1", "tslint": "^5.11.0", "tslint-config-prettier": "^1.15.0", - "tslint-plugin-prettier": "^1.3.0", + "tslint-plugin-prettier": "^2.0.0", "typescript": "^3.0.3", "vinyl-fs": "^3.0.2", "xml2js": "^0.4.19", @@ -342,6 +384,6 @@ }, "engines": { "node": "8.11.4", - "yarn": "^1.6.0" + "yarn": "^1.10.1" } -} +} \ No newline at end of file diff --git a/packages/eslint-config-kibana/.eslintrc.js b/packages/eslint-config-kibana/.eslintrc.js index c14d0268e1578..d2d1efa9180fa 100644 --- a/packages/eslint-config-kibana/.eslintrc.js +++ b/packages/eslint-config-kibana/.eslintrc.js @@ -10,8 +10,9 @@ module.exports = { 'import', 'no-unsanitized', 'prefer-object-spread', + 'jsx-a11y', ], - + env: { es6: true, node: true, @@ -116,6 +117,30 @@ module.exports = { arrow: true, }], 'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'], + 'jsx-a11y/accessible-emoji': 'error', + 'jsx-a11y/alt-text': 'error', + 'jsx-a11y/anchor-has-content': 'error', + 'jsx-a11y/aria-activedescendant-has-tabindex': 'error', + 'jsx-a11y/aria-props': 'error', + 'jsx-a11y/aria-proptypes': 'error', + 'jsx-a11y/aria-role': 'error', + 'jsx-a11y/aria-unsupported-elements': 'error', + 'jsx-a11y/heading-has-content': 'error', + 'jsx-a11y/html-has-lang': 'error', + 'jsx-a11y/iframe-has-title': 'error', + 'jsx-a11y/interactive-supports-focus': 'error', + 'jsx-a11y/media-has-caption': 'error', + 'jsx-a11y/mouse-events-have-key-events': 'error', + 'jsx-a11y/no-access-key': 'error', + 'jsx-a11y/no-distracting-elements': 'error', + 'jsx-a11y/no-interactive-element-to-noninteractive-role': 'error', + 'jsx-a11y/no-noninteractive-element-interactions': 'error', + 'jsx-a11y/no-noninteractive-element-to-interactive-role': 'error', + 'jsx-a11y/no-redundant-roles': 'error', + 'jsx-a11y/role-has-required-aria-props': 'error', + 'jsx-a11y/role-supports-aria-props': 'error', + 'jsx-a11y/scope': 'error', + 'jsx-a11y/tabindex-no-positive': 'error', 'react/jsx-equals-spacing': ['error', 'never'], 'react/jsx-indent': ['error', 2], 'react/no-will-update-set-state': 'error', diff --git a/packages/eslint-config-kibana/package.json b/packages/eslint-config-kibana/package.json index 6c02d7579de76..d2e639eebbbe3 100644 --- a/packages/eslint-config-kibana/package.json +++ b/packages/eslint-config-kibana/package.json @@ -17,12 +17,13 @@ "peerDependencies": { "babel-eslint": "^9.0.0", "eslint": "^5.6.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.6.0", - "eslint-plugin-jest": "^21.22.0", - "eslint-plugin-mocha": "^4.9.0", + "eslint-plugin-babel": "^5.2.0", + "eslint-plugin-jsx-a11y": "^6.1.2", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-jest": "^21.22.1", + "eslint-plugin-mocha": "^5.2.0", "eslint-plugin-no-unsanitized": "^3.0.2", "eslint-plugin-prefer-object-spread": "^1.2.1", - "eslint-plugin-react": "^7.1.0" + "eslint-plugin-react": "^7.11.1" } } diff --git a/packages/kbn-babel-preset/yarn.lock b/packages/kbn-babel-preset/yarn.lock deleted file mode 100644 index 797fb16861133..0000000000000 --- a/packages/kbn-babel-preset/yarn.lock +++ /dev/null @@ -1,664 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-builder-react-jsx@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - esutils "^2.0.2" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-add-module-exports@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-async-generators@^6.5.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" - -babel-plugin-syntax-class-properties@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-flow@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" - -babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" - -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-generator-functions@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-class-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" - dependencies: - babel-helper-function-name "^6.24.1" - babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-define@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-define/-/babel-plugin-transform-define-1.3.0.tgz#94c5f9459c810c738cc7c50cbd44a31829d6f319" - dependencies: - lodash "4.17.4" - traverse "0.6.6" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-flow-strip-types@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" - dependencies: - babel-plugin-syntax-flow "^6.18.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-react-display-name@^6.23.0: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-self@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz#df6d80a9da2612a121e6ddd7558bcbecf06e636e" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-source@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" - dependencies: - babel-helper-builder-react-jsx "^6.24.1" - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-preset-env@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.4.0.tgz#c8e02a3bcc7792f23cded68e0355b9d4c28f0f7a" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^1.4.0" - invariant "^2.2.2" - -babel-preset-flow@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" - dependencies: - babel-plugin-transform-flow-strip-types "^6.22.0" - -babel-preset-react@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" - dependencies: - babel-plugin-syntax-jsx "^6.3.13" - babel-plugin-transform-react-display-name "^6.23.0" - babel-plugin-transform-react-jsx "^6.24.1" - babel-plugin-transform-react-jsx-self "^6.22.0" - babel-plugin-transform-react-jsx-source "^6.22.0" - babel-preset-flow "^6.23.0" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -browserslist@^1.4.0: - version "1.7.7" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" - dependencies: - caniuse-db "^1.0.30000639" - electron-to-chromium "^1.2.7" - -caniuse-db@^1.0.30000639: - version "1.0.30000800" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000800.tgz#a86e6bc23bd9a707d5df42f33e64d0495cfda218" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -core-js@^2.4.0: - version "2.5.3" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e" - -debug@^2.6.8: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -electron-to-chromium@^1.2.7: - version "1.3.32" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.32.tgz#11d0684c0840e003c4be8928f8ac5f35dbc2b4e6" - -escape-string-regexp@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -invariant@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" - dependencies: - loose-envify "^1.0.0" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -lodash@4.17.4, lodash@^4.17.4: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -loose-envify@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -private@^0.1.6: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -traverse@0.6.6: - version "0.6.6" - resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" diff --git a/packages/kbn-config-schema/package.json b/packages/kbn-config-schema/package.json new file mode 100644 index 0000000000000..4d8a017716ac4 --- /dev/null +++ b/packages/kbn-config-schema/package.json @@ -0,0 +1,20 @@ +{ + "name": "@kbn/config-schema", + "main": "./target/out/index.js", + "types": "./target/types/index.d.ts", + "version": "1.0.0", + "license": "Apache-2.0", + "private": true, + "scripts": { + "build": "tsc", + "kbn:bootstrap": "yarn build" + }, + "devDependencies": { + "typescript": "^3.0.3" + }, + "peerDependencies": { + "joi": "10.4.1", + "moment": "^2.20.1", + "type-detect": "^4.0.8" + } +} diff --git a/src/core/server/config/schema/byte_size_value/__snapshots__/index.test.ts.snap b/packages/kbn-config-schema/src/byte_size_value/__snapshots__/index.test.ts.snap similarity index 100% rename from src/core/server/config/schema/byte_size_value/__snapshots__/index.test.ts.snap rename to packages/kbn-config-schema/src/byte_size_value/__snapshots__/index.test.ts.snap diff --git a/src/core/server/config/schema/byte_size_value/index.test.ts b/packages/kbn-config-schema/src/byte_size_value/index.test.ts similarity index 100% rename from src/core/server/config/schema/byte_size_value/index.test.ts rename to packages/kbn-config-schema/src/byte_size_value/index.test.ts diff --git a/src/core/server/config/schema/byte_size_value/index.ts b/packages/kbn-config-schema/src/byte_size_value/index.ts similarity index 100% rename from src/core/server/config/schema/byte_size_value/index.ts rename to packages/kbn-config-schema/src/byte_size_value/index.ts diff --git a/src/core/server/config/schema/duration/index.ts b/packages/kbn-config-schema/src/duration/index.ts similarity index 100% rename from src/core/server/config/schema/duration/index.ts rename to packages/kbn-config-schema/src/duration/index.ts diff --git a/src/core/server/config/schema/errors/index.ts b/packages/kbn-config-schema/src/errors/index.ts similarity index 100% rename from src/core/server/config/schema/errors/index.ts rename to packages/kbn-config-schema/src/errors/index.ts diff --git a/src/core/server/config/schema/errors/schema_error.test.ts b/packages/kbn-config-schema/src/errors/schema_error.test.ts similarity index 100% rename from src/core/server/config/schema/errors/schema_error.test.ts rename to packages/kbn-config-schema/src/errors/schema_error.test.ts diff --git a/src/core/server/config/schema/errors/schema_error.ts b/packages/kbn-config-schema/src/errors/schema_error.ts similarity index 100% rename from src/core/server/config/schema/errors/schema_error.ts rename to packages/kbn-config-schema/src/errors/schema_error.ts diff --git a/src/core/server/config/schema/errors/schema_type_error.ts b/packages/kbn-config-schema/src/errors/schema_type_error.ts similarity index 100% rename from src/core/server/config/schema/errors/schema_type_error.ts rename to packages/kbn-config-schema/src/errors/schema_type_error.ts diff --git a/src/core/server/config/schema/errors/schema_types_error.ts b/packages/kbn-config-schema/src/errors/schema_types_error.ts similarity index 100% rename from src/core/server/config/schema/errors/schema_types_error.ts rename to packages/kbn-config-schema/src/errors/schema_types_error.ts diff --git a/src/core/server/config/schema/errors/validation_error.ts b/packages/kbn-config-schema/src/errors/validation_error.ts similarity index 100% rename from src/core/server/config/schema/errors/validation_error.ts rename to packages/kbn-config-schema/src/errors/validation_error.ts diff --git a/src/core/server/config/schema/index.ts b/packages/kbn-config-schema/src/index.ts similarity index 100% rename from src/core/server/config/schema/index.ts rename to packages/kbn-config-schema/src/index.ts diff --git a/packages/kbn-config-schema/src/internals/index.ts b/packages/kbn-config-schema/src/internals/index.ts new file mode 100644 index 0000000000000..78216e18555b3 --- /dev/null +++ b/packages/kbn-config-schema/src/internals/index.ts @@ -0,0 +1,291 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import Joi from 'joi'; +import { + AnySchema, + JoiRoot, + Reference, + Rules, + SchemaLike, + State, + ValidationErrorItem, + ValidationOptions, +} from 'joi'; +import { isPlainObject } from 'lodash'; +import { isDuration } from 'moment'; +import { ByteSizeValue, ensureByteSizeValue } from '../byte_size_value'; +import { ensureDuration } from '../duration'; + +export { AnySchema, Reference, SchemaLike, ValidationErrorItem }; + +function isMap(o: any): o is Map { + return o instanceof Map; +} + +const anyCustomRule: Rules = { + name: 'custom', + params: { + validator: Joi.func() + .maxArity(1) + .required(), + }, + validate(params, value, state, options) { + let validationResultMessage; + try { + validationResultMessage = params.validator(value); + } catch (e) { + validationResultMessage = e.message || e; + } + + if (typeof validationResultMessage === 'string') { + return this.createError( + 'any.custom', + { value, message: validationResultMessage }, + state, + options + ); + } + + return value; + }, +}; + +/** + * @internal + */ +export const internals = Joi.extend([ + { + name: 'any', + + rules: [anyCustomRule], + }, + { + name: 'boolean', + + base: Joi.boolean(), + coerce(value: any, state: State, options: ValidationOptions) { + // If value isn't defined, let Joi handle default value if it's defined. + if (value !== undefined && typeof value !== 'boolean') { + return this.createError('boolean.base', { value }, state, options); + } + + return value; + }, + rules: [anyCustomRule], + }, + { + name: 'string', + + base: Joi.string(), + rules: [anyCustomRule], + }, + { + name: 'bytes', + + coerce(value: any, state: State, options: ValidationOptions) { + try { + if (typeof value === 'string') { + return ByteSizeValue.parse(value); + } + + if (typeof value === 'number') { + return new ByteSizeValue(value); + } + } catch (e) { + return this.createError('bytes.parse', { value, message: e.message }, state, options); + } + + return value; + }, + pre(value: any, state: State, options: ValidationOptions) { + // If value isn't defined, let Joi handle default value if it's defined. + if (value instanceof ByteSizeValue) { + return value as any; + } + + return this.createError('bytes.base', { value }, state, options); + }, + rules: [ + anyCustomRule, + { + name: 'min', + params: { + limit: Joi.alternatives([Joi.number(), Joi.string()]).required(), + }, + validate(params, value, state, options) { + const limit = ensureByteSizeValue(params.limit); + if (value.isLessThan(limit)) { + return this.createError('bytes.min', { value, limit }, state, options); + } + + return value; + }, + }, + { + name: 'max', + params: { + limit: Joi.alternatives([Joi.number(), Joi.string()]).required(), + }, + validate(params, value, state, options) { + const limit = ensureByteSizeValue(params.limit); + if (value.isGreaterThan(limit)) { + return this.createError('bytes.max', { value, limit }, state, options); + } + + return value; + }, + }, + ], + }, + { + name: 'duration', + + coerce(value: any, state: State, options: ValidationOptions) { + try { + if (typeof value === 'string' || typeof value === 'number') { + return ensureDuration(value); + } + } catch (e) { + return this.createError('duration.parse', { value, message: e.message }, state, options); + } + + return value; + }, + pre(value: any, state: State, options: ValidationOptions) { + if (!isDuration(value)) { + return this.createError('duration.base', { value }, state, options); + } + + return value; + }, + rules: [anyCustomRule], + }, + { + name: 'number', + + base: Joi.number(), + coerce(value: any, state: State, options: ValidationOptions) { + // If value isn't defined, let Joi handle default value if it's defined. + if (value === undefined) { + return value; + } + + // Do we want to allow strings that can be converted, e.g. "2"? (Joi does) + // (this can for example be nice in http endpoints with query params) + // + // From Joi docs on `Joi.number`: + // > Generates a schema object that matches a number data type (as well as + // > strings that can be converted to numbers) + const coercedValue: any = typeof value === 'string' ? Number(value) : value; + if (typeof coercedValue !== 'number' || isNaN(coercedValue)) { + return this.createError('number.base', { value }, state, options); + } + + return value; + }, + rules: [anyCustomRule], + }, + { + name: 'object', + + base: Joi.object(), + coerce(value: any, state: State, options: ValidationOptions) { + // If value isn't defined, let Joi handle default value if it's defined. + if (value !== undefined && !isPlainObject(value)) { + return this.createError('object.base', { value }, state, options); + } + + return value; + }, + rules: [anyCustomRule], + }, + { + name: 'map', + + coerce(value: any, state: State, options: ValidationOptions) { + if (isPlainObject(value)) { + return new Map(Object.entries(value)); + } + + return value; + }, + pre(value: any, state: State, options: ValidationOptions) { + if (!isMap(value)) { + return this.createError('map.base', { value }, state, options); + } + + return value as any; + }, + rules: [ + anyCustomRule, + { + name: 'entries', + params: { + key: Joi.object().schema(), + value: Joi.object().schema(), + }, + validate(params, value, state, options) { + const result = new Map(); + for (const [entryKey, entryValue] of value) { + const { value: validatedEntryKey, error: keyError } = Joi.validate( + entryKey, + params.key + ); + + if (keyError) { + return this.createError('map.key', { entryKey, reason: keyError }, state, options); + } + + const { value: validatedEntryValue, error: valueError } = Joi.validate( + entryValue, + params.value + ); + + if (valueError) { + return this.createError( + 'map.value', + { entryKey, reason: valueError }, + state, + options + ); + } + + result.set(validatedEntryKey, validatedEntryValue); + } + + return result as any; + }, + }, + ], + }, + { + name: 'array', + + base: Joi.array(), + coerce(value: any, state: State, options: ValidationOptions) { + // If value isn't defined, let Joi handle default value if it's defined. + if (value !== undefined && !Array.isArray(value)) { + return this.createError('array.base', { value }, state, options); + } + + return value; + }, + rules: [anyCustomRule], + }, +]) as JoiRoot; diff --git a/src/core/server/config/schema/references/context_reference.ts b/packages/kbn-config-schema/src/references/context_reference.ts similarity index 100% rename from src/core/server/config/schema/references/context_reference.ts rename to packages/kbn-config-schema/src/references/context_reference.ts diff --git a/src/core/server/config/schema/references/index.ts b/packages/kbn-config-schema/src/references/index.ts similarity index 100% rename from src/core/server/config/schema/references/index.ts rename to packages/kbn-config-schema/src/references/index.ts diff --git a/src/core/server/config/schema/references/reference.ts b/packages/kbn-config-schema/src/references/reference.ts similarity index 100% rename from src/core/server/config/schema/references/reference.ts rename to packages/kbn-config-schema/src/references/reference.ts diff --git a/src/core/server/config/schema/references/sibling_reference.ts b/packages/kbn-config-schema/src/references/sibling_reference.ts similarity index 100% rename from src/core/server/config/schema/references/sibling_reference.ts rename to packages/kbn-config-schema/src/references/sibling_reference.ts diff --git a/src/core/server/config/schema/types/__snapshots__/any_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/any_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/any_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/any_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/array_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/array_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/array_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/array_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/boolean_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/boolean_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/boolean_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/boolean_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/byte_size_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/byte_size_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/byte_size_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/byte_size_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/conditional_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/conditional_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/conditional_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/conditional_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/duration_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/duration_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/duration_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/duration_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/literal_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/literal_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/literal_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/literal_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/map_of_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/map_of_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/map_of_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/map_of_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/maybe_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/maybe_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/maybe_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/maybe_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/number_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/number_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/number_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/number_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/object_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/object_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/object_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/object_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/one_of_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/one_of_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/one_of_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/one_of_type.test.ts.snap diff --git a/src/core/server/config/schema/types/__snapshots__/string_type.test.ts.snap b/packages/kbn-config-schema/src/types/__snapshots__/string_type.test.ts.snap similarity index 100% rename from src/core/server/config/schema/types/__snapshots__/string_type.test.ts.snap rename to packages/kbn-config-schema/src/types/__snapshots__/string_type.test.ts.snap diff --git a/src/core/server/config/schema/types/any_type.test.ts b/packages/kbn-config-schema/src/types/any_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/any_type.test.ts rename to packages/kbn-config-schema/src/types/any_type.test.ts diff --git a/src/core/server/config/schema/types/any_type.ts b/packages/kbn-config-schema/src/types/any_type.ts similarity index 100% rename from src/core/server/config/schema/types/any_type.ts rename to packages/kbn-config-schema/src/types/any_type.ts diff --git a/src/core/server/config/schema/types/array_type.test.ts b/packages/kbn-config-schema/src/types/array_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/array_type.test.ts rename to packages/kbn-config-schema/src/types/array_type.test.ts diff --git a/src/core/server/config/schema/types/array_type.ts b/packages/kbn-config-schema/src/types/array_type.ts similarity index 100% rename from src/core/server/config/schema/types/array_type.ts rename to packages/kbn-config-schema/src/types/array_type.ts diff --git a/src/core/server/config/schema/types/boolean_type.test.ts b/packages/kbn-config-schema/src/types/boolean_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/boolean_type.test.ts rename to packages/kbn-config-schema/src/types/boolean_type.test.ts diff --git a/src/core/server/config/schema/types/boolean_type.ts b/packages/kbn-config-schema/src/types/boolean_type.ts similarity index 100% rename from src/core/server/config/schema/types/boolean_type.ts rename to packages/kbn-config-schema/src/types/boolean_type.ts diff --git a/src/core/server/config/schema/types/byte_size_type.test.ts b/packages/kbn-config-schema/src/types/byte_size_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/byte_size_type.test.ts rename to packages/kbn-config-schema/src/types/byte_size_type.test.ts diff --git a/src/core/server/config/schema/types/byte_size_type.ts b/packages/kbn-config-schema/src/types/byte_size_type.ts similarity index 100% rename from src/core/server/config/schema/types/byte_size_type.ts rename to packages/kbn-config-schema/src/types/byte_size_type.ts diff --git a/src/core/server/config/schema/types/conditional_type.test.ts b/packages/kbn-config-schema/src/types/conditional_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/conditional_type.test.ts rename to packages/kbn-config-schema/src/types/conditional_type.test.ts diff --git a/src/core/server/config/schema/types/conditional_type.ts b/packages/kbn-config-schema/src/types/conditional_type.ts similarity index 100% rename from src/core/server/config/schema/types/conditional_type.ts rename to packages/kbn-config-schema/src/types/conditional_type.ts diff --git a/src/core/server/config/schema/types/duration_type.test.ts b/packages/kbn-config-schema/src/types/duration_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/duration_type.test.ts rename to packages/kbn-config-schema/src/types/duration_type.test.ts diff --git a/src/core/server/config/schema/types/duration_type.ts b/packages/kbn-config-schema/src/types/duration_type.ts similarity index 100% rename from src/core/server/config/schema/types/duration_type.ts rename to packages/kbn-config-schema/src/types/duration_type.ts diff --git a/src/core/server/config/schema/types/index.ts b/packages/kbn-config-schema/src/types/index.ts similarity index 100% rename from src/core/server/config/schema/types/index.ts rename to packages/kbn-config-schema/src/types/index.ts diff --git a/src/core/server/config/schema/types/literal_type.test.ts b/packages/kbn-config-schema/src/types/literal_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/literal_type.test.ts rename to packages/kbn-config-schema/src/types/literal_type.test.ts diff --git a/src/core/server/config/schema/types/literal_type.ts b/packages/kbn-config-schema/src/types/literal_type.ts similarity index 100% rename from src/core/server/config/schema/types/literal_type.ts rename to packages/kbn-config-schema/src/types/literal_type.ts diff --git a/src/core/server/config/schema/types/map_of_type.test.ts b/packages/kbn-config-schema/src/types/map_of_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/map_of_type.test.ts rename to packages/kbn-config-schema/src/types/map_of_type.test.ts diff --git a/src/core/server/config/schema/types/map_type.ts b/packages/kbn-config-schema/src/types/map_type.ts similarity index 100% rename from src/core/server/config/schema/types/map_type.ts rename to packages/kbn-config-schema/src/types/map_type.ts diff --git a/src/core/server/config/schema/types/maybe_type.test.ts b/packages/kbn-config-schema/src/types/maybe_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/maybe_type.test.ts rename to packages/kbn-config-schema/src/types/maybe_type.test.ts diff --git a/src/core/server/config/schema/types/maybe_type.ts b/packages/kbn-config-schema/src/types/maybe_type.ts similarity index 100% rename from src/core/server/config/schema/types/maybe_type.ts rename to packages/kbn-config-schema/src/types/maybe_type.ts diff --git a/src/core/server/config/schema/types/number_type.test.ts b/packages/kbn-config-schema/src/types/number_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/number_type.test.ts rename to packages/kbn-config-schema/src/types/number_type.test.ts diff --git a/src/core/server/config/schema/types/number_type.ts b/packages/kbn-config-schema/src/types/number_type.ts similarity index 100% rename from src/core/server/config/schema/types/number_type.ts rename to packages/kbn-config-schema/src/types/number_type.ts diff --git a/src/core/server/config/schema/types/object_type.test.ts b/packages/kbn-config-schema/src/types/object_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/object_type.test.ts rename to packages/kbn-config-schema/src/types/object_type.test.ts diff --git a/src/core/server/config/schema/types/object_type.ts b/packages/kbn-config-schema/src/types/object_type.ts similarity index 100% rename from src/core/server/config/schema/types/object_type.ts rename to packages/kbn-config-schema/src/types/object_type.ts diff --git a/src/core/server/config/schema/types/one_of_type.test.ts b/packages/kbn-config-schema/src/types/one_of_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/one_of_type.test.ts rename to packages/kbn-config-schema/src/types/one_of_type.test.ts diff --git a/src/core/server/config/schema/types/string_type.test.ts b/packages/kbn-config-schema/src/types/string_type.test.ts similarity index 100% rename from src/core/server/config/schema/types/string_type.test.ts rename to packages/kbn-config-schema/src/types/string_type.test.ts diff --git a/src/core/server/config/schema/types/string_type.ts b/packages/kbn-config-schema/src/types/string_type.ts similarity index 100% rename from src/core/server/config/schema/types/string_type.ts rename to packages/kbn-config-schema/src/types/string_type.ts diff --git a/src/core/server/config/schema/types/type.ts b/packages/kbn-config-schema/src/types/type.ts similarity index 91% rename from src/core/server/config/schema/types/type.ts rename to packages/kbn-config-schema/src/types/type.ts index b7db6d71668ae..e8d0370a443dc 100644 --- a/src/core/server/config/schema/types/type.ts +++ b/packages/kbn-config-schema/src/types/type.ts @@ -81,6 +81,9 @@ export abstract class Type { return validatedValue; } + /** + * @internal + */ public getSchema() { return this.internalSchema; } @@ -98,12 +101,7 @@ export abstract class Type { return error; } - const { context = {}, type, path: rawPath, message } = error; - - // Before v11.0.0 Joi reported paths as `.`-delimited strings, but more - // recent version use arrays instead. Once we upgrade Joi, we should just - // remove this split logic and use `path` provided by Joi directly. - const path = rawPath ? rawPath.split('.') : []; + const { context = {}, type, path, message } = error; const errorHandleResult = this.handleError(type, context, path); if (errorHandleResult instanceof SchemaTypeError) { diff --git a/src/core/server/config/schema/types/union_type.ts b/packages/kbn-config-schema/src/types/union_type.ts similarity index 100% rename from src/core/server/config/schema/types/union_type.ts rename to packages/kbn-config-schema/src/types/union_type.ts diff --git a/packages/kbn-config-schema/tsconfig.json b/packages/kbn-config-schema/tsconfig.json new file mode 100644 index 0000000000000..7a250509cf435 --- /dev/null +++ b/packages/kbn-config-schema/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "declaration": true, + "declarationDir": "./target/types", + "outDir": "./target/out", + "stripInternal": true, + "declarationMap": true + }, + "include": [ + "./types/joi.d.ts", + "./src/**/*.ts" + ], + "exclude": [ + "target" + ] +} diff --git a/packages/kbn-config-schema/types/joi.d.ts b/packages/kbn-config-schema/types/joi.d.ts new file mode 100644 index 0000000000000..8f3082e342043 --- /dev/null +++ b/packages/kbn-config-schema/types/joi.d.ts @@ -0,0 +1,51 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import * as Joi from 'joi'; +import { ByteSizeValue } from '../src/byte_size_value'; + +declare module 'joi' { + interface BytesSchema extends AnySchema { + min(limit: number | string | ByteSizeValue): this; + max(limit: number | string | ByteSizeValue): this; + } + + interface MapSchema extends AnySchema { + entries(key: AnySchema, value: AnySchema): this; + } + + // In more recent Joi types we can use `Root` type instead of `typeof Joi`. + export type JoiRoot = typeof Joi & { + bytes: () => BytesSchema; + duration: () => AnySchema; + map: () => MapSchema; + }; + + interface AnySchema { + custom(validator: (value: any) => string | void): this; + } + + // Joi types don't include `schema` function even though it's supported. + interface ObjectSchema { + schema(): this; + } + + // Joi types define only signature with single extension, but Joi supports + // an array form as well. It's fixed in more recent Joi types. + function extend(extension: Joi.Extension | Joi.Extension[]): any; +} diff --git a/packages/kbn-datemath/src/index.d.ts b/packages/kbn-datemath/src/index.d.ts index e3389fb255700..a53494641b920 100644 --- a/packages/kbn-datemath/src/index.d.ts +++ b/packages/kbn-datemath/src/index.d.ts @@ -17,13 +17,29 @@ * under the License. */ -declare module '@kbn/datemath' { - const dateMath: { - parse: any; - unitsMap: any; - units: string[]; - unitsAsc: string[]; - unitsDesc: string[]; +import moment from 'moment'; +export type Unit = 'ms' | 's' | 'm' | 'h' | 'd' | 'w' | 'M' | 'y'; + +declare const datemath: { + unitsMap: { + [k in Unit]: { + weight: number; + type: 'calendar' | 'fixed' | 'mixed'; + base: number; + } }; - export default dateMath; -} + units: Unit[]; + unitsAsc: Unit[]; + unitsDesc: Unit[]; + + parse( + input: string, + options?: { + roundUp?: boolean; + forceNow?: boolean; + momentInstance?: typeof moment; + } + ): moment.Moment | undefined; +}; + +export default datemath; diff --git a/packages/kbn-datemath/src/index.js b/packages/kbn-datemath/src/index.js index 6576a458fe77b..afedad3ef6f72 100644 --- a/packages/kbn-datemath/src/index.js +++ b/packages/kbn-datemath/src/index.js @@ -25,10 +25,10 @@ const unitsMap = { m: { weight: 3, type: 'mixed', base: 1000 * 60 }, h: { weight: 4, type: 'mixed', base: 1000 * 60 * 60 }, d: { weight: 5, type: 'mixed', base: 1000 * 60 * 60 * 24 }, - w: { weight: 6, type: 'calendar' }, - M: { weight: 7, type: 'calendar' }, + w: { weight: 6, type: 'calendar', base: NaN }, + M: { weight: 7, type: 'calendar', base: NaN }, // q: { weight: 8, type: 'calendar' }, // TODO: moment duration does not support quarter - y: { weight: 9, type: 'calendar' }, + y: { weight: 9, type: 'calendar', base: NaN }, }; const units = Object.keys(unitsMap).sort((a, b) => unitsMap[b].weight - unitsMap[a].weight); const unitsDesc = [...units]; diff --git a/packages/kbn-datemath/yarn.lock b/packages/kbn-datemath/yarn.lock deleted file mode 100644 index cf6ea88561976..0000000000000 --- a/packages/kbn-datemath/yarn.lock +++ /dev/null @@ -1,1612 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - dependencies: - arr-flatten "^1.0.1" - -arr-flatten@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws4@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" - -babel-cli@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" - dependencies: - babel-core "^6.26.0" - babel-polyfill "^6.26.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - commander "^2.11.0" - convert-source-map "^1.5.0" - fs-readdir-recursive "^1.0.0" - glob "^7.1.2" - lodash "^4.17.4" - output-file-sync "^1.1.2" - path-is-absolute "^1.0.1" - slash "^1.0.0" - source-map "^0.5.6" - v8flags "^2.1.1" - optionalDependencies: - chokidar "^1.6.1" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.0" - debug "^2.6.8" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.7" - slash "^1.0.0" - source-map "^0.5.6" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-add-module-exports@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" - dependencies: - babel-runtime "^6.26.0" - core-js "^2.5.0" - regenerator-runtime "^0.10.5" - -babel-preset-env@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^2.1.2" - invariant "^2.2.2" - semver "^5.3.0" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -brace-expansion@^1.1.7: - version "1.1.8" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -browserslist@^2.1.2: - version "2.11.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2" - dependencies: - caniuse-lite "^1.0.30000792" - electron-to-chromium "^1.3.30" - -caniuse-lite@^1.0.30000792: - version "1.0.30000803" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000803.tgz#9939c37149d38d5f4540430490d240c03106a0f5" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chokidar@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" - dependencies: - delayed-stream "~1.0.0" - -commander@^2.11.0: - version "2.14.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.0.tgz#7b25325963e6aace20d3a9285b09379b0c2208b5" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -convert-source-map@^1.5.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" - -core-js@^2.4.0, core-js@^2.5.0: - version "2.5.3" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e" - -core-util-is@1.0.2, core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -debug@^2.2.0, debug@^2.6.8: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - dependencies: - repeating "^2.0.0" - -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -electron-to-chromium@^1.3.30: - version "1.3.32" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.32.tgz#11d0684c0840e003c4be8928f8ac5f35dbc2b4e6" - -escape-string-regexp@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - dependencies: - is-posix-bracket "^0.1.0" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - dependencies: - fill-range "^2.1.0" - -extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - dependencies: - is-extglob "^1.0.0" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - -extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - -fill-range@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^1.1.3" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -for-in@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - dependencies: - for-in "^1.0.1" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -fs-readdir-recursive@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8" - dependencies: - nan "^2.3.0" - node-pre-gyp "^0.6.39" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob@^7.0.5, glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -graceful-fs@^4.1.2, graceful-fs@^4.1.4: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -hawk@3.1.3, hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -invariant@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" - dependencies: - loose-envify "^1.0.0" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - dependencies: - is-extglob "^1.0.0" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - dependencies: - kind-of "^3.0.2" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -kind-of@^3.0.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - dependencies: - is-buffer "^1.1.5" - -lodash@^4.17.4: - version "4.17.5" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" - -loose-envify@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -mime-db@~1.30.0: - version "1.30.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.17" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.17.tgz#09d7a393f03e995a79f8af857b70a9e0ab16557a" - dependencies: - mime-db "~1.30.0" - -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -"mkdirp@>=0.5 0", mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -moment@^2.13.0: - version "2.20.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.20.1.tgz#d6eb1a46cbcc14a2b2f9434112c1ff8907f313fd" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -nan@^2.3.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.8.0.tgz#ed715f3fe9de02b57a5e6252d90a96675e1f085a" - -node-pre-gyp@^0.6.39: - version "0.6.39" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649" - dependencies: - detect-libc "^1.0.2" - hawk "3.1.3" - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.0.2" - rc "^1.1.7" - request "2.81.0" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -oauth-sign@~0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -once@^1.3.0, once@^1.3.3: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -output-file-sync@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" - dependencies: - graceful-fs "^4.1.4" - mkdirp "^0.5.1" - object-assign "^4.1.0" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - -private@^0.1.6, private@^0.1.7: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" - -punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -randomatic@^1.1.3: - version "1.1.7" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -rc@^1.1.7: - version "1.2.5" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.5.tgz#275cd687f6e3b36cc756baa26dfee80a790301fd" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4: - version "2.3.3" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~1.0.6" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - dependencies: - is-equal-shallow "^0.1.3" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -request@2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -semver@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map@^0.5.6, source-map@^0.5.7: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -sshpk@^1.7.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -stringstream@~0.0.4: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -tar-pack@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -tough-cookie@~2.3.0: - version "2.3.3" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561" - dependencies: - punycode "^1.4.1" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - -tslib@^1.9.3: - version "1.9.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -uuid@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" - -v8flags@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - dependencies: - user-home "^1.1.1" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" diff --git a/packages/kbn-dev-utils/package.json b/packages/kbn-dev-utils/package.json index 9ce518746009f..02f4b90512689 100644 --- a/packages/kbn-dev-utils/package.json +++ b/packages/kbn-dev-utils/package.json @@ -18,7 +18,7 @@ "tslib": "^1.9.3" }, "devDependencies": { - "@kbn/babel-preset": "link:../kbn-babel-preset", + "@kbn/babel-preset": "1.0.0", "babel-cli": "^6.26.0", "chance": "1.0.6", "expect.js": "0.3.1" diff --git a/packages/kbn-dev-utils/src/proc_runner/proc.js b/packages/kbn-dev-utils/src/proc_runner/proc.js index f473026418109..c2548bccfac7c 100644 --- a/packages/kbn-dev-utils/src/proc_runner/proc.js +++ b/packages/kbn-dev-utils/src/proc_runner/proc.js @@ -91,6 +91,9 @@ export function createProc(name, { cmd, args, cwd, env, stdin, log }) { const exit$ = Rx.fromEvent(childProcess, 'exit').pipe( take(1), map(([code]) => { + if (this._stopCalled) { + return null; + } // JVM exits with 143 on SIGTERM and 130 on SIGINT, dont' treat then as errors if (code > 0 && !(code === 143 || code === 130)) { throw createCliError(`[${name}] exited with code ${code}`); @@ -115,9 +118,16 @@ export function createProc(name, { cmd, args, cwd, env, stdin, log }) { return this._outcomePromise; } + _stopCalled = false; + async stop(signal) { + if (this._stopCalled) { + return; + } + this._stopCalled = true; await withTimeout( async () => { + log.debug(`Sending "${signal}" to proc "${name}"`); await treeKillAsync(childProcess.pid, signal); await this.getOutcomePromise(); }, diff --git a/packages/kbn-dev-utils/yarn.lock b/packages/kbn-dev-utils/yarn.lock deleted file mode 100644 index 49960242a058d..0000000000000 --- a/packages/kbn-dev-utils/yarn.lock +++ /dev/null @@ -1,1858 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@kbn/babel-preset@link:../kbn-babel-preset": - version "0.0.0" - uid "" - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - dependencies: - color-convert "^1.9.0" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - dependencies: - arr-flatten "^1.0.1" - -arr-flatten@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws4@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" - -babel-cli@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" - dependencies: - babel-core "^6.26.0" - babel-polyfill "^6.26.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - commander "^2.11.0" - convert-source-map "^1.5.0" - fs-readdir-recursive "^1.0.0" - glob "^7.1.2" - lodash "^4.17.4" - output-file-sync "^1.1.2" - path-is-absolute "^1.0.1" - slash "^1.0.0" - source-map "^0.5.6" - v8flags "^2.1.1" - optionalDependencies: - chokidar "^1.6.1" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.0" - debug "^2.6.8" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.7" - slash "^1.0.0" - source-map "^0.5.6" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-builder-react-jsx@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - esutils "^2.0.2" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-add-module-exports@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-async-generators@^6.5.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" - -babel-plugin-syntax-class-properties@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-flow@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" - -babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" - -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-generator-functions@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-class-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" - dependencies: - babel-helper-function-name "^6.24.1" - babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-define@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-define/-/babel-plugin-transform-define-1.3.0.tgz#94c5f9459c810c738cc7c50cbd44a31829d6f319" - dependencies: - lodash "4.17.4" - traverse "0.6.6" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-flow-strip-types@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" - dependencies: - babel-plugin-syntax-flow "^6.18.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-react-display-name@^6.23.0: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-self@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz#df6d80a9da2612a121e6ddd7558bcbecf06e636e" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-source@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" - dependencies: - babel-helper-builder-react-jsx "^6.24.1" - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" - dependencies: - babel-runtime "^6.26.0" - core-js "^2.5.0" - regenerator-runtime "^0.10.5" - -babel-preset-env@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.4.0.tgz#c8e02a3bcc7792f23cded68e0355b9d4c28f0f7a" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^1.4.0" - invariant "^2.2.2" - -babel-preset-flow@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" - dependencies: - babel-plugin-transform-flow-strip-types "^6.22.0" - -babel-preset-react@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" - dependencies: - babel-plugin-syntax-jsx "^6.3.13" - babel-plugin-transform-react-display-name "^6.23.0" - babel-plugin-transform-react-jsx "^6.24.1" - babel-plugin-transform-react-jsx-self "^6.22.0" - babel-plugin-transform-react-jsx-source "^6.22.0" - babel-preset-flow "^6.23.0" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -browserslist@^1.4.0: - version "1.7.7" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" - dependencies: - caniuse-db "^1.0.30000639" - electron-to-chromium "^1.2.7" - -caniuse-db@^1.0.30000639: - version "1.0.30000814" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000814.tgz#2c9eed7fbc2724066474cb7e1a924f0ea12fe4a2" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chance@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/chance/-/chance-1.0.6.tgz#4734f62d02b738cdc2882d8b5d41f89af49e7bfd" - -chokidar@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" - dependencies: - delayed-stream "~1.0.0" - -commander@^2.11.0: - version "2.15.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.0.tgz#ad2a23a1c3b036e392469b8012cec6b33b4c1322" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -convert-source-map@^1.5.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" - -core-js@^2.4.0, core-js@^2.5.0: - version "2.5.3" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e" - -core-util-is@1.0.2, core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -debug@^2.2.0, debug@^2.6.8: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - dependencies: - repeating "^2.0.0" - -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -electron-to-chromium@^1.2.7: - version "1.3.37" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.37.tgz#4a92734e0044c8cf0b1553be57eae21a4c6e5fab" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -execa@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" - dependencies: - cross-spawn "^6.0.0" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - dependencies: - is-posix-bracket "^0.1.0" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - dependencies: - fill-range "^2.1.0" - -expect.js@0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/expect.js/-/expect.js-0.3.1.tgz#b0a59a0d2eff5437544ebf0ceaa6015841d09b5b" - -extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - dependencies: - is-extglob "^1.0.0" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - -extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - -fill-range@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^1.1.3" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -for-in@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - dependencies: - for-in "^1.0.1" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -fs-readdir-recursive@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8" - dependencies: - nan "^2.3.0" - node-pre-gyp "^0.6.39" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob@^7.0.5, glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -graceful-fs@^4.1.2, graceful-fs@^4.1.4: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -hawk@3.1.3, hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -invariant@^2.2.2: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - dependencies: - loose-envify "^1.0.0" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - dependencies: - is-extglob "^1.0.0" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - dependencies: - kind-of "^3.0.2" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -kind-of@^3.0.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - dependencies: - is-buffer "^1.1.5" - -lodash@4.17.4: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -lodash@^4.17.4: - version "4.17.5" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" - -loose-envify@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -mime-db@~1.33.0: - version "1.33.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.18" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" - dependencies: - mime-db "~1.33.0" - -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -"mkdirp@>=0.5 0", mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -moment@^2.20.1: - version "2.21.0" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.21.0.tgz#2a114b51d2a6ec9e6d83cf803f838a878d8a023a" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -nan@^2.3.0: - version "2.9.2" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.9.2.tgz#f564d75f5f8f36a6d9456cca7a6c4fe488ab7866" - -nice-try@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" - -node-pre-gyp@^0.6.39: - version "0.6.39" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649" - dependencies: - detect-libc "^1.0.2" - hawk "3.1.3" - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.0.2" - rc "^1.1.7" - request "2.81.0" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -oauth-sign@~0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -once@^1.3.0, once@^1.3.3: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -output-file-sync@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" - dependencies: - graceful-fs "^4.1.4" - mkdirp "^0.5.1" - object-assign "^4.1.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - -private@^0.1.6, private@^0.1.7: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -randomatic@^1.1.3: - version "1.1.7" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -rc@^1.1.7: - version "1.2.6" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.6.tgz#eb18989c6d4f4f162c399f79ddd29f3835568092" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4: - version "2.3.5" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.5.tgz#b4f85003a938cbb6ecbce2a124fb1012bd1a838d" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - dependencies: - is-equal-shallow "^0.1.3" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -request@2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -rxjs@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.2.1.tgz#246cebec189a6cbc143a3ef9f62d6f4c91813ca1" - dependencies: - tslib "^1.9.0" - -safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -semver@^5.3.0, semver@^5.5.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map@^0.5.6, source-map@^0.5.7: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -sshpk@^1.7.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.1.tgz#130f5975eddad963f1d56f92b9ac6c51fa9f83eb" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -stringstream@~0.0.4: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.3.0.tgz#5b24ac15db80fa927cf5227a4a33fd3c4c7676c0" - dependencies: - has-flag "^3.0.0" - -tar-pack@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -tough-cookie@~2.3.0: - version "2.3.4" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" - dependencies: - punycode "^1.4.1" - -traverse@0.6.6: - version "0.6.6" - resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" - -tree-kill@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - -tslib@^1.9.0, tslib@^1.9.3: - version "1.9.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -uuid@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" - -v8flags@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - dependencies: - user-home "^1.1.1" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" diff --git a/packages/kbn-es/package.json b/packages/kbn-es/package.json index 9e798ebbe7e0b..8a59bff9cea58 100644 --- a/packages/kbn-es/package.json +++ b/packages/kbn-es/package.json @@ -5,10 +5,10 @@ "license": "Apache-2.0", "private": true, "dependencies": { - "@kbn/dev-utils": "link:../kbn-dev-utils", + "@kbn/dev-utils": "1.0.0", "chalk": "^2.4.1", "dedent": "^0.7.0", - "elasticsearch": "^14.1.0", + "del": "^3.0.0", "execa": "^0.10.0", "getopts": "^2.0.6", "glob": "^7.1.2", @@ -17,6 +17,7 @@ "node-fetch": "^2.0.0", "simple-git": "^1.91.0", "tar-fs": "^1.16.0", + "tree-kill": "^1.1.0", "yauzl": "^2.10.0", "zlib": "^1.0.5" } diff --git a/packages/kbn-es/src/cluster.js b/packages/kbn-es/src/cluster.js index bd744a0e977b0..f14be3582f71a 100644 --- a/packages/kbn-es/src/cluster.js +++ b/packages/kbn-es/src/cluster.js @@ -23,6 +23,8 @@ const { installSnapshot, installSource, installArchive } = require('./install'); const { ES_BIN } = require('./paths'); const { log: defaultLog, parseEsLog, extractConfigFiles } = require('./utils'); const { createCliError } = require('./errors'); +const { promisify } = require('util'); +const treeKillAsync = promisify(require('tree-kill')); exports.Cluster = class Cluster { constructor(log = defaultLog) { @@ -141,11 +143,17 @@ exports.Cluster = class Cluster { * @returns {Promise} */ async stop() { + if (this._stopCalled) { + return; + } + this._stopCalled = true; + if (!this._process || !this._outcome) { throw new Error('ES has not been started'); } - this._process.kill(); + await treeKillAsync(this._process.pid); + await this._outcome; } @@ -190,6 +198,10 @@ exports.Cluster = class Cluster { this._outcome = new Promise((resolve, reject) => { this._process.once('exit', code => { + if (this._stopCalled) { + resolve(); + return; + } // JVM exits with 143 on SIGTERM and 130 on SIGINT, dont' treat them as errors if (code > 0 && !(code === 143 || code === 130)) { reject(createCliError(`ES exited with code ${code}`)); diff --git a/packages/kbn-es/src/install/archive.js b/packages/kbn-es/src/install/archive.js index bc2fbe995be88..5e59fccb01608 100644 --- a/packages/kbn-es/src/install/archive.js +++ b/packages/kbn-es/src/install/archive.js @@ -21,6 +21,7 @@ const fs = require('fs'); const path = require('path'); const chalk = require('chalk'); const execa = require('execa'); +const del = require('del'); const { log: defaultLog, decompress } = require('../utils'); const { BASE_PATH, ES_CONFIG, ES_KEYSTORE_BIN } = require('../paths'); @@ -45,7 +46,7 @@ exports.installArchive = async function installArchive(archive, options = {}) { if (fs.existsSync(installPath)) { log.info('install directory already exists, removing'); - rmrfSync(installPath); + await del(installPath, { force: true }); } log.info('extracting %s', chalk.bold(archive)); @@ -66,26 +67,6 @@ exports.installArchive = async function installArchive(archive, options = {}) { return { installPath }; }; -/** - * Recursive deletion for a directory - * - * @param {String} path - */ -function rmrfSync(path) { - if (fs.existsSync(path)) { - fs.readdirSync(path).forEach(file => { - const curPath = path + '/' + file; - - if (fs.lstatSync(curPath).isDirectory()) { - rmrfSync(curPath); - } else { - fs.unlinkSync(curPath); - } - }); - fs.rmdirSync(path); - } -} - /** * Appends single line to elasticsearch.yml config file * diff --git a/packages/kbn-es/src/install/snapshot.js b/packages/kbn-es/src/install/snapshot.js index d61f6e58ba20d..de1a635b7f9f6 100644 --- a/packages/kbn-es/src/install/snapshot.js +++ b/packages/kbn-es/src/install/snapshot.js @@ -46,7 +46,8 @@ exports.installSnapshot = async function installSnapshot({ installPath = path.resolve(basePath, version), log = defaultLog, }) { - const fileName = getFilename(license, version); + // TODO: remove -alpha1 once elastic/elasticsearch#35172 has been merged + const fileName = getFilename(license, version + '-alpha1'); const url = `https://snapshots.elastic.co/downloads/elasticsearch/${fileName}`; const dest = path.resolve(basePath, 'cache', fileName); @@ -89,7 +90,7 @@ function downloadFile(url, dest, log) { } if (!res.ok) { - return reject(new Error(res.statusText)); + return reject(new Error(`Unable to download elasticsearch snapshot: ${res.statusText}`)); } const stream = fs.createWriteStream(downloadPath); diff --git a/packages/kbn-es/yarn.lock b/packages/kbn-es/yarn.lock deleted file mode 100644 index 16c1f54ad5dc9..0000000000000 --- a/packages/kbn-es/yarn.lock +++ /dev/null @@ -1,435 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@kbn/dev-utils@link:../kbn-dev-utils": - version "0.0.0" - uid "" - -agentkeepalive@^3.4.1: - version "3.4.1" - resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-3.4.1.tgz#aa95aebc3a749bca5ed53e3880a09f5235b48f0c" - dependencies: - humanize-ms "^1.2.1" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - dependencies: - color-convert "^1.9.0" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -bl@^1.0.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.1.tgz#cac328f7bee45730d404b692203fcb590e172d5e" - dependencies: - readable-stream "^2.0.5" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -buffer-crc32@~0.2.3: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - -chalk@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chownr@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" - -color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -debug@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - dependencies: - ms "2.0.0" - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - -elasticsearch@^14.1.0: - version "14.2.0" - resolved "https://registry.yarnpkg.com/elasticsearch/-/elasticsearch-14.2.0.tgz#ef7c6e505cb41525a0751b5156e8c0fbd1f02d62" - dependencies: - agentkeepalive "^3.4.1" - chalk "^1.0.0" - lodash "2.4.2" - lodash.get "^4.4.2" - lodash.isempty "^4.4.0" - lodash.trimend "^4.5.1" - -end-of-stream@^1.0.0, end-of-stream@^1.1.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" - dependencies: - once "^1.4.0" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -execa@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" - dependencies: - cross-spawn "^6.0.0" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -fd-slicer@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" - dependencies: - pend "~1.2.0" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -getopts@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/getopts/-/getopts-2.0.6.tgz#4788d533a977527e79efd57b5e742ffa0dd33105" - -glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - -humanize-ms@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" - dependencies: - ms "^2.0.0" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -lodash.get@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" - -lodash.isempty@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.isempty/-/lodash.isempty-4.4.0.tgz#6f86cbedd8be4ec987be9aaf33c9684db1b31e7e" - -lodash.trimend@^4.5.1: - version "4.5.1" - resolved "https://registry.yarnpkg.com/lodash.trimend/-/lodash.trimend-4.5.1.tgz#12804437286b98cad8996b79414e11300114082f" - -lodash@2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-2.4.2.tgz#fadd834b9683073da179b3eae6d9c0d15053f73e" - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -mock-fs@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.5.0.tgz#75245b966f7e3defe197b03454af9c5b355594b7" - -moment@^2.20.1: - version "2.21.0" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.21.0.tgz#2a114b51d2a6ec9e6d83cf803f838a878d8a023a" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -ms@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" - -nice-try@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" - -node-fetch@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.1.1.tgz#369ca70b82f50c86496104a6c776d274f4e4a2d4" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -once@^1.3.0, once@^1.3.1, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -pend@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" - -process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -pump@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.3.tgz#5dfe8311c33bbf6fc18261f9f34702c47c08a954" - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -readable-stream@^2.0.0, readable-stream@^2.0.5: - version "2.3.4" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.4.tgz#c946c3f47fa7d8eabc0b6150f4a12f69a4574071" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -rxjs@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.2.1.tgz#246cebec189a6cbc143a3ef9f62d6f4c91813ca1" - dependencies: - tslib "^1.9.0" - -safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -semver@^5.5.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -simple-git@^1.91.0: - version "1.92.0" - resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-1.92.0.tgz#6061468eb7d19f0141078fc742e62457e910f547" - dependencies: - debug "^3.1.0" - -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.3.0.tgz#5b24ac15db80fa927cf5227a4a33fd3c4c7676c0" - dependencies: - has-flag "^3.0.0" - -tar-fs@^1.16.0: - version "1.16.0" - resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-1.16.0.tgz#e877a25acbcc51d8c790da1c57c9cf439817b896" - dependencies: - chownr "^1.0.1" - mkdirp "^0.5.1" - pump "^1.0.0" - tar-stream "^1.1.2" - -tar-stream@^1.1.2: - version "1.5.5" - resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.5.5.tgz#5cad84779f45c83b1f2508d96b09d88c7218af55" - dependencies: - bl "^1.0.0" - end-of-stream "^1.0.0" - readable-stream "^2.0.0" - xtend "^4.0.0" - -tree-kill@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36" - -tslib@^1.9.0: - version "1.9.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.2.tgz#8be0cc9a1f6dc7727c38deb16c2ebd1a2892988e" - -tslib@^1.9.3: - version "1.9.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -xtend@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -yauzl@^2.10.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9" - dependencies: - buffer-crc32 "~0.2.3" - fd-slicer "~1.1.0" - -zlib@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/zlib/-/zlib-1.0.5.tgz#6e7c972fc371c645a6afb03ab14769def114fcc0" diff --git a/packages/kbn-eslint-import-resolver-kibana/package.json b/packages/kbn-eslint-import-resolver-kibana/package.json index a0439beb04e61..9a6f506c022a6 100755 --- a/packages/kbn-eslint-import-resolver-kibana/package.json +++ b/packages/kbn-eslint-import-resolver-kibana/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "debug": "^2.6.6", - "eslint-import-resolver-node": "^0.3.0", - "eslint-import-resolver-webpack": "^0.8.1", + "eslint-import-resolver-node": "^0.3.2", + "eslint-import-resolver-webpack": "^0.10.1", "glob-all": "^3.1.0", "lru-cache": "^4.1.2", "resolve": "^1.7.1", diff --git a/packages/kbn-eslint-import-resolver-kibana/yarn.lock b/packages/kbn-eslint-import-resolver-kibana/yarn.lock deleted file mode 100644 index 88a2b84696c19..0000000000000 --- a/packages/kbn-eslint-import-resolver-kibana/yarn.lock +++ /dev/null @@ -1,2531 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -acorn-dynamic-import@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" - dependencies: - acorn "^4.0.3" - -acorn@^4.0.3: - version "4.0.13" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" - -acorn@^5.0.0: - version "5.5.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.5.3.tgz#f473dd47e0277a08e28e9bec5aeeb04751f0b8c9" - -ajv-keywords@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ajv@^5.1.5: - version "5.5.2" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" - dependencies: - co "^4.6.0" - fast-deep-equal "^1.0.0" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.3.0" - -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - -anymatch@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" - dependencies: - micromatch "^3.1.4" - normalize-path "^2.1.1" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - -array-find@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz#6c8e286d11ed768327f8e62ecee87353ca3e78b8" - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - -asn1.js@^4.0.0: - version "4.10.1" - resolved "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -assert@^1.1.1: - version "1.4.1" - resolved "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" - dependencies: - util "0.10.3" - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -async@^2.1.2: - version "2.6.0" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.0.tgz#61a29abb6fcc026fea77e56d1c6ec53a795951f4" - dependencies: - lodash "^4.14.0" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -atob@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.0.tgz#ab2b150e51d7b122b9efc8d7340c06b6c41076bc" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws4@^1.2.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.7.0.tgz#d4d0e9b9dbfca77bf08eeb0a8a471550fe39e289" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -base64-js@^1.0.2: - version "1.2.3" - resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.2.3.tgz#fb13668233d9614cf5fb4bce95a9ba4096cdf801" - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -big.js@^3.1.3: - version "3.2.0" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: - version "4.11.8" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^2.3.0, braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -brorand@^1.0.1: - version "1.1.0" - resolved "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - -browserify-aes@^1.0.0, browserify-aes@^1.0.4: - version "1.2.0" - resolved "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -browserify-cipher@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" - dependencies: - browserify-aes "^1.0.4" - browserify-des "^1.0.0" - evp_bytestokey "^1.0.0" - -browserify-des@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.1.tgz#3343124db6d7ad53e26a8826318712bdc8450f9c" - dependencies: - cipher-base "^1.0.1" - des.js "^1.0.0" - inherits "^2.0.1" - -browserify-rsa@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" - dependencies: - bn.js "^4.1.0" - randombytes "^2.0.1" - -browserify-sign@^4.0.0: - version "4.0.4" - resolved "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" - dependencies: - bn.js "^4.1.1" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.2" - elliptic "^6.0.0" - inherits "^2.0.1" - parse-asn1 "^5.0.0" - -browserify-zlib@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" - dependencies: - pako "~1.0.5" - -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" - -buffer@^4.3.0: - version "4.9.1" - resolved "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" - dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" - isarray "^1.0.0" - -builtin-modules@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -builtin-status-codes@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - -camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - -chokidar@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.3.tgz#dcbd4f6cbb2a55b4799ba8a840ac527e5f4b1176" - dependencies: - anymatch "^2.0.0" - async-each "^1.0.0" - braces "^2.3.0" - glob-parent "^3.1.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^4.0.0" - normalize-path "^2.1.1" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - upath "^1.0.0" - optionalDependencies: - fsevents "^1.1.2" - -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - -cliui@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - wrap-ansi "^2.0.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" - dependencies: - delayed-stream "~1.0.0" - -component-emitter@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -console-browserify@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" - dependencies: - date-now "^0.1.4" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -constants-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - -core-util-is@1.0.2, core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -create-ecdh@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.1.tgz#44223dfed533193ba5ba54e0df5709b89acf1f82" - dependencies: - bn.js "^4.1.0" - elliptic "^6.0.0" - -create-hash@^1.1.0, create-hash@^1.1.2: - version "1.2.0" - resolved "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - -create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: - version "1.1.7" - resolved "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -cross-spawn@^5.0.1: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -crypto-browserify@^3.11.0: - version "3.12.0" - resolved "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" - dependencies: - browserify-cipher "^1.0.0" - browserify-sign "^4.0.0" - create-ecdh "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.0" - diffie-hellman "^5.0.0" - inherits "^2.0.1" - pbkdf2 "^3.0.3" - public-encrypt "^4.0.0" - randombytes "^2.0.0" - randomfill "^1.0.3" - -d@1: - version "1.0.0" - resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" - dependencies: - es5-ext "^0.10.9" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -date-now@^0.1.4: - version "0.1.4" - resolved "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" - -debug@^2.2.0, debug@^2.3.3, debug@^2.6.6, debug@^2.6.8, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -decamelize@^1.0.0, decamelize@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -des.js@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" - dependencies: - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - -diffie-hellman@^5.0.0: - version "5.0.3" - resolved "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" - dependencies: - bn.js "^4.1.0" - miller-rabin "^4.0.0" - randombytes "^2.0.0" - -domain-browser@^1.1.1: - version "1.2.0" - resolved "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -elliptic@^6.0.0: - version "6.4.0" - resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" - dependencies: - bn.js "^4.4.0" - brorand "^1.0.1" - hash.js "^1.0.0" - hmac-drbg "^1.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.0" - -emojis-list@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" - -enhanced-resolve@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.4.0" - object-assign "^4.0.1" - tapable "^0.2.7" - -enhanced-resolve@~0.9.0: - version "0.9.1" - resolved "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz#4d6e689b3725f86090927ccc86cd9f1635b89e2e" - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.2.0" - tapable "^0.1.8" - -errno@^0.1.3: - version "0.1.7" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" - dependencies: - prr "~1.0.1" - -error-ex@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" - dependencies: - is-arrayish "^0.2.1" - -es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: - version "0.10.42" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.42.tgz#8c07dd33af04d5dcd1310b5cef13bea63a89ba8d" - dependencies: - es6-iterator "~2.0.3" - es6-symbol "~3.1.1" - next-tick "1" - -es6-iterator@^2.0.1, es6-iterator@~2.0.1, es6-iterator@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-map@^0.1.3: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-set "~0.1.5" - es6-symbol "~3.1.1" - event-emitter "~0.3.5" - -es6-set@~0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-symbol "3.1.1" - event-emitter "~0.3.5" - -es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" - dependencies: - d "1" - es5-ext "~0.10.14" - -es6-weak-map@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" - dependencies: - d "1" - es5-ext "^0.10.14" - es6-iterator "^2.0.1" - es6-symbol "^3.1.1" - -escope@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" - dependencies: - es6-map "^0.1.3" - es6-weak-map "^2.0.1" - esrecurse "^4.1.0" - estraverse "^4.1.1" - -eslint-import-resolver-node@^0.3.0: - version "0.3.2" - resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a" - dependencies: - debug "^2.6.9" - resolve "^1.5.0" - -eslint-import-resolver-webpack@^0.8.1: - version "0.8.4" - resolved "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.8.4.tgz#0f7cd74bc9d7fc1773e8d5fc25baf864b2f87a42" - dependencies: - array-find "^1.0.0" - debug "^2.6.8" - enhanced-resolve "~0.9.0" - find-root "^0.1.1" - has "^1.0.1" - interpret "^1.0.0" - is-absolute "^0.2.3" - lodash.get "^3.7.0" - node-libs-browser "^1.0.0 || ^2.0.0" - resolve "^1.2.0" - semver "^5.3.0" - -esrecurse@^4.1.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" - dependencies: - estraverse "^4.1.0" - -estraverse@^4.1.0, estraverse@^4.1.1: - version "4.2.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" - -event-emitter@~0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" - dependencies: - d "1" - es5-ext "~0.10.14" - -events@^1.0.0: - version "1.1.1" - resolved "https://registry.npmjs.org/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" - -evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - -execa@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - -extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - -fast-deep-equal@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" - -fast-json-stable-stringify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -find-root@^0.1.1: - version "0.1.2" - resolved "https://registry.npmjs.org/find-root/-/find-root-0.1.2.tgz#98d2267cff1916ccaf2743b3a0eea81d79d7dcd1" - -find-up@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - dependencies: - locate-path "^2.0.0" - -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - dependencies: - map-cache "^0.2.2" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8" - dependencies: - nan "^2.3.0" - node-pre-gyp "^0.6.39" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -function-bind@^1.0.2: - version "1.1.1" - resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -get-caller-file@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -glob-all@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-all/-/glob-all-3.1.0.tgz#8913ddfb5ee1ac7812656241b03d5217c64b02ab" - dependencies: - glob "^7.0.5" - yargs "~1.2.6" - -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - -glob@^7.0.5: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -graceful-fs@^4.1.2: - version "4.1.11" - resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" - dependencies: - function-bind "^1.0.2" - -hash-base@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1" - dependencies: - inherits "^2.0.1" - -hash-base@^3.0.0: - version "3.0.4" - resolved "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -hash.js@^1.0.0, hash.js@^1.0.3: - version "1.1.3" - resolved "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.0" - -hawk@3.1.3, hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hmac-drbg@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -hosted-git-info@^2.1.4: - version "2.6.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -https-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" - -ieee754@^1.1.4: - version "1.1.11" - resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.1.11.tgz#c16384ffe00f5b7835824e67b6f2bd44a5229455" - -indexof@0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -inherits@2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" - -ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -interpret@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" - -invert-kv@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" - -is-absolute@^0.2.3: - version "0.2.6" - resolved "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz#20de69f3db942ef2d87b9c2da36f172235b1b5eb" - dependencies: - is-relative "^0.2.1" - is-windows "^0.2.0" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - dependencies: - kind-of "^6.0.0" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-builtin-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" - dependencies: - builtin-modules "^1.0.0" - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - dependencies: - kind-of "^6.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^2.1.0, is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - dependencies: - is-extglob "^2.1.0" - -is-glob@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" - dependencies: - is-extglob "^2.1.1" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - -is-odd@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-2.0.0.tgz#7646624671fd7ea558ccd9a2795182f2958f1b24" - dependencies: - is-number "^4.0.0" - -is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - dependencies: - isobject "^3.0.1" - -is-relative@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz#d27f4c7d516d175fb610db84bbeef23c3bc97aa5" - dependencies: - is-unc-path "^0.1.1" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -is-unc-path@^0.1.1: - version "0.1.2" - resolved "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.2.tgz#6ab053a72573c10250ff416a3814c35178af39b9" - dependencies: - unc-path-regex "^0.1.0" - -is-windows@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c" - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - -isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -json-loader@^0.5.4: - version "0.5.7" - resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" - -json-schema-traverse@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -json5@^0.5.0, json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" - -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - -lcid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" - dependencies: - invert-kv "^1.0.0" - -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - -loader-runner@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" - -loader-utils@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" - dependencies: - big.js "^3.1.3" - emojis-list "^2.0.0" - json5 "^0.5.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -lodash._baseget@^3.0.0: - version "3.7.2" - resolved "https://registry.npmjs.org/lodash._baseget/-/lodash._baseget-3.7.2.tgz#1b6ae1d5facf3c25532350a13c1197cb8bb674f4" - -lodash._topath@^3.0.0: - version "3.8.1" - resolved "https://registry.npmjs.org/lodash._topath/-/lodash._topath-3.8.1.tgz#3ec5e2606014f4cb97f755fe6914edd8bfc00eac" - dependencies: - lodash.isarray "^3.0.0" - -lodash.get@^3.7.0: - version "3.7.0" - resolved "https://registry.npmjs.org/lodash.get/-/lodash.get-3.7.0.tgz#3ce68ae2c91683b281cc5394128303cbf75e691f" - dependencies: - lodash._baseget "^3.0.0" - lodash._topath "^3.0.0" - -lodash.isarray@^3.0.0: - version "3.0.4" - resolved "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" - -lodash@^4.14.0: - version "4.17.5" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -lru-cache@^4.0.1, lru-cache@^4.1.2: - version "4.1.2" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f" - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - dependencies: - object-visit "^1.0.0" - -md5.js@^1.3.4: - version "1.3.4" - resolved "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -mem@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" - dependencies: - mimic-fn "^1.0.0" - -memory-fs@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz#f2bb25368bc121e391c2520de92969caee0a0290" - -memory-fs@^0.4.0, memory-fs@~0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" - dependencies: - errno "^0.1.3" - readable-stream "^2.0.1" - -micromatch@^3.1.4: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" - dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" - -mime-db@~1.33.0: - version "1.33.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.18" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" - dependencies: - mime-db "~1.33.0" - -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - -minimalistic-assert@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" - -minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.1.0.tgz#99df657a52574c21c9057497df742790b2b4c0de" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -mixin-deep@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -"mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@~0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -nan@^2.3.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" - -nanomatch@^1.2.9: - version "1.2.9" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.9.tgz#879f7150cb2dab7a471259066c104eee6e0fa7c2" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-odd "^2.0.0" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -neo-async@^2.5.0: - version "2.5.1" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.1.tgz#acb909e327b1e87ec9ef15f41b8a269512ad41ee" - -next-tick@1: - version "1.0.0" - resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" - -"node-libs-browser@^1.0.0 || ^2.0.0", node-libs-browser@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.1.0.tgz#5f94263d404f6e44767d726901fff05478d600df" - dependencies: - assert "^1.1.1" - browserify-zlib "^0.2.0" - buffer "^4.3.0" - console-browserify "^1.1.0" - constants-browserify "^1.0.0" - crypto-browserify "^3.11.0" - domain-browser "^1.1.1" - events "^1.0.0" - https-browserify "^1.0.0" - os-browserify "^0.3.0" - path-browserify "0.0.0" - process "^0.11.10" - punycode "^1.2.4" - querystring-es3 "^0.2.0" - readable-stream "^2.3.3" - stream-browserify "^2.0.1" - stream-http "^2.7.2" - string_decoder "^1.0.0" - timers-browserify "^2.0.4" - tty-browserify "0.0.0" - url "^0.11.0" - util "^0.10.3" - vm-browserify "0.0.4" - -node-pre-gyp@^0.6.39: - version "0.6.39" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649" - dependencies: - detect-libc "^1.0.2" - hawk "3.1.3" - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.0.2" - rc "^1.1.7" - request "2.81.0" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-package-data@^2.3.2: - version "2.4.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" - dependencies: - hosted-git-info "^2.1.4" - is-builtin-module "^1.0.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -oauth-sign@~0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^4.0.1, object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - dependencies: - isobject "^3.0.0" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - dependencies: - isobject "^3.0.1" - -once@^1.3.0, once@^1.3.3: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -os-browserify@^0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-locale@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" - dependencies: - execa "^0.7.0" - lcid "^1.0.0" - mem "^1.1.0" - -os-tmpdir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -p-limit@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" - dependencies: - p-try "^1.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - dependencies: - p-limit "^1.1.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - -pako@~1.0.5: - version "1.0.6" - resolved "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" - -parse-asn1@^5.0.0: - version "5.1.1" - resolved "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz#f6bf293818332bd0dab54efb16087724745e6ca8" - dependencies: - asn1.js "^4.0.0" - browserify-aes "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.0" - pbkdf2 "^3.0.3" - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - dependencies: - error-ex "^1.2.0" - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - -path-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-key@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -path-parse@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" - -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - dependencies: - pify "^2.0.0" - -pbkdf2@^3.0.3: - version "3.0.14" - resolved "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz#a35e13c64799b06ce15320f459c230e68e73bade" - dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -pify@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - -process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -process@^0.11.10: - version "0.11.10" - resolved "https://registry.npmjs.org/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" - -prr@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - -public-encrypt@^4.0.0: - version "4.0.2" - resolved "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz#46eb9107206bf73489f8b85b69d91334c6610994" - dependencies: - bn.js "^4.1.0" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - parse-asn1 "^5.0.0" - randombytes "^2.0.1" - -punycode@1.3.2: - version "1.3.2" - resolved "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" - -punycode@^1.2.4, punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -querystring-es3@^0.2.0: - version "0.2.1" - resolved "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" - -querystring@0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" - -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: - version "2.0.6" - resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" - dependencies: - safe-buffer "^5.1.0" - -randomfill@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" - dependencies: - randombytes "^2.0.5" - safe-buffer "^5.1.0" - -rc@^1.1.7: - version "1.2.6" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.6.tgz#eb18989c6d4f4f162c399f79ddd29f3835568092" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.3.3: - version "2.3.6" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -request@2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - -require-main-filename@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - -resolve@^1.2.0, resolve@^1.5.0, resolve@^1.7.1: - version "1.7.1" - resolved "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3" - dependencies: - path-parse "^1.0.5" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - -rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" - dependencies: - hash-base "^2.0.0" - inherits "^2.0.1" - -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - dependencies: - ret "~0.1.10" - -"semver@2 || 3 || 4 || 5", semver@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -set-blocking@^2.0.0, set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -set-value@^0.4.3: - version "0.4.3" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.1" - to-object-path "^0.3.0" - -set-value@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setimmediate@^1.0.4: - version "1.0.5" - resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - -sha.js@^2.4.0, sha.js@^2.4.8: - version "2.4.11" - resolved "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -source-list-map@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085" - -source-map-resolve@^0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.1.tgz#7ad0f593f2281598e854df80f19aae4b92d7a11a" - dependencies: - atob "^2.0.0" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - -source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - -spdx-correct@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" - -spdx-expression-parse@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - dependencies: - extend-shallow "^3.0.0" - -sshpk@^1.7.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.1.tgz#130f5975eddad963f1d56f92b9ac6c51fa9f83eb" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -stream-browserify@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" - dependencies: - inherits "~2.0.1" - readable-stream "^2.0.2" - -stream-http@^2.7.2: - version "2.8.1" - resolved "https://registry.npmjs.org/stream-http/-/stream-http-2.8.1.tgz#d0441be1a457a73a733a8a7b53570bebd9ef66a4" - dependencies: - builtin-status-codes "^3.0.0" - inherits "^2.0.1" - readable-stream "^2.3.3" - to-arraybuffer "^1.0.0" - xtend "^4.0.0" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string-width@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string_decoder@^1.0.0, string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - dependencies: - safe-buffer "~5.1.0" - -stringstream@~0.0.4: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - dependencies: - ansi-regex "^3.0.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -supports-color@^4.2.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" - dependencies: - has-flag "^2.0.0" - -tapable@^0.1.8: - version "0.1.10" - resolved "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz#29c35707c2b70e50d07482b5d202e8ed446dafd4" - -tapable@^0.2.7: - version "0.2.8" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" - -tar-pack@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -timers-browserify@^2.0.4: - version "2.0.7" - resolved "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.7.tgz#e74093629cb62c20332af587ddc0c86b4ba97a05" - dependencies: - setimmediate "^1.0.4" - -to-arraybuffer@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -tough-cookie@~2.3.0: - version "2.3.4" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" - dependencies: - punycode "^1.4.1" - -tty-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -uglify-js@^2.8.29: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" - dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -uglifyjs-webpack-plugin@^0.4.6: - version "0.4.6" - resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz#b951f4abb6bd617e66f63eb891498e391763e309" - dependencies: - source-map "^0.5.6" - uglify-js "^2.8.29" - webpack-sources "^1.0.1" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - -unc-path-regex@^0.1.0: - version "0.1.2" - resolved "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" - -union-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^0.4.3" - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -upath@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/upath/-/upath-1.0.4.tgz#ee2321ba0a786c50973db043a50b7bcba822361d" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - -url@^0.11.0: - version "0.11.0" - resolved "https://registry.npmjs.org/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" - dependencies: - punycode "1.3.2" - querystring "0.2.0" - -use@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.0.tgz#14716bf03fdfefd03040aef58d8b4b85f3a7c544" - dependencies: - kind-of "^6.0.2" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -util@0.10.3, util@^0.10.3: - version "0.10.3" - resolved "https://registry.npmjs.org/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" - dependencies: - inherits "2.0.1" - -uuid@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" - -validate-npm-package-license@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338" - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -vm-browserify@0.0.4: - version "0.0.4" - resolved "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" - dependencies: - indexof "0.0.1" - -watchpack@^1.4.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.5.0.tgz#231e783af830a22f8966f65c4c4bacc814072eed" - dependencies: - chokidar "^2.0.2" - graceful-fs "^4.1.2" - neo-async "^2.5.0" - -webpack-sources@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.1.0.tgz#a101ebae59d6507354d71d8013950a3a8b7a5a54" - dependencies: - source-list-map "^2.0.0" - source-map "~0.6.1" - -webpack@3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.6.0.tgz#a89a929fbee205d35a4fa2cc487be9cbec8898bc" - dependencies: - acorn "^5.0.0" - acorn-dynamic-import "^2.0.0" - ajv "^5.1.5" - ajv-keywords "^2.0.0" - async "^2.1.2" - enhanced-resolve "^3.4.0" - escope "^3.6.0" - interpret "^1.0.0" - json-loader "^0.5.4" - json5 "^0.5.1" - loader-runner "^2.3.0" - loader-utils "^1.1.0" - memory-fs "~0.4.1" - mkdirp "~0.5.0" - node-libs-browser "^2.0.0" - source-map "^0.5.3" - supports-color "^4.2.1" - tapable "^0.2.7" - uglifyjs-webpack-plugin "^0.4.6" - watchpack "^1.4.0" - webpack-sources "^1.0.1" - yargs "^8.0.2" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - -wrap-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -xtend@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -y18n@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - -yargs-parser@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" - dependencies: - camelcase "^4.1.0" - -yargs@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" - dependencies: - camelcase "^4.1.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^2.0.0" - read-pkg-up "^2.0.0" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^2.0.0" - which-module "^2.0.0" - y18n "^3.2.1" - yargs-parser "^7.0.0" - -yargs@~1.2.6: - version "1.2.6" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-1.2.6.tgz#9c7b4a82fd5d595b2bf17ab6dcc43135432fe34b" - dependencies: - minimist "^0.1.0" - -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" diff --git a/packages/kbn-eslint-plugin-license-header/yarn.lock b/packages/kbn-eslint-plugin-license-header/yarn.lock deleted file mode 100644 index ff19c550def63..0000000000000 --- a/packages/kbn-eslint-plugin-license-header/yarn.lock +++ /dev/null @@ -1,7 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" diff --git a/packages/kbn-i18n/.babelrc b/packages/kbn-i18n/.babelrc deleted file mode 100644 index 4216ef3ceccd9..0000000000000 --- a/packages/kbn-i18n/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "env": { - "web": { - "presets": ["@kbn/babel-preset/webpack_preset"] - }, - "node": { - "presets": ["@kbn/babel-preset/node_preset"] - } - } -} diff --git a/packages/kbn-i18n/GUIDELINE.md b/packages/kbn-i18n/GUIDELINE.md index 77e54fc1240f4..188a88316b131 100644 --- a/packages/kbn-i18n/GUIDELINE.md +++ b/packages/kbn-i18n/GUIDELINE.md @@ -18,7 +18,7 @@ The following types are supported: - ToggleSwitch - LinkLabel and etc. -There is one more complex case, when we have to divide a single expression into different labels. +There is one more complex case, when we have to divide a single expression into different labels. For example the message before translation looks like: @@ -221,8 +221,8 @@ For example: ```js ``` @@ -333,4 +333,3 @@ it('should render normally', async () => { }); // ... ``` - diff --git a/packages/kbn-i18n/README.md b/packages/kbn-i18n/README.md index 54eadbd46ca9e..cff7fbe98ad44 100644 --- a/packages/kbn-i18n/README.md +++ b/packages/kbn-i18n/README.md @@ -107,8 +107,8 @@ when missing translations For the detailed explanation, see the section below - `getFormats()` - returns current formats - `getRegisteredLocales()` - returns array of locales having translations -- `translate(id: string, [{values: object, defaultMessage: string, context: string}])` – -translate message by id. `context` is optional context comment that will be extracted +- `translate(id: string, [{values: object, defaultMessage: string, description: string}])` – +translate message by id. `description` is optional context comment that will be extracted by i18n tools and added as a comment next to translation message at `defaultMessages.json`. - `init(messages: Map)` - initializes the engine @@ -171,6 +171,37 @@ import memoizeIntlConstructor from 'intl-format-cache'; const getMessageFormat = memoizeIntlConstructor(IntlMessageFormat); ``` +## Vanilla JS + +`Intl-messageformat` package assumes that the +[Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) +global object exists in the runtime. `Intl` is present in all modern +browsers and Node.js 0.10+. In order to load i18n engine +in Node.js we should simply `import` this module (in Node.js, the +[data](https://github.com/yahoo/intl-messageformat/tree/master/dist/locale-data) +for all 200+ languages is loaded along with the library) and pass the translation +messages into `init` method: + +```js +import { i18n } from '@kbn/i18n'; + +i18n.init(messages); +``` + +One common use-case is that of internationalizing a string constant. Here's an +example of how we'd do that: + +```js +import { i18n } from '@kbn/i18n'; + +export const HELLO_WORLD = i18n.translate('hello.wonderful.world', { + defaultMessage: 'Greetings, planet Earth!', +}), +``` + +We're also able to use all methods exposed by the i18n engine +(see [I18n engine](#i18n-engine) section above for more details). + ## React [React-intl](https://github.com/yahoo/react-intl) library is used for internalization @@ -238,7 +269,7 @@ class RootComponent extends Component { } ``` -Optionally we can pass `context` prop into `FormattedMessage` component. +Optionally we can pass `description` prop into `FormattedMessage` component. This prop is optional context comment that will be extracted by i18n tools and added as a comment next to translation message at `defaultMessages.json` @@ -256,10 +287,15 @@ import { injectI18n, intlShape } from '@kbn/i18n/react'; const MyComponentContent = ({ intl }) => ( ); @@ -321,13 +357,13 @@ when missing translations - `init(messages: Map)` - initializes the engine The translation `service` provides only one method: -- `i18n(id: string, [{values: object, defaultMessage: string, context: string }])`– +- `i18n(id: string, [{values: object, defaultMessage: string, description: string }])`– translate message by id The translation `filter` is used for attributes translation and has the following syntax: ``` -{{'translationId' | i18n[:{ values: object, defaultMessage: string, context: string }]}} +{{'translationId' | i18n[:{ values: object, defaultMessage: string, description: string }]}} ``` Where: @@ -335,7 +371,7 @@ Where: - `values` - values to pass into translation - `defaultMessage` - will be used unless translation was successful (the final fallback in english, will be used for generating `en.json`) -- `context` - optional context comment that will be extracted by i18n tools +- `description` - optional context comment that will be extracted by i18n tools and added as a comment next to translation message at `defaultMessages.json` The translation `directive` has the following syntax: @@ -344,7 +380,7 @@ The translation `directive` has the following syntax: i18n-id="{string}" [i18n-values="{object}"] [i18n-default-message="{string}"] - [i18n-context="{string}"] + [i18n-description="{string}"] > ``` @@ -352,7 +388,7 @@ Where: - `i18n-id` - translation id to be translated - `i18n-values` - values to pass into translation - `i18n-default-message` - will be used unless translation was successful -- `i18n-context` - optional context comment that will be extracted by i18n tools +- `i18n-description` - optional context comment that will be extracted by i18n tools and added as a comment next to translation message at `defaultMessages.json` Angular `I18n` module is placed into `autoload` module, so it will be @@ -368,32 +404,12 @@ In order to translate attributes in Angular we should use `i18nFilter`: ```html ``` -## Node.JS - -`Intl-messageformat` package assumes that the -[Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) -global object exists in the runtime. `Intl` is present in all modern -browsers and Node.js 0.10+. In order to load i18n engine -in Node.js we should simply `import` this module (in Node.js, the -[data](https://github.com/yahoo/intl-messageformat/tree/master/dist/locale-data) -for all 200+ languages is loaded along with the library) and pass the translation -messages into `init` method: - -```js -import { i18n } from '@kbn/i18n'; - -i18n.init(messages); -``` - -After that we are able to use all methods exposed by the i18n engine -(see [I18n engine](#i18n-engine) section above for more details). - ## Build tools In order to simplify localization process, some build tools will be added: diff --git a/packages/kbn-i18n/angular/package.json b/packages/kbn-i18n/angular/package.json index 1359539d4a867..1979e988fa7ce 100644 --- a/packages/kbn-i18n/angular/package.json +++ b/packages/kbn-i18n/angular/package.json @@ -1,4 +1,5 @@ { "browser": "../target/web/angular", - "main": "../target/node/angular" + "main": "../target/node/angular", + "types": "../target/types/angular/index.d.ts" } diff --git a/packages/kbn-i18n/babel.config.js b/packages/kbn-i18n/babel.config.js new file mode 100644 index 0000000000000..3530b4daf6792 --- /dev/null +++ b/packages/kbn-i18n/babel.config.js @@ -0,0 +1,51 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +// We can't use common Kibana presets here because of babel versions incompatibility +module.exports = { + plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread'], + presets: ['@babel/preset-react', '@babel/typescript'], + env: { + web: { + presets: [ + [ + '@babel/preset-env', + { + targets: { + browsers: ['last 2 versions', '> 5%', 'Safari 7'], + }, + }, + ], + ], + }, + node: { + presets: [ + [ + '@babel/preset-env', + { + targets: { + node: 'current', + }, + }, + ], + ], + }, + }, + ignore: ['**/*.test.ts', '**/*.test.tsx'], +}; diff --git a/packages/kbn-i18n/package.json b/packages/kbn-i18n/package.json index e760bcd51e8fc..7ef8d10c3a916 100644 --- a/packages/kbn-i18n/package.json +++ b/packages/kbn-i18n/package.json @@ -2,30 +2,39 @@ "name": "@kbn/i18n", "browser": "./target/web/browser.js", "main": "./target/node/index.js", - "module": "./src/index.js", + "types": "./target/types/index.d.ts", "version": "1.0.0", "license": "Apache-2.0", "private": true, "scripts": { - "build": "yarn build:web && yarn build:node", - "build:web": "cross-env BABEL_ENV=web babel src --out-dir target/web", - "build:node": "cross-env BABEL_ENV=node babel src --out-dir target/node", + "build": "yarn build:web && yarn build:node && yarn build:types", + "build:types": "tsc --emitDeclarationOnly", + "build:web": "cross-env BABEL_ENV=web babel src --config-file ./babel.config.js --out-dir target/web --extensions \".ts,.js,.tsx\"", + "build:node": "cross-env BABEL_ENV=node babel src --config-file ./babel.config.js --out-dir target/node --extensions \".ts,.js,.tsx\"", "kbn:bootstrap": "yarn build", "kbn:watch": "yarn build --watch" }, "devDependencies": { - "@kbn/babel-preset": "link:../kbn-babel-preset", - "@kbn/dev-utils": "link:../kbn-dev-utils", - "babel-cli": "^6.26.0", - "cross-env": "^5.2.0" + "@babel/cli": "^7.1.0", + "@babel/core": "^7.1.0", + "@babel/plugin-proposal-class-properties": "^7.1.0", + "@babel/plugin-proposal-object-rest-spread": "^7.0.0", + "@babel/preset-env": "^7.1.0", + "@babel/preset-react": "^7.0.0", + "@babel/preset-typescript": "^7.1.0", + "@types/intl-relativeformat": "^2.1.0", + "@types/json5": "^0.0.30", + "@types/react-intl": "^2.3.11", + "cross-env": "^5.2.0", + "typescript": "^3.0.3" }, "dependencies": { "intl-format-cache": "^2.1.0", "intl-messageformat": "^2.2.0", "intl-relativeformat": "^2.1.0", - "json5": "^1.0.1", - "prop-types": "^15.5.8", + "json5": "^2.0.1", + "prop-types": "^15.6.2", "react": "^16.3.0", - "react-intl": "^2.4.0" + "react-intl": "^2.7.0" } } diff --git a/packages/kbn-i18n/react/package.json b/packages/kbn-i18n/react/package.json index 73e591f8b1fc3..a22994acb3d83 100644 --- a/packages/kbn-i18n/react/package.json +++ b/packages/kbn-i18n/react/package.json @@ -1,4 +1,5 @@ { "browser": "../target/web/react", - "main": "../target/node/react" + "main": "../target/node/react", + "types": "../target/types/react/index.d.ts" } diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json b/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json index a25da0165b407..5cd8dd88e36a2 100644 --- a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json +++ b/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json @@ -1,4 +1,6 @@ { - "a.b.c": "bar", - "d.e.f": "foo" + "messages": { + "a.b.c": "bar", + "d.e.f": "foo" + } } diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json b/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json index eaec1a6d8a096..36aa3aa450c8f 100644 --- a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json +++ b/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json @@ -1,4 +1,6 @@ { - "a.b.c": "foo", - "d.e.f": "bar" + "messages": { + "a.b.c": "foo", + "d.e.f": "bar" + } } diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json b/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json index 85a62e3df1a48..9530a5967eb99 100644 --- a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json +++ b/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json @@ -1,4 +1,6 @@ { - "a.b.c.custom": "foo.custom", - "d.e.f.custom": "bar.custom" + "messages": { + "a.b.c.custom": "foo.custom", + "d.e.f.custom": "bar.custom" + } } diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json b/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json index 04e20542e75e3..88d3f27d9126c 100644 --- a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json +++ b/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json @@ -1,3 +1,5 @@ { - test: 'test' // JSON5 test + messages: { + test: 'test' // JSON5 test + } } diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json b/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json index d0ae716dbe4c3..e6207873f600a 100644 --- a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json +++ b/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json @@ -1,3 +1,5 @@ { - "test": "test" + "messages": { + "test": "test" + } } diff --git a/packages/kbn-i18n/src/__snapshots__/loader.test.js.snap b/packages/kbn-i18n/src/__snapshots__/loader.test.ts.snap similarity index 100% rename from packages/kbn-i18n/src/__snapshots__/loader.test.js.snap rename to packages/kbn-i18n/src/__snapshots__/loader.test.ts.snap diff --git a/packages/kbn-i18n/src/angular/__snapshots__/directive.test.ts.snap b/packages/kbn-i18n/src/angular/__snapshots__/directive.test.ts.snap new file mode 100644 index 0000000000000..9e783305a5a38 --- /dev/null +++ b/packages/kbn-i18n/src/angular/__snapshots__/directive.test.ts.snap @@ -0,0 +1,47 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`i18nDirective inserts correct translation html content with values 1`] = `"default-message word"`; + +exports[`i18nDirective inserts correct translation html content with values 2`] = `"default-message anotherWord"`; + +exports[`i18nDirective sanitizes message before inserting it to DOM 1`] = ` +
' }" +> + Default message, +
+
+`; + +exports[`i18nDirective sanitizes onclick attribute 1`] = ` +
+ Default + + Press + + message +
+`; + +exports[`i18nDirective sanitizes onmouseover attribute 1`] = ` +
Press' }" +> + Default + + Press + + message +
+`; diff --git a/packages/kbn-i18n/src/angular/directive.js b/packages/kbn-i18n/src/angular/directive.js deleted file mode 100644 index f9421814d9817..0000000000000 --- a/packages/kbn-i18n/src/angular/directive.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export function i18nDirective(i18n) { - return { - restrict: 'A', - scope: { - id: '@i18nId', - defaultMessage: '@i18nDefaultMessage', - values: '=i18nValues', - }, - link: function($scope, $element) { - $scope.$watchGroup(['id', 'defaultMessage', 'values'], function([ - id, - defaultMessage = '', - values = {}, - ]) { - $element.html( - i18n(id, { - values, - defaultMessage, - }) - ); - }); - }, - }; -} diff --git a/packages/kbn-i18n/src/angular/directive.test.js b/packages/kbn-i18n/src/angular/directive.test.js deleted file mode 100644 index 6f28c0b453236..0000000000000 --- a/packages/kbn-i18n/src/angular/directive.test.js +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import angular from 'angular'; -import 'angular-mocks'; -import { i18nDirective } from './directive'; -import { i18nProvider } from './provider'; - -angular - .module('app', []) - .provider('i18n', i18nProvider) - .directive('i18nId', i18nDirective); - -describe('i18nDirective', () => { - let compile; - let scope; - - beforeEach(angular.mock.module('app')); - beforeEach( - angular.mock.inject(($compile, $rootScope) => { - compile = $compile; - scope = $rootScope.$new(); - }) - ); - - it('inserts correct translation html content', () => { - const id = 'id'; - const defaultMessage = 'default-message'; - - const element = angular.element( - `
` - ); - - compile(element)(scope); - scope.$digest(); - - expect(element.html()).toEqual(defaultMessage); - }); - - it('inserts correct translation html content with values', () => { - const id = 'id'; - const defaultMessage = 'default-message {word}'; - const compiledContent = 'default-message word'; - - const element = angular.element( - `
` - ); - - compile(element)(scope); - scope.$digest(); - - expect(element.html()).toEqual(compiledContent); - }); -}); diff --git a/packages/kbn-i18n/src/angular/directive.test.ts b/packages/kbn-i18n/src/angular/directive.test.ts new file mode 100644 index 0000000000000..bd454192a9b2d --- /dev/null +++ b/packages/kbn-i18n/src/angular/directive.test.ts @@ -0,0 +1,131 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import angular from 'angular'; +import 'angular-mocks'; +import 'angular-sanitize'; + +import { i18nDirective } from './directive'; +import { I18nProvider } from './provider'; + +angular + .module('app', ['ngSanitize']) + .provider('i18n', I18nProvider) + .directive('i18nId', i18nDirective); + +describe('i18nDirective', () => { + let compile: angular.ICompileService; + let scope: angular.IRootScopeService & { word?: string }; + + beforeEach(angular.mock.module('app')); + beforeEach( + angular.mock.inject( + ($compile: angular.ICompileService, $rootScope: angular.IRootScopeService) => { + compile = $compile; + scope = $rootScope.$new(); + scope.word = 'word'; + } + ) + ); + + test('inserts correct translation html content', () => { + const id = 'id'; + const defaultMessage = 'default-message'; + + const element = angular.element( + `
` + ); + + compile(element)(scope); + scope.$digest(); + + expect(element.html()).toEqual(defaultMessage); + }); + + test('inserts correct translation html content with values', () => { + const id = 'id'; + const defaultMessage = 'default-message {word}'; + + const element = angular.element( + `
` + ); + + compile(element)(scope); + scope.$digest(); + + expect(element.html()).toMatchSnapshot(); + + scope.word = 'anotherWord'; + scope.$digest(); + + expect(element.html()).toMatchSnapshot(); + }); + + test('sanitizes message before inserting it to DOM', () => { + const element = angular.element( + `
` + ); + + compile(element)(scope); + scope.$digest(); + + expect(element[0]).toMatchSnapshot(); + }); + + test('sanitizes onclick attribute', () => { + const element = angular.element( + `
` + ); + + compile(element)(scope); + scope.$digest(); + + expect(element[0]).toMatchSnapshot(); + }); + + test('sanitizes onmouseover attribute', () => { + const element = angular.element( + `
` + ); + + compile(element)(scope); + scope.$digest(); + + expect(element[0]).toMatchSnapshot(); + }); +}); diff --git a/packages/kbn-i18n/src/angular/directive.ts b/packages/kbn-i18n/src/angular/directive.ts new file mode 100644 index 0000000000000..0b111c3daad68 --- /dev/null +++ b/packages/kbn-i18n/src/angular/directive.ts @@ -0,0 +1,67 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { IDirective, IRootElementService, IScope } from 'angular'; + +import { I18nServiceType } from './provider'; + +interface I18nScope extends IScope { + values?: Record; + defaultMessage: string; + id: string; +} + +export function i18nDirective( + i18n: I18nServiceType, + $sanitize: (html: string) => string +): IDirective { + return { + restrict: 'A', + scope: { + id: '@i18nId', + defaultMessage: '@i18nDefaultMessage', + values: ' { + setHtmlContent($element, $scope, $sanitize, i18n); + }); + } else { + setHtmlContent($element, $scope, $sanitize, i18n); + } + }, + }; +} + +function setHtmlContent( + $element: IRootElementService, + $scope: I18nScope, + $sanitize: (html: string) => string, + i18n: I18nServiceType +) { + $element.html( + $sanitize( + i18n($scope.id, { + values: $scope.values, + defaultMessage: $scope.defaultMessage, + }) + ) + ); +} diff --git a/packages/kbn-i18n/src/angular/filter.js b/packages/kbn-i18n/src/angular/filter.js deleted file mode 100644 index cdbe869237b1a..0000000000000 --- a/packages/kbn-i18n/src/angular/filter.js +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export function i18nFilter(i18n) { - return function(id, { defaultMessage = '', values = {} } = {}) { - return i18n(id, { - values, - defaultMessage, - }); - }; -} diff --git a/packages/kbn-i18n/src/angular/filter.test.js b/packages/kbn-i18n/src/angular/filter.test.js deleted file mode 100644 index b1ec5b8c3ad4c..0000000000000 --- a/packages/kbn-i18n/src/angular/filter.test.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import angular from 'angular'; -import 'angular-mocks'; -import { i18nProvider } from './provider'; -import { i18nFilter } from './filter'; -import * as i18n from '../core/i18n'; - -jest.mock('../core/i18n', () => ({ - translate: jest.fn().mockImplementation(() => 'translation'), -})); - -angular - .module('app', []) - .provider('i18n', i18nProvider) - .filter('i18n', i18nFilter); - -describe('i18nFilter', () => { - let filter; - - beforeEach(angular.mock.module('app')); - beforeEach( - angular.mock.inject(i18nFilter => { - filter = i18nFilter; - }) - ); - afterEach(() => { - jest.resetAllMocks(); - }); - - it('provides wrapper around i18n engine', () => { - const id = 'id'; - const defaultMessage = 'default-message'; - const values = {}; - - const result = filter(id, { defaultMessage, values }); - - expect(i18n.translate).toHaveBeenCalledTimes(1); - expect(i18n.translate).toHaveBeenCalledWith(id, { defaultMessage, values }); - expect(result).toEqual('translation'); - }); -}); diff --git a/packages/kbn-i18n/src/angular/filter.test.ts b/packages/kbn-i18n/src/angular/filter.test.ts new file mode 100644 index 0000000000000..78bc279689357 --- /dev/null +++ b/packages/kbn-i18n/src/angular/filter.test.ts @@ -0,0 +1,60 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +jest.mock('../core/i18n', () => ({ + translate: jest.fn().mockImplementation(() => 'translation'), +})); + +import angular from 'angular'; +import 'angular-mocks'; + +import * as i18n from '../core/i18n'; +import { i18nFilter as angularI18nFilter } from './filter'; +import { I18nProvider, I18nServiceType } from './provider'; + +angular + .module('app', []) + .provider('i18n', I18nProvider) + .filter('i18n', angularI18nFilter); + +describe('i18nFilter', () => { + let filter: I18nServiceType; + + beforeEach(angular.mock.module('app')); + beforeEach( + angular.mock.inject(i18nFilter => { + filter = i18nFilter; + }) + ); + afterEach(() => { + jest.resetAllMocks(); + }); + + test('provides wrapper around i18n engine', () => { + const id = 'id'; + const defaultMessage = 'default-message'; + const values = {}; + + const result = filter(id, { defaultMessage, values }); + + expect(result).toEqual('translation'); + expect(i18n.translate).toHaveBeenCalledTimes(1); + expect(i18n.translate).toHaveBeenCalledWith(id, { defaultMessage, values }); + }); +}); diff --git a/packages/kbn-i18n/src/angular/filter.ts b/packages/kbn-i18n/src/angular/filter.ts new file mode 100644 index 0000000000000..2f7425a9dd8e0 --- /dev/null +++ b/packages/kbn-i18n/src/angular/filter.ts @@ -0,0 +1,29 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { I18nServiceType } from './provider'; + +export function i18nFilter(i18n: I18nServiceType) { + return (id: string, { defaultMessage = '', values = {} } = {}) => { + return i18n(id, { + values, + defaultMessage, + }); + }; +} diff --git a/packages/kbn-i18n/src/angular/index.js b/packages/kbn-i18n/src/angular/index.js deleted file mode 100644 index a7af6fbeffc35..0000000000000 --- a/packages/kbn-i18n/src/angular/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export { i18nProvider } from './provider'; -export { i18nFilter } from './filter'; -export { i18nDirective } from './directive'; diff --git a/packages/kbn-i18n/src/angular/index.ts b/packages/kbn-i18n/src/angular/index.ts new file mode 100644 index 0000000000000..8f1e315cab389 --- /dev/null +++ b/packages/kbn-i18n/src/angular/index.ts @@ -0,0 +1,22 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { I18nProvider, I18nServiceType } from './provider'; +export { i18nFilter } from './filter'; +export { i18nDirective } from './directive'; diff --git a/packages/kbn-i18n/src/angular/provider.js b/packages/kbn-i18n/src/angular/provider.js deleted file mode 100644 index e4f73b7de0db3..0000000000000 --- a/packages/kbn-i18n/src/angular/provider.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import * as i18n from '../core'; - -export function i18nProvider() { - this.addMessages = i18n.addMessages; - this.getMessages = i18n.getMessages; - this.setLocale = i18n.setLocale; - this.getLocale = i18n.getLocale; - this.setDefaultLocale = i18n.setDefaultLocale; - this.getDefaultLocale = i18n.getDefaultLocale; - this.setFormats = i18n.setFormats; - this.getFormats = i18n.getFormats; - this.getRegisteredLocales = i18n.getRegisteredLocales; - this.init = i18n.init; - this.$get = () => i18n.translate; -} diff --git a/packages/kbn-i18n/src/angular/provider.test.js b/packages/kbn-i18n/src/angular/provider.test.js deleted file mode 100644 index 3246a6f1964d6..0000000000000 --- a/packages/kbn-i18n/src/angular/provider.test.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import angular from 'angular'; -import 'angular-mocks'; -import { i18nProvider } from './provider'; -import * as i18n from '../core/i18n'; - -angular.module('app', []).provider('i18n', i18nProvider); - -describe('i18nProvider', () => { - let provider; - let service; - - beforeEach( - angular.mock.module('app', [ - 'i18nProvider', - i18n => { - service = i18n; - }, - ]) - ); - beforeEach( - angular.mock.inject(i18n => { - provider = i18n; - }) - ); - - it('provides wrapper around i18n engine', () => { - expect(provider).toEqual(i18n.translate); - }); - - it('provides service wrapper around i18n engine', () => { - const serviceMethodNames = Object.keys(service); - const pluginMethodNames = Object.keys(i18n); - - expect([...serviceMethodNames, 'translate'].sort()).toEqual( - [...pluginMethodNames, '$get'].sort() - ); - }); -}); diff --git a/packages/kbn-i18n/src/angular/provider.test.ts b/packages/kbn-i18n/src/angular/provider.test.ts new file mode 100644 index 0000000000000..dfa1894c82c7a --- /dev/null +++ b/packages/kbn-i18n/src/angular/provider.test.ts @@ -0,0 +1,58 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import angular from 'angular'; +import 'angular-mocks'; + +import * as i18nCore from '../core/i18n'; +import { I18nProvider, I18nServiceType } from './provider'; + +angular.module('app', []).provider('i18n', I18nProvider); + +describe('i18nProvider', () => { + let provider: I18nProvider; + let service: I18nServiceType; + + beforeEach( + angular.mock.module('app', [ + 'i18nProvider', + (i18n: I18nProvider) => { + provider = i18n; + }, + ]) + ); + beforeEach( + angular.mock.inject((i18n: I18nServiceType) => { + service = i18n; + }) + ); + + test('provides wrapper around i18n engine', () => { + expect(service).toEqual(i18nCore.translate); + }); + + test('provides service wrapper around i18n engine', () => { + const serviceMethodNames = Object.keys(provider); + const pluginMethodNames = Object.keys(i18nCore); + + expect([...serviceMethodNames, 'translate'].sort()).toEqual( + [...pluginMethodNames, '$get'].sort() + ); + }); +}); diff --git a/packages/kbn-i18n/src/angular/provider.ts b/packages/kbn-i18n/src/angular/provider.ts new file mode 100644 index 0000000000000..44f0974ac8143 --- /dev/null +++ b/packages/kbn-i18n/src/angular/provider.ts @@ -0,0 +1,36 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import * as i18n from '../core'; + +export type I18nServiceType = ReturnType; + +export class I18nProvider implements angular.IServiceProvider { + public addTranslation = i18n.addTranslation; + public getTranslation = i18n.getTranslation; + public setLocale = i18n.setLocale; + public getLocale = i18n.getLocale; + public setDefaultLocale = i18n.setDefaultLocale; + public getDefaultLocale = i18n.getDefaultLocale; + public setFormats = i18n.setFormats; + public getFormats = i18n.getFormats; + public getRegisteredLocales = i18n.getRegisteredLocales; + public init = i18n.init; + public $get = () => i18n.translate; +} diff --git a/packages/kbn-i18n/src/browser.js b/packages/kbn-i18n/src/browser.ts similarity index 100% rename from packages/kbn-i18n/src/browser.js rename to packages/kbn-i18n/src/browser.ts diff --git a/packages/kbn-i18n/src/core/__snapshots__/i18n.test.js.snap b/packages/kbn-i18n/src/core/__snapshots__/i18n.test.js.snap deleted file mode 100644 index e28975a7c1e9e..0000000000000 --- a/packages/kbn-i18n/src/core/__snapshots__/i18n.test.js.snap +++ /dev/null @@ -1,49 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`I18n engine addMessages should throw error if locale is not specified or empty 1`] = `"[I18n] A \`locale\` must be a non-empty string to add messages."`; - -exports[`I18n engine addMessages should throw error if locale is not specified or empty 2`] = `"[I18n] A \`locale\` must be a non-empty string to add messages."`; - -exports[`I18n engine addMessages should throw error if locale specified in messages is different from one provided as second argument 1`] = `"[I18n] A \`locale\` in the messages object is different from the one provided as a second argument."`; - -exports[`I18n engine translate should throw error if id is not a non-empty string 1`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; - -exports[`I18n engine translate should throw error if id is not a non-empty string 2`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; - -exports[`I18n engine translate should throw error if id is not a non-empty string 3`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; - -exports[`I18n engine translate should throw error if id is not a non-empty string 4`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; - -exports[`I18n engine translate should throw error if id is not a non-empty string 5`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; - -exports[`I18n engine translate should throw error if id is not a non-empty string 6`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; - -exports[`I18n engine translate should throw error if translation message and defaultMessage are not provided 1`] = `"[I18n] Cannot format message: \\"foo\\". Default message must be provided."`; - -exports[`I18n engine translate should throw error if used format is not specified 1`] = ` -"[I18n] Error formatting message: \\"a.b.c\\" for locale: \\"en\\". -SyntaxError: Expected \\"date\\", \\"number\\", \\"plural\\", \\"select\\", \\"selectordinal\\" or \\"time\\" but \\"f\\" found." -`; - -exports[`I18n engine translate should throw error if used format is not specified 2`] = ` -"[I18n] Error formatting the default message for: \\"d.e.f\\". -SyntaxError: Expected \\"date\\", \\"number\\", \\"plural\\", \\"select\\", \\"selectordinal\\" or \\"time\\" but \\"b\\" found." -`; - -exports[`I18n engine translate should throw error if wrong context is provided to the translation string 1`] = ` -"[I18n] Error formatting message: \\"a.b.c\\" for locale: \\"en\\". -Error: The intl string context variable 'numPhotos' was not provided to the string 'You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }'" -`; - -exports[`I18n engine translate should throw error if wrong context is provided to the translation string 2`] = ` -"[I18n] Error formatting the default message for: \\"d.e.f\\". -Error: The intl string context variable 'numPhotos' was not provided to the string 'You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }'" -`; diff --git a/packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap b/packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap new file mode 100644 index 0000000000000..30d4f3f885053 --- /dev/null +++ b/packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap @@ -0,0 +1,51 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`I18n engine addMessages should throw error if locale is not specified or empty 1`] = `"[I18n] A \`locale\` must be a non-empty string to add messages."`; + +exports[`I18n engine addMessages should throw error if locale is not specified or empty 2`] = `"[I18n] A \`locale\` must be a non-empty string to add messages."`; + +exports[`I18n engine addMessages should throw error if locale specified in messages is different from one provided as second argument 1`] = `"[I18n] A \`locale\` in the translation object is different from the one provided as a second argument."`; + +exports[`I18n engine translate should throw error if id is not a non-empty string 1`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; + +exports[`I18n engine translate should throw error if id is not a non-empty string 2`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; + +exports[`I18n engine translate should throw error if id is not a non-empty string 3`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; + +exports[`I18n engine translate should throw error if id is not a non-empty string 4`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; + +exports[`I18n engine translate should throw error if id is not a non-empty string 5`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; + +exports[`I18n engine translate should throw error if id is not a non-empty string 6`] = `"[I18n] An \`id\` must be a non-empty string to translate a message."`; + +exports[`I18n engine translate should throw error if translation message and defaultMessage are not provided 1`] = `"[I18n] Cannot format message: \\"foo\\". Default message must be provided."`; + +exports[`I18n engine translate should throw error if used format is not specified 1`] = ` +"[I18n] Error formatting message: \\"a.b.c\\" for locale: \\"en\\". +SyntaxError: Expected \\"date\\", \\"number\\", \\"plural\\", \\"select\\", \\"selectordinal\\" or \\"time\\" but \\"f\\" found." +`; + +exports[`I18n engine translate should throw error if used format is not specified 2`] = ` +"[I18n] Error formatting the default message for: \\"d.e.f\\". +SyntaxError: Expected \\"date\\", \\"number\\", \\"plural\\", \\"select\\", \\"selectordinal\\" or \\"time\\" but \\"b\\" found." +`; + +exports[`I18n engine translate should throw error if wrong context is provided to the translation string 1`] = ` +"[I18n] Error formatting message: \\"a.b.c\\" for locale: \\"en\\". +Error: The intl string context variable 'numPhotos' was not provided to the string 'You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }'" +`; + +exports[`I18n engine translate should throw error if wrong context is provided to the translation string 2`] = ` +"[I18n] Error formatting the default message for: \\"d.e.f\\". +Error: The intl string context variable 'numPhotos' was not provided to the string 'You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }'" +`; + +exports[`I18n engine translateUsingPseudoLocale should translate message using pseudo-locale 1`] = `"Ṁéšššàĝĝé ŵîîţĥ àà [ɱàŕŕķðôôŵñ ļļîñķķ](http://localhost:5601/url) àñðð àñ ĥĥţɱļļ éļééɱéññţ"`; diff --git a/packages/kbn-i18n/src/core/formats.js b/packages/kbn-i18n/src/core/formats.js deleted file mode 100644 index 6a74040a7e1b7..0000000000000 --- a/packages/kbn-i18n/src/core/formats.js +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Default format options used for "en" locale. - * These are used when constructing the internal Intl.NumberFormat - * (`number` formatter) and Intl.DateTimeFormat (`date` and `time` formatters) instances. - * The value of each parameter of `number` formatter is options object which is - * described in `options` section of [NumberFormat constructor]. - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat} - * The value of each parameter of `date` and `time` formatters is options object which is - * described in `options` section of [DateTimeFormat constructor]. - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat} - */ -export const formats = { - number: { - currency: { - style: 'currency', - }, - percent: { - style: 'percent', - }, - }, - date: { - short: { - month: 'numeric', - day: 'numeric', - year: '2-digit', - }, - medium: { - month: 'short', - day: 'numeric', - year: 'numeric', - }, - long: { - month: 'long', - day: 'numeric', - year: 'numeric', - }, - full: { - weekday: 'long', - month: 'long', - day: 'numeric', - year: 'numeric', - }, - }, - time: { - short: { - hour: 'numeric', - minute: 'numeric', - }, - medium: { - hour: 'numeric', - minute: 'numeric', - second: 'numeric', - }, - long: { - hour: 'numeric', - minute: 'numeric', - second: 'numeric', - timeZoneName: 'short', - }, - full: { - hour: 'numeric', - minute: 'numeric', - second: 'numeric', - timeZoneName: 'short', - }, - }, -}; diff --git a/packages/kbn-i18n/src/core/formats.ts b/packages/kbn-i18n/src/core/formats.ts new file mode 100644 index 0000000000000..69cd61d9921dc --- /dev/null +++ b/packages/kbn-i18n/src/core/formats.ts @@ -0,0 +1,126 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * Default format options used for "en" locale. + * These are used when constructing the internal Intl.NumberFormat + * (`number` formatter) and Intl.DateTimeFormat (`date` and `time` formatters) instances. + * The value of each parameter of `number` formatter is options object which is + * described in `options` section of [NumberFormat constructor]. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat} + * The value of each parameter of `date` and `time` formatters is options object which is + * described in `options` section of [DateTimeFormat constructor]. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat} + */ +export const formats: Formats = { + number: { + currency: { + style: 'currency', + }, + percent: { + style: 'percent', + }, + }, + date: { + short: { + month: 'numeric', + day: 'numeric', + year: '2-digit', + }, + medium: { + month: 'short', + day: 'numeric', + year: 'numeric', + }, + long: { + month: 'long', + day: 'numeric', + year: 'numeric', + }, + full: { + weekday: 'long', + month: 'long', + day: 'numeric', + year: 'numeric', + }, + }, + time: { + short: { + hour: 'numeric', + minute: 'numeric', + }, + medium: { + hour: 'numeric', + minute: 'numeric', + second: 'numeric', + }, + long: { + hour: 'numeric', + minute: 'numeric', + second: 'numeric', + timeZoneName: 'short', + }, + full: { + hour: 'numeric', + minute: 'numeric', + second: 'numeric', + timeZoneName: 'short', + }, + }, +}; + +interface NumberFormatOptions extends Intl.NumberFormatOptions { + style?: TStyle; + localeMatcher?: 'lookup' | 'best fit'; + currencyDisplay?: 'symbol' | 'code' | 'name'; +} + +export interface Formats { + number?: Partial<{ + [key: string]: NumberFormatOptions<'currency' | 'percent' | 'decimal'>; + currency: NumberFormatOptions<'currency'>; + percent: NumberFormatOptions<'percent'>; + }>; + date?: Partial<{ + [key: string]: DateTimeFormatOptions; + short: DateTimeFormatOptions; + medium: DateTimeFormatOptions; + long: DateTimeFormatOptions; + full: DateTimeFormatOptions; + }>; + time?: Partial<{ + [key: string]: DateTimeFormatOptions; + short: DateTimeFormatOptions; + medium: DateTimeFormatOptions; + long: DateTimeFormatOptions; + full: DateTimeFormatOptions; + }>; +} + +interface DateTimeFormatOptions extends Intl.DateTimeFormatOptions { + weekday?: 'narrow' | 'short' | 'long'; + era?: 'narrow' | 'short' | 'long'; + year?: 'numeric' | '2-digit'; + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long'; + day?: 'numeric' | '2-digit'; + hour?: 'numeric' | '2-digit'; + minute?: 'numeric' | '2-digit'; + second?: 'numeric' | '2-digit'; + timeZoneName?: 'short' | 'long'; +} diff --git a/packages/kbn-i18n/src/core/helper.js b/packages/kbn-i18n/src/core/helper.js deleted file mode 100644 index c13b1b3a303e9..0000000000000 --- a/packages/kbn-i18n/src/core/helper.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export const isString = value => typeof value === 'string'; - -export const isObject = value => typeof value === 'object' && value !== null; - -export const hasValues = values => Object.keys(values).length > 0; - -export const unique = (arr = []) => [...new Set(arr)]; - -const merge = (a, b) => - unique([...Object.keys(a), ...Object.keys(b)]).reduce((acc, key) => { - if (isObject(a[key]) && isObject(b[key]) && !Array.isArray(a[key]) && !Array.isArray(b[key])) { - return { - ...acc, - [key]: merge(a[key], b[key]), - }; - } - - return { - ...acc, - [key]: b[key] === undefined ? a[key] : b[key], - }; - }, {}); - -export const mergeAll = (...sources) => - sources.filter(isObject).reduce((acc, source) => merge(acc, source)); diff --git a/packages/kbn-i18n/src/core/helper.test.js b/packages/kbn-i18n/src/core/helper.test.js deleted file mode 100644 index cb54be97ca9e7..0000000000000 --- a/packages/kbn-i18n/src/core/helper.test.js +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { isString, isObject, hasValues, unique, mergeAll } from './helper'; - -describe('I18n helper', () => { - describe('isString', () => { - test('should return true for string literal', () => { - expect(isString('test')).toBe(true); - }); - - test('should return false for string object', () => { - expect(isString(new String('test'))).toBe(false); - }); - - test('should return false for non-string values', () => { - expect(isString(undefined)).toBe(false); - expect(isString(null)).toBe(false); - expect(isString(0)).toBe(false); - expect(isString(true)).toBe(false); - expect(isString({})).toBe(false); - }); - }); - - describe('isObject', () => { - test('should return true for object literal', () => { - expect(isObject({})).toBe(true); - }); - - test('should return true for array literal', () => { - expect(isObject([])).toBe(true); - }); - - test('should return false for primitives', () => { - expect(isObject(undefined)).toBe(false); - expect(isObject(null)).toBe(false); - expect(isObject(0)).toBe(false); - expect(isObject(true)).toBe(false); - expect(isObject('test')).toBe(false); - }); - }); - - describe('hasValues', () => { - test('should return false for empty object', () => { - expect(hasValues({})).toBe(false); - }); - - test('should return true for non-empty object', () => { - expect(hasValues({ foo: 'bar' })).toBe(true); - }); - - test('should throw error for null and undefined', () => { - expect(() => hasValues(undefined)).toThrow(); - expect(() => hasValues(null)).toThrow(); - }); - - test('should return false for number and boolean', () => { - expect(hasValues(true)).toBe(false); - expect(hasValues(0)).toBe(false); - }); - - test('should return false for empty string', () => { - expect(hasValues('')).toBe(false); - }); - - test('should return true for non-empty string', () => { - expect(hasValues('test')).toBe(true); - }); - - test('should return false for empty array', () => { - expect(hasValues([])).toBe(false); - }); - - test('should return true for non-empty array', () => { - expect(hasValues([1, 2, 3])).toBe(true); - }); - }); - - describe('unique', () => { - test('should return an array with unique values', () => { - expect(unique([1, 2, 7, 2, 6, 7, 1])).toEqual([1, 2, 7, 6]); - }); - - test('should create a new array', () => { - const value = [1, 2, 3]; - - expect(unique(value)).toEqual(value); - expect(unique(value)).not.toBe(value); - }); - - test('should filter unique values only by reference', () => { - expect(unique([{ foo: 'bar' }, { foo: 'bar' }])).toEqual([{ foo: 'bar' }, { foo: 'bar' }]); - - const value = { foo: 'bar' }; - - expect(unique([value, value])).toEqual([value]); - }); - }); - - describe('mergeAll', () => { - test('should throw error for empty arguments', () => { - expect(() => mergeAll()).toThrow(); - }); - - test('should merge only objects', () => { - expect(mergeAll(undefined, null, true, 5, '5', { foo: 'bar' })).toEqual({ - foo: 'bar', - }); - }); - - test('should return the only argument as is', () => { - const value = { foo: 'bar' }; - - expect(mergeAll(value)).toBe(value); - }); - - test('should return a deep merge of 2 objects nested objects', () => { - expect( - mergeAll( - { - foo: { bar: 3 }, - array: [ - { - does: 'work', - too: [1, 2, 3], - }, - ], - }, - { - foo: { baz: 4 }, - quux: 5, - array: [ - { - does: 'work', - too: [4, 5, 6], - }, - { - really: 'yes', - }, - ], - } - ) - ).toEqual({ - foo: { - bar: 3, - baz: 4, - }, - array: [ - { - does: 'work', - too: [4, 5, 6], - }, - { - really: 'yes', - }, - ], - quux: 5, - }); - }); - - test('should override arrays', () => { - expect(mergeAll({ foo: [1, 2] }, { foo: [3, 4] })).toEqual({ - foo: [3, 4], - }); - }); - - test('should merge any number of objects', () => { - expect(mergeAll({ a: 1 }, { b: 2 }, { c: 3 })).toEqual({ - a: 1, - b: 2, - c: 3, - }); - expect(mergeAll({ a: 1 }, { b: 2 }, { c: 3 }, { d: 4 })).toEqual({ - a: 1, - b: 2, - c: 3, - d: 4, - }); - }); - }); -}); diff --git a/packages/kbn-i18n/src/core/helper.test.ts b/packages/kbn-i18n/src/core/helper.test.ts new file mode 100644 index 0000000000000..ee2202dca7f0c --- /dev/null +++ b/packages/kbn-i18n/src/core/helper.test.ts @@ -0,0 +1,198 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { hasValues, isObject, isString, mergeAll, unique } from './helper'; + +describe('I18n helper', () => { + describe('isString', () => { + test('should return true for string literal', () => { + expect(isString('test')).toBe(true); + }); + + test('should return false for string object', () => { + // tslint:disable-next-line:no-construct + expect(isString(new String('test'))).toBe(false); + }); + + test('should return false for non-string values', () => { + expect(isString(undefined)).toBe(false); + expect(isString(null)).toBe(false); + expect(isString(0)).toBe(false); + expect(isString(true)).toBe(false); + expect(isString({})).toBe(false); + }); + }); + + describe('isObject', () => { + test('should return true for object literal', () => { + expect(isObject({})).toBe(true); + }); + + test('should return true for array literal', () => { + expect(isObject([])).toBe(true); + }); + + test('should return false for primitives', () => { + expect(isObject(undefined)).toBe(false); + expect(isObject(null)).toBe(false); + expect(isObject(0)).toBe(false); + expect(isObject(true)).toBe(false); + expect(isObject('test')).toBe(false); + }); + }); + + describe('hasValues', () => { + test('should return false for empty object', () => { + expect(hasValues({})).toBe(false); + }); + + test('should return true for non-empty object', () => { + expect(hasValues({ foo: 'bar' })).toBe(true); + }); + + test('should throw error for null and undefined', () => { + expect(() => hasValues(undefined)).toThrow(); + expect(() => hasValues(null)).toThrow(); + }); + + test('should return false for number and boolean', () => { + expect(hasValues(true)).toBe(false); + expect(hasValues(0)).toBe(false); + }); + + test('should return false for empty string', () => { + expect(hasValues('')).toBe(false); + }); + + test('should return true for non-empty string', () => { + expect(hasValues('test')).toBe(true); + }); + + test('should return false for empty array', () => { + expect(hasValues([])).toBe(false); + }); + + test('should return true for non-empty array', () => { + expect(hasValues([1, 2, 3])).toBe(true); + }); + }); + + describe('unique', () => { + test('should return an array with unique values', () => { + expect(unique([1, 2, 7, 2, 6, 7, 1])).toEqual([1, 2, 7, 6]); + }); + + test('should create a new array', () => { + const value = [1, 2, 3]; + + expect(unique(value)).toEqual(value); + expect(unique(value)).not.toBe(value); + }); + + test('should filter unique values only by reference', () => { + expect(unique([{ foo: 'bar' }, { foo: 'bar' }])).toEqual([{ foo: 'bar' }, { foo: 'bar' }]); + + const value = { foo: 'bar' }; + + expect(unique([value, value])).toEqual([value]); + }); + }); + + describe('mergeAll', () => { + test('should throw error for empty arguments', () => { + expect(() => mergeAll()).toThrow(); + }); + + test('should merge only objects', () => { + expect(mergeAll(undefined, null, true, 5, '5', { foo: 'bar' })).toEqual({ + foo: 'bar', + }); + }); + + test('should return the only argument as is', () => { + const value = { foo: 'bar' }; + + expect(mergeAll(value)).toBe(value); + }); + + test('should return a deep merge of 2 objects nested objects', () => { + expect( + mergeAll( + { + foo: { bar: 3 }, + array: [ + { + does: 'work', + too: [1, 2, 3], + }, + ], + }, + { + foo: { baz: 4 }, + quux: 5, + array: [ + { + does: 'work', + too: [4, 5, 6], + }, + { + really: 'yes', + }, + ], + } + ) + ).toEqual({ + foo: { + bar: 3, + baz: 4, + }, + array: [ + { + does: 'work', + too: [4, 5, 6], + }, + { + really: 'yes', + }, + ], + quux: 5, + }); + }); + + test('should override arrays', () => { + expect(mergeAll({ foo: [1, 2] }, { foo: [3, 4] })).toEqual({ + foo: [3, 4], + }); + }); + + test('should merge any number of objects', () => { + expect(mergeAll({ a: 1 }, { b: 2 }, { c: 3 })).toEqual({ + a: 1, + b: 2, + c: 3, + }); + expect(mergeAll({ a: 1 }, { b: 2 }, { c: 3 }, { d: 4 })).toEqual({ + a: 1, + b: 2, + c: 3, + d: 4, + }); + }); + }); +}); diff --git a/packages/kbn-i18n/src/core/helper.ts b/packages/kbn-i18n/src/core/helper.ts new file mode 100644 index 0000000000000..34d7261a0c9aa --- /dev/null +++ b/packages/kbn-i18n/src/core/helper.ts @@ -0,0 +1,45 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export const isString = (value: any): value is string => typeof value === 'string'; + +export const isObject = (value: any): value is object => + typeof value === 'object' && value !== null; + +export const hasValues = (values: any) => Object.keys(values).length > 0; + +export const unique = (arr: T[] = []): T[] => [...new Set(arr)]; + +const merge = (a: any, b: any): { [k: string]: any } => + unique([...Object.keys(a), ...Object.keys(b)]).reduce((acc, key) => { + if (isObject(a[key]) && isObject(b[key]) && !Array.isArray(a[key]) && !Array.isArray(b[key])) { + return { + ...acc, + [key]: merge(a[key], b[key]), + }; + } + + return { + ...acc, + [key]: b[key] === undefined ? a[key] : b[key], + }; + }, {}); + +export const mergeAll = (...sources: any[]) => + sources.filter(isObject).reduce((acc, source) => merge(acc, source)); diff --git a/packages/kbn-i18n/src/core/i18n.js b/packages/kbn-i18n/src/core/i18n.js deleted file mode 100644 index 3d76d13a72d63..0000000000000 --- a/packages/kbn-i18n/src/core/i18n.js +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - @typedef Messages - messages tree, where leafs are translated strings - @type {object} - @property {string} [locale] - locale of the messages - @property {object} [formats] - set of options to the underlying formatter - */ - -import IntlMessageFormat from 'intl-messageformat'; -import IntlRelativeFormat from 'intl-relativeformat'; -import memoizeIntlConstructor from 'intl-format-cache'; -import { isString, isObject, hasValues, mergeAll } from './helper'; -import { formats as EN_FORMATS } from './formats'; - -// Add all locale data to `IntlMessageFormat`. -import './locales'; - -const EN_LOCALE = 'en'; -const LOCALE_DELIMITER = '-'; -const messages = {}; -const getMessageFormat = memoizeIntlConstructor(IntlMessageFormat); - -let defaultLocale = EN_LOCALE; -let currentLocale = EN_LOCALE; -let formats = EN_FORMATS; - -IntlMessageFormat.defaultLocale = defaultLocale; -IntlRelativeFormat.defaultLocale = defaultLocale; - -/** - * Returns message by the given message id. - * @param {string} id - path to the message - * @returns {string} message - translated message from messages tree - */ -function getMessageById(id) { - return getMessages()[id]; -} - -/** - * Normalizes locale to make it consistent with IntlMessageFormat locales - * @param {string} locale - * @returns {string} normalizedLocale - */ -function normalizeLocale(locale) { - return locale.toLowerCase().replace('_', LOCALE_DELIMITER); -} - -/** - * Provides a way to register translations with the engine - * @param {Messages} newMessages - * @param {string} [locale = messages.locale] - */ -export function addMessages(newMessages = {}, locale = newMessages.locale) { - if (!locale || !isString(locale)) { - throw new Error('[I18n] A `locale` must be a non-empty string to add messages.'); - } - - if (newMessages.locale && newMessages.locale !== locale) { - throw new Error( - '[I18n] A `locale` in the messages object is different from the one provided as a second argument.' - ); - } - - const normalizedLocale = normalizeLocale(locale); - - messages[normalizedLocale] = { - ...messages[normalizedLocale], - ...newMessages, - }; -} - -/** - * Returns messages for the current language - * @returns {Messages} messages - */ -export function getMessages() { - return messages[currentLocale] || {}; -} - -/** - * Tells the engine which language to use by given language key - * @param {string} locale - */ -export function setLocale(locale) { - if (!locale || !isString(locale)) { - throw new Error('[I18n] A `locale` must be a non-empty string.'); - } - - currentLocale = normalizeLocale(locale); -} - -/** - * Returns the current locale - * @returns {string} locale - */ -export function getLocale() { - return currentLocale; -} - -/** - * Tells the library which language to fallback when missing translations - * @param {string} locale - */ -export function setDefaultLocale(locale) { - if (!locale || !isString(locale)) { - throw new Error('[I18n] A `locale` must be a non-empty string.'); - } - - defaultLocale = normalizeLocale(locale); - IntlMessageFormat.defaultLocale = defaultLocale; - IntlRelativeFormat.defaultLocale = defaultLocale; -} - -/** - * Returns the default locale - * @returns {string} defaultLocale - */ -export function getDefaultLocale() { - return defaultLocale; -} - -/** - * Supplies a set of options to the underlying formatter - * [Default format options used as the prototype of the formats] - * {@link https://github.com/yahoo/intl-messageformat/blob/master/src/core.js#L62} - * These are used when constructing the internal Intl.NumberFormat - * and Intl.DateTimeFormat instances. - * @param {object} newFormats - * @param {object} [newFormats.number] - * @param {object} [newFormats.date] - * @param {object} [newFormats.time] - */ -export function setFormats(newFormats) { - if (!isObject(newFormats) || !hasValues(newFormats)) { - throw new Error('[I18n] A `formats` must be a non-empty object.'); - } - - formats = mergeAll(formats, newFormats); -} - -/** - * Returns current formats - * @returns {object} formats - */ -export function getFormats() { - return formats; -} - -/** - * Returns array of locales having translations - * @returns {string[]} locales - */ -export function getRegisteredLocales() { - return Object.keys(messages); -} - -/** - * Translate message by id - * @param {string} id - translation id to be translated - * @param {object} [options] - * @param {object} [options.values] - values to pass into translation - * @param {string} [options.defaultMessage] - will be used unless translation was successful - * @returns {string} - */ -export function translate(id, { values = {}, defaultMessage = '' } = {}) { - if (!id || !isString(id)) { - throw new Error('[I18n] An `id` must be a non-empty string to translate a message.'); - } - - const message = getMessageById(id); - - if (!message && !defaultMessage) { - throw new Error(`[I18n] Cannot format message: "${id}". Default message must be provided.`); - } - - if (!hasValues(values)) { - return message || defaultMessage; - } - - if (message) { - try { - const msg = getMessageFormat(message, getLocale(), getFormats()); - - return msg.format(values); - } catch (e) { - throw new Error( - `[I18n] Error formatting message: "${id}" for locale: "${getLocale()}".\n${e}` - ); - } - } - - try { - const msg = getMessageFormat(defaultMessage, getDefaultLocale(), getFormats()); - - return msg.format(values); - } catch (e) { - throw new Error(`[I18n] Error formatting the default message for: "${id}".\n${e}`); - } -} - -/** - * Initializes the engine - * @param {Messages} newMessages - */ -export function init(newMessages) { - if (!newMessages) { - return; - } - - addMessages(newMessages); - - if (newMessages.locale) { - setLocale(newMessages.locale); - } - - if (newMessages.formats) { - setFormats(newMessages.formats); - } -} diff --git a/packages/kbn-i18n/src/core/i18n.test.js b/packages/kbn-i18n/src/core/i18n.test.js deleted file mode 100644 index 695b65a3e2d3e..0000000000000 --- a/packages/kbn-i18n/src/core/i18n.test.js +++ /dev/null @@ -1,774 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -describe('I18n engine', () => { - let i18n; - - beforeEach(() => { - i18n = require('./i18n'); - }); - - afterEach(() => { - // isolate modules for every test so that local module state doesn't conflict between tests - jest.resetModules(); - }); - - describe('addMessages', () => { - test('should throw error if locale is not specified or empty', () => { - expect(() => i18n.addMessages({ foo: 'bar' })).toThrowErrorMatchingSnapshot(); - expect(() => i18n.addMessages({ locale: '' })).toThrowErrorMatchingSnapshot(); - }); - - test('should throw error if locale specified in messages is different from one provided as second argument', () => { - expect(() => - i18n.addMessages({ foo: 'bar', locale: 'en' }, 'ru') - ).toThrowErrorMatchingSnapshot(); - }); - - test('should add messages if locale prop is passed as second argument', () => { - const locale = 'ru'; - - expect(i18n.getMessages()).toEqual({}); - - i18n.addMessages({ foo: 'bar' }, locale); - - expect(i18n.getMessages()).toEqual({}); - - i18n.setLocale(locale); - - expect(i18n.getMessages()).toEqual({ foo: 'bar' }); - }); - - test('should add messages if locale prop is passed as messages property', () => { - const locale = 'ru'; - - expect(i18n.getMessages()).toEqual({}); - - i18n.addMessages({ - locale, - foo: 'bar', - }); - - expect(i18n.getMessages()).toEqual({}); - - i18n.setLocale(locale); - - expect(i18n.getMessages()).toEqual({ - foo: 'bar', - locale: 'ru', - }); - }); - - test('should merge messages with the same locale', () => { - const locale = 'ru'; - - i18n.setLocale(locale); - i18n.addMessages({ - locale, - ['a.b.c']: 'foo', - }); - - expect(i18n.getMessages()).toEqual({ - locale: 'ru', - ['a.b.c']: 'foo', - }); - - i18n.addMessages({ - locale, - ['d.e.f']: 'bar', - }); - - expect(i18n.getMessages()).toEqual({ - locale: 'ru', - ['a.b.c']: 'foo', - ['d.e.f']: 'bar', - }); - }); - - test('should override messages with the same locale and id', () => { - const locale = 'ru'; - - i18n.setLocale(locale); - i18n.addMessages({ - locale, - ['a.b.c']: 'foo', - }); - - expect(i18n.getMessages()).toEqual({ - locale: 'ru', - ['a.b.c']: 'foo', - }); - - i18n.addMessages({ - locale, - ['a.b.c']: 'bar', - }); - - expect(i18n.getMessages()).toEqual({ - locale: 'ru', - ['a.b.c']: 'bar', - }); - }); - - test('should add messages with normalized passed locale', () => { - const locale = 'en-us'; - i18n.setLocale(locale); - - i18n.addMessages( - { - ['a.b.c']: 'bar', - }, - 'en_US' - ); - - expect(i18n.getLocale()).toBe(locale); - expect(i18n.getMessages()).toEqual({ - ['a.b.c']: 'bar', - }); - }); - }); - - describe('getMessages', () => { - test('should return messages for the current language', () => { - i18n.addMessages({ - locale: 'ru', - foo: 'bar', - }); - i18n.addMessages({ - locale: 'en', - bar: 'foo', - }); - - i18n.setLocale('ru'); - expect(i18n.getMessages()).toEqual({ - locale: 'ru', - foo: 'bar', - }); - - i18n.setLocale('en'); - expect(i18n.getMessages()).toEqual({ - locale: 'en', - bar: 'foo', - }); - }); - - test('should return an empty object if messages for current locale are not specified', () => { - expect(i18n.getMessages()).toEqual({}); - - i18n.setLocale('fr'); - expect(i18n.getMessages()).toEqual({}); - - i18n.setLocale('en'); - expect(i18n.getMessages()).toEqual({}); - }); - }); - - describe('setLocale', () => { - test('should throw error if locale is not a non-empty string', () => { - expect(() => i18n.setLocale(undefined)).toThrow(); - expect(() => i18n.setLocale(null)).toThrow(); - expect(() => i18n.setLocale(true)).toThrow(); - expect(() => i18n.setLocale(5)).toThrow(); - expect(() => i18n.setLocale({})).toThrow(); - expect(() => i18n.setLocale('')).toThrow(); - }); - - test('should update current locale', () => { - expect(i18n.getLocale()).not.toBe('foo'); - i18n.setLocale('foo'); - expect(i18n.getLocale()).toBe('foo'); - }); - - test('should normalize passed locale', () => { - i18n.setLocale('en_US'); - expect(i18n.getLocale()).toBe('en-us'); - }); - }); - - describe('getLocale', () => { - test('should return "en" locale by default', () => { - expect(i18n.getLocale()).toBe('en'); - }); - - test('should return updated locale', () => { - i18n.setLocale('foo'); - expect(i18n.getLocale()).toBe('foo'); - }); - }); - - describe('setDefaultLocale', () => { - test('should throw error if locale is not a non-empty string', () => { - expect(() => i18n.setDefaultLocale(undefined)).toThrow(); - expect(() => i18n.setDefaultLocale(null)).toThrow(); - expect(() => i18n.setDefaultLocale(true)).toThrow(); - expect(() => i18n.setDefaultLocale(5)).toThrow(); - expect(() => i18n.setDefaultLocale({})).toThrow(); - expect(() => i18n.setDefaultLocale('')).toThrow(); - }); - - test('should update the default locale', () => { - expect(i18n.getDefaultLocale()).not.toBe('foo'); - i18n.setDefaultLocale('foo'); - expect(i18n.getDefaultLocale()).toBe('foo'); - }); - - test('should normalize passed locale', () => { - i18n.setDefaultLocale('en_US'); - expect(i18n.getDefaultLocale()).toBe('en-us'); - }); - - test('should set "en" locale as default for IntlMessageFormat and IntlRelativeFormat', () => { - const IntlMessageFormat = require('intl-messageformat'); - const IntlRelativeFormat = require('intl-relativeformat'); - - expect(IntlMessageFormat.defaultLocale).toBe('en'); - expect(IntlRelativeFormat.defaultLocale).toBe('en'); - }); - - test('should update defaultLocale for IntlMessageFormat and IntlRelativeFormat', () => { - const IntlMessageFormat = require('intl-messageformat'); - const IntlRelativeFormat = require('intl-relativeformat'); - - i18n.setDefaultLocale('foo'); - - expect(IntlMessageFormat.defaultLocale).toBe('foo'); - expect(IntlRelativeFormat.defaultLocale).toBe('foo'); - }); - }); - - describe('getDefaultLocale', () => { - test('should return "en" locale by default', () => { - expect(i18n.getDefaultLocale()).toBe('en'); - }); - - test('should return updated locale', () => { - i18n.setDefaultLocale('foo'); - expect(i18n.getDefaultLocale()).toBe('foo'); - }); - }); - - describe('setFormats', () => { - test('should throw error if formats parameter is not a non-empty object', () => { - expect(() => i18n.setFormats(undefined)).toThrow(); - expect(() => i18n.setFormats(null)).toThrow(); - expect(() => i18n.setFormats(true)).toThrow(); - expect(() => i18n.setFormats(5)).toThrow(); - expect(() => i18n.setFormats('foo')).toThrow(); - expect(() => i18n.setFormats({})).toThrow(); - }); - - test('should merge current formats with a passed formats', () => { - expect(i18n.getFormats().date.short).not.toEqual({ - month: 'short', - day: 'numeric', - year: 'numeric', - }); - - i18n.setFormats({ - date: { - short: { - month: 'short', - day: 'numeric', - year: 'numeric', - }, - }, - }); - - expect(i18n.getFormats().date.short).toEqual({ - month: 'short', - day: 'numeric', - year: 'numeric', - }); - - i18n.setFormats({ - date: { - short: { - month: 'long', - }, - }, - }); - - expect(i18n.getFormats().date.short).toEqual({ - month: 'long', - day: 'numeric', - year: 'numeric', - }); - }); - }); - - describe('getFormats', () => { - test('should return "en" formats by default', () => { - const { formats } = require('./formats'); - - expect(i18n.getFormats()).toEqual(formats); - }); - - test('should return updated formats', () => { - const { formats } = require('./formats'); - - i18n.setFormats({ - foo: 'bar', - }); - - expect(i18n.getFormats()).toEqual({ - ...formats, - foo: 'bar', - }); - }); - }); - - describe('getRegisteredLocales', () => { - test('should return empty array by default', () => { - expect(i18n.getRegisteredLocales()).toEqual([]); - }); - - test('should return array of registered locales', () => { - i18n.addMessages({ - locale: 'en', - }); - - expect(i18n.getRegisteredLocales()).toEqual(['en']); - - i18n.addMessages({ - locale: 'ru', - }); - - expect(i18n.getRegisteredLocales()).toContain('en', 'ru'); - expect(i18n.getRegisteredLocales().length).toBe(2); - - i18n.addMessages({ - locale: 'fr', - }); - - expect(i18n.getRegisteredLocales()).toContain('en', 'ru', 'fr'); - expect(i18n.getRegisteredLocales().length).toBe(3); - }); - }); - - describe('translate', () => { - test('should throw error if id is not a non-empty string', () => { - expect(() => i18n.translate(undefined)).toThrowErrorMatchingSnapshot(); - expect(() => i18n.translate(null)).toThrowErrorMatchingSnapshot(); - expect(() => i18n.translate(true)).toThrowErrorMatchingSnapshot(); - expect(() => i18n.translate(5)).toThrowErrorMatchingSnapshot(); - expect(() => i18n.translate({})).toThrowErrorMatchingSnapshot(); - expect(() => i18n.translate('')).toThrowErrorMatchingSnapshot(); - }); - - test('should throw error if translation message and defaultMessage are not provided', () => { - expect(() => i18n.translate('foo')).toThrowErrorMatchingSnapshot(); - }); - - test('should return message as is if values are not provided', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: 'foo', - }); - - expect(i18n.translate('a.b.c')).toBe('foo'); - }); - - test('should return default message as is if values are not provided', () => { - expect(i18n.translate('a.b.c', { defaultMessage: 'foo' })).toBe('foo'); - }); - - test('should not return defaultMessage as is if values are provided', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: 'foo', - }); - expect(i18n.translate('a.b.c', { defaultMessage: 'bar' })).toBe('foo'); - }); - - test('should interpolate variables', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: 'foo {a}, {b}, {c} bar', - ['d.e.f']: '{foo}', - }); - - expect( - i18n.translate('a.b.c', { - values: { a: 1, b: 2, c: 3 }, - }) - ).toBe('foo 1, 2, 3 bar'); - - expect(i18n.translate('d.e.f', { values: { foo: 'bar' } })).toBe('bar'); - }); - - test('should interpolate variables for default messages', () => { - expect( - i18n.translate('a.b.c', { - defaultMessage: 'foo {a}, {b}, {c} bar', - values: { a: 1, b: 2, c: 3 }, - }) - ).toBe('foo 1, 2, 3 bar'); - }); - - test('should format pluralized messages', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: `You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }`, - }); - - expect(i18n.translate('a.b.c', { values: { numPhotos: 0 } })).toBe('You have no photos.'); - expect(i18n.translate('a.b.c', { values: { numPhotos: 1 } })).toBe('You have one photo.'); - expect(i18n.translate('a.b.c', { values: { numPhotos: 1000 } })).toBe( - 'You have 1,000 photos.' - ); - }); - - test('should format pluralized default messages', () => { - i18n.setDefaultLocale('en'); - - expect( - i18n.translate('a.b.c', { - values: { numPhotos: 0 }, - defaultMessage: `You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }`, - }) - ).toBe('You have no photos.'); - - expect( - i18n.translate('a.b.c', { - values: { numPhotos: 1 }, - defaultMessage: `You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }`, - }) - ).toBe('You have one photo.'); - - expect( - i18n.translate('a.b.c', { - values: { numPhotos: 1000 }, - defaultMessage: `You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }`, - }) - ).toBe('You have 1,000 photos.'); - }); - - test('should throw error if wrong context is provided to the translation string', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: `You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }`, - }); - i18n.setDefaultLocale('en'); - - expect(() => i18n.translate('a.b.c', { values: { foo: 0 } })).toThrowErrorMatchingSnapshot(); - - expect(() => - i18n.translate('d.e.f', { - values: { bar: 1000 }, - defaultMessage: `You have {numPhotos, plural, - =0 {no photos.} - =1 {one photo.} - other {# photos.} - }`, - }) - ).toThrowErrorMatchingSnapshot(); - }); - - test('should format messages with percent formatter', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: 'Result: {result, number, percent}', - }); - i18n.setDefaultLocale('en'); - - expect(i18n.translate('a.b.c', { values: { result: 0.15 } })).toBe('Result: 15%'); - - expect( - i18n.translate('d.e.f', { - values: { result: 0.15 }, - defaultMessage: 'Result: {result, number, percent}', - }) - ).toBe('Result: 15%'); - }); - - test('should format messages with date formatter', () => { - i18n.init({ - locale: 'en', - ['a.short']: 'Sale begins {start, date, short}', - ['a.medium']: 'Sale begins {start, date, medium}', - ['a.long']: 'Sale begins {start, date, long}', - ['a.full']: 'Sale begins {start, date, full}', - }); - - expect( - i18n.translate('a.short', { - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins 6/20/18'); - - expect( - i18n.translate('a.medium', { - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins Jun 20, 2018'); - - expect( - i18n.translate('a.long', { - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins June 20, 2018'); - - expect( - i18n.translate('a.full', { - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins Wednesday, June 20, 2018'); - }); - - test('should format default messages with date formatter', () => { - i18n.setDefaultLocale('en'); - - expect( - i18n.translate('foo', { - defaultMessage: 'Sale begins {start, date, short}', - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins 6/20/18'); - - expect( - i18n.translate('foo', { - defaultMessage: 'Sale begins {start, date, medium}', - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins Jun 20, 2018'); - - expect( - i18n.translate('foo', { - defaultMessage: 'Sale begins {start, date, long}', - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins June 20, 2018'); - - expect( - i18n.translate('foo', { - defaultMessage: 'Sale begins {start, date, full}', - values: { start: new Date(2018, 5, 20) }, - }) - ).toBe('Sale begins Wednesday, June 20, 2018'); - }); - - test('should format messages with time formatter', () => { - i18n.init({ - locale: 'en', - ['a.short']: 'Coupon expires at {expires, time, short}', - ['a.medium']: 'Coupon expires at {expires, time, medium}', - }); - - expect( - i18n.translate('a.short', { - values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, - }) - ).toBe('Coupon expires at 6:40 PM'); - - expect( - i18n.translate('a.medium', { - values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, - }) - ).toBe('Coupon expires at 6:40:30 PM'); - }); - - test('should format default messages with time formatter', () => { - i18n.setDefaultLocale('en'); - - expect( - i18n.translate('foo', { - defaultMessage: 'Coupon expires at {expires, time, short}', - values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, - }) - ).toBe('Coupon expires at 6:40 PM'); - - expect( - i18n.translate('foo', { - defaultMessage: 'Coupon expires at {expires, time, medium}', - values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, - }) - ).toBe('Coupon expires at 6:40:30 PM'); - }); - - test('should format message with a custom format', () => { - i18n.init({ - locale: 'en', - formats: { - number: { - usd: { style: 'currency', currency: 'USD' }, - }, - }, - ['a.b.c']: 'Your total is {total, number, usd}', - ['d.e.f']: 'Your total is {total, number, eur}', - }); - - expect(i18n.translate('a.b.c', { values: { total: 1000 } })).toBe('Your total is $1,000.00'); - - i18n.setFormats({ - number: { - eur: { style: 'currency', currency: 'EUR' }, - }, - }); - - expect(i18n.translate('a.b.c', { values: { total: 1000 } })).toBe('Your total is $1,000.00'); - - expect(i18n.translate('d.e.f', { values: { total: 1000 } })).toBe('Your total is €1,000.00'); - }); - - test('should format default message with a custom format', () => { - i18n.init({ - locale: 'en', - formats: { - number: { - usd: { style: 'currency', currency: 'USD' }, - }, - }, - }); - i18n.setDefaultLocale('en'); - - expect( - i18n.translate('a.b.c', { - values: { total: 1000 }, - defaultMessage: 'Your total is {total, number, usd}', - }) - ).toBe('Your total is $1,000.00'); - - i18n.setFormats({ - number: { - eur: { style: 'currency', currency: 'EUR' }, - }, - }); - - expect( - i18n.translate('a.b.c', { - values: { total: 1000 }, - defaultMessage: 'Your total is {total, number, usd}', - }) - ).toBe('Your total is $1,000.00'); - - expect( - i18n.translate('d.e.f', { - values: { total: 1000 }, - defaultMessage: 'Your total is {total, number, eur}', - }) - ).toBe('Your total is €1,000.00'); - }); - - test('should use default format if passed format option is not specified', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: 'Your total is {total, number, usd}', - }); - i18n.setDefaultLocale('en'); - - expect(i18n.translate('a.b.c', { values: { total: 1000 } })).toBe('Your total is 1,000'); - - expect( - i18n.translate('d.e.f', { - values: { total: 1000 }, - defaultMessage: 'Your total is {total, number, foo}', - }) - ).toBe('Your total is 1,000'); - }); - - test('should throw error if used format is not specified', () => { - i18n.init({ - locale: 'en', - ['a.b.c']: 'Your total is {total, foo}', - }); - i18n.setDefaultLocale('en'); - - expect(() => - i18n.translate('a.b.c', { values: { total: 1 } }) - ).toThrowErrorMatchingSnapshot(); - - expect(() => - i18n.translate('d.e.f', { - values: { total: 1000 }, - defaultMessage: 'Your total is {total, bar}', - }) - ).toThrowErrorMatchingSnapshot(); - }); - }); - - describe('init', () => { - test('should not initialize the engine if messages are not specified', () => { - i18n.init(); - expect(i18n.getMessages()).toEqual({}); - }); - - test('should throw error if messages are empty', () => { - expect(() => i18n.init({})).toThrow(); - expect(i18n.getMessages()).toEqual({}); - }); - - test('should add messages if locale is specified', () => { - i18n.init({ - locale: 'en', - foo: 'bar', - }); - - expect(i18n.getMessages()).toEqual({ - locale: 'en', - foo: 'bar', - }); - }); - - test('should set the current locale', () => { - i18n.init({ locale: 'ru' }); - expect(i18n.getLocale()).toBe('ru'); - }); - - test('should add custom formats', () => { - i18n.init({ - locale: 'ru', - formats: { - date: { - custom: { - month: 'short', - day: 'numeric', - year: 'numeric', - }, - }, - }, - }); - - expect(i18n.getFormats().date.custom).toEqual({ - month: 'short', - day: 'numeric', - year: 'numeric', - }); - }); - }); -}); diff --git a/packages/kbn-i18n/src/core/i18n.test.ts b/packages/kbn-i18n/src/core/i18n.test.ts new file mode 100644 index 0000000000000..c6c41c9325992 --- /dev/null +++ b/packages/kbn-i18n/src/core/i18n.test.ts @@ -0,0 +1,872 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import * as i18nModule from './i18n'; + +describe('I18n engine', () => { + let i18n: typeof i18nModule; + + beforeEach(() => { + i18n = require.requireActual('./i18n'); + }); + + afterEach(() => { + // isolate modules for every test so that local module state doesn't conflict between tests + jest.resetModules(); + }); + + describe('addMessages', () => { + test('should throw error if locale is not specified or empty', () => { + expect(() => + i18n.addTranslation({ messages: { foo: 'bar' } }) + ).toThrowErrorMatchingSnapshot(); + expect(() => + i18n.addTranslation({ locale: '', messages: {} }) + ).toThrowErrorMatchingSnapshot(); + }); + + test('should throw error if locale specified in messages is different from one provided as second argument', () => { + expect(() => + i18n.addTranslation({ messages: { foo: 'bar' }, locale: 'en' }, 'ru') + ).toThrowErrorMatchingSnapshot(); + }); + + test('should add messages if locale prop is passed as second argument', () => { + const locale = 'ru'; + + expect(i18n.getTranslation()).toEqual({ messages: {} }); + + i18n.addTranslation({ messages: { foo: 'bar' } }, locale); + + expect(i18n.getTranslation()).toEqual({ messages: {} }); + + i18n.setLocale(locale); + + expect(i18n.getTranslation()).toEqual({ messages: { foo: 'bar' } }); + }); + + test('should add messages if locale prop is passed as messages property', () => { + const locale = 'ru'; + + expect(i18n.getTranslation()).toEqual({ messages: {} }); + + i18n.addTranslation({ + locale, + messages: { + foo: 'bar', + }, + }); + + expect(i18n.getTranslation()).toEqual({ messages: {} }); + + i18n.setLocale(locale); + + expect(i18n.getTranslation()).toEqual({ + messages: { + foo: 'bar', + }, + locale: 'ru', + }); + }); + + test('should merge messages with the same locale', () => { + const locale = 'ru'; + + i18n.setLocale(locale); + i18n.addTranslation({ + locale, + messages: { + ['a.b.c']: 'foo', + }, + }); + + expect(i18n.getTranslation()).toEqual({ + locale: 'ru', + messages: { + ['a.b.c']: 'foo', + }, + }); + + i18n.addTranslation({ + locale, + messages: { + ['d.e.f']: 'bar', + }, + }); + + expect(i18n.getTranslation()).toEqual({ + locale: 'ru', + messages: { + ['a.b.c']: 'foo', + ['d.e.f']: 'bar', + }, + }); + }); + + test('should override messages with the same locale and id', () => { + const locale = 'ru'; + + i18n.setLocale(locale); + i18n.addTranslation({ + locale, + messages: { + ['a.b.c']: 'foo', + }, + }); + + expect(i18n.getTranslation()).toEqual({ + locale: 'ru', + messages: { + ['a.b.c']: 'foo', + }, + }); + + i18n.addTranslation({ + locale, + messages: { + ['a.b.c']: 'bar', + }, + }); + + expect(i18n.getTranslation()).toEqual({ + locale: 'ru', + messages: { + ['a.b.c']: 'bar', + }, + }); + }); + + test('should add messages with normalized passed locale', () => { + const locale = 'en-us'; + i18n.setLocale(locale); + + i18n.addTranslation( + { + messages: { + ['a.b.c']: 'bar', + }, + }, + 'en_US' + ); + + expect(i18n.getLocale()).toBe(locale); + expect(i18n.getTranslation()).toEqual({ + messages: { + ['a.b.c']: 'bar', + }, + }); + }); + }); + + describe('getTranslation', () => { + test('should return messages for the current language', () => { + i18n.addTranslation({ + locale: 'ru', + messages: { + foo: 'bar', + }, + }); + i18n.addTranslation({ + locale: 'en', + messages: { + bar: 'foo', + }, + }); + + i18n.setLocale('ru'); + expect(i18n.getTranslation()).toEqual({ + locale: 'ru', + messages: { + foo: 'bar', + }, + }); + + i18n.setLocale('en'); + expect(i18n.getTranslation()).toEqual({ + locale: 'en', + messages: { + bar: 'foo', + }, + }); + }); + + test('should return an empty object if messages for current locale are not specified', () => { + expect(i18n.getTranslation()).toEqual({ messages: {} }); + + i18n.setLocale('fr'); + expect(i18n.getTranslation()).toEqual({ messages: {} }); + + i18n.setLocale('en'); + expect(i18n.getTranslation()).toEqual({ messages: {} }); + }); + }); + + describe('setLocale', () => { + test('should throw error if locale is not a non-empty string', () => { + expect(() => i18n.setLocale(undefined as any)).toThrow(); + expect(() => i18n.setLocale(null as any)).toThrow(); + expect(() => i18n.setLocale(true as any)).toThrow(); + expect(() => i18n.setLocale(5 as any)).toThrow(); + expect(() => i18n.setLocale({} as any)).toThrow(); + expect(() => i18n.setLocale('')).toThrow(); + }); + + test('should update current locale', () => { + expect(i18n.getLocale()).not.toBe('foo'); + i18n.setLocale('foo'); + expect(i18n.getLocale()).toBe('foo'); + }); + + test('should normalize passed locale', () => { + i18n.setLocale('en_US'); + expect(i18n.getLocale()).toBe('en-us'); + }); + }); + + describe('getLocale', () => { + test('should return "en" locale by default', () => { + expect(i18n.getLocale()).toBe('en'); + }); + + test('should return updated locale', () => { + i18n.setLocale('foo'); + expect(i18n.getLocale()).toBe('foo'); + }); + }); + + describe('setDefaultLocale', () => { + test('should throw error if locale is not a non-empty string', () => { + expect(() => i18n.setDefaultLocale(undefined as any)).toThrow(); + expect(() => i18n.setDefaultLocale(null as any)).toThrow(); + expect(() => i18n.setDefaultLocale(true as any)).toThrow(); + expect(() => i18n.setDefaultLocale(5 as any)).toThrow(); + expect(() => i18n.setDefaultLocale({} as any)).toThrow(); + expect(() => i18n.setDefaultLocale('')).toThrow(); + }); + + test('should update the default locale', () => { + expect(i18n.getDefaultLocale()).not.toBe('foo'); + i18n.setDefaultLocale('foo'); + expect(i18n.getDefaultLocale()).toBe('foo'); + }); + + test('should normalize passed locale', () => { + i18n.setDefaultLocale('en_US'); + expect(i18n.getDefaultLocale()).toBe('en-us'); + }); + + test('should set "en" locale as default for IntlMessageFormat and IntlRelativeFormat', () => { + const IntlMessageFormat = require('intl-messageformat'); + const IntlRelativeFormat = require('intl-relativeformat'); + + expect(IntlMessageFormat.defaultLocale).toBe('en'); + expect(IntlRelativeFormat.defaultLocale).toBe('en'); + }); + + test('should update defaultLocale for IntlMessageFormat and IntlRelativeFormat', () => { + const IntlMessageFormat = require('intl-messageformat'); + const IntlRelativeFormat = require('intl-relativeformat'); + + i18n.setDefaultLocale('foo'); + + expect(IntlMessageFormat.defaultLocale).toBe('foo'); + expect(IntlRelativeFormat.defaultLocale).toBe('foo'); + }); + }); + + describe('getDefaultLocale', () => { + test('should return "en" locale by default', () => { + expect(i18n.getDefaultLocale()).toBe('en'); + }); + + test('should return updated locale', () => { + i18n.setDefaultLocale('foo'); + expect(i18n.getDefaultLocale()).toBe('foo'); + }); + }); + + describe('setFormats', () => { + test('should throw error if formats parameter is not a non-empty object', () => { + expect(() => i18n.setFormats(undefined as any)).toThrow(); + expect(() => i18n.setFormats(null as any)).toThrow(); + expect(() => i18n.setFormats(true as any)).toThrow(); + expect(() => i18n.setFormats(5 as any)).toThrow(); + expect(() => i18n.setFormats('foo' as any)).toThrow(); + expect(() => i18n.setFormats({} as any)).toThrow(); + }); + + test('should merge current formats with a passed formats', () => { + expect(i18n.getFormats().date!.short).not.toEqual({ + month: 'short', + day: 'numeric', + year: 'numeric', + }); + + i18n.setFormats({ + date: { + short: { + month: 'short', + day: 'numeric', + year: 'numeric', + }, + }, + }); + + expect(i18n.getFormats().date!.short).toEqual({ + month: 'short', + day: 'numeric', + year: 'numeric', + }); + + i18n.setFormats({ + date: { + short: { + month: 'long', + }, + }, + }); + + expect(i18n.getFormats().date!.short).toEqual({ + month: 'long', + day: 'numeric', + year: 'numeric', + }); + }); + }); + + describe('getFormats', () => { + test('should return "en" formats by default', () => { + const { formats } = require('./formats'); + + expect(i18n.getFormats()).toEqual(formats); + }); + + test('should return updated formats', () => { + const { formats } = require('./formats'); + + i18n.setFormats({ + number: { + currency: { + style: 'currency', + currency: 'EUR', + }, + }, + }); + + expect(i18n.getFormats()).toEqual({ + ...formats, + number: { + ...formats.number, + currency: { + style: 'currency', + currency: 'EUR', + }, + }, + }); + }); + }); + + describe('getRegisteredLocales', () => { + test('should return empty array by default', () => { + expect(i18n.getRegisteredLocales()).toEqual([]); + }); + + test('should return array of registered locales', () => { + i18n.addTranslation({ + locale: 'en', + messages: {}, + }); + + expect(i18n.getRegisteredLocales()).toEqual(['en']); + + i18n.addTranslation({ + locale: 'ru', + messages: {}, + }); + + expect(i18n.getRegisteredLocales()).toContain('en'); + expect(i18n.getRegisteredLocales()).toContain('ru'); + expect(i18n.getRegisteredLocales().length).toBe(2); + + i18n.addTranslation({ + locale: 'fr', + messages: {}, + }); + + expect(i18n.getRegisteredLocales()).toContain('en'); + expect(i18n.getRegisteredLocales()).toContain('fr'); + expect(i18n.getRegisteredLocales()).toContain('ru'); + expect(i18n.getRegisteredLocales().length).toBe(3); + }); + }); + + describe('translate', () => { + test('should throw error if id is not a non-empty string', () => { + expect(() => i18n.translate(undefined as any)).toThrowErrorMatchingSnapshot(); + expect(() => i18n.translate(null as any)).toThrowErrorMatchingSnapshot(); + expect(() => i18n.translate(true as any)).toThrowErrorMatchingSnapshot(); + expect(() => i18n.translate(5 as any)).toThrowErrorMatchingSnapshot(); + expect(() => i18n.translate({} as any)).toThrowErrorMatchingSnapshot(); + expect(() => i18n.translate('')).toThrowErrorMatchingSnapshot(); + }); + + test('should throw error if translation message and defaultMessage are not provided', () => { + expect(() => i18n.translate('foo')).toThrowErrorMatchingSnapshot(); + }); + + test('should return message as is if values are not provided', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: 'foo', + }, + }); + + expect(i18n.translate('a.b.c')).toBe('foo'); + }); + + test('should return default message as is if values are not provided', () => { + expect(i18n.translate('a.b.c', { defaultMessage: 'foo' })).toBe('foo'); + }); + + test('should not return defaultMessage as is if values are provided', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: 'foo', + }, + }); + expect(i18n.translate('a.b.c', { defaultMessage: 'bar' })).toBe('foo'); + }); + + test('should interpolate variables', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: 'foo {a}, {b}, {c} bar', + ['d.e.f']: '{foo}', + }, + }); + + expect( + i18n.translate('a.b.c', { + values: { a: 1, b: 2, c: 3 }, + }) + ).toBe('foo 1, 2, 3 bar'); + + expect(i18n.translate('d.e.f', { values: { foo: 'bar' } })).toBe('bar'); + }); + + test('should interpolate variables for default messages', () => { + expect( + i18n.translate('a.b.c', { + defaultMessage: 'foo {a}, {b}, {c} bar', + values: { a: 1, b: 2, c: 3 }, + }) + ).toBe('foo 1, 2, 3 bar'); + }); + + test('should format pluralized messages', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: `You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }`, + }, + }); + + expect(i18n.translate('a.b.c', { values: { numPhotos: 0 } })).toBe('You have no photos.'); + expect(i18n.translate('a.b.c', { values: { numPhotos: 1 } })).toBe('You have one photo.'); + expect(i18n.translate('a.b.c', { values: { numPhotos: 1000 } })).toBe( + 'You have 1,000 photos.' + ); + }); + + test('should format pluralized default messages', () => { + i18n.setDefaultLocale('en'); + + expect( + i18n.translate('a.b.c', { + values: { numPhotos: 0 }, + defaultMessage: `You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }`, + }) + ).toBe('You have no photos.'); + + expect( + i18n.translate('a.b.c', { + values: { numPhotos: 1 }, + defaultMessage: `You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }`, + }) + ).toBe('You have one photo.'); + + expect( + i18n.translate('a.b.c', { + values: { numPhotos: 1000 }, + defaultMessage: `You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }`, + }) + ).toBe('You have 1,000 photos.'); + }); + + test('should throw error if wrong context is provided to the translation string', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: `You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }`, + }, + }); + i18n.setDefaultLocale('en'); + + expect(() => i18n.translate('a.b.c', { values: { foo: 0 } })).toThrowErrorMatchingSnapshot(); + + expect(() => + i18n.translate('d.e.f', { + values: { bar: 1000 }, + defaultMessage: `You have {numPhotos, plural, + =0 {no photos.} + =1 {one photo.} + other {# photos.} + }`, + }) + ).toThrowErrorMatchingSnapshot(); + }); + + test('should format messages with percent formatter', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: 'Result: {result, number, percent}', + }, + }); + i18n.setDefaultLocale('en'); + + expect(i18n.translate('a.b.c', { values: { result: 0.15 } })).toBe('Result: 15%'); + + expect( + i18n.translate('d.e.f', { + values: { result: 0.15 }, + defaultMessage: 'Result: {result, number, percent}', + }) + ).toBe('Result: 15%'); + }); + + test('should format messages with date formatter', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.short']: 'Sale begins {start, date, short}', + ['a.medium']: 'Sale begins {start, date, medium}', + ['a.long']: 'Sale begins {start, date, long}', + ['a.full']: 'Sale begins {start, date, full}', + }, + }); + + expect( + i18n.translate('a.short', { + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins 6/20/18'); + + expect( + i18n.translate('a.medium', { + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins Jun 20, 2018'); + + expect( + i18n.translate('a.long', { + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins June 20, 2018'); + + expect( + i18n.translate('a.full', { + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins Wednesday, June 20, 2018'); + }); + + test('should format default messages with date formatter', () => { + i18n.setDefaultLocale('en'); + + expect( + i18n.translate('foo', { + defaultMessage: 'Sale begins {start, date, short}', + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins 6/20/18'); + + expect( + i18n.translate('foo', { + defaultMessage: 'Sale begins {start, date, medium}', + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins Jun 20, 2018'); + + expect( + i18n.translate('foo', { + defaultMessage: 'Sale begins {start, date, long}', + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins June 20, 2018'); + + expect( + i18n.translate('foo', { + defaultMessage: 'Sale begins {start, date, full}', + values: { start: new Date(2018, 5, 20) }, + }) + ).toBe('Sale begins Wednesday, June 20, 2018'); + }); + + test('should format messages with time formatter', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.short']: 'Coupon expires at {expires, time, short}', + ['a.medium']: 'Coupon expires at {expires, time, medium}', + }, + }); + + expect( + i18n.translate('a.short', { + values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, + }) + ).toBe('Coupon expires at 6:40 PM'); + + expect( + i18n.translate('a.medium', { + values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, + }) + ).toBe('Coupon expires at 6:40:30 PM'); + }); + + test('should format default messages with time formatter', () => { + i18n.setDefaultLocale('en'); + + expect( + i18n.translate('foo', { + defaultMessage: 'Coupon expires at {expires, time, short}', + values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, + }) + ).toBe('Coupon expires at 6:40 PM'); + + expect( + i18n.translate('foo', { + defaultMessage: 'Coupon expires at {expires, time, medium}', + values: { expires: new Date(2018, 5, 20, 18, 40, 30, 50) }, + }) + ).toBe('Coupon expires at 6:40:30 PM'); + }); + + test('should format message with a custom format', () => { + i18n.init({ + locale: 'en', + formats: { + number: { + usd: { style: 'currency', currency: 'USD' }, + }, + }, + messages: { + ['a.b.c']: 'Your total is {total, number, usd}', + ['d.e.f']: 'Your total is {total, number, eur}', + }, + }); + + expect(i18n.translate('a.b.c', { values: { total: 1000 } })).toBe('Your total is $1,000.00'); + + i18n.setFormats({ + number: { + eur: { style: 'currency', currency: 'EUR' }, + }, + }); + + expect(i18n.translate('a.b.c', { values: { total: 1000 } })).toBe('Your total is $1,000.00'); + + expect(i18n.translate('d.e.f', { values: { total: 1000 } })).toBe('Your total is €1,000.00'); + }); + + test('should format default message with a custom format', () => { + i18n.init({ + locale: 'en', + formats: { + number: { + usd: { style: 'currency', currency: 'USD' }, + }, + }, + messages: {}, + }); + i18n.setDefaultLocale('en'); + + expect( + i18n.translate('a.b.c', { + values: { total: 1000 }, + defaultMessage: 'Your total is {total, number, usd}', + }) + ).toBe('Your total is $1,000.00'); + + i18n.setFormats({ + number: { + eur: { style: 'currency', currency: 'EUR' }, + }, + }); + + expect( + i18n.translate('a.b.c', { + values: { total: 1000 }, + defaultMessage: 'Your total is {total, number, usd}', + }) + ).toBe('Your total is $1,000.00'); + + expect( + i18n.translate('d.e.f', { + values: { total: 1000 }, + defaultMessage: 'Your total is {total, number, eur}', + }) + ).toBe('Your total is €1,000.00'); + }); + + test('should use default format if passed format option is not specified', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: 'Your total is {total, number, usd}', + }, + }); + i18n.setDefaultLocale('en'); + + expect(i18n.translate('a.b.c', { values: { total: 1000 } })).toBe('Your total is 1,000'); + + expect( + i18n.translate('d.e.f', { + values: { total: 1000 }, + defaultMessage: 'Your total is {total, number, foo}', + }) + ).toBe('Your total is 1,000'); + }); + + test('should throw error if used format is not specified', () => { + i18n.init({ + locale: 'en', + messages: { + ['a.b.c']: 'Your total is {total, foo}', + }, + }); + i18n.setDefaultLocale('en'); + + expect(() => + i18n.translate('a.b.c', { values: { total: 1 } }) + ).toThrowErrorMatchingSnapshot(); + + expect(() => + i18n.translate('d.e.f', { + values: { total: 1000 }, + defaultMessage: 'Your total is {total, bar}', + }) + ).toThrowErrorMatchingSnapshot(); + }); + }); + + describe('init', () => { + test('should not initialize the engine if messages are not specified', () => { + i18n.init(); + expect(i18n.getTranslation()).toEqual({ messages: {} }); + }); + + test('should throw error if messages are empty', () => { + expect(() => i18n.init({ messages: {} })).toThrow(); + expect(i18n.getTranslation()).toEqual({ messages: {} }); + }); + + test('should add messages if locale is specified', () => { + i18n.init({ + locale: 'en', + messages: { + foo: 'bar', + }, + }); + + expect(i18n.getTranslation()).toEqual({ + locale: 'en', + messages: { + foo: 'bar', + }, + }); + }); + + test('should set the current locale', () => { + i18n.init({ locale: 'ru', messages: {} }); + expect(i18n.getLocale()).toBe('ru'); + }); + + test('should add custom formats', () => { + i18n.init({ + locale: 'ru', + formats: { + date: { + custom: { + month: 'short', + day: 'numeric', + year: 'numeric', + }, + }, + }, + messages: {}, + }); + + expect((i18n.getFormats().date as any).custom).toEqual({ + month: 'short', + day: 'numeric', + year: 'numeric', + }); + }); + }); + + describe('translateUsingPseudoLocale', () => { + test('should translate message using pseudo-locale', () => { + i18n.setLocale('en-xa'); + const message = i18n.translate('namespace.id', { + defaultMessage: + 'Message with a [markdown link](http://localhost:5601/url) and an {htmlElement}', + values: { + htmlElement: 'html element', + }, + }); + + expect(message).toMatchSnapshot(); + }); + }); +}); diff --git a/packages/kbn-i18n/src/core/i18n.ts b/packages/kbn-i18n/src/core/i18n.ts new file mode 100644 index 0000000000000..70348ba051fbf --- /dev/null +++ b/packages/kbn-i18n/src/core/i18n.ts @@ -0,0 +1,243 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import memoizeIntlConstructor from 'intl-format-cache'; +import IntlMessageFormat from 'intl-messageformat'; +import IntlRelativeFormat from 'intl-relativeformat'; + +import { Translation } from '../translation'; +import { Formats, formats as EN_FORMATS } from './formats'; +import { hasValues, isObject, isString, mergeAll } from './helper'; +import { isPseudoLocale, translateUsingPseudoLocale } from './pseudo_locale'; + +// Add all locale data to `IntlMessageFormat`. +import './locales.js'; + +const EN_LOCALE = 'en'; +const LOCALE_DELIMITER = '-'; +const translationsForLocale: Record = {}; +const getMessageFormat = memoizeIntlConstructor(IntlMessageFormat); + +let defaultLocale = EN_LOCALE; +let currentLocale = EN_LOCALE; +let formats = EN_FORMATS; + +IntlMessageFormat.defaultLocale = defaultLocale; +IntlRelativeFormat.defaultLocale = defaultLocale; + +/** + * Returns message by the given message id. + * @param id - path to the message + */ +function getMessageById(id: string): string | undefined { + const translation = getTranslation(); + return translation.messages ? translation.messages[id] : undefined; +} + +/** + * Normalizes locale to make it consistent with IntlMessageFormat locales + * @param locale + */ +function normalizeLocale(locale: string) { + return locale.toLowerCase().replace('_', LOCALE_DELIMITER); +} + +/** + * Provides a way to register translations with the engine + * @param newTranslation + * @param [locale = messages.locale] + */ +export function addTranslation(newTranslation: Translation, locale = newTranslation.locale) { + if (!locale || !isString(locale)) { + throw new Error('[I18n] A `locale` must be a non-empty string to add messages.'); + } + + if (newTranslation.locale && newTranslation.locale !== locale) { + throw new Error( + '[I18n] A `locale` in the translation object is different from the one provided as a second argument.' + ); + } + + const normalizedLocale = normalizeLocale(locale); + const existingTranslation = translationsForLocale[normalizedLocale] || { messages: {} }; + + translationsForLocale[normalizedLocale] = { + formats: newTranslation.formats || existingTranslation.formats, + locale: newTranslation.locale || existingTranslation.locale, + messages: { + ...existingTranslation.messages, + ...newTranslation.messages, + }, + }; +} + +/** + * Returns messages for the current language + */ +export function getTranslation(): Translation { + return translationsForLocale[currentLocale] || { messages: {} }; +} + +/** + * Tells the engine which language to use by given language key + * @param locale + */ +export function setLocale(locale: string) { + if (!locale || !isString(locale)) { + throw new Error('[I18n] A `locale` must be a non-empty string.'); + } + + currentLocale = normalizeLocale(locale); +} + +/** + * Returns the current locale + */ +export function getLocale() { + return currentLocale; +} + +/** + * Tells the library which language to fallback when missing translations + * @param locale + */ +export function setDefaultLocale(locale: string) { + if (!locale || !isString(locale)) { + throw new Error('[I18n] A `locale` must be a non-empty string.'); + } + + defaultLocale = normalizeLocale(locale); + IntlMessageFormat.defaultLocale = defaultLocale; + IntlRelativeFormat.defaultLocale = defaultLocale; +} + +export function getDefaultLocale() { + return defaultLocale; +} + +/** + * Supplies a set of options to the underlying formatter + * [Default format options used as the prototype of the formats] + * {@link https://github.com/yahoo/intl-messageformat/blob/master/src/core.js#L62} + * These are used when constructing the internal Intl.NumberFormat + * and Intl.DateTimeFormat instances. + * @param newFormats + * @param [newFormats.number] + * @param [newFormats.date] + * @param [newFormats.time] + */ +export function setFormats(newFormats: Formats) { + if (!isObject(newFormats) || !hasValues(newFormats)) { + throw new Error('[I18n] A `formats` must be a non-empty object.'); + } + + formats = mergeAll(formats, newFormats); +} + +/** + * Returns current formats + */ +export function getFormats() { + return formats; +} + +/** + * Returns array of locales having translations + */ +export function getRegisteredLocales() { + return Object.keys(translationsForLocale); +} + +interface TranslateArguments { + values?: { [key: string]: string | number | Date }; + defaultMessage?: string; + description?: string; +} + +/** + * Translate message by id + * @param id - translation id to be translated + * @param [options] + * @param [options.values] - values to pass into translation + * @param [options.defaultMessage] - will be used unless translation was successful + */ +export function translate( + id: string, + { values = {}, defaultMessage = '' }: TranslateArguments = { + values: {}, + defaultMessage: '', + } +) { + const shouldUsePseudoLocale = isPseudoLocale(currentLocale); + + if (!id || !isString(id)) { + throw new Error('[I18n] An `id` must be a non-empty string to translate a message.'); + } + + const message = shouldUsePseudoLocale ? defaultMessage : getMessageById(id); + + if (!message && !defaultMessage) { + throw new Error(`[I18n] Cannot format message: "${id}". Default message must be provided.`); + } + + if (message) { + try { + // We should call `format` even for messages without any value references + // to let it handle escaped curly braces `\\{` that are the part of the text itself + // and not value reference boundaries. + const formattedMessage = getMessageFormat(message, getLocale(), getFormats()).format(values); + + return shouldUsePseudoLocale + ? translateUsingPseudoLocale(formattedMessage) + : formattedMessage; + } catch (e) { + throw new Error( + `[I18n] Error formatting message: "${id}" for locale: "${getLocale()}".\n${e}` + ); + } + } + + try { + const msg = getMessageFormat(defaultMessage, getDefaultLocale(), getFormats()); + + return msg.format(values); + } catch (e) { + throw new Error(`[I18n] Error formatting the default message for: "${id}".\n${e}`); + } +} + +/** + * Initializes the engine + * @param newTranslation + */ +export function init(newTranslation?: Translation) { + if (!newTranslation) { + return; + } + + addTranslation(newTranslation); + + if (newTranslation.locale) { + setLocale(newTranslation.locale); + } + + if (newTranslation.formats) { + setFormats(newTranslation.formats); + } +} diff --git a/packages/kbn-i18n/src/core/index.js b/packages/kbn-i18n/src/core/index.ts similarity index 100% rename from packages/kbn-i18n/src/core/index.js rename to packages/kbn-i18n/src/core/index.ts diff --git a/packages/kbn-i18n/src/core/pseudo_locale.ts b/packages/kbn-i18n/src/core/pseudo_locale.ts new file mode 100644 index 0000000000000..f881655ea014f --- /dev/null +++ b/packages/kbn-i18n/src/core/pseudo_locale.ts @@ -0,0 +1,104 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * Matches every single [A-Za-z] character, `` and `](markdown-link-address)` + */ +const CHARS_FOR_PSEUDO_LOCALIZATION_REGEX = /[A-Za-z]|(\]\([\s\S]*?\))|(<([^"<>]|("[^"]*?"))*?>)/g; +const PSEUDO_ACCENTS_LOCALE = 'en-xa'; + +export function isPseudoLocale(locale: string) { + return locale.toLowerCase() === PSEUDO_ACCENTS_LOCALE; +} + +/** + * Replaces every latin char by pseudo char and repeats every third char twice. + */ +function replacer() { + let count = 0; + + return (match: string) => { + // if `match.length !== 1`, then `match` is html tag or markdown link address, so it should be ignored + if (match.length !== 1) { + return match; + } + + const pseudoChar = pseudoAccentCharMap[match] || match; + return ++count % 3 === 0 ? pseudoChar.repeat(2) : pseudoChar; + }; +} + +export function translateUsingPseudoLocale(message: string) { + return message.replace(CHARS_FOR_PSEUDO_LOCALIZATION_REGEX, replacer()); +} + +const pseudoAccentCharMap: Record = { + a: 'à', + b: 'ƀ', + c: 'ç', + d: 'ð', + e: 'é', + f: 'ƒ', + g: 'ĝ', + h: 'ĥ', + i: 'î', + l: 'ļ', + k: 'ķ', + j: 'ĵ', + m: 'ɱ', + n: 'ñ', + o: 'ô', + p: 'þ', + q: 'ǫ', + r: 'ŕ', + s: 'š', + t: 'ţ', + u: 'û', + v: 'ṽ', + w: 'ŵ', + x: 'ẋ', + y: 'ý', + z: 'ž', + A: 'À', + B: 'Ɓ', + C: 'Ç', + D: 'Ð', + E: 'É', + F: 'Ƒ', + G: 'Ĝ', + H: 'Ĥ', + I: 'Î', + L: 'Ļ', + K: 'Ķ', + J: 'Ĵ', + M: 'Ṁ', + N: 'Ñ', + O: 'Ô', + P: 'Þ', + Q: 'Ǫ', + R: 'Ŕ', + S: 'Š', + T: 'Ţ', + U: 'Û', + V: 'Ṽ', + W: 'Ŵ', + X: 'Ẋ', + Y: 'Ý', + Z: 'Ž', +}; diff --git a/packages/kbn-i18n/src/index.js b/packages/kbn-i18n/src/index.ts similarity index 100% rename from packages/kbn-i18n/src/index.js rename to packages/kbn-i18n/src/index.ts diff --git a/packages/kbn-i18n/src/loader.js b/packages/kbn-i18n/src/loader.js deleted file mode 100644 index 009d866725846..0000000000000 --- a/packages/kbn-i18n/src/loader.js +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - @typedef Messages - messages tree, where leafs are translated strings - @type {object} - @property {string} [locale] - locale of the messages - @property {object} [formats] - set of options to the underlying formatter - */ - -import path from 'path'; -import { readFile } from 'fs'; -import { promisify } from 'util'; -import JSON5 from 'json5'; -import { unique } from './core/helper'; - -const asyncReadFile = promisify(readFile); - -const TRANSLATION_FILE_EXTENSION = '.json'; - -/** - * Internal property for storing registered translations paths - * @type {Map|{}} - Key is locale, value is array of registered paths - */ -const translationsRegistry = {}; - -/** - * Internal property for caching loaded translations files - * @type {Map|{}} - Key is path to translation file, value is - * object with translation messages - */ -const loadedFiles = {}; - -/** - * Returns locale by the given translation file name - * @param {string} fullFileName - * @returns {string} locale - * @example - * getLocaleFromFileName('./path/to/translation/ru.json') // => 'ru' - */ -function getLocaleFromFileName(fullFileName) { - if (!fullFileName) { - throw new Error('Filename is empty'); - } - - const fileExt = path.extname(fullFileName); - - if (fileExt !== TRANSLATION_FILE_EXTENSION) { - throw new Error( - `Translations must have 'json' extension. File being registered is ${fullFileName}` - ); - } - - return path.basename(fullFileName, TRANSLATION_FILE_EXTENSION); -} - -/** - * Loads file and parses it as JSON5 - * @param {string} pathToFile - * @returns {Promise} - */ -async function loadFile(pathToFile) { - return JSON5.parse(await asyncReadFile(pathToFile, 'utf8')); -} - -/** - * Loads translations files and adds them into "loadedFiles" cache - * @param {string[]} files - * @returns {Promise} - */ -async function loadAndCacheFiles(files) { - const translations = await Promise.all(files.map(loadFile)); - - files.forEach((file, index) => { - loadedFiles[file] = translations[index]; - }); -} - -/** - * Registers translation file with i18n loader - * @param {string} translationFilePath - Absolute path to the translation file to register. - */ -export function registerTranslationFile(translationFilePath) { - if (!path.isAbsolute(translationFilePath)) { - throw new TypeError( - 'Paths to translation files must be absolute. ' + - `Got relative path: "${translationFilePath}"` - ); - } - - const locale = getLocaleFromFileName(translationFilePath); - - translationsRegistry[locale] = unique([ - ...(translationsRegistry[locale] || []), - translationFilePath, - ]); -} - -/** - * Registers array of translation files with i18n loader - * @param {string[]} arrayOfPaths - Array of absolute paths to the translation files to register. - */ -export function registerTranslationFiles(arrayOfPaths = []) { - arrayOfPaths.forEach(registerTranslationFile); -} - -/** - * Returns an array of locales that have been registered with i18n loader - * @returns {string[]} registeredTranslations - */ -export function getRegisteredLocales() { - return Object.keys(translationsRegistry); -} - -/** - * Returns translation messages by specified locale - * @param {string} locale - * @returns {Promise} translations - translation messages - */ -export async function getTranslationsByLocale(locale) { - const files = translationsRegistry[locale] || []; - const notLoadedFiles = files.filter(file => !loadedFiles[file]); - - if (notLoadedFiles.length) { - await loadAndCacheFiles(notLoadedFiles); - } - - return files.length - ? files.reduce( - (messages, file) => ({ - ...messages, - ...loadedFiles[file], - }), - { locale } - ) - : {}; -} - -/** - * Returns all translations for registered locales - * @return {Promise>} translations - A Promise object - * where keys are the locale and values are objects of translation messages - */ -export async function getAllTranslations() { - const locales = getRegisteredLocales(); - const translations = await Promise.all(locales.map(getTranslationsByLocale)); - - return locales.reduce( - (acc, locale, index) => ({ - ...acc, - [locale]: translations[index], - }), - {} - ); -} - -/** - * Registers passed translations files, loads them and returns promise with - * all translation messages - * @param {string[]} paths - Array of absolute paths to the translation files - * @returns {Promise>} translations - A Promise object - * where keys are the locale and values are objects of translation messages - */ -export async function getAllTranslationsFromPaths(paths) { - registerTranslationFiles(paths); - - return await getAllTranslations(); -} diff --git a/packages/kbn-i18n/src/loader.test.js b/packages/kbn-i18n/src/loader.test.js deleted file mode 100644 index c2d494a9f1095..0000000000000 --- a/packages/kbn-i18n/src/loader.test.js +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { join } from 'path'; - -describe('I18n loader', () => { - let i18nLoader; - - beforeEach(() => { - i18nLoader = require('./loader'); - }); - - afterEach(() => { - // isolate modules for every test so that local module state doesn't conflict between tests - jest.resetModules(); - }); - - describe('registerTranslationFile', () => { - test('should throw error if path to translation file is not specified', () => { - expect(() => i18nLoader.registerTranslationFile()).toThrowErrorMatchingSnapshot(); - }); - - test('should throw error if path to translation file is not an absolute', () => { - expect(() => i18nLoader.registerTranslationFile('./en.json')).toThrowErrorMatchingSnapshot(); - }); - - test('should throw error if path to translation file does not have an extension', () => { - expect(() => - i18nLoader.registerTranslationFile( - join(__dirname, './__fixtures__/test_plugin_1/translations/en') - ) - ).toThrow(); - }); - - test('should throw error if translation file is not a json', () => { - expect(() => - i18nLoader.registerTranslationFile( - join(__dirname, './__fixtures__/test_plugin_1/translations/en.txt') - ) - ).toThrow(); - }); - - test('should register a translation file', () => { - expect(i18nLoader.getRegisteredLocales()).toEqual([]); - - i18nLoader.registerTranslationFile( - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json') - ); - - expect(i18nLoader.getRegisteredLocales()).toEqual(['en']); - - i18nLoader.registerTranslationFile( - join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json') - ); - - expect(i18nLoader.getRegisteredLocales()).toContain('en', 'en-US'); - expect(i18nLoader.getRegisteredLocales().length).toBe(2); - }); - }); - - describe('registerTranslationFiles', () => { - test('should register array of translation files', () => { - expect(i18nLoader.getRegisteredLocales()).toEqual([]); - - i18nLoader.registerTranslationFiles([ - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), - ]); - - expect(i18nLoader.getRegisteredLocales()).toContain('en', 'en-US'); - expect(i18nLoader.getRegisteredLocales().length).toBe(2); - }); - }); - - describe('getTranslationsByLocale', () => { - test('should return translation messages by specified locale', async () => { - i18nLoader.registerTranslationFile( - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json') - ); - - expect(await i18nLoader.getTranslationsByLocale('en')).toEqual({ - locale: 'en', - ['a.b.c']: 'foo', - ['d.e.f']: 'bar', - }); - }); - - test('should return empty object if passed locale is not registered', async () => { - i18nLoader.registerTranslationFile( - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json') - ); - - expect(await i18nLoader.getTranslationsByLocale('ru')).toEqual({}); - }); - - test('should return translation messages from a couple of files by specified locale', async () => { - i18nLoader.registerTranslationFiles([ - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), - ]); - - expect(await i18nLoader.getTranslationsByLocale('en')).toEqual({ - locale: 'en', - ['a.b.c']: 'foo', - ['d.e.f']: 'bar', - ['a.b.c.custom']: 'foo.custom', - ['d.e.f.custom']: 'bar.custom', - }); - }); - - test('should return translation messages for different locales', async () => { - i18nLoader.registerTranslationFiles([ - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), - join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_2/translations/ru.json'), - ]); - - expect(await i18nLoader.getTranslationsByLocale('en')).toEqual({ - locale: 'en', - ['a.b.c']: 'foo', - ['d.e.f']: 'bar', - ['a.b.c.custom']: 'foo.custom', - ['d.e.f.custom']: 'bar.custom', - }); - - expect(await i18nLoader.getTranslationsByLocale('en-US')).toEqual({ - locale: 'en-US', - ['a.b.c']: 'bar', - ['d.e.f']: 'foo', - }); - - expect(await i18nLoader.getTranslationsByLocale('ru')).toEqual({ - locale: 'ru', - test: 'test', - }); - }); - - test('should return translation messages from JSON5 file', async () => { - i18nLoader.registerTranslationFile( - join(__dirname, './__fixtures__/test_plugin_2/translations/fr.json') - ); - - expect(await i18nLoader.getTranslationsByLocale('fr')).toEqual({ - locale: 'fr', - test: 'test', - }); - }); - }); - - describe('getAllTranslations', () => { - test('should return translation messages for all registered locales', async () => { - i18nLoader.registerTranslationFiles([ - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), - join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_2/translations/ru.json'), - ]); - - expect(await i18nLoader.getAllTranslations()).toEqual({ - en: { - locale: 'en', - ['a.b.c']: 'foo', - ['d.e.f']: 'bar', - ['a.b.c.custom']: 'foo.custom', - ['d.e.f.custom']: 'bar.custom', - }, - ['en-US']: { - locale: 'en-US', - ['a.b.c']: 'bar', - ['d.e.f']: 'foo', - }, - ru: { - locale: 'ru', - test: 'test', - }, - }); - }); - - test('should return empty object if there are no registered locales', async () => { - expect(await i18nLoader.getAllTranslations()).toEqual({}); - }); - }); - - describe('getAllTranslationsFromPaths', () => { - test('should return translation messages for all passed paths to translation files', async () => { - expect( - await i18nLoader.getAllTranslationsFromPaths([ - join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), - join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), - join(__dirname, './__fixtures__/test_plugin_2/translations/ru.json'), - ]) - ).toEqual({ - en: { - locale: 'en', - ['a.b.c']: 'foo', - ['d.e.f']: 'bar', - ['a.b.c.custom']: 'foo.custom', - ['d.e.f.custom']: 'bar.custom', - }, - ['en-US']: { - locale: 'en-US', - ['a.b.c']: 'bar', - ['d.e.f']: 'foo', - }, - ru: { - locale: 'ru', - test: 'test', - }, - }); - }); - - test('should return empty object if there are no translation files', async () => { - expect(await i18nLoader.getAllTranslationsFromPaths()).toEqual({}); - }); - }); -}); diff --git a/packages/kbn-i18n/src/loader.test.ts b/packages/kbn-i18n/src/loader.test.ts new file mode 100644 index 0000000000000..72cfeb09974ac --- /dev/null +++ b/packages/kbn-i18n/src/loader.test.ts @@ -0,0 +1,262 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { join } from 'path'; + +describe('I18n loader', () => { + let i18nLoader: typeof import('./loader'); + + beforeEach(() => { + i18nLoader = require('./loader'); + }); + + afterEach(() => { + // isolate modules for every test so that local module state doesn't conflict between tests + jest.resetModules(); + }); + + describe('registerTranslationFile', () => { + test('should throw error if path to translation file is not specified', () => { + expect(() => + i18nLoader.registerTranslationFile(undefined as any) + ).toThrowErrorMatchingSnapshot(); + }); + + test('should throw error if path to translation file is not an absolute', () => { + expect(() => i18nLoader.registerTranslationFile('./en.json')).toThrowErrorMatchingSnapshot(); + }); + + test('should throw error if path to translation file does not have an extension', () => { + expect(() => + i18nLoader.registerTranslationFile( + join(__dirname, './__fixtures__/test_plugin_1/translations/en') + ) + ).toThrow(); + }); + + test('should throw error if translation file is not a json', () => { + expect(() => + i18nLoader.registerTranslationFile( + join(__dirname, './__fixtures__/test_plugin_1/translations/en.txt') + ) + ).toThrow(); + }); + + test('should register a translation file', () => { + expect(i18nLoader.getRegisteredLocales()).toEqual([]); + + i18nLoader.registerTranslationFile( + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json') + ); + + expect(i18nLoader.getRegisteredLocales()).toEqual(['en']); + + i18nLoader.registerTranslationFile( + join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json') + ); + + expect(i18nLoader.getRegisteredLocales()).toContain('en'); + expect(i18nLoader.getRegisteredLocales()).toContain('en-US'); + expect(i18nLoader.getRegisteredLocales().length).toBe(2); + }); + }); + + describe('registerTranslationFiles', () => { + test('should register array of translation files', () => { + expect(i18nLoader.getRegisteredLocales()).toEqual([]); + + i18nLoader.registerTranslationFiles([ + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), + ]); + + expect(i18nLoader.getRegisteredLocales()).toContain('en'); + expect(i18nLoader.getRegisteredLocales()).toContain('en-US'); + expect(i18nLoader.getRegisteredLocales().length).toBe(2); + }); + }); + + describe('getTranslationsByLocale', () => { + test('should return translation messages by specified locale', async () => { + i18nLoader.registerTranslationFile( + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json') + ); + + expect(await i18nLoader.getTranslationsByLocale('en')).toEqual({ + locale: 'en', + messages: { + ['a.b.c']: 'foo', + ['d.e.f']: 'bar', + }, + }); + }); + + test('should return empty object if passed locale is not registered', async () => { + i18nLoader.registerTranslationFile( + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json') + ); + + expect(await i18nLoader.getTranslationsByLocale('ru')).toEqual({ messages: {} }); + }); + + test('should return translation messages from a couple of files by specified locale', async () => { + i18nLoader.registerTranslationFiles([ + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), + ]); + + expect(await i18nLoader.getTranslationsByLocale('en')).toEqual({ + locale: 'en', + messages: { + ['a.b.c']: 'foo', + ['d.e.f']: 'bar', + ['a.b.c.custom']: 'foo.custom', + ['d.e.f.custom']: 'bar.custom', + }, + }); + }); + + test('should return translation messages for different locales', async () => { + i18nLoader.registerTranslationFiles([ + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), + join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_2/translations/ru.json'), + ]); + + expect(await i18nLoader.getTranslationsByLocale('en')).toEqual({ + locale: 'en', + messages: { + ['a.b.c']: 'foo', + ['d.e.f']: 'bar', + ['a.b.c.custom']: 'foo.custom', + ['d.e.f.custom']: 'bar.custom', + }, + }); + + expect(await i18nLoader.getTranslationsByLocale('en-US')).toEqual({ + locale: 'en-US', + messages: { + ['a.b.c']: 'bar', + ['d.e.f']: 'foo', + }, + }); + + expect(await i18nLoader.getTranslationsByLocale('ru')).toEqual({ + locale: 'ru', + messages: { + test: 'test', + }, + }); + }); + + test('should return translation messages from JSON5 file', async () => { + i18nLoader.registerTranslationFile( + join(__dirname, './__fixtures__/test_plugin_2/translations/fr.json') + ); + + expect(await i18nLoader.getTranslationsByLocale('fr')).toEqual({ + locale: 'fr', + messages: { + test: 'test', + }, + }); + }); + }); + + describe('getAllTranslations', () => { + test('should return translation messages for all registered locales', async () => { + i18nLoader.registerTranslationFiles([ + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), + join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_2/translations/ru.json'), + ]); + + expect(await i18nLoader.getAllTranslations()).toEqual({ + en: { + locale: 'en', + messages: { + ['a.b.c']: 'foo', + ['d.e.f']: 'bar', + ['a.b.c.custom']: 'foo.custom', + ['d.e.f.custom']: 'bar.custom', + }, + }, + ['en-US']: { + locale: 'en-US', + messages: { + ['a.b.c']: 'bar', + ['d.e.f']: 'foo', + }, + }, + ru: { + locale: 'ru', + messages: { + test: 'test', + }, + }, + }); + }); + + test('should return empty object if there are no registered locales', async () => { + expect(await i18nLoader.getAllTranslations()).toEqual({}); + }); + }); + + describe('getAllTranslationsFromPaths', () => { + test('should return translation messages for all passed paths to translation files', async () => { + expect( + await i18nLoader.getAllTranslationsFromPaths([ + join(__dirname, './__fixtures__/test_plugin_1/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_1/translations/en-US.json'), + join(__dirname, './__fixtures__/test_plugin_2/translations/en.json'), + join(__dirname, './__fixtures__/test_plugin_2/translations/ru.json'), + ]) + ).toEqual({ + en: { + locale: 'en', + messages: { + ['a.b.c']: 'foo', + ['d.e.f']: 'bar', + ['a.b.c.custom']: 'foo.custom', + ['d.e.f.custom']: 'bar.custom', + }, + }, + ['en-US']: { + locale: 'en-US', + messages: { + ['a.b.c']: 'bar', + ['d.e.f']: 'foo', + }, + }, + ru: { + locale: 'ru', + messages: { + test: 'test', + }, + }, + }); + }); + + test('should return empty object if there are no translation files', async () => { + expect(await i18nLoader.getAllTranslationsFromPaths(undefined as any)).toEqual({}); + }); + }); +}); diff --git a/packages/kbn-i18n/src/loader.ts b/packages/kbn-i18n/src/loader.ts new file mode 100644 index 0000000000000..6efafc18ae79b --- /dev/null +++ b/packages/kbn-i18n/src/loader.ts @@ -0,0 +1,184 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { readFile } from 'fs'; +import * as JSON5 from 'json5'; +import * as path from 'path'; +import { promisify } from 'util'; + +import { unique } from './core/helper'; +import { Translation } from './translation'; + +const asyncReadFile = promisify(readFile); + +const TRANSLATION_FILE_EXTENSION = '.json'; + +/** + * Internal property for storing registered translations paths. + * Key is locale, value is array of registered paths + */ +const translationsRegistry: { [key: string]: string[] } = {}; + +/** + * Internal property for caching loaded translations files. + * Key is path to translation file, value is object with translation messages + */ +const loadedFiles: { [key: string]: Translation } = {}; + +/** + * Returns locale by the given translation file name + * @param fullFileName + * @returns locale + * @example + * getLocaleFromFileName('./path/to/translation/ru.json') // => 'ru' + */ +function getLocaleFromFileName(fullFileName: string) { + if (!fullFileName) { + throw new Error('Filename is empty'); + } + + const fileExt = path.extname(fullFileName); + + if (fileExt !== TRANSLATION_FILE_EXTENSION) { + throw new Error( + `Translations must have 'json' extension. File being registered is ${fullFileName}` + ); + } + + return path.basename(fullFileName, TRANSLATION_FILE_EXTENSION); +} + +/** + * Loads file and parses it as JSON5 + * @param pathToFile + * @returns + */ +async function loadFile(pathToFile: string): Promise { + return JSON5.parse(await asyncReadFile(pathToFile, 'utf8')); +} + +/** + * Loads translations files and adds them into "loadedFiles" cache + * @param files + * @returns + */ +async function loadAndCacheFiles(files: string[]) { + const translations = await Promise.all(files.map(loadFile)); + + files.forEach((file, index) => { + loadedFiles[file] = translations[index]; + }); +} + +/** + * Registers translation file with i18n loader + * @param translationFilePath - Absolute path to the translation file to register. + */ +export function registerTranslationFile(translationFilePath: string) { + if (!path.isAbsolute(translationFilePath)) { + throw new TypeError( + 'Paths to translation files must be absolute. ' + + `Got relative path: "${translationFilePath}"` + ); + } + + const locale = getLocaleFromFileName(translationFilePath); + + translationsRegistry[locale] = unique([ + ...(translationsRegistry[locale] || []), + translationFilePath, + ]); +} + +/** + * Registers array of translation files with i18n loader + * @param arrayOfPaths - Array of absolute paths to the translation files to register. + */ +export function registerTranslationFiles(arrayOfPaths: string[] = []) { + arrayOfPaths.forEach(registerTranslationFile); +} + +/** + * Returns an array of locales that have been registered with i18n loader + * @returns registeredTranslations + */ +export function getRegisteredLocales() { + return Object.keys(translationsRegistry); +} + +/** + * Returns translation messages by specified locale + * @param locale + * @returns translation messages + */ +export async function getTranslationsByLocale(locale: string): Promise { + const files = translationsRegistry[locale] || []; + const notLoadedFiles = files.filter(file => !loadedFiles[file]); + + if (notLoadedFiles.length) { + await loadAndCacheFiles(notLoadedFiles); + } + + if (!files.length) { + return { messages: {} }; + } + + return files.reduce( + (translation: Translation, file) => ({ + locale: loadedFiles[file].locale || translation.locale, + formats: loadedFiles[file].formats || translation.formats, + messages: { + ...loadedFiles[file].messages, + ...translation.messages, + }, + }), + { locale, messages: {} } + ); +} + +/** + * Returns all translations for registered locales + * @returns A Promise object + * where keys are the locale and values are objects of translation messages + */ +export async function getAllTranslations(): Promise<{ [key: string]: Translation }> { + const locales = getRegisteredLocales(); + const translations = await Promise.all(locales.map(getTranslationsByLocale)); + + return locales.reduce( + (acc, locale, index) => ({ + ...acc, + [locale]: translations[index], + }), + {} + ); +} + +/** + * Registers passed translations files, loads them and returns promise with + * all translation messages + * @param paths - Array of absolute paths to the translation files + * @returns A Promise object where + * keys are the locale and values are objects of translation messages + */ +export async function getAllTranslationsFromPaths(paths: string[]) { + registerTranslationFiles(paths); + + return await getAllTranslations(); +} diff --git a/packages/kbn-i18n/src/react/__snapshots__/inject_i18n_provider.test.tsx.snap b/packages/kbn-i18n/src/react/__snapshots__/inject_i18n_provider.test.tsx.snap new file mode 100644 index 0000000000000..7ad7a6fbc1f00 --- /dev/null +++ b/packages/kbn-i18n/src/react/__snapshots__/inject_i18n_provider.test.tsx.snap @@ -0,0 +1,90 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`injectI18nProvider provides with context 1`] = ` +Object { + "defaultFormats": Object { + "date": Object { + "full": Object { + "day": "numeric", + "month": "long", + "weekday": "long", + "year": "numeric", + }, + "long": Object { + "day": "numeric", + "month": "long", + "year": "numeric", + }, + "medium": Object { + "day": "numeric", + "month": "short", + "year": "numeric", + }, + "short": Object { + "day": "numeric", + "month": "numeric", + "year": "2-digit", + }, + }, + "number": Object { + "currency": Object { + "style": "currency", + }, + "percent": Object { + "style": "percent", + }, + }, + "time": Object { + "full": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", + }, + "long": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", + }, + "medium": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + }, + "short": Object { + "hour": "numeric", + "minute": "numeric", + }, + }, + }, + "defaultLocale": "en", + "formatDate": [Function], + "formatHTMLMessage": [Function], + "formatMessage": [Function], + "formatNumber": [Function], + "formatPlural": [Function], + "formatRelative": [Function], + "formatTime": [Function], + "formats": Object {}, + "formatters": Object { + "getDateTimeFormat": [Function], + "getMessageFormat": [Function], + "getNumberFormat": [Function], + "getPluralFormat": [Function], + "getRelativeFormat": [Function], + }, + "locale": "en", + "messages": Object {}, + "now": [Function], + "onError": [Function], + "textComponent": Symbol(react.fragment), + "timeZone": null, +} +`; + +exports[`injectI18nProvider renders children 1`] = ` + + + +`; diff --git a/packages/kbn-i18n/src/react/__snapshots__/provider.test.js.snap b/packages/kbn-i18n/src/react/__snapshots__/provider.test.js.snap deleted file mode 100644 index 750d2d48b045a..0000000000000 --- a/packages/kbn-i18n/src/react/__snapshots__/provider.test.js.snap +++ /dev/null @@ -1,139 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`I18nProvider provides with context 1`] = ` -Object { - "defaultFormats": Object { - "date": Object { - "full": Object { - "day": "numeric", - "month": "long", - "weekday": "long", - "year": "numeric", - }, - "long": Object { - "day": "numeric", - "month": "long", - "year": "numeric", - }, - "medium": Object { - "day": "numeric", - "month": "short", - "year": "numeric", - }, - "short": Object { - "day": "numeric", - "month": "numeric", - "year": "2-digit", - }, - }, - "number": Object { - "currency": Object { - "style": "currency", - }, - "percent": Object { - "style": "percent", - }, - }, - "time": Object { - "full": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - "timeZoneName": "short", - }, - "long": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - "timeZoneName": "short", - }, - "medium": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - }, - "short": Object { - "hour": "numeric", - "minute": "numeric", - }, - }, - }, - "defaultLocale": "en", - "formatDate": [Function], - "formatHTMLMessage": [Function], - "formatMessage": [Function], - "formatNumber": [Function], - "formatPlural": [Function], - "formatRelative": [Function], - "formatTime": [Function], - "formats": Object { - "date": Object { - "full": Object { - "day": "numeric", - "month": "long", - "weekday": "long", - "year": "numeric", - }, - "long": Object { - "day": "numeric", - "month": "long", - "year": "numeric", - }, - "medium": Object { - "day": "numeric", - "month": "short", - "year": "numeric", - }, - "short": Object { - "day": "numeric", - "month": "numeric", - "year": "2-digit", - }, - }, - "number": Object { - "currency": Object { - "style": "currency", - }, - "percent": Object { - "style": "percent", - }, - }, - "time": Object { - "full": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - "timeZoneName": "short", - }, - "long": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - "timeZoneName": "short", - }, - "medium": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - }, - "short": Object { - "hour": "numeric", - "minute": "numeric", - }, - }, - }, - "formatters": Object { - "getDateTimeFormat": [Function], - "getMessageFormat": [Function], - "getNumberFormat": [Function], - "getPluralFormat": [Function], - "getRelativeFormat": [Function], - }, - "locale": "en", - "messages": Object {}, - "now": [Function], - "textComponent": "span", -} -`; - -exports[`I18nProvider renders children 1`] = ``; diff --git a/packages/kbn-i18n/src/react/__snapshots__/provider.test.tsx.snap b/packages/kbn-i18n/src/react/__snapshots__/provider.test.tsx.snap new file mode 100644 index 0000000000000..67701d6c14697 --- /dev/null +++ b/packages/kbn-i18n/src/react/__snapshots__/provider.test.tsx.snap @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`I18nProvider provides with context 1`] = ` +Object { + "defaultFormats": Object { + "date": Object { + "full": Object { + "day": "numeric", + "month": "long", + "weekday": "long", + "year": "numeric", + }, + "long": Object { + "day": "numeric", + "month": "long", + "year": "numeric", + }, + "medium": Object { + "day": "numeric", + "month": "short", + "year": "numeric", + }, + "short": Object { + "day": "numeric", + "month": "numeric", + "year": "2-digit", + }, + }, + "number": Object { + "currency": Object { + "style": "currency", + }, + "percent": Object { + "style": "percent", + }, + }, + "time": Object { + "full": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", + }, + "long": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", + }, + "medium": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + }, + "short": Object { + "hour": "numeric", + "minute": "numeric", + }, + }, + }, + "defaultLocale": "en", + "formatDate": [Function], + "formatHTMLMessage": [Function], + "formatMessage": [Function], + "formatNumber": [Function], + "formatPlural": [Function], + "formatRelative": [Function], + "formatTime": [Function], + "formats": Object {}, + "formatters": Object { + "getDateTimeFormat": [Function], + "getMessageFormat": [Function], + "getNumberFormat": [Function], + "getPluralFormat": [Function], + "getRelativeFormat": [Function], + }, + "locale": "en", + "messages": Object {}, + "now": [Function], + "onError": [Function], + "textComponent": Symbol(react.fragment), + "timeZone": null, +} +`; + +exports[`I18nProvider renders children 1`] = ``; diff --git a/packages/kbn-i18n/src/react/index.js b/packages/kbn-i18n/src/react/index.js deleted file mode 100644 index 9619d2c8d162e..0000000000000 --- a/packages/kbn-i18n/src/react/index.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export { - intlShape, - FormattedDate, - FormattedTime, - FormattedRelative, - FormattedNumber, - FormattedPlural, - FormattedMessage, - FormattedHTMLMessage, -} from 'react-intl'; - -export { I18nProvider } from './provider'; -export { injectI18n } from './inject'; diff --git a/packages/kbn-i18n/src/react/index.tsx b/packages/kbn-i18n/src/react/index.tsx new file mode 100644 index 0000000000000..646c3608a7cd3 --- /dev/null +++ b/packages/kbn-i18n/src/react/index.tsx @@ -0,0 +1,34 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { + intlShape, + InjectedIntl, + FormattedDate, + FormattedTime, + FormattedRelative, + FormattedNumber, + FormattedPlural, + FormattedMessage, + FormattedHTMLMessage, +} from 'react-intl'; + +export { I18nProvider } from './provider'; +export { injectI18nProvider } from './inject_i18n_provider'; +export { injectI18n } from './inject'; diff --git a/packages/kbn-i18n/src/react/inject.js b/packages/kbn-i18n/src/react/inject.tsx similarity index 100% rename from packages/kbn-i18n/src/react/inject.js rename to packages/kbn-i18n/src/react/inject.tsx diff --git a/packages/kbn-i18n/src/react/inject_i18n_provider.test.tsx b/packages/kbn-i18n/src/react/inject_i18n_provider.test.tsx new file mode 100644 index 0000000000000..13080510f0b58 --- /dev/null +++ b/packages/kbn-i18n/src/react/inject_i18n_provider.test.tsx @@ -0,0 +1,47 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { mount, shallow } from 'enzyme'; +import * as React from 'react'; +import { intlShape } from 'react-intl'; + +import { injectI18n } from './inject'; +import { injectI18nProvider } from './inject_i18n_provider'; + +describe('injectI18nProvider', () => { + test('renders children', () => { + const ChildrenMock = () => null; + const Injected = injectI18nProvider(ChildrenMock); + + expect(shallow()).toMatchSnapshot(); + }); + + test('provides with context', () => { + const ChildrenMock = () =>
; + const WithIntl = injectI18n(ChildrenMock); + const Injected = injectI18nProvider(WithIntl); + + const wrapper = mount(, { + childContextTypes: { + intl: intlShape, + }, + }); + + expect(wrapper.find(ChildrenMock).prop('intl')).toMatchSnapshot(); + }); +}); diff --git a/packages/kbn-i18n/src/react/inject_i18n_provider.tsx b/packages/kbn-i18n/src/react/inject_i18n_provider.tsx new file mode 100644 index 0000000000000..e6301c5916a76 --- /dev/null +++ b/packages/kbn-i18n/src/react/inject_i18n_provider.tsx @@ -0,0 +1,38 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import React from 'react'; + +import { I18nProvider } from './provider'; + +export function injectI18nProvider

(WrappedComponent: React.ComponentType

) { + const I18nProviderWrapper: React.SFC

= props => { + return ( + + + + ); + }; + + // Original propTypes from the wrapped component should be re-exposed + // since it will be used by reactDirective Angular service + // that will rely on propTypes to watch attributes with these names + I18nProviderWrapper.propTypes = WrappedComponent.propTypes; + + return I18nProviderWrapper; +} diff --git a/packages/kbn-i18n/src/react/provider.js b/packages/kbn-i18n/src/react/provider.js deleted file mode 100644 index 46e94863a0ba1..0000000000000 --- a/packages/kbn-i18n/src/react/provider.js +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; -import { IntlProvider } from 'react-intl'; - -import * as i18n from '../core'; - -/** - * The library uses the provider pattern to scope an i18n context to a tree - * of components. This component is used to setup the i18n context for a tree. - * IntlProvider should wrap react app's root component (inside each react render method). - */ -export class I18nProvider extends PureComponent { - static propTypes = { - children: PropTypes.object, - }; - - render() { - const { children } = this.props; - - return ( - - {children} - - ); - } -} diff --git a/packages/kbn-i18n/src/react/provider.test.js b/packages/kbn-i18n/src/react/provider.test.js deleted file mode 100644 index 2bfdaedba9130..0000000000000 --- a/packages/kbn-i18n/src/react/provider.test.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import React from 'react'; -import { intlShape } from 'react-intl'; -import { shallow, mount } from 'enzyme'; -import { I18nProvider } from './provider'; -import { injectI18n } from './inject'; - -describe('I18nProvider', () => { - it('renders children', () => { - const ChildrenMock = () => {}; - - const wrapper = shallow( - - - - ); - - expect(wrapper.children()).toMatchSnapshot(); - }); - - it('provides with context', () => { - const childrenMock = () =>

; - const WithIntl = injectI18n(childrenMock); - - const wrapper = mount( - - - , - { - childContextTypes: { - intl: intlShape, - }, - } - ); - - expect(wrapper.find(childrenMock).prop('intl')).toMatchSnapshot(); - }); -}); diff --git a/packages/kbn-i18n/src/react/provider.test.tsx b/packages/kbn-i18n/src/react/provider.test.tsx new file mode 100644 index 0000000000000..6dabc806541cb --- /dev/null +++ b/packages/kbn-i18n/src/react/provider.test.tsx @@ -0,0 +1,56 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { mount, shallow } from 'enzyme'; +import * as React from 'react'; +import { intlShape } from 'react-intl'; +import { injectI18n } from './inject'; +import { I18nProvider } from './provider'; + +describe('I18nProvider', () => { + test('renders children', () => { + const ChildrenMock = () => null; + + const wrapper = shallow( + + + + ); + + expect(wrapper.children()).toMatchSnapshot(); + }); + + test('provides with context', () => { + const childrenMock = () =>
; + const WithIntl = injectI18n(childrenMock); + + const wrapper = mount( + + + , + { + childContextTypes: { + intl: intlShape, + }, + } + ); + + expect(wrapper.find(childrenMock).prop('intl')).toMatchSnapshot(); + }); +}); diff --git a/packages/kbn-i18n/src/react/provider.tsx b/packages/kbn-i18n/src/react/provider.tsx new file mode 100644 index 0000000000000..f359b10a5662a --- /dev/null +++ b/packages/kbn-i18n/src/react/provider.tsx @@ -0,0 +1,68 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import * as PropTypes from 'prop-types'; +import * as React from 'react'; +import { IntlProvider } from 'react-intl'; + +import * as i18n from '../core'; +import { isPseudoLocale, translateUsingPseudoLocale } from '../core/pseudo_locale'; +import { injectI18n } from './inject'; + +/** + * If pseudo locale is detected, default intl.formatMessage should be decorated + * with the pseudo localization function. + * @param child I18nProvider child component. + */ +function wrapIntlFormatMessage(child: React.ReactNode) { + return React.createElement( + injectI18n(({ intl }) => { + const formatMessage = intl.formatMessage; + intl.formatMessage = (...args) => translateUsingPseudoLocale(formatMessage(...args)); + + return React.Children.only(child); + }) + ); +} + +/** + * The library uses the provider pattern to scope an i18n context to a tree + * of components. This component is used to setup the i18n context for a tree. + * IntlProvider should wrap react app's root component (inside each react render method). + */ +export class I18nProvider extends React.PureComponent { + public static propTypes = { children: PropTypes.element.isRequired }; + + public render() { + return ( + + {isPseudoLocale(i18n.getLocale()) + ? wrapIntlFormatMessage(this.props.children) + : this.props.children} + + ); + } +} diff --git a/packages/kbn-i18n/src/translation.ts b/packages/kbn-i18n/src/translation.ts new file mode 100644 index 0000000000000..20a27ca72a72c --- /dev/null +++ b/packages/kbn-i18n/src/translation.ts @@ -0,0 +1,35 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { Formats } from './core/formats'; + +export interface Translation { + /** + * Actual translated messages. + */ + messages: Record; + /** + * Locale of the translated messages. + */ + locale?: string; + /** + * Set of options to the underlying formatter. + */ + formats?: Formats; +} diff --git a/packages/kbn-i18n/tsconfig.json b/packages/kbn-i18n/tsconfig.json new file mode 100644 index 0000000000000..c6d1da43b893f --- /dev/null +++ b/packages/kbn-i18n/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "../../tsconfig.json", + "include": [ + "src/**/*.ts", + "src/**/*.tsx", + "types/intl_format_cache.d.ts", + "types/intl_relativeformat.d.ts" + ], + "exclude": [ + "target" + ], + "compilerOptions": { + "declaration": true, + "declarationDir": "./target/types", + } +} diff --git a/packages/kbn-i18n/tslint.yml b/packages/kbn-i18n/tslint.yml new file mode 100644 index 0000000000000..e470d241339a7 --- /dev/null +++ b/packages/kbn-i18n/tslint.yml @@ -0,0 +1,2 @@ +extends: + - ../../tslint.yaml diff --git a/packages/kbn-i18n/types/intl_format_cache.d.ts b/packages/kbn-i18n/types/intl_format_cache.d.ts new file mode 100644 index 0000000000000..cdc7e69b98603 --- /dev/null +++ b/packages/kbn-i18n/types/intl_format_cache.d.ts @@ -0,0 +1,32 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +declare module 'intl-format-cache' { + import IntlMessageFormat from 'intl-messageformat'; + + interface Message { + format: (values: { [key: string]: string | number | Date }) => string; + } + + function memoizeIntlConstructor( + IntlMessageFormatCtor: typeof IntlMessageFormat + ): (msg: string, locale: string, formats: any) => Message; + + export = memoizeIntlConstructor; +} diff --git a/packages/kbn-i18n/types/intl_relativeformat.d.ts b/packages/kbn-i18n/types/intl_relativeformat.d.ts new file mode 100644 index 0000000000000..784b975c78131 --- /dev/null +++ b/packages/kbn-i18n/types/intl_relativeformat.d.ts @@ -0,0 +1,22 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +declare module 'intl-relativeformat' { + export let defaultLocale: string; +} diff --git a/packages/kbn-i18n/yarn.lock b/packages/kbn-i18n/yarn.lock deleted file mode 100644 index b495c747149f4..0000000000000 --- a/packages/kbn-i18n/yarn.lock +++ /dev/null @@ -1,1745 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@kbn/babel-preset@link:../kbn-babel-preset": - version "0.0.0" - uid "" - -"@kbn/dev-utils@link:../kbn-dev-utils": - version "0.0.0" - uid "" - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - dependencies: - color-convert "^1.9.0" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.5" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - dependencies: - arr-flatten "^1.0.1" - -arr-flatten@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - -asap@~2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -babel-cli@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" - dependencies: - babel-core "^6.26.0" - babel-polyfill "^6.26.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - commander "^2.11.0" - convert-source-map "^1.5.0" - fs-readdir-recursive "^1.0.0" - glob "^7.1.2" - lodash "^4.17.4" - output-file-sync "^1.1.2" - path-is-absolute "^1.0.1" - slash "^1.0.0" - source-map "^0.5.6" - v8flags "^2.1.1" - optionalDependencies: - chokidar "^1.6.1" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@^6.26.0: - version "6.26.3" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.1" - debug "^2.6.9" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.8" - slash "^1.0.0" - source-map "^0.5.7" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-builder-react-jsx@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - esutils "^2.0.2" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-add-module-exports@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-async-generators@^6.5.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" - -babel-plugin-syntax-class-properties@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-flow@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" - -babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" - -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-generator-functions@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-class-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" - dependencies: - babel-helper-function-name "^6.24.1" - babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-define@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-define/-/babel-plugin-transform-define-1.3.0.tgz#94c5f9459c810c738cc7c50cbd44a31829d6f319" - dependencies: - lodash "4.17.4" - traverse "0.6.6" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.2" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-flow-strip-types@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" - dependencies: - babel-plugin-syntax-flow "^6.18.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-react-display-name@^6.23.0: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-self@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz#df6d80a9da2612a121e6ddd7558bcbecf06e636e" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-source@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" - dependencies: - babel-helper-builder-react-jsx "^6.24.1" - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" - dependencies: - babel-runtime "^6.26.0" - core-js "^2.5.0" - regenerator-runtime "^0.10.5" - -babel-preset-env@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.4.0.tgz#c8e02a3bcc7792f23cded68e0355b9d4c28f0f7a" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^1.4.0" - invariant "^2.2.2" - -babel-preset-flow@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" - dependencies: - babel-plugin-transform-flow-strip-types "^6.22.0" - -babel-preset-react@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" - dependencies: - babel-plugin-syntax-jsx "^6.3.13" - babel-plugin-transform-react-display-name "^6.23.0" - babel-plugin-transform-react-jsx "^6.24.1" - babel-plugin-transform-react-jsx-self "^6.22.0" - babel-plugin-transform-react-jsx-source "^6.22.0" - babel-preset-flow "^6.23.0" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -browserslist@^1.4.0: - version "1.7.7" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" - dependencies: - caniuse-db "^1.0.30000639" - electron-to-chromium "^1.2.7" - -caniuse-db@^1.0.30000639: - version "1.0.30000850" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000850.tgz#965c816641576d08709bee12256a0550164b95d5" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chokidar@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -chownr@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -commander@^2.11.0: - version "2.15.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -convert-source-map@^1.5.0, convert-source-map@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" - -core-js@^1.0.0: - version "1.2.7" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" - -core-js@^2.4.0, core-js@^2.5.0: - version "2.5.7" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cross-env@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.2.0.tgz#6ecd4c015d5773e614039ee529076669b9d126f2" - dependencies: - cross-spawn "^6.0.5" - is-windows "^1.0.0" - -cross-spawn@^6.0.0, cross-spawn@^6.0.5: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -debug@^2.1.2, debug@^2.6.8, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -deep-extend@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - dependencies: - repeating "^2.0.0" - -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - -electron-to-chromium@^1.2.7: - version "1.3.48" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.48.tgz#d3b0d8593814044e092ece2108fc3ac9aea4b900" - -encoding@^0.1.11: - version "0.1.12" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" - dependencies: - iconv-lite "~0.4.13" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -execa@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" - dependencies: - cross-spawn "^6.0.0" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - dependencies: - is-posix-bracket "^0.1.0" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - dependencies: - fill-range "^2.1.0" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - dependencies: - is-extglob "^1.0.0" - -fbjs@^0.8.16: - version "0.8.16" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" - dependencies: - core-js "^1.0.0" - isomorphic-fetch "^2.1.1" - loose-envify "^1.0.0" - object-assign "^4.1.0" - promise "^7.1.1" - setimmediate "^1.0.5" - ua-parser-js "^0.7.9" - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - -fill-range@^2.1.0: - version "2.2.4" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^3.0.0" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -for-in@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - dependencies: - for-in "^1.0.1" - -fs-minipass@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" - dependencies: - minipass "^2.2.1" - -fs-readdir-recursive@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.0.0: - version "1.2.4" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" - dependencies: - nan "^2.9.2" - node-pre-gyp "^0.10.0" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob@^7.0.5, glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -graceful-fs@^4.1.2, graceful-fs@^4.1.4: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -iconv-lite@^0.4.4, iconv-lite@~0.4.13: - version "0.4.23" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" - dependencies: - safer-buffer ">= 2.1.2 < 3" - -ignore-walk@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" - dependencies: - minimatch "^3.0.4" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -intl-format-cache@^2.0.5, intl-format-cache@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/intl-format-cache/-/intl-format-cache-2.1.0.tgz#04a369fecbfad6da6005bae1f14333332dcf9316" - -intl-messageformat-parser@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/intl-messageformat-parser/-/intl-messageformat-parser-1.4.0.tgz#b43d45a97468cadbe44331d74bb1e8dea44fc075" - -intl-messageformat@^2.0.0, intl-messageformat@^2.1.0, intl-messageformat@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-2.2.0.tgz#345bcd46de630b7683330c2e52177ff5eab484fc" - dependencies: - intl-messageformat-parser "1.4.0" - -intl-relativeformat@^2.0.0, intl-relativeformat@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/intl-relativeformat/-/intl-relativeformat-2.1.0.tgz#010f1105802251f40ac47d0e3e1a201348a255df" - dependencies: - intl-messageformat "^2.0.0" - -invariant@^2.1.1, invariant@^2.2.2: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - dependencies: - loose-envify "^1.0.0" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - dependencies: - is-extglob "^1.0.0" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - -is-stream@^1.0.1, is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-windows@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -isomorphic-fetch@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -json5@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" - dependencies: - minimist "^1.2.0" - -kind-of@^3.0.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^6.0.0: - version "6.0.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" - -lodash@4.17.4: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -lodash@^4.17.4: - version "4.17.10" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" - -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -math-random@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -minipass@^2.2.1, minipass@^2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.3.tgz#a7dcc8b7b833f5d368759cce544dccb55f50f233" - dependencies: - safe-buffer "^5.1.2" - yallist "^3.0.0" - -minizlib@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" - dependencies: - minipass "^2.2.1" - -mkdirp@^0.5.0, mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -moment@^2.20.1: - version "2.22.2" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -nan@^2.9.2: - version "2.10.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" - -needle@^2.2.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.1.tgz#b5e325bd3aae8c2678902fa296f729455d1d3a7d" - dependencies: - debug "^2.1.2" - iconv-lite "^0.4.4" - sax "^1.2.4" - -nice-try@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" - -node-fetch@^1.0.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" - dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" - -node-pre-gyp@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.0.tgz#6e4ef5bb5c5203c6552448828c852c40111aac46" - dependencies: - detect-libc "^1.0.2" - mkdirp "^0.5.1" - needle "^2.2.0" - nopt "^4.0.1" - npm-packlist "^1.1.6" - npmlog "^4.0.2" - rc "^1.1.7" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^4" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -npm-bundled@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.3.tgz#7e71703d973af3370a9591bafe3a63aca0be2308" - -npm-packlist@^1.1.6: - version "1.1.10" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.10.tgz#1039db9e985727e464df066f4cf0ab6ef85c398a" - dependencies: - ignore-walk "^3.0.1" - npm-bundled "^1.0.1" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -object-assign@^4.1.0, object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -output-file-sync@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" - dependencies: - graceful-fs "^4.1.4" - mkdirp "^0.5.1" - object-assign "^4.1.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - -private@^0.1.6, private@^0.1.8: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -promise@^7.1.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" - dependencies: - asap "~2.0.3" - -prop-types@^15.5.8, prop-types@^15.6.0: - version "15.6.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.1.tgz#36644453564255ddda391191fb3a125cbdf654ca" - dependencies: - fbjs "^0.8.16" - loose-envify "^1.3.1" - object-assign "^4.1.1" - -randomatic@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923" - dependencies: - is-number "^4.0.0" - kind-of "^6.0.0" - math-random "^1.0.1" - -rc@^1.1.7: - version "1.2.8" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" - dependencies: - deep-extend "^0.6.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -react-intl@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-2.4.0.tgz#66c14dc9df9a73b2fbbfbd6021726e80a613eb15" - dependencies: - intl-format-cache "^2.0.5" - intl-messageformat "^2.1.0" - intl-relativeformat "^2.0.0" - invariant "^2.1.1" - -react@^16.3.0: - version "16.4.0" - resolved "https://registry.yarnpkg.com/react/-/react-16.4.0.tgz#402c2db83335336fba1962c08b98c6272617d585" - dependencies: - fbjs "^0.8.16" - loose-envify "^1.1.0" - object-assign "^4.1.1" - prop-types "^15.6.0" - -readable-stream@^2.0.2, readable-stream@^2.0.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -regenerate@^1.2.1: - version "1.4.0" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" - -regenerator-runtime@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - dependencies: - is-equal-shallow "^0.1.3" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -rxjs@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.2.1.tgz#246cebec189a6cbc143a3ef9f62d6f4c91813ca1" - dependencies: - tslib "^1.9.0" - -safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - -"safer-buffer@>= 2.1.2 < 3": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - -sax@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - -semver@^5.3.0, semver@^5.5.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map@^0.5.6, source-map@^0.5.7: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -string-width@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -"string-width@^1.0.2 || 2": - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - dependencies: - ansi-regex "^3.0.0" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^5.3.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" - dependencies: - has-flag "^3.0.0" - -tar@^4: - version "4.4.4" - resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.4.tgz#ec8409fae9f665a4355cc3b4087d0820232bb8cd" - dependencies: - chownr "^1.0.1" - fs-minipass "^1.2.5" - minipass "^2.3.3" - minizlib "^1.1.0" - mkdirp "^0.5.0" - safe-buffer "^5.1.2" - yallist "^3.0.2" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -traverse@0.6.6: - version "0.6.6" - resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" - -tree-kill@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - -tslib@^1.9.0: - version "1.9.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.2.tgz#8be0cc9a1f6dc7727c38deb16c2ebd1a2892988e" - -tslib@^1.9.3: - version "1.9.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" - -ua-parser-js@^0.7.9: - version "0.7.18" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -v8flags@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - dependencies: - user-home "^1.1.1" - -whatwg-fetch@>=0.10.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" - -which@^1.2.9: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" - dependencies: - string-width "^1.0.2 || 2" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -yallist@^3.0.0, yallist@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" diff --git a/packages/kbn-plugin-generator/sao_template/template/gitignore b/packages/kbn-plugin-generator/sao_template/template/gitignore index a9f22092da63b..db28fed19376d 100755 --- a/packages/kbn-plugin-generator/sao_template/template/gitignore +++ b/packages/kbn-plugin-generator/sao_template/template/gitignore @@ -1,3 +1,6 @@ npm-debug.log* node_modules /build/ +<%_ if (generateScss) { -%> +/public/app.css +<%_ } -%> diff --git a/packages/kbn-plugin-generator/sao_template/template/index.js b/packages/kbn-plugin-generator/sao_template/template/index.js index b75eab070bfd6..65b949a309cbd 100755 --- a/packages/kbn-plugin-generator/sao_template/template/index.js +++ b/packages/kbn-plugin-generator/sao_template/template/index.js @@ -17,7 +17,7 @@ export default function (kibana) { <%_ if (generateHack) { -%> hacks: [ 'plugins/<%= snakeCase(name) %>/hack' - ] + ], <%_ } -%> <%_ if (generateScss) { -%> styleSheetPaths: require('path').resolve(__dirname, 'public/app.scss'), diff --git a/packages/kbn-plugin-generator/sao_template/template/package.json b/packages/kbn-plugin-generator/sao_template/template/package.json index 2e26cc70a8f9f..073571613ba4a 100755 --- a/packages/kbn-plugin-generator/sao_template/template/package.json +++ b/packages/kbn-plugin-generator/sao_template/template/package.json @@ -10,6 +10,7 @@ "scripts": { "preinstall": "node ../../kibana/preinstall_check", "kbn": "node ../../kibana/scripts/kbn", + "es": "node ../../kibana/scripts/es", "lint": "eslint .", "start": "plugin-helpers start", "test:server": "plugin-helpers test:server", @@ -22,13 +23,13 @@ "@kbn/plugin-helpers": "link:../../kibana/packages/kbn-plugin-helpers", "babel-eslint": "^9.0.0", "eslint": "^5.6.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.3.0", - "eslint-plugin-jest": "^21.22.0", - "eslint-plugin-mocha": "^4.9.0", + "eslint-plugin-babel": "^5.2.0", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-jest": "^21.22.1", + "eslint-plugin-mocha": "^5.2.0", "eslint-plugin-no-unsanitized": "^3.0.2", "eslint-plugin-prefer-object-spread": "^1.2.1", - "eslint-plugin-react": "^7.0.1", + "eslint-plugin-react": "^7.11.1", "expect.js": "^0.3.1" } } diff --git a/packages/kbn-plugin-generator/sao_template/template/server/routes/example.js b/packages/kbn-plugin-generator/sao_template/template/server/routes/example.js index f4f67431b196b..5a612645f48fc 100755 --- a/packages/kbn-plugin-generator/sao_template/template/server/routes/example.js +++ b/packages/kbn-plugin-generator/sao_template/template/server/routes/example.js @@ -3,8 +3,8 @@ export default function (server) { server.route({ path: '/api/<%= name %>/example', method: 'GET', - handler(req, reply) { - reply({ time: (new Date()).toISOString() }); + handler() { + return { time: (new Date()).toISOString() }; } }); diff --git a/packages/kbn-plugin-generator/yarn.lock b/packages/kbn-plugin-generator/yarn.lock deleted file mode 100644 index b8110052c7761..0000000000000 --- a/packages/kbn-plugin-generator/yarn.lock +++ /dev/null @@ -1,1718 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - -amdefine@>=0.0.4: - version "1.0.1" - resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" - -ansi-align@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" - dependencies: - string-width "^2.0.0" - -ansi-escapes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" - dependencies: - color-convert "^1.9.0" - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - dependencies: - color-convert "^1.9.0" - -array-differ@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-1.0.0.tgz#eff52e3758249d33be402b8bb8e564bb2b5d4031" - -array-union@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - dependencies: - array-uniq "^1.0.1" - -array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - -arrify@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - -asap@~2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - -async@^1.4.0: - version "1.5.2" - resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -base64-js@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-0.0.8.tgz#1101e9544f4a76b1bc3b26d452ca96d7a35e7978" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -bl@^1.0.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.1.tgz#cac328f7bee45730d404b692203fcb590e172d5e" - dependencies: - readable-stream "^2.0.5" - -boxen@^1.2.1, boxen@^1.2.2: - version "1.3.0" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" - dependencies: - ansi-align "^2.0.0" - camelcase "^4.0.0" - chalk "^2.0.1" - cli-boxes "^1.0.0" - string-width "^2.0.0" - term-size "^1.2.0" - widest-line "^2.0.0" - -brace-expansion@^1.1.7: - version "1.1.8" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -buffer-crc32@~0.2.3: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - -buffer@^3.0.1: - version "3.6.0" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-3.6.0.tgz#a72c936f77b96bf52f5f7e7b467180628551defb" - dependencies: - base64-js "0.0.8" - ieee754 "^1.1.4" - isarray "^1.0.0" - -builtin-modules@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -cac@^3.0.3: - version "3.0.4" - resolved "https://registry.yarnpkg.com/cac/-/cac-3.0.4.tgz#6d24ceec372efe5c9b798808bc7f49b47242a4ef" - dependencies: - camelcase-keys "^3.0.0" - chalk "^1.1.3" - indent-string "^3.0.0" - minimist "^1.2.0" - read-pkg-up "^1.0.1" - suffix "^0.1.0" - text-table "^0.2.0" - -cac@^4.3.4: - version "4.4.1" - resolved "https://registry.yarnpkg.com/cac/-/cac-4.4.1.tgz#c6867f731c4be7b0c270689d1689400b914c7788" - dependencies: - chalk "^2.0.1" - minimost "^1.0.0" - read-pkg-up "^2.0.0" - redent "^2.0.0" - string-width "^2.1.1" - text-table "^0.2.0" - -camelcase-keys@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-3.0.0.tgz#fc0c6c360363f7377e3793b9a16bccf1070c1ca4" - dependencies: - camelcase "^3.0.0" - map-obj "^1.0.0" - -camelcase-keys@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77" - dependencies: - camelcase "^4.1.0" - map-obj "^2.0.0" - quick-lru "^1.0.0" - -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - -camelcase@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" - -camelcase@^4.0.0, camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - -capture-stack-trace@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" - -caw@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/caw/-/caw-2.0.1.tgz#6c3ca071fc194720883c2dc5da9b074bfc7e9e95" - dependencies: - get-proxy "^2.0.0" - isurl "^1.0.0-alpha5" - tunnel-agent "^0.6.0" - url-to-options "^1.0.1" - -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba" - dependencies: - ansi-styles "^3.1.0" - escape-string-regexp "^1.0.5" - supports-color "^4.0.0" - -chalk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chardet@^0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" - -cli-boxes@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" - -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - dependencies: - restore-cursor "^2.0.0" - -cli-spinners@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-1.1.0.tgz#f1847b168844d917a671eb9d147e3df497c90d06" - -cli-width@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" - -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - -co@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/co/-/co-3.1.0.tgz#4ea54ea5a08938153185e15210c68d9092bc1b78" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -commander@~2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.8.1.tgz#06be367febfda0c330aa1e2a072d3dc9762425d4" - dependencies: - graceful-readlink ">= 1.0.0" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -conf@^1.1.2: - version "1.4.0" - resolved "https://registry.yarnpkg.com/conf/-/conf-1.4.0.tgz#1ea66c9d7a9b601674a5bb9d2b8dc3c726625e67" - dependencies: - dot-prop "^4.1.0" - env-paths "^1.0.0" - make-dir "^1.0.0" - pkg-up "^2.0.0" - write-file-atomic "^2.3.0" - -config-chain@^1.1.11: - version "1.1.11" - resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.11.tgz#aba09747dfbe4c3e70e766a6e41586e1859fc6f2" - dependencies: - ini "^1.3.4" - proto-list "~1.2.1" - -configstore@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.1.tgz#094ee662ab83fad9917678de114faaea8fcdca90" - dependencies: - dot-prop "^4.1.0" - graceful-fs "^4.1.2" - make-dir "^1.0.0" - unique-string "^1.0.0" - write-file-atomic "^2.0.0" - xdg-basedir "^3.0.0" - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -create-error-class@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" - dependencies: - capture-stack-trace "^1.0.0" - -cross-spawn@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41" - dependencies: - lru-cache "^4.0.1" - which "^1.2.9" - -cross-spawn@^5.0.1, cross-spawn@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -crypto-random-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" - -decamelize@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -decompress-tar@^4.0.0, decompress-tar@^4.1.0, decompress-tar@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/decompress-tar/-/decompress-tar-4.1.1.tgz#718cbd3fcb16209716e70a26b84e7ba4592e5af1" - dependencies: - file-type "^5.2.0" - is-stream "^1.1.0" - tar-stream "^1.5.2" - -decompress-tarbz2@^4.0.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz#3082a5b880ea4043816349f378b56c516be1a39b" - dependencies: - decompress-tar "^4.1.0" - file-type "^6.1.0" - is-stream "^1.1.0" - seek-bzip "^1.0.5" - unbzip2-stream "^1.0.9" - -decompress-targz@^4.0.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/decompress-targz/-/decompress-targz-4.1.1.tgz#c09bc35c4d11f3de09f2d2da53e9de23e7ce1eee" - dependencies: - decompress-tar "^4.1.1" - file-type "^5.2.0" - is-stream "^1.1.0" - -decompress-unzip@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/decompress-unzip/-/decompress-unzip-4.0.1.tgz#deaaccdfd14aeaf85578f733ae8210f9b4848f69" - dependencies: - file-type "^3.8.0" - get-stream "^2.2.0" - pify "^2.3.0" - yauzl "^2.4.2" - -decompress@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/decompress/-/decompress-4.2.0.tgz#7aedd85427e5a92dacfe55674a7c505e96d01f9d" - dependencies: - decompress-tar "^4.0.0" - decompress-tarbz2 "^4.0.0" - decompress-targz "^4.0.0" - decompress-unzip "^4.0.1" - graceful-fs "^4.1.10" - make-dir "^1.0.0" - pify "^2.3.0" - strip-dirs "^2.0.0" - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -dot-prop@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" - dependencies: - is-obj "^1.0.0" - -download-git-repo@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/download-git-repo/-/download-git-repo-1.0.2.tgz#0b93a62057e41e2f21b1a06c95e7b26362b108ff" - dependencies: - download "^5.0.3" - git-clone "^0.1.0" - rimraf "^2.6.1" - -download@^5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/download/-/download-5.0.3.tgz#63537f977f99266a30eb8a2a2fbd1f20b8000f7a" - dependencies: - caw "^2.0.0" - decompress "^4.0.0" - filenamify "^2.0.0" - get-stream "^3.0.0" - got "^6.3.0" - mkdirp "^0.5.1" - pify "^2.3.0" - -duplexer3@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" - -ejs@^2.2.4: - version "2.5.7" - resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.5.7.tgz#cc872c168880ae3c7189762fd5ffc00896c9518a" - -end-of-stream@^1.0.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" - dependencies: - once "^1.4.0" - -env-paths@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-1.0.0.tgz#4168133b42bb05c38a35b1ae4397c8298ab369e0" - -error-ex@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" - dependencies: - is-arrayish "^0.2.1" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -execa@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.9.0.tgz#adb7ce62cf985071f60580deb4a88b9e34712d01" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - dependencies: - is-extendable "^0.1.0" - -external-editor@^2.0.4: - version "2.1.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.1.0.tgz#3d026a21b7f95b5726387d4200ac160d372c3b48" - dependencies: - chardet "^0.4.0" - iconv-lite "^0.4.17" - tmp "^0.0.33" - -fd-slicer@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65" - dependencies: - pend "~1.2.0" - -figures@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" - dependencies: - escape-string-regexp "^1.0.5" - -file-type@^3.8.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9" - -file-type@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/file-type/-/file-type-5.2.0.tgz#2ddbea7c73ffe36368dfae49dc338c058c2b8ad6" - -file-type@^6.1.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/file-type/-/file-type-6.2.0.tgz#e50cd75d356ffed4e306dc4f5bcf52a79903a919" - -filename-reserved-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229" - -filenamify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-2.0.0.tgz#bd162262c0b6e94bfbcdcf19a3bbb3764f785695" - dependencies: - filename-reserved-regex "^2.0.0" - strip-outer "^1.0.0" - trim-repeated "^1.0.0" - -find-up@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" - dependencies: - path-exists "^2.0.0" - pinkie-promise "^2.0.0" - -find-up@^2.0.0, find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - dependencies: - locate-path "^2.0.0" - -fs-exists-sync@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" - -fs-extra@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-3.0.1.tgz#3794f378c58b342ea7dbbb23095109c4b3b62291" - dependencies: - graceful-fs "^4.1.2" - jsonfile "^3.0.0" - universalify "^0.1.0" - -fs-extra@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94" - dependencies: - graceful-fs "^4.1.2" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -get-proxy@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/get-proxy/-/get-proxy-2.1.0.tgz#349f2b4d91d44c4d4d4e9cba2ad90143fac5ef93" - dependencies: - npm-conf "^1.1.0" - -get-stream@^2.2.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de" - dependencies: - object-assign "^4.0.1" - pinkie-promise "^2.0.0" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -getopts@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/getopts/-/getopts-2.0.0.tgz#e9119f3e79d22d0685b77fbe78d5cd6e19ca1af0" - -git-clone@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/git-clone/-/git-clone-0.1.0.tgz#0d76163778093aef7f1c30238f2a9ef3f07a2eb9" - -git-config-path@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/git-config-path/-/git-config-path-1.0.1.tgz#6d33f7ed63db0d0e118131503bab3aca47d54664" - dependencies: - extend-shallow "^2.0.1" - fs-exists-sync "^0.1.0" - homedir-polyfill "^1.0.0" - -glob@^7.0.3, glob@^7.0.5: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -global-dirs@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" - dependencies: - ini "^1.3.4" - -globby@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" - dependencies: - array-union "^1.0.1" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -got@^6.3.0, got@^6.7.1: - version "6.7.1" - resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" - dependencies: - create-error-class "^3.0.0" - duplexer3 "^0.1.4" - get-stream "^3.0.0" - is-redirect "^1.0.0" - is-retry-allowed "^1.0.0" - is-stream "^1.0.0" - lowercase-keys "^1.0.0" - safe-buffer "^5.0.1" - timed-out "^4.0.0" - unzip-response "^2.0.1" - url-parse-lax "^1.0.0" - -graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -"graceful-readlink@>= 1.0.0": - version "1.0.1" - resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" - -handlebars@^4.0.1: - version "4.0.11" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" - dependencies: - async "^1.4.0" - optimist "^0.6.1" - source-map "^0.4.4" - optionalDependencies: - uglify-js "^2.6" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - -has-symbol-support-x@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.1.tgz#66ec2e377e0c7d7ccedb07a3a84d77510ff1bc4c" - -has-to-string-tag-x@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" - dependencies: - has-symbol-support-x "^1.4.1" - -homedir-polyfill@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" - dependencies: - parse-passwd "^1.0.0" - -hosted-git-info@^2.1.4: - version "2.5.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" - -iconv-lite@^0.4.17: - version "0.4.19" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" - -ieee754@^1.1.4: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" - -import-lazy@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - -indent-string@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -ini@^1.3.4, ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -inquirer@^3.2.3: - version "3.3.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" - dependencies: - ansi-escapes "^3.0.0" - chalk "^2.0.0" - cli-cursor "^2.1.0" - cli-width "^2.0.0" - external-editor "^2.0.4" - figures "^2.0.0" - lodash "^4.3.0" - mute-stream "0.0.7" - run-async "^2.2.0" - rx-lite "^4.0.8" - rx-lite-aggregates "^4.0.8" - string-width "^2.1.0" - strip-ansi "^4.0.0" - through "^2.3.6" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - -is-binary-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.0.0.tgz#0e61cea6974b24dda8bcc8366ce58a69265d1a36" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-builtin-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" - dependencies: - builtin-modules "^1.0.0" - -is-extendable@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - -is-installed-globally@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" - dependencies: - global-dirs "^0.1.0" - is-path-inside "^1.0.0" - -is-natural-number@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/is-natural-number/-/is-natural-number-4.0.1.tgz#ab9d76e1db4ced51e35de0c72ebecf09f734cde8" - -is-npm@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" - -is-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - -is-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.1.tgz#8952688c5ec2ffd6b03ecc85e769e02903083470" - -is-path-inside@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" - dependencies: - path-is-inside "^1.0.1" - -is-promise@^2.0.0, is-promise@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" - -is-redirect@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" - -is-retry-allowed@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" - -is-stream@^1.0.0, is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-utf8@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - -isarray@^1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isurl@^1.0.0-alpha5: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" - dependencies: - has-to-string-tag-x "^1.2.0" - is-object "^1.0.1" - -jsonfile@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-3.0.1.tgz#a5ecc6f65f53f662c4415c7675a0331d0992ec66" - optionalDependencies: - graceful-fs "^4.1.6" - -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - optionalDependencies: - graceful-fs "^4.1.6" - -jstransformer-ejs@^0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/jstransformer-ejs/-/jstransformer-ejs-0.0.3.tgz#04d9201469274fcf260f1e7efd732d487fa234b6" - dependencies: - ejs "^2.2.4" - -jstransformer-handlebars@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/jstransformer-handlebars/-/jstransformer-handlebars-1.1.0.tgz#91ba56e0a28aee31bb56d4adbcbce508d8230468" - dependencies: - handlebars "^4.0.1" - -jstransformer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/jstransformer/-/jstransformer-1.0.0.tgz#ed8bf0921e2f3f1ed4d5c1a44f68709ed24722c3" - dependencies: - is-promise "^2.0.0" - promise "^7.0.1" - -kind-of@^3.0.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kopy@^8.2.0: - version "8.2.5" - resolved "https://registry.yarnpkg.com/kopy/-/kopy-8.2.5.tgz#6c95f312e981ab917680d7e5de3cdf29a1bf221f" - dependencies: - inquirer "^3.2.3" - is-binary-path "^2.0.0" - jstransformer "^1.0.0" - jstransformer-ejs "^0.0.3" - majo "^0.4.1" - minimatch "^3.0.4" - multimatch "^2.1.0" - path-exists "^3.0.0" - -latest-version@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15" - dependencies: - package-json "^4.0.0" - -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - -load-json-file@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - pinkie-promise "^2.0.0" - strip-bom "^2.0.0" - -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -lodash.camelcase@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" - -lodash.kebabcase@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36" - -lodash.snakecase@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d" - -lodash.startcase@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.startcase/-/lodash.startcase-4.4.0.tgz#9436e34ed26093ed7ffae1936144350915d9add8" - -lodash@^4.3.0: - version "4.17.5" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" - -log-symbols@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - dependencies: - chalk "^2.0.1" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -lowercase-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" - -lru-cache@^4.0.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -majo@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/majo/-/majo-0.4.1.tgz#5e6eeb9b63bda77e59d396b9c9ce4189ce6100bc" - dependencies: - fs-extra "^3.0.1" - globby "^6.1.0" - ware "^1.3.0" - -make-dir@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.1.0.tgz#19b4369fe48c116f53c2af95ad102c0e39e85d51" - dependencies: - pify "^3.0.0" - -map-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - -map-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9" - -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - -minimatch@^3.0.0, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -minimist@~0.0.1: - version "0.0.10" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" - -minimost@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/minimost/-/minimost-1.0.0.tgz#1d07954aa0268873408b95552fbffc5977dfc78b" - dependencies: - camelcase-keys "^4.0.0" - minimist "^1.2.0" - -mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -multimatch@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-2.1.0.tgz#9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b" - dependencies: - array-differ "^1.0.0" - array-union "^1.0.1" - arrify "^1.0.0" - minimatch "^3.0.0" - -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - -normalize-package-data@^2.3.2: - version "2.4.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" - dependencies: - hosted-git-info "^2.1.4" - is-builtin-module "^1.0.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -npm-conf@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/npm-conf/-/npm-conf-1.1.3.tgz#256cc47bd0e218c259c4e9550bf413bc2192aff9" - dependencies: - config-chain "^1.1.11" - pify "^3.0.0" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -object-assign@^4.0.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -once@^1.3.0, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - dependencies: - mimic-fn "^1.0.0" - -optimist@^0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" - dependencies: - minimist "~0.0.1" - wordwrap "~0.0.2" - -ora@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-1.4.0.tgz#884458215b3a5d4097592285f93321bb7a79e2e5" - dependencies: - chalk "^2.1.0" - cli-cursor "^2.1.0" - cli-spinners "^1.0.1" - log-symbols "^2.1.0" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -p-limit@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" - dependencies: - p-try "^1.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - dependencies: - p-limit "^1.1.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - -package-json@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" - dependencies: - got "^6.7.1" - registry-auth-token "^3.0.1" - registry-url "^3.0.3" - semver "^5.1.0" - -parse-git-config@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/parse-git-config/-/parse-git-config-1.1.1.tgz#d3a9984317132f57398712bba438e129590ddf8c" - dependencies: - extend-shallow "^2.0.1" - fs-exists-sync "^0.1.0" - git-config-path "^1.0.1" - ini "^1.3.4" - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - dependencies: - error-ex "^1.2.0" - -parse-passwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" - -path-exists@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" - dependencies: - pinkie-promise "^2.0.0" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-is-inside@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - -path-key@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -path-type@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" - dependencies: - graceful-fs "^4.1.2" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - dependencies: - pify "^2.0.0" - -pend@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" - -pify@^2.0.0, pify@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - -pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f" - dependencies: - find-up "^2.1.0" - -prepend-http@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" - -process-nextick-args@~1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" - -promise@^7.0.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" - dependencies: - asap "~2.0.3" - -proto-list@~1.2.1: - version "1.2.4" - resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - -quick-lru@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8" - -rc@^1.0.1, rc@^1.1.6: - version "1.2.5" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.5.tgz#275cd687f6e3b36cc756baa26dfee80a790301fd" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -read-pkg-up@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" - dependencies: - find-up "^1.0.0" - read-pkg "^1.0.0" - -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - -read-pkg@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" - dependencies: - load-json-file "^1.0.0" - normalize-package-data "^2.3.2" - path-type "^1.0.0" - -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - -readable-stream@^2.0.0, readable-stream@^2.0.5: - version "2.3.3" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~1.0.6" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -redent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" - dependencies: - indent-string "^3.0.0" - strip-indent "^2.0.0" - -registry-auth-token@^3.0.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" - dependencies: - rc "^1.1.6" - safe-buffer "^5.0.1" - -registry-url@^3.0.3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" - dependencies: - rc "^1.0.1" - -repeat-string@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - dependencies: - onetime "^2.0.0" - signal-exit "^3.0.2" - -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - -rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -run-async@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" - dependencies: - is-promise "^2.1.0" - -rx-lite-aggregates@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" - dependencies: - rx-lite "*" - -rx-lite@*, rx-lite@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" - -safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -sao@^0.22.12: - version "0.22.12" - resolved "https://registry.yarnpkg.com/sao/-/sao-0.22.12.tgz#fe13bb32bb0d32892c188024f77c5ac26c19eaf9" - dependencies: - boxen "^1.2.2" - cac "^4.3.4" - chalk "^2.0.1" - co "^4.6.0" - conf "^1.1.2" - cross-spawn "^5.1.0" - download-git-repo "^1.0.1" - filenamify "^2.0.0" - fs-extra "^4.0.1" - git-config-path "^1.0.1" - globby "^6.1.0" - jstransformer-handlebars "^1.0.0" - kopy "^8.2.0" - ora "^1.3.0" - parse-git-config "^1.1.1" - semver "^5.4.1" - text-table "^0.2.0" - tildify "^1.2.0" - update-notifier "^2.2.0" - user-home "^2.0.0" - yarn-install "^0.5.1" - -seek-bzip@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/seek-bzip/-/seek-bzip-1.0.5.tgz#cfe917cb3d274bcffac792758af53173eb1fabdc" - dependencies: - commander "~2.8.1" - -semver-diff@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" - dependencies: - semver "^5.0.3" - -"semver@2 || 3 || 4 || 5", semver@^5.0.3, semver@^5.1.0, semver@^5.4.1: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0, signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -source-map@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" - dependencies: - amdefine ">=0.0.4" - -source-map@~0.5.1: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -spdx-correct@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" - dependencies: - spdx-license-ids "^1.0.2" - -spdx-expression-parse@~1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" - -spdx-license-ids@^1.0.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" - -string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - dependencies: - ansi-regex "^3.0.0" - -strip-bom@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" - dependencies: - is-utf8 "^0.2.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - -strip-dirs@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5" - dependencies: - is-natural-number "^4.0.1" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -strip-outer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.0.tgz#aac0ba60d2e90c5d4f275fd8869fd9a2d310ffb8" - dependencies: - escape-string-regexp "^1.0.2" - -suffix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/suffix/-/suffix-0.1.0.tgz#3e46966de56af17600385e58db8ec659dd797907" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^4.0.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" - dependencies: - has-flag "^2.0.0" - -supports-color@^5.3.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" - dependencies: - has-flag "^3.0.0" - -tar-stream@^1.5.2: - version "1.5.5" - resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.5.5.tgz#5cad84779f45c83b1f2508d96b09d88c7218af55" - dependencies: - bl "^1.0.0" - end-of-stream "^1.0.0" - readable-stream "^2.0.0" - xtend "^4.0.0" - -term-size@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" - dependencies: - execa "^0.7.0" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - -through@^2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - -tildify@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/tildify/-/tildify-1.2.0.tgz#dcec03f55dca9b7aa3e5b04f21817eb56e63588a" - dependencies: - os-homedir "^1.0.0" - -timed-out@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" - -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - dependencies: - os-tmpdir "~1.0.2" - -trim-repeated@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21" - dependencies: - escape-string-regexp "^1.0.2" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -uglify-js@^2.6: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" - dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -unbzip2-stream@^1.0.9: - version "1.2.5" - resolved "https://registry.yarnpkg.com/unbzip2-stream/-/unbzip2-stream-1.2.5.tgz#73a033a567bbbde59654b193c44d48a7e4f43c47" - dependencies: - buffer "^3.0.1" - through "^2.3.6" - -unique-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" - dependencies: - crypto-random-string "^1.0.0" - -universalify@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" - -unzip-response@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" - -update-notifier@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.3.0.tgz#4e8827a6bb915140ab093559d7014e3ebb837451" - dependencies: - boxen "^1.2.1" - chalk "^2.0.1" - configstore "^3.0.0" - import-lazy "^2.1.0" - is-installed-globally "^0.1.0" - is-npm "^1.0.0" - latest-version "^3.0.0" - semver-diff "^2.0.0" - xdg-basedir "^3.0.0" - -url-parse-lax@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" - dependencies: - prepend-http "^1.0.1" - -url-to-options@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" - -user-home@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" - dependencies: - os-homedir "^1.0.0" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -validate-npm-package-license@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" - dependencies: - spdx-correct "~1.0.0" - spdx-expression-parse "~1.0.0" - -ware@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/ware/-/ware-1.3.0.tgz#d1b14f39d2e2cb4ab8c4098f756fe4b164e473d4" - dependencies: - wrap-fn "^0.1.0" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -widest-line@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273" - dependencies: - string-width "^2.1.1" - -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - -wordwrap@~0.0.2: - version "0.0.3" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" - -wrap-fn@^0.1.0: - version "0.1.5" - resolved "https://registry.yarnpkg.com/wrap-fn/-/wrap-fn-0.1.5.tgz#f21b6e41016ff4a7e31720dbc63a09016bdf9845" - dependencies: - co "3.1.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -write-file-atomic@^2.0.0, write-file-atomic@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" - dependencies: - graceful-fs "^4.1.11" - imurmurhash "^0.1.4" - signal-exit "^3.0.2" - -xdg-basedir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" - -xtend@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" - -yarn-install@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/yarn-install/-/yarn-install-0.5.1.tgz#f3c55e8646b6ac8da360b2f8e31afe5c4a067340" - dependencies: - cac "^3.0.3" - chalk "^1.1.3" - cross-spawn "^4.0.2" - -yauzl@^2.4.2: - version "2.9.1" - resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.9.1.tgz#a81981ea70a57946133883f029c5821a89359a7f" - dependencies: - buffer-crc32 "~0.2.3" - fd-slicer "~1.0.1" diff --git a/packages/kbn-plugin-helpers/yarn.lock b/packages/kbn-plugin-helpers/yarn.lock deleted file mode 100644 index d5e6b213bbd37..0000000000000 --- a/packages/kbn-plugin-helpers/yarn.lock +++ /dev/null @@ -1,1872 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -amdefine@>=0.0.4: - version "1.0.1" - resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" - -ansi-cyan@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873" - dependencies: - ansi-wrap "0.1.0" - -ansi-escapes@^1.1.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" - -ansi-red@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" - dependencies: - ansi-wrap "0.1.0" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-wrap@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" - -append-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/append-buffer/-/append-buffer-1.0.2.tgz#d8220cf466081525efea50614f3de6514dfa58f1" - dependencies: - buffer-equal "^1.0.0" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.5" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -argv-split@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argv-split/-/argv-split-2.0.1.tgz#be264117790dbd5ccd63ec3f449a1804814ac4c5" - -arr-diff@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-1.1.0.tgz#687c32758163588fef7de7b36fabe495eb1a399a" - dependencies: - arr-flatten "^1.0.1" - array-slice "^0.2.3" - -arr-flatten@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -arr-union@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-2.1.0.tgz#20f9eab5ec70f5c7d215b1077b1c39161d292c7d" - -array-find-index@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" - -array-slice@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-0.2.3.tgz#dd3cfb80ed7973a75117cdac69b0b99ec86186f5" - -array-union@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - dependencies: - array-uniq "^1.0.1" - -array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - -arrify@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -async-foreach@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws4@^1.2.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.7.0.tgz#d4d0e9b9dbfca77bf08eeb0a8a471550fe39e289" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -brace-expansion@^1.1.7: - version "1.1.8" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -buffer-crc32@~0.2.3: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - -buffer-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/buffer-equal/-/buffer-equal-1.0.0.tgz#59616b498304d556abd466966b22eeda3eca5fbe" - -builtin-modules@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -camelcase-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" - dependencies: - camelcase "^2.0.0" - map-obj "^1.0.0" - -camelcase@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" - -camelcase@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" - -caseless@~0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -chalk@^1.0.0, chalk@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -cli-cursor@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" - dependencies: - restore-cursor "^1.0.1" - -cli-width@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" - -cliui@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - wrap-ansi "^2.0.0" - -clone-buffer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58" - -clone-stats@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680" - -clone@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb" - -cloneable-readable@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/cloneable-readable/-/cloneable-readable-1.0.0.tgz#a6290d413f217a61232f95e458ff38418cfb0117" - dependencies: - inherits "^2.0.1" - process-nextick-args "^1.0.6" - through2 "^2.0.1" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" - dependencies: - delayed-stream "~1.0.0" - -commander@^2.9.0: - version "2.14.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.0.tgz#7b25325963e6aace20d3a9285b09379b0c2208b5" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -concat-stream@^1.4.7: - version "1.6.0" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" - dependencies: - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -convert-source-map@^1.5.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" - -core-util-is@1.0.2, core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cross-spawn@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" - dependencies: - lru-cache "^4.0.1" - which "^1.2.9" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -currently-unhandled@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" - dependencies: - array-find-index "^1.0.1" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -decamelize@^1.1.1, decamelize@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -define-properties@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" - dependencies: - foreach "^2.0.5" - object-keys "^1.0.8" - -del@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" - dependencies: - globby "^5.0.0" - is-path-cwd "^1.0.0" - is-path-in-cwd "^1.0.0" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - rimraf "^2.2.8" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -duplexify@^3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.5.3.tgz#8b5818800df92fd0125b27ab896491912858243e" - dependencies: - end-of-stream "^1.0.0" - inherits "^2.0.1" - readable-stream "^2.0.0" - stream-shift "^1.0.0" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -end-of-stream@^1.0.0, end-of-stream@^1.1.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" - dependencies: - once "^1.4.0" - -error-ex@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" - dependencies: - is-arrayish "^0.2.1" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -execa@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" - dependencies: - cross-spawn "^6.0.0" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -exit-hook@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" - -extend-shallow@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-1.1.4.tgz#19d6bf94dfc09d76ba711f39b872d21ff4dd9071" - dependencies: - kind-of "^1.1.0" - -extend@^3.0.0, extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -external-editor@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-1.1.1.tgz#12d7b0db850f7ff7e7081baf4005700060c4600b" - dependencies: - extend "^3.0.0" - spawn-sync "^1.0.15" - tmp "^0.0.29" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - -extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - -figures@^1.3.5: - version "1.7.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" - dependencies: - escape-string-regexp "^1.0.5" - object-assign "^4.1.0" - -find-up@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" - dependencies: - path-exists "^2.0.0" - pinkie-promise "^2.0.0" - -flush-write-stream@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.0.2.tgz#c81b90d8746766f1a609a46809946c45dd8ae417" - dependencies: - inherits "^2.0.1" - readable-stream "^2.0.4" - -foreach@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -fs-mkdirp-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz#0b7815fc3201c6a69e14db98ce098c16935259eb" - dependencies: - graceful-fs "^4.1.11" - through2 "^2.0.3" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fstream@^1.0.0, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -gaze@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.3.tgz#c441733e13b927ac8c0ff0b4c3b033f28812924a" - dependencies: - globule "^1.0.0" - -generate-function@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" - -generate-object-property@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" - dependencies: - is-property "^1.0.0" - -get-caller-file@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" - -get-stdin@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - -glob-stream@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4" - dependencies: - extend "^3.0.0" - glob "^7.1.1" - glob-parent "^3.1.0" - is-negated-glob "^1.0.0" - ordered-read-streams "^1.0.0" - pumpify "^1.3.5" - readable-stream "^2.1.5" - remove-trailing-separator "^1.0.1" - to-absolute-glob "^2.0.0" - unique-stream "^2.0.2" - -glob@^6.0.4: - version "6.0.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-6.0.4.tgz#0f08860f6a155127b2fadd4f9ce24b1aab6e4d22" - dependencies: - inflight "^1.0.4" - inherits "2" - minimatch "2 || 3" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@~7.1.1: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globby@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" - dependencies: - array-union "^1.0.1" - arrify "^1.0.0" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -globule@^1.0.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/globule/-/globule-1.2.1.tgz#5dffb1b191f22d20797a9369b49eab4e9839696d" - dependencies: - glob "~7.1.1" - lodash "~4.17.10" - minimatch "~3.0.2" - -graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -gulp-rename@1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/gulp-rename/-/gulp-rename-1.2.2.tgz#3ad4428763f05e2764dec1c67d868db275687817" - -gulp-zip@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/gulp-zip/-/gulp-zip-4.1.0.tgz#dab178bd99afa190923f1eb78abaf0db47817704" - dependencies: - get-stream "^3.0.0" - plugin-error "^0.1.2" - through2 "^2.0.1" - vinyl "^2.1.0" - yazl "^2.1.0" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-validator@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" - dependencies: - chalk "^1.1.1" - commander "^2.9.0" - is-my-json-valid "^2.12.4" - pinkie-promise "^2.0.0" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -hosted-git-info@^2.1.4: - version "2.6.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -in-publish@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51" - -indent-string@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" - dependencies: - repeating "^2.0.0" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -inquirer@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-1.2.3.tgz#4dec6f32f37ef7bb0b2ed3f1d1a5c3f545074918" - dependencies: - ansi-escapes "^1.1.0" - chalk "^1.0.0" - cli-cursor "^1.0.1" - cli-width "^2.0.0" - external-editor "^1.1.0" - figures "^1.3.5" - lodash "^4.3.0" - mute-stream "0.0.6" - pinkie-promise "^2.0.0" - run-async "^2.2.0" - rx "^4.1.0" - string-width "^1.0.1" - strip-ansi "^3.0.0" - through "^2.3.6" - -invert-kv@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" - -is-absolute@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" - dependencies: - is-relative "^1.0.0" - is-windows "^1.0.1" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-builtin-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" - dependencies: - builtin-modules "^1.0.0" - -is-extglob@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - dependencies: - is-extglob "^2.1.0" - -is-my-ip-valid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" - -is-my-json-valid@^2.12.4: - version "2.17.2" - resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz#6b2103a288e94ef3de5cf15d29dd85fc4b78d65c" - dependencies: - generate-function "^2.0.0" - generate-object-property "^1.1.0" - is-my-ip-valid "^1.0.0" - jsonpointer "^4.0.0" - xtend "^4.0.0" - -is-negated-glob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2" - -is-path-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" - -is-path-in-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" - dependencies: - is-path-inside "^1.0.0" - -is-path-inside@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" - dependencies: - path-is-inside "^1.0.1" - -is-promise@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" - -is-property@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" - -is-relative@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" - dependencies: - is-unc-path "^1.0.0" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -is-unc-path@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" - dependencies: - unc-path-regex "^0.1.2" - -is-utf8@^0.2.0, is-utf8@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - -is-valid-glob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-valid-glob/-/is-valid-glob-1.0.0.tgz#29bf3eff701be2d4d315dbacc39bc39fe8f601aa" - -is-windows@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.1.tgz#310db70f742d259a16a369202b51af84233310d9" - -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -js-base64@^2.1.8: - version "2.4.5" - resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.5.tgz#e293cd3c7c82f070d700fc7a1ca0a2e69f101f92" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsonpointer@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -kind-of@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44" - -lazystream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.0.tgz#f6995fe0f820392f61396be89462407bb77168e4" - dependencies: - readable-stream "^2.0.5" - -lcid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" - dependencies: - invert-kv "^1.0.0" - -lead@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lead/-/lead-1.0.0.tgz#6f14f99a37be3a9dd784f5495690e5903466ee42" - dependencies: - flush-write-stream "^1.0.2" - -load-json-file@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - pinkie-promise "^2.0.0" - strip-bom "^2.0.0" - -lodash.assign@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" - -lodash.clonedeep@^4.3.2: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" - -lodash.mergewith@^4.6.0: - version "4.6.1" - resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz#639057e726c3afbdb3e7d42741caa8d6e4335927" - -lodash@^4.0.0, lodash@~4.17.10: - version "4.17.10" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" - -lodash@^4.3.0: - version "4.17.5" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" - -loud-rejection@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" - dependencies: - currently-unhandled "^0.4.1" - signal-exit "^3.0.0" - -lru-cache@^4.0.1: - version "4.1.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -map-obj@^1.0.0, map-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - -meow@^3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" - dependencies: - camelcase-keys "^2.0.0" - decamelize "^1.1.2" - loud-rejection "^1.0.0" - map-obj "^1.0.1" - minimist "^1.1.3" - normalize-package-data "^2.3.4" - object-assign "^4.0.1" - read-pkg-up "^1.0.1" - redent "^1.0.0" - trim-newlines "^1.0.0" - -mime-db@~1.33.0: - version "1.33.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.18" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" - dependencies: - mime-db "~1.33.0" - -"minimatch@2 || 3", minimatch@^3.0.4, minimatch@~3.0.2: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.1.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -mute-stream@0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.6.tgz#48962b19e169fd1dfc240b3f1e7317627bbc47db" - -nan@^2.10.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" - -nice-try@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" - -node-gyp@^3.3.1: - version "3.7.0" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.7.0.tgz#789478e8f6c45e277aa014f3e28f958f286f9203" - dependencies: - fstream "^1.0.0" - glob "^7.0.3" - graceful-fs "^4.1.2" - mkdirp "^0.5.0" - nopt "2 || 3" - npmlog "0 || 1 || 2 || 3 || 4" - osenv "0" - request ">=2.9.0 <2.82.0" - rimraf "2" - semver "~5.3.0" - tar "^2.0.0" - which "1" - -node-sass@^4.9.0: - version "4.9.0" - resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.9.0.tgz#d1b8aa855d98ed684d6848db929a20771cc2ae52" - dependencies: - async-foreach "^0.1.3" - chalk "^1.1.1" - cross-spawn "^3.0.0" - gaze "^1.0.0" - get-stdin "^4.0.1" - glob "^7.0.3" - in-publish "^2.0.0" - lodash.assign "^4.2.0" - lodash.clonedeep "^4.3.2" - lodash.mergewith "^4.6.0" - meow "^3.7.0" - mkdirp "^0.5.1" - nan "^2.10.0" - node-gyp "^3.3.1" - npmlog "^4.0.0" - request "~2.79.0" - sass-graph "^2.2.4" - stdout-stream "^1.4.0" - "true-case-path" "^1.0.2" - -"nopt@2 || 3": - version "3.0.6" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" - dependencies: - abbrev "1" - -normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: - version "2.4.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" - dependencies: - hosted-git-info "^2.1.4" - is-builtin-module "^1.0.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -now-and-later@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/now-and-later/-/now-and-later-2.0.0.tgz#bc61cbb456d79cb32207ce47ca05136ff2e7d6ee" - dependencies: - once "^1.3.2" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -oauth-sign@~0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^4.0.1, object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object-keys@^1.0.11, object-keys@^1.0.8: - version "1.0.11" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" - -object.assign@^4.0.4: - version "4.1.0" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" - dependencies: - define-properties "^1.1.2" - function-bind "^1.1.1" - has-symbols "^1.0.0" - object-keys "^1.0.11" - -once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -onetime@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" - -ordered-read-streams@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e" - dependencies: - readable-stream "^2.0.1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-locale@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" - dependencies: - lcid "^1.0.0" - -os-shim@^0.1.2: - version "0.1.3" - resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" - -os-tmpdir@^1.0.0, os-tmpdir@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@0: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - dependencies: - error-ex "^1.2.0" - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - -path-exists@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" - dependencies: - pinkie-promise "^2.0.0" - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-is-inside@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -path-type@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" - dependencies: - graceful-fs "^4.1.2" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -pify@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - -plugin-error@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/plugin-error/-/plugin-error-0.1.2.tgz#3b9bb3335ccf00f425e07437e19276967da47ace" - dependencies: - ansi-cyan "^0.1.1" - ansi-red "^0.1.1" - arr-diff "^1.0.1" - arr-union "^2.0.1" - extend-shallow "^1.1.2" - -process-nextick-args@^1.0.6, process-nextick-args@~1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" - -process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - -pump@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -pumpify@^1.3.5: - version "1.4.0" - resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.4.0.tgz#80b7c5df7e24153d03f0e7ac8a05a5d068bd07fb" - dependencies: - duplexify "^3.5.3" - inherits "^2.0.3" - pump "^2.0.0" - -punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -qs@~6.3.0: - version "6.3.2" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -read-pkg-up@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" - dependencies: - find-up "^1.0.0" - read-pkg "^1.0.0" - -read-pkg@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" - dependencies: - load-json-file "^1.0.0" - normalize-package-data "^2.3.2" - path-type "^1.0.0" - -readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.4, readable-stream@^2.0.5, readable-stream@^2.1.5, readable-stream@^2.2.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~1.0.6" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -readable-stream@^2.0.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readable-stream@^2.3.3: - version "2.3.4" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.4.tgz#c946c3f47fa7d8eabc0b6150f4a12f69a4574071" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -redent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" - dependencies: - indent-string "^2.1.0" - strip-indent "^1.0.1" - -remove-bom-buffer@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz#c2bf1e377520d324f623892e33c10cac2c252b53" - dependencies: - is-buffer "^1.1.5" - is-utf8 "^0.2.1" - -remove-bom-stream@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz#05f1a593f16e42e1fb90ebf59de8e569525f9523" - dependencies: - remove-bom-buffer "^3.0.0" - safe-buffer "^5.1.0" - through2 "^2.0.3" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -replace-ext@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" - -"request@>=2.9.0 <2.82.0": - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -request@~2.79.0: - version "2.79.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.11.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~2.0.6" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - qs "~6.3.0" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "~0.4.1" - uuid "^3.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - -require-main-filename@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" - -resolve-options@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/resolve-options/-/resolve-options-1.1.0.tgz#32bb9e39c06d67338dc9378c0d6d6074566ad131" - dependencies: - value-or-function "^3.0.0" - -restore-cursor@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" - dependencies: - exit-hook "^1.0.0" - onetime "^1.0.0" - -rimraf@2, rimraf@^2.2.8: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -run-async@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" - dependencies: - is-promise "^2.1.0" - -rx@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782" - -safe-buffer@^5.0.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - -safe-buffer@^5.1.0, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -safer-buffer@^2.0.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - -sass-graph@^2.2.4: - version "2.2.4" - resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-2.2.4.tgz#13fbd63cd1caf0908b9fd93476ad43a51d1e0b49" - dependencies: - glob "^7.0.0" - lodash "^4.0.0" - scss-tokenizer "^0.2.3" - yargs "^7.0.0" - -scss-tokenizer@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" - dependencies: - js-base64 "^2.1.8" - source-map "^0.4.2" - -"semver@2 || 3 || 4 || 5", semver@^5.5.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -semver@~5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" - -set-blocking@^2.0.0, set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -source-map@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" - dependencies: - amdefine ">=0.0.4" - -spawn-sync@^1.0.15: - version "1.0.15" - resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476" - dependencies: - concat-stream "^1.4.7" - os-shim "^0.1.2" - -spdx-correct@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" - -spdx-expression-parse@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" - -sshpk@^1.7.0: - version "1.14.2" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - safer-buffer "^2.0.2" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -stdout-stream@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.0.tgz#a2c7c8587e54d9427ea9edb3ac3f2cd522df378b" - dependencies: - readable-stream "^2.0.1" - -stream-shift@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -"string-width@^1.0.2 || 2": - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - dependencies: - safe-buffer "~5.1.0" - -stringstream@~0.0.4: - version "0.0.6" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - dependencies: - ansi-regex "^3.0.0" - -strip-bom@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" - dependencies: - is-utf8 "^0.2.0" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-indent@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" - dependencies: - get-stdin "^4.0.1" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -tar@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -through2-filter@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/through2-filter/-/through2-filter-2.0.0.tgz#60bc55a0dacb76085db1f9dae99ab43f83d622ec" - dependencies: - through2 "~2.0.0" - xtend "~4.0.0" - -through2-map@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/through2-map/-/through2-map-3.0.0.tgz#a6c3026ce63b4898a997d540506b66ffd970f271" - dependencies: - through2 "~2.0.0" - xtend "^4.0.0" - -through2@^2.0.0, through2@^2.0.1, through2@^2.0.3, through2@~2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" - dependencies: - readable-stream "^2.1.5" - xtend "~4.0.1" - -through@^2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - -tmp@^0.0.29: - version "0.0.29" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.29.tgz#f25125ff0dd9da3ccb0c2dd371ee1288bb9128c0" - dependencies: - os-tmpdir "~1.0.1" - -to-absolute-glob@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b" - dependencies: - is-absolute "^1.0.0" - is-negated-glob "^1.0.0" - -to-through@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-through/-/to-through-2.0.0.tgz#fc92adaba072647bc0b67d6b03664aa195093af6" - dependencies: - through2 "^2.0.3" - -tough-cookie@~2.3.0: - version "2.3.4" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" - dependencies: - punycode "^1.4.1" - -trim-newlines@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" - -"true-case-path@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/true-case-path/-/true-case-path-1.0.2.tgz#7ec91130924766c7f573be3020c34f8fdfd00d62" - dependencies: - glob "^6.0.4" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tunnel-agent@~0.4.1: - version "0.4.3" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - -unc-path-regex@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" - -unique-stream@^2.0.2: - version "2.2.1" - resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.2.1.tgz#5aa003cfbe94c5ff866c4e7d668bb1c4dbadb369" - dependencies: - json-stable-stringify "^1.0.0" - through2-filter "^2.0.0" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -uuid@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" - -validate-npm-package-license@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338" - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -value-or-function@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/value-or-function/-/value-or-function-3.0.0.tgz#1c243a50b595c1be54a754bfece8563b9ff8d813" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -vinyl-fs@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/vinyl-fs/-/vinyl-fs-3.0.2.tgz#1b86258844383f57581fcaac081fe09ef6d6d752" - dependencies: - fs-mkdirp-stream "^1.0.0" - glob-stream "^6.1.0" - graceful-fs "^4.0.0" - is-valid-glob "^1.0.0" - lazystream "^1.0.0" - lead "^1.0.0" - object.assign "^4.0.4" - pumpify "^1.3.5" - readable-stream "^2.3.3" - remove-bom-buffer "^3.0.0" - remove-bom-stream "^1.2.0" - resolve-options "^1.1.0" - through2 "^2.0.0" - to-through "^2.0.0" - value-or-function "^3.0.0" - vinyl "^2.0.0" - vinyl-sourcemap "^1.1.0" - -vinyl-sourcemap@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz#92a800593a38703a8cdb11d8b300ad4be63b3e16" - dependencies: - append-buffer "^1.0.2" - convert-source-map "^1.5.0" - graceful-fs "^4.1.6" - normalize-path "^2.1.1" - now-and-later "^2.0.0" - remove-bom-buffer "^3.0.0" - vinyl "^2.0.0" - -vinyl@^2.0.0, vinyl@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.1.0.tgz#021f9c2cf951d6b939943c89eb5ee5add4fd924c" - dependencies: - clone "^2.1.1" - clone-buffer "^1.0.0" - clone-stats "^1.0.0" - cloneable-readable "^1.0.0" - remove-trailing-separator "^1.0.1" - replace-ext "^1.0.0" - -which-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" - -which@1, which@^1.2.9: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" - dependencies: - string-width "^1.0.2 || 2" - -wrap-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -y18n@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - -yargs-parser@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a" - dependencies: - camelcase "^3.0.0" - -yargs@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" - dependencies: - camelcase "^3.0.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^1.4.0" - read-pkg-up "^1.0.1" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^1.0.2" - which-module "^1.0.0" - y18n "^3.2.1" - yargs-parser "^5.0.0" - -yazl@^2.1.0: - version "2.4.3" - resolved "https://registry.yarnpkg.com/yazl/-/yazl-2.4.3.tgz#ec26e5cc87d5601b9df8432dbdd3cd2e5173a071" - dependencies: - buffer-crc32 "~0.2.3" diff --git a/packages/kbn-pm/dist/index.js b/packages/kbn-pm/dist/index.js index 4128527ef757f..93c0e111f0d38 100644 --- a/packages/kbn-pm/dist/index.js +++ b/packages/kbn-pm/dist/index.js @@ -61,12341 +61,3453 @@ module.exports = /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 257); +/******/ return __webpack_require__(__webpack_require__.s = 136); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js -//! version : 2.20.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com - -;(function (global, factory) { - true ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - global.moment = factory() -}(this, (function () { 'use strict'; - -var hookCallback; +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function hooks () { - return hookCallback.apply(null, arguments); -} +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = __extends; +/* unused harmony export __assign */ +/* unused harmony export __rest */ +/* unused harmony export __decorate */ +/* unused harmony export __param */ +/* unused harmony export __metadata */ +/* unused harmony export __awaiter */ +/* unused harmony export __generator */ +/* unused harmony export __exportStar */ +/* unused harmony export __values */ +/* unused harmony export __read */ +/* unused harmony export __spread */ +/* unused harmony export __await */ +/* unused harmony export __asyncGenerator */ +/* unused harmony export __asyncDelegator */ +/* unused harmony export __asyncValues */ +/* unused harmony export __makeTemplateObject */ +/* unused harmony export __importStar */ +/* unused harmony export __importDefault */ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + +function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +var __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; +} + +function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +} + +function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +function __param(paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +} + +function __metadata(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); +} + +function __awaiter(thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +function __exportStar(m, exports) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} + +function __values(o) { + var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; + if (m) return m.call(o); + return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; +} + +function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +} + +function __spread() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; +} + +function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); +} + +function __asyncGenerator(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +} + +function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } +} + +function __asyncValues(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator]; + return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); +} + +function __makeTemplateObject(cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; + +function __importStar(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result.default = mod; + return result; +} + +function __importDefault(mod) { + return (mod && mod.__esModule) ? mod : { default: mod }; +} -// This is done to register the method called with moment() -// without creating circular dependencies. -function setHookCallback (callback) { - hookCallback = callback; -} -function isArray(input) { - return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]'; -} +/***/ }), +/* 1 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function isObject(input) { - // IE8 will treat undefined and null as object if it wasn't for - // input != null - return input != null && Object.prototype.toString.call(input) === '[object Object]'; -} +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscriber; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isFunction__ = __webpack_require__(29); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observer__ = __webpack_require__(102); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__ = __webpack_require__(62); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(42); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__util_hostReportError__ = __webpack_require__(61); +/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */ -function isObjectEmpty(obj) { - if (Object.getOwnPropertyNames) { - return (Object.getOwnPropertyNames(obj).length === 0); - } else { - var k; - for (k in obj) { - if (obj.hasOwnProperty(k)) { - return false; - } - } - return true; - } -} -function isUndefined(input) { - return input === void 0; -} -function isNumber(input) { - return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]'; -} -function isDate(input) { - return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]'; -} -function map(arr, fn) { - var res = [], i; - for (i = 0; i < arr.length; ++i) { - res.push(fn(arr[i], i)); - } - return res; -} -function hasOwnProp(a, b) { - return Object.prototype.hasOwnProperty.call(a, b); -} -function extend(a, b) { - for (var i in b) { - if (hasOwnProp(b, i)) { - a[i] = b[i]; +var Subscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](Subscriber, _super); + function Subscriber(destinationOrNext, error, complete) { + var _this = _super.call(this) || this; + _this.syncErrorValue = null; + _this.syncErrorThrown = false; + _this.syncErrorThrowable = false; + _this.isStopped = false; + switch (arguments.length) { + case 0: + _this.destination = __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */]; + break; + case 1: + if (!destinationOrNext) { + _this.destination = __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */]; + break; + } + if (typeof destinationOrNext === 'object') { + if (isTrustedSubscriber(destinationOrNext)) { + var trustedSubscriber = destinationOrNext[__WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]](); + _this.syncErrorThrowable = trustedSubscriber.syncErrorThrowable; + _this.destination = trustedSubscriber; + trustedSubscriber.add(_this); + } + else { + _this.syncErrorThrowable = true; + _this.destination = new SafeSubscriber(_this, destinationOrNext); + } + break; + } + default: + _this.syncErrorThrowable = true; + _this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete); + break; } + return _this; } - - if (hasOwnProp(b, 'toString')) { - a.toString = b.toString; - } - - if (hasOwnProp(b, 'valueOf')) { - a.valueOf = b.valueOf; - } - - return a; -} - -function createUTC (input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, true).utc(); -} - -function defaultParsingFlags() { - // We need to deep clone this object. - return { - empty : false, - unusedTokens : [], - unusedInput : [], - overflow : -2, - charsLeftOver : 0, - nullInput : false, - invalidMonth : null, - invalidFormat : false, - userInvalidated : false, - iso : false, - parsedDateParts : [], - meridiem : null, - rfc2822 : false, - weekdayMismatch : false + Subscriber.prototype[__WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]] = function () { return this; }; + Subscriber.create = function (next, error, complete) { + var subscriber = new Subscriber(next, error, complete); + subscriber.syncErrorThrowable = false; + return subscriber; }; -} - -function getParsingFlags(m) { - if (m._pf == null) { - m._pf = defaultParsingFlags(); - } - return m._pf; -} - -var some; -if (Array.prototype.some) { - some = Array.prototype.some; -} else { - some = function (fun) { - var t = Object(this); - var len = t.length >>> 0; - - for (var i = 0; i < len; i++) { - if (i in t && fun.call(this, t[i], i, t)) { - return true; - } + Subscriber.prototype.next = function (value) { + if (!this.isStopped) { + this._next(value); } - - return false; }; -} - -function isValid(m) { - if (m._isValid == null) { - var flags = getParsingFlags(m); - var parsedParts = some.call(flags.parsedDateParts, function (i) { - return i != null; - }); - var isNowValid = !isNaN(m._d.getTime()) && - flags.overflow < 0 && - !flags.empty && - !flags.invalidMonth && - !flags.invalidWeekday && - !flags.weekdayMismatch && - !flags.nullInput && - !flags.invalidFormat && - !flags.userInvalidated && - (!flags.meridiem || (flags.meridiem && parsedParts)); - - if (m._strict) { - isNowValid = isNowValid && - flags.charsLeftOver === 0 && - flags.unusedTokens.length === 0 && - flags.bigHour === undefined; - } - - if (Object.isFrozen == null || !Object.isFrozen(m)) { - m._isValid = isNowValid; + Subscriber.prototype.error = function (err) { + if (!this.isStopped) { + this.isStopped = true; + this._error(err); } - else { - return isNowValid; + }; + Subscriber.prototype.complete = function () { + if (!this.isStopped) { + this.isStopped = true; + this._complete(); } - } - return m._isValid; -} - -function createInvalid (flags) { - var m = createUTC(NaN); - if (flags != null) { - extend(getParsingFlags(m), flags); - } - else { - getParsingFlags(m).userInvalidated = true; - } - - return m; -} - -// Plugins that add properties should also add the key here (null value), -// so we can properly clone ourselves. -var momentProperties = hooks.momentProperties = []; - -function copyConfig(to, from) { - var i, prop, val; - - if (!isUndefined(from._isAMomentObject)) { - to._isAMomentObject = from._isAMomentObject; - } - if (!isUndefined(from._i)) { - to._i = from._i; - } - if (!isUndefined(from._f)) { - to._f = from._f; - } - if (!isUndefined(from._l)) { - to._l = from._l; - } - if (!isUndefined(from._strict)) { - to._strict = from._strict; - } - if (!isUndefined(from._tzm)) { - to._tzm = from._tzm; - } - if (!isUndefined(from._isUTC)) { - to._isUTC = from._isUTC; - } - if (!isUndefined(from._offset)) { - to._offset = from._offset; - } - if (!isUndefined(from._pf)) { - to._pf = getParsingFlags(from); - } - if (!isUndefined(from._locale)) { - to._locale = from._locale; - } - - if (momentProperties.length > 0) { - for (i = 0; i < momentProperties.length; i++) { - prop = momentProperties[i]; - val = from[prop]; - if (!isUndefined(val)) { - to[prop] = val; - } + }; + Subscriber.prototype.unsubscribe = function () { + if (this.closed) { + return; } - } - - return to; -} - -var updateInProgress = false; - -// Moment prototype object -function Moment(config) { - copyConfig(this, config); - this._d = new Date(config._d != null ? config._d.getTime() : NaN); - if (!this.isValid()) { - this._d = new Date(NaN); - } - // Prevent infinite loop in case updateOffset creates new moment - // objects. - if (updateInProgress === false) { - updateInProgress = true; - hooks.updateOffset(this); - updateInProgress = false; - } -} - -function isMoment (obj) { - return obj instanceof Moment || (obj != null && obj._isAMomentObject != null); -} - -function absFloor (number) { - if (number < 0) { - // -0 -> 0 - return Math.ceil(number) || 0; - } else { - return Math.floor(number); - } -} - -function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; - - if (coercedNumber !== 0 && isFinite(coercedNumber)) { - value = absFloor(coercedNumber); - } - - return value; -} + this.isStopped = true; + _super.prototype.unsubscribe.call(this); + }; + Subscriber.prototype._next = function (value) { + this.destination.next(value); + }; + Subscriber.prototype._error = function (err) { + this.destination.error(err); + this.unsubscribe(); + }; + Subscriber.prototype._complete = function () { + this.destination.complete(); + this.unsubscribe(); + }; + Subscriber.prototype._unsubscribeAndRecycle = function () { + var _a = this, _parent = _a._parent, _parents = _a._parents; + this._parent = null; + this._parents = null; + this.unsubscribe(); + this.closed = false; + this.isStopped = false; + this._parent = _parent; + this._parents = _parents; + return this; + }; + return Subscriber; +}(__WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */])); -// compare two arrays, return the number of differences -function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if ((dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { - diffs++; +var SafeSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](SafeSubscriber, _super); + function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) { + var _this = _super.call(this) || this; + _this._parentSubscriber = _parentSubscriber; + var next; + var context = _this; + if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isFunction__["a" /* isFunction */])(observerOrNext)) { + next = observerOrNext; } + else if (observerOrNext) { + next = observerOrNext.next; + error = observerOrNext.error; + complete = observerOrNext.complete; + if (observerOrNext !== __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */]) { + context = Object.create(observerOrNext); + if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isFunction__["a" /* isFunction */])(context.unsubscribe)) { + _this.add(context.unsubscribe.bind(context)); + } + context.unsubscribe = _this.unsubscribe.bind(_this); + } + } + _this._context = context; + _this._next = next; + _this._error = error; + _this._complete = complete; + return _this; } - return diffs + lengthDiff; -} - -function warn(msg) { - if (hooks.suppressDeprecationWarnings === false && - (typeof console !== 'undefined') && console.warn) { - console.warn('Deprecation warning: ' + msg); - } -} - -function deprecate(msg, fn) { - var firstTime = true; - - return extend(function () { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(null, msg); + SafeSubscriber.prototype.next = function (value) { + if (!this.isStopped && this._next) { + var _parentSubscriber = this._parentSubscriber; + if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { + this.__tryOrUnsub(this._next, value); + } + else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) { + this.unsubscribe(); + } } - if (firstTime) { - var args = []; - var arg; - for (var i = 0; i < arguments.length; i++) { - arg = ''; - if (typeof arguments[i] === 'object') { - arg += '\n[' + i + '] '; - for (var key in arguments[0]) { - arg += key + ': ' + arguments[0][key] + ', '; - } - arg = arg.slice(0, -2); // Remove trailing comma and space - } else { - arg = arguments[i]; + }; + SafeSubscriber.prototype.error = function (err) { + if (!this.isStopped) { + var _parentSubscriber = this._parentSubscriber; + var useDeprecatedSynchronousErrorHandling = __WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling; + if (this._error) { + if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { + this.__tryOrUnsub(this._error, err); + this.unsubscribe(); + } + else { + this.__tryOrSetError(_parentSubscriber, this._error, err); + this.unsubscribe(); + } + } + else if (!_parentSubscriber.syncErrorThrowable) { + this.unsubscribe(); + if (useDeprecatedSynchronousErrorHandling) { + throw err; + } + Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); + } + else { + if (useDeprecatedSynchronousErrorHandling) { + _parentSubscriber.syncErrorValue = err; + _parentSubscriber.syncErrorThrown = true; + } + else { + Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); } - args.push(arg); + this.unsubscribe(); } - warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack); - firstTime = false; } - return fn.apply(this, arguments); - }, fn); -} - -var deprecations = {}; - -function deprecateSimple(name, msg) { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(name, msg); - } - if (!deprecations[name]) { - warn(msg); - deprecations[name] = true; - } -} - -hooks.suppressDeprecationWarnings = false; -hooks.deprecationHandler = null; - -function isFunction(input) { - return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; -} - -function set (config) { - var prop, i; - for (i in config) { - prop = config[i]; - if (isFunction(prop)) { - this[i] = prop; - } else { - this['_' + i] = prop; - } - } - this._config = config; - // Lenient ordinal parsing accepts just a number in addition to - // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. - // TODO: Remove "ordinalParse" fallback in next major release. - this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + - '|' + (/\d{1,2}/).source); -} - -function mergeConfigs(parentConfig, childConfig) { - var res = extend({}, parentConfig), prop; - for (prop in childConfig) { - if (hasOwnProp(childConfig, prop)) { - if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { - res[prop] = {}; - extend(res[prop], parentConfig[prop]); - extend(res[prop], childConfig[prop]); - } else if (childConfig[prop] != null) { - res[prop] = childConfig[prop]; - } else { - delete res[prop]; + }; + SafeSubscriber.prototype.complete = function () { + var _this = this; + if (!this.isStopped) { + var _parentSubscriber = this._parentSubscriber; + if (this._complete) { + var wrappedComplete = function () { return _this._complete.call(_this._context); }; + if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { + this.__tryOrUnsub(wrappedComplete); + this.unsubscribe(); + } + else { + this.__tryOrSetError(_parentSubscriber, wrappedComplete); + this.unsubscribe(); + } + } + else { + this.unsubscribe(); } } - } - for (prop in parentConfig) { - if (hasOwnProp(parentConfig, prop) && - !hasOwnProp(childConfig, prop) && - isObject(parentConfig[prop])) { - // make sure changes to properties don't modify parent config - res[prop] = extend({}, res[prop]); + }; + SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) { + try { + fn.call(this._context, value); } - } - return res; -} - -function Locale(config) { - if (config != null) { - this.set(config); - } -} - -var keys; - -if (Object.keys) { - keys = Object.keys; -} else { - keys = function (obj) { - var i, res = []; - for (i in obj) { - if (hasOwnProp(obj, i)) { - res.push(i); + catch (err) { + this.unsubscribe(); + if (__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { + throw err; + } + else { + Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); } } - return res; }; -} - -var defaultCalendar = { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' -}; - -function calendar (key, mom, now) { - var output = this._calendar[key] || this._calendar['sameElse']; - return isFunction(output) ? output.call(mom, now) : output; -} - -var defaultLongDateFormat = { - LTS : 'h:mm:ss A', - LT : 'h:mm A', - L : 'MM/DD/YYYY', - LL : 'MMMM D, YYYY', - LLL : 'MMMM D, YYYY h:mm A', - LLLL : 'dddd, MMMM D, YYYY h:mm A' -}; - -function longDateFormat (key) { - var format = this._longDateFormat[key], - formatUpper = this._longDateFormat[key.toUpperCase()]; - - if (format || !formatUpper) { - return format; - } - - this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) { - return val.slice(1); - }); - - return this._longDateFormat[key]; -} - -var defaultInvalidDate = 'Invalid date'; - -function invalidDate () { - return this._invalidDate; -} - -var defaultOrdinal = '%d'; -var defaultDayOfMonthOrdinalParse = /\d{1,2}/; - -function ordinal (number) { - return this._ordinal.replace('%d', number); -} - -var defaultRelativeTime = { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - ss : '%d seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' -}; - -function relativeTime (number, withoutSuffix, string, isFuture) { - var output = this._relativeTime[string]; - return (isFunction(output)) ? - output(number, withoutSuffix, string, isFuture) : - output.replace(/%d/i, number); -} - -function pastFuture (diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return isFunction(format) ? format(output) : format.replace(/%s/i, output); -} - -var aliases = {}; - -function addUnitAlias (unit, shorthand) { - var lowerCase = unit.toLowerCase(); - aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; -} - -function normalizeUnits(units) { - return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined; -} - -function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, - normalizedProp, - prop; - - for (prop in inputObject) { - if (hasOwnProp(inputObject, prop)) { - normalizedProp = normalizeUnits(prop); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop]; - } - } - } - - return normalizedInput; -} - -var priorities = {}; - -function addUnitPriority(unit, priority) { - priorities[unit] = priority; -} - -function getPrioritizedUnits(unitsObj) { - var units = []; - for (var u in unitsObj) { - units.push({unit: u, priority: priorities[u]}); - } - units.sort(function (a, b) { - return a.priority - b.priority; - }); - return units; -} - -function zeroFill(number, targetLength, forceSign) { - var absNumber = '' + Math.abs(number), - zerosToFill = targetLength - absNumber.length, - sign = number >= 0; - return (sign ? (forceSign ? '+' : '') : '-') + - Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; -} - -var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g; - -var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g; - -var formatFunctions = {}; - -var formatTokenFunctions = {}; - -// token: 'M' -// padded: ['MM', 2] -// ordinal: 'Mo' -// callback: function () { this.month() + 1 } -function addFormatToken (token, padded, ordinal, callback) { - var func = callback; - if (typeof callback === 'string') { - func = function () { - return this[callback](); - }; - } - if (token) { - formatTokenFunctions[token] = func; - } - if (padded) { - formatTokenFunctions[padded[0]] = function () { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }; - } - if (ordinal) { - formatTokenFunctions[ordinal] = function () { - return this.localeData().ordinal(func.apply(this, arguments), token); - }; - } -} - -function removeFormattingTokens(input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ''); - } - return input.replace(/\\/g, ''); -} - -function makeFormatFunction(format) { - var array = format.match(formattingTokens), i, length; - - for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } - } - - return function (mom) { - var output = '', i; - for (i = 0; i < length; i++) { - output += isFunction(array[i]) ? array[i].call(mom, format) : array[i]; - } - return output; - }; -} - -// format date using native date object -function formatMoment(m, format) { - if (!m.isValid()) { - return m.localeData().invalidDate(); - } - - format = expandFormat(format, m.localeData()); - formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format); - - return formatFunctions[format](m); -} - -function expandFormat(format, locale) { - var i = 5; - - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; - } - - localFormattingTokens.lastIndex = 0; - while (i >= 0 && localFormattingTokens.test(format)) { - format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); - localFormattingTokens.lastIndex = 0; - i -= 1; - } - - return format; -} - -var match1 = /\d/; // 0 - 9 -var match2 = /\d\d/; // 00 - 99 -var match3 = /\d{3}/; // 000 - 999 -var match4 = /\d{4}/; // 0000 - 9999 -var match6 = /[+-]?\d{6}/; // -999999 - 999999 -var match1to2 = /\d\d?/; // 0 - 99 -var match3to4 = /\d\d\d\d?/; // 999 - 9999 -var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999 -var match1to3 = /\d{1,3}/; // 0 - 999 -var match1to4 = /\d{1,4}/; // 0 - 9999 -var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999 - -var matchUnsigned = /\d+/; // 0 - inf -var matchSigned = /[+-]?\d+/; // -inf - inf - -var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z -var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z - -var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123 - -// any word (or two) characters or numbers including two/three word month in arabic. -// includes scottish gaelic two word and hyphenated months -var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i; - - -var regexes = {}; - -function addRegexToken (token, regex, strictRegex) { - regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) { - return (isStrict && strictRegex) ? strictRegex : regex; - }; -} - -function getParseRegexForToken (token, config) { - if (!hasOwnProp(regexes, token)) { - return new RegExp(unescapeFormat(token)); - } - - return regexes[token](config._strict, config._locale); -} - -// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript -function unescapeFormat(s) { - return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { - return p1 || p2 || p3 || p4; - })); -} - -function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); -} - -var tokens = {}; - -function addParseToken (token, callback) { - var i, func = callback; - if (typeof token === 'string') { - token = [token]; - } - if (isNumber(callback)) { - func = function (input, array) { - array[callback] = toInt(input); - }; - } - for (i = 0; i < token.length; i++) { - tokens[token[i]] = func; - } -} - -function addWeekParseToken (token, callback) { - addParseToken(token, function (input, array, config, token) { - config._w = config._w || {}; - callback(input, config._w, config, token); - }); -} - -function addTimeToArrayFromToken(token, input, config) { - if (input != null && hasOwnProp(tokens, token)) { - tokens[token](input, config._a, config, token); - } -} - -var YEAR = 0; -var MONTH = 1; -var DATE = 2; -var HOUR = 3; -var MINUTE = 4; -var SECOND = 5; -var MILLISECOND = 6; -var WEEK = 7; -var WEEKDAY = 8; - -// FORMATTING - -addFormatToken('Y', 0, 0, function () { - var y = this.year(); - return y <= 9999 ? '' + y : '+' + y; -}); - -addFormatToken(0, ['YY', 2], 0, function () { - return this.year() % 100; -}); - -addFormatToken(0, ['YYYY', 4], 0, 'year'); -addFormatToken(0, ['YYYYY', 5], 0, 'year'); -addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); - -// ALIASES - -addUnitAlias('year', 'y'); - -// PRIORITIES - -addUnitPriority('year', 1); - -// PARSING - -addRegexToken('Y', matchSigned); -addRegexToken('YY', match1to2, match2); -addRegexToken('YYYY', match1to4, match4); -addRegexToken('YYYYY', match1to6, match6); -addRegexToken('YYYYYY', match1to6, match6); - -addParseToken(['YYYYY', 'YYYYYY'], YEAR); -addParseToken('YYYY', function (input, array) { - array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); -}); -addParseToken('YY', function (input, array) { - array[YEAR] = hooks.parseTwoDigitYear(input); -}); -addParseToken('Y', function (input, array) { - array[YEAR] = parseInt(input, 10); -}); - -// HELPERS - -function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; -} - -function isLeapYear(year) { - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; -} - -// HOOKS - -hooks.parseTwoDigitYear = function (input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); -}; - -// MOMENTS - -var getSetYear = makeGetSet('FullYear', true); - -function getIsLeapYear () { - return isLeapYear(this.year()); -} - -function makeGetSet (unit, keepTime) { - return function (value) { - if (value != null) { - set$1(this, unit, value); - hooks.updateOffset(this, keepTime); - return this; - } else { - return get(this, unit); - } - }; -} - -function get (mom, unit) { - return mom.isValid() ? - mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN; -} - -function set$1 (mom, unit, value) { - if (mom.isValid() && !isNaN(value)) { - if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) { - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month())); - } - else { - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); - } - } -} - -// MOMENTS - -function stringGet (units) { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](); - } - return this; -} - - -function stringSet (units, value) { - if (typeof units === 'object') { - units = normalizeObjectUnits(units); - var prioritized = getPrioritizedUnits(units); - for (var i = 0; i < prioritized.length; i++) { - this[prioritized[i].unit](units[prioritized[i].unit]); - } - } else { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](value); - } - } - return this; -} - -function mod(n, x) { - return ((n % x) + x) % x; -} - -var indexOf; - -if (Array.prototype.indexOf) { - indexOf = Array.prototype.indexOf; -} else { - indexOf = function (o) { - // I know - var i; - for (i = 0; i < this.length; ++i) { - if (this[i] === o) { - return i; - } - } - return -1; - }; -} - -function daysInMonth(year, month) { - if (isNaN(year) || isNaN(month)) { - return NaN; - } - var modMonth = mod(month, 12); - year += (month - modMonth) / 12; - return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2); -} - -// FORMATTING - -addFormatToken('M', ['MM', 2], 'Mo', function () { - return this.month() + 1; -}); - -addFormatToken('MMM', 0, 0, function (format) { - return this.localeData().monthsShort(this, format); -}); - -addFormatToken('MMMM', 0, 0, function (format) { - return this.localeData().months(this, format); -}); - -// ALIASES - -addUnitAlias('month', 'M'); - -// PRIORITY - -addUnitPriority('month', 8); - -// PARSING - -addRegexToken('M', match1to2); -addRegexToken('MM', match1to2, match2); -addRegexToken('MMM', function (isStrict, locale) { - return locale.monthsShortRegex(isStrict); -}); -addRegexToken('MMMM', function (isStrict, locale) { - return locale.monthsRegex(isStrict); -}); - -addParseToken(['M', 'MM'], function (input, array) { - array[MONTH] = toInt(input) - 1; -}); - -addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { - var month = config._locale.monthsParse(input, token, config._strict); - // if we didn't find a month name, mark the date as invalid. - if (month != null) { - array[MONTH] = month; - } else { - getParsingFlags(config).invalidMonth = input; - } -}); - -// LOCALES - -var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/; -var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'); -function localeMonths (m, format) { - if (!m) { - return isArray(this._months) ? this._months : - this._months['standalone']; - } - return isArray(this._months) ? this._months[m.month()] : - this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()]; -} - -var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); -function localeMonthsShort (m, format) { - if (!m) { - return isArray(this._monthsShort) ? this._monthsShort : - this._monthsShort['standalone']; - } - return isArray(this._monthsShort) ? this._monthsShort[m.month()] : - this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()]; -} - -function handleStrictParse(monthName, format, strict) { - var i, ii, mom, llc = monthName.toLocaleLowerCase(); - if (!this._monthsParse) { - // this is not used - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - for (i = 0; i < 12; ++i) { - mom = createUTC([2000, i]); - this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase(); - this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); + SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) { + if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { + throw new Error('bad call'); } - } - - if (strict) { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; + try { + fn.call(this._context, value); } - } else { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - if (ii !== -1) { - return ii; + catch (err) { + if (__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { + parent.syncErrorValue = err; + parent.syncErrorThrown = true; + return true; } - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } -} - -function localeMonthsParse (monthName, format, strict) { - var i, mom, regex; - - if (this._monthsParseExact) { - return handleStrictParse.call(this, monthName, format, strict); - } - - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - } - - // TODO: add sorting - // Sorting makes sure if one month (or abbr) is a prefix of another - // see sorting in computeMonthsParse - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - if (strict && !this._longMonthsParse[i]) { - this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i'); - this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i'); - } - if (!strict && !this._monthsParse[i]) { - regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); - this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) { - return i; - } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) { - return i; - } else if (!strict && this._monthsParse[i].test(monthName)) { - return i; - } - } -} - -// MOMENTS - -function setMonth (mom, value) { - var dayOfMonth; - - if (!mom.isValid()) { - // No op - return mom; - } - - if (typeof value === 'string') { - if (/^\d+$/.test(value)) { - value = toInt(value); - } else { - value = mom.localeData().monthsParse(value); - // TODO: Another silent failure? - if (!isNumber(value)) { - return mom; + else { + Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); + return true; } } - } - - dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); - return mom; -} - -function getSetMonth (value) { - if (value != null) { - setMonth(this, value); - hooks.updateOffset(this, true); - return this; - } else { - return get(this, 'Month'); - } -} - -function getDaysInMonth () { - return daysInMonth(this.year(), this.month()); -} - -var defaultMonthsShortRegex = matchWord; -function monthsShortRegex (isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsShortStrictRegex; - } else { - return this._monthsShortRegex; - } - } else { - if (!hasOwnProp(this, '_monthsShortRegex')) { - this._monthsShortRegex = defaultMonthsShortRegex; - } - return this._monthsShortStrictRegex && isStrict ? - this._monthsShortStrictRegex : this._monthsShortRegex; - } -} - -var defaultMonthsRegex = matchWord; -function monthsRegex (isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsStrictRegex; - } else { - return this._monthsRegex; - } - } else { - if (!hasOwnProp(this, '_monthsRegex')) { - this._monthsRegex = defaultMonthsRegex; - } - return this._monthsStrictRegex && isStrict ? - this._monthsStrictRegex : this._monthsRegex; - } -} - -function computeMonthsParse () { - function cmpLenRev(a, b) { - return b.length - a.length; - } - - var shortPieces = [], longPieces = [], mixedPieces = [], - i, mom; - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - shortPieces.push(this.monthsShort(mom, '')); - longPieces.push(this.months(mom, '')); - mixedPieces.push(this.months(mom, '')); - mixedPieces.push(this.monthsShort(mom, '')); - } - // Sorting makes sure if one month (or abbr) is a prefix of another it - // will match the longer piece. - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - for (i = 0; i < 12; i++) { - shortPieces[i] = regexEscape(shortPieces[i]); - longPieces[i] = regexEscape(longPieces[i]); - } - for (i = 0; i < 24; i++) { - mixedPieces[i] = regexEscape(mixedPieces[i]); - } - - this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._monthsShortRegex = this._monthsRegex; - this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); - this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); -} - -function createDate (y, m, d, h, M, s, ms) { - // can't just apply() to create a date: - // https://stackoverflow.com/q/181348 - var date = new Date(y, m, d, h, M, s, ms); - - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0 && isFinite(date.getFullYear())) { - date.setFullYear(y); - } - return date; -} - -function createUTCDate (y) { - var date = new Date(Date.UTC.apply(null, arguments)); - - // the Date.UTC function remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) { - date.setUTCFullYear(y); - } - return date; -} - -// start-of-first-week - start-of-year -function firstWeekOffset(year, dow, doy) { - var // first-week day -- which january is always in the first week (4 for iso, 1 for other) - fwd = 7 + dow - doy, - // first-week day local weekday -- which local weekday is fwd - fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; - - return -fwdlw + fwd - 1; -} - -// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday -function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var localWeekday = (7 + weekday - dow) % 7, - weekOffset = firstWeekOffset(year, dow, doy), - dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, - resYear, resDayOfYear; - - if (dayOfYear <= 0) { - resYear = year - 1; - resDayOfYear = daysInYear(resYear) + dayOfYear; - } else if (dayOfYear > daysInYear(year)) { - resYear = year + 1; - resDayOfYear = dayOfYear - daysInYear(year); - } else { - resYear = year; - resDayOfYear = dayOfYear; - } - - return { - year: resYear, - dayOfYear: resDayOfYear + return false; }; -} - -function weekOfYear(mom, dow, doy) { - var weekOffset = firstWeekOffset(mom.year(), dow, doy), - week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, - resWeek, resYear; - - if (week < 1) { - resYear = mom.year() - 1; - resWeek = week + weeksInYear(resYear, dow, doy); - } else if (week > weeksInYear(mom.year(), dow, doy)) { - resWeek = week - weeksInYear(mom.year(), dow, doy); - resYear = mom.year() + 1; - } else { - resYear = mom.year(); - resWeek = week; - } - - return { - week: resWeek, - year: resYear + SafeSubscriber.prototype._unsubscribe = function () { + var _parentSubscriber = this._parentSubscriber; + this._context = null; + this._parentSubscriber = null; + _parentSubscriber.unsubscribe(); }; + return SafeSubscriber; +}(Subscriber)); +function isTrustedSubscriber(obj) { + return obj instanceof Subscriber || ('syncErrorThrowable' in obj && obj[__WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]]); } +//# sourceMappingURL=Subscriber.js.map -function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), - weekOffsetNext = firstWeekOffset(year + 1, dow, doy); - return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; -} - -// FORMATTING - -addFormatToken('w', ['ww', 2], 'wo', 'week'); -addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); - -// ALIASES - -addUnitAlias('week', 'w'); -addUnitAlias('isoWeek', 'W'); - -// PRIORITIES - -addUnitPriority('week', 5); -addUnitPriority('isoWeek', 5); - -// PARSING - -addRegexToken('w', match1to2); -addRegexToken('ww', match1to2, match2); -addRegexToken('W', match1to2); -addRegexToken('WW', match1to2, match2); - -addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) { - week[token.substr(0, 1)] = toInt(input); -}); - -// HELPERS - -// LOCALES - -function localeWeek (mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; -} - -var defaultLocaleWeek = { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. -}; - -function localeFirstDayOfWeek () { - return this._week.dow; -} - -function localeFirstDayOfYear () { - return this._week.doy; -} - -// MOMENTS - -function getSetWeek (input) { - var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, 'd'); -} - -function getSetISOWeek (input) { - var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, 'd'); -} - -// FORMATTING - -addFormatToken('d', 0, 'do', 'day'); - -addFormatToken('dd', 0, 0, function (format) { - return this.localeData().weekdaysMin(this, format); -}); - -addFormatToken('ddd', 0, 0, function (format) { - return this.localeData().weekdaysShort(this, format); -}); - -addFormatToken('dddd', 0, 0, function (format) { - return this.localeData().weekdays(this, format); -}); - -addFormatToken('e', 0, 0, 'weekday'); -addFormatToken('E', 0, 0, 'isoWeekday'); - -// ALIASES - -addUnitAlias('day', 'd'); -addUnitAlias('weekday', 'e'); -addUnitAlias('isoWeekday', 'E'); - -// PRIORITY -addUnitPriority('day', 11); -addUnitPriority('weekday', 11); -addUnitPriority('isoWeekday', 11); - -// PARSING - -addRegexToken('d', match1to2); -addRegexToken('e', match1to2); -addRegexToken('E', match1to2); -addRegexToken('dd', function (isStrict, locale) { - return locale.weekdaysMinRegex(isStrict); -}); -addRegexToken('ddd', function (isStrict, locale) { - return locale.weekdaysShortRegex(isStrict); -}); -addRegexToken('dddd', function (isStrict, locale) { - return locale.weekdaysRegex(isStrict); -}); - -addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { - var weekday = config._locale.weekdaysParse(input, token, config._strict); - // if we didn't get a weekday name, mark the date as invalid - if (weekday != null) { - week.d = weekday; - } else { - getParsingFlags(config).invalidWeekday = input; - } -}); - -addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { - week[token] = toInt(input); -}); - -// HELPERS - -function parseWeekday(input, locale) { - if (typeof input !== 'string') { - return input; - } - - if (!isNaN(input)) { - return parseInt(input, 10); - } - - input = locale.weekdaysParse(input); - if (typeof input === 'number') { - return input; - } - - return null; -} - -function parseIsoWeekday(input, locale) { - if (typeof input === 'string') { - return locale.weekdaysParse(input) % 7 || 7; - } - return isNaN(input) ? null : input; -} - -// LOCALES - -var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'); -function localeWeekdays (m, format) { - if (!m) { - return isArray(this._weekdays) ? this._weekdays : - this._weekdays['standalone']; - } - return isArray(this._weekdays) ? this._weekdays[m.day()] : - this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()]; -} - -var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); -function localeWeekdaysShort (m) { - return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort; -} - -var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); -function localeWeekdaysMin (m) { - return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin; -} - -function handleStrictParse$1(weekdayName, format, strict) { - var i, ii, mom, llc = weekdayName.toLocaleLowerCase(); - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._shortWeekdaysParse = []; - this._minWeekdaysParse = []; - - for (i = 0; i < 7; ++i) { - mom = createUTC([2000, 1]).day(i); - this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase(); - this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase(); - this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); - } - } - - if (strict) { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } -} - -function localeWeekdaysParse (weekdayName, format, strict) { - var i, mom, regex; - - if (this._weekdaysParseExact) { - return handleStrictParse$1.call(this, weekdayName, format, strict); - } - - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._minWeekdaysParse = []; - this._shortWeekdaysParse = []; - this._fullWeekdaysParse = []; - } - - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - - mom = createUTC([2000, 1]).day(i); - if (strict && !this._fullWeekdaysParse[i]) { - this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i'); - this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i'); - this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i'); - } - if (!this._weekdaysParse[i]) { - regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); - this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) { - return i; - } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) { - return i; - } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) { - return i; - } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { - return i; - } - } -} - -// MOMENTS - -function getSetDayOfWeek (input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, 'd'); - } else { - return day; - } -} - -function getSetLocaleDayOfWeek (input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, 'd'); -} - -function getSetISODayOfWeek (input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - - // behaves the same as moment#day except - // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) - // as a setter, sunday should belong to the previous week. - - if (input != null) { - var weekday = parseIsoWeekday(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); - } else { - return this.day() || 7; - } -} - -var defaultWeekdaysRegex = matchWord; -function weekdaysRegex (isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysStrictRegex; - } else { - return this._weekdaysRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysRegex')) { - this._weekdaysRegex = defaultWeekdaysRegex; - } - return this._weekdaysStrictRegex && isStrict ? - this._weekdaysStrictRegex : this._weekdaysRegex; - } -} - -var defaultWeekdaysShortRegex = matchWord; -function weekdaysShortRegex (isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysShortStrictRegex; - } else { - return this._weekdaysShortRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysShortRegex')) { - this._weekdaysShortRegex = defaultWeekdaysShortRegex; - } - return this._weekdaysShortStrictRegex && isStrict ? - this._weekdaysShortStrictRegex : this._weekdaysShortRegex; - } -} - -var defaultWeekdaysMinRegex = matchWord; -function weekdaysMinRegex (isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysMinStrictRegex; - } else { - return this._weekdaysMinRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysMinRegex')) { - this._weekdaysMinRegex = defaultWeekdaysMinRegex; - } - return this._weekdaysMinStrictRegex && isStrict ? - this._weekdaysMinStrictRegex : this._weekdaysMinRegex; - } -} - - -function computeWeekdaysParse () { - function cmpLenRev(a, b) { - return b.length - a.length; - } - - var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], - i, mom, minp, shortp, longp; - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, 1]).day(i); - minp = this.weekdaysMin(mom, ''); - shortp = this.weekdaysShort(mom, ''); - longp = this.weekdays(mom, ''); - minPieces.push(minp); - shortPieces.push(shortp); - longPieces.push(longp); - mixedPieces.push(minp); - mixedPieces.push(shortp); - mixedPieces.push(longp); - } - // Sorting makes sure if one weekday (or abbr) is a prefix of another it - // will match the longer piece. - minPieces.sort(cmpLenRev); - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - for (i = 0; i < 7; i++) { - shortPieces[i] = regexEscape(shortPieces[i]); - longPieces[i] = regexEscape(longPieces[i]); - mixedPieces[i] = regexEscape(mixedPieces[i]); - } - - this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._weekdaysShortRegex = this._weekdaysRegex; - this._weekdaysMinRegex = this._weekdaysRegex; - - this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); - this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); - this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i'); -} - -// FORMATTING - -function hFormat() { - return this.hours() % 12 || 12; -} - -function kFormat() { - return this.hours() || 24; -} - -addFormatToken('H', ['HH', 2], 0, 'hour'); -addFormatToken('h', ['hh', 2], 0, hFormat); -addFormatToken('k', ['kk', 2], 0, kFormat); - -addFormatToken('hmm', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); -}); - -addFormatToken('hmmss', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2); -}); - -addFormatToken('Hmm', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2); -}); - -addFormatToken('Hmmss', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2); -}); - -function meridiem (token, lowercase) { - addFormatToken(token, 0, 0, function () { - return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); - }); -} - -meridiem('a', true); -meridiem('A', false); - -// ALIASES - -addUnitAlias('hour', 'h'); - -// PRIORITY -addUnitPriority('hour', 13); - -// PARSING - -function matchMeridiem (isStrict, locale) { - return locale._meridiemParse; -} - -addRegexToken('a', matchMeridiem); -addRegexToken('A', matchMeridiem); -addRegexToken('H', match1to2); -addRegexToken('h', match1to2); -addRegexToken('k', match1to2); -addRegexToken('HH', match1to2, match2); -addRegexToken('hh', match1to2, match2); -addRegexToken('kk', match1to2, match2); - -addRegexToken('hmm', match3to4); -addRegexToken('hmmss', match5to6); -addRegexToken('Hmm', match3to4); -addRegexToken('Hmmss', match5to6); - -addParseToken(['H', 'HH'], HOUR); -addParseToken(['k', 'kk'], function (input, array, config) { - var kInput = toInt(input); - array[HOUR] = kInput === 24 ? 0 : kInput; -}); -addParseToken(['a', 'A'], function (input, array, config) { - config._isPm = config._locale.isPM(input); - config._meridiem = input; -}); -addParseToken(['h', 'hh'], function (input, array, config) { - array[HOUR] = toInt(input); - getParsingFlags(config).bigHour = true; -}); -addParseToken('hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - getParsingFlags(config).bigHour = true; -}); -addParseToken('hmmss', function (input, array, config) { - var pos1 = input.length - 4; - var pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - getParsingFlags(config).bigHour = true; -}); -addParseToken('Hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); -}); -addParseToken('Hmmss', function (input, array, config) { - var pos1 = input.length - 4; - var pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); -}); - -// LOCALES - -function localeIsPM (input) { - // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays - // Using charAt should be more compatible. - return ((input + '').toLowerCase().charAt(0) === 'p'); -} - -var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i; -function localeMeridiem (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; - } else { - return isLower ? 'am' : 'AM'; - } -} - - -// MOMENTS - -// Setting the hour should keep the time, because the user explicitly -// specified which hour he wants. So trying to maintain the same hour (in -// a new timezone) makes sense. Adding/subtracting hours does not follow -// this rule. -var getSetHour = makeGetSet('Hours', true); - -// months -// week -// weekdays -// meridiem -var baseConfig = { - calendar: defaultCalendar, - longDateFormat: defaultLongDateFormat, - invalidDate: defaultInvalidDate, - ordinal: defaultOrdinal, - dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, - relativeTime: defaultRelativeTime, - - months: defaultLocaleMonths, - monthsShort: defaultLocaleMonthsShort, - - week: defaultLocaleWeek, - - weekdays: defaultLocaleWeekdays, - weekdaysMin: defaultLocaleWeekdaysMin, - weekdaysShort: defaultLocaleWeekdaysShort, - - meridiemParse: defaultLocaleMeridiemParse -}; -// internal storage for locale config files -var locales = {}; -var localeFamilies = {}; -var globalLocale; - -function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; -} - -// pick the locale from the array -// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each -// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root -function chooseLocale(names) { - var i = 0, j, next, locale, split; - - while (i < names.length) { - split = normalizeLocale(names[i]).split('-'); - j = split.length; - next = normalizeLocale(names[i + 1]); - next = next ? next.split('-') : null; - while (j > 0) { - locale = loadLocale(split.slice(0, j).join('-')); - if (locale) { - return locale; - } - if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { - //the next array item is better than a shallower substring of this one - break; - } - j--; - } - i++; - } - return null; -} - -function loadLocale(name) { - var oldLocale = null; - // TODO: Find a better way to register and load all the locales in Node - if (!locales[name] && (typeof module !== 'undefined') && - module && module.exports) { - try { - oldLocale = globalLocale._abbr; - var aliasedRequire = require; - __webpack_require__(347)("./" + name); - getSetGlobalLocale(oldLocale); - } catch (e) {} - } - return locales[name]; -} - -// This function will load locale and then set the global locale. If -// no arguments are passed in, it will simply return the current global -// locale key. -function getSetGlobalLocale (key, values) { - var data; - if (key) { - if (isUndefined(values)) { - data = getLocale(key); - } - else { - data = defineLocale(key, values); - } - - if (data) { - // moment.duration._locale = moment._locale = data; - globalLocale = data; - } - } - - return globalLocale._abbr; -} - -function defineLocale (name, config) { - if (config !== null) { - var parentConfig = baseConfig; - config.abbr = name; - if (locales[name] != null) { - deprecateSimple('defineLocaleOverride', - 'use moment.updateLocale(localeName, config) to change ' + - 'an existing locale. moment.defineLocale(localeName, ' + - 'config) should only be used for creating a new locale ' + - 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'); - parentConfig = locales[name]._config; - } else if (config.parentLocale != null) { - if (locales[config.parentLocale] != null) { - parentConfig = locales[config.parentLocale]._config; - } else { - if (!localeFamilies[config.parentLocale]) { - localeFamilies[config.parentLocale] = []; - } - localeFamilies[config.parentLocale].push({ - name: name, - config: config - }); - return null; - } - } - locales[name] = new Locale(mergeConfigs(parentConfig, config)); - - if (localeFamilies[name]) { - localeFamilies[name].forEach(function (x) { - defineLocale(x.name, x.config); - }); - } - - // backwards compat for now: also set the locale - // make sure we set the locale AFTER all child locales have been - // created, so we won't end up with the child locale set. - getSetGlobalLocale(name); - - - return locales[name]; - } else { - // useful for testing - delete locales[name]; - return null; - } -} - -function updateLocale(name, config) { - if (config != null) { - var locale, tmpLocale, parentConfig = baseConfig; - // MERGE - tmpLocale = loadLocale(name); - if (tmpLocale != null) { - parentConfig = tmpLocale._config; - } - config = mergeConfigs(parentConfig, config); - locale = new Locale(config); - locale.parentLocale = locales[name]; - locales[name] = locale; - - // backwards compat for now: also set the locale - getSetGlobalLocale(name); - } else { - // pass null for config to unupdate, useful for tests - if (locales[name] != null) { - if (locales[name].parentLocale != null) { - locales[name] = locales[name].parentLocale; - } else if (locales[name] != null) { - delete locales[name]; - } - } - } - return locales[name]; -} - -// returns locale data -function getLocale (key) { - var locale; - - if (key && key._locale && key._locale._abbr) { - key = key._locale._abbr; - } - - if (!key) { - return globalLocale; - } - - if (!isArray(key)) { - //short-circuit everything else - locale = loadLocale(key); - if (locale) { - return locale; - } - key = [key]; - } - - return chooseLocale(key); -} - -function listLocales() { - return keys(locales); -} - -function checkOverflow (m) { - var overflow; - var a = m._a; - - if (a && getParsingFlags(m).overflow === -2) { - overflow = - a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : - a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : - a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR : - a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : - a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : - a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : - -1; - - if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { - overflow = DATE; - } - if (getParsingFlags(m)._overflowWeeks && overflow === -1) { - overflow = WEEK; - } - if (getParsingFlags(m)._overflowWeekday && overflow === -1) { - overflow = WEEKDAY; - } - - getParsingFlags(m).overflow = overflow; - } - - return m; -} - -// Pick the first defined of two or three arguments. -function defaults(a, b, c) { - if (a != null) { - return a; - } - if (b != null) { - return b; - } - return c; -} - -function currentDateArray(config) { - // hooks is actually the exported moment object - var nowValue = new Date(hooks.now()); - if (config._useUTC) { - return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()]; - } - return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; -} - -// convert an array to a date. -// the array should mirror the parameters below -// note: all values past the year are optional and will default to the lowest possible value. -// [year, month, day , hour, minute, second, millisecond] -function configFromArray (config) { - var i, date, input = [], currentDate, expectedWeekday, yearToUse; - - if (config._d) { - return; - } - - currentDate = currentDateArray(config); - - //compute day of the year from weeks and weekdays - if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); - } - - //if the day of the year is set, figure out what it is - if (config._dayOfYear != null) { - yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); - - if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) { - getParsingFlags(config)._overflowDayOfYear = true; - } - - date = createUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); - } - - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything - for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; - } - - // Zero out whatever was not defaulted, including time - for (; i < 7; i++) { - config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; - } - - // Check for 24:00:00.000 - if (config._a[HOUR] === 24 && - config._a[MINUTE] === 0 && - config._a[SECOND] === 0 && - config._a[MILLISECOND] === 0) { - config._nextDay = true; - config._a[HOUR] = 0; - } - - config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input); - expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); - - // Apply timezone offset from input. The actual utcOffset can be changed - // with parseZone. - if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - } - - if (config._nextDay) { - config._a[HOUR] = 24; - } - - // check for mismatching day of week - if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) { - getParsingFlags(config).weekdayMismatch = true; - } -} - -function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; - - w = config._w; - if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; - - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year); - week = defaults(w.W, 1); - weekday = defaults(w.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } - } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; - - var curWeek = weekOfYear(createLocal(), dow, doy); - - weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); - - // Default to current week. - week = defaults(w.w, curWeek.week); - - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w.e != null) { - // local weekday -- counting starts from begining of week - weekday = w.e + dow; - if (w.e < 0 || w.e > 6) { - weekdayOverflow = true; - } - } else { - // default to begining of week - weekday = dow; - } - } - if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config)._overflowWeeks = true; - } else if (weekdayOverflow != null) { - getParsingFlags(config)._overflowWeekday = true; - } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; - } -} - -// iso 8601 regex -// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) -var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/; -var basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/; - -var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/; - -var isoDates = [ - ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], - ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], - ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], - ['GGGG-[W]WW', /\d{4}-W\d\d/, false], - ['YYYY-DDD', /\d{4}-\d{3}/], - ['YYYY-MM', /\d{4}-\d\d/, false], - ['YYYYYYMMDD', /[+-]\d{10}/], - ['YYYYMMDD', /\d{8}/], - // YYYYMM is NOT allowed by the standard - ['GGGG[W]WWE', /\d{4}W\d{3}/], - ['GGGG[W]WW', /\d{4}W\d{2}/, false], - ['YYYYDDD', /\d{7}/] -]; - -// iso time formats and regexes -var isoTimes = [ - ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], - ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], - ['HH:mm:ss', /\d\d:\d\d:\d\d/], - ['HH:mm', /\d\d:\d\d/], - ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], - ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], - ['HHmmss', /\d\d\d\d\d\d/], - ['HHmm', /\d\d\d\d/], - ['HH', /\d\d/] -]; - -var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i; - -// date from iso format -function configFromISO(config) { - var i, l, - string = config._i, - match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), - allowTime, dateFormat, timeFormat, tzFormat; - - if (match) { - getParsingFlags(config).iso = true; - - for (i = 0, l = isoDates.length; i < l; i++) { - if (isoDates[i][1].exec(match[1])) { - dateFormat = isoDates[i][0]; - allowTime = isoDates[i][2] !== false; - break; - } - } - if (dateFormat == null) { - config._isValid = false; - return; - } - if (match[3]) { - for (i = 0, l = isoTimes.length; i < l; i++) { - if (isoTimes[i][1].exec(match[3])) { - // match[2] should be 'T' or space - timeFormat = (match[2] || ' ') + isoTimes[i][0]; - break; - } - } - if (timeFormat == null) { - config._isValid = false; - return; - } - } - if (!allowTime && timeFormat != null) { - config._isValid = false; - return; - } - if (match[4]) { - if (tzRegex.exec(match[4])) { - tzFormat = 'Z'; - } else { - config._isValid = false; - return; - } - } - config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); - configFromStringAndFormat(config); - } else { - config._isValid = false; - } -} - -// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 -var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/; - -function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { - var result = [ - untruncateYear(yearStr), - defaultLocaleMonthsShort.indexOf(monthStr), - parseInt(dayStr, 10), - parseInt(hourStr, 10), - parseInt(minuteStr, 10) - ]; - - if (secondStr) { - result.push(parseInt(secondStr, 10)); - } - - return result; -} - -function untruncateYear(yearStr) { - var year = parseInt(yearStr, 10); - if (year <= 49) { - return 2000 + year; - } else if (year <= 999) { - return 1900 + year; - } - return year; -} - -function preprocessRFC2822(s) { - // Remove comments and folding whitespace and replace multiple-spaces with a single space - return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim(); -} - -function checkWeekday(weekdayStr, parsedInput, config) { - if (weekdayStr) { - // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check. - var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), - weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay(); - if (weekdayProvided !== weekdayActual) { - getParsingFlags(config).weekdayMismatch = true; - config._isValid = false; - return false; - } - } - return true; -} - -var obsOffsets = { - UT: 0, - GMT: 0, - EDT: -4 * 60, - EST: -5 * 60, - CDT: -5 * 60, - CST: -6 * 60, - MDT: -6 * 60, - MST: -7 * 60, - PDT: -7 * 60, - PST: -8 * 60 -}; - -function calculateOffset(obsOffset, militaryOffset, numOffset) { - if (obsOffset) { - return obsOffsets[obsOffset]; - } else if (militaryOffset) { - // the only allowed military tz is Z - return 0; - } else { - var hm = parseInt(numOffset, 10); - var m = hm % 100, h = (hm - m) / 100; - return h * 60 + m; - } -} - -// date and time from ref 2822 format -function configFromRFC2822(config) { - var match = rfc2822.exec(preprocessRFC2822(config._i)); - if (match) { - var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]); - if (!checkWeekday(match[1], parsedArray, config)) { - return; - } - - config._a = parsedArray; - config._tzm = calculateOffset(match[8], match[9], match[10]); - - config._d = createUTCDate.apply(null, config._a); - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - - getParsingFlags(config).rfc2822 = true; - } else { - config._isValid = false; - } -} - -// date from iso format or fallback -function configFromString(config) { - var matched = aspNetJsonRegex.exec(config._i); - - if (matched !== null) { - config._d = new Date(+matched[1]); - return; - } - - configFromISO(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } - - configFromRFC2822(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } - - // Final attempt, use Input Fallback - hooks.createFromInputFallback(config); -} - -hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + - 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + - 'discouraged and will be removed in an upcoming major release. Please refer to ' + - 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', - function (config) { - config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); - } -); - -// constant that refers to the ISO standard -hooks.ISO_8601 = function () {}; - -// constant that refers to the RFC 2822 form -hooks.RFC_2822 = function () {}; - -// date from string and format string -function configFromStringAndFormat(config) { - // TODO: Move this to another part of the creation flow to prevent circular deps - if (config._f === hooks.ISO_8601) { - configFromISO(config); - return; - } - if (config._f === hooks.RFC_2822) { - configFromRFC2822(config); - return; - } - config._a = []; - getParsingFlags(config).empty = true; - - // This array is used to make a Date, either with `new Date` or `Date.UTC` - var string = '' + config._i, - i, parsedInput, tokens, token, skipped, - stringLength = string.length, - totalParsedInputLength = 0; - - tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; - - for (i = 0; i < tokens.length; i++) { - token = tokens[i]; - parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; - // console.log('token', token, 'parsedInput', parsedInput, - // 'regex', getParseRegexForToken(token, config)); - if (parsedInput) { - skipped = string.substr(0, string.indexOf(parsedInput)); - if (skipped.length > 0) { - getParsingFlags(config).unusedInput.push(skipped); - } - string = string.slice(string.indexOf(parsedInput) + parsedInput.length); - totalParsedInputLength += parsedInput.length; - } - // don't parse if it's not a known token - if (formatTokenFunctions[token]) { - if (parsedInput) { - getParsingFlags(config).empty = false; - } - else { - getParsingFlags(config).unusedTokens.push(token); - } - addTimeToArrayFromToken(token, parsedInput, config); - } - else if (config._strict && !parsedInput) { - getParsingFlags(config).unusedTokens.push(token); - } - } - - // add remaining unparsed input length to the string - getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength; - if (string.length > 0) { - getParsingFlags(config).unusedInput.push(string); - } - - // clear _12h flag if hour is <= 12 - if (config._a[HOUR] <= 12 && - getParsingFlags(config).bigHour === true && - config._a[HOUR] > 0) { - getParsingFlags(config).bigHour = undefined; - } - - getParsingFlags(config).parsedDateParts = config._a.slice(0); - getParsingFlags(config).meridiem = config._meridiem; - // handle meridiem - config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem); - - configFromArray(config); - checkOverflow(config); -} - - -function meridiemFixWrap (locale, hour, meridiem) { - var isPm; - - if (meridiem == null) { - // nothing to do - return hour; - } - if (locale.meridiemHour != null) { - return locale.meridiemHour(hour, meridiem); - } else if (locale.isPM != null) { - // Fallback - isPm = locale.isPM(meridiem); - if (isPm && hour < 12) { - hour += 12; - } - if (!isPm && hour === 12) { - hour = 0; - } - return hour; - } else { - // this is not supposed to happen - return hour; - } -} - -// date from string and array of format strings -function configFromStringAndArray(config) { - var tempConfig, - bestMoment, - - scoreToBeat, - i, - currentScore; - - if (config._f.length === 0) { - getParsingFlags(config).invalidFormat = true; - config._d = new Date(NaN); - return; - } - - for (i = 0; i < config._f.length; i++) { - currentScore = 0; - tempConfig = copyConfig({}, config); - if (config._useUTC != null) { - tempConfig._useUTC = config._useUTC; - } - tempConfig._f = config._f[i]; - configFromStringAndFormat(tempConfig); - - if (!isValid(tempConfig)) { - continue; - } - - // if there is any input that was not parsed add a penalty for that format - currentScore += getParsingFlags(tempConfig).charsLeftOver; - - //or tokens - currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; - - getParsingFlags(tempConfig).score = currentScore; - - if (scoreToBeat == null || currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - } - } - - extend(config, bestMoment || tempConfig); -} - -function configFromObject(config) { - if (config._d) { - return; - } - - var i = normalizeObjectUnits(config._i); - config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { - return obj && parseInt(obj, 10); - }); - - configFromArray(config); -} - -function createFromConfig (config) { - var res = new Moment(checkOverflow(prepareConfig(config))); - if (res._nextDay) { - // Adding is smart enough around DST - res.add(1, 'd'); - res._nextDay = undefined; - } - - return res; -} - -function prepareConfig (config) { - var input = config._i, - format = config._f; - - config._locale = config._locale || getLocale(config._l); - - if (input === null || (format === undefined && input === '')) { - return createInvalid({nullInput: true}); - } - - if (typeof input === 'string') { - config._i = input = config._locale.preparse(input); - } - - if (isMoment(input)) { - return new Moment(checkOverflow(input)); - } else if (isDate(input)) { - config._d = input; - } else if (isArray(format)) { - configFromStringAndArray(config); - } else if (format) { - configFromStringAndFormat(config); - } else { - configFromInput(config); - } - - if (!isValid(config)) { - config._d = null; - } - - return config; -} - -function configFromInput(config) { - var input = config._i; - if (isUndefined(input)) { - config._d = new Date(hooks.now()); - } else if (isDate(input)) { - config._d = new Date(input.valueOf()); - } else if (typeof input === 'string') { - configFromString(config); - } else if (isArray(input)) { - config._a = map(input.slice(0), function (obj) { - return parseInt(obj, 10); - }); - configFromArray(config); - } else if (isObject(input)) { - configFromObject(config); - } else if (isNumber(input)) { - // from milliseconds - config._d = new Date(input); - } else { - hooks.createFromInputFallback(config); - } -} - -function createLocalOrUTC (input, format, locale, strict, isUTC) { - var c = {}; - - if (locale === true || locale === false) { - strict = locale; - locale = undefined; - } - - if ((isObject(input) && isObjectEmpty(input)) || - (isArray(input) && input.length === 0)) { - input = undefined; - } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 - c._isAMomentObject = true; - c._useUTC = c._isUTC = isUTC; - c._l = locale; - c._i = input; - c._f = format; - c._strict = strict; - - return createFromConfig(c); -} - -function createLocal (input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, false); -} - -var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other < this ? this : other; - } else { - return createInvalid(); - } - } -); - -var prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other > this ? this : other; - } else { - return createInvalid(); - } - } -); - -// Pick a moment m from moments so that m[fn](other) is true for all -// other. This relies on the function fn to be transitive. -// -// moments should either be an array of moment objects or an array, whose -// first element is an array of moment objects. -function pickBy(fn, moments) { - var res, i; - if (moments.length === 1 && isArray(moments[0])) { - moments = moments[0]; - } - if (!moments.length) { - return createLocal(); - } - res = moments[0]; - for (i = 1; i < moments.length; ++i) { - if (!moments[i].isValid() || moments[i][fn](res)) { - res = moments[i]; - } - } - return res; -} - -// TODO: Use [].sort instead? -function min () { - var args = [].slice.call(arguments, 0); - - return pickBy('isBefore', args); -} - -function max () { - var args = [].slice.call(arguments, 0); - - return pickBy('isAfter', args); -} - -var now = function () { - return Date.now ? Date.now() : +(new Date()); -}; - -var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond']; - -function isDurationValid(m) { - for (var key in m) { - if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) { - return false; - } - } - - var unitHasDecimal = false; - for (var i = 0; i < ordering.length; ++i) { - if (m[ordering[i]]) { - if (unitHasDecimal) { - return false; // only allow non-integers for smallest unit - } - if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { - unitHasDecimal = true; - } - } - } - - return true; -} - -function isValid$1() { - return this._isValid; -} - -function createInvalid$1() { - return createDuration(NaN); -} - -function Duration (duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; - - this._isValid = isDurationValid(normalizedInput); - - // representation for dateAddRemove - this._milliseconds = +milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = +days + - weeks * 7; - // It is impossible to translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = +months + - quarters * 3 + - years * 12; - - this._data = {}; - - this._locale = getLocale(); - - this._bubble(); -} - -function isDuration (obj) { - return obj instanceof Duration; -} - -function absRound (number) { - if (number < 0) { - return Math.round(-1 * number) * -1; - } else { - return Math.round(number); - } -} - -// FORMATTING - -function offset (token, separator) { - addFormatToken(token, 0, 0, function () { - var offset = this.utcOffset(); - var sign = '+'; - if (offset < 0) { - offset = -offset; - sign = '-'; - } - return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2); - }); -} - -offset('Z', ':'); -offset('ZZ', ''); - -// PARSING - -addRegexToken('Z', matchShortOffset); -addRegexToken('ZZ', matchShortOffset); -addParseToken(['Z', 'ZZ'], function (input, array, config) { - config._useUTC = true; - config._tzm = offsetFromString(matchShortOffset, input); -}); - -// HELPERS - -// timezone chunker -// '+10:00' > ['10', '00'] -// '-1530' > ['-15', '30'] -var chunkOffset = /([\+\-]|\d\d)/gi; - -function offsetFromString(matcher, string) { - var matches = (string || '').match(matcher); - - if (matches === null) { - return null; - } - - var chunk = matches[matches.length - 1] || []; - var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; - var minutes = +(parts[1] * 60) + toInt(parts[2]); - - return minutes === 0 ? - 0 : - parts[0] === '+' ? minutes : -minutes; -} - -// Return a moment from input, that is local/utc/zone equivalent to model. -function cloneWithOffset(input, model) { - var res, diff; - if (model._isUTC) { - res = model.clone(); - diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); - // Use low-level api, because this fn is low-level api. - res._d.setTime(res._d.valueOf() + diff); - hooks.updateOffset(res, false); - return res; - } else { - return createLocal(input).local(); - } -} - -function getDateOffset (m) { - // On Firefox.24 Date#getTimezoneOffset returns a floating point. - // https://github.com/moment/moment/pull/1871 - return -Math.round(m._d.getTimezoneOffset() / 15) * 15; -} - -// HOOKS - -// This function will be called whenever a moment is mutated. -// It is intended to keep the offset in sync with the timezone. -hooks.updateOffset = function () {}; - -// MOMENTS - -// keepLocalTime = true means only change the timezone, without -// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> -// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset -// +0200, so we adjust the time as needed, to be valid. -// -// Keeping the time actually adds/subtracts (one hour) -// from the actual represented time. That is why we call updateOffset -// a second time. In case it wants us to change the offset again -// _changeInProgress == true case, then we have to adjust, because -// there is no such time in the given timezone. -function getSetOffset (input, keepLocalTime, keepMinutes) { - var offset = this._offset || 0, - localAdjust; - if (!this.isValid()) { - return input != null ? this : NaN; - } - if (input != null) { - if (typeof input === 'string') { - input = offsetFromString(matchShortOffset, input); - if (input === null) { - return this; - } - } else if (Math.abs(input) < 16 && !keepMinutes) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = getDateOffset(this); - } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.add(localAdjust, 'm'); - } - if (offset !== input) { - if (!keepLocalTime || this._changeInProgress) { - addSubtract(this, createDuration(input - offset, 'm'), 1, false); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - hooks.updateOffset(this, true); - this._changeInProgress = null; - } - } - return this; - } else { - return this._isUTC ? offset : getDateOffset(this); - } -} - -function getSetZone (input, keepLocalTime) { - if (input != null) { - if (typeof input !== 'string') { - input = -input; - } - - this.utcOffset(input, keepLocalTime); - - return this; - } else { - return -this.utcOffset(); - } -} - -function setOffsetToUTC (keepLocalTime) { - return this.utcOffset(0, keepLocalTime); -} - -function setOffsetToLocal (keepLocalTime) { - if (this._isUTC) { - this.utcOffset(0, keepLocalTime); - this._isUTC = false; - - if (keepLocalTime) { - this.subtract(getDateOffset(this), 'm'); - } - } - return this; -} - -function setOffsetToParsedOffset () { - if (this._tzm != null) { - this.utcOffset(this._tzm, false, true); - } else if (typeof this._i === 'string') { - var tZone = offsetFromString(matchOffset, this._i); - if (tZone != null) { - this.utcOffset(tZone); - } - else { - this.utcOffset(0, true); - } - } - return this; -} - -function hasAlignedHourOffset (input) { - if (!this.isValid()) { - return false; - } - input = input ? createLocal(input).utcOffset() : 0; - - return (this.utcOffset() - input) % 60 === 0; -} - -function isDaylightSavingTime () { - return ( - this.utcOffset() > this.clone().month(0).utcOffset() || - this.utcOffset() > this.clone().month(5).utcOffset() - ); -} - -function isDaylightSavingTimeShifted () { - if (!isUndefined(this._isDSTShifted)) { - return this._isDSTShifted; - } - - var c = {}; - - copyConfig(c, this); - c = prepareConfig(c); - - if (c._a) { - var other = c._isUTC ? createUTC(c._a) : createLocal(c._a); - this._isDSTShifted = this.isValid() && - compareArrays(c._a, other.toArray()) > 0; - } else { - this._isDSTShifted = false; - } - - return this._isDSTShifted; -} - -function isLocal () { - return this.isValid() ? !this._isUTC : false; -} - -function isUtcOffset () { - return this.isValid() ? this._isUTC : false; -} - -function isUtc () { - return this.isValid() ? this._isUTC && this._offset === 0 : false; -} - -// ASP.NET json date format regex -var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/; - -// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html -// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere -// and further modified to allow for strings containing both week and day -var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - -function createDuration (input, key) { - var duration = input, - // matching against regexp is expensive, do it on demand - match = null, - sign, - ret, - diffRes; - - if (isDuration(input)) { - duration = { - ms : input._milliseconds, - d : input._days, - M : input._months - }; - } else if (isNumber(input)) { - duration = {}; - if (key) { - duration[key] = input; - } else { - duration.milliseconds = input; - } - } else if (!!(match = aspNetRegex.exec(input))) { - sign = (match[1] === '-') ? -1 : 1; - duration = { - y : 0, - d : toInt(match[DATE]) * sign, - h : toInt(match[HOUR]) * sign, - m : toInt(match[MINUTE]) * sign, - s : toInt(match[SECOND]) * sign, - ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match - }; - } else if (!!(match = isoRegex.exec(input))) { - sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1; - duration = { - y : parseIso(match[2], sign), - M : parseIso(match[3], sign), - w : parseIso(match[4], sign), - d : parseIso(match[5], sign), - h : parseIso(match[6], sign), - m : parseIso(match[7], sign), - s : parseIso(match[8], sign) - }; - } else if (duration == null) {// checks for null or undefined - duration = {}; - } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) { - diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to)); - - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; - } - - ret = new Duration(duration); - - if (isDuration(input) && hasOwnProp(input, '_locale')) { - ret._locale = input._locale; - } - - return ret; -} - -createDuration.fn = Duration.prototype; -createDuration.invalid = createInvalid$1; - -function parseIso (inp, sign) { - // We'd normally use ~~inp for this, but unfortunately it also - // converts floats to ints. - // inp may be undefined, so careful calling replace on it. - var res = inp && parseFloat(inp.replace(',', '.')); - // apply sign while we're at it - return (isNaN(res) ? 0 : res) * sign; -} - -function positiveMomentsDifference(base, other) { - var res = {milliseconds: 0, months: 0}; - - res.months = other.month() - base.month() + - (other.year() - base.year()) * 12; - if (base.clone().add(res.months, 'M').isAfter(other)) { - --res.months; - } - - res.milliseconds = +other - +(base.clone().add(res.months, 'M')); - - return res; -} - -function momentsDifference(base, other) { - var res; - if (!(base.isValid() && other.isValid())) { - return {milliseconds: 0, months: 0}; - } - - other = cloneWithOffset(other, base); - if (base.isBefore(other)) { - res = positiveMomentsDifference(base, other); - } else { - res = positiveMomentsDifference(other, base); - res.milliseconds = -res.milliseconds; - res.months = -res.months; - } - - return res; -} - -// TODO: remove 'name' arg after deprecation is removed -function createAdder(direction, name) { - return function (val, period) { - var dur, tmp; - //invert the arguments, but complain about it - if (period !== null && !isNaN(+period)) { - deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + - 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'); - tmp = val; val = period; period = tmp; - } - - val = typeof val === 'string' ? +val : val; - dur = createDuration(val, period); - addSubtract(this, dur, direction); - return this; - }; -} - -function addSubtract (mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = absRound(duration._days), - months = absRound(duration._months); - - if (!mom.isValid()) { - // No op - return; - } - - updateOffset = updateOffset == null ? true : updateOffset; - - if (months) { - setMonth(mom, get(mom, 'Month') + months * isAdding); - } - if (days) { - set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); - } - if (milliseconds) { - mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); - } - if (updateOffset) { - hooks.updateOffset(mom, days || months); - } -} - -var add = createAdder(1, 'add'); -var subtract = createAdder(-1, 'subtract'); - -function getCalendarFormat(myMoment, now) { - var diff = myMoment.diff(now, 'days', true); - return diff < -6 ? 'sameElse' : - diff < -1 ? 'lastWeek' : - diff < 0 ? 'lastDay' : - diff < 1 ? 'sameDay' : - diff < 2 ? 'nextDay' : - diff < 7 ? 'nextWeek' : 'sameElse'; -} - -function calendar$1 (time, formats) { - // We want to compare the start of today, vs this. - // Getting start-of-today depends on whether we're local/utc/offset or not. - var now = time || createLocal(), - sod = cloneWithOffset(now, this).startOf('day'), - format = hooks.calendarFormat(this, sod) || 'sameElse'; - - var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]); - - return this.format(output || this.localeData().calendar(format, this, createLocal(now))); -} - -function clone () { - return new Moment(this); -} - -function isAfter (input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); - if (units === 'millisecond') { - return this.valueOf() > localInput.valueOf(); - } else { - return localInput.valueOf() < this.clone().startOf(units).valueOf(); - } -} - -function isBefore (input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); - if (units === 'millisecond') { - return this.valueOf() < localInput.valueOf(); - } else { - return this.clone().endOf(units).valueOf() < localInput.valueOf(); - } -} - -function isBetween (from, to, units, inclusivity) { - inclusivity = inclusivity || '()'; - return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) && - (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units)); -} - -function isSame (input, units) { - var localInput = isMoment(input) ? input : createLocal(input), - inputMs; - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units || 'millisecond'); - if (units === 'millisecond') { - return this.valueOf() === localInput.valueOf(); - } else { - inputMs = localInput.valueOf(); - return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf(); - } -} - -function isSameOrAfter (input, units) { - return this.isSame(input, units) || this.isAfter(input,units); -} - -function isSameOrBefore (input, units) { - return this.isSame(input, units) || this.isBefore(input,units); -} - -function diff (input, units, asFloat) { - var that, - zoneDelta, - delta, output; - - if (!this.isValid()) { - return NaN; - } - - that = cloneWithOffset(input, this); - - if (!that.isValid()) { - return NaN; - } - - zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; - - units = normalizeUnits(units); - - switch (units) { - case 'year': output = monthDiff(this, that) / 12; break; - case 'month': output = monthDiff(this, that); break; - case 'quarter': output = monthDiff(this, that) / 3; break; - case 'second': output = (this - that) / 1e3; break; // 1000 - case 'minute': output = (this - that) / 6e4; break; // 1000 * 60 - case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60 - case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst - case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst - default: output = this - that; - } - - return asFloat ? output : absFloor(output); -} - -function monthDiff (a, b) { - // difference in months - var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()), - // b is in (anchor - 1 month, anchor + 1 month) - anchor = a.clone().add(wholeMonthDiff, 'months'), - anchor2, adjust; - - if (b - anchor < 0) { - anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor - anchor2); - } else { - anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor2 - anchor); - } - - //check for negative zero, return zero if negative zero - return -(wholeMonthDiff + adjust) || 0; -} - -hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; -hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; - -function toString () { - return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); -} - -function toISOString(keepOffset) { - if (!this.isValid()) { - return null; - } - var utc = keepOffset !== true; - var m = utc ? this.clone().utc() : this; - if (m.year() < 0 || m.year() > 9999) { - return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'); - } - if (isFunction(Date.prototype.toISOString)) { - // native implementation is ~50x faster, use it when we can - if (utc) { - return this.toDate().toISOString(); - } else { - return new Date(this._d.valueOf()).toISOString().replace('Z', formatMoment(m, 'Z')); - } - } - return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'); -} - -/** - * Return a human readable representation of a moment that can - * also be evaluated to get a new moment which is the same - * - * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects - */ -function inspect () { - if (!this.isValid()) { - return 'moment.invalid(/* ' + this._i + ' */)'; - } - var func = 'moment'; - var zone = ''; - if (!this.isLocal()) { - func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; - zone = 'Z'; - } - var prefix = '[' + func + '("]'; - var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY'; - var datetime = '-MM-DD[T]HH:mm:ss.SSS'; - var suffix = zone + '[")]'; - - return this.format(prefix + year + datetime + suffix); -} - -function format (inputString) { - if (!inputString) { - inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; - } - var output = formatMoment(this, inputString); - return this.localeData().postformat(output); -} - -function from (time, withoutSuffix) { - if (this.isValid() && - ((isMoment(time) && time.isValid()) || - createLocal(time).isValid())) { - return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } -} - -function fromNow (withoutSuffix) { - return this.from(createLocal(), withoutSuffix); -} - -function to (time, withoutSuffix) { - if (this.isValid() && - ((isMoment(time) && time.isValid()) || - createLocal(time).isValid())) { - return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } -} - -function toNow (withoutSuffix) { - return this.to(createLocal(), withoutSuffix); -} - -// If passed a locale key, it will set the locale for this -// instance. Otherwise, it will return the locale configuration -// variables for this instance. -function locale (key) { - var newLocaleData; - - if (key === undefined) { - return this._locale._abbr; - } else { - newLocaleData = getLocale(key); - if (newLocaleData != null) { - this._locale = newLocaleData; - } - return this; - } -} - -var lang = deprecate( - 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', - function (key) { - if (key === undefined) { - return this.localeData(); - } else { - return this.locale(key); - } - } -); - -function localeData () { - return this._locale; -} - -function startOf (units) { - units = normalizeUnits(units); - // the following switch intentionally omits break keywords - // to utilize falling through the cases. - switch (units) { - case 'year': - this.month(0); - /* falls through */ - case 'quarter': - case 'month': - this.date(1); - /* falls through */ - case 'week': - case 'isoWeek': - case 'day': - case 'date': - this.hours(0); - /* falls through */ - case 'hour': - this.minutes(0); - /* falls through */ - case 'minute': - this.seconds(0); - /* falls through */ - case 'second': - this.milliseconds(0); - } - - // weeks are a special case - if (units === 'week') { - this.weekday(0); - } - if (units === 'isoWeek') { - this.isoWeekday(1); - } - - // quarters are also special - if (units === 'quarter') { - this.month(Math.floor(this.month() / 3) * 3); - } - - return this; -} - -function endOf (units) { - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond') { - return this; - } - - // 'date' is an alias for 'day', so it should be considered as such. - if (units === 'date') { - units = 'day'; - } - - return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms'); -} - -function valueOf () { - return this._d.valueOf() - ((this._offset || 0) * 60000); -} - -function unix () { - return Math.floor(this.valueOf() / 1000); -} - -function toDate () { - return new Date(this.valueOf()); -} - -function toArray () { - var m = this; - return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()]; -} - -function toObject () { - var m = this; - return { - years: m.year(), - months: m.month(), - date: m.date(), - hours: m.hours(), - minutes: m.minutes(), - seconds: m.seconds(), - milliseconds: m.milliseconds() - }; -} - -function toJSON () { - // new Date(NaN).toJSON() === null - return this.isValid() ? this.toISOString() : null; -} - -function isValid$2 () { - return isValid(this); -} - -function parsingFlags () { - return extend({}, getParsingFlags(this)); -} - -function invalidAt () { - return getParsingFlags(this).overflow; -} - -function creationData() { - return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict - }; -} - -// FORMATTING - -addFormatToken(0, ['gg', 2], 0, function () { - return this.weekYear() % 100; -}); - -addFormatToken(0, ['GG', 2], 0, function () { - return this.isoWeekYear() % 100; -}); - -function addWeekYearFormatToken (token, getter) { - addFormatToken(0, [token, token.length], 0, getter); -} - -addWeekYearFormatToken('gggg', 'weekYear'); -addWeekYearFormatToken('ggggg', 'weekYear'); -addWeekYearFormatToken('GGGG', 'isoWeekYear'); -addWeekYearFormatToken('GGGGG', 'isoWeekYear'); - -// ALIASES - -addUnitAlias('weekYear', 'gg'); -addUnitAlias('isoWeekYear', 'GG'); - -// PRIORITY - -addUnitPriority('weekYear', 1); -addUnitPriority('isoWeekYear', 1); - - -// PARSING - -addRegexToken('G', matchSigned); -addRegexToken('g', matchSigned); -addRegexToken('GG', match1to2, match2); -addRegexToken('gg', match1to2, match2); -addRegexToken('GGGG', match1to4, match4); -addRegexToken('gggg', match1to4, match4); -addRegexToken('GGGGG', match1to6, match6); -addRegexToken('ggggg', match1to6, match6); - -addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) { - week[token.substr(0, 2)] = toInt(input); -}); - -addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { - week[token] = hooks.parseTwoDigitYear(input); -}); - -// MOMENTS - -function getSetWeekYear (input) { - return getSetWeekYearHelper.call(this, - input, - this.week(), - this.weekday(), - this.localeData()._week.dow, - this.localeData()._week.doy); -} - -function getSetISOWeekYear (input) { - return getSetWeekYearHelper.call(this, - input, this.isoWeek(), this.isoWeekday(), 1, 4); -} - -function getISOWeeksInYear () { - return weeksInYear(this.year(), 1, 4); -} - -function getWeeksInYear () { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); -} - -function getSetWeekYearHelper(input, week, weekday, dow, doy) { - var weeksTarget; - if (input == null) { - return weekOfYear(this, dow, doy).year; - } else { - weeksTarget = weeksInYear(input, dow, doy); - if (week > weeksTarget) { - week = weeksTarget; - } - return setWeekAll.call(this, input, week, weekday, dow, doy); - } -} - -function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), - date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - - this.year(date.getUTCFullYear()); - this.month(date.getUTCMonth()); - this.date(date.getUTCDate()); - return this; -} - -// FORMATTING - -addFormatToken('Q', 0, 'Qo', 'quarter'); - -// ALIASES - -addUnitAlias('quarter', 'Q'); - -// PRIORITY - -addUnitPriority('quarter', 7); - -// PARSING - -addRegexToken('Q', match1); -addParseToken('Q', function (input, array) { - array[MONTH] = (toInt(input) - 1) * 3; -}); - -// MOMENTS - -function getSetQuarter (input) { - return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); -} - -// FORMATTING - -addFormatToken('D', ['DD', 2], 'Do', 'date'); - -// ALIASES - -addUnitAlias('date', 'D'); - -// PRIOROITY -addUnitPriority('date', 9); - -// PARSING - -addRegexToken('D', match1to2); -addRegexToken('DD', match1to2, match2); -addRegexToken('Do', function (isStrict, locale) { - // TODO: Remove "ordinalParse" fallback in next major release. - return isStrict ? - (locale._dayOfMonthOrdinalParse || locale._ordinalParse) : - locale._dayOfMonthOrdinalParseLenient; -}); - -addParseToken(['D', 'DD'], DATE); -addParseToken('Do', function (input, array) { - array[DATE] = toInt(input.match(match1to2)[0]); -}); - -// MOMENTS - -var getSetDayOfMonth = makeGetSet('Date', true); - -// FORMATTING - -addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); - -// ALIASES - -addUnitAlias('dayOfYear', 'DDD'); - -// PRIORITY -addUnitPriority('dayOfYear', 4); - -// PARSING - -addRegexToken('DDD', match1to3); -addRegexToken('DDDD', match3); -addParseToken(['DDD', 'DDDD'], function (input, array, config) { - config._dayOfYear = toInt(input); -}); - -// HELPERS - -// MOMENTS - -function getSetDayOfYear (input) { - var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1; - return input == null ? dayOfYear : this.add((input - dayOfYear), 'd'); -} - -// FORMATTING - -addFormatToken('m', ['mm', 2], 0, 'minute'); - -// ALIASES - -addUnitAlias('minute', 'm'); - -// PRIORITY - -addUnitPriority('minute', 14); - -// PARSING - -addRegexToken('m', match1to2); -addRegexToken('mm', match1to2, match2); -addParseToken(['m', 'mm'], MINUTE); - -// MOMENTS - -var getSetMinute = makeGetSet('Minutes', false); - -// FORMATTING - -addFormatToken('s', ['ss', 2], 0, 'second'); - -// ALIASES - -addUnitAlias('second', 's'); - -// PRIORITY - -addUnitPriority('second', 15); - -// PARSING - -addRegexToken('s', match1to2); -addRegexToken('ss', match1to2, match2); -addParseToken(['s', 'ss'], SECOND); - -// MOMENTS - -var getSetSecond = makeGetSet('Seconds', false); - -// FORMATTING - -addFormatToken('S', 0, 0, function () { - return ~~(this.millisecond() / 100); -}); - -addFormatToken(0, ['SS', 2], 0, function () { - return ~~(this.millisecond() / 10); -}); - -addFormatToken(0, ['SSS', 3], 0, 'millisecond'); -addFormatToken(0, ['SSSS', 4], 0, function () { - return this.millisecond() * 10; -}); -addFormatToken(0, ['SSSSS', 5], 0, function () { - return this.millisecond() * 100; -}); -addFormatToken(0, ['SSSSSS', 6], 0, function () { - return this.millisecond() * 1000; -}); -addFormatToken(0, ['SSSSSSS', 7], 0, function () { - return this.millisecond() * 10000; -}); -addFormatToken(0, ['SSSSSSSS', 8], 0, function () { - return this.millisecond() * 100000; -}); -addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { - return this.millisecond() * 1000000; -}); - - -// ALIASES - -addUnitAlias('millisecond', 'ms'); - -// PRIORITY - -addUnitPriority('millisecond', 16); - -// PARSING - -addRegexToken('S', match1to3, match1); -addRegexToken('SS', match1to3, match2); -addRegexToken('SSS', match1to3, match3); - -var token; -for (token = 'SSSS'; token.length <= 9; token += 'S') { - addRegexToken(token, matchUnsigned); -} - -function parseMs(input, array) { - array[MILLISECOND] = toInt(('0.' + input) * 1000); -} - -for (token = 'S'; token.length <= 9; token += 'S') { - addParseToken(token, parseMs); -} -// MOMENTS - -var getSetMillisecond = makeGetSet('Milliseconds', false); - -// FORMATTING - -addFormatToken('z', 0, 0, 'zoneAbbr'); -addFormatToken('zz', 0, 0, 'zoneName'); - -// MOMENTS - -function getZoneAbbr () { - return this._isUTC ? 'UTC' : ''; -} - -function getZoneName () { - return this._isUTC ? 'Coordinated Universal Time' : ''; -} - -var proto = Moment.prototype; - -proto.add = add; -proto.calendar = calendar$1; -proto.clone = clone; -proto.diff = diff; -proto.endOf = endOf; -proto.format = format; -proto.from = from; -proto.fromNow = fromNow; -proto.to = to; -proto.toNow = toNow; -proto.get = stringGet; -proto.invalidAt = invalidAt; -proto.isAfter = isAfter; -proto.isBefore = isBefore; -proto.isBetween = isBetween; -proto.isSame = isSame; -proto.isSameOrAfter = isSameOrAfter; -proto.isSameOrBefore = isSameOrBefore; -proto.isValid = isValid$2; -proto.lang = lang; -proto.locale = locale; -proto.localeData = localeData; -proto.max = prototypeMax; -proto.min = prototypeMin; -proto.parsingFlags = parsingFlags; -proto.set = stringSet; -proto.startOf = startOf; -proto.subtract = subtract; -proto.toArray = toArray; -proto.toObject = toObject; -proto.toDate = toDate; -proto.toISOString = toISOString; -proto.inspect = inspect; -proto.toJSON = toJSON; -proto.toString = toString; -proto.unix = unix; -proto.valueOf = valueOf; -proto.creationData = creationData; - -// Year -proto.year = getSetYear; -proto.isLeapYear = getIsLeapYear; - -// Week Year -proto.weekYear = getSetWeekYear; -proto.isoWeekYear = getSetISOWeekYear; - -// Quarter -proto.quarter = proto.quarters = getSetQuarter; - -// Month -proto.month = getSetMonth; -proto.daysInMonth = getDaysInMonth; - -// Week -proto.week = proto.weeks = getSetWeek; -proto.isoWeek = proto.isoWeeks = getSetISOWeek; -proto.weeksInYear = getWeeksInYear; -proto.isoWeeksInYear = getISOWeeksInYear; - -// Day -proto.date = getSetDayOfMonth; -proto.day = proto.days = getSetDayOfWeek; -proto.weekday = getSetLocaleDayOfWeek; -proto.isoWeekday = getSetISODayOfWeek; -proto.dayOfYear = getSetDayOfYear; - -// Hour -proto.hour = proto.hours = getSetHour; - -// Minute -proto.minute = proto.minutes = getSetMinute; - -// Second -proto.second = proto.seconds = getSetSecond; - -// Millisecond -proto.millisecond = proto.milliseconds = getSetMillisecond; - -// Offset -proto.utcOffset = getSetOffset; -proto.utc = setOffsetToUTC; -proto.local = setOffsetToLocal; -proto.parseZone = setOffsetToParsedOffset; -proto.hasAlignedHourOffset = hasAlignedHourOffset; -proto.isDST = isDaylightSavingTime; -proto.isLocal = isLocal; -proto.isUtcOffset = isUtcOffset; -proto.isUtc = isUtc; -proto.isUTC = isUtc; - -// Timezone -proto.zoneAbbr = getZoneAbbr; -proto.zoneName = getZoneName; - -// Deprecations -proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth); -proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth); -proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear); -proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone); -proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted); - -function createUnix (input) { - return createLocal(input * 1000); -} - -function createInZone () { - return createLocal.apply(null, arguments).parseZone(); -} - -function preParsePostFormat (string) { - return string; -} - -var proto$1 = Locale.prototype; - -proto$1.calendar = calendar; -proto$1.longDateFormat = longDateFormat; -proto$1.invalidDate = invalidDate; -proto$1.ordinal = ordinal; -proto$1.preparse = preParsePostFormat; -proto$1.postformat = preParsePostFormat; -proto$1.relativeTime = relativeTime; -proto$1.pastFuture = pastFuture; -proto$1.set = set; - -// Month -proto$1.months = localeMonths; -proto$1.monthsShort = localeMonthsShort; -proto$1.monthsParse = localeMonthsParse; -proto$1.monthsRegex = monthsRegex; -proto$1.monthsShortRegex = monthsShortRegex; - -// Week -proto$1.week = localeWeek; -proto$1.firstDayOfYear = localeFirstDayOfYear; -proto$1.firstDayOfWeek = localeFirstDayOfWeek; - -// Day of Week -proto$1.weekdays = localeWeekdays; -proto$1.weekdaysMin = localeWeekdaysMin; -proto$1.weekdaysShort = localeWeekdaysShort; -proto$1.weekdaysParse = localeWeekdaysParse; - -proto$1.weekdaysRegex = weekdaysRegex; -proto$1.weekdaysShortRegex = weekdaysShortRegex; -proto$1.weekdaysMinRegex = weekdaysMinRegex; - -// Hours -proto$1.isPM = localeIsPM; -proto$1.meridiem = localeMeridiem; - -function get$1 (format, index, field, setter) { - var locale = getLocale(); - var utc = createUTC().set(setter, index); - return locale[field](utc, format); -} - -function listMonthsImpl (format, index, field) { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - - if (index != null) { - return get$1(format, index, field, 'month'); - } - - var i; - var out = []; - for (i = 0; i < 12; i++) { - out[i] = get$1(format, i, field, 'month'); - } - return out; -} - -// () -// (5) -// (fmt, 5) -// (fmt) -// (true) -// (true, 5) -// (true, fmt, 5) -// (true, fmt) -function listWeekdaysImpl (localeSorted, format, index, field) { - if (typeof localeSorted === 'boolean') { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - } else { - format = localeSorted; - index = format; - localeSorted = false; - - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - } - - var locale = getLocale(), - shift = localeSorted ? locale._week.dow : 0; - - if (index != null) { - return get$1(format, (index + shift) % 7, field, 'day'); - } - - var i; - var out = []; - for (i = 0; i < 7; i++) { - out[i] = get$1(format, (i + shift) % 7, field, 'day'); - } - return out; -} - -function listMonths (format, index) { - return listMonthsImpl(format, index, 'months'); -} - -function listMonthsShort (format, index) { - return listMonthsImpl(format, index, 'monthsShort'); -} - -function listWeekdays (localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); -} - -function listWeekdaysShort (localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); -} - -function listWeekdaysMin (localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); -} - -getSetGlobalLocale('en', { - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal : function (number) { - var b = number % 10, - output = (toInt(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - } -}); - -// Side effect imports -hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale); -hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale); - -var mathAbs = Math.abs; - -function abs () { - var data = this._data; - - this._milliseconds = mathAbs(this._milliseconds); - this._days = mathAbs(this._days); - this._months = mathAbs(this._months); - - data.milliseconds = mathAbs(data.milliseconds); - data.seconds = mathAbs(data.seconds); - data.minutes = mathAbs(data.minutes); - data.hours = mathAbs(data.hours); - data.months = mathAbs(data.months); - data.years = mathAbs(data.years); - - return this; -} - -function addSubtract$1 (duration, input, value, direction) { - var other = createDuration(input, value); - - duration._milliseconds += direction * other._milliseconds; - duration._days += direction * other._days; - duration._months += direction * other._months; - - return duration._bubble(); -} - -// supports only 2.0-style add(1, 's') or add(duration) -function add$1 (input, value) { - return addSubtract$1(this, input, value, 1); -} - -// supports only 2.0-style subtract(1, 's') or subtract(duration) -function subtract$1 (input, value) { - return addSubtract$1(this, input, value, -1); -} - -function absCeil (number) { - if (number < 0) { - return Math.floor(number); - } else { - return Math.ceil(number); - } -} - -function bubble () { - var milliseconds = this._milliseconds; - var days = this._days; - var months = this._months; - var data = this._data; - var seconds, minutes, hours, years, monthsFromDays; - - // if we have a mix of positive and negative values, bubble down first - // check: https://github.com/moment/moment/issues/2166 - if (!((milliseconds >= 0 && days >= 0 && months >= 0) || - (milliseconds <= 0 && days <= 0 && months <= 0))) { - milliseconds += absCeil(monthsToDays(months) + days) * 864e5; - days = 0; - months = 0; - } - - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; - - seconds = absFloor(milliseconds / 1000); - data.seconds = seconds % 60; - - minutes = absFloor(seconds / 60); - data.minutes = minutes % 60; - - hours = absFloor(minutes / 60); - data.hours = hours % 24; - - days += absFloor(hours / 24); - - // convert days to months - monthsFromDays = absFloor(daysToMonths(days)); - months += monthsFromDays; - days -= absCeil(monthsToDays(monthsFromDays)); - - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - - data.days = days; - data.months = months; - data.years = years; - - return this; -} - -function daysToMonths (days) { - // 400 years have 146097 days (taking into account leap year rules) - // 400 years have 12 months === 4800 - return days * 4800 / 146097; -} - -function monthsToDays (months) { - // the reverse of daysToMonths - return months * 146097 / 4800; -} - -function as (units) { - if (!this.isValid()) { - return NaN; - } - var days; - var months; - var milliseconds = this._milliseconds; - - units = normalizeUnits(units); - - if (units === 'month' || units === 'year') { - days = this._days + milliseconds / 864e5; - months = this._months + daysToMonths(days); - return units === 'month' ? months : months / 12; - } else { - // handle milliseconds separately because of floating point math errors (issue #1867) - days = this._days + Math.round(monthsToDays(this._months)); - switch (units) { - case 'week' : return days / 7 + milliseconds / 6048e5; - case 'day' : return days + milliseconds / 864e5; - case 'hour' : return days * 24 + milliseconds / 36e5; - case 'minute' : return days * 1440 + milliseconds / 6e4; - case 'second' : return days * 86400 + milliseconds / 1000; - // Math.floor prevents floating point math errors here - case 'millisecond': return Math.floor(days * 864e5) + milliseconds; - default: throw new Error('Unknown unit ' + units); - } - } -} - -// TODO: Use this.as('ms')? -function valueOf$1 () { - if (!this.isValid()) { - return NaN; - } - return ( - this._milliseconds + - this._days * 864e5 + - (this._months % 12) * 2592e6 + - toInt(this._months / 12) * 31536e6 - ); -} - -function makeAs (alias) { - return function () { - return this.as(alias); - }; -} - -var asMilliseconds = makeAs('ms'); -var asSeconds = makeAs('s'); -var asMinutes = makeAs('m'); -var asHours = makeAs('h'); -var asDays = makeAs('d'); -var asWeeks = makeAs('w'); -var asMonths = makeAs('M'); -var asYears = makeAs('y'); - -function clone$1 () { - return createDuration(this); -} - -function get$2 (units) { - units = normalizeUnits(units); - return this.isValid() ? this[units + 's']() : NaN; -} - -function makeGetter(name) { - return function () { - return this.isValid() ? this._data[name] : NaN; - }; -} - -var milliseconds = makeGetter('milliseconds'); -var seconds = makeGetter('seconds'); -var minutes = makeGetter('minutes'); -var hours = makeGetter('hours'); -var days = makeGetter('days'); -var months = makeGetter('months'); -var years = makeGetter('years'); - -function weeks () { - return absFloor(this.days() / 7); -} - -var round = Math.round; -var thresholds = { - ss: 44, // a few seconds to seconds - s : 45, // seconds to minute - m : 45, // minutes to hour - h : 22, // hours to day - d : 26, // days to month - M : 11 // months to year -}; - -// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize -function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); -} - -function relativeTime$1 (posNegDuration, withoutSuffix, locale) { - var duration = createDuration(posNegDuration).abs(); - var seconds = round(duration.as('s')); - var minutes = round(duration.as('m')); - var hours = round(duration.as('h')); - var days = round(duration.as('d')); - var months = round(duration.as('M')); - var years = round(duration.as('y')); - - var a = seconds <= thresholds.ss && ['s', seconds] || - seconds < thresholds.s && ['ss', seconds] || - minutes <= 1 && ['m'] || - minutes < thresholds.m && ['mm', minutes] || - hours <= 1 && ['h'] || - hours < thresholds.h && ['hh', hours] || - days <= 1 && ['d'] || - days < thresholds.d && ['dd', days] || - months <= 1 && ['M'] || - months < thresholds.M && ['MM', months] || - years <= 1 && ['y'] || ['yy', years]; - - a[2] = withoutSuffix; - a[3] = +posNegDuration > 0; - a[4] = locale; - return substituteTimeAgo.apply(null, a); -} - -// This function allows you to set the rounding function for relative time strings -function getSetRelativeTimeRounding (roundingFunction) { - if (roundingFunction === undefined) { - return round; - } - if (typeof(roundingFunction) === 'function') { - round = roundingFunction; - return true; - } - return false; -} - -// This function allows you to set a threshold for relative time strings -function getSetRelativeTimeThreshold (threshold, limit) { - if (thresholds[threshold] === undefined) { - return false; - } - if (limit === undefined) { - return thresholds[threshold]; - } - thresholds[threshold] = limit; - if (threshold === 's') { - thresholds.ss = limit - 1; - } - return true; -} - -function humanize (withSuffix) { - if (!this.isValid()) { - return this.localeData().invalidDate(); - } - - var locale = this.localeData(); - var output = relativeTime$1(this, !withSuffix, locale); - - if (withSuffix) { - output = locale.pastFuture(+this, output); - } - - return locale.postformat(output); -} - -var abs$1 = Math.abs; - -function sign(x) { - return ((x > 0) - (x < 0)) || +x; -} - -function toISOString$1() { - // for ISO strings we do not use the normal bubbling rules: - // * milliseconds bubble up until they become hours - // * days do not bubble at all - // * months bubble up until they become years - // This is because there is no context-free conversion between hours and days - // (think of clock changes) - // and also not between days and months (28-31 days per month) - if (!this.isValid()) { - return this.localeData().invalidDate(); - } - - var seconds = abs$1(this._milliseconds) / 1000; - var days = abs$1(this._days); - var months = abs$1(this._months); - var minutes, hours, years; - - // 3600 seconds -> 60 minutes -> 1 hour - minutes = absFloor(seconds / 60); - hours = absFloor(minutes / 60); - seconds %= 60; - minutes %= 60; - - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - - - // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js - var Y = years; - var M = months; - var D = days; - var h = hours; - var m = minutes; - var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; - var total = this.asSeconds(); - - if (!total) { - // this is the same as C#'s (Noda) and python (isodate)... - // but not other JS (goog.date) - return 'P0D'; - } - - var totalSign = total < 0 ? '-' : ''; - var ymSign = sign(this._months) !== sign(total) ? '-' : ''; - var daysSign = sign(this._days) !== sign(total) ? '-' : ''; - var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; - - return totalSign + 'P' + - (Y ? ymSign + Y + 'Y' : '') + - (M ? ymSign + M + 'M' : '') + - (D ? daysSign + D + 'D' : '') + - ((h || m || s) ? 'T' : '') + - (h ? hmsSign + h + 'H' : '') + - (m ? hmsSign + m + 'M' : '') + - (s ? hmsSign + s + 'S' : ''); -} - -var proto$2 = Duration.prototype; - -proto$2.isValid = isValid$1; -proto$2.abs = abs; -proto$2.add = add$1; -proto$2.subtract = subtract$1; -proto$2.as = as; -proto$2.asMilliseconds = asMilliseconds; -proto$2.asSeconds = asSeconds; -proto$2.asMinutes = asMinutes; -proto$2.asHours = asHours; -proto$2.asDays = asDays; -proto$2.asWeeks = asWeeks; -proto$2.asMonths = asMonths; -proto$2.asYears = asYears; -proto$2.valueOf = valueOf$1; -proto$2._bubble = bubble; -proto$2.clone = clone$1; -proto$2.get = get$2; -proto$2.milliseconds = milliseconds; -proto$2.seconds = seconds; -proto$2.minutes = minutes; -proto$2.hours = hours; -proto$2.days = days; -proto$2.weeks = weeks; -proto$2.months = months; -proto$2.years = years; -proto$2.humanize = humanize; -proto$2.toISOString = toISOString$1; -proto$2.toString = toISOString$1; -proto$2.toJSON = toISOString$1; -proto$2.locale = locale; -proto$2.localeData = localeData; - -// Deprecations -proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1); -proto$2.lang = lang; - -// Side effect imports - -// FORMATTING - -addFormatToken('X', 0, 0, 'unix'); -addFormatToken('x', 0, 0, 'valueOf'); - -// PARSING - -addRegexToken('x', matchSigned); -addRegexToken('X', matchTimestamp); -addParseToken('X', function (input, array, config) { - config._d = new Date(parseFloat(input, 10) * 1000); -}); -addParseToken('x', function (input, array, config) { - config._d = new Date(toInt(input)); -}); - -// Side effect imports - - -hooks.version = '2.20.1'; - -setHookCallback(createLocal); - -hooks.fn = proto; -hooks.min = min; -hooks.max = max; -hooks.now = now; -hooks.utc = createUTC; -hooks.unix = createUnix; -hooks.months = listMonths; -hooks.isDate = isDate; -hooks.locale = getSetGlobalLocale; -hooks.invalid = createInvalid; -hooks.duration = createDuration; -hooks.isMoment = isMoment; -hooks.weekdays = listWeekdays; -hooks.parseZone = createInZone; -hooks.localeData = getLocale; -hooks.isDuration = isDuration; -hooks.monthsShort = listMonthsShort; -hooks.weekdaysMin = listWeekdaysMin; -hooks.defineLocale = defineLocale; -hooks.updateLocale = updateLocale; -hooks.locales = listLocales; -hooks.weekdaysShort = listWeekdaysShort; -hooks.normalizeUnits = normalizeUnits; -hooks.relativeTimeRounding = getSetRelativeTimeRounding; -hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; -hooks.calendarFormat = getCalendarFormat; -hooks.prototype = proto; - -// currently HTML5 input type only supports 24-hour formats -hooks.HTML5_FMT = { - DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // - DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // - DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // - DATE: 'YYYY-MM-DD', // - TIME: 'HH:mm', // - TIME_SECONDS: 'HH:mm:ss', // - TIME_MS: 'HH:mm:ss.SSS', // - WEEK: 'YYYY-[W]WW', // - MONTH: 'YYYY-MM' // -}; - -return hooks; - -}))); - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)(module))) - -/***/ }), -/* 1 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = __extends; -/* unused harmony export __assign */ -/* unused harmony export __rest */ -/* unused harmony export __decorate */ -/* unused harmony export __param */ -/* unused harmony export __metadata */ -/* unused harmony export __awaiter */ -/* unused harmony export __generator */ -/* unused harmony export __exportStar */ -/* unused harmony export __values */ -/* unused harmony export __read */ -/* unused harmony export __spread */ -/* unused harmony export __await */ -/* unused harmony export __asyncGenerator */ -/* unused harmony export __asyncDelegator */ -/* unused harmony export __asyncValues */ -/* unused harmony export __makeTemplateObject */ -/* unused harmony export __importStar */ -/* unused harmony export __importDefault */ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - -function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -var __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; -} - -function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) - t[p[i]] = s[p[i]]; - return t; -} - -function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -function __awaiter(thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -function __exportStar(m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -function __values(o) { - var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; - if (m) return m.call(o); - return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; -} - -function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } -} - -function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator]; - return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); -} - -function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - - -/***/ }), -/* 2 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscriber; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isFunction__ = __webpack_require__(32); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observer__ = __webpack_require__(221); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__ = __webpack_require__(64); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(43); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__util_hostReportError__ = __webpack_require__(63); -/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */ - - - - - - - -var Subscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](Subscriber, _super); - function Subscriber(destinationOrNext, error, complete) { - var _this = _super.call(this) || this; - _this.syncErrorValue = null; - _this.syncErrorThrown = false; - _this.syncErrorThrowable = false; - _this.isStopped = false; - switch (arguments.length) { - case 0: - _this.destination = __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */]; - break; - case 1: - if (!destinationOrNext) { - _this.destination = __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */]; - break; - } - if (typeof destinationOrNext === 'object') { - if (isTrustedSubscriber(destinationOrNext)) { - var trustedSubscriber = destinationOrNext[__WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]](); - _this.syncErrorThrowable = trustedSubscriber.syncErrorThrowable; - _this.destination = trustedSubscriber; - trustedSubscriber.add(_this); - } - else { - _this.syncErrorThrowable = true; - _this.destination = new SafeSubscriber(_this, destinationOrNext); - } - break; - } - default: - _this.syncErrorThrowable = true; - _this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete); - break; - } - return _this; - } - Subscriber.prototype[__WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]] = function () { return this; }; - Subscriber.create = function (next, error, complete) { - var subscriber = new Subscriber(next, error, complete); - subscriber.syncErrorThrowable = false; - return subscriber; - }; - Subscriber.prototype.next = function (value) { - if (!this.isStopped) { - this._next(value); - } - }; - Subscriber.prototype.error = function (err) { - if (!this.isStopped) { - this.isStopped = true; - this._error(err); - } - }; - Subscriber.prototype.complete = function () { - if (!this.isStopped) { - this.isStopped = true; - this._complete(); - } - }; - Subscriber.prototype.unsubscribe = function () { - if (this.closed) { - return; - } - this.isStopped = true; - _super.prototype.unsubscribe.call(this); - }; - Subscriber.prototype._next = function (value) { - this.destination.next(value); - }; - Subscriber.prototype._error = function (err) { - this.destination.error(err); - this.unsubscribe(); - }; - Subscriber.prototype._complete = function () { - this.destination.complete(); - this.unsubscribe(); - }; - Subscriber.prototype._unsubscribeAndRecycle = function () { - var _a = this, _parent = _a._parent, _parents = _a._parents; - this._parent = null; - this._parents = null; - this.unsubscribe(); - this.closed = false; - this.isStopped = false; - this._parent = _parent; - this._parents = _parents; - return this; - }; - return Subscriber; -}(__WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */])); - -var SafeSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](SafeSubscriber, _super); - function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) { - var _this = _super.call(this) || this; - _this._parentSubscriber = _parentSubscriber; - var next; - var context = _this; - if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isFunction__["a" /* isFunction */])(observerOrNext)) { - next = observerOrNext; - } - else if (observerOrNext) { - next = observerOrNext.next; - error = observerOrNext.error; - complete = observerOrNext.complete; - if (observerOrNext !== __WEBPACK_IMPORTED_MODULE_2__Observer__["a" /* empty */]) { - context = Object.create(observerOrNext); - if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isFunction__["a" /* isFunction */])(context.unsubscribe)) { - _this.add(context.unsubscribe.bind(context)); - } - context.unsubscribe = _this.unsubscribe.bind(_this); - } - } - _this._context = context; - _this._next = next; - _this._error = error; - _this._complete = complete; - return _this; - } - SafeSubscriber.prototype.next = function (value) { - if (!this.isStopped && this._next) { - var _parentSubscriber = this._parentSubscriber; - if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { - this.__tryOrUnsub(this._next, value); - } - else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) { - this.unsubscribe(); - } - } - }; - SafeSubscriber.prototype.error = function (err) { - if (!this.isStopped) { - var _parentSubscriber = this._parentSubscriber; - var useDeprecatedSynchronousErrorHandling = __WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling; - if (this._error) { - if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { - this.__tryOrUnsub(this._error, err); - this.unsubscribe(); - } - else { - this.__tryOrSetError(_parentSubscriber, this._error, err); - this.unsubscribe(); - } - } - else if (!_parentSubscriber.syncErrorThrowable) { - this.unsubscribe(); - if (useDeprecatedSynchronousErrorHandling) { - throw err; - } - Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); - } - else { - if (useDeprecatedSynchronousErrorHandling) { - _parentSubscriber.syncErrorValue = err; - _parentSubscriber.syncErrorThrown = true; - } - else { - Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); - } - this.unsubscribe(); - } - } - }; - SafeSubscriber.prototype.complete = function () { - var _this = this; - if (!this.isStopped) { - var _parentSubscriber = this._parentSubscriber; - if (this._complete) { - var wrappedComplete = function () { return _this._complete.call(_this._context); }; - if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { - this.__tryOrUnsub(wrappedComplete); - this.unsubscribe(); - } - else { - this.__tryOrSetError(_parentSubscriber, wrappedComplete); - this.unsubscribe(); - } - } - else { - this.unsubscribe(); - } - } - }; - SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) { - try { - fn.call(this._context, value); - } - catch (err) { - this.unsubscribe(); - if (__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { - throw err; - } - else { - Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); - } - } - }; - SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) { - if (!__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { - throw new Error('bad call'); - } - try { - fn.call(this._context, value); - } - catch (err) { - if (__WEBPACK_IMPORTED_MODULE_5__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { - parent.syncErrorValue = err; - parent.syncErrorThrown = true; - return true; - } - else { - Object(__WEBPACK_IMPORTED_MODULE_6__util_hostReportError__["a" /* hostReportError */])(err); - return true; - } - } - return false; - }; - SafeSubscriber.prototype._unsubscribe = function () { - var _parentSubscriber = this._parentSubscriber; - this._context = null; - this._parentSubscriber = null; - _parentSubscriber.unsubscribe(); - }; - return SafeSubscriber; -}(Subscriber)); -function isTrustedSubscriber(obj) { - return obj instanceof Subscriber || ('syncErrorThrowable' in obj && obj[__WEBPACK_IMPORTED_MODULE_4__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]]); -} -//# sourceMappingURL=Subscriber.js.map - - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = require("path"); - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Observable; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_toSubscriber__ = __webpack_require__(377); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__internal_symbol_observable__ = __webpack_require__(24); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_pipe__ = __webpack_require__(65); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(43); -/** PURE_IMPORTS_START _util_toSubscriber,_internal_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */ - - - - -var Observable = /*@__PURE__*/ (function () { - function Observable(subscribe) { - this._isScalar = false; - if (subscribe) { - this._subscribe = subscribe; - } - } - Observable.prototype.lift = function (operator) { - var observable = new Observable(); - observable.source = this; - observable.operator = operator; - return observable; - }; - Observable.prototype.subscribe = function (observerOrNext, error, complete) { - var operator = this.operator; - var sink = Object(__WEBPACK_IMPORTED_MODULE_0__util_toSubscriber__["a" /* toSubscriber */])(observerOrNext, error, complete); - if (operator) { - operator.call(sink, this.source); - } - else { - sink.add(this.source || (__WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ? - this._subscribe(sink) : - this._trySubscribe(sink)); - } - if (__WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { - if (sink.syncErrorThrowable) { - sink.syncErrorThrowable = false; - if (sink.syncErrorThrown) { - throw sink.syncErrorValue; - } - } - } - return sink; - }; - Observable.prototype._trySubscribe = function (sink) { - try { - return this._subscribe(sink); - } - catch (err) { - if (__WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { - sink.syncErrorThrown = true; - sink.syncErrorValue = err; - } - sink.error(err); - } - }; - Observable.prototype.forEach = function (next, promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var subscription; - subscription = _this.subscribe(function (value) { - try { - next(value); - } - catch (err) { - reject(err); - if (subscription) { - subscription.unsubscribe(); - } - } - }, reject, resolve); - }); - }; - Observable.prototype._subscribe = function (subscriber) { - var source = this.source; - return source && source.subscribe(subscriber); - }; - Observable.prototype[__WEBPACK_IMPORTED_MODULE_1__internal_symbol_observable__["a" /* observable */]] = function () { - return this; - }; - Observable.prototype.pipe = function () { - var operations = []; - for (var _i = 0; _i < arguments.length; _i++) { - operations[_i] = arguments[_i]; - } - if (operations.length === 0) { - return this; - } - return Object(__WEBPACK_IMPORTED_MODULE_2__util_pipe__["b" /* pipeFromArray */])(operations)(this); - }; - Observable.prototype.toPromise = function (promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var value; - _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); }); - }); - }; - Observable.create = function (subscribe) { - return new Observable(subscribe); - }; - return Observable; -}()); - -function getPromiseCtor(promiseCtor) { - if (!promiseCtor) { - promiseCtor = __WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].Promise || Promise; - } - if (!promiseCtor) { - throw new Error('no Promise impl found'); - } - return promiseCtor; -} -//# sourceMappingURL=Observable.js.map - - -/***/ }), -/* 5 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OuterSubscriber; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -var OuterSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](OuterSubscriber, _super); - function OuterSubscriber() { - return _super !== null && _super.apply(this, arguments) || this; - } - OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - this.destination.next(innerValue); - }; - OuterSubscriber.prototype.notifyError = function (error, innerSub) { - this.destination.error(error); - }; - OuterSubscriber.prototype.notifyComplete = function (innerSub) { - this.destination.complete(); - }; - return OuterSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); - -//# sourceMappingURL=OuterSubscriber.js.map - - -/***/ }), -/* 6 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = subscribeToResult; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InnerSubscriber__ = __webpack_require__(391); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__subscribeTo__ = __webpack_require__(234); -/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo PURE_IMPORTS_END */ - - -function subscribeToResult(outerSubscriber, result, outerValue, outerIndex) { - var destination = new __WEBPACK_IMPORTED_MODULE_0__InnerSubscriber__["a" /* InnerSubscriber */](outerSubscriber, outerValue, outerIndex); - return Object(__WEBPACK_IMPORTED_MODULE_1__subscribeTo__["a" /* subscribeTo */])(result)(destination); -} -//# sourceMappingURL=subscribeToResult.js.map - - -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - -module.exports = require("fs"); - -/***/ }), -/* 8 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscription; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isObject__ = __webpack_require__(222); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isFunction__ = __webpack_require__(32); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__ = __webpack_require__(223); -/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_tryCatch,_util_errorObject,_util_UnsubscriptionError PURE_IMPORTS_END */ - - - - - - -var Subscription = /*@__PURE__*/ (function () { - function Subscription(unsubscribe) { - this.closed = false; - this._parent = null; - this._parents = null; - this._subscriptions = null; - if (unsubscribe) { - this._unsubscribe = unsubscribe; - } - } - Subscription.prototype.unsubscribe = function () { - var hasErrors = false; - var errors; - if (this.closed) { - return; - } - var _a = this, _parent = _a._parent, _parents = _a._parents, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions; - this.closed = true; - this._parent = null; - this._parents = null; - this._subscriptions = null; - var index = -1; - var len = _parents ? _parents.length : 0; - while (_parent) { - _parent.remove(this); - _parent = ++index < len && _parents[index] || null; - } - if (Object(__WEBPACK_IMPORTED_MODULE_2__util_isFunction__["a" /* isFunction */])(_unsubscribe)) { - var trial = Object(__WEBPACK_IMPORTED_MODULE_3__util_tryCatch__["a" /* tryCatch */])(_unsubscribe).call(this); - if (trial === __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */]) { - hasErrors = true; - errors = errors || (__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */] ? - flattenUnsubscriptionErrors(__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e.errors) : [__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e]); - } - } - if (Object(__WEBPACK_IMPORTED_MODULE_0__util_isArray__["a" /* isArray */])(_subscriptions)) { - index = -1; - len = _subscriptions.length; - while (++index < len) { - var sub = _subscriptions[index]; - if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isObject__["a" /* isObject */])(sub)) { - var trial = Object(__WEBPACK_IMPORTED_MODULE_3__util_tryCatch__["a" /* tryCatch */])(sub.unsubscribe).call(sub); - if (trial === __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */]) { - hasErrors = true; - errors = errors || []; - var err = __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e; - if (err instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */]) { - errors = errors.concat(flattenUnsubscriptionErrors(err.errors)); - } - else { - errors.push(err); - } - } - } - } - } - if (hasErrors) { - throw new __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */](errors); - } - }; - Subscription.prototype.add = function (teardown) { - if (!teardown || (teardown === Subscription.EMPTY)) { - return Subscription.EMPTY; - } - if (teardown === this) { - return this; - } - var subscription = teardown; - switch (typeof teardown) { - case 'function': - subscription = new Subscription(teardown); - case 'object': - if (subscription.closed || typeof subscription.unsubscribe !== 'function') { - return subscription; - } - else if (this.closed) { - subscription.unsubscribe(); - return subscription; - } - else if (typeof subscription._addParent !== 'function') { - var tmp = subscription; - subscription = new Subscription(); - subscription._subscriptions = [tmp]; - } - break; - default: - throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.'); - } - var subscriptions = this._subscriptions || (this._subscriptions = []); - subscriptions.push(subscription); - subscription._addParent(this); - return subscription; - }; - Subscription.prototype.remove = function (subscription) { - var subscriptions = this._subscriptions; - if (subscriptions) { - var subscriptionIndex = subscriptions.indexOf(subscription); - if (subscriptionIndex !== -1) { - subscriptions.splice(subscriptionIndex, 1); - } - } - }; - Subscription.prototype._addParent = function (parent) { - var _a = this, _parent = _a._parent, _parents = _a._parents; - if (!_parent || _parent === parent) { - this._parent = parent; - } - else if (!_parents) { - this._parents = [parent]; - } - else if (_parents.indexOf(parent) === -1) { - _parents.push(parent); - } - }; - Subscription.EMPTY = (function (empty) { - empty.closed = true; - return empty; - }(new Subscription())); - return Subscription; -}()); - -function flattenUnsubscriptionErrors(errors) { - return errors.reduce(function (errs, err) { return errs.concat((err instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */]) ? err.errors : err); }, []); -} -//# sourceMappingURL=Subscription.js.map - - -/***/ }), -/* 9 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SubjectSubscriber; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subject; }); -/* unused harmony export AnonymousSubject */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__ = __webpack_require__(45); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__SubjectSubscription__ = __webpack_require__(225); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_symbol_rxSubscriber__ = __webpack_require__(64); -/** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */ - - - - - - - -var SubjectSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](SubjectSubscriber, _super); - function SubjectSubscriber(destination) { - var _this = _super.call(this, destination) || this; - _this.destination = destination; - return _this; - } - return SubjectSubscriber; -}(__WEBPACK_IMPORTED_MODULE_2__Subscriber__["a" /* Subscriber */])); - -var Subject = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](Subject, _super); - function Subject() { - var _this = _super.call(this) || this; - _this.observers = []; - _this.closed = false; - _this.isStopped = false; - _this.hasError = false; - _this.thrownError = null; - return _this; - } - Subject.prototype[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]] = function () { - return new SubjectSubscriber(this); - }; - Subject.prototype.lift = function (operator) { - var subject = new AnonymousSubject(this, this); - subject.operator = operator; - return subject; - }; - Subject.prototype.next = function (value) { - if (this.closed) { - throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); - } - if (!this.isStopped) { - var observers = this.observers; - var len = observers.length; - var copy = observers.slice(); - for (var i = 0; i < len; i++) { - copy[i].next(value); - } - } - }; - Subject.prototype.error = function (err) { - if (this.closed) { - throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); - } - this.hasError = true; - this.thrownError = err; - this.isStopped = true; - var observers = this.observers; - var len = observers.length; - var copy = observers.slice(); - for (var i = 0; i < len; i++) { - copy[i].error(err); - } - this.observers.length = 0; - }; - Subject.prototype.complete = function () { - if (this.closed) { - throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); - } - this.isStopped = true; - var observers = this.observers; - var len = observers.length; - var copy = observers.slice(); - for (var i = 0; i < len; i++) { - copy[i].complete(); - } - this.observers.length = 0; - }; - Subject.prototype.unsubscribe = function () { - this.isStopped = true; - this.closed = true; - this.observers = null; - }; - Subject.prototype._trySubscribe = function (subscriber) { - if (this.closed) { - throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); - } - else { - return _super.prototype._trySubscribe.call(this, subscriber); - } - }; - Subject.prototype._subscribe = function (subscriber) { - if (this.closed) { - throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); - } - else if (this.hasError) { - subscriber.error(this.thrownError); - return __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; - } - else if (this.isStopped) { - subscriber.complete(); - return __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; - } - else { - this.observers.push(subscriber); - return new __WEBPACK_IMPORTED_MODULE_5__SubjectSubscription__["a" /* SubjectSubscription */](this, subscriber); - } - }; - Subject.prototype.asObservable = function () { - var observable = new __WEBPACK_IMPORTED_MODULE_1__Observable__["a" /* Observable */](); - observable.source = this; - return observable; - }; - Subject.create = function (destination, source) { - return new AnonymousSubject(destination, source); - }; - return Subject; -}(__WEBPACK_IMPORTED_MODULE_1__Observable__["a" /* Observable */])); - -var AnonymousSubject = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AnonymousSubject, _super); - function AnonymousSubject(destination, source) { - var _this = _super.call(this) || this; - _this.destination = destination; - _this.source = source; - return _this; - } - AnonymousSubject.prototype.next = function (value) { - var destination = this.destination; - if (destination && destination.next) { - destination.next(value); - } - }; - AnonymousSubject.prototype.error = function (err) { - var destination = this.destination; - if (destination && destination.error) { - this.destination.error(err); - } - }; - AnonymousSubject.prototype.complete = function () { - var destination = this.destination; - if (destination && destination.complete) { - this.destination.complete(); - } - }; - AnonymousSubject.prototype._subscribe = function (subscriber) { - var source = this.source; - if (source) { - return this.source.subscribe(subscriber); - } - else { - return __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; - } - }; - return AnonymousSubject; -}(Subject)); - -//# sourceMappingURL=Subject.js.map - - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("util"); - -/***/ }), -/* 11 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isArray; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var isArray = Array.isArray || (function (x) { return x && typeof x.length === 'number'; }); -//# sourceMappingURL=isArray.js.map - - -/***/ }), -/* 12 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EMPTY; }); -/* harmony export (immutable) */ __webpack_exports__["b"] = empty; -/* unused harmony export emptyScheduled */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ - -var EMPTY = /*@__PURE__*/ new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return subscriber.complete(); }); -function empty(scheduler) { - return scheduler ? emptyScheduled(scheduler) : EMPTY; -} -function emptyScheduled(scheduler) { - return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); }); -} -//# sourceMappingURL=empty.js.map - - -/***/ }), -/* 13 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return async; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AsyncAction__ = __webpack_require__(33); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(34); -/** PURE_IMPORTS_START _AsyncAction,_AsyncScheduler PURE_IMPORTS_END */ - - -var async = /*@__PURE__*/ new __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__["a" /* AsyncScheduler */](__WEBPACK_IMPORTED_MODULE_0__AsyncAction__["a" /* AsyncAction */]); -//# sourceMappingURL=async.js.map - - -/***/ }), -/* 14 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return errorObject; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var errorObject = { e: {} }; -//# sourceMappingURL=errorObject.js.map - - -/***/ }), -/* 15 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = isScheduler; -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function isScheduler(value) { - return value && typeof value.schedule === 'function'; -} -//# sourceMappingURL=isScheduler.js.map - - -/***/ }), -/* 16 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = map; -/* unused harmony export MapOperator */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -function map(project, thisArg) { - return function mapOperation(source) { - if (typeof project !== 'function') { - throw new TypeError('argument is not a function. Are you looking for `mapTo()`?'); - } - return source.lift(new MapOperator(project, thisArg)); - }; -} -var MapOperator = /*@__PURE__*/ (function () { - function MapOperator(project, thisArg) { - this.project = project; - this.thisArg = thisArg; - } - MapOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg)); - }; - return MapOperator; -}()); - -var MapSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](MapSubscriber, _super); - function MapSubscriber(destination, project, thisArg) { - var _this = _super.call(this, destination) || this; - _this.project = project; - _this.count = 0; - _this.thisArg = thisArg || _this; - return _this; - } - MapSubscriber.prototype._next = function (value) { - var result; - try { - result = this.project.call(this.thisArg, value, this.count++); - } - catch (err) { - this.destination.error(err); - return; - } - this.destination.next(result); - }; - return MapSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); -//# sourceMappingURL=map.js.map - - -/***/ }), -/* 17 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = tryCatch; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__errorObject__ = __webpack_require__(14); -/** PURE_IMPORTS_START _errorObject PURE_IMPORTS_END */ - -var tryCatchTarget; -function tryCatcher() { - try { - return tryCatchTarget.apply(this, arguments); - } - catch (e) { - __WEBPACK_IMPORTED_MODULE_0__errorObject__["a" /* errorObject */].e = e; - return __WEBPACK_IMPORTED_MODULE_0__errorObject__["a" /* errorObject */]; - } -} -function tryCatch(fn) { - tryCatchTarget = fn; - return tryCatcher; -} -//# sourceMappingURL=tryCatch.js.map - - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -const escapeStringRegexp = __webpack_require__(52); -const ansiStyles = __webpack_require__(259); -const stdoutColor = __webpack_require__(262).stdout; - -const template = __webpack_require__(263); - -const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); - -// `supportsColor.level` → `ansiStyles.color[name]` mapping -const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; - -// `color-convert` models to exclude from the Chalk API due to conflicts and such -const skipModels = new Set(['gray']); - -const styles = Object.create(null); - -function applyOptions(obj, options) { - options = options || {}; - - // Detect level if not set manually - const scLevel = stdoutColor ? stdoutColor.level : 0; - obj.level = options.level === undefined ? scLevel : options.level; - obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0; -} - -function Chalk(options) { - // We check for this.template here since calling `chalk.constructor()` - // by itself will have a `this` of a previously constructed chalk object - if (!this || !(this instanceof Chalk) || this.template) { - const chalk = {}; - applyOptions(chalk, options); - - chalk.template = function () { - const args = [].slice.call(arguments); - return chalkTag.apply(null, [chalk.template].concat(args)); - }; - - Object.setPrototypeOf(chalk, Chalk.prototype); - Object.setPrototypeOf(chalk.template, chalk); - - chalk.template.constructor = Chalk; - - return chalk.template; - } - - applyOptions(this, options); -} - -// Use bright blue on Windows as the normal blue color is illegible -if (isSimpleWindowsTerm) { - ansiStyles.blue.open = '\u001B[94m'; -} - -for (const key of Object.keys(ansiStyles)) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - - styles[key] = { - get() { - const codes = ansiStyles[key]; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key); - } - }; -} - -styles.visible = { - get() { - return build.call(this, this._styles || [], true, 'visible'); - } -}; - -ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); -for (const model of Object.keys(ansiStyles.color.ansi)) { - if (skipModels.has(model)) { - continue; - } - - styles[model] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.color.close, - closeRe: ansiStyles.color.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g'); -for (const model of Object.keys(ansiStyles.bgColor.ansi)) { - if (skipModels.has(model)) { - continue; - } - - const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); - styles[bgModel] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.bgColor.close, - closeRe: ansiStyles.bgColor.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -const proto = Object.defineProperties(() => {}, styles); - -function build(_styles, _empty, key) { - const builder = function () { - return applyStyle.apply(builder, arguments); - }; - - builder._styles = _styles; - builder._empty = _empty; - - const self = this; - - Object.defineProperty(builder, 'level', { - enumerable: true, - get() { - return self.level; - }, - set(level) { - self.level = level; - } - }); - - Object.defineProperty(builder, 'enabled', { - enumerable: true, - get() { - return self.enabled; - }, - set(enabled) { - self.enabled = enabled; - } - }); - - // See below for fix regarding invisible grey/dim combination on Windows - builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey'; - - // `__proto__` is used because we must return a function, but there is - // no way to create a function with a different prototype - builder.__proto__ = proto; // eslint-disable-line no-proto - - return builder; -} - -function applyStyle() { - // Support varags, but simply cast to string in case there's only one arg - const args = arguments; - const argsLen = args.length; - let str = String(arguments[0]); - - if (argsLen === 0) { - return ''; - } - - if (argsLen > 1) { - // Don't slice `arguments`, it prevents V8 optimizations - for (let a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!this.enabled || this.level <= 0 || !str) { - return this._empty ? '' : str; - } - - // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, - // see https://github.com/chalk/chalk/issues/58 - // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - const originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && this.hasGrey) { - ansiStyles.dim.open = ''; - } - - for (const code of this._styles.slice().reverse()) { - // Replace any instances already present with a re-opening code - // otherwise only the part of the string until said closing code - // will be colored, and the rest will simply be 'plain'. - str = code.open + str.replace(code.closeRe, code.open) + code.close; - - // Close the styling before a linebreak and reopen - // after next line to fix a bleed issue on macOS - // https://github.com/chalk/chalk/pull/92 - str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); - } - - // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue - ansiStyles.dim.open = originalDim; - - return str; -} - -function chalkTag(chalk, strings) { - if (!Array.isArray(strings)) { - // If chalk() was called by itself or with a string, - // return the string itself as a string. - return [].slice.call(arguments, 1).join(' '); - } - - const args = [].slice.call(arguments, 2); - const parts = [strings.raw[0]]; - - for (let i = 1; i < strings.length; i++) { - parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&')); - parts.push(String(strings.raw[i])); - } - - return template(chalk, parts.join('')); -} - -Object.defineProperties(Chalk.prototype, styles); - -module.exports = Chalk(); // eslint-disable-line new-cap -module.exports.supportsColor = stdoutColor; -module.exports.default = module.exports; // For TypeScript - - -/***/ }), -/* 19 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = from; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isPromise__ = __webpack_require__(239); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArrayLike__ = __webpack_require__(238); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isInteropObservable__ = __webpack_require__(392); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isIterable__ = __webpack_require__(393); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__fromArray__ = __webpack_require__(21); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__fromPromise__ = __webpack_require__(394); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__fromIterable__ = __webpack_require__(395); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__fromObservable__ = __webpack_require__(396); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__util_subscribeTo__ = __webpack_require__(234); -/** PURE_IMPORTS_START _Observable,_util_isPromise,_util_isArrayLike,_util_isInteropObservable,_util_isIterable,_fromArray,_fromPromise,_fromIterable,_fromObservable,_util_subscribeTo PURE_IMPORTS_END */ - - - - - - - - - - -function from(input, scheduler) { - if (!scheduler) { - if (input instanceof __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */]) { - return input; - } - return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](Object(__WEBPACK_IMPORTED_MODULE_9__util_subscribeTo__["a" /* subscribeTo */])(input)); - } - if (input != null) { - if (Object(__WEBPACK_IMPORTED_MODULE_3__util_isInteropObservable__["a" /* isInteropObservable */])(input)) { - return Object(__WEBPACK_IMPORTED_MODULE_8__fromObservable__["a" /* fromObservable */])(input, scheduler); - } - else if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isPromise__["a" /* isPromise */])(input)) { - return Object(__WEBPACK_IMPORTED_MODULE_6__fromPromise__["a" /* fromPromise */])(input, scheduler); - } - else if (Object(__WEBPACK_IMPORTED_MODULE_2__util_isArrayLike__["a" /* isArrayLike */])(input)) { - return Object(__WEBPACK_IMPORTED_MODULE_5__fromArray__["a" /* fromArray */])(input, scheduler); - } - else if (Object(__WEBPACK_IMPORTED_MODULE_4__util_isIterable__["a" /* isIterable */])(input) || typeof input === 'string') { - return Object(__WEBPACK_IMPORTED_MODULE_7__fromIterable__["a" /* fromIterable */])(input, scheduler); - } - } - throw new TypeError((input !== null && typeof input || input) + ' is not observable'); -} -//# sourceMappingURL=from.js.map - - -/***/ }), -/* 20 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -const log = exports.log = { - /** - * Log something to the console. Ideally we would use a real logger in - * kbn-pm, but that's a pretty big change for now. - * @param ...args - */ - write(...args) { - // tslint:disable no-console - console.log(...args); - } -}; - -/***/ }), -/* 21 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = fromArray; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToArray__ = __webpack_require__(231); -/** PURE_IMPORTS_START _Observable,_Subscription,_util_subscribeToArray PURE_IMPORTS_END */ - - - -function fromArray(input, scheduler) { - if (!scheduler) { - return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](Object(__WEBPACK_IMPORTED_MODULE_2__util_subscribeToArray__["a" /* subscribeToArray */])(input)); - } - else { - return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { - var sub = new __WEBPACK_IMPORTED_MODULE_1__Subscription__["a" /* Subscription */](); - var i = 0; - sub.add(scheduler.schedule(function () { - if (i === input.length) { - subscriber.complete(); - return; - } - subscriber.next(input[i++]); - if (!subscriber.closed) { - sub.add(this.schedule()); - } - })); - return sub; - }); - } -} -//# sourceMappingURL=fromArray.js.map - - -/***/ }), -/* 22 */ -/***/ (function(module, exports) { - -module.exports = require("stream"); - -/***/ }), -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const processFn = (fn, opts) => function () { - const P = opts.promiseModule; - const args = new Array(arguments.length); - - for (let i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - - return new P((resolve, reject) => { - if (opts.errorFirst) { - args.push(function (err, result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - - for (let i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - - if (err) { - results.unshift(err); - reject(results); - } else { - resolve(results); - } - } else if (err) { - reject(err); - } else { - resolve(result); - } - }); - } else { - args.push(function (result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - - for (let i = 0; i < arguments.length; i++) { - results[i] = arguments[i]; - } - - resolve(results); - } else { - resolve(result); - } - }); - } - - fn.apply(this, args); - }); -}; - -module.exports = (obj, opts) => { - opts = Object.assign({ - exclude: [/.+(Sync|Stream)$/], - errorFirst: true, - promiseModule: Promise - }, opts); - - const filter = key => { - const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - - let ret; - if (typeof obj === 'function') { - ret = function () { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - - return processFn(obj, opts).apply(this, arguments); - }; - } else { - ret = Object.create(Object.getPrototypeOf(obj)); - } - - for (const key in obj) { // eslint-disable-line guard-for-in - const x = obj[key]; - ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; - } - - return ret; -}; - - -/***/ }), -/* 24 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return observable; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var observable = typeof Symbol === 'function' && Symbol.observable || '@@observable'; -//# sourceMappingURL=observable.js.map - - -/***/ }), -/* 25 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = identity; -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function identity(x) { - return x; -} -//# sourceMappingURL=identity.js.map - - -/***/ }), -/* 26 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = multicast; -/* unused harmony export MulticastOperator */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_ConnectableObservable__ = __webpack_require__(224); -/** PURE_IMPORTS_START _observable_ConnectableObservable PURE_IMPORTS_END */ - -function multicast(subjectOrSubjectFactory, selector) { - return function multicastOperatorFunction(source) { - var subjectFactory; - if (typeof subjectOrSubjectFactory === 'function') { - subjectFactory = subjectOrSubjectFactory; - } - else { - subjectFactory = function subjectFactory() { - return subjectOrSubjectFactory; - }; - } - if (typeof selector === 'function') { - return source.lift(new MulticastOperator(subjectFactory, selector)); - } - var connectable = Object.create(source, __WEBPACK_IMPORTED_MODULE_0__observable_ConnectableObservable__["b" /* connectableObservableDescriptor */]); - connectable.source = source; - connectable.subjectFactory = subjectFactory; - return connectable; - }; -} -var MulticastOperator = /*@__PURE__*/ (function () { - function MulticastOperator(subjectFactory, selector) { - this.subjectFactory = subjectFactory; - this.selector = selector; - } - MulticastOperator.prototype.call = function (subscriber, source) { - var selector = this.selector; - var subject = this.subjectFactory(); - var subscription = selector(subject).subscribe(subscriber); - subscription.add(source.subscribe(subject)); - return subscription; - }; - return MulticastOperator; -}()); - -//# sourceMappingURL=multicast.js.map - - -/***/ }), -/* 27 */ -/***/ (function(module, exports) { - -module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if(!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), -/* 28 */ -/***/ (function(module, exports, __webpack_require__) { - -var fs = __webpack_require__(7) -var polyfills = __webpack_require__(270) -var legacy = __webpack_require__(272) -var queue = [] - -var util = __webpack_require__(10) - -function noop () {} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(queue) - __webpack_require__(29).equal(queue.length, 0) - }) -} - -module.exports = patch(__webpack_require__(80)) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) { - module.exports = patch(fs) -} - -// Always patch fs.close/closeSync, because we want to -// retry() whenever a close happens *anywhere* in the program. -// This is essential when multiple graceful-fs instances are -// in play at the same time. -module.exports.close = -fs.close = (function (fs$close) { return function (fd, cb) { - return fs$close.call(fs, fd, function (err) { - if (!err) - retry() - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) -}})(fs.close) - -module.exports.closeSync = -fs.closeSync = (function (fs$closeSync) { return function (fd) { - // Note that graceful-fs also retries when fs.closeSync() fails. - // Looks like a bug to me, although it's probably a harmless one. - var rval = fs$closeSync.apply(fs, arguments) - retry() - return rval -}})(fs.closeSync) - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - fs.FileReadStream = ReadStream; // Legacy name. - fs.FileWriteStream = WriteStream; // Legacy name. - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - var args = [path] - if (typeof options !== 'function') { - args.push(options) - } else { - cb = options - } - args.push(go$readdir$cb) - - return go$readdir(args) - - function go$readdir$cb (err, files) { - if (files && files.sort) - files.sort() - - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [args]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - } - } - - function go$readdir (args) { - return fs$readdir.apply(fs, args) - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - - var fs$WriteStream = fs.WriteStream - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - - fs.ReadStream = ReadStream - fs.WriteStream = WriteStream - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - queue.push(elem) -} - -function retry () { - var elem = queue.shift() - if (elem) { - debug('RETRY', elem[0].name, elem[1]) - elem[0].apply(null, elem[1]) - } -} - - -/***/ }), -/* 29 */ -/***/ (function(module, exports) { - -module.exports = require("assert"); - -/***/ }), -/* 30 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.getProjects = undefined; - -let getProjects = exports.getProjects = (() => { - var _ref = _asyncToGenerator(function* (rootPath, projectsPathsPatterns, { include = [], exclude = [] } = {}) { - const projects = new Map(); - for (const pattern of projectsPathsPatterns) { - const pathsToProcess = yield packagesFromGlobPattern({ pattern, rootPath }); - for (const filePath of pathsToProcess) { - const projectConfigPath = normalize(filePath); - const projectDir = _path2.default.dirname(projectConfigPath); - const project = yield _project.Project.fromPath(projectDir); - const excludeProject = exclude.includes(project.name) || include.length > 0 && !include.includes(project.name); - if (excludeProject) { - continue; - } - if (projects.has(project.name)) { - throw new _errors.CliError(`There are multiple projects with the same name [${project.name}]`, { - name: project.name, - paths: [project.path, projects.get(project.name).path] - }); - } - projects.set(project.name, project); - } - } - return projects; - }); - - return function getProjects(_x, _x2) { - return _ref.apply(this, arguments); - }; -})(); - -exports.buildProjectGraph = buildProjectGraph; -exports.topologicallyBatchProjects = topologicallyBatchProjects; -exports.includeTransitiveProjects = includeTransitiveProjects; - -var _glob = __webpack_require__(31); - -var _glob2 = _interopRequireDefault(_glob); - -var _path = __webpack_require__(3); - -var _path2 = _interopRequireDefault(_path); - -var _util = __webpack_require__(10); - -var _errors = __webpack_require__(60); - -var _project = __webpack_require__(87); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - -const glob = (0, _util.promisify)(_glob2.default); - -function packagesFromGlobPattern({ pattern, rootPath }) { - const globOptions = { - cwd: rootPath, - // Should throw in case of unusual errors when reading the file system - strict: true, - // Always returns absolute paths for matched files - absolute: true, - // Do not match ** against multiple filenames - // (This is only specified because we currently don't have a need for it.) - noglobstar: true - }; - return glob(_path2.default.join(pattern, 'package.json'), globOptions); -} -// https://github.com/isaacs/node-glob/blob/master/common.js#L104 -// glob always returns "\\" as "/" in windows, so everyone -// gets normalized because we can't have nice things. -function normalize(dir) { - return _path2.default.normalize(dir); -} -function buildProjectGraph(projects) { - const projectGraph = new Map(); - for (const project of projects.values()) { - const projectDeps = []; - const dependencies = project.allDependencies; - for (const depName of Object.keys(dependencies)) { - if (projects.has(depName)) { - const dep = projects.get(depName); - project.ensureValidProjectDependency(dep); - projectDeps.push(dep); - } - } - projectGraph.set(project.name, projectDeps); - } - return projectGraph; -} -function topologicallyBatchProjects(projectsToBatch, projectGraph) { - // We're going to be chopping stuff out of this list, so copy it. - const projectToBatchNames = new Set(projectsToBatch.keys()); - const batches = []; - while (projectToBatchNames.size > 0) { - // Get all projects that have no remaining dependencies within the repo - // that haven't yet been picked. - const batch = []; - for (const projectName of projectToBatchNames) { - const projectDeps = projectGraph.get(projectName); - const hasNotBatchedDependencies = projectDeps.some(dep => projectToBatchNames.has(dep.name)); - if (!hasNotBatchedDependencies) { - batch.push(projectsToBatch.get(projectName)); - } - } - // If we weren't able to find a project with no remaining dependencies, - // then we've encountered a cycle in the dependency graph. - const hasCycles = batch.length === 0; - if (hasCycles) { - const cycleProjectNames = [...projectToBatchNames]; - const message = 'Encountered a cycle in the dependency graph. Projects in cycle are:\n' + cycleProjectNames.join(', '); - throw new _errors.CliError(message); - } - batches.push(batch); - batch.forEach(project => projectToBatchNames.delete(project.name)); - } - return batches; -} -function includeTransitiveProjects(subsetOfProjects, allProjects, { onlyProductionDependencies = false } = {}) { - const dependentProjects = new Map(); - // the current list of packages we are expanding using breadth-first-search - const toProcess = [...subsetOfProjects]; - while (toProcess.length > 0) { - const project = toProcess.shift(); - const dependencies = onlyProductionDependencies ? project.productionDependencies : project.allDependencies; - Object.keys(dependencies).forEach(dep => { - if (allProjects.has(dep)) { - toProcess.push(allProjects.get(dep)); - } - }); - dependentProjects.set(project.name, project); - } - return dependentProjects; -} - -/***/ }), -/* 31 */ -/***/ (function(module, exports, __webpack_require__) { - -// Approach: -// -// 1. Get the minimatch set -// 2. For each pattern in the set, PROCESS(pattern, false) -// 3. Store matches per-set, then uniq them -// -// PROCESS(pattern, inGlobStar) -// Get the first [n] items from pattern that are all strings -// Join these together. This is PREFIX. -// If there is no more remaining, then stat(PREFIX) and -// add to matches if it succeeds. END. -// -// If inGlobStar and PREFIX is symlink and points to dir -// set ENTRIES = [] -// else readdir(PREFIX) as ENTRIES -// If fail, END -// -// with ENTRIES -// If pattern[n] is GLOBSTAR -// // handle the case where the globstar match is empty -// // by pruning it out, and testing the resulting pattern -// PROCESS(pattern[0..n] + pattern[n+1 .. $], false) -// // handle other cases. -// for ENTRY in ENTRIES (not dotfiles) -// // attach globstar + tail onto the entry -// // Mark that this entry is a globstar match -// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true) -// -// else // not globstar -// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot) -// Test ENTRY against pattern[n] -// If fails, continue -// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $]) -// -// Caveat: -// Cache all stats and readdirs results to minimize syscall. Since all -// we ever care about is existence and directory-ness, we can just keep -// `true` for files, and [children,...] for directories, or `false` for -// things that don't exist. - -module.exports = glob - -var fs = __webpack_require__(7) -var rp = __webpack_require__(82) -var minimatch = __webpack_require__(58) -var Minimatch = minimatch.Minimatch -var inherits = __webpack_require__(83) -var EE = __webpack_require__(41).EventEmitter -var path = __webpack_require__(3) -var assert = __webpack_require__(29) -var isAbsolute = __webpack_require__(59) -var globSync = __webpack_require__(278) -var common = __webpack_require__(84) -var alphasort = common.alphasort -var alphasorti = common.alphasorti -var setopts = common.setopts -var ownProp = common.ownProp -var inflight = __webpack_require__(279) -var util = __webpack_require__(10) -var childrenIgnored = common.childrenIgnored -var isIgnored = common.isIgnored - -var once = __webpack_require__(86) - -function glob (pattern, options, cb) { - if (typeof options === 'function') cb = options, options = {} - if (!options) options = {} - - if (options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return globSync(pattern, options) - } - - return new Glob(pattern, options, cb) -} - -glob.sync = globSync -var GlobSync = glob.GlobSync = globSync.GlobSync - -// old api surface -glob.glob = glob - -function extend (origin, add) { - if (add === null || typeof add !== 'object') { - return origin - } - - var keys = Object.keys(add) - var i = keys.length - while (i--) { - origin[keys[i]] = add[keys[i]] - } - return origin -} - -glob.hasMagic = function (pattern, options_) { - var options = extend({}, options_) - options.noprocess = true - - var g = new Glob(pattern, options) - var set = g.minimatch.set - - if (!pattern) - return false - - if (set.length > 1) - return true - - for (var j = 0; j < set[0].length; j++) { - if (typeof set[0][j] !== 'string') - return true - } - - return false -} - -glob.Glob = Glob -inherits(Glob, EE) -function Glob (pattern, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - - if (options && options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return new GlobSync(pattern, options) - } - - if (!(this instanceof Glob)) - return new Glob(pattern, options, cb) - - setopts(this, pattern, options) - this._didRealPath = false - - // process each pattern in the minimatch set - var n = this.minimatch.set.length - - // The matches are stored as {: true,...} so that - // duplicates are automagically pruned. - // Later, we do an Object.keys() on these. - // Keep them as a list so we can fill in when nonull is set. - this.matches = new Array(n) - - if (typeof cb === 'function') { - cb = once(cb) - this.on('error', cb) - this.on('end', function (matches) { - cb(null, matches) - }) - } - - var self = this - this._processing = 0 - - this._emitQueue = [] - this._processQueue = [] - this.paused = false - - if (this.noprocess) - return this - - if (n === 0) - return done() - - var sync = true - for (var i = 0; i < n; i ++) { - this._process(this.minimatch.set[i], i, false, done) - } - sync = false - - function done () { - --self._processing - if (self._processing <= 0) { - if (sync) { - process.nextTick(function () { - self._finish() - }) - } else { - self._finish() - } - } - } -} - -Glob.prototype._finish = function () { - assert(this instanceof Glob) - if (this.aborted) - return - - if (this.realpath && !this._didRealpath) - return this._realpath() - - common.finish(this) - this.emit('end', this.found) -} - -Glob.prototype._realpath = function () { - if (this._didRealpath) - return - - this._didRealpath = true - - var n = this.matches.length - if (n === 0) - return this._finish() - - var self = this - for (var i = 0; i < this.matches.length; i++) - this._realpathSet(i, next) - - function next () { - if (--n === 0) - self._finish() - } -} - -Glob.prototype._realpathSet = function (index, cb) { - var matchset = this.matches[index] - if (!matchset) - return cb() - - var found = Object.keys(matchset) - var self = this - var n = found.length - - if (n === 0) - return cb() - - var set = this.matches[index] = Object.create(null) - found.forEach(function (p, i) { - // If there's a problem with the stat, then it means that - // one or more of the links in the realpath couldn't be - // resolved. just return the abs value in that case. - p = self._makeAbs(p) - rp.realpath(p, self.realpathCache, function (er, real) { - if (!er) - set[real] = true - else if (er.syscall === 'stat') - set[p] = true - else - self.emit('error', er) // srsly wtf right here - - if (--n === 0) { - self.matches[index] = set - cb() - } - }) - }) -} - -Glob.prototype._mark = function (p) { - return common.mark(this, p) -} - -Glob.prototype._makeAbs = function (f) { - return common.makeAbs(this, f) -} - -Glob.prototype.abort = function () { - this.aborted = true - this.emit('abort') -} - -Glob.prototype.pause = function () { - if (!this.paused) { - this.paused = true - this.emit('pause') - } -} - -Glob.prototype.resume = function () { - if (this.paused) { - this.emit('resume') - this.paused = false - if (this._emitQueue.length) { - var eq = this._emitQueue.slice(0) - this._emitQueue.length = 0 - for (var i = 0; i < eq.length; i ++) { - var e = eq[i] - this._emitMatch(e[0], e[1]) - } - } - if (this._processQueue.length) { - var pq = this._processQueue.slice(0) - this._processQueue.length = 0 - for (var i = 0; i < pq.length; i ++) { - var p = pq[i] - this._processing-- - this._process(p[0], p[1], p[2], p[3]) - } - } - } -} - -Glob.prototype._process = function (pattern, index, inGlobStar, cb) { - assert(this instanceof Glob) - assert(typeof cb === 'function') - - if (this.aborted) - return - - this._processing++ - if (this.paused) { - this._processQueue.push([pattern, index, inGlobStar, cb]) - return - } - - //console.error('PROCESS %d', this._processing, pattern) - - // Get the first [n] parts of pattern that are all strings. - var n = 0 - while (typeof pattern[n] === 'string') { - n ++ - } - // now n is the index of the first one that is *not* a string. - - // see if there's anything else - var prefix - switch (n) { - // if not, then this is rather simple - case pattern.length: - this._processSimple(pattern.join('/'), index, cb) - return - - case 0: - // pattern *starts* with some non-trivial item. - // going to readdir(cwd), but not include the prefix in matches. - prefix = null - break - - default: - // pattern has some string bits in the front. - // whatever it starts with, whether that's 'absolute' like /foo/bar, - // or 'relative' like '../baz' - prefix = pattern.slice(0, n).join('/') - break - } - - var remain = pattern.slice(n) - - // get the list of entries. - var read - if (prefix === null) - read = '.' - else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { - if (!prefix || !isAbsolute(prefix)) - prefix = '/' + prefix - read = prefix - } else - read = prefix - - var abs = this._makeAbs(read) - - //if ignored, skip _processing - if (childrenIgnored(this, read)) - return cb() - - var isGlobStar = remain[0] === minimatch.GLOBSTAR - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb) - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb) -} - -Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - -Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - - // if the abs isn't a dir, then nothing can match! - if (!entries) - return cb() - - // It will only match dot entries if it starts with a dot, or if - // dot is set. Stuff like @(.foo|.bar) isn't allowed. - var pn = remain[0] - var negate = !!this.minimatch.negate - var rawGlob = pn._glob - var dotOk = this.dot || rawGlob.charAt(0) === '.' - - var matchedEntries = [] - for (var i = 0; i < entries.length; i++) { - var e = entries[i] - if (e.charAt(0) !== '.' || dotOk) { - var m - if (negate && !prefix) { - m = !e.match(pn) - } else { - m = e.match(pn) - } - if (m) - matchedEntries.push(e) - } - } - - //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries) - - var len = matchedEntries.length - // If there are no matched entries, then nothing matches. - if (len === 0) - return cb() - - // if this is the last remaining pattern bit, then no need for - // an additional stat *unless* the user has specified mark or - // stat explicitly. We know they exist, since readdir returned - // them. - - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - - if (e.charAt(0) === '/' && !this.nomount) { - e = path.join(this.root, e) - } - this._emitMatch(index, e) - } - // This was the last one, and no stats were needed - return cb() - } - - // now test all matched entries as stand-ins for that part - // of the pattern. - remain.shift() - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - var newPattern - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - this._process([e].concat(remain), index, inGlobStar, cb) - } - cb() -} - -Glob.prototype._emitMatch = function (index, e) { - if (this.aborted) - return - - if (isIgnored(this, e)) - return - - if (this.paused) { - this._emitQueue.push([index, e]) - return - } - - var abs = isAbsolute(e) ? e : this._makeAbs(e) - - if (this.mark) - e = this._mark(e) - - if (this.absolute) - e = abs - - if (this.matches[index][e]) - return - - if (this.nodir) { - var c = this.cache[abs] - if (c === 'DIR' || Array.isArray(c)) - return - } - - this.matches[index][e] = true - - var st = this.statCache[abs] - if (st) - this.emit('stat', e, st) - - this.emit('match', e) -} - -Glob.prototype._readdirInGlobStar = function (abs, cb) { - if (this.aborted) - return - - // follow all symlinked directories forever - // just proceed as if this is a non-globstar situation - if (this.follow) - return this._readdir(abs, false, cb) - - var lstatkey = 'lstat\0' + abs - var self = this - var lstatcb = inflight(lstatkey, lstatcb_) - - if (lstatcb) - fs.lstat(abs, lstatcb) - - function lstatcb_ (er, lstat) { - if (er && er.code === 'ENOENT') - return cb() - - var isSym = lstat && lstat.isSymbolicLink() - self.symlinks[abs] = isSym - - // If it's not a symlink or a dir, then it's definitely a regular file. - // don't bother doing a readdir in that case. - if (!isSym && lstat && !lstat.isDirectory()) { - self.cache[abs] = 'FILE' - cb() - } else - self._readdir(abs, false, cb) - } -} - -Glob.prototype._readdir = function (abs, inGlobStar, cb) { - if (this.aborted) - return - - cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb) - if (!cb) - return - - //console.error('RD %j %j', +inGlobStar, abs) - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs, cb) - - if (ownProp(this.cache, abs)) { - var c = this.cache[abs] - if (!c || c === 'FILE') - return cb() - - if (Array.isArray(c)) - return cb(null, c) - } - - var self = this - fs.readdir(abs, readdirCb(this, abs, cb)) -} - -function readdirCb (self, abs, cb) { - return function (er, entries) { - if (er) - self._readdirError(abs, er, cb) - else - self._readdirEntries(abs, entries, cb) - } -} - -Glob.prototype._readdirEntries = function (abs, entries, cb) { - if (this.aborted) - return - - // if we haven't asked to stat everything, then just - // assume that everything in there exists, so we can avoid - // having to stat it a second time. - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i ++) { - var e = entries[i] - if (abs === '/') - e = abs + e - else - e = abs + '/' + e - this.cache[e] = true - } - } - - this.cache[abs] = entries - return cb(null, entries) -} - -Glob.prototype._readdirError = function (f, er, cb) { - if (this.aborted) - return - - // handle errors, and cache the information - switch (er.code) { - case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 - case 'ENOTDIR': // totally normal. means it *does* exist. - var abs = this._makeAbs(f) - this.cache[abs] = 'FILE' - if (abs === this.cwdAbs) { - var error = new Error(er.code + ' invalid cwd ' + this.cwd) - error.path = this.cwd - error.code = er.code - this.emit('error', error) - this.abort() - } - break - - case 'ENOENT': // not terribly unusual - case 'ELOOP': - case 'ENAMETOOLONG': - case 'UNKNOWN': - this.cache[this._makeAbs(f)] = false - break - - default: // some unusual error. Treat as failure. - this.cache[this._makeAbs(f)] = false - if (this.strict) { - this.emit('error', er) - // If the error is handled, then we abort - // if not, we threw out of here - this.abort() - } - if (!this.silent) - console.error('glob error', er) - break - } - - return cb() -} - -Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - - -Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - //console.error('pgs2', prefix, remain[0], entries) - - // no entries means not a dir, so it can never have matches - // foo.txt/** doesn't match foo.txt - if (!entries) - return cb() - - // test without the globstar, and with every child both below - // and replacing the globstar. - var remainWithoutGlobStar = remain.slice(1) - var gspref = prefix ? [ prefix ] : [] - var noGlobStar = gspref.concat(remainWithoutGlobStar) - - // the noGlobStar pattern exits the inGlobStar state - this._process(noGlobStar, index, false, cb) - - var isSym = this.symlinks[abs] - var len = entries.length - - // If it's a symlink, and we're in a globstar, then stop - if (isSym && inGlobStar) - return cb() - - for (var i = 0; i < len; i++) { - var e = entries[i] - if (e.charAt(0) === '.' && !this.dot) - continue - - // these two cases enter the inGlobStar state - var instead = gspref.concat(entries[i], remainWithoutGlobStar) - this._process(instead, index, true, cb) - - var below = gspref.concat(entries[i], remain) - this._process(below, index, true, cb) - } - - cb() -} - -Glob.prototype._processSimple = function (prefix, index, cb) { - // XXX review this. Shouldn't it be doing the mounting etc - // before doing stat? kinda weird? - var self = this - this._stat(prefix, function (er, exists) { - self._processSimple2(prefix, index, er, exists, cb) - }) -} -Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) { - - //console.error('ps2', prefix, exists) - - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - // If it doesn't exist, then just mark the lack of results - if (!exists) - return cb() - - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix) - if (prefix.charAt(0) === '/') { - prefix = path.join(this.root, prefix) - } else { - prefix = path.resolve(this.root, prefix) - if (trail) - prefix += '/' - } - } - - if (process.platform === 'win32') - prefix = prefix.replace(/\\/g, '/') - - // Mark this as a match - this._emitMatch(index, prefix) - cb() -} - -// Returns either 'DIR', 'FILE', or false -Glob.prototype._stat = function (f, cb) { - var abs = this._makeAbs(f) - var needDir = f.slice(-1) === '/' - - if (f.length > this.maxLength) - return cb() - - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs] - - if (Array.isArray(c)) - c = 'DIR' - - // It exists, but maybe not how we need it - if (!needDir || c === 'DIR') - return cb(null, c) - - if (needDir && c === 'FILE') - return cb() - - // otherwise we have to stat, because maybe c=true - // if we know it exists, but not what it is. - } - - var exists - var stat = this.statCache[abs] - if (stat !== undefined) { - if (stat === false) - return cb(null, stat) - else { - var type = stat.isDirectory() ? 'DIR' : 'FILE' - if (needDir && type === 'FILE') - return cb() - else - return cb(null, type, stat) - } - } - - var self = this - var statcb = inflight('stat\0' + abs, lstatcb_) - if (statcb) - fs.lstat(abs, statcb) - - function lstatcb_ (er, lstat) { - if (lstat && lstat.isSymbolicLink()) { - // If it's a symlink, then treat it as the target, unless - // the target does not exist, then treat it as a file. - return fs.stat(abs, function (er, stat) { - if (er) - self._stat2(f, abs, null, lstat, cb) - else - self._stat2(f, abs, er, stat, cb) - }) - } else { - self._stat2(f, abs, er, lstat, cb) - } - } -} - -Glob.prototype._stat2 = function (f, abs, er, stat, cb) { - if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { - this.statCache[abs] = false - return cb() - } - - var needDir = f.slice(-1) === '/' - this.statCache[abs] = stat - - if (abs.slice(-1) === '/' && stat && !stat.isDirectory()) - return cb(null, false, stat) - - var c = true - if (stat) - c = stat.isDirectory() ? 'DIR' : 'FILE' - this.cache[abs] = this.cache[abs] || c - - if (needDir && c === 'FILE') - return cb() - - return cb(null, c, stat) -} - - -/***/ }), -/* 32 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = isFunction; -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function isFunction(x) { - return typeof x === 'function'; -} -//# sourceMappingURL=isFunction.js.map - - -/***/ }), -/* 33 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsyncAction; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Action__ = __webpack_require__(379); -/** PURE_IMPORTS_START tslib,_Action PURE_IMPORTS_END */ - - -var AsyncAction = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AsyncAction, _super); - function AsyncAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.pending = false; - return _this; - } - AsyncAction.prototype.schedule = function (state, delay) { - if (delay === void 0) { - delay = 0; - } - if (this.closed) { - return this; - } - this.state = state; - var id = this.id; - var scheduler = this.scheduler; - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, delay); - } - this.pending = true; - this.delay = delay; - this.id = this.id || this.requestAsyncId(scheduler, this.id, delay); - return this; - }; - AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { - delay = 0; - } - return setInterval(scheduler.flush.bind(scheduler, this), delay); - }; - AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { - delay = 0; - } - if (delay !== null && this.delay === delay && this.pending === false) { - return id; - } - return clearInterval(id) && undefined || undefined; - }; - AsyncAction.prototype.execute = function (state, delay) { - if (this.closed) { - return new Error('executing a cancelled action'); - } - this.pending = false; - var error = this._execute(state, delay); - if (error) { - return error; - } - else if (this.pending === false && this.id != null) { - this.id = this.recycleAsyncId(this.scheduler, this.id, null); - } - }; - AsyncAction.prototype._execute = function (state, delay) { - var errored = false; - var errorValue = undefined; - try { - this.work(state); - } - catch (e) { - errored = true; - errorValue = !!e && e || new Error(e); - } - if (errored) { - this.unsubscribe(); - return errorValue; - } - }; - AsyncAction.prototype._unsubscribe = function () { - var id = this.id; - var scheduler = this.scheduler; - var actions = scheduler.actions; - var index = actions.indexOf(this); - this.work = null; - this.state = null; - this.pending = false; - this.scheduler = null; - if (index !== -1) { - actions.splice(index, 1); - } - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, null); - } - this.delay = null; - }; - return AsyncAction; -}(__WEBPACK_IMPORTED_MODULE_1__Action__["a" /* Action */])); - -//# sourceMappingURL=AsyncAction.js.map - - -/***/ }), -/* 34 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsyncScheduler; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Scheduler__ = __webpack_require__(229); -/** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */ - - -var AsyncScheduler = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AsyncScheduler, _super); - function AsyncScheduler(SchedulerAction, now) { - if (now === void 0) { - now = __WEBPACK_IMPORTED_MODULE_1__Scheduler__["a" /* Scheduler */].now; - } - var _this = _super.call(this, SchedulerAction, function () { - if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) { - return AsyncScheduler.delegate.now(); - } - else { - return now(); - } - }) || this; - _this.actions = []; - _this.active = false; - _this.scheduled = undefined; - return _this; - } - AsyncScheduler.prototype.schedule = function (work, delay, state) { - if (delay === void 0) { - delay = 0; - } - if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) { - return AsyncScheduler.delegate.schedule(work, delay, state); - } - else { - return _super.prototype.schedule.call(this, work, delay, state); - } - }; - AsyncScheduler.prototype.flush = function (action) { - var actions = this.actions; - if (this.active) { - actions.push(action); - return; - } - var error; - this.active = true; - do { - if (error = action.execute(action.state, action.delay)) { - break; - } - } while (action = actions.shift()); - this.active = false; - if (error) { - while (action = actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AsyncScheduler; -}(__WEBPACK_IMPORTED_MODULE_1__Scheduler__["a" /* Scheduler */])); - -//# sourceMappingURL=AsyncScheduler.js.map - - -/***/ }), -/* 35 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ArgumentOutOfRangeError; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ - -var ArgumentOutOfRangeError = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ArgumentOutOfRangeError, _super); - function ArgumentOutOfRangeError() { - var _this = _super.call(this, 'argument out of range') || this; - _this.name = 'ArgumentOutOfRangeError'; - Object.setPrototypeOf(_this, ArgumentOutOfRangeError.prototype); - return _this; - } - return ArgumentOutOfRangeError; -}(Error)); - -//# sourceMappingURL=ArgumentOutOfRangeError.js.map - - -/***/ }), -/* 36 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EmptyError; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ - -var EmptyError = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](EmptyError, _super); - function EmptyError() { - var _this = _super.call(this, 'no elements in sequence') || this; - _this.name = 'EmptyError'; - Object.setPrototypeOf(_this, EmptyError.prototype); - return _this; - } - return EmptyError; -}(Error)); - -//# sourceMappingURL=EmptyError.js.map - - -/***/ }), -/* 37 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export getSymbolIterator */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return iterator; }); -/* unused harmony export $$iterator */ -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function getSymbolIterator() { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator'; - } - return Symbol.iterator; -} -var iterator = /*@__PURE__*/ getSymbolIterator(); -var $$iterator = iterator; -//# sourceMappingURL=iterator.js.map - - -/***/ }), -/* 38 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = mergeMap; -/* unused harmony export MergeMapOperator */ -/* unused harmony export MergeMapSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(16); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__observable_from__ = __webpack_require__(19); -/** PURE_IMPORTS_START tslib,_util_subscribeToResult,_OuterSubscriber,_map,_observable_from PURE_IMPORTS_END */ - - - - - -function mergeMap(project, resultSelector, concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; - } - if (typeof resultSelector === 'function') { - return function (source) { return source.pipe(mergeMap(function (a, i) { return Object(__WEBPACK_IMPORTED_MODULE_4__observable_from__["a" /* from */])(project(a, i)).pipe(Object(__WEBPACK_IMPORTED_MODULE_3__map__["a" /* map */])(function (b, ii) { return resultSelector(a, b, i, ii); })); }, concurrent)); }; - } - else if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return function (source) { return source.lift(new MergeMapOperator(project, concurrent)); }; -} -var MergeMapOperator = /*@__PURE__*/ (function () { - function MergeMapOperator(project, concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; - } - this.project = project; - this.concurrent = concurrent; - } - MergeMapOperator.prototype.call = function (observer, source) { - return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent)); - }; - return MergeMapOperator; -}()); - -var MergeMapSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](MergeMapSubscriber, _super); - function MergeMapSubscriber(destination, project, concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; - } - var _this = _super.call(this, destination) || this; - _this.project = project; - _this.concurrent = concurrent; - _this.hasCompleted = false; - _this.buffer = []; - _this.active = 0; - _this.index = 0; - return _this; - } - MergeMapSubscriber.prototype._next = function (value) { - if (this.active < this.concurrent) { - this._tryNext(value); - } - else { - this.buffer.push(value); - } - }; - MergeMapSubscriber.prototype._tryNext = function (value) { - var result; - var index = this.index++; - try { - result = this.project(value, index); - } - catch (err) { - this.destination.error(err); - return; - } - this.active++; - this._innerSub(result, value, index); - }; - MergeMapSubscriber.prototype._innerSub = function (ish, value, index) { - this.add(Object(__WEBPACK_IMPORTED_MODULE_1__util_subscribeToResult__["a" /* subscribeToResult */])(this, ish, value, index)); - }; - MergeMapSubscriber.prototype._complete = function () { - this.hasCompleted = true; - if (this.active === 0 && this.buffer.length === 0) { - this.destination.complete(); - } - }; - MergeMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - this.destination.next(innerValue); - }; - MergeMapSubscriber.prototype.notifyComplete = function (innerSub) { - var buffer = this.buffer; - this.remove(innerSub); - this.active--; - if (buffer.length > 0) { - this._next(buffer.shift()); - } - else if (this.active === 0 && this.hasCompleted) { - this.destination.complete(); - } - }; - return MergeMapSubscriber; -}(__WEBPACK_IMPORTED_MODULE_2__OuterSubscriber__["a" /* OuterSubscriber */])); - -//# sourceMappingURL=mergeMap.js.map - - -/***/ }), -/* 39 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = defaultIfEmpty; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -function defaultIfEmpty(defaultValue) { - if (defaultValue === void 0) { - defaultValue = null; - } - return function (source) { return source.lift(new DefaultIfEmptyOperator(defaultValue)); }; -} -var DefaultIfEmptyOperator = /*@__PURE__*/ (function () { - function DefaultIfEmptyOperator(defaultValue) { - this.defaultValue = defaultValue; - } - DefaultIfEmptyOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue)); - }; - return DefaultIfEmptyOperator; -}()); -var DefaultIfEmptySubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](DefaultIfEmptySubscriber, _super); - function DefaultIfEmptySubscriber(destination, defaultValue) { - var _this = _super.call(this, destination) || this; - _this.defaultValue = defaultValue; - _this.isEmpty = true; - return _this; - } - DefaultIfEmptySubscriber.prototype._next = function (value) { - this.isEmpty = false; - this.destination.next(value); - }; - DefaultIfEmptySubscriber.prototype._complete = function () { - if (this.isEmpty) { - this.destination.next(this.defaultValue); - } - this.destination.complete(); - }; - return DefaultIfEmptySubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); -//# sourceMappingURL=defaultIfEmpty.js.map - - -/***/ }), -/* 40 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = filter; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -function filter(predicate, thisArg) { - return function filterOperatorFunction(source) { - return source.lift(new FilterOperator(predicate, thisArg)); - }; -} -var FilterOperator = /*@__PURE__*/ (function () { - function FilterOperator(predicate, thisArg) { - this.predicate = predicate; - this.thisArg = thisArg; - } - FilterOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg)); - }; - return FilterOperator; -}()); -var FilterSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](FilterSubscriber, _super); - function FilterSubscriber(destination, predicate, thisArg) { - var _this = _super.call(this, destination) || this; - _this.predicate = predicate; - _this.thisArg = thisArg; - _this.count = 0; - return _this; - } - FilterSubscriber.prototype._next = function (value) { - var result; - try { - result = this.predicate.call(this.thisArg, value, this.count++); - } - catch (err) { - this.destination.error(err); - return; - } - if (result) { - this.destination.next(value); - } - }; - return FilterSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); -//# sourceMappingURL=filter.js.map - - -/***/ }), -/* 41 */ -/***/ (function(module, exports) { - -module.exports = require("events"); - -/***/ }), -/* 42 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.isLinkDependency = exports.createProductionPackageJson = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - -exports.readPackageJson = readPackageJson; -exports.writePackageJson = writePackageJson; -exports.transformDependencies = transformDependencies; - -var _readPkg = __webpack_require__(280); - -var _readPkg2 = _interopRequireDefault(_readPkg); - -var _writePkg = __webpack_require__(303); - -var _writePkg2 = _interopRequireDefault(_writePkg); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function readPackageJson(dir) { - return (0, _readPkg2.default)(dir, { normalize: false }); -} -function writePackageJson(path, json) { - return (0, _writePkg2.default)(path, json); -} -const createProductionPackageJson = exports.createProductionPackageJson = pkgJson => _extends({}, pkgJson, { - dependencies: transformDependencies(pkgJson.dependencies) -}); -const isLinkDependency = exports.isLinkDependency = depVersion => depVersion.startsWith('link:'); -/** - * Replaces `link:` dependencies with `file:` dependencies. When installing - * dependencies, these `file:` dependencies will be copied into `node_modules` - * instead of being symlinked. - * - * This will allow us to copy packages into the build and run `yarn`, which - * will then _copy_ the `file:` dependencies into `node_modules` instead of - * symlinking like we do in development. - */ -function transformDependencies(dependencies = {}) { - const newDeps = {}; - for (const name of Object.keys(dependencies)) { - const depVersion = dependencies[name]; - if (isLinkDependency(depVersion)) { - newDeps[name] = depVersion.replace('link:', 'file:'); - } else { - newDeps[name] = depVersion; - } - } - return newDeps; -} - -/***/ }), -/* 43 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return config; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var _enable_super_gross_mode_that_will_cause_bad_things = false; -var config = { - Promise: undefined, - set useDeprecatedSynchronousErrorHandling(value) { - if (value) { - var error = /*@__PURE__*/ new Error(); - /*@__PURE__*/ console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack); - } - else if (_enable_super_gross_mode_that_will_cause_bad_things) { - /*@__PURE__*/ console.log('RxJS: Back to a better error behavior. Thank you. <3'); - } - _enable_super_gross_mode_that_will_cause_bad_things = value; - }, - get useDeprecatedSynchronousErrorHandling() { - return _enable_super_gross_mode_that_will_cause_bad_things; - }, -}; -//# sourceMappingURL=config.js.map - - -/***/ }), -/* 44 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = noop; -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function noop() { } -//# sourceMappingURL=noop.js.map - - -/***/ }), -/* 45 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ObjectUnsubscribedError; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ - -var ObjectUnsubscribedError = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ObjectUnsubscribedError, _super); - function ObjectUnsubscribedError() { - var _this = _super.call(this, 'object unsubscribed') || this; - _this.name = 'ObjectUnsubscribedError'; - Object.setPrototypeOf(_this, ObjectUnsubscribedError.prototype); - return _this; - } - return ObjectUnsubscribedError; -}(Error)); - -//# sourceMappingURL=ObjectUnsubscribedError.js.map - - -/***/ }), -/* 46 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Notification; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_empty__ = __webpack_require__(12); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_of__ = __webpack_require__(68); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_throwError__ = __webpack_require__(70); -/** PURE_IMPORTS_START _observable_empty,_observable_of,_observable_throwError PURE_IMPORTS_END */ - - - -var Notification = /*@__PURE__*/ (function () { - function Notification(kind, value, error) { - this.kind = kind; - this.value = value; - this.error = error; - this.hasValue = kind === 'N'; - } - Notification.prototype.observe = function (observer) { - switch (this.kind) { - case 'N': - return observer.next && observer.next(this.value); - case 'E': - return observer.error && observer.error(this.error); - case 'C': - return observer.complete && observer.complete(); - } - }; - Notification.prototype.do = function (next, error, complete) { - var kind = this.kind; - switch (kind) { - case 'N': - return next && next(this.value); - case 'E': - return error && error(this.error); - case 'C': - return complete && complete(); - } - }; - Notification.prototype.accept = function (nextOrObserver, error, complete) { - if (nextOrObserver && typeof nextOrObserver.next === 'function') { - return this.observe(nextOrObserver); - } - else { - return this.do(nextOrObserver, error, complete); - } - }; - Notification.prototype.toObservable = function () { - var kind = this.kind; - switch (kind) { - case 'N': - return Object(__WEBPACK_IMPORTED_MODULE_1__observable_of__["a" /* of */])(this.value); - case 'E': - return Object(__WEBPACK_IMPORTED_MODULE_2__observable_throwError__["a" /* throwError */])(this.error); - case 'C': - return Object(__WEBPACK_IMPORTED_MODULE_0__observable_empty__["b" /* empty */])(); - } - throw new Error('unexpected notification kind value'); - }; - Notification.createNext = function (value) { - if (typeof value !== 'undefined') { - return new Notification('N', value); - } - return Notification.undefinedValueNotification; - }; - Notification.createError = function (err) { - return new Notification('E', undefined, err); - }; - Notification.createComplete = function () { - return Notification.completeNotification; - }; - Notification.completeNotification = new Notification('C'); - Notification.undefinedValueNotification = new Notification('N', undefined); - return Notification; -}()); - -//# sourceMappingURL=Notification.js.map - - -/***/ }), -/* 47 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsyncSubject; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(8); -/** PURE_IMPORTS_START tslib,_Subject,_Subscription PURE_IMPORTS_END */ - - - -var AsyncSubject = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AsyncSubject, _super); - function AsyncSubject() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.value = null; - _this.hasNext = false; - _this.hasCompleted = false; - return _this; - } - AsyncSubject.prototype._subscribe = function (subscriber) { - if (this.hasError) { - subscriber.error(this.thrownError); - return __WEBPACK_IMPORTED_MODULE_2__Subscription__["a" /* Subscription */].EMPTY; - } - else if (this.hasCompleted && this.hasNext) { - subscriber.next(this.value); - subscriber.complete(); - return __WEBPACK_IMPORTED_MODULE_2__Subscription__["a" /* Subscription */].EMPTY; - } - return _super.prototype._subscribe.call(this, subscriber); - }; - AsyncSubject.prototype.next = function (value) { - if (!this.hasCompleted) { - this.value = value; - this.hasNext = true; - } - }; - AsyncSubject.prototype.error = function (error) { - if (!this.hasCompleted) { - _super.prototype.error.call(this, error); - } - }; - AsyncSubject.prototype.complete = function () { - this.hasCompleted = true; - if (this.hasNext) { - _super.prototype.next.call(this, this.value); - } - _super.prototype.complete.call(this); - }; - return AsyncSubject; -}(__WEBPACK_IMPORTED_MODULE_1__Subject__["a" /* Subject */])); - -//# sourceMappingURL=AsyncSubject.js.map - - -/***/ }), -/* 48 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = concat; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isScheduler__ = __webpack_require__(15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__of__ = __webpack_require__(68); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__from__ = __webpack_require__(19); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__operators_concatAll__ = __webpack_require__(240); -/** PURE_IMPORTS_START _util_isScheduler,_of,_from,_operators_concatAll PURE_IMPORTS_END */ - - - - -function concat() { - var observables = []; - for (var _i = 0; _i < arguments.length; _i++) { - observables[_i] = arguments[_i]; - } - if (observables.length === 1 || (observables.length === 2 && Object(__WEBPACK_IMPORTED_MODULE_0__util_isScheduler__["a" /* isScheduler */])(observables[1]))) { - return Object(__WEBPACK_IMPORTED_MODULE_2__from__["a" /* from */])(observables[0]); - } - return Object(__WEBPACK_IMPORTED_MODULE_3__operators_concatAll__["a" /* concatAll */])()(__WEBPACK_IMPORTED_MODULE_1__of__["a" /* of */].apply(void 0, observables)); -} -//# sourceMappingURL=concat.js.map - - -/***/ }), -/* 49 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = isNumeric; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray__ = __webpack_require__(11); -/** PURE_IMPORTS_START _isArray PURE_IMPORTS_END */ - -function isNumeric(val) { - return !Object(__WEBPACK_IMPORTED_MODULE_0__isArray__["a" /* isArray */])(val) && (val - parseFloat(val) + 1) >= 0; -} -//# sourceMappingURL=isNumeric.js.map - - -/***/ }), -/* 50 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return throwIfEmpty; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__tap__ = __webpack_require__(249); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_EmptyError__ = __webpack_require__(36); -/** PURE_IMPORTS_START _tap,_util_EmptyError PURE_IMPORTS_END */ - - -var throwIfEmpty = function (errorFactory) { - if (errorFactory === void 0) { - errorFactory = defaultErrorFactory; - } - return Object(__WEBPACK_IMPORTED_MODULE_0__tap__["a" /* tap */])({ - hasValue: false, - next: function () { this.hasValue = true; }, - complete: function () { - if (!this.hasValue) { - throw errorFactory(); - } - } - }); -}; -function defaultErrorFactory() { - return new __WEBPACK_IMPORTED_MODULE_1__util_EmptyError__["a" /* EmptyError */](); -} -//# sourceMappingURL=throwIfEmpty.js.map - - -/***/ }), -/* 51 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = reduce; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scan__ = __webpack_require__(77); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__takeLast__ = __webpack_require__(76); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultIfEmpty__ = __webpack_require__(39); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_pipe__ = __webpack_require__(65); -/** PURE_IMPORTS_START _scan,_takeLast,_defaultIfEmpty,_util_pipe PURE_IMPORTS_END */ - - - - -function reduce(accumulator, seed) { - if (arguments.length >= 2) { - return function reduceOperatorFunctionWithSeed(source) { - return Object(__WEBPACK_IMPORTED_MODULE_3__util_pipe__["a" /* pipe */])(Object(__WEBPACK_IMPORTED_MODULE_0__scan__["a" /* scan */])(accumulator, seed), Object(__WEBPACK_IMPORTED_MODULE_1__takeLast__["a" /* takeLast */])(1), Object(__WEBPACK_IMPORTED_MODULE_2__defaultIfEmpty__["a" /* defaultIfEmpty */])(seed))(source); - }; - } - return function reduceOperatorFunction(source) { - return Object(__WEBPACK_IMPORTED_MODULE_3__util_pipe__["a" /* pipe */])(Object(__WEBPACK_IMPORTED_MODULE_0__scan__["a" /* scan */])(function (acc, value, index) { - return accumulator(acc, value, index + 1); - }), Object(__WEBPACK_IMPORTED_MODULE_1__takeLast__["a" /* takeLast */])(1))(source); - }; -} -//# sourceMappingURL=reduce.js.map - - -/***/ }), -/* 52 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; - -module.exports = function (str) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - return str.replace(matchOperatorsRe, '\\$&'); -}; - - -/***/ }), -/* 53 */ -/***/ (function(module, exports, __webpack_require__) { - -var conversions = __webpack_require__(79); -var route = __webpack_require__(261); - -var convert = {}; - -var models = Object.keys(conversions); - -function wrapRaw(fn) { - var wrappedFn = function (args) { - if (args === undefined || args === null) { - return args; - } - - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); - } - - return fn(args); - }; - - // preserve .conversion property if there is one - if ('conversion' in fn) { - wrappedFn.conversion = fn.conversion; - } - - return wrappedFn; -} - -function wrapRounded(fn) { - var wrappedFn = function (args) { - if (args === undefined || args === null) { - return args; - } - - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); - } - - var result = fn(args); - - // we're assuming the result is an array here. - // see notice in conversions.js; don't use box types - // in conversion functions. - if (typeof result === 'object') { - for (var len = result.length, i = 0; i < len; i++) { - result[i] = Math.round(result[i]); - } - } - - return result; - }; - - // preserve .conversion property if there is one - if ('conversion' in fn) { - wrappedFn.conversion = fn.conversion; - } - - return wrappedFn; -} - -models.forEach(function (fromModel) { - convert[fromModel] = {}; - - Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels}); - Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels}); - - var routes = route(fromModel); - var routeModels = Object.keys(routes); - - routeModels.forEach(function (toModel) { - var fn = routes[toModel]; - - convert[fromModel][toModel] = wrapRounded(fn); - convert[fromModel][toModel].raw = wrapRaw(fn); - }); -}); - -module.exports = convert; - - -/***/ }), -/* 54 */ -/***/ (function(module, exports) { - -module.exports = require("os"); - -/***/ }), -/* 55 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf('--'); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); -}; - - -/***/ }), -/* 56 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.createSymlink = exports.isFile = exports.isDirectory = exports.mkdirp = exports.readFile = exports.chmod = undefined; - -let statTest = (() => { - var _ref = _asyncToGenerator(function* (path, block) { - try { - return block((yield stat(path))); - } catch (e) { - if (e.code === 'ENOENT') { - return false; - } - throw e; - } - }); - - return function statTest(_x, _x2) { - return _ref.apply(this, arguments); - }; -})(); -/** - * Test if a path points to a directory. - * @param path - */ - - -let isDirectory = exports.isDirectory = (() => { - var _ref2 = _asyncToGenerator(function* (path) { - return yield statTest(path, function (stats) { - return stats.isDirectory(); - }); - }); - - return function isDirectory(_x3) { - return _ref2.apply(this, arguments); - }; -})(); -/** - * Test if a path points to a regular file. - * @param path - */ - - -let isFile = exports.isFile = (() => { - var _ref3 = _asyncToGenerator(function* (path) { - return yield statTest(path, function (stats) { - return stats.isFile(); - }); - }); - - return function isFile(_x4) { - return _ref3.apply(this, arguments); - }; -})(); -/** - * Create a symlink at dest that points to src. Adapted from - * https://github.com/lerna/lerna/blob/2f1b87d9e2295f587e4ac74269f714271d8ed428/src/FileSystemUtilities.js#L103. - * - * @param src - * @param dest - * @param type 'dir', 'file', 'junction', or 'exec'. 'exec' on - * windows will use the `cmd-shim` module since symlinks can't be used - * for executable files on windows. - */ - - -let createSymlink = exports.createSymlink = (() => { - var _ref4 = _asyncToGenerator(function* (src, dest, type) { - if (process.platform === 'win32') { - if (type === 'exec') { - yield cmdShim(src, dest); - } else { - yield forceCreate(src, dest, type); - } - } else { - const posixType = type === 'exec' ? 'file' : type; - const relativeSource = (0, _path.relative)((0, _path.dirname)(dest), src); - yield forceCreate(relativeSource, dest, posixType); - } - }); - - return function createSymlink(_x5, _x6, _x7) { - return _ref4.apply(this, arguments); - }; -})(); - -let forceCreate = (() => { - var _ref5 = _asyncToGenerator(function* (src, dest, type) { - try { - // If something exists at `dest` we need to remove it first. - yield unlink(dest); - } catch (error) { - if (error.code !== 'ENOENT') { - throw error; - } - } - yield symlink(src, dest, type); - }); - - return function forceCreate(_x8, _x9, _x10) { - return _ref5.apply(this, arguments); - }; -})(); - -var _cmdShim = __webpack_require__(269); - -var _cmdShim2 = _interopRequireDefault(_cmdShim); - -var _fs = __webpack_require__(7); - -var _fs2 = _interopRequireDefault(_fs); - -var _mkdirp = __webpack_require__(81); - -var _mkdirp2 = _interopRequireDefault(_mkdirp); - -var _path = __webpack_require__(3); - -var _util = __webpack_require__(10); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - -const stat = (0, _util.promisify)(_fs2.default.stat); -const readFile = (0, _util.promisify)(_fs2.default.readFile); -const unlink = (0, _util.promisify)(_fs2.default.unlink); -const symlink = (0, _util.promisify)(_fs2.default.symlink); -const chmod = (0, _util.promisify)(_fs2.default.chmod); -const cmdShim = (0, _util.promisify)(_cmdShim2.default); -const mkdirp = (0, _util.promisify)(_mkdirp2.default); -exports.chmod = chmod; -exports.readFile = readFile; -exports.mkdirp = mkdirp; - -/***/ }), -/* 57 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -let parallelizeBatches = exports.parallelizeBatches = (() => { - var _ref = _asyncToGenerator(function* (batches, fn) { - for (const batch of batches) { - // We need to make sure the entire batch has completed before we can move on - // to the next batch - yield parallelize(batch, fn); - } - }); - - return function parallelizeBatches(_x, _x2) { - return _ref.apply(this, arguments); - }; -})(); - -let parallelize = exports.parallelize = (() => { - var _ref2 = _asyncToGenerator(function* (items, fn, concurrency = 4) { - if (items.length === 0) { - return; - } - return new Promise(function (resolve, reject) { - let scheduleItem = (() => { - var _ref3 = _asyncToGenerator(function* (item) { - activePromises++; - try { - yield fn(item); - activePromises--; - if (values.length > 0) { - // We have more work to do, so we schedule the next promise - scheduleItem(values.shift()); - } else if (activePromises === 0) { - // We have no more values left, and all items have completed, so we've - // completed all the work. - resolve(); - } - } catch (error) { - reject(error); - } - }); - - return function scheduleItem(_x5) { - return _ref3.apply(this, arguments); - }; - })(); - - let activePromises = 0; - const values = items.slice(0); - - values.splice(0, concurrency).map(scheduleItem); - }); - }); - - return function parallelize(_x3, _x4) { - return _ref2.apply(this, arguments); - }; -})(); - -function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } - -/***/ }), -/* 58 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = minimatch -minimatch.Minimatch = Minimatch - -var path = { sep: '/' } -try { - path = __webpack_require__(3) -} catch (er) {} - -var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} -var expand = __webpack_require__(274) - -var plTypes = { - '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, - '?': { open: '(?:', close: ')?' }, - '+': { open: '(?:', close: ')+' }, - '*': { open: '(?:', close: ')*' }, - '@': { open: '(?:', close: ')' } -} - -// any single thing other than / -// don't need to escape / when using new RegExp() -var qmark = '[^/]' - -// * => any number of characters -var star = qmark + '*?' - -// ** when dots are allowed. Anything goes, except .. and . -// not (^ or / followed by one or two dots followed by $ or /), -// followed by anything, any number of times. -var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?' - -// not a ^ or / followed by a dot, -// followed by anything, any number of times. -var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?' - -// characters that need to be escaped in RegExp. -var reSpecials = charSet('().*{}+?[]^$\\!') - -// "abc" -> { a:true, b:true, c:true } -function charSet (s) { - return s.split('').reduce(function (set, c) { - set[c] = true - return set - }, {}) -} - -// normalizes slashes. -var slashSplit = /\/+/ - -minimatch.filter = filter -function filter (pattern, options) { - options = options || {} - return function (p, i, list) { - return minimatch(p, pattern, options) - } -} - -function ext (a, b) { - a = a || {} - b = b || {} - var t = {} - Object.keys(b).forEach(function (k) { - t[k] = b[k] - }) - Object.keys(a).forEach(function (k) { - t[k] = a[k] - }) - return t -} - -minimatch.defaults = function (def) { - if (!def || !Object.keys(def).length) return minimatch - - var orig = minimatch - - var m = function minimatch (p, pattern, options) { - return orig.minimatch(p, pattern, ext(def, options)) - } - - m.Minimatch = function Minimatch (pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)) - } - - return m -} - -Minimatch.defaults = function (def) { - if (!def || !Object.keys(def).length) return Minimatch - return minimatch.defaults(def).Minimatch -} - -function minimatch (p, pattern, options) { - if (typeof pattern !== 'string') { - throw new TypeError('glob pattern string required') - } - - if (!options) options = {} - - // shortcut: comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - return false - } - - // "" only matches "" - if (pattern.trim() === '') return p === '' - - return new Minimatch(pattern, options).match(p) -} - -function Minimatch (pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options) - } - - if (typeof pattern !== 'string') { - throw new TypeError('glob pattern string required') - } - - if (!options) options = {} - pattern = pattern.trim() - - // windows support: need to use /, not \ - if (path.sep !== '/') { - pattern = pattern.split(path.sep).join('/') - } - - this.options = options - this.set = [] - this.pattern = pattern - this.regexp = null - this.negate = false - this.comment = false - this.empty = false - - // make the set of regexps etc. - this.make() -} - -Minimatch.prototype.debug = function () {} - -Minimatch.prototype.make = make -function make () { - // don't do it more than once. - if (this._made) return - - var pattern = this.pattern - var options = this.options - - // empty patterns and comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - this.comment = true - return - } - if (!pattern) { - this.empty = true - return - } - - // step 1: figure out negation, etc. - this.parseNegate() - - // step 2: expand braces - var set = this.globSet = this.braceExpand() - - if (options.debug) this.debug = console.error - - this.debug(this.pattern, set) - - // step 3: now we have a set, so turn each one into a series of path-portion - // matching patterns. - // These will be regexps, except in the case of "**", which is - // set to the GLOBSTAR object for globstar behavior, - // and will not contain any / characters - set = this.globParts = set.map(function (s) { - return s.split(slashSplit) - }) - - this.debug(this.pattern, set) - - // glob --> regexps - set = set.map(function (s, si, set) { - return s.map(this.parse, this) - }, this) - - this.debug(this.pattern, set) - - // filter out everything that didn't compile properly. - set = set.filter(function (s) { - return s.indexOf(false) === -1 - }) - - this.debug(this.pattern, set) - - this.set = set -} - -Minimatch.prototype.parseNegate = parseNegate -function parseNegate () { - var pattern = this.pattern - var negate = false - var options = this.options - var negateOffset = 0 - - if (options.nonegate) return - - for (var i = 0, l = pattern.length - ; i < l && pattern.charAt(i) === '!' - ; i++) { - negate = !negate - negateOffset++ - } - - if (negateOffset) this.pattern = pattern.substr(negateOffset) - this.negate = negate -} - -// Brace expansion: -// a{b,c}d -> abd acd -// a{b,}c -> abc ac -// a{0..3}d -> a0d a1d a2d a3d -// a{b,c{d,e}f}g -> abg acdfg acefg -// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg -// -// Invalid sets are not expanded. -// a{2..}b -> a{2..}b -// a{b}c -> a{b}c -minimatch.braceExpand = function (pattern, options) { - return braceExpand(pattern, options) -} - -Minimatch.prototype.braceExpand = braceExpand - -function braceExpand (pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options - } else { - options = {} - } - } - - pattern = typeof pattern === 'undefined' - ? this.pattern : pattern - - if (typeof pattern === 'undefined') { - throw new TypeError('undefined pattern') - } - - if (options.nobrace || - !pattern.match(/\{.*\}/)) { - // shortcut. no need to expand. - return [pattern] - } - - return expand(pattern) -} - -// parse a component of the expanded set. -// At this point, no pattern may contain "/" in it -// so we're going to return a 2d array, where each entry is the full -// pattern, split on '/', and then turned into a regular expression. -// A regexp is made at the end which joins each array with an -// escaped /, and another full one which joins each regexp with |. -// -// Following the lead of Bash 4.1, note that "**" only has special meaning -// when it is the *only* thing in a path portion. Otherwise, any series -// of * is equivalent to a single *. Globstar behavior is enabled by -// default, and can be disabled by setting options.noglobstar. -Minimatch.prototype.parse = parse -var SUBPARSE = {} -function parse (pattern, isSub) { - if (pattern.length > 1024 * 64) { - throw new TypeError('pattern is too long') - } - - var options = this.options - - // shortcuts - if (!options.noglobstar && pattern === '**') return GLOBSTAR - if (pattern === '') return '' - - var re = '' - var hasMagic = !!options.nocase - var escaping = false - // ? => one single character - var patternListStack = [] - var negativeLists = [] - var stateChar - var inClass = false - var reClassStart = -1 - var classStart = -1 - // . and .. never match anything that doesn't start with ., - // even when options.dot is set. - var patternStart = pattern.charAt(0) === '.' ? '' // anything - // not (start or / followed by . or .. followed by / or end) - : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))' - : '(?!\\.)' - var self = this - - function clearStateChar () { - if (stateChar) { - // we had some state-tracking character - // that wasn't consumed by this pass. - switch (stateChar) { - case '*': - re += star - hasMagic = true - break - case '?': - re += qmark - hasMagic = true - break - default: - re += '\\' + stateChar - break - } - self.debug('clearStateChar %j %j', stateChar, re) - stateChar = false - } - } - - for (var i = 0, len = pattern.length, c - ; (i < len) && (c = pattern.charAt(i)) - ; i++) { - this.debug('%s\t%s %s %j', pattern, i, re, c) - - // skip over any that are escaped. - if (escaping && reSpecials[c]) { - re += '\\' + c - escaping = false - continue - } - - switch (c) { - case '/': - // completely not allowed, even escaped. - // Should already be path-split by now. - return false - - case '\\': - clearStateChar() - escaping = true - continue - - // the various stateChar values - // for the "extglob" stuff. - case '?': - case '*': - case '+': - case '@': - case '!': - this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) - - // all of those are literals inside a class, except that - // the glob [!a] means [^a] in regexp - if (inClass) { - this.debug(' in class') - if (c === '!' && i === classStart + 1) c = '^' - re += c - continue - } - - // if we already have a stateChar, then it means - // that there was something like ** or +? in there. - // Handle the stateChar, then proceed with this one. - self.debug('call clearStateChar %j', stateChar) - clearStateChar() - stateChar = c - // if extglob is disabled, then +(asdf|foo) isn't a thing. - // just clear the statechar *now*, rather than even diving into - // the patternList stuff. - if (options.noext) clearStateChar() - continue - - case '(': - if (inClass) { - re += '(' - continue - } - - if (!stateChar) { - re += '\\(' - continue - } - - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }) - // negation is (?:(?!js)[^/]*) - re += stateChar === '!' ? '(?:(?!(?:' : '(?:' - this.debug('plType %j %j', stateChar, re) - stateChar = false - continue - - case ')': - if (inClass || !patternListStack.length) { - re += '\\)' - continue - } - - clearStateChar() - hasMagic = true - var pl = patternListStack.pop() - // negation is (?:(?!js)[^/]*) - // The others are (?:) - re += pl.close - if (pl.type === '!') { - negativeLists.push(pl) - } - pl.reEnd = re.length - continue - - case '|': - if (inClass || !patternListStack.length || escaping) { - re += '\\|' - escaping = false - continue - } - - clearStateChar() - re += '|' - continue - - // these are mostly the same in regexp and glob - case '[': - // swallow any state-tracking char before the [ - clearStateChar() - - if (inClass) { - re += '\\' + c - continue - } - - inClass = true - classStart = i - reClassStart = re.length - re += c - continue - - case ']': - // a right bracket shall lose its special - // meaning and represent itself in - // a bracket expression if it occurs - // first in the list. -- POSIX.2 2.8.3.2 - if (i === classStart + 1 || !inClass) { - re += '\\' + c - escaping = false - continue - } - - // handle the case where we left a class open. - // "[z-a]" is valid, equivalent to "\[z-a\]" - if (inClass) { - // split where the last [ was, make sure we don't have - // an invalid re. if so, re-walk the contents of the - // would-be class to re-translate any characters that - // were passed through as-is - // TODO: It would probably be faster to determine this - // without a try/catch and a new RegExp, but it's tricky - // to do safely. For now, this is safe and works. - var cs = pattern.substring(classStart + 1, i) - try { - RegExp('[' + cs + ']') - } catch (er) { - // not a valid class! - var sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' - hasMagic = hasMagic || sp[1] - inClass = false - continue - } - } - - // finish up the class. - hasMagic = true - inClass = false - re += c - continue - - default: - // swallow any state char that wasn't consumed - clearStateChar() - - if (escaping) { - // no need - escaping = false - } else if (reSpecials[c] - && !(c === '^' && inClass)) { - re += '\\' - } - - re += c - - } // switch - } // for - - // handle the case where we left a class open. - // "[abc" is valid, equivalent to "\[abc" - if (inClass) { - // split where the last [ was, and escape it - // this is a huge pita. We now have to re-walk - // the contents of the would-be class to re-translate - // any characters that were passed through as-is - cs = pattern.substr(classStart + 1) - sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] - hasMagic = hasMagic || sp[1] - } - - // handle the case where we had a +( thing at the *end* - // of the pattern. - // each pattern list stack adds 3 chars, and we need to go through - // and escape any | chars that were passed through as-is for the regexp. - // Go through and escape them, taking care not to double-escape any - // | chars that were already escaped. - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length) - this.debug('setting tail', re, pl) - // maybe some even number of \, then maybe 1 \, followed by a | - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) { - if (!$2) { - // the | isn't already escaped, so escape it. - $2 = '\\' - } - - // need to escape all those slashes *again*, without escaping the - // one that we need for escaping the | character. As it works out, - // escaping an even number of slashes can be done by simply repeating - // it exactly after itself. That's why this trick works. - // - // I am sorry that you have to see this. - return $1 + $1 + $2 + '|' - }) - - this.debug('tail=%j\n %s', tail, tail, pl, re) - var t = pl.type === '*' ? star - : pl.type === '?' ? qmark - : '\\' + pl.type - - hasMagic = true - re = re.slice(0, pl.reStart) + t + '\\(' + tail - } - - // handle trailing things that only matter at the very end. - clearStateChar() - if (escaping) { - // trailing \\ - re += '\\\\' - } - - // only need to apply the nodot start if the re starts with - // something that could conceivably capture a dot - var addPatternStart = false - switch (re.charAt(0)) { - case '.': - case '[': - case '(': addPatternStart = true - } - - // Hack to work around lack of negative lookbehind in JS - // A pattern like: *.!(x).!(y|z) needs to ensure that a name - // like 'a.xyz.yz' doesn't match. So, the first negative - // lookahead, has to look ALL the way ahead, to the end of - // the pattern. - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n] - - var nlBefore = re.slice(0, nl.reStart) - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) - var nlAfter = re.slice(nl.reEnd) - - nlLast += nlAfter - - // Handle nested stuff like *(*.js|!(*.json)), where open parens - // mean that we should *not* include the ) in the bit that is considered - // "after" the negated section. - var openParensBefore = nlBefore.split('(').length - 1 - var cleanAfter = nlAfter - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') - } - nlAfter = cleanAfter - - var dollar = '' - if (nlAfter === '' && isSub !== SUBPARSE) { - dollar = '$' - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast - re = newRe - } - - // if the re is not "" at this point, then we need to make sure - // it doesn't match against an empty path part. - // Otherwise a/* will match a/, which it should not. - if (re !== '' && hasMagic) { - re = '(?=.)' + re - } - - if (addPatternStart) { - re = patternStart + re - } - - // parsing just a piece of a larger pattern. - if (isSub === SUBPARSE) { - return [re, hasMagic] - } - - // skip the regexp for non-magical patterns - // unescape anything in it, though, so that it'll be - // an exact match against a file etc. - if (!hasMagic) { - return globUnescape(pattern) - } - - var flags = options.nocase ? 'i' : '' - try { - var regExp = new RegExp('^' + re + '$', flags) - } catch (er) { - // If it was an invalid regular expression, then it can't match - // anything. This trick looks for a character after the end of - // the string, which is of course impossible, except in multi-line - // mode, but it's not a /m regex. - return new RegExp('$.') - } - - regExp._glob = pattern - regExp._src = re - - return regExp -} - -minimatch.makeRe = function (pattern, options) { - return new Minimatch(pattern, options || {}).makeRe() -} +/***/ }), +/* 2 */ +/***/ (function(module, exports) { -Minimatch.prototype.makeRe = makeRe -function makeRe () { - if (this.regexp || this.regexp === false) return this.regexp +module.exports = require("path"); - // at this point, this.set is a 2d array of partial - // pattern strings, or "**". - // - // It's better to use .match(). This function shouldn't - // be used, really, but it's pretty convenient sometimes, - // when you just want to work with a regex. - var set = this.set +/***/ }), +/* 3 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (!set.length) { - this.regexp = false - return this.regexp - } - var options = this.options +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Observable; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_toSubscriber__ = __webpack_require__(262); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__internal_symbol_observable__ = __webpack_require__(24); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_pipe__ = __webpack_require__(63); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(42); +/** PURE_IMPORTS_START _util_toSubscriber,_internal_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */ - var twoStar = options.noglobstar ? star - : options.dot ? twoStarDot - : twoStarNoDot - var flags = options.nocase ? 'i' : '' - var re = set.map(function (pattern) { - return pattern.map(function (p) { - return (p === GLOBSTAR) ? twoStar - : (typeof p === 'string') ? regExpEscape(p) - : p._src - }).join('\\\/') - }).join('|') - // must match entire pattern - // ending in a * or ** will make it less strict. - re = '^(?:' + re + ')$' - // can match anything, as long as it's not this. - if (this.negate) re = '^(?!' + re + ').*$' +var Observable = /*@__PURE__*/ (function () { + function Observable(subscribe) { + this._isScalar = false; + if (subscribe) { + this._subscribe = subscribe; + } + } + Observable.prototype.lift = function (operator) { + var observable = new Observable(); + observable.source = this; + observable.operator = operator; + return observable; + }; + Observable.prototype.subscribe = function (observerOrNext, error, complete) { + var operator = this.operator; + var sink = Object(__WEBPACK_IMPORTED_MODULE_0__util_toSubscriber__["a" /* toSubscriber */])(observerOrNext, error, complete); + if (operator) { + operator.call(sink, this.source); + } + else { + sink.add(this.source || (__WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ? + this._subscribe(sink) : + this._trySubscribe(sink)); + } + if (__WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { + if (sink.syncErrorThrowable) { + sink.syncErrorThrowable = false; + if (sink.syncErrorThrown) { + throw sink.syncErrorValue; + } + } + } + return sink; + }; + Observable.prototype._trySubscribe = function (sink) { + try { + return this._subscribe(sink); + } + catch (err) { + if (__WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].useDeprecatedSynchronousErrorHandling) { + sink.syncErrorThrown = true; + sink.syncErrorValue = err; + } + sink.error(err); + } + }; + Observable.prototype.forEach = function (next, promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor(promiseCtor); + return new promiseCtor(function (resolve, reject) { + var subscription; + subscription = _this.subscribe(function (value) { + try { + next(value); + } + catch (err) { + reject(err); + if (subscription) { + subscription.unsubscribe(); + } + } + }, reject, resolve); + }); + }; + Observable.prototype._subscribe = function (subscriber) { + var source = this.source; + return source && source.subscribe(subscriber); + }; + Observable.prototype[__WEBPACK_IMPORTED_MODULE_1__internal_symbol_observable__["a" /* observable */]] = function () { + return this; + }; + Observable.prototype.pipe = function () { + var operations = []; + for (var _i = 0; _i < arguments.length; _i++) { + operations[_i] = arguments[_i]; + } + if (operations.length === 0) { + return this; + } + return Object(__WEBPACK_IMPORTED_MODULE_2__util_pipe__["b" /* pipeFromArray */])(operations)(this); + }; + Observable.prototype.toPromise = function (promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor(promiseCtor); + return new promiseCtor(function (resolve, reject) { + var value; + _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); }); + }); + }; + Observable.create = function (subscribe) { + return new Observable(subscribe); + }; + return Observable; +}()); - try { - this.regexp = new RegExp(re, flags) - } catch (ex) { - this.regexp = false - } - return this.regexp +function getPromiseCtor(promiseCtor) { + if (!promiseCtor) { + promiseCtor = __WEBPACK_IMPORTED_MODULE_3__config__["a" /* config */].Promise || Promise; + } + if (!promiseCtor) { + throw new Error('no Promise impl found'); + } + return promiseCtor; } +//# sourceMappingURL=Observable.js.map -minimatch.match = function (list, pattern, options) { - options = options || {} - var mm = new Minimatch(pattern, options) - list = list.filter(function (f) { - return mm.match(f) - }) - if (mm.options.nonull && !list.length) { - list.push(pattern) - } - return list -} -Minimatch.prototype.match = match -function match (f, partial) { - this.debug('match', f, this.pattern) - // short-circuit in the case of busted things. - // comments, etc. - if (this.comment) return false - if (this.empty) return f === '' +/***/ }), +/* 4 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (f === '/' && partial) return true +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OuterSubscriber; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - var options = this.options - // windows: need to use /, not \ - if (path.sep !== '/') { - f = f.split(path.sep).join('/') - } +var OuterSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](OuterSubscriber, _super); + function OuterSubscriber() { + return _super !== null && _super.apply(this, arguments) || this; + } + OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { + this.destination.next(innerValue); + }; + OuterSubscriber.prototype.notifyError = function (error, innerSub) { + this.destination.error(error); + }; + OuterSubscriber.prototype.notifyComplete = function (innerSub) { + this.destination.complete(); + }; + return OuterSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); - // treat the test path as a set of pathparts. - f = f.split(slashSplit) - this.debug(this.pattern, 'split', f) +//# sourceMappingURL=OuterSubscriber.js.map - // just ONE of the pattern sets in this.set needs to match - // in order for it to be valid. If negating, then just one - // match means that we have failed. - // Either way, return on the first hit. - var set = this.set - this.debug(this.pattern, 'set', set) +/***/ }), +/* 5 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - // Find the basename of the path by looking for the last non-empty segment - var filename - var i - for (i = f.length - 1; i >= 0; i--) { - filename = f[i] - if (filename) break - } +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = subscribeToResult; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InnerSubscriber__ = __webpack_require__(276); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__subscribeTo__ = __webpack_require__(115); +/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo PURE_IMPORTS_END */ - for (i = 0; i < set.length; i++) { - var pattern = set[i] - var file = f - if (options.matchBase && pattern.length === 1) { - file = [filename] - } - var hit = this.matchOne(file, pattern, partial) - if (hit) { - if (options.flipNegate) return true - return !this.negate - } - } - // didn't get any hits. this is success if it's a negative - // pattern, failure otherwise. - if (options.flipNegate) return false - return this.negate +function subscribeToResult(outerSubscriber, result, outerValue, outerIndex) { + var destination = new __WEBPACK_IMPORTED_MODULE_0__InnerSubscriber__["a" /* InnerSubscriber */](outerSubscriber, outerValue, outerIndex); + return Object(__WEBPACK_IMPORTED_MODULE_1__subscribeTo__["a" /* subscribeTo */])(result)(destination); } +//# sourceMappingURL=subscribeToResult.js.map -// set partial to true to test if, for example, -// "/a/b" matches the start of "/*/b/*/d" -// Partial means, if you run out of file before you run -// out of pattern, then that's fine, as long as all -// the parts match. -Minimatch.prototype.matchOne = function (file, pattern, partial) { - var options = this.options - - this.debug('matchOne', - { 'this': this, file: file, pattern: pattern }) - this.debug('matchOne', file.length, pattern.length) +/***/ }), +/* 6 */ +/***/ (function(module, exports) { - for (var fi = 0, - pi = 0, - fl = file.length, - pl = pattern.length - ; (fi < fl) && (pi < pl) - ; fi++, pi++) { - this.debug('matchOne loop') - var p = pattern[pi] - var f = file[fi] +module.exports = require("fs"); - this.debug(pattern, p, f) +/***/ }), +/* 7 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - // should be impossible. - // some invalid regexp stuff in the set. - if (p === false) return false +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscription; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isObject__ = __webpack_require__(103); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isFunction__ = __webpack_require__(29); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__ = __webpack_require__(104); +/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_tryCatch,_util_errorObject,_util_UnsubscriptionError PURE_IMPORTS_END */ - if (p === GLOBSTAR) { - this.debug('GLOBSTAR', [pattern, p, f]) - // "**" - // a/**/b/**/c would match the following: - // a/b/x/y/z/c - // a/x/y/z/b/c - // a/b/x/b/x/c - // a/b/c - // To do this, take the rest of the pattern after - // the **, and see if it would match the file remainder. - // If so, return success. - // If not, the ** "swallows" a segment, and try again. - // This is recursively awful. - // - // a/**/b/**/c matching a/b/x/y/z/c - // - a matches a - // - doublestar - // - matchOne(b/x/y/z/c, b/**/c) - // - b matches b - // - doublestar - // - matchOne(x/y/z/c, c) -> no - // - matchOne(y/z/c, c) -> no - // - matchOne(z/c, c) -> no - // - matchOne(c, c) yes, hit - var fr = fi - var pr = pi + 1 - if (pr === pl) { - this.debug('** at the end') - // a ** at the end will just swallow the rest. - // We have found a match. - // however, it will not swallow /.x, unless - // options.dot is set. - // . and .. are *never* matched by **, for explosively - // exponential reasons. - for (; fi < fl; fi++) { - if (file[fi] === '.' || file[fi] === '..' || - (!options.dot && file[fi].charAt(0) === '.')) return false - } - return true - } - // ok, let's see if we can swallow whatever we can. - while (fr < fl) { - var swallowee = file[fr] - this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) - // XXX remove this slice. Just pass the start index. - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug('globstar found match!', fr, fl, swallowee) - // found a match. - return true - } else { - // can't swallow "." or ".." ever. - // can only swallow ".foo" when explicitly asked. - if (swallowee === '.' || swallowee === '..' || - (!options.dot && swallowee.charAt(0) === '.')) { - this.debug('dot detected!', file, fr, pattern, pr) - break - } - // ** swallows a segment, and continue. - this.debug('globstar swallow a segment, and continue') - fr++ +var Subscription = /*@__PURE__*/ (function () { + function Subscription(unsubscribe) { + this.closed = false; + this._parent = null; + this._parents = null; + this._subscriptions = null; + if (unsubscribe) { + this._unsubscribe = unsubscribe; } - } - - // no match was found. - // However, in partial mode, we can't say this is necessarily over. - // If there's more *pattern* left, then - if (partial) { - // ran out of file - this.debug('\n>>> no match, partial?', file, fr, pattern, pr) - if (fr === fl) return true - } - return false - } - - // something other than ** - // non-magic patterns just have to match exactly - // patterns with magic have been turned into regexps. - var hit - if (typeof p === 'string') { - if (options.nocase) { - hit = f.toLowerCase() === p.toLowerCase() - } else { - hit = f === p - } - this.debug('string match', p, f, hit) - } else { - hit = f.match(p) - this.debug('pattern match', p, f, hit) } + Subscription.prototype.unsubscribe = function () { + var hasErrors = false; + var errors; + if (this.closed) { + return; + } + var _a = this, _parent = _a._parent, _parents = _a._parents, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions; + this.closed = true; + this._parent = null; + this._parents = null; + this._subscriptions = null; + var index = -1; + var len = _parents ? _parents.length : 0; + while (_parent) { + _parent.remove(this); + _parent = ++index < len && _parents[index] || null; + } + if (Object(__WEBPACK_IMPORTED_MODULE_2__util_isFunction__["a" /* isFunction */])(_unsubscribe)) { + var trial = Object(__WEBPACK_IMPORTED_MODULE_3__util_tryCatch__["a" /* tryCatch */])(_unsubscribe).call(this); + if (trial === __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */]) { + hasErrors = true; + errors = errors || (__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */] ? + flattenUnsubscriptionErrors(__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e.errors) : [__WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e]); + } + } + if (Object(__WEBPACK_IMPORTED_MODULE_0__util_isArray__["a" /* isArray */])(_subscriptions)) { + index = -1; + len = _subscriptions.length; + while (++index < len) { + var sub = _subscriptions[index]; + if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isObject__["a" /* isObject */])(sub)) { + var trial = Object(__WEBPACK_IMPORTED_MODULE_3__util_tryCatch__["a" /* tryCatch */])(sub.unsubscribe).call(sub); + if (trial === __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */]) { + hasErrors = true; + errors = errors || []; + var err = __WEBPACK_IMPORTED_MODULE_4__util_errorObject__["a" /* errorObject */].e; + if (err instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */]) { + errors = errors.concat(flattenUnsubscriptionErrors(err.errors)); + } + else { + errors.push(err); + } + } + } + } + } + if (hasErrors) { + throw new __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */](errors); + } + }; + Subscription.prototype.add = function (teardown) { + if (!teardown || (teardown === Subscription.EMPTY)) { + return Subscription.EMPTY; + } + if (teardown === this) { + return this; + } + var subscription = teardown; + switch (typeof teardown) { + case 'function': + subscription = new Subscription(teardown); + case 'object': + if (subscription.closed || typeof subscription.unsubscribe !== 'function') { + return subscription; + } + else if (this.closed) { + subscription.unsubscribe(); + return subscription; + } + else if (typeof subscription._addParent !== 'function') { + var tmp = subscription; + subscription = new Subscription(); + subscription._subscriptions = [tmp]; + } + break; + default: + throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.'); + } + var subscriptions = this._subscriptions || (this._subscriptions = []); + subscriptions.push(subscription); + subscription._addParent(this); + return subscription; + }; + Subscription.prototype.remove = function (subscription) { + var subscriptions = this._subscriptions; + if (subscriptions) { + var subscriptionIndex = subscriptions.indexOf(subscription); + if (subscriptionIndex !== -1) { + subscriptions.splice(subscriptionIndex, 1); + } + } + }; + Subscription.prototype._addParent = function (parent) { + var _a = this, _parent = _a._parent, _parents = _a._parents; + if (!_parent || _parent === parent) { + this._parent = parent; + } + else if (!_parents) { + this._parents = [parent]; + } + else if (_parents.indexOf(parent) === -1) { + _parents.push(parent); + } + }; + Subscription.EMPTY = (function (empty) { + empty.closed = true; + return empty; + }(new Subscription())); + return Subscription; +}()); - if (!hit) return false - } - - // Note: ending in / means that we'll get a final "" - // at the end of the pattern. This can only match a - // corresponding "" at the end of the file. - // If the file ends in /, then it can only match a - // a pattern that ends in /, unless the pattern just - // doesn't have any more for it. But, a/b/ should *not* - // match "a/b/*", even though "" matches against the - // [^/]*? pattern, except in partial mode, where it might - // simply not be reached yet. - // However, a/b/ should still satisfy a/* - - // now either we fell off the end of the pattern, or we're done. - if (fi === fl && pi === pl) { - // ran out of pattern and filename at the same time. - // an exact hit! - return true - } else if (fi === fl) { - // ran out of file, but still had pattern left. - // this is ok if we're doing the match as part of - // a glob fs traversal. - return partial - } else if (pi === pl) { - // ran out of pattern, still have file left. - // this is only acceptable if we're on the very last - // empty segment of a file with a trailing slash. - // a/* should match a/b/ - var emptyFileEnd = (fi === fl - 1) && (file[fi] === '') - return emptyFileEnd - } - - // should be unreachable. - throw new Error('wtf?') -} - -// replace stuff like \* with * -function globUnescape (s) { - return s.replace(/\\(.)/g, '$1') +function flattenUnsubscriptionErrors(errors) { + return errors.reduce(function (errs, err) { return errs.concat((err instanceof __WEBPACK_IMPORTED_MODULE_5__util_UnsubscriptionError__["a" /* UnsubscriptionError */]) ? err.errors : err); }, []); } +//# sourceMappingURL=Subscription.js.map -function regExpEscape (s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') -} +/***/ }), +/* 8 */ +/***/ (function(module, exports) { + +module.exports = require("util"); /***/ }), -/* 59 */ -/***/ (function(module, exports, __webpack_require__) { +/* 9 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SubjectSubscriber; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subject; }); +/* unused harmony export AnonymousSubject */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__ = __webpack_require__(44); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__SubjectSubscription__ = __webpack_require__(106); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_symbol_rxSubscriber__ = __webpack_require__(62); +/** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */ -function posix(path) { - return path.charAt(0) === '/'; -} -function win32(path) { - // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 - var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; - var result = splitDeviceRe.exec(path); - var device = result[1] || ''; - var isUnc = Boolean(device && device.charAt(1) !== ':'); - // UNC paths are always absolute - return Boolean(result[2] || isUnc); -} -module.exports = process.platform === 'win32' ? win32 : posix; -module.exports.posix = posix; -module.exports.win32 = win32; + + +var SubjectSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](SubjectSubscriber, _super); + function SubjectSubscriber(destination) { + var _this = _super.call(this, destination) || this; + _this.destination = destination; + return _this; + } + return SubjectSubscriber; +}(__WEBPACK_IMPORTED_MODULE_2__Subscriber__["a" /* Subscriber */])); + +var Subject = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](Subject, _super); + function Subject() { + var _this = _super.call(this) || this; + _this.observers = []; + _this.closed = false; + _this.isStopped = false; + _this.hasError = false; + _this.thrownError = null; + return _this; + } + Subject.prototype[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_rxSubscriber__["a" /* rxSubscriber */]] = function () { + return new SubjectSubscriber(this); + }; + Subject.prototype.lift = function (operator) { + var subject = new AnonymousSubject(this, this); + subject.operator = operator; + return subject; + }; + Subject.prototype.next = function (value) { + if (this.closed) { + throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); + } + if (!this.isStopped) { + var observers = this.observers; + var len = observers.length; + var copy = observers.slice(); + for (var i = 0; i < len; i++) { + copy[i].next(value); + } + } + }; + Subject.prototype.error = function (err) { + if (this.closed) { + throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); + } + this.hasError = true; + this.thrownError = err; + this.isStopped = true; + var observers = this.observers; + var len = observers.length; + var copy = observers.slice(); + for (var i = 0; i < len; i++) { + copy[i].error(err); + } + this.observers.length = 0; + }; + Subject.prototype.complete = function () { + if (this.closed) { + throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); + } + this.isStopped = true; + var observers = this.observers; + var len = observers.length; + var copy = observers.slice(); + for (var i = 0; i < len; i++) { + copy[i].complete(); + } + this.observers.length = 0; + }; + Subject.prototype.unsubscribe = function () { + this.isStopped = true; + this.closed = true; + this.observers = null; + }; + Subject.prototype._trySubscribe = function (subscriber) { + if (this.closed) { + throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); + } + else { + return _super.prototype._trySubscribe.call(this, subscriber); + } + }; + Subject.prototype._subscribe = function (subscriber) { + if (this.closed) { + throw new __WEBPACK_IMPORTED_MODULE_4__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); + } + else if (this.hasError) { + subscriber.error(this.thrownError); + return __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; + } + else if (this.isStopped) { + subscriber.complete(); + return __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; + } + else { + this.observers.push(subscriber); + return new __WEBPACK_IMPORTED_MODULE_5__SubjectSubscription__["a" /* SubjectSubscription */](this, subscriber); + } + }; + Subject.prototype.asObservable = function () { + var observable = new __WEBPACK_IMPORTED_MODULE_1__Observable__["a" /* Observable */](); + observable.source = this; + return observable; + }; + Subject.create = function (destination, source) { + return new AnonymousSubject(destination, source); + }; + return Subject; +}(__WEBPACK_IMPORTED_MODULE_1__Observable__["a" /* Observable */])); + +var AnonymousSubject = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AnonymousSubject, _super); + function AnonymousSubject(destination, source) { + var _this = _super.call(this) || this; + _this.destination = destination; + _this.source = source; + return _this; + } + AnonymousSubject.prototype.next = function (value) { + var destination = this.destination; + if (destination && destination.next) { + destination.next(value); + } + }; + AnonymousSubject.prototype.error = function (err) { + var destination = this.destination; + if (destination && destination.error) { + this.destination.error(err); + } + }; + AnonymousSubject.prototype.complete = function () { + var destination = this.destination; + if (destination && destination.complete) { + this.destination.complete(); + } + }; + AnonymousSubject.prototype._subscribe = function (subscriber) { + var source = this.source; + if (source) { + return this.source.subscribe(subscriber); + } + else { + return __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; + } + }; + return AnonymousSubject; +}(Subject)); + +//# sourceMappingURL=Subject.js.map /***/ }), -/* 60 */ -/***/ (function(module, exports, __webpack_require__) { +/* 10 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isArray; }); +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +var isArray = Array.isArray || (function (x) { return x && typeof x.length === 'number'; }); +//# sourceMappingURL=isArray.js.map -Object.defineProperty(exports, "__esModule", { - value: true -}); -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -class CliError extends Error { - constructor(message, meta = {}) { - super(message); - this.meta = meta; - } -} -exports.CliError = CliError; - /***/ }), -/* 61 */ -/***/ (function(module, exports, __webpack_require__) { +/* 11 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -// Note: since nyc uses this module to output coverage, any lines -// that are in the direct sync flow of nyc's outputCoverage are -// ignored, since we can never get coverage for them. -var assert = __webpack_require__(29) -var signals = __webpack_require__(307) +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EMPTY; }); +/* harmony export (immutable) */ __webpack_exports__["b"] = empty; +/* unused harmony export emptyScheduled */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ -var EE = __webpack_require__(41) -/* istanbul ignore if */ -if (typeof EE !== 'function') { - EE = EE.EventEmitter +var EMPTY = /*@__PURE__*/ new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return subscriber.complete(); }); +function empty(scheduler) { + return scheduler ? emptyScheduled(scheduler) : EMPTY; } - -var emitter -if (process.__signal_exit_emitter__) { - emitter = process.__signal_exit_emitter__ -} else { - emitter = process.__signal_exit_emitter__ = new EE() - emitter.count = 0 - emitter.emitted = {} +function emptyScheduled(scheduler) { + return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); }); } +//# sourceMappingURL=empty.js.map -// Because this emitter is a global, we have to check to see if a -// previous version of this library failed to enable infinite listeners. -// I know what you're about to say. But literally everything about -// signal-exit is a compromise with evil. Get used to it. -if (!emitter.infinite) { - emitter.setMaxListeners(Infinity) - emitter.infinite = true -} -module.exports = function (cb, opts) { - assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') +/***/ }), +/* 12 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (loaded === false) { - load() - } +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return async; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AsyncAction__ = __webpack_require__(30); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(31); +/** PURE_IMPORTS_START _AsyncAction,_AsyncScheduler PURE_IMPORTS_END */ - var ev = 'exit' - if (opts && opts.alwaysLast) { - ev = 'afterexit' - } - var remove = function () { - emitter.removeListener(ev, cb) - if (emitter.listeners('exit').length === 0 && - emitter.listeners('afterexit').length === 0) { - unload() - } - } - emitter.on(ev, cb) +var async = /*@__PURE__*/ new __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__["a" /* AsyncScheduler */](__WEBPACK_IMPORTED_MODULE_0__AsyncAction__["a" /* AsyncAction */]); +//# sourceMappingURL=async.js.map - return remove -} -module.exports.unload = unload -function unload () { - if (!loaded) { - return - } - loaded = false +/***/ }), +/* 13 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - signals.forEach(function (sig) { - try { - process.removeListener(sig, sigListeners[sig]) - } catch (er) {} - }) - process.emit = originalProcessEmit - process.reallyExit = originalProcessReallyExit - emitter.count -= 1 -} +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return errorObject; }); +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +var errorObject = { e: {} }; +//# sourceMappingURL=errorObject.js.map -function emit (event, code, signal) { - if (emitter.emitted[event]) { - return - } - emitter.emitted[event] = true - emitter.emit(event, code, signal) -} -// { : , ... } -var sigListeners = {} -signals.forEach(function (sig) { - sigListeners[sig] = function listener () { - // If there are no other listeners, an exit is coming! - // Simplest way: remove us and then re-send the signal. - // We know that this will kill the process, so we can - // safely emit now. - var listeners = process.listeners(sig) - if (listeners.length === emitter.count) { - unload() - emit('exit', null, sig) - /* istanbul ignore next */ - emit('afterexit', null, sig) - /* istanbul ignore next */ - process.kill(process.pid, sig) - } - } -}) +/***/ }), +/* 14 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -module.exports.signals = function () { - return signals +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = isScheduler; +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +function isScheduler(value) { + return value && typeof value.schedule === 'function'; } +//# sourceMappingURL=isScheduler.js.map -module.exports.load = load - -var loaded = false - -function load () { - if (loaded) { - return - } - loaded = true - // This is the number of onSignalExit's that are in play. - // It's important so that we can count the correct number of - // listeners on signals, and don't wait for the other one to - // handle it instead of us. - emitter.count += 1 +/***/ }), +/* 15 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - signals = signals.filter(function (sig) { - try { - process.on(sig, sigListeners[sig]) - return true - } catch (er) { - return false - } - }) +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = map; +/* unused harmony export MapOperator */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - process.emit = processEmit - process.reallyExit = processReallyExit -} -var originalProcessReallyExit = process.reallyExit -function processReallyExit (code) { - process.exitCode = code || 0 - emit('exit', process.exitCode, null) - /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) - /* istanbul ignore next */ - originalProcessReallyExit.call(process, process.exitCode) +function map(project, thisArg) { + return function mapOperation(source) { + if (typeof project !== 'function') { + throw new TypeError('argument is not a function. Are you looking for `mapTo()`?'); + } + return source.lift(new MapOperator(project, thisArg)); + }; } - -var originalProcessEmit = process.emit -function processEmit (ev, arg) { - if (ev === 'exit') { - if (arg !== undefined) { - process.exitCode = arg +var MapOperator = /*@__PURE__*/ (function () { + function MapOperator(project, thisArg) { + this.project = project; + this.thisArg = thisArg; } - var ret = originalProcessEmit.apply(this, arguments) - emit('exit', process.exitCode, null) - /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) - return ret - } else { - return originalProcessEmit.apply(this, arguments) - } -} - + MapOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg)); + }; + return MapOperator; +}()); -/***/ }), -/* 62 */ -/***/ (function(module, exports) { +var MapSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](MapSubscriber, _super); + function MapSubscriber(destination, project, thisArg) { + var _this = _super.call(this, destination) || this; + _this.project = project; + _this.count = 0; + _this.thisArg = thisArg || _this; + return _this; + } + MapSubscriber.prototype._next = function (value) { + var result; + try { + result = this.project.call(this.thisArg, value, this.count++); + } + catch (err) { + this.destination.error(err); + return; + } + this.destination.next(result); + }; + return MapSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); +//# sourceMappingURL=map.js.map -module.exports = require("child_process"); /***/ }), -/* 63 */ +/* 16 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = hostReportError; -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function hostReportError(err) { - setTimeout(function () { throw err; }); +/* harmony export (immutable) */ __webpack_exports__["a"] = tryCatch; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__errorObject__ = __webpack_require__(13); +/** PURE_IMPORTS_START _errorObject PURE_IMPORTS_END */ + +var tryCatchTarget; +function tryCatcher() { + try { + return tryCatchTarget.apply(this, arguments); + } + catch (e) { + __WEBPACK_IMPORTED_MODULE_0__errorObject__["a" /* errorObject */].e = e; + return __WEBPACK_IMPORTED_MODULE_0__errorObject__["a" /* errorObject */]; + } } -//# sourceMappingURL=hostReportError.js.map +function tryCatch(fn) { + tryCatchTarget = fn; + return tryCatcher; +} +//# sourceMappingURL=tryCatch.js.map /***/ }), -/* 64 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 17 */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return rxSubscriber; }); -/* unused harmony export $$rxSubscriber */ -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var rxSubscriber = (typeof Symbol === 'function' && typeof Symbol.for === 'function') - ? /*@__PURE__*/ Symbol.for('rxSubscriber') - : '@@rxSubscriber'; -var $$rxSubscriber = rxSubscriber; -//# sourceMappingURL=rxSubscriber.js.map +const escapeStringRegexp = __webpack_require__(51); +const ansiStyles = __webpack_require__(138); +const stdoutColor = __webpack_require__(141).stdout; + +const template = __webpack_require__(142); + +const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); + +// `supportsColor.level` → `ansiStyles.color[name]` mapping +const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; + +// `color-convert` models to exclude from the Chalk API due to conflicts and such +const skipModels = new Set(['gray']); + +const styles = Object.create(null); + +function applyOptions(obj, options) { + options = options || {}; + + // Detect level if not set manually + const scLevel = stdoutColor ? stdoutColor.level : 0; + obj.level = options.level === undefined ? scLevel : options.level; + obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0; +} + +function Chalk(options) { + // We check for this.template here since calling `chalk.constructor()` + // by itself will have a `this` of a previously constructed chalk object + if (!this || !(this instanceof Chalk) || this.template) { + const chalk = {}; + applyOptions(chalk, options); + + chalk.template = function () { + const args = [].slice.call(arguments); + return chalkTag.apply(null, [chalk.template].concat(args)); + }; -/***/ }), -/* 65 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + Object.setPrototypeOf(chalk, Chalk.prototype); + Object.setPrototypeOf(chalk.template, chalk); -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = pipe; -/* harmony export (immutable) */ __webpack_exports__["b"] = pipeFromArray; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(44); -/** PURE_IMPORTS_START _noop PURE_IMPORTS_END */ + chalk.template.constructor = Chalk; -function pipe() { - var fns = []; - for (var _i = 0; _i < arguments.length; _i++) { - fns[_i] = arguments[_i]; - } - return pipeFromArray(fns); + return chalk.template; + } + + applyOptions(this, options); } -function pipeFromArray(fns) { - if (!fns) { - return __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* noop */]; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce(function (prev, fn) { return fn(prev); }, input); - }; + +// Use bright blue on Windows as the normal blue color is illegible +if (isSimpleWindowsTerm) { + ansiStyles.blue.open = '\u001B[94m'; } -//# sourceMappingURL=pipe.js.map +for (const key of Object.keys(ansiStyles)) { + ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); -/***/ }), -/* 66 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + styles[key] = { + get() { + const codes = ansiStyles[key]; + return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key); + } + }; +} -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = refCount; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ +styles.visible = { + get() { + return build.call(this, this._styles || [], true, 'visible'); + } +}; +ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); +for (const model of Object.keys(ansiStyles.color.ansi)) { + if (skipModels.has(model)) { + continue; + } -function refCount() { - return function refCountOperatorFunction(source) { - return source.lift(new RefCountOperator(source)); - }; + styles[model] = { + get() { + const level = this.level; + return function () { + const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); + const codes = { + open, + close: ansiStyles.color.close, + closeRe: ansiStyles.color.closeRe + }; + return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); + }; + } + }; } -var RefCountOperator = /*@__PURE__*/ (function () { - function RefCountOperator(connectable) { - this.connectable = connectable; - } - RefCountOperator.prototype.call = function (subscriber, source) { - var connectable = this.connectable; - connectable._refCount++; - var refCounter = new RefCountSubscriber(subscriber, connectable); - var subscription = source.subscribe(refCounter); - if (!refCounter.closed) { - refCounter.connection = connectable.connect(); - } - return subscription; - }; - return RefCountOperator; -}()); -var RefCountSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](RefCountSubscriber, _super); - function RefCountSubscriber(destination, connectable) { - var _this = _super.call(this, destination) || this; - _this.connectable = connectable; - return _this; - } - RefCountSubscriber.prototype._unsubscribe = function () { - var connectable = this.connectable; - if (!connectable) { - this.connection = null; - return; - } - this.connectable = null; - var refCount = connectable._refCount; - if (refCount <= 0) { - this.connection = null; - return; - } - connectable._refCount = refCount - 1; - if (refCount > 1) { - this.connection = null; - return; - } - var connection = this.connection; - var sharedConnection = connectable._connection; - this.connection = null; - if (sharedConnection && (!connection || sharedConnection === connection)) { - sharedConnection.unsubscribe(); - } - }; - return RefCountSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); -//# sourceMappingURL=refCount.js.map +ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g'); +for (const model of Object.keys(ansiStyles.bgColor.ansi)) { + if (skipModels.has(model)) { + continue; + } -/***/ }), -/* 67 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); + styles[bgModel] = { + get() { + const level = this.level; + return function () { + const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); + const codes = { + open, + close: ansiStyles.bgColor.close, + closeRe: ansiStyles.bgColor.closeRe + }; + return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); + }; + } + }; +} -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ReplaySubject; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_queue__ = __webpack_require__(228); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__operators_observeOn__ = __webpack_require__(230); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_ObjectUnsubscribedError__ = __webpack_require__(45); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__SubjectSubscription__ = __webpack_require__(225); -/** PURE_IMPORTS_START tslib,_Subject,_scheduler_queue,_Subscription,_operators_observeOn,_util_ObjectUnsubscribedError,_SubjectSubscription PURE_IMPORTS_END */ +const proto = Object.defineProperties(() => {}, styles); +function build(_styles, _empty, key) { + const builder = function () { + return applyStyle.apply(builder, arguments); + }; + builder._styles = _styles; + builder._empty = _empty; + const self = this; + Object.defineProperty(builder, 'level', { + enumerable: true, + get() { + return self.level; + }, + set(level) { + self.level = level; + } + }); + Object.defineProperty(builder, 'enabled', { + enumerable: true, + get() { + return self.enabled; + }, + set(enabled) { + self.enabled = enabled; + } + }); + // See below for fix regarding invisible grey/dim combination on Windows + builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey'; -var ReplaySubject = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ReplaySubject, _super); - function ReplaySubject(bufferSize, windowTime, scheduler) { - if (bufferSize === void 0) { - bufferSize = Number.POSITIVE_INFINITY; - } - if (windowTime === void 0) { - windowTime = Number.POSITIVE_INFINITY; - } - var _this = _super.call(this) || this; - _this.scheduler = scheduler; - _this._events = []; - _this._infiniteTimeWindow = false; - _this._bufferSize = bufferSize < 1 ? 1 : bufferSize; - _this._windowTime = windowTime < 1 ? 1 : windowTime; - if (windowTime === Number.POSITIVE_INFINITY) { - _this._infiniteTimeWindow = true; - _this.next = _this.nextInfiniteTimeWindow; - } - else { - _this.next = _this.nextTimeWindow; - } - return _this; - } - ReplaySubject.prototype.nextInfiniteTimeWindow = function (value) { - var _events = this._events; - _events.push(value); - if (_events.length > this._bufferSize) { - _events.shift(); - } - _super.prototype.next.call(this, value); - }; - ReplaySubject.prototype.nextTimeWindow = function (value) { - this._events.push(new ReplayEvent(this._getNow(), value)); - this._trimBufferThenGetEvents(); - _super.prototype.next.call(this, value); - }; - ReplaySubject.prototype._subscribe = function (subscriber) { - var _infiniteTimeWindow = this._infiniteTimeWindow; - var _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents(); - var scheduler = this.scheduler; - var len = _events.length; - var subscription; - if (this.closed) { - throw new __WEBPACK_IMPORTED_MODULE_5__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); - } - else if (this.isStopped || this.hasError) { - subscription = __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; - } - else { - this.observers.push(subscriber); - subscription = new __WEBPACK_IMPORTED_MODULE_6__SubjectSubscription__["a" /* SubjectSubscription */](this, subscriber); - } - if (scheduler) { - subscriber.add(subscriber = new __WEBPACK_IMPORTED_MODULE_4__operators_observeOn__["a" /* ObserveOnSubscriber */](subscriber, scheduler)); - } - if (_infiniteTimeWindow) { - for (var i = 0; i < len && !subscriber.closed; i++) { - subscriber.next(_events[i]); - } - } - else { - for (var i = 0; i < len && !subscriber.closed; i++) { - subscriber.next(_events[i].value); - } - } - if (this.hasError) { - subscriber.error(this.thrownError); - } - else if (this.isStopped) { - subscriber.complete(); - } - return subscription; - }; - ReplaySubject.prototype._getNow = function () { - return (this.scheduler || __WEBPACK_IMPORTED_MODULE_2__scheduler_queue__["a" /* queue */]).now(); - }; - ReplaySubject.prototype._trimBufferThenGetEvents = function () { - var now = this._getNow(); - var _bufferSize = this._bufferSize; - var _windowTime = this._windowTime; - var _events = this._events; - var eventsCount = _events.length; - var spliceCount = 0; - while (spliceCount < eventsCount) { - if ((now - _events[spliceCount].time) < _windowTime) { - break; - } - spliceCount++; - } - if (eventsCount > _bufferSize) { - spliceCount = Math.max(spliceCount, eventsCount - _bufferSize); - } - if (spliceCount > 0) { - _events.splice(0, spliceCount); - } - return _events; - }; - return ReplaySubject; -}(__WEBPACK_IMPORTED_MODULE_1__Subject__["a" /* Subject */])); + // `__proto__` is used because we must return a function, but there is + // no way to create a function with a different prototype + builder.__proto__ = proto; // eslint-disable-line no-proto -var ReplayEvent = /*@__PURE__*/ (function () { - function ReplayEvent(time, value) { - this.time = time; - this.value = value; - } - return ReplayEvent; -}()); -//# sourceMappingURL=ReplaySubject.js.map + return builder; +} +function applyStyle() { + // Support varags, but simply cast to string in case there's only one arg + const args = arguments; + const argsLen = args.length; + let str = String(arguments[0]); -/***/ }), -/* 68 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (argsLen === 0) { + return ''; + } -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = of; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isScheduler__ = __webpack_require__(15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fromArray__ = __webpack_require__(21); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__empty__ = __webpack_require__(12); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__scalar__ = __webpack_require__(69); -/** PURE_IMPORTS_START _util_isScheduler,_fromArray,_empty,_scalar PURE_IMPORTS_END */ + if (argsLen > 1) { + // Don't slice `arguments`, it prevents V8 optimizations + for (let a = 1; a < argsLen; a++) { + str += ' ' + args[a]; + } + } + if (!this.enabled || this.level <= 0 || !str) { + return this._empty ? '' : str; + } + // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, + // see https://github.com/chalk/chalk/issues/58 + // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. + const originalDim = ansiStyles.dim.open; + if (isSimpleWindowsTerm && this.hasGrey) { + ansiStyles.dim.open = ''; + } + for (const code of this._styles.slice().reverse()) { + // Replace any instances already present with a re-opening code + // otherwise only the part of the string until said closing code + // will be colored, and the rest will simply be 'plain'. + str = code.open + str.replace(code.closeRe, code.open) + code.close; -function of() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = args[args.length - 1]; - if (Object(__WEBPACK_IMPORTED_MODULE_0__util_isScheduler__["a" /* isScheduler */])(scheduler)) { - args.pop(); - } - else { - scheduler = undefined; - } - switch (args.length) { - case 0: - return Object(__WEBPACK_IMPORTED_MODULE_2__empty__["b" /* empty */])(scheduler); - case 1: - return scheduler ? Object(__WEBPACK_IMPORTED_MODULE_1__fromArray__["a" /* fromArray */])(args, scheduler) : Object(__WEBPACK_IMPORTED_MODULE_3__scalar__["a" /* scalar */])(args[0]); - default: - return Object(__WEBPACK_IMPORTED_MODULE_1__fromArray__["a" /* fromArray */])(args, scheduler); - } + // Close the styling before a linebreak and reopen + // after next line to fix a bleed issue on macOS + // https://github.com/chalk/chalk/pull/92 + str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); + } + + // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue + ansiStyles.dim.open = originalDim; + + return str; } -//# sourceMappingURL=of.js.map +function chalkTag(chalk, strings) { + if (!Array.isArray(strings)) { + // If chalk() was called by itself or with a string, + // return the string itself as a string. + return [].slice.call(arguments, 1).join(' '); + } -/***/ }), -/* 69 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + const args = [].slice.call(arguments, 2); + const parts = [strings.raw[0]]; -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = scalar; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ + for (let i = 1; i < strings.length; i++) { + parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&')); + parts.push(String(strings.raw[i])); + } -function scalar(value) { - var result = new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { - subscriber.next(value); - subscriber.complete(); - }); - result._isScalar = true; - result.value = value; - return result; + return template(chalk, parts.join('')); } -//# sourceMappingURL=scalar.js.map + +Object.defineProperties(Chalk.prototype, styles); + +module.exports = Chalk(); // eslint-disable-line new-cap +module.exports.supportsColor = stdoutColor; +module.exports.default = module.exports; // For TypeScript /***/ }), -/* 70 */ +/* 18 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = throwError; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ - -function throwError(error, scheduler) { - if (!scheduler) { - return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return subscriber.error(error); }); - } - else { - return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return scheduler.schedule(dispatch, 0, { error: error, subscriber: subscriber }); }); - } -} -function dispatch(_a) { - var error = _a.error, subscriber = _a.subscriber; - subscriber.error(error); -} -//# sourceMappingURL=throwError.js.map +/* harmony export (immutable) */ __webpack_exports__["a"] = from; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isPromise__ = __webpack_require__(120); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArrayLike__ = __webpack_require__(119); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isInteropObservable__ = __webpack_require__(277); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isIterable__ = __webpack_require__(278); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__fromArray__ = __webpack_require__(20); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__fromPromise__ = __webpack_require__(279); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__fromIterable__ = __webpack_require__(280); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__fromObservable__ = __webpack_require__(281); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__util_subscribeTo__ = __webpack_require__(115); +/** PURE_IMPORTS_START _Observable,_util_isPromise,_util_isArrayLike,_util_isInteropObservable,_util_isIterable,_fromArray,_fromPromise,_fromIterable,_fromObservable,_util_subscribeTo PURE_IMPORTS_END */ -/***/ }), -/* 71 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["b"] = combineLatest; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CombineLatestOperator; }); -/* unused harmony export CombineLatestSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isScheduler__ = __webpack_require__(15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__fromArray__ = __webpack_require__(21); -/** PURE_IMPORTS_START tslib,_util_isScheduler,_util_isArray,_OuterSubscriber,_util_subscribeToResult,_fromArray PURE_IMPORTS_END */ -var NONE = {}; -function combineLatest() { - var observables = []; - for (var _i = 0; _i < arguments.length; _i++) { - observables[_i] = arguments[_i]; - } - var resultSelector = null; - var scheduler = null; - if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isScheduler__["a" /* isScheduler */])(observables[observables.length - 1])) { - scheduler = observables.pop(); - } - if (typeof observables[observables.length - 1] === 'function') { - resultSelector = observables.pop(); - } - if (observables.length === 1 && Object(__WEBPACK_IMPORTED_MODULE_2__util_isArray__["a" /* isArray */])(observables[0])) { - observables = observables[0]; - } - return Object(__WEBPACK_IMPORTED_MODULE_5__fromArray__["a" /* fromArray */])(observables, scheduler).lift(new CombineLatestOperator(resultSelector)); -} -var CombineLatestOperator = /*@__PURE__*/ (function () { - function CombineLatestOperator(resultSelector) { - this.resultSelector = resultSelector; - } - CombineLatestOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector)); - }; - return CombineLatestOperator; -}()); -var CombineLatestSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](CombineLatestSubscriber, _super); - function CombineLatestSubscriber(destination, resultSelector) { - var _this = _super.call(this, destination) || this; - _this.resultSelector = resultSelector; - _this.active = 0; - _this.values = []; - _this.observables = []; - return _this; - } - CombineLatestSubscriber.prototype._next = function (observable) { - this.values.push(NONE); - this.observables.push(observable); - }; - CombineLatestSubscriber.prototype._complete = function () { - var observables = this.observables; - var len = observables.length; - if (len === 0) { - this.destination.complete(); - } - else { - this.active = len; - this.toRespond = len; - for (var i = 0; i < len; i++) { - var observable = observables[i]; - this.add(Object(__WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__["a" /* subscribeToResult */])(this, observable, observable, i)); - } - } - }; - CombineLatestSubscriber.prototype.notifyComplete = function (unused) { - if ((this.active -= 1) === 0) { - this.destination.complete(); +function from(input, scheduler) { + if (!scheduler) { + if (input instanceof __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */]) { + return input; } - }; - CombineLatestSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - var values = this.values; - var oldVal = values[outerIndex]; - var toRespond = !this.toRespond - ? 0 - : oldVal === NONE ? --this.toRespond : this.toRespond; - values[outerIndex] = innerValue; - if (toRespond === 0) { - if (this.resultSelector) { - this._tryResultSelector(values); - } - else { - this.destination.next(values.slice()); - } + return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](Object(__WEBPACK_IMPORTED_MODULE_9__util_subscribeTo__["a" /* subscribeTo */])(input)); + } + if (input != null) { + if (Object(__WEBPACK_IMPORTED_MODULE_3__util_isInteropObservable__["a" /* isInteropObservable */])(input)) { + return Object(__WEBPACK_IMPORTED_MODULE_8__fromObservable__["a" /* fromObservable */])(input, scheduler); } - }; - CombineLatestSubscriber.prototype._tryResultSelector = function (values) { - var result; - try { - result = this.resultSelector.apply(this, values); + else if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isPromise__["a" /* isPromise */])(input)) { + return Object(__WEBPACK_IMPORTED_MODULE_6__fromPromise__["a" /* fromPromise */])(input, scheduler); } - catch (err) { - this.destination.error(err); - return; + else if (Object(__WEBPACK_IMPORTED_MODULE_2__util_isArrayLike__["a" /* isArrayLike */])(input)) { + return Object(__WEBPACK_IMPORTED_MODULE_5__fromArray__["a" /* fromArray */])(input, scheduler); } - this.destination.next(result); - }; - return CombineLatestSubscriber; -}(__WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__["a" /* OuterSubscriber */])); + else if (Object(__WEBPACK_IMPORTED_MODULE_4__util_isIterable__["a" /* isIterable */])(input) || typeof input === 'string') { + return Object(__WEBPACK_IMPORTED_MODULE_7__fromIterable__["a" /* fromIterable */])(input, scheduler); + } + } + throw new TypeError((input !== null && typeof input || input) + ' is not observable'); +} +//# sourceMappingURL=from.js.map + + +/***/ }), +/* 19 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; -//# sourceMappingURL=combineLatest.js.map +Object.defineProperty(exports, "__esModule", { + value: true +}); +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +const log = exports.log = { + /** + * Log something to the console. Ideally we would use a real logger in + * kbn-pm, but that's a pretty big change for now. + * @param ...args + */ + write(...args) { + // tslint:disable no-console + console.log(...args); + } +}; /***/ }), -/* 72 */ +/* 20 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = mergeAll; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeMap__ = __webpack_require__(38); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_identity__ = __webpack_require__(25); -/** PURE_IMPORTS_START _mergeMap,_util_identity PURE_IMPORTS_END */ +/* harmony export (immutable) */ __webpack_exports__["a"] = fromArray; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToArray__ = __webpack_require__(112); +/** PURE_IMPORTS_START _Observable,_Subscription,_util_subscribeToArray PURE_IMPORTS_END */ -function mergeAll(concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; + +function fromArray(input, scheduler) { + if (!scheduler) { + return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](Object(__WEBPACK_IMPORTED_MODULE_2__util_subscribeToArray__["a" /* subscribeToArray */])(input)); + } + else { + return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { + var sub = new __WEBPACK_IMPORTED_MODULE_1__Subscription__["a" /* Subscription */](); + var i = 0; + sub.add(scheduler.schedule(function () { + if (i === input.length) { + subscriber.complete(); + return; + } + subscriber.next(input[i++]); + if (!subscriber.closed) { + sub.add(this.schedule()); + } + })); + return sub; + }); } - return Object(__WEBPACK_IMPORTED_MODULE_0__mergeMap__["a" /* mergeMap */])(__WEBPACK_IMPORTED_MODULE_1__util_identity__["a" /* identity */], concurrent); } -//# sourceMappingURL=mergeAll.js.map +//# sourceMappingURL=fromArray.js.map /***/ }), -/* 73 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 21 */ +/***/ (function(module, exports) { + +module.exports = require("stream"); + +/***/ }), +/* 22 */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = defer; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__from__ = __webpack_require__(19); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__empty__ = __webpack_require__(12); -/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */ +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.getProjects = undefined; -function defer(observableFactory) { - return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { - var input; - try { - input = observableFactory(); - } - catch (err) { - subscriber.error(err); - return undefined; +let getProjects = exports.getProjects = (() => { + var _ref = _asyncToGenerator(function* (rootPath, projectsPathsPatterns, { include = [], exclude = [] } = {}) { + const projects = new Map(); + const workspaceProjectsPaths = yield (0, _workspaces.workspacePackagePaths)(rootPath); + for (const pattern of projectsPathsPatterns) { + const pathsToProcess = yield packagesFromGlobPattern({ pattern, rootPath }); + for (const filePath of pathsToProcess) { + const projectConfigPath = normalize(filePath); + const projectDir = _path2.default.dirname(projectConfigPath); + const project = yield _project.Project.fromPath(projectDir); + if (workspaceProjectsPaths.indexOf(filePath) >= 0) { + project.isWorkspaceProject = true; + } + const excludeProject = exclude.includes(project.name) || include.length > 0 && !include.includes(project.name); + if (excludeProject) { + continue; + } + if (projects.has(project.name)) { + throw new _errors.CliError(`There are multiple projects with the same name [${project.name}]`, { + name: project.name, + paths: [project.path, projects.get(project.name).path] + }); + } + projects.set(project.name, project); + } } - var source = input ? Object(__WEBPACK_IMPORTED_MODULE_1__from__["a" /* from */])(input) : Object(__WEBPACK_IMPORTED_MODULE_2__empty__["b" /* empty */])(); - return source.subscribe(subscriber); + return projects; }); -} -//# sourceMappingURL=defer.js.map + return function getProjects(_x, _x2) { + return _ref.apply(this, arguments); + }; +})(); -/***/ }), -/* 74 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +exports.buildProjectGraph = buildProjectGraph; +exports.topologicallyBatchProjects = topologicallyBatchProjects; +exports.includeTransitiveProjects = includeTransitiveProjects; -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["b"] = zip; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ZipOperator; }); -/* unused harmony export ZipSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fromArray__ = __webpack_require__(21); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__ = __webpack_require__(37); -/** PURE_IMPORTS_START tslib,_fromArray,_util_isArray,_Subscriber,_OuterSubscriber,_util_subscribeToResult,_.._internal_symbol_iterator PURE_IMPORTS_END */ +var _glob = __webpack_require__(23); +var _glob2 = _interopRequireDefault(_glob); +var _path = __webpack_require__(2); +var _path2 = _interopRequireDefault(_path); +var _util = __webpack_require__(8); +var _errors = __webpack_require__(57); +var _project = __webpack_require__(86); -function zip() { - var observables = []; - for (var _i = 0; _i < arguments.length; _i++) { - observables[_i] = arguments[_i]; - } - var resultSelector = observables[observables.length - 1]; - if (typeof resultSelector === 'function') { - observables.pop(); - } - return Object(__WEBPACK_IMPORTED_MODULE_1__fromArray__["a" /* fromArray */])(observables, undefined).lift(new ZipOperator(resultSelector)); -} -var ZipOperator = /*@__PURE__*/ (function () { - function ZipOperator(resultSelector) { - this.resultSelector = resultSelector; - } - ZipOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector)); - }; - return ZipOperator; -}()); +var _workspaces = __webpack_require__(97); -var ZipSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ZipSubscriber, _super); - function ZipSubscriber(destination, resultSelector, values) { - if (values === void 0) { - values = Object.create(null); - } - var _this = _super.call(this, destination) || this; - _this.iterators = []; - _this.active = 0; - _this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : null; - _this.values = values; - return _this; - } - ZipSubscriber.prototype._next = function (value) { - var iterators = this.iterators; - if (Object(__WEBPACK_IMPORTED_MODULE_2__util_isArray__["a" /* isArray */])(value)) { - iterators.push(new StaticArrayIterator(value)); - } - else if (typeof value[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]] === 'function') { - iterators.push(new StaticIterator(value[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]]())); - } - else { - iterators.push(new ZipBufferIterator(this.destination, this, value)); - } - }; - ZipSubscriber.prototype._complete = function () { - var iterators = this.iterators; - var len = iterators.length; - if (len === 0) { - this.destination.complete(); - return; - } - this.active = len; - for (var i = 0; i < len; i++) { - var iterator = iterators[i]; - if (iterator.stillUnsubscribed) { - this.add(iterator.subscribe(iterator, i)); - } - else { - this.active--; - } - } - }; - ZipSubscriber.prototype.notifyInactive = function () { - this.active--; - if (this.active === 0) { - this.destination.complete(); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + +const glob = (0, _util.promisify)(_glob2.default); + +function packagesFromGlobPattern({ pattern, rootPath }) { + const globOptions = { + cwd: rootPath, + // Should throw in case of unusual errors when reading the file system + strict: true, + // Always returns absolute paths for matched files + absolute: true, + // Do not match ** against multiple filenames + // (This is only specified because we currently don't have a need for it.) + noglobstar: true }; - ZipSubscriber.prototype.checkIterators = function () { - var iterators = this.iterators; - var len = iterators.length; - var destination = this.destination; - for (var i = 0; i < len; i++) { - var iterator = iterators[i]; - if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) { - return; + return glob(_path2.default.join(pattern, 'package.json'), globOptions); +} +// https://github.com/isaacs/node-glob/blob/master/common.js#L104 +// glob always returns "\\" as "/" in windows, so everyone +// gets normalized because we can't have nice things. +function normalize(dir) { + return _path2.default.normalize(dir); +} +function buildProjectGraph(projects) { + const projectGraph = new Map(); + for (const project of projects.values()) { + const projectDeps = []; + const dependencies = project.allDependencies; + for (const depName of Object.keys(dependencies)) { + if (projects.has(depName)) { + const dep = projects.get(depName); + const dependentProjectIsInWorkspace = project.isWorkspaceProject || project.json.name === 'kibana'; + project.ensureValidProjectDependency(dep, dependentProjectIsInWorkspace); + projectDeps.push(dep); } } - var shouldComplete = false; - var args = []; - for (var i = 0; i < len; i++) { - var iterator = iterators[i]; - var result = iterator.next(); - if (iterator.hasCompleted()) { - shouldComplete = true; - } - if (result.done) { - destination.complete(); - return; + projectGraph.set(project.name, projectDeps); + } + return projectGraph; +} +function topologicallyBatchProjects(projectsToBatch, projectGraph, { batchByWorkspace = false } = {}) { + // We're going to be chopping stuff out of this list, so copy it. + const projectsLeftToBatch = new Set(projectsToBatch.keys()); + const batches = []; + if (batchByWorkspace) { + const workspaceRootProject = Array.from(projectsToBatch.values()).find(p => p.isWorkspaceRoot); + if (!workspaceRootProject) { + throw new _errors.CliError(`There was no yarn workspace root found.`); + } + // Push in the workspace root first. + batches.push([workspaceRootProject]); + projectsLeftToBatch.delete(workspaceRootProject.name); + // In the next batch, push in all workspace projects. + const workspaceBatch = []; + for (const projectName of projectsLeftToBatch) { + const project = projectsToBatch.get(projectName); + if (project.isWorkspaceProject) { + workspaceBatch.push(project); + projectsLeftToBatch.delete(projectName); + } + } + batches.push(workspaceBatch); + } + while (projectsLeftToBatch.size > 0) { + // Get all projects that have no remaining dependencies within the repo + // that haven't yet been picked. + const batch = []; + for (const projectName of projectsLeftToBatch) { + const projectDeps = projectGraph.get(projectName); + const needsDependenciesBatched = projectDeps.some(dep => projectsLeftToBatch.has(dep.name)); + if (!needsDependenciesBatched) { + batch.push(projectsToBatch.get(projectName)); } - args.push(result.value); - } - if (this.resultSelector) { - this._tryresultSelector(args); - } - else { - destination.next(args); - } - if (shouldComplete) { - destination.complete(); } - }; - ZipSubscriber.prototype._tryresultSelector = function (args) { - var result; - try { - result = this.resultSelector.apply(this, args); - } - catch (err) { - this.destination.error(err); - return; + // If we weren't able to find a project with no remaining dependencies, + // then we've encountered a cycle in the dependency graph. + const hasCycles = batch.length === 0; + if (hasCycles) { + const cycleProjectNames = [...projectsLeftToBatch]; + const message = 'Encountered a cycle in the dependency graph. Projects in cycle are:\n' + cycleProjectNames.join(', '); + throw new _errors.CliError(message); } - this.destination.next(result); - }; - return ZipSubscriber; -}(__WEBPACK_IMPORTED_MODULE_3__Subscriber__["a" /* Subscriber */])); - -var StaticIterator = /*@__PURE__*/ (function () { - function StaticIterator(iterator) { - this.iterator = iterator; - this.nextResult = iterator.next(); - } - StaticIterator.prototype.hasValue = function () { - return true; - }; - StaticIterator.prototype.next = function () { - var result = this.nextResult; - this.nextResult = this.iterator.next(); - return result; - }; - StaticIterator.prototype.hasCompleted = function () { - var nextResult = this.nextResult; - return nextResult && nextResult.done; - }; - return StaticIterator; -}()); -var StaticArrayIterator = /*@__PURE__*/ (function () { - function StaticArrayIterator(array) { - this.array = array; - this.index = 0; - this.length = 0; - this.length = array.length; + batches.push(batch); + batch.forEach(project => projectsLeftToBatch.delete(project.name)); } - StaticArrayIterator.prototype[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]] = function () { - return this; - }; - StaticArrayIterator.prototype.next = function (value) { - var i = this.index++; - var array = this.array; - return i < this.length ? { value: array[i], done: false } : { value: null, done: true }; - }; - StaticArrayIterator.prototype.hasValue = function () { - return this.array.length > this.index; - }; - StaticArrayIterator.prototype.hasCompleted = function () { - return this.array.length === this.index; - }; - return StaticArrayIterator; -}()); -var ZipBufferIterator = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ZipBufferIterator, _super); - function ZipBufferIterator(destination, parent, observable) { - var _this = _super.call(this, destination) || this; - _this.parent = parent; - _this.observable = observable; - _this.stillUnsubscribed = true; - _this.buffer = []; - _this.isComplete = false; - return _this; + return batches; +} +function includeTransitiveProjects(subsetOfProjects, allProjects, { onlyProductionDependencies = false } = {}) { + const dependentProjects = new Map(); + // the current list of packages we are expanding using breadth-first-search + const toProcess = [...subsetOfProjects]; + while (toProcess.length > 0) { + const project = toProcess.shift(); + const dependencies = onlyProductionDependencies ? project.productionDependencies : project.allDependencies; + Object.keys(dependencies).forEach(dep => { + if (allProjects.has(dep)) { + toProcess.push(allProjects.get(dep)); + } + }); + dependentProjects.set(project.name, project); } - ZipBufferIterator.prototype[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]] = function () { - return this; - }; - ZipBufferIterator.prototype.next = function () { - var buffer = this.buffer; - if (buffer.length === 0 && this.isComplete) { - return { value: null, done: true }; - } - else { - return { value: buffer.shift(), done: false }; - } - }; - ZipBufferIterator.prototype.hasValue = function () { - return this.buffer.length > 0; - }; - ZipBufferIterator.prototype.hasCompleted = function () { - return this.buffer.length === 0 && this.isComplete; - }; - ZipBufferIterator.prototype.notifyComplete = function () { - if (this.buffer.length > 0) { - this.isComplete = true; - this.parent.notifyInactive(); - } - else { - this.destination.complete(); - } - }; - ZipBufferIterator.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - this.buffer.push(innerValue); - this.parent.checkIterators(); - }; - ZipBufferIterator.prototype.subscribe = function (value, index) { - return Object(__WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__["a" /* subscribeToResult */])(this, this.observable, this, index); - }; - return ZipBufferIterator; -}(__WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__["a" /* OuterSubscriber */])); -//# sourceMappingURL=zip.js.map + return dependentProjects; +} + +/***/ }), +/* 23 */ +/***/ (function(module, exports, __webpack_require__) { + +// Approach: +// +// 1. Get the minimatch set +// 2. For each pattern in the set, PROCESS(pattern, false) +// 3. Store matches per-set, then uniq them +// +// PROCESS(pattern, inGlobStar) +// Get the first [n] items from pattern that are all strings +// Join these together. This is PREFIX. +// If there is no more remaining, then stat(PREFIX) and +// add to matches if it succeeds. END. +// +// If inGlobStar and PREFIX is symlink and points to dir +// set ENTRIES = [] +// else readdir(PREFIX) as ENTRIES +// If fail, END +// +// with ENTRIES +// If pattern[n] is GLOBSTAR +// // handle the case where the globstar match is empty +// // by pruning it out, and testing the resulting pattern +// PROCESS(pattern[0..n] + pattern[n+1 .. $], false) +// // handle other cases. +// for ENTRY in ENTRIES (not dotfiles) +// // attach globstar + tail onto the entry +// // Mark that this entry is a globstar match +// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true) +// +// else // not globstar +// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot) +// Test ENTRY against pattern[n] +// If fails, continue +// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $]) +// +// Caveat: +// Cache all stats and readdirs results to minimize syscall. Since all +// we ever care about is existence and directory-ness, we can just keep +// `true` for files, and [children,...] for directories, or `false` for +// things that don't exist. + +module.exports = glob + +var fs = __webpack_require__(6) +var rp = __webpack_require__(81) +var minimatch = __webpack_require__(55) +var Minimatch = minimatch.Minimatch +var inherits = __webpack_require__(82) +var EE = __webpack_require__(40).EventEmitter +var path = __webpack_require__(2) +var assert = __webpack_require__(28) +var isAbsolute = __webpack_require__(56) +var globSync = __webpack_require__(158) +var common = __webpack_require__(83) +var alphasort = common.alphasort +var alphasorti = common.alphasorti +var setopts = common.setopts +var ownProp = common.ownProp +var inflight = __webpack_require__(159) +var util = __webpack_require__(8) +var childrenIgnored = common.childrenIgnored +var isIgnored = common.isIgnored +var once = __webpack_require__(85) + +function glob (pattern, options, cb) { + if (typeof options === 'function') cb = options, options = {} + if (!options) options = {} -/***/ }), -/* 75 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (options.sync) { + if (cb) + throw new TypeError('callback provided to sync glob') + return globSync(pattern, options) + } -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = take; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__ = __webpack_require__(35); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_empty__ = __webpack_require__(12); -/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */ + return new Glob(pattern, options, cb) +} +glob.sync = globSync +var GlobSync = glob.GlobSync = globSync.GlobSync +// old api surface +glob.glob = glob +function extend (origin, add) { + if (add === null || typeof add !== 'object') { + return origin + } -function take(count) { - return function (source) { - if (count === 0) { - return Object(__WEBPACK_IMPORTED_MODULE_3__observable_empty__["b" /* empty */])(); - } - else { - return source.lift(new TakeOperator(count)); - } - }; + var keys = Object.keys(add) + var i = keys.length + while (i--) { + origin[keys[i]] = add[keys[i]] + } + return origin } -var TakeOperator = /*@__PURE__*/ (function () { - function TakeOperator(total) { - this.total = total; - if (this.total < 0) { - throw new __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__["a" /* ArgumentOutOfRangeError */]; - } - } - TakeOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new TakeSubscriber(subscriber, this.total)); - }; - return TakeOperator; -}()); -var TakeSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](TakeSubscriber, _super); - function TakeSubscriber(destination, total) { - var _this = _super.call(this, destination) || this; - _this.total = total; - _this.count = 0; - return _this; - } - TakeSubscriber.prototype._next = function (value) { - var total = this.total; - var count = ++this.count; - if (count <= total) { - this.destination.next(value); - if (count === total) { - this.destination.complete(); - this.unsubscribe(); - } - } - }; - return TakeSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); -//# sourceMappingURL=take.js.map +glob.hasMagic = function (pattern, options_) { + var options = extend({}, options_) + options.noprocess = true -/***/ }), -/* 76 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = takeLast; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__ = __webpack_require__(35); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_empty__ = __webpack_require__(12); -/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */ + var g = new Glob(pattern, options) + var set = g.minimatch.set + if (!pattern) + return false + if (set.length > 1) + return true + for (var j = 0; j < set[0].length; j++) { + if (typeof set[0][j] !== 'string') + return true + } -function takeLast(count) { - return function takeLastOperatorFunction(source) { - if (count === 0) { - return Object(__WEBPACK_IMPORTED_MODULE_3__observable_empty__["b" /* empty */])(); - } - else { - return source.lift(new TakeLastOperator(count)); - } - }; + return false } -var TakeLastOperator = /*@__PURE__*/ (function () { - function TakeLastOperator(total) { - this.total = total; - if (this.total < 0) { - throw new __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__["a" /* ArgumentOutOfRangeError */]; - } - } - TakeLastOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new TakeLastSubscriber(subscriber, this.total)); - }; - return TakeLastOperator; -}()); -var TakeLastSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](TakeLastSubscriber, _super); - function TakeLastSubscriber(destination, total) { - var _this = _super.call(this, destination) || this; - _this.total = total; - _this.ring = new Array(); - _this.count = 0; - return _this; - } - TakeLastSubscriber.prototype._next = function (value) { - var ring = this.ring; - var total = this.total; - var count = this.count++; - if (ring.length < total) { - ring.push(value); - } - else { - var index = count % total; - ring[index] = value; - } - }; - TakeLastSubscriber.prototype._complete = function () { - var destination = this.destination; - var count = this.count; - if (count > 0) { - var total = this.count >= this.total ? this.total : this.count; - var ring = this.ring; - for (var i = 0; i < total; i++) { - var idx = (count++) % total; - destination.next(ring[idx]); - } - } - destination.complete(); - }; - return TakeLastSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); -//# sourceMappingURL=takeLast.js.map +glob.Glob = Glob +inherits(Glob, EE) +function Glob (pattern, options, cb) { + if (typeof options === 'function') { + cb = options + options = null + } -/***/ }), -/* 77 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (options && options.sync) { + if (cb) + throw new TypeError('callback provided to sync glob') + return new GlobSync(pattern, options) + } -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = scan; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ + if (!(this instanceof Glob)) + return new Glob(pattern, options, cb) + setopts(this, pattern, options) + this._didRealPath = false -function scan(accumulator, seed) { - var hasSeed = false; - if (arguments.length >= 2) { - hasSeed = true; - } - return function scanOperatorFunction(source) { - return source.lift(new ScanOperator(accumulator, seed, hasSeed)); - }; -} -var ScanOperator = /*@__PURE__*/ (function () { - function ScanOperator(accumulator, seed, hasSeed) { - if (hasSeed === void 0) { - hasSeed = false; - } - this.accumulator = accumulator; - this.seed = seed; - this.hasSeed = hasSeed; - } - ScanOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed)); - }; - return ScanOperator; -}()); -var ScanSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ScanSubscriber, _super); - function ScanSubscriber(destination, accumulator, _seed, hasSeed) { - var _this = _super.call(this, destination) || this; - _this.accumulator = accumulator; - _this._seed = _seed; - _this.hasSeed = hasSeed; - _this.index = 0; - return _this; - } - Object.defineProperty(ScanSubscriber.prototype, "seed", { - get: function () { - return this._seed; - }, - set: function (value) { - this.hasSeed = true; - this._seed = value; - }, - enumerable: true, - configurable: true - }); - ScanSubscriber.prototype._next = function (value) { - if (!this.hasSeed) { - this.seed = value; - this.destination.next(value); - } - else { - return this._tryNext(value); - } - }; - ScanSubscriber.prototype._tryNext = function (value) { - var index = this.index++; - var result; - try { - result = this.accumulator(this.seed, value, index); - } - catch (err) { - this.destination.error(err); - } - this.seed = result; - this.destination.next(result); - }; - return ScanSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); -//# sourceMappingURL=scan.js.map + // process each pattern in the minimatch set + var n = this.minimatch.set.length + // The matches are stored as {: true,...} so that + // duplicates are automagically pruned. + // Later, we do an Object.keys() on these. + // Keep them as a list so we can fill in when nonull is set. + this.matches = new Array(n) -/***/ }), -/* 78 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (typeof cb === 'function') { + cb = once(cb) + this.on('error', cb) + this.on('end', function (matches) { + cb(null, matches) + }) + } -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = switchMap; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(16); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__observable_from__ = __webpack_require__(19); -/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult,_map,_observable_from PURE_IMPORTS_END */ + var self = this + this._processing = 0 + this._emitQueue = [] + this._processQueue = [] + this.paused = false + if (this.noprocess) + return this + if (n === 0) + return done() + var sync = true + for (var i = 0; i < n; i ++) { + this._process(this.minimatch.set[i], i, false, done) + } + sync = false -function switchMap(project, resultSelector) { - if (typeof resultSelector === 'function') { - return function (source) { return source.pipe(switchMap(function (a, i) { return Object(__WEBPACK_IMPORTED_MODULE_4__observable_from__["a" /* from */])(project(a, i)).pipe(Object(__WEBPACK_IMPORTED_MODULE_3__map__["a" /* map */])(function (b, ii) { return resultSelector(a, b, i, ii); })); })); }; + function done () { + --self._processing + if (self._processing <= 0) { + if (sync) { + process.nextTick(function () { + self._finish() + }) + } else { + self._finish() + } } - return function (source) { return source.lift(new SwitchMapOperator(project)); }; + } } -var SwitchMapOperator = /*@__PURE__*/ (function () { - function SwitchMapOperator(project) { - this.project = project; - } - SwitchMapOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new SwitchMapSubscriber(subscriber, this.project)); - }; - return SwitchMapOperator; -}()); -var SwitchMapSubscriber = /*@__PURE__*/ (function (_super) { - __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](SwitchMapSubscriber, _super); - function SwitchMapSubscriber(destination, project) { - var _this = _super.call(this, destination) || this; - _this.project = project; - _this.index = 0; - return _this; - } - SwitchMapSubscriber.prototype._next = function (value) { - var result; - var index = this.index++; - try { - result = this.project(value, index); - } - catch (error) { - this.destination.error(error); - return; - } - this._innerSub(result, value, index); - }; - SwitchMapSubscriber.prototype._innerSub = function (result, value, index) { - var innerSubscription = this.innerSubscription; - if (innerSubscription) { - innerSubscription.unsubscribe(); - } - this.add(this.innerSubscription = Object(__WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__["a" /* subscribeToResult */])(this, result, value, index)); - }; - SwitchMapSubscriber.prototype._complete = function () { - var innerSubscription = this.innerSubscription; - if (!innerSubscription || innerSubscription.closed) { - _super.prototype._complete.call(this); - } - }; - SwitchMapSubscriber.prototype._unsubscribe = function () { - this.innerSubscription = null; - }; - SwitchMapSubscriber.prototype.notifyComplete = function (innerSub) { - this.remove(innerSub); - this.innerSubscription = null; - if (this.isStopped) { - _super.prototype._complete.call(this); - } - }; - SwitchMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - this.destination.next(innerValue); - }; - return SwitchMapSubscriber; -}(__WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__["a" /* OuterSubscriber */])); -//# sourceMappingURL=switchMap.js.map - - -/***/ }), -/* 79 */ -/***/ (function(module, exports, __webpack_require__) { -/* MIT license */ -var cssKeywords = __webpack_require__(260); +Glob.prototype._finish = function () { + assert(this instanceof Glob) + if (this.aborted) + return -// NOTE: conversions should only return primitive values (i.e. arrays, or -// values that give correct `typeof` results). -// do not use box values types (i.e. Number(), String(), etc.) + if (this.realpath && !this._didRealpath) + return this._realpath() -var reverseKeywords = {}; -for (var key in cssKeywords) { - if (cssKeywords.hasOwnProperty(key)) { - reverseKeywords[cssKeywords[key]] = key; - } + common.finish(this) + this.emit('end', this.found) } -var convert = module.exports = { - rgb: {channels: 3, labels: 'rgb'}, - hsl: {channels: 3, labels: 'hsl'}, - hsv: {channels: 3, labels: 'hsv'}, - hwb: {channels: 3, labels: 'hwb'}, - cmyk: {channels: 4, labels: 'cmyk'}, - xyz: {channels: 3, labels: 'xyz'}, - lab: {channels: 3, labels: 'lab'}, - lch: {channels: 3, labels: 'lch'}, - hex: {channels: 1, labels: ['hex']}, - keyword: {channels: 1, labels: ['keyword']}, - ansi16: {channels: 1, labels: ['ansi16']}, - ansi256: {channels: 1, labels: ['ansi256']}, - hcg: {channels: 3, labels: ['h', 'c', 'g']}, - apple: {channels: 3, labels: ['r16', 'g16', 'b16']}, - gray: {channels: 1, labels: ['gray']} -}; +Glob.prototype._realpath = function () { + if (this._didRealpath) + return -// hide .channels and .labels properties -for (var model in convert) { - if (convert.hasOwnProperty(model)) { - if (!('channels' in convert[model])) { - throw new Error('missing channels property: ' + model); - } + this._didRealpath = true - if (!('labels' in convert[model])) { - throw new Error('missing channel labels property: ' + model); - } + var n = this.matches.length + if (n === 0) + return this._finish() - if (convert[model].labels.length !== convert[model].channels) { - throw new Error('channel and label counts mismatch: ' + model); - } + var self = this + for (var i = 0; i < this.matches.length; i++) + this._realpathSet(i, next) - var channels = convert[model].channels; - var labels = convert[model].labels; - delete convert[model].channels; - delete convert[model].labels; - Object.defineProperty(convert[model], 'channels', {value: channels}); - Object.defineProperty(convert[model], 'labels', {value: labels}); - } + function next () { + if (--n === 0) + self._finish() + } } -convert.rgb.hsl = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var min = Math.min(r, g, b); - var max = Math.max(r, g, b); - var delta = max - min; - var h; - var s; - var l; - - if (max === min) { - h = 0; - } else if (r === max) { - h = (g - b) / delta; - } else if (g === max) { - h = 2 + (b - r) / delta; - } else if (b === max) { - h = 4 + (r - g) / delta; - } - - h = Math.min(h * 60, 360); +Glob.prototype._realpathSet = function (index, cb) { + var matchset = this.matches[index] + if (!matchset) + return cb() - if (h < 0) { - h += 360; - } + var found = Object.keys(matchset) + var self = this + var n = found.length - l = (min + max) / 2; + if (n === 0) + return cb() - if (max === min) { - s = 0; - } else if (l <= 0.5) { - s = delta / (max + min); - } else { - s = delta / (2 - max - min); - } + var set = this.matches[index] = Object.create(null) + found.forEach(function (p, i) { + // If there's a problem with the stat, then it means that + // one or more of the links in the realpath couldn't be + // resolved. just return the abs value in that case. + p = self._makeAbs(p) + rp.realpath(p, self.realpathCache, function (er, real) { + if (!er) + set[real] = true + else if (er.syscall === 'stat') + set[p] = true + else + self.emit('error', er) // srsly wtf right here - return [h, s * 100, l * 100]; -}; + if (--n === 0) { + self.matches[index] = set + cb() + } + }) + }) +} -convert.rgb.hsv = function (rgb) { - var r = rgb[0]; - var g = rgb[1]; - var b = rgb[2]; - var min = Math.min(r, g, b); - var max = Math.max(r, g, b); - var delta = max - min; - var h; - var s; - var v; +Glob.prototype._mark = function (p) { + return common.mark(this, p) +} - if (max === 0) { - s = 0; - } else { - s = (delta / max * 1000) / 10; - } +Glob.prototype._makeAbs = function (f) { + return common.makeAbs(this, f) +} - if (max === min) { - h = 0; - } else if (r === max) { - h = (g - b) / delta; - } else if (g === max) { - h = 2 + (b - r) / delta; - } else if (b === max) { - h = 4 + (r - g) / delta; - } +Glob.prototype.abort = function () { + this.aborted = true + this.emit('abort') +} - h = Math.min(h * 60, 360); +Glob.prototype.pause = function () { + if (!this.paused) { + this.paused = true + this.emit('pause') + } +} - if (h < 0) { - h += 360; - } +Glob.prototype.resume = function () { + if (this.paused) { + this.emit('resume') + this.paused = false + if (this._emitQueue.length) { + var eq = this._emitQueue.slice(0) + this._emitQueue.length = 0 + for (var i = 0; i < eq.length; i ++) { + var e = eq[i] + this._emitMatch(e[0], e[1]) + } + } + if (this._processQueue.length) { + var pq = this._processQueue.slice(0) + this._processQueue.length = 0 + for (var i = 0; i < pq.length; i ++) { + var p = pq[i] + this._processing-- + this._process(p[0], p[1], p[2], p[3]) + } + } + } +} - v = ((max / 255) * 1000) / 10; +Glob.prototype._process = function (pattern, index, inGlobStar, cb) { + assert(this instanceof Glob) + assert(typeof cb === 'function') - return [h, s, v]; -}; + if (this.aborted) + return -convert.rgb.hwb = function (rgb) { - var r = rgb[0]; - var g = rgb[1]; - var b = rgb[2]; - var h = convert.rgb.hsl(rgb)[0]; - var w = 1 / 255 * Math.min(r, Math.min(g, b)); + this._processing++ + if (this.paused) { + this._processQueue.push([pattern, index, inGlobStar, cb]) + return + } - b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); + //console.error('PROCESS %d', this._processing, pattern) - return [h, w * 100, b * 100]; -}; + // Get the first [n] parts of pattern that are all strings. + var n = 0 + while (typeof pattern[n] === 'string') { + n ++ + } + // now n is the index of the first one that is *not* a string. -convert.rgb.cmyk = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var c; - var m; - var y; - var k; + // see if there's anything else + var prefix + switch (n) { + // if not, then this is rather simple + case pattern.length: + this._processSimple(pattern.join('/'), index, cb) + return - k = Math.min(1 - r, 1 - g, 1 - b); - c = (1 - r - k) / (1 - k) || 0; - m = (1 - g - k) / (1 - k) || 0; - y = (1 - b - k) / (1 - k) || 0; + case 0: + // pattern *starts* with some non-trivial item. + // going to readdir(cwd), but not include the prefix in matches. + prefix = null + break - return [c * 100, m * 100, y * 100, k * 100]; -}; + default: + // pattern has some string bits in the front. + // whatever it starts with, whether that's 'absolute' like /foo/bar, + // or 'relative' like '../baz' + prefix = pattern.slice(0, n).join('/') + break + } -/** - * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance - * */ -function comparativeDistance(x, y) { - return ( - Math.pow(x[0] - y[0], 2) + - Math.pow(x[1] - y[1], 2) + - Math.pow(x[2] - y[2], 2) - ); -} + var remain = pattern.slice(n) -convert.rgb.keyword = function (rgb) { - var reversed = reverseKeywords[rgb]; - if (reversed) { - return reversed; - } + // get the list of entries. + var read + if (prefix === null) + read = '.' + else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { + if (!prefix || !isAbsolute(prefix)) + prefix = '/' + prefix + read = prefix + } else + read = prefix - var currentClosestDistance = Infinity; - var currentClosestKeyword; + var abs = this._makeAbs(read) - for (var keyword in cssKeywords) { - if (cssKeywords.hasOwnProperty(keyword)) { - var value = cssKeywords[keyword]; + //if ignored, skip _processing + if (childrenIgnored(this, read)) + return cb() - // Compute comparative distance - var distance = comparativeDistance(rgb, value); + var isGlobStar = remain[0] === minimatch.GLOBSTAR + if (isGlobStar) + this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb) + else + this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb) +} - // Check if its less, if so set as closest - if (distance < currentClosestDistance) { - currentClosestDistance = distance; - currentClosestKeyword = keyword; - } - } - } +Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) { + var self = this + this._readdir(abs, inGlobStar, function (er, entries) { + return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb) + }) +} - return currentClosestKeyword; -}; +Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { -convert.keyword.rgb = function (keyword) { - return cssKeywords[keyword]; -}; + // if the abs isn't a dir, then nothing can match! + if (!entries) + return cb() -convert.rgb.xyz = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; + // It will only match dot entries if it starts with a dot, or if + // dot is set. Stuff like @(.foo|.bar) isn't allowed. + var pn = remain[0] + var negate = !!this.minimatch.negate + var rawGlob = pn._glob + var dotOk = this.dot || rawGlob.charAt(0) === '.' - // assume sRGB - r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92); - g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92); - b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92); + var matchedEntries = [] + for (var i = 0; i < entries.length; i++) { + var e = entries[i] + if (e.charAt(0) !== '.' || dotOk) { + var m + if (negate && !prefix) { + m = !e.match(pn) + } else { + m = e.match(pn) + } + if (m) + matchedEntries.push(e) + } + } - var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805); - var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722); - var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505); + //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries) - return [x * 100, y * 100, z * 100]; -}; + var len = matchedEntries.length + // If there are no matched entries, then nothing matches. + if (len === 0) + return cb() -convert.rgb.lab = function (rgb) { - var xyz = convert.rgb.xyz(rgb); - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; + // if this is the last remaining pattern bit, then no need for + // an additional stat *unless* the user has specified mark or + // stat explicitly. We know they exist, since readdir returned + // them. - x /= 95.047; - y /= 100; - z /= 108.883; + if (remain.length === 1 && !this.mark && !this.stat) { + if (!this.matches[index]) + this.matches[index] = Object.create(null) - x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); - y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); - z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); + for (var i = 0; i < len; i ++) { + var e = matchedEntries[i] + if (prefix) { + if (prefix !== '/') + e = prefix + '/' + e + else + e = prefix + e + } - l = (116 * y) - 16; - a = 500 * (x - y); - b = 200 * (y - z); + if (e.charAt(0) === '/' && !this.nomount) { + e = path.join(this.root, e) + } + this._emitMatch(index, e) + } + // This was the last one, and no stats were needed + return cb() + } - return [l, a, b]; -}; + // now test all matched entries as stand-ins for that part + // of the pattern. + remain.shift() + for (var i = 0; i < len; i ++) { + var e = matchedEntries[i] + var newPattern + if (prefix) { + if (prefix !== '/') + e = prefix + '/' + e + else + e = prefix + e + } + this._process([e].concat(remain), index, inGlobStar, cb) + } + cb() +} -convert.hsl.rgb = function (hsl) { - var h = hsl[0] / 360; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var t1; - var t2; - var t3; - var rgb; - var val; +Glob.prototype._emitMatch = function (index, e) { + if (this.aborted) + return - if (s === 0) { - val = l * 255; - return [val, val, val]; - } + if (isIgnored(this, e)) + return - if (l < 0.5) { - t2 = l * (1 + s); - } else { - t2 = l + s - l * s; - } + if (this.paused) { + this._emitQueue.push([index, e]) + return + } - t1 = 2 * l - t2; + var abs = isAbsolute(e) ? e : this._makeAbs(e) - rgb = [0, 0, 0]; - for (var i = 0; i < 3; i++) { - t3 = h + 1 / 3 * -(i - 1); - if (t3 < 0) { - t3++; - } - if (t3 > 1) { - t3--; - } + if (this.mark) + e = this._mark(e) - if (6 * t3 < 1) { - val = t1 + (t2 - t1) * 6 * t3; - } else if (2 * t3 < 1) { - val = t2; - } else if (3 * t3 < 2) { - val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; - } else { - val = t1; - } + if (this.absolute) + e = abs - rgb[i] = val * 255; - } + if (this.matches[index][e]) + return - return rgb; -}; + if (this.nodir) { + var c = this.cache[abs] + if (c === 'DIR' || Array.isArray(c)) + return + } -convert.hsl.hsv = function (hsl) { - var h = hsl[0]; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var smin = s; - var lmin = Math.max(l, 0.01); - var sv; - var v; + this.matches[index][e] = true - l *= 2; - s *= (l <= 1) ? l : 2 - l; - smin *= lmin <= 1 ? lmin : 2 - lmin; - v = (l + s) / 2; - sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s); + var st = this.statCache[abs] + if (st) + this.emit('stat', e, st) - return [h, sv * 100, v * 100]; -}; + this.emit('match', e) +} -convert.hsv.rgb = function (hsv) { - var h = hsv[0] / 60; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var hi = Math.floor(h) % 6; +Glob.prototype._readdirInGlobStar = function (abs, cb) { + if (this.aborted) + return - var f = h - Math.floor(h); - var p = 255 * v * (1 - s); - var q = 255 * v * (1 - (s * f)); - var t = 255 * v * (1 - (s * (1 - f))); - v *= 255; + // follow all symlinked directories forever + // just proceed as if this is a non-globstar situation + if (this.follow) + return this._readdir(abs, false, cb) - switch (hi) { - case 0: - return [v, t, p]; - case 1: - return [q, v, p]; - case 2: - return [p, v, t]; - case 3: - return [p, q, v]; - case 4: - return [t, p, v]; - case 5: - return [v, p, q]; - } -}; + var lstatkey = 'lstat\0' + abs + var self = this + var lstatcb = inflight(lstatkey, lstatcb_) -convert.hsv.hsl = function (hsv) { - var h = hsv[0]; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var vmin = Math.max(v, 0.01); - var lmin; - var sl; - var l; + if (lstatcb) + fs.lstat(abs, lstatcb) - l = (2 - s) * v; - lmin = (2 - s) * vmin; - sl = s * vmin; - sl /= (lmin <= 1) ? lmin : 2 - lmin; - sl = sl || 0; - l /= 2; + function lstatcb_ (er, lstat) { + if (er && er.code === 'ENOENT') + return cb() - return [h, sl * 100, l * 100]; -}; + var isSym = lstat && lstat.isSymbolicLink() + self.symlinks[abs] = isSym -// http://dev.w3.org/csswg/css-color/#hwb-to-rgb -convert.hwb.rgb = function (hwb) { - var h = hwb[0] / 360; - var wh = hwb[1] / 100; - var bl = hwb[2] / 100; - var ratio = wh + bl; - var i; - var v; - var f; - var n; + // If it's not a symlink or a dir, then it's definitely a regular file. + // don't bother doing a readdir in that case. + if (!isSym && lstat && !lstat.isDirectory()) { + self.cache[abs] = 'FILE' + cb() + } else + self._readdir(abs, false, cb) + } +} - // wh + bl cant be > 1 - if (ratio > 1) { - wh /= ratio; - bl /= ratio; - } +Glob.prototype._readdir = function (abs, inGlobStar, cb) { + if (this.aborted) + return - i = Math.floor(6 * h); - v = 1 - bl; - f = 6 * h - i; + cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb) + if (!cb) + return - if ((i & 0x01) !== 0) { - f = 1 - f; - } + //console.error('RD %j %j', +inGlobStar, abs) + if (inGlobStar && !ownProp(this.symlinks, abs)) + return this._readdirInGlobStar(abs, cb) - n = wh + f * (v - wh); // linear interpolation + if (ownProp(this.cache, abs)) { + var c = this.cache[abs] + if (!c || c === 'FILE') + return cb() - var r; - var g; - var b; - switch (i) { - default: - case 6: - case 0: r = v; g = n; b = wh; break; - case 1: r = n; g = v; b = wh; break; - case 2: r = wh; g = v; b = n; break; - case 3: r = wh; g = n; b = v; break; - case 4: r = n; g = wh; b = v; break; - case 5: r = v; g = wh; b = n; break; - } + if (Array.isArray(c)) + return cb(null, c) + } - return [r * 255, g * 255, b * 255]; -}; + var self = this + fs.readdir(abs, readdirCb(this, abs, cb)) +} -convert.cmyk.rgb = function (cmyk) { - var c = cmyk[0] / 100; - var m = cmyk[1] / 100; - var y = cmyk[2] / 100; - var k = cmyk[3] / 100; - var r; - var g; - var b; +function readdirCb (self, abs, cb) { + return function (er, entries) { + if (er) + self._readdirError(abs, er, cb) + else + self._readdirEntries(abs, entries, cb) + } +} - r = 1 - Math.min(1, c * (1 - k) + k); - g = 1 - Math.min(1, m * (1 - k) + k); - b = 1 - Math.min(1, y * (1 - k) + k); +Glob.prototype._readdirEntries = function (abs, entries, cb) { + if (this.aborted) + return - return [r * 255, g * 255, b * 255]; -}; + // if we haven't asked to stat everything, then just + // assume that everything in there exists, so we can avoid + // having to stat it a second time. + if (!this.mark && !this.stat) { + for (var i = 0; i < entries.length; i ++) { + var e = entries[i] + if (abs === '/') + e = abs + e + else + e = abs + '/' + e + this.cache[e] = true + } + } -convert.xyz.rgb = function (xyz) { - var x = xyz[0] / 100; - var y = xyz[1] / 100; - var z = xyz[2] / 100; - var r; - var g; - var b; + this.cache[abs] = entries + return cb(null, entries) +} - r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986); - g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415); - b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570); +Glob.prototype._readdirError = function (f, er, cb) { + if (this.aborted) + return - // assume sRGB - r = r > 0.0031308 - ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055) - : r * 12.92; + // handle errors, and cache the information + switch (er.code) { + case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 + case 'ENOTDIR': // totally normal. means it *does* exist. + var abs = this._makeAbs(f) + this.cache[abs] = 'FILE' + if (abs === this.cwdAbs) { + var error = new Error(er.code + ' invalid cwd ' + this.cwd) + error.path = this.cwd + error.code = er.code + this.emit('error', error) + this.abort() + } + break - g = g > 0.0031308 - ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055) - : g * 12.92; + case 'ENOENT': // not terribly unusual + case 'ELOOP': + case 'ENAMETOOLONG': + case 'UNKNOWN': + this.cache[this._makeAbs(f)] = false + break - b = b > 0.0031308 - ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055) - : b * 12.92; + default: // some unusual error. Treat as failure. + this.cache[this._makeAbs(f)] = false + if (this.strict) { + this.emit('error', er) + // If the error is handled, then we abort + // if not, we threw out of here + this.abort() + } + if (!this.silent) + console.error('glob error', er) + break + } - r = Math.min(Math.max(0, r), 1); - g = Math.min(Math.max(0, g), 1); - b = Math.min(Math.max(0, b), 1); + return cb() +} - return [r * 255, g * 255, b * 255]; -}; +Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) { + var self = this + this._readdir(abs, inGlobStar, function (er, entries) { + self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb) + }) +} -convert.xyz.lab = function (xyz) { - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; - x /= 95.047; - y /= 100; - z /= 108.883; +Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { + //console.error('pgs2', prefix, remain[0], entries) - x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); - y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); - z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); + // no entries means not a dir, so it can never have matches + // foo.txt/** doesn't match foo.txt + if (!entries) + return cb() - l = (116 * y) - 16; - a = 500 * (x - y); - b = 200 * (y - z); + // test without the globstar, and with every child both below + // and replacing the globstar. + var remainWithoutGlobStar = remain.slice(1) + var gspref = prefix ? [ prefix ] : [] + var noGlobStar = gspref.concat(remainWithoutGlobStar) - return [l, a, b]; -}; + // the noGlobStar pattern exits the inGlobStar state + this._process(noGlobStar, index, false, cb) -convert.lab.xyz = function (lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var x; - var y; - var z; + var isSym = this.symlinks[abs] + var len = entries.length - y = (l + 16) / 116; - x = a / 500 + y; - z = y - b / 200; + // If it's a symlink, and we're in a globstar, then stop + if (isSym && inGlobStar) + return cb() - var y2 = Math.pow(y, 3); - var x2 = Math.pow(x, 3); - var z2 = Math.pow(z, 3); - y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787; - x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787; - z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787; + for (var i = 0; i < len; i++) { + var e = entries[i] + if (e.charAt(0) === '.' && !this.dot) + continue - x *= 95.047; - y *= 100; - z *= 108.883; + // these two cases enter the inGlobStar state + var instead = gspref.concat(entries[i], remainWithoutGlobStar) + this._process(instead, index, true, cb) - return [x, y, z]; -}; + var below = gspref.concat(entries[i], remain) + this._process(below, index, true, cb) + } -convert.lab.lch = function (lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var hr; - var h; - var c; + cb() +} - hr = Math.atan2(b, a); - h = hr * 360 / 2 / Math.PI; +Glob.prototype._processSimple = function (prefix, index, cb) { + // XXX review this. Shouldn't it be doing the mounting etc + // before doing stat? kinda weird? + var self = this + this._stat(prefix, function (er, exists) { + self._processSimple2(prefix, index, er, exists, cb) + }) +} +Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) { - if (h < 0) { - h += 360; - } + //console.error('ps2', prefix, exists) - c = Math.sqrt(a * a + b * b); + if (!this.matches[index]) + this.matches[index] = Object.create(null) - return [l, c, h]; -}; + // If it doesn't exist, then just mark the lack of results + if (!exists) + return cb() -convert.lch.lab = function (lch) { - var l = lch[0]; - var c = lch[1]; - var h = lch[2]; - var a; - var b; - var hr; + if (prefix && isAbsolute(prefix) && !this.nomount) { + var trail = /[\/\\]$/.test(prefix) + if (prefix.charAt(0) === '/') { + prefix = path.join(this.root, prefix) + } else { + prefix = path.resolve(this.root, prefix) + if (trail) + prefix += '/' + } + } - hr = h / 360 * 2 * Math.PI; - a = c * Math.cos(hr); - b = c * Math.sin(hr); + if (process.platform === 'win32') + prefix = prefix.replace(/\\/g, '/') - return [l, a, b]; -}; + // Mark this as a match + this._emitMatch(index, prefix) + cb() +} -convert.rgb.ansi16 = function (args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; - var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization +// Returns either 'DIR', 'FILE', or false +Glob.prototype._stat = function (f, cb) { + var abs = this._makeAbs(f) + var needDir = f.slice(-1) === '/' - value = Math.round(value / 50); + if (f.length > this.maxLength) + return cb() - if (value === 0) { - return 30; - } + if (!this.stat && ownProp(this.cache, abs)) { + var c = this.cache[abs] - var ansi = 30 - + ((Math.round(b / 255) << 2) - | (Math.round(g / 255) << 1) - | Math.round(r / 255)); + if (Array.isArray(c)) + c = 'DIR' - if (value === 2) { - ansi += 60; - } + // It exists, but maybe not how we need it + if (!needDir || c === 'DIR') + return cb(null, c) - return ansi; -}; + if (needDir && c === 'FILE') + return cb() -convert.hsv.ansi16 = function (args) { - // optimization here; we already know the value and don't need to get - // it converted for us. - return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); -}; + // otherwise we have to stat, because maybe c=true + // if we know it exists, but not what it is. + } -convert.rgb.ansi256 = function (args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; + var exists + var stat = this.statCache[abs] + if (stat !== undefined) { + if (stat === false) + return cb(null, stat) + else { + var type = stat.isDirectory() ? 'DIR' : 'FILE' + if (needDir && type === 'FILE') + return cb() + else + return cb(null, type, stat) + } + } - // we use the extended greyscale palette here, with the exception of - // black and white. normal palette only has 4 greyscale shades. - if (r === g && g === b) { - if (r < 8) { - return 16; - } + var self = this + var statcb = inflight('stat\0' + abs, lstatcb_) + if (statcb) + fs.lstat(abs, statcb) - if (r > 248) { - return 231; - } + function lstatcb_ (er, lstat) { + if (lstat && lstat.isSymbolicLink()) { + // If it's a symlink, then treat it as the target, unless + // the target does not exist, then treat it as a file. + return fs.stat(abs, function (er, stat) { + if (er) + self._stat2(f, abs, null, lstat, cb) + else + self._stat2(f, abs, er, stat, cb) + }) + } else { + self._stat2(f, abs, er, lstat, cb) + } + } +} - return Math.round(((r - 8) / 247) * 24) + 232; - } +Glob.prototype._stat2 = function (f, abs, er, stat, cb) { + if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { + this.statCache[abs] = false + return cb() + } - var ansi = 16 - + (36 * Math.round(r / 255 * 5)) - + (6 * Math.round(g / 255 * 5)) - + Math.round(b / 255 * 5); + var needDir = f.slice(-1) === '/' + this.statCache[abs] = stat - return ansi; -}; + if (abs.slice(-1) === '/' && stat && !stat.isDirectory()) + return cb(null, false, stat) -convert.ansi16.rgb = function (args) { - var color = args % 10; + var c = true + if (stat) + c = stat.isDirectory() ? 'DIR' : 'FILE' + this.cache[abs] = this.cache[abs] || c - // handle greyscale - if (color === 0 || color === 7) { - if (args > 50) { - color += 3.5; - } + if (needDir && c === 'FILE') + return cb() - color = color / 10.5 * 255; + return cb(null, c, stat) +} - return [color, color, color]; - } - var mult = (~~(args > 50) + 1) * 0.5; - var r = ((color & 1) * mult) * 255; - var g = (((color >> 1) & 1) * mult) * 255; - var b = (((color >> 2) & 1) * mult) * 255; +/***/ }), +/* 24 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - return [r, g, b]; -}; +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return observable; }); +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +var observable = typeof Symbol === 'function' && Symbol.observable || '@@observable'; +//# sourceMappingURL=observable.js.map -convert.ansi256.rgb = function (args) { - // handle greyscale - if (args >= 232) { - var c = (args - 232) * 10 + 8; - return [c, c, c]; - } - args -= 16; +/***/ }), +/* 25 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - var rem; - var r = Math.floor(args / 36) / 5 * 255; - var g = Math.floor((rem = args % 36) / 6) / 5 * 255; - var b = (rem % 6) / 5 * 255; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = identity; +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +function identity(x) { + return x; +} +//# sourceMappingURL=identity.js.map - return [r, g, b]; -}; -convert.rgb.hex = function (args) { - var integer = ((Math.round(args[0]) & 0xFF) << 16) - + ((Math.round(args[1]) & 0xFF) << 8) - + (Math.round(args[2]) & 0xFF); +/***/ }), +/* 26 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - var string = integer.toString(16).toUpperCase(); - return '000000'.substring(string.length) + string; -}; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = multicast; +/* unused harmony export MulticastOperator */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_ConnectableObservable__ = __webpack_require__(105); +/** PURE_IMPORTS_START _observable_ConnectableObservable PURE_IMPORTS_END */ -convert.hex.rgb = function (args) { - var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); - if (!match) { - return [0, 0, 0]; - } +function multicast(subjectOrSubjectFactory, selector) { + return function multicastOperatorFunction(source) { + var subjectFactory; + if (typeof subjectOrSubjectFactory === 'function') { + subjectFactory = subjectOrSubjectFactory; + } + else { + subjectFactory = function subjectFactory() { + return subjectOrSubjectFactory; + }; + } + if (typeof selector === 'function') { + return source.lift(new MulticastOperator(subjectFactory, selector)); + } + var connectable = Object.create(source, __WEBPACK_IMPORTED_MODULE_0__observable_ConnectableObservable__["b" /* connectableObservableDescriptor */]); + connectable.source = source; + connectable.subjectFactory = subjectFactory; + return connectable; + }; +} +var MulticastOperator = /*@__PURE__*/ (function () { + function MulticastOperator(subjectFactory, selector) { + this.subjectFactory = subjectFactory; + this.selector = selector; + } + MulticastOperator.prototype.call = function (subscriber, source) { + var selector = this.selector; + var subject = this.subjectFactory(); + var subscription = selector(subject).subscribe(subscriber); + subscription.add(source.subscribe(subject)); + return subscription; + }; + return MulticastOperator; +}()); - var colorString = match[0]; +//# sourceMappingURL=multicast.js.map - if (match[0].length === 3) { - colorString = colorString.split('').map(function (char) { - return char + char; - }).join(''); - } - var integer = parseInt(colorString, 16); - var r = (integer >> 16) & 0xFF; - var g = (integer >> 8) & 0xFF; - var b = integer & 0xFF; +/***/ }), +/* 27 */ +/***/ (function(module, exports, __webpack_require__) { - return [r, g, b]; -}; +var fs = __webpack_require__(6) +var polyfills = __webpack_require__(149) +var legacy = __webpack_require__(151) +var queue = [] -convert.rgb.hcg = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var max = Math.max(Math.max(r, g), b); - var min = Math.min(Math.min(r, g), b); - var chroma = (max - min); - var grayscale; - var hue; +var util = __webpack_require__(8) - if (chroma < 1) { - grayscale = min / (1 - chroma); - } else { - grayscale = 0; - } +function noop () {} - if (chroma <= 0) { - hue = 0; - } else - if (max === r) { - hue = ((g - b) / chroma) % 6; - } else - if (max === g) { - hue = 2 + (b - r) / chroma; - } else { - hue = 4 + (r - g) / chroma + 4; - } +var debug = noop +if (util.debuglog) + debug = util.debuglog('gfs4') +else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) + debug = function() { + var m = util.format.apply(util, arguments) + m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') + console.error(m) + } - hue /= 6; - hue %= 1; +if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { + process.on('exit', function() { + debug(queue) + __webpack_require__(28).equal(queue.length, 0) + }) +} - return [hue * 360, chroma * 100, grayscale * 100]; -}; +module.exports = patch(__webpack_require__(79)) +if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) { + module.exports = patch(fs) +} -convert.hsl.hcg = function (hsl) { - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var c = 1; - var f = 0; +// Always patch fs.close/closeSync, because we want to +// retry() whenever a close happens *anywhere* in the program. +// This is essential when multiple graceful-fs instances are +// in play at the same time. +module.exports.close = +fs.close = (function (fs$close) { return function (fd, cb) { + return fs$close.call(fs, fd, function (err) { + if (!err) + retry() - if (l < 0.5) { - c = 2.0 * s * l; - } else { - c = 2.0 * s * (1.0 - l); - } + if (typeof cb === 'function') + cb.apply(this, arguments) + }) +}})(fs.close) - if (c < 1.0) { - f = (l - 0.5 * c) / (1.0 - c); - } +module.exports.closeSync = +fs.closeSync = (function (fs$closeSync) { return function (fd) { + // Note that graceful-fs also retries when fs.closeSync() fails. + // Looks like a bug to me, although it's probably a harmless one. + var rval = fs$closeSync.apply(fs, arguments) + retry() + return rval +}})(fs.closeSync) - return [hsl[0], c * 100, f * 100]; -}; +function patch (fs) { + // Everything that references the open() function needs to be in here + polyfills(fs) + fs.gracefulify = patch + fs.FileReadStream = ReadStream; // Legacy name. + fs.FileWriteStream = WriteStream; // Legacy name. + fs.createReadStream = createReadStream + fs.createWriteStream = createWriteStream + var fs$readFile = fs.readFile + fs.readFile = readFile + function readFile (path, options, cb) { + if (typeof options === 'function') + cb = options, options = null -convert.hsv.hcg = function (hsv) { - var s = hsv[1] / 100; - var v = hsv[2] / 100; + return go$readFile(path, options, cb) - var c = s * v; - var f = 0; + function go$readFile (path, options, cb) { + return fs$readFile(path, options, function (err) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$readFile, [path, options, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } - if (c < 1.0) { - f = (v - c) / (1 - c); - } + var fs$writeFile = fs.writeFile + fs.writeFile = writeFile + function writeFile (path, data, options, cb) { + if (typeof options === 'function') + cb = options, options = null - return [hsv[0], c * 100, f * 100]; -}; + return go$writeFile(path, data, options, cb) -convert.hcg.rgb = function (hcg) { - var h = hcg[0] / 360; - var c = hcg[1] / 100; - var g = hcg[2] / 100; + function go$writeFile (path, data, options, cb) { + return fs$writeFile(path, data, options, function (err) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$writeFile, [path, data, options, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } - if (c === 0.0) { - return [g * 255, g * 255, g * 255]; - } + var fs$appendFile = fs.appendFile + if (fs$appendFile) + fs.appendFile = appendFile + function appendFile (path, data, options, cb) { + if (typeof options === 'function') + cb = options, options = null - var pure = [0, 0, 0]; - var hi = (h % 1) * 6; - var v = hi % 1; - var w = 1 - v; - var mg = 0; + return go$appendFile(path, data, options, cb) - switch (Math.floor(hi)) { - case 0: - pure[0] = 1; pure[1] = v; pure[2] = 0; break; - case 1: - pure[0] = w; pure[1] = 1; pure[2] = 0; break; - case 2: - pure[0] = 0; pure[1] = 1; pure[2] = v; break; - case 3: - pure[0] = 0; pure[1] = w; pure[2] = 1; break; - case 4: - pure[0] = v; pure[1] = 0; pure[2] = 1; break; - default: - pure[0] = 1; pure[1] = 0; pure[2] = w; - } + function go$appendFile (path, data, options, cb) { + return fs$appendFile(path, data, options, function (err) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$appendFile, [path, data, options, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } - mg = (1.0 - c) * g; + var fs$readdir = fs.readdir + fs.readdir = readdir + function readdir (path, options, cb) { + var args = [path] + if (typeof options !== 'function') { + args.push(options) + } else { + cb = options + } + args.push(go$readdir$cb) - return [ - (c * pure[0] + mg) * 255, - (c * pure[1] + mg) * 255, - (c * pure[2] + mg) * 255 - ]; -}; + return go$readdir(args) -convert.hcg.hsv = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; + function go$readdir$cb (err, files) { + if (files && files.sort) + files.sort() - var v = c + g * (1.0 - c); - var f = 0; + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$readdir, [args]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + } + } - if (v > 0.0) { - f = c / v; - } + function go$readdir (args) { + return fs$readdir.apply(fs, args) + } - return [hcg[0], f * 100, v * 100]; -}; + if (process.version.substr(0, 4) === 'v0.8') { + var legStreams = legacy(fs) + ReadStream = legStreams.ReadStream + WriteStream = legStreams.WriteStream + } -convert.hcg.hsl = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; + var fs$ReadStream = fs.ReadStream + ReadStream.prototype = Object.create(fs$ReadStream.prototype) + ReadStream.prototype.open = ReadStream$open - var l = g * (1.0 - c) + 0.5 * c; - var s = 0; + var fs$WriteStream = fs.WriteStream + WriteStream.prototype = Object.create(fs$WriteStream.prototype) + WriteStream.prototype.open = WriteStream$open - if (l > 0.0 && l < 0.5) { - s = c / (2 * l); - } else - if (l >= 0.5 && l < 1.0) { - s = c / (2 * (1 - l)); - } + fs.ReadStream = ReadStream + fs.WriteStream = WriteStream - return [hcg[0], s * 100, l * 100]; -}; + function ReadStream (path, options) { + if (this instanceof ReadStream) + return fs$ReadStream.apply(this, arguments), this + else + return ReadStream.apply(Object.create(ReadStream.prototype), arguments) + } -convert.hcg.hwb = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - var v = c + g * (1.0 - c); - return [hcg[0], (v - c) * 100, (1 - v) * 100]; -}; + function ReadStream$open () { + var that = this + open(that.path, that.flags, that.mode, function (err, fd) { + if (err) { + if (that.autoClose) + that.destroy() -convert.hwb.hcg = function (hwb) { - var w = hwb[1] / 100; - var b = hwb[2] / 100; - var v = 1 - b; - var c = v - w; - var g = 0; + that.emit('error', err) + } else { + that.fd = fd + that.emit('open', fd) + that.read() + } + }) + } - if (c < 1) { - g = (v - c) / (1 - c); - } + function WriteStream (path, options) { + if (this instanceof WriteStream) + return fs$WriteStream.apply(this, arguments), this + else + return WriteStream.apply(Object.create(WriteStream.prototype), arguments) + } - return [hwb[0], c * 100, g * 100]; -}; + function WriteStream$open () { + var that = this + open(that.path, that.flags, that.mode, function (err, fd) { + if (err) { + that.destroy() + that.emit('error', err) + } else { + that.fd = fd + that.emit('open', fd) + } + }) + } -convert.apple.rgb = function (apple) { - return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255]; -}; + function createReadStream (path, options) { + return new ReadStream(path, options) + } -convert.rgb.apple = function (rgb) { - return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535]; -}; + function createWriteStream (path, options) { + return new WriteStream(path, options) + } -convert.gray.rgb = function (args) { - return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; -}; + var fs$open = fs.open + fs.open = open + function open (path, flags, mode, cb) { + if (typeof mode === 'function') + cb = mode, mode = null -convert.gray.hsl = convert.gray.hsv = function (args) { - return [0, 0, args[0]]; -}; + return go$open(path, flags, mode, cb) -convert.gray.hwb = function (gray) { - return [0, 100, gray[0]]; -}; + function go$open (path, flags, mode, cb) { + return fs$open(path, flags, mode, function (err, fd) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$open, [path, flags, mode, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } -convert.gray.cmyk = function (gray) { - return [0, 0, 0, gray[0]]; -}; + return fs +} -convert.gray.lab = function (gray) { - return [gray[0], 0, 0]; -}; +function enqueue (elem) { + debug('ENQUEUE', elem[0].name, elem[1]) + queue.push(elem) +} -convert.gray.hex = function (gray) { - var val = Math.round(gray[0] / 100 * 255) & 0xFF; - var integer = (val << 16) + (val << 8) + val; +function retry () { + var elem = queue.shift() + if (elem) { + debug('RETRY', elem[0].name, elem[1]) + elem[0].apply(null, elem[1]) + } +} - var string = integer.toString(16).toUpperCase(); - return '000000'.substring(string.length) + string; -}; -convert.rgb.gray = function (rgb) { - var val = (rgb[0] + rgb[1] + rgb[2]) / 3; - return [val / 255 * 100]; -}; +/***/ }), +/* 28 */ +/***/ (function(module, exports) { +module.exports = require("assert"); /***/ }), -/* 80 */ -/***/ (function(module, exports, __webpack_require__) { +/* 29 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; - - -var fs = __webpack_require__(7) - -module.exports = clone(fs) - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: obj.__proto__ } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy +/* harmony export (immutable) */ __webpack_exports__["a"] = isFunction; +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +function isFunction(x) { + return typeof x === 'function'; } +//# sourceMappingURL=isFunction.js.map /***/ }), -/* 81 */ -/***/ (function(module, exports, __webpack_require__) { +/* 30 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var path = __webpack_require__(3); -var fs = __webpack_require__(7); -var _0777 = parseInt('0777', 8); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsyncAction; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Action__ = __webpack_require__(264); +/** PURE_IMPORTS_START tslib,_Action PURE_IMPORTS_END */ -module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP; -function mkdirP (p, opts, f, made) { - if (typeof opts === 'function') { - f = opts; - opts = {}; - } - else if (!opts || typeof opts !== 'object') { - opts = { mode: opts }; - } - - var mode = opts.mode; - var xfs = opts.fs || fs; - - if (mode === undefined) { - mode = _0777 & (~process.umask()); +var AsyncAction = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AsyncAction, _super); + function AsyncAction(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + _this.pending = false; + return _this; } - if (!made) made = null; - - var cb = f || function () {}; - p = path.resolve(p); - - xfs.mkdir(p, mode, function (er) { - if (!er) { - made = made || p; - return cb(null, made); + AsyncAction.prototype.schedule = function (state, delay) { + if (delay === void 0) { + delay = 0; } - switch (er.code) { - case 'ENOENT': - mkdirP(path.dirname(p), opts, function (er, made) { - if (er) cb(er, made); - else mkdirP(p, opts, cb, made); - }); - break; - - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - xfs.stat(p, function (er2, stat) { - // if the stat fails, then that's super weird. - // let the original error be the failure reason. - if (er2 || !stat.isDirectory()) cb(er, made) - else cb(null, made); - }); - break; + if (this.closed) { + return this; } - }); -} + this.state = state; + var id = this.id; + var scheduler = this.scheduler; + if (id != null) { + this.id = this.recycleAsyncId(scheduler, id, delay); + } + this.pending = true; + this.delay = delay; + this.id = this.id || this.requestAsyncId(scheduler, this.id, delay); + return this; + }; + AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) { + if (delay === void 0) { + delay = 0; + } + return setInterval(scheduler.flush.bind(scheduler, this), delay); + }; + AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay !== null && this.delay === delay && this.pending === false) { + return id; + } + return clearInterval(id) && undefined || undefined; + }; + AsyncAction.prototype.execute = function (state, delay) { + if (this.closed) { + return new Error('executing a cancelled action'); + } + this.pending = false; + var error = this._execute(state, delay); + if (error) { + return error; + } + else if (this.pending === false && this.id != null) { + this.id = this.recycleAsyncId(this.scheduler, this.id, null); + } + }; + AsyncAction.prototype._execute = function (state, delay) { + var errored = false; + var errorValue = undefined; + try { + this.work(state); + } + catch (e) { + errored = true; + errorValue = !!e && e || new Error(e); + } + if (errored) { + this.unsubscribe(); + return errorValue; + } + }; + AsyncAction.prototype._unsubscribe = function () { + var id = this.id; + var scheduler = this.scheduler; + var actions = scheduler.actions; + var index = actions.indexOf(this); + this.work = null; + this.state = null; + this.pending = false; + this.scheduler = null; + if (index !== -1) { + actions.splice(index, 1); + } + if (id != null) { + this.id = this.recycleAsyncId(scheduler, id, null); + } + this.delay = null; + }; + return AsyncAction; +}(__WEBPACK_IMPORTED_MODULE_1__Action__["a" /* Action */])); -mkdirP.sync = function sync (p, opts, made) { - if (!opts || typeof opts !== 'object') { - opts = { mode: opts }; - } - - var mode = opts.mode; - var xfs = opts.fs || fs; - - if (mode === undefined) { - mode = _0777 & (~process.umask()); - } - if (!made) made = null; +//# sourceMappingURL=AsyncAction.js.map - p = path.resolve(p); - try { - xfs.mkdirSync(p, mode); - made = made || p; - } - catch (err0) { - switch (err0.code) { - case 'ENOENT' : - made = sync(path.dirname(p), opts, made); - sync(p, opts, made); - break; +/***/ }), +/* 31 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - var stat; - try { - stat = xfs.statSync(p); - } - catch (err1) { - throw err0; - } - if (!stat.isDirectory()) throw err0; +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsyncScheduler; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Scheduler__ = __webpack_require__(110); +/** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */ + + +var AsyncScheduler = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AsyncScheduler, _super); + function AsyncScheduler(SchedulerAction, now) { + if (now === void 0) { + now = __WEBPACK_IMPORTED_MODULE_1__Scheduler__["a" /* Scheduler */].now; + } + var _this = _super.call(this, SchedulerAction, function () { + if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) { + return AsyncScheduler.delegate.now(); + } + else { + return now(); + } + }) || this; + _this.actions = []; + _this.active = false; + _this.scheduled = undefined; + return _this; + } + AsyncScheduler.prototype.schedule = function (work, delay, state) { + if (delay === void 0) { + delay = 0; + } + if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) { + return AsyncScheduler.delegate.schedule(work, delay, state); + } + else { + return _super.prototype.schedule.call(this, work, delay, state); + } + }; + AsyncScheduler.prototype.flush = function (action) { + var actions = this.actions; + if (this.active) { + actions.push(action); + return; + } + var error; + this.active = true; + do { + if (error = action.execute(action.state, action.delay)) { break; + } + } while (action = actions.shift()); + this.active = false; + if (error) { + while (action = actions.shift()) { + action.unsubscribe(); + } + throw error; } - } + }; + return AsyncScheduler; +}(__WEBPACK_IMPORTED_MODULE_1__Scheduler__["a" /* Scheduler */])); - return made; -}; +//# sourceMappingURL=AsyncScheduler.js.map /***/ }), -/* 82 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = realpath -realpath.realpath = realpath -realpath.sync = realpathSync -realpath.realpathSync = realpathSync -realpath.monkeypatch = monkeypatch -realpath.unmonkeypatch = unmonkeypatch +/* 32 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var fs = __webpack_require__(7) -var origRealpath = fs.realpath -var origRealpathSync = fs.realpathSync +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ArgumentOutOfRangeError; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ -var version = process.version -var ok = /^v[0-5]\./.test(version) -var old = __webpack_require__(273) +var ArgumentOutOfRangeError = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ArgumentOutOfRangeError, _super); + function ArgumentOutOfRangeError() { + var _this = _super.call(this, 'argument out of range') || this; + _this.name = 'ArgumentOutOfRangeError'; + Object.setPrototypeOf(_this, ArgumentOutOfRangeError.prototype); + return _this; + } + return ArgumentOutOfRangeError; +}(Error)); -function newError (er) { - return er && er.syscall === 'realpath' && ( - er.code === 'ELOOP' || - er.code === 'ENOMEM' || - er.code === 'ENAMETOOLONG' - ) -} +//# sourceMappingURL=ArgumentOutOfRangeError.js.map -function realpath (p, cache, cb) { - if (ok) { - return origRealpath(p, cache, cb) - } - if (typeof cache === 'function') { - cb = cache - cache = null - } - origRealpath(p, cache, function (er, result) { - if (newError(er)) { - old.realpath(p, cache, cb) - } else { - cb(er, result) - } - }) -} +/***/ }), +/* 33 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function realpathSync (p, cache) { - if (ok) { - return origRealpathSync(p, cache) - } +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EmptyError; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ - try { - return origRealpathSync(p, cache) - } catch (er) { - if (newError(er)) { - return old.realpathSync(p, cache) - } else { - throw er +var EmptyError = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](EmptyError, _super); + function EmptyError() { + var _this = _super.call(this, 'no elements in sequence') || this; + _this.name = 'EmptyError'; + Object.setPrototypeOf(_this, EmptyError.prototype); + return _this; } - } -} - -function monkeypatch () { - fs.realpath = realpath - fs.realpathSync = realpathSync -} + return EmptyError; +}(Error)); -function unmonkeypatch () { - fs.realpath = origRealpath - fs.realpathSync = origRealpathSync -} +//# sourceMappingURL=EmptyError.js.map /***/ }), -/* 83 */ -/***/ (function(module, exports, __webpack_require__) { +/* 34 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -try { - var util = __webpack_require__(10); - if (typeof util.inherits !== 'function') throw ''; - module.exports = util.inherits; -} catch (e) { - module.exports = __webpack_require__(277); +"use strict"; +/* unused harmony export getSymbolIterator */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return iterator; }); +/* unused harmony export $$iterator */ +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +function getSymbolIterator() { + if (typeof Symbol !== 'function' || !Symbol.iterator) { + return '@@iterator'; + } + return Symbol.iterator; } +var iterator = /*@__PURE__*/ getSymbolIterator(); +var $$iterator = iterator; +//# sourceMappingURL=iterator.js.map /***/ }), -/* 84 */ -/***/ (function(module, exports, __webpack_require__) { - -exports.alphasort = alphasort -exports.alphasorti = alphasorti -exports.setopts = setopts -exports.ownProp = ownProp -exports.makeAbs = makeAbs -exports.finish = finish -exports.mark = mark -exports.isIgnored = isIgnored -exports.childrenIgnored = childrenIgnored - -function ownProp (obj, field) { - return Object.prototype.hasOwnProperty.call(obj, field) -} - -var path = __webpack_require__(3) -var minimatch = __webpack_require__(58) -var isAbsolute = __webpack_require__(59) -var Minimatch = minimatch.Minimatch - -function alphasorti (a, b) { - return a.toLowerCase().localeCompare(b.toLowerCase()) -} +/* 35 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function alphasort (a, b) { - return a.localeCompare(b) -} +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = mergeMap; +/* unused harmony export MergeMapOperator */ +/* unused harmony export MergeMapSubscriber */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__observable_from__ = __webpack_require__(18); +/** PURE_IMPORTS_START tslib,_util_subscribeToResult,_OuterSubscriber,_map,_observable_from PURE_IMPORTS_END */ -function setupIgnores (self, options) { - self.ignore = options.ignore || [] - if (!Array.isArray(self.ignore)) - self.ignore = [self.ignore] - if (self.ignore.length) { - self.ignore = self.ignore.map(ignoreMap) - } -} -// ignore patterns are always in dot:true mode. -function ignoreMap (pattern) { - var gmatcher = null - if (pattern.slice(-3) === '/**') { - var gpattern = pattern.replace(/(\/\*\*)+$/, '') - gmatcher = new Minimatch(gpattern, { dot: true }) - } - return { - matcher: new Minimatch(pattern, { dot: true }), - gmatcher: gmatcher - } +function mergeMap(project, resultSelector, concurrent) { + if (concurrent === void 0) { + concurrent = Number.POSITIVE_INFINITY; + } + if (typeof resultSelector === 'function') { + return function (source) { return source.pipe(mergeMap(function (a, i) { return Object(__WEBPACK_IMPORTED_MODULE_4__observable_from__["a" /* from */])(project(a, i)).pipe(Object(__WEBPACK_IMPORTED_MODULE_3__map__["a" /* map */])(function (b, ii) { return resultSelector(a, b, i, ii); })); }, concurrent)); }; + } + else if (typeof resultSelector === 'number') { + concurrent = resultSelector; + } + return function (source) { return source.lift(new MergeMapOperator(project, concurrent)); }; } - -function setopts (self, pattern, options) { - if (!options) - options = {} - - // base-matching: just use globstar for that. - if (options.matchBase && -1 === pattern.indexOf("/")) { - if (options.noglobstar) { - throw new Error("base matching requires globstar") +var MergeMapOperator = /*@__PURE__*/ (function () { + function MergeMapOperator(project, concurrent) { + if (concurrent === void 0) { + concurrent = Number.POSITIVE_INFINITY; + } + this.project = project; + this.concurrent = concurrent; } - pattern = "**/" + pattern - } - - self.silent = !!options.silent - self.pattern = pattern - self.strict = options.strict !== false - self.realpath = !!options.realpath - self.realpathCache = options.realpathCache || Object.create(null) - self.follow = !!options.follow - self.dot = !!options.dot - self.mark = !!options.mark - self.nodir = !!options.nodir - if (self.nodir) - self.mark = true - self.sync = !!options.sync - self.nounique = !!options.nounique - self.nonull = !!options.nonull - self.nosort = !!options.nosort - self.nocase = !!options.nocase - self.stat = !!options.stat - self.noprocess = !!options.noprocess - self.absolute = !!options.absolute - - self.maxLength = options.maxLength || Infinity - self.cache = options.cache || Object.create(null) - self.statCache = options.statCache || Object.create(null) - self.symlinks = options.symlinks || Object.create(null) - - setupIgnores(self, options) + MergeMapOperator.prototype.call = function (observer, source) { + return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent)); + }; + return MergeMapOperator; +}()); - self.changedCwd = false - var cwd = process.cwd() - if (!ownProp(options, "cwd")) - self.cwd = cwd - else { - self.cwd = path.resolve(options.cwd) - self.changedCwd = self.cwd !== cwd - } +var MergeMapSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](MergeMapSubscriber, _super); + function MergeMapSubscriber(destination, project, concurrent) { + if (concurrent === void 0) { + concurrent = Number.POSITIVE_INFINITY; + } + var _this = _super.call(this, destination) || this; + _this.project = project; + _this.concurrent = concurrent; + _this.hasCompleted = false; + _this.buffer = []; + _this.active = 0; + _this.index = 0; + return _this; + } + MergeMapSubscriber.prototype._next = function (value) { + if (this.active < this.concurrent) { + this._tryNext(value); + } + else { + this.buffer.push(value); + } + }; + MergeMapSubscriber.prototype._tryNext = function (value) { + var result; + var index = this.index++; + try { + result = this.project(value, index); + } + catch (err) { + this.destination.error(err); + return; + } + this.active++; + this._innerSub(result, value, index); + }; + MergeMapSubscriber.prototype._innerSub = function (ish, value, index) { + this.add(Object(__WEBPACK_IMPORTED_MODULE_1__util_subscribeToResult__["a" /* subscribeToResult */])(this, ish, value, index)); + }; + MergeMapSubscriber.prototype._complete = function () { + this.hasCompleted = true; + if (this.active === 0 && this.buffer.length === 0) { + this.destination.complete(); + } + }; + MergeMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { + this.destination.next(innerValue); + }; + MergeMapSubscriber.prototype.notifyComplete = function (innerSub) { + var buffer = this.buffer; + this.remove(innerSub); + this.active--; + if (buffer.length > 0) { + this._next(buffer.shift()); + } + else if (this.active === 0 && this.hasCompleted) { + this.destination.complete(); + } + }; + return MergeMapSubscriber; +}(__WEBPACK_IMPORTED_MODULE_2__OuterSubscriber__["a" /* OuterSubscriber */])); - self.root = options.root || path.resolve(self.cwd, "/") - self.root = path.resolve(self.root) - if (process.platform === "win32") - self.root = self.root.replace(/\\/g, "/") +//# sourceMappingURL=mergeMap.js.map - // TODO: is an absolute `cwd` supposed to be resolved against `root`? - // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test') - self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd) - if (process.platform === "win32") - self.cwdAbs = self.cwdAbs.replace(/\\/g, "/") - self.nomount = !!options.nomount - // disable comments and negation in Minimatch. - // Note that they are not supported in Glob itself anyway. - options.nonegate = true - options.nocomment = true +/***/ }), +/* 36 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - self.minimatch = new Minimatch(pattern, options) - self.options = self.minimatch.options -} +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = defaultIfEmpty; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ -function finish (self) { - var nou = self.nounique - var all = nou ? [] : Object.create(null) - for (var i = 0, l = self.matches.length; i < l; i ++) { - var matches = self.matches[i] - if (!matches || Object.keys(matches).length === 0) { - if (self.nonull) { - // do like the shell, and spit out the literal glob - var literal = self.minimatch.globSet[i] - if (nou) - all.push(literal) - else - all[literal] = true - } - } else { - // had matches - var m = Object.keys(matches) - if (nou) - all.push.apply(all, m) - else - m.forEach(function (m) { - all[m] = true - }) +function defaultIfEmpty(defaultValue) { + if (defaultValue === void 0) { + defaultValue = null; } - } - - if (!nou) - all = Object.keys(all) - - if (!self.nosort) - all = all.sort(self.nocase ? alphasorti : alphasort) - - // at *some* point we statted all of these - if (self.mark) { - for (var i = 0; i < all.length; i++) { - all[i] = self._mark(all[i]) + return function (source) { return source.lift(new DefaultIfEmptyOperator(defaultValue)); }; +} +var DefaultIfEmptyOperator = /*@__PURE__*/ (function () { + function DefaultIfEmptyOperator(defaultValue) { + this.defaultValue = defaultValue; } - if (self.nodir) { - all = all.filter(function (e) { - var notDir = !(/\/$/.test(e)) - var c = self.cache[e] || self.cache[makeAbs(self, e)] - if (notDir && c) - notDir = c !== 'DIR' && !Array.isArray(c) - return notDir - }) + DefaultIfEmptyOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue)); + }; + return DefaultIfEmptyOperator; +}()); +var DefaultIfEmptySubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](DefaultIfEmptySubscriber, _super); + function DefaultIfEmptySubscriber(destination, defaultValue) { + var _this = _super.call(this, destination) || this; + _this.defaultValue = defaultValue; + _this.isEmpty = true; + return _this; } - } - - if (self.ignore.length) - all = all.filter(function(m) { - return !isIgnored(self, m) - }) - - self.found = all -} - -function mark (self, p) { - var abs = makeAbs(self, p) - var c = self.cache[abs] - var m = p - if (c) { - var isDir = c === 'DIR' || Array.isArray(c) - var slash = p.slice(-1) === '/' - - if (isDir && !slash) - m += '/' - else if (!isDir && slash) - m = m.slice(0, -1) + DefaultIfEmptySubscriber.prototype._next = function (value) { + this.isEmpty = false; + this.destination.next(value); + }; + DefaultIfEmptySubscriber.prototype._complete = function () { + if (this.isEmpty) { + this.destination.next(this.defaultValue); + } + this.destination.complete(); + }; + return DefaultIfEmptySubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); +//# sourceMappingURL=defaultIfEmpty.js.map - if (m !== p) { - var mabs = makeAbs(self, m) - self.statCache[mabs] = self.statCache[abs] - self.cache[mabs] = self.cache[abs] - } - } - return m -} +/***/ }), +/* 37 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -// lotta situps... -function makeAbs (self, f) { - var abs = f - if (f.charAt(0) === '/') { - abs = path.join(self.root, f) - } else if (isAbsolute(f) || f === '') { - abs = f - } else if (self.changedCwd) { - abs = path.resolve(self.cwd, f) - } else { - abs = path.resolve(f) - } +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = filter; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - if (process.platform === 'win32') - abs = abs.replace(/\\/g, '/') - return abs +function filter(predicate, thisArg) { + return function filterOperatorFunction(source) { + return source.lift(new FilterOperator(predicate, thisArg)); + }; } +var FilterOperator = /*@__PURE__*/ (function () { + function FilterOperator(predicate, thisArg) { + this.predicate = predicate; + this.thisArg = thisArg; + } + FilterOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg)); + }; + return FilterOperator; +}()); +var FilterSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](FilterSubscriber, _super); + function FilterSubscriber(destination, predicate, thisArg) { + var _this = _super.call(this, destination) || this; + _this.predicate = predicate; + _this.thisArg = thisArg; + _this.count = 0; + return _this; + } + FilterSubscriber.prototype._next = function (value) { + var result; + try { + result = this.predicate.call(this.thisArg, value, this.count++); + } + catch (err) { + this.destination.error(err); + return; + } + if (result) { + this.destination.next(value); + } + }; + return FilterSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); +//# sourceMappingURL=filter.js.map -// Return true, if pattern ends with globstar '**', for the accompanying parent directory. -// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents -function isIgnored (self, path) { - if (!self.ignore.length) - return false - - return self.ignore.some(function(item) { - return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path)) - }) -} - -function childrenIgnored (self, path) { - if (!self.ignore.length) - return false +/***/ }), +/* 38 */ +/***/ (function(module, exports) { - return self.ignore.some(function(item) { - return !!(item.gmatcher && item.gmatcher.match(path)) - }) -} +module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if(!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; +}; /***/ }), -/* 85 */ -/***/ (function(module, exports) { - -// Returns a wrapper function that returns a wrapped callback -// The wrapper function should do some stuff, and return a -// presumably different callback function. -// This makes sure that own properties are retained, so that -// decorations and such are not lost along the way. -module.exports = wrappy -function wrappy (fn, cb) { - if (fn && cb) return wrappy(fn)(cb) +/* 39 */ +/***/ (function(module, exports, __webpack_require__) { - if (typeof fn !== 'function') - throw new TypeError('need wrapper function') +"use strict"; - Object.keys(fn).forEach(function (k) { - wrapper[k] = fn[k] - }) - return wrapper +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.createSymlink = exports.isFile = exports.isDirectory = exports.mkdirp = exports.readFile = exports.chmod = exports.copyDirectory = exports.unlink = undefined; - function wrapper() { - var args = new Array(arguments.length) - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i] - } - var ret = fn.apply(this, args) - var cb = args[args.length-1] - if (typeof ret === 'function' && ret !== cb) { - Object.keys(cb).forEach(function (k) { - ret[k] = cb[k] - }) - } - return ret - } -} +let statTest = (() => { + var _ref = _asyncToGenerator(function* (path, block) { + try { + return block((yield stat(path))); + } catch (e) { + if (e.code === 'ENOENT') { + return false; + } + throw e; + } + }); + return function statTest(_x, _x2) { + return _ref.apply(this, arguments); + }; +})(); +/** + * Test if a path points to a directory. + * @param path + */ -/***/ }), -/* 86 */ -/***/ (function(module, exports, __webpack_require__) { -var wrappy = __webpack_require__(85) -module.exports = wrappy(once) -module.exports.strict = wrappy(onceStrict) +let isDirectory = exports.isDirectory = (() => { + var _ref2 = _asyncToGenerator(function* (path) { + return yield statTest(path, function (stats) { + return stats.isDirectory(); + }); + }); -once.proto = once(function () { - Object.defineProperty(Function.prototype, 'once', { - value: function () { - return once(this) - }, - configurable: true - }) + return function isDirectory(_x3) { + return _ref2.apply(this, arguments); + }; +})(); +/** + * Test if a path points to a regular file. + * @param path + */ - Object.defineProperty(Function.prototype, 'onceStrict', { - value: function () { - return onceStrict(this) - }, - configurable: true - }) -}) -function once (fn) { - var f = function () { - if (f.called) return f.value - f.called = true - return f.value = fn.apply(this, arguments) - } - f.called = false - return f -} +let isFile = exports.isFile = (() => { + var _ref3 = _asyncToGenerator(function* (path) { + return yield statTest(path, function (stats) { + return stats.isFile(); + }); + }); -function onceStrict (fn) { - var f = function () { - if (f.called) - throw new Error(f.onceError) - f.called = true - return f.value = fn.apply(this, arguments) - } - var name = fn.name || 'Function wrapped with `once`' - f.onceError = name + " shouldn't be called more than once" - f.called = false - return f -} + return function isFile(_x4) { + return _ref3.apply(this, arguments); + }; +})(); +/** + * Create a symlink at dest that points to src. Adapted from + * https://github.com/lerna/lerna/blob/2f1b87d9e2295f587e4ac74269f714271d8ed428/src/FileSystemUtilities.js#L103. + * + * @param src + * @param dest + * @param type 'dir', 'file', 'junction', or 'exec'. 'exec' on + * windows will use the `cmd-shim` module since symlinks can't be used + * for executable files on windows. + */ -/***/ }), -/* 87 */ -/***/ (function(module, exports, __webpack_require__) { +let createSymlink = exports.createSymlink = (() => { + var _ref4 = _asyncToGenerator(function* (src, dest, type) { + if (process.platform === 'win32') { + if (type === 'exec') { + yield cmdShim(src, dest); + } else { + yield forceCreate(src, dest, type); + } + } else { + const posixType = type === 'exec' ? 'file' : type; + const relativeSource = (0, _path.relative)((0, _path.dirname)(dest), src); + yield forceCreate(relativeSource, dest, posixType); + } + }); -"use strict"; + return function createSymlink(_x5, _x6, _x7) { + return _ref4.apply(this, arguments); + }; +})(); +let forceCreate = (() => { + var _ref5 = _asyncToGenerator(function* (src, dest, type) { + try { + // If something exists at `dest` we need to remove it first. + yield unlink(dest); + } catch (error) { + if (error.code !== 'ENOENT') { + throw error; + } + } + yield symlink(src, dest, type); + }); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.Project = undefined; + return function forceCreate(_x8, _x9, _x10) { + return _ref5.apply(this, arguments); + }; +})(); -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; +var _cmdShim = __webpack_require__(148); -var _chalk = __webpack_require__(18); +var _cmdShim2 = _interopRequireDefault(_cmdShim); -var _chalk2 = _interopRequireDefault(_chalk); +var _fs = __webpack_require__(6); -var _path = __webpack_require__(3); +var _fs2 = _interopRequireDefault(_fs); -var _util = __webpack_require__(10); +var _mkdirp = __webpack_require__(80); -var _errors = __webpack_require__(60); +var _mkdirp2 = _interopRequireDefault(_mkdirp); -var _log = __webpack_require__(20); +var _ncp = __webpack_require__(152); -var _package_json = __webpack_require__(42); +var _path = __webpack_require__(2); -var _scripts = __webpack_require__(310); +var _util = __webpack_require__(8); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -12419,12818 +3531,5606 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a */ -class Project { - static fromPath(path) { - return _asyncToGenerator(function* () { - const pkgJson = yield (0, _package_json.readPackageJson)(path); - return new Project(pkgJson, path); - })(); - } - constructor(packageJson, projectPath) { - this.json = Object.freeze(packageJson); - this.path = projectPath; - this.packageJsonLocation = (0, _path.resolve)(this.path, 'package.json'); - this.nodeModulesLocation = (0, _path.resolve)(this.path, 'node_modules'); - this.optimizeLocation = (0, _path.resolve)(this.path, 'optimize'); - this.targetLocation = (0, _path.resolve)(this.path, 'target'); - this.productionDependencies = this.json.dependencies || {}; - this.devDependencies = this.json.devDependencies || {}; - this.allDependencies = _extends({}, this.devDependencies, this.productionDependencies); - this.scripts = this.json.scripts || {}; - } - get name() { - return this.json.name; - } - ensureValidProjectDependency(project) { - const relativePathToProject = normalizePath((0, _path.relative)(this.path, project.path)); - const versionInPackageJson = this.allDependencies[project.name]; - const expectedVersionInPackageJson = `link:${relativePathToProject}`; - if (versionInPackageJson === expectedVersionInPackageJson) { - return; +const stat = (0, _util.promisify)(_fs2.default.stat); +const readFile = (0, _util.promisify)(_fs2.default.readFile); +const symlink = (0, _util.promisify)(_fs2.default.symlink); +const chmod = (0, _util.promisify)(_fs2.default.chmod); +const cmdShim = (0, _util.promisify)(_cmdShim2.default); +const mkdirp = (0, _util.promisify)(_mkdirp2.default); +const unlink = exports.unlink = (0, _util.promisify)(_fs2.default.unlink); +const copyDirectory = exports.copyDirectory = (0, _util.promisify)(_ncp.ncp); +exports.chmod = chmod; +exports.readFile = readFile; +exports.mkdirp = mkdirp; + +/***/ }), +/* 40 */ +/***/ (function(module, exports) { + +module.exports = require("events"); + +/***/ }), +/* 41 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.isLinkDependency = undefined; +exports.readPackageJson = readPackageJson; +exports.writePackageJson = writePackageJson; + +var _readPkg = __webpack_require__(160); + +var _readPkg2 = _interopRequireDefault(_readPkg); + +var _writePkg = __webpack_require__(185); + +var _writePkg2 = _interopRequireDefault(_writePkg); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +function readPackageJson(dir) { + return (0, _readPkg2.default)(dir, { normalize: false }); +} +function writePackageJson(path, json) { + return (0, _writePkg2.default)(path, json); +} +const isLinkDependency = exports.isLinkDependency = depVersion => depVersion.startsWith('link:'); + +/***/ }), +/* 42 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return config; }); +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +var _enable_super_gross_mode_that_will_cause_bad_things = false; +var config = { + Promise: undefined, + set useDeprecatedSynchronousErrorHandling(value) { + if (value) { + var error = /*@__PURE__*/ new Error(); + /*@__PURE__*/ console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack); } - const updateMsg = 'Update its package.json to the expected value below.'; - const meta = { - actual: `"${project.name}": "${versionInPackageJson}"`, - expected: `"${project.name}": "${expectedVersionInPackageJson}"`, - package: `${this.name} (${this.packageJsonLocation})` - }; - if ((0, _package_json.isLinkDependency)(versionInPackageJson)) { - throw new _errors.CliError(`[${this.name}] depends on [${project.name}] using 'link:', but the path is wrong. ${updateMsg}`, meta); + else if (_enable_super_gross_mode_that_will_cause_bad_things) { + /*@__PURE__*/ console.log('RxJS: Back to a better error behavior. Thank you. <3'); } - throw new _errors.CliError(`[${this.name}] depends on [${project.name}], but it's not using the local package. ${updateMsg}`, meta); - } - getBuildConfig() { - return this.json.kibana && this.json.kibana.build || {}; - } - /** - * Returns the directory that should be copied into the Kibana build artifact. - * This config can be specified to only include the project's build artifacts - * instead of everything located in the project directory. - */ - getIntermediateBuildDirectory() { - return (0, _path.resolve)(this.path, this.getBuildConfig().intermediateBuildDirectory || '.'); + _enable_super_gross_mode_that_will_cause_bad_things = value; + }, + get useDeprecatedSynchronousErrorHandling() { + return _enable_super_gross_mode_that_will_cause_bad_things; + }, +}; +//# sourceMappingURL=config.js.map + + +/***/ }), +/* 43 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = noop; +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +function noop() { } +//# sourceMappingURL=noop.js.map + + +/***/ }), +/* 44 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ObjectUnsubscribedError; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ + +var ObjectUnsubscribedError = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ObjectUnsubscribedError, _super); + function ObjectUnsubscribedError() { + var _this = _super.call(this, 'object unsubscribed') || this; + _this.name = 'ObjectUnsubscribedError'; + Object.setPrototypeOf(_this, ObjectUnsubscribedError.prototype); + return _this; } - hasScript(name) { - return name in this.scripts; + return ObjectUnsubscribedError; +}(Error)); + +//# sourceMappingURL=ObjectUnsubscribedError.js.map + + +/***/ }), +/* 45 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Notification; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_empty__ = __webpack_require__(11); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_of__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_throwError__ = __webpack_require__(68); +/** PURE_IMPORTS_START _observable_empty,_observable_of,_observable_throwError PURE_IMPORTS_END */ + + + +var Notification = /*@__PURE__*/ (function () { + function Notification(kind, value, error) { + this.kind = kind; + this.value = value; + this.error = error; + this.hasValue = kind === 'N'; } - getExecutables() { - const raw = this.json.bin; - if (!raw) { - return {}; + Notification.prototype.observe = function (observer) { + switch (this.kind) { + case 'N': + return observer.next && observer.next(this.value); + case 'E': + return observer.error && observer.error(this.error); + case 'C': + return observer.complete && observer.complete(); } - if (typeof raw === 'string') { - return { - [this.name]: (0, _path.resolve)(this.path, raw) - }; + }; + Notification.prototype.do = function (next, error, complete) { + var kind = this.kind; + switch (kind) { + case 'N': + return next && next(this.value); + case 'E': + return error && error(this.error); + case 'C': + return complete && complete(); } - if (typeof raw === 'object') { - const binsConfig = {}; - for (const binName of Object.keys(raw)) { - binsConfig[binName] = (0, _path.resolve)(this.path, raw[binName]); - } - return binsConfig; + }; + Notification.prototype.accept = function (nextOrObserver, error, complete) { + if (nextOrObserver && typeof nextOrObserver.next === 'function') { + return this.observe(nextOrObserver); } - throw new _errors.CliError(`[${this.name}] has an invalid "bin" field in its package.json, ` + `expected an object or a string`, { - binConfig: (0, _util.inspect)(raw), - package: `${this.name} (${this.packageJsonLocation})` - }); - } - runScript(scriptName, args = []) { - var _this = this; + else { + return this.do(nextOrObserver, error, complete); + } + }; + Notification.prototype.toObservable = function () { + var kind = this.kind; + switch (kind) { + case 'N': + return Object(__WEBPACK_IMPORTED_MODULE_1__observable_of__["a" /* of */])(this.value); + case 'E': + return Object(__WEBPACK_IMPORTED_MODULE_2__observable_throwError__["a" /* throwError */])(this.error); + case 'C': + return Object(__WEBPACK_IMPORTED_MODULE_0__observable_empty__["b" /* empty */])(); + } + throw new Error('unexpected notification kind value'); + }; + Notification.createNext = function (value) { + if (typeof value !== 'undefined') { + return new Notification('N', value); + } + return Notification.undefinedValueNotification; + }; + Notification.createError = function (err) { + return new Notification('E', undefined, err); + }; + Notification.createComplete = function () { + return Notification.completeNotification; + }; + Notification.completeNotification = new Notification('C'); + Notification.undefinedValueNotification = new Notification('N', undefined); + return Notification; +}()); - return _asyncToGenerator(function* () { - _log.log.write(_chalk2.default.bold(`\n\nRunning script [${_chalk2.default.green(scriptName)}] in [${_chalk2.default.green(_this.name)}]:\n`)); - return (0, _scripts.runScriptInPackage)(scriptName, args, _this); - })(); - } - runScriptStreaming(scriptName, args = []) { - return (0, _scripts.runScriptInPackageStreaming)(scriptName, args, this); - } - hasDependencies() { - return Object.keys(this.allDependencies).length > 0; +//# sourceMappingURL=Notification.js.map + + +/***/ }), +/* 46 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsyncSubject; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(7); +/** PURE_IMPORTS_START tslib,_Subject,_Subscription PURE_IMPORTS_END */ + + + +var AsyncSubject = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](AsyncSubject, _super); + function AsyncSubject() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.value = null; + _this.hasNext = false; + _this.hasCompleted = false; + return _this; } - installDependencies({ extraArgs }) { - var _this2 = this; + AsyncSubject.prototype._subscribe = function (subscriber) { + if (this.hasError) { + subscriber.error(this.thrownError); + return __WEBPACK_IMPORTED_MODULE_2__Subscription__["a" /* Subscription */].EMPTY; + } + else if (this.hasCompleted && this.hasNext) { + subscriber.next(this.value); + subscriber.complete(); + return __WEBPACK_IMPORTED_MODULE_2__Subscription__["a" /* Subscription */].EMPTY; + } + return _super.prototype._subscribe.call(this, subscriber); + }; + AsyncSubject.prototype.next = function (value) { + if (!this.hasCompleted) { + this.value = value; + this.hasNext = true; + } + }; + AsyncSubject.prototype.error = function (error) { + if (!this.hasCompleted) { + _super.prototype.error.call(this, error); + } + }; + AsyncSubject.prototype.complete = function () { + this.hasCompleted = true; + if (this.hasNext) { + _super.prototype.next.call(this, this.value); + } + _super.prototype.complete.call(this); + }; + return AsyncSubject; +}(__WEBPACK_IMPORTED_MODULE_1__Subject__["a" /* Subject */])); - return _asyncToGenerator(function* () { - _log.log.write(_chalk2.default.bold(`\n\nInstalling dependencies in [${_chalk2.default.green(_this2.name)}]:\n`)); - return (0, _scripts.installInDir)(_this2.path, extraArgs); - })(); - } -} -exports.Project = Project; // We normalize all path separators to `/` in generated files +//# sourceMappingURL=AsyncSubject.js.map -function normalizePath(path) { - return path.replace(/[\\\/]+/g, '/'); -} /***/ }), -/* 88 */ -/***/ (function(module, exports, __webpack_require__) { +/* 47 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -module.exports = normalize +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = concat; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isScheduler__ = __webpack_require__(14); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__of__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__from__ = __webpack_require__(18); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__operators_concatAll__ = __webpack_require__(121); +/** PURE_IMPORTS_START _util_isScheduler,_of,_from,_operators_concatAll PURE_IMPORTS_END */ -var fixer = __webpack_require__(288) -normalize.fixer = fixer -var makeWarning = __webpack_require__(301) -var fieldsToFix = ['name','version','description','repository','modules','scripts' - ,'files','bin','man','bugs','keywords','readme','homepage','license'] -var otherThingsToFix = ['dependencies','people', 'typos'] -var thingsToFix = fieldsToFix.map(function(fieldName) { - return ucFirst(fieldName) + "Field" -}) -// two ways to do this in CoffeeScript on only one line, sub-70 chars: -// thingsToFix = fieldsToFix.map (name) -> ucFirst(name) + "Field" -// thingsToFix = (ucFirst(name) + "Field" for name in fieldsToFix) -thingsToFix = thingsToFix.concat(otherThingsToFix) +function concat() { + var observables = []; + for (var _i = 0; _i < arguments.length; _i++) { + observables[_i] = arguments[_i]; + } + if (observables.length === 1 || (observables.length === 2 && Object(__WEBPACK_IMPORTED_MODULE_0__util_isScheduler__["a" /* isScheduler */])(observables[1]))) { + return Object(__WEBPACK_IMPORTED_MODULE_2__from__["a" /* from */])(observables[0]); + } + return Object(__WEBPACK_IMPORTED_MODULE_3__operators_concatAll__["a" /* concatAll */])()(__WEBPACK_IMPORTED_MODULE_1__of__["a" /* of */].apply(void 0, observables)); +} +//# sourceMappingURL=concat.js.map -function normalize (data, warn, strict) { - if(warn === true) warn = null, strict = true - if(!strict) strict = false - if(!warn || data.private) warn = function(msg) { /* noop */ } - if (data.scripts && - data.scripts.install === "node-gyp rebuild" && - !data.scripts.preinstall) { - data.gypfile = true - } - fixer.warn = function() { warn(makeWarning.apply(null, arguments)) } - thingsToFix.forEach(function(thingName) { - fixer["fix" + ucFirst(thingName)](data, strict) - }) - data._id = data.name + "@" + data.version -} +/***/ }), +/* 48 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function ucFirst (string) { - return string.charAt(0).toUpperCase() + string.slice(1); +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = isNumeric; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray__ = __webpack_require__(10); +/** PURE_IMPORTS_START _isArray PURE_IMPORTS_END */ + +function isNumeric(val) { + return !Object(__WEBPACK_IMPORTED_MODULE_0__isArray__["a" /* isArray */])(val) && (val - parseFloat(val) + 1) >= 0; } +//# sourceMappingURL=isNumeric.js.map /***/ }), -/* 89 */ -/***/ (function(module, exports) { +/* 49 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return throwIfEmpty; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__tap__ = __webpack_require__(130); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_EmptyError__ = __webpack_require__(33); +/** PURE_IMPORTS_START _tap,_util_EmptyError PURE_IMPORTS_END */ + + +var throwIfEmpty = function (errorFactory) { + if (errorFactory === void 0) { + errorFactory = defaultErrorFactory; + } + return Object(__WEBPACK_IMPORTED_MODULE_0__tap__["a" /* tap */])({ + hasValue: false, + next: function () { this.hasValue = true; }, + complete: function () { + if (!this.hasValue) { + throw errorFactory(); + } + } + }); +}; +function defaultErrorFactory() { + return new __WEBPACK_IMPORTED_MODULE_1__util_EmptyError__["a" /* EmptyError */](); +} +//# sourceMappingURL=throwIfEmpty.js.map -module.exports = require("url"); /***/ }), -/* 90 */ -/***/ (function(module, exports, __webpack_require__) { +/* 50 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = reduce; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scan__ = __webpack_require__(75); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__takeLast__ = __webpack_require__(74); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultIfEmpty__ = __webpack_require__(36); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_pipe__ = __webpack_require__(63); +/** PURE_IMPORTS_START _scan,_takeLast,_defaultIfEmpty,_util_pipe PURE_IMPORTS_END */ -var gitHosts = module.exports = { - github: { - // First two are insecure and generally shouldn't be used any more, but - // they are still supported. - 'protocols': [ 'git', 'http', 'git+ssh', 'git+https', 'ssh', 'https' ], - 'domain': 'github.com', - 'treepath': 'tree', - 'filetemplate': 'https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}', - 'bugstemplate': 'https://{domain}/{user}/{project}/issues', - 'gittemplate': 'git://{auth@}{domain}/{user}/{project}.git{#committish}', - 'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz' - }, - bitbucket: { - 'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ], - 'domain': 'bitbucket.org', - 'treepath': 'src', - 'tarballtemplate': 'https://{domain}/{user}/{project}/get/{committish}.tar.gz' - }, - gitlab: { - 'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ], - 'domain': 'gitlab.com', - 'treepath': 'tree', - 'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#README', - 'bugstemplate': 'https://{domain}/{user}/{project}/issues', - 'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}' - }, - gist: { - 'protocols': [ 'git', 'git+ssh', 'git+https', 'ssh', 'https' ], - 'domain': 'gist.github.com', - 'pathmatch': /^[/](?:([^/]+)[/])?([a-z0-9]+)(?:[.]git)?$/, - 'filetemplate': 'https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}', - 'bugstemplate': 'https://{domain}/{project}', - 'gittemplate': 'git://{domain}/{project}.git{#committish}', - 'sshtemplate': 'git@{domain}:/{project}.git{#committish}', - 'sshurltemplate': 'git+ssh://git@{domain}/{project}.git{#committish}', - 'browsetemplate': 'https://{domain}/{project}{/committish}', - 'docstemplate': 'https://{domain}/{project}{/committish}', - 'httpstemplate': 'git+https://{domain}/{project}.git{#committish}', - 'shortcuttemplate': '{type}:{project}{#committish}', - 'pathtemplate': '{project}{#committish}', - 'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz' - } -} -var gitHostDefaults = { - 'sshtemplate': 'git@{domain}:{user}/{project}.git{#committish}', - 'sshurltemplate': 'git+ssh://git@{domain}/{user}/{project}.git{#committish}', - 'browsetemplate': 'https://{domain}/{user}/{project}{/tree/committish}', - 'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#readme', - 'httpstemplate': 'git+https://{auth@}{domain}/{user}/{project}.git{#committish}', - 'filetemplate': 'https://{domain}/{user}/{project}/raw/{committish}/{path}', - 'shortcuttemplate': '{type}:{user}/{project}{#committish}', - 'pathtemplate': '{user}/{project}{#committish}', - 'pathmatch': /^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/ -} -Object.keys(gitHosts).forEach(function (name) { - Object.keys(gitHostDefaults).forEach(function (key) { - if (gitHosts[name][key]) return - gitHosts[name][key] = gitHostDefaults[key] - }) - gitHosts[name].protocols_re = RegExp('^(' + - gitHosts[name].protocols.map(function (protocol) { - return protocol.replace(/([\\+*{}()[\]$^|])/g, '\\$1') - }).join('|') + '):$') -}) +function reduce(accumulator, seed) { + if (arguments.length >= 2) { + return function reduceOperatorFunctionWithSeed(source) { + return Object(__WEBPACK_IMPORTED_MODULE_3__util_pipe__["a" /* pipe */])(Object(__WEBPACK_IMPORTED_MODULE_0__scan__["a" /* scan */])(accumulator, seed), Object(__WEBPACK_IMPORTED_MODULE_1__takeLast__["a" /* takeLast */])(1), Object(__WEBPACK_IMPORTED_MODULE_2__defaultIfEmpty__["a" /* defaultIfEmpty */])(seed))(source); + }; + } + return function reduceOperatorFunction(source) { + return Object(__WEBPACK_IMPORTED_MODULE_3__util_pipe__["a" /* pipe */])(Object(__WEBPACK_IMPORTED_MODULE_0__scan__["a" /* scan */])(function (acc, value, index) { + return accumulator(acc, value, index + 1); + }), Object(__WEBPACK_IMPORTED_MODULE_1__takeLast__["a" /* takeLast */])(1))(source); + }; +} +//# sourceMappingURL=reduce.js.map /***/ }), -/* 91 */ +/* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const isPlainObj = __webpack_require__(308); -module.exports = (obj, opts) => { - if (!isPlainObj(obj)) { - throw new TypeError('Expected a plain object'); +var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; + +module.exports = function (str) { + if (typeof str !== 'string') { + throw new TypeError('Expected a string'); } - opts = opts || {}; + return str.replace(matchOperatorsRe, '\\$&'); +}; - // DEPRECATED - if (typeof opts === 'function') { - throw new TypeError('Specify the compare function as an option instead'); - } - const deep = opts.deep; - const seenInput = []; - const seenOutput = []; +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { - const sortKeys = x => { - const seenIndex = seenInput.indexOf(x); +var conversions = __webpack_require__(77); +var route = __webpack_require__(140); - if (seenIndex !== -1) { - return seenOutput[seenIndex]; +var convert = {}; + +var models = Object.keys(conversions); + +function wrapRaw(fn) { + var wrappedFn = function (args) { + if (args === undefined || args === null) { + return args; } - const ret = {}; - const keys = Object.keys(x).sort(opts.compare); + if (arguments.length > 1) { + args = Array.prototype.slice.call(arguments); + } - seenInput.push(x); - seenOutput.push(ret); + return fn(args); + }; - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const val = x[key]; + // preserve .conversion property if there is one + if ('conversion' in fn) { + wrappedFn.conversion = fn.conversion; + } - if (deep && Array.isArray(val)) { - const retArr = []; + return wrappedFn; +} - for (let j = 0; j < val.length; j++) { - retArr[j] = isPlainObj(val[j]) ? sortKeys(val[j]) : val[j]; - } +function wrapRounded(fn) { + var wrappedFn = function (args) { + if (args === undefined || args === null) { + return args; + } - ret[key] = retArr; - continue; - } + if (arguments.length > 1) { + args = Array.prototype.slice.call(arguments); + } - ret[key] = deep && isPlainObj(val) ? sortKeys(val) : val; + var result = fn(args); + + // we're assuming the result is an array here. + // see notice in conversions.js; don't use box types + // in conversion functions. + if (typeof result === 'object') { + for (var len = result.length, i = 0; i < len; i++) { + result[i] = Math.round(result[i]); + } } - return ret; + return result; }; - return sortKeys(obj); -}; + // preserve .conversion property if there is one + if ('conversion' in fn) { + wrappedFn.conversion = fn.conversion; + } + return wrappedFn; +} -/***/ }), -/* 92 */ -/***/ (function(module, exports, __webpack_require__) { +models.forEach(function (fromModel) { + convert[fromModel] = {}; -"use strict"; + Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels}); + Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels}); -const fs = __webpack_require__(7); -const path = __webpack_require__(3); -const pify = __webpack_require__(23); + var routes = route(fromModel); + var routeModels = Object.keys(routes); -const defaults = { - mode: 0o777 & (~process.umask()), - fs -}; + routeModels.forEach(function (toModel) { + var fn = routes[toModel]; -// https://github.com/nodejs/node/issues/8987 -// https://github.com/libuv/libuv/pull/1088 -const checkPath = pth => { - if (process.platform === 'win32') { - const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')); + convert[fromModel][toModel] = wrapRounded(fn); + convert[fromModel][toModel].raw = wrapRaw(fn); + }); +}); - if (pathHasInvalidWinCharacters) { - const err = new Error(`Path contains invalid characters: ${pth}`); - err.code = 'EINVAL'; - throw err; - } - } -}; +module.exports = convert; -module.exports = (input, opts) => Promise.resolve().then(() => { - checkPath(input); - opts = Object.assign({}, defaults, opts); - const fsP = pify(opts.fs); - const make = pth => { - return fsP.mkdir(pth, opts.mode) - .then(() => pth) - .catch(err => { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } +/***/ }), +/* 53 */ +/***/ (function(module, exports) { - return make(path.dirname(pth)).then(() => make(pth)); - } +module.exports = require("os"); - return fsP.stat(pth) - .then(stats => stats.isDirectory() ? pth : Promise.reject()) - .catch(() => { - throw err; - }); - }); - }; +/***/ }), +/* 54 */ +/***/ (function(module, exports, __webpack_require__) { - return make(path.resolve(input)); +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true }); -module.exports.sync = (input, opts) => { - checkPath(input); - opts = Object.assign({}, defaults, opts); +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +let parallelizeBatches = exports.parallelizeBatches = (() => { + var _ref = _asyncToGenerator(function* (batches, fn) { + for (const batch of batches) { + // We need to make sure the entire batch has completed before we can move on + // to the next batch + yield parallelize(batch, fn); + } + }); - const make = pth => { - try { - opts.fs.mkdirSync(pth, opts.mode); - } catch (err) { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } + return function parallelizeBatches(_x, _x2) { + return _ref.apply(this, arguments); + }; +})(); - make(path.dirname(pth)); - return make(pth); - } +let parallelize = exports.parallelize = (() => { + var _ref2 = _asyncToGenerator(function* (items, fn, concurrency = 4) { + if (items.length === 0) { + return; + } + return new Promise(function (resolve, reject) { + let scheduleItem = (() => { + var _ref3 = _asyncToGenerator(function* (item) { + activePromises++; + try { + yield fn(item); + activePromises--; + if (values.length > 0) { + // We have more work to do, so we schedule the next promise + scheduleItem(values.shift()); + } else if (activePromises === 0) { + // We have no more values left, and all items have completed, so we've + // completed all the work. + resolve(); + } + } catch (error) { + reject(error); + } + }); - try { - if (!opts.fs.statSync(pth).isDirectory()) { - throw new Error('The path is not a directory'); - } - } catch (_) { - throw err; - } - } + return function scheduleItem(_x5) { + return _ref3.apply(this, arguments); + }; + })(); - return pth; - }; + let activePromises = 0; + const values = items.slice(0); - return make(path.resolve(input)); -}; + values.splice(0, concurrency).map(scheduleItem); + }); + }); + return function parallelize(_x3, _x4) { + return _ref2.apply(this, arguments); + }; +})(); + +function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /***/ }), -/* 93 */ +/* 55 */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; +module.exports = minimatch +minimatch.Minimatch = Minimatch +var path = { sep: '/' } +try { + path = __webpack_require__(2) +} catch (er) {} -var path = __webpack_require__(3); -var which = __webpack_require__(315); -var LRU = __webpack_require__(94); +var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} +var expand = __webpack_require__(154) -var commandCache = new LRU({ max: 50, maxAge: 30 * 1000 }); // Cache just for 30sec +var plTypes = { + '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, + '?': { open: '(?:', close: ')?' }, + '+': { open: '(?:', close: ')+' }, + '*': { open: '(?:', close: ')*' }, + '@': { open: '(?:', close: ')' } +} -function resolveCommand(command, noExtension) { - var resolved; +// any single thing other than / +// don't need to escape / when using new RegExp() +var qmark = '[^/]' - noExtension = !!noExtension; - resolved = commandCache.get(command + '!' + noExtension); +// * => any number of characters +var star = qmark + '*?' - // Check if its resolved in the cache - if (commandCache.has(command)) { - return commandCache.get(command); - } +// ** when dots are allowed. Anything goes, except .. and . +// not (^ or / followed by one or two dots followed by $ or /), +// followed by anything, any number of times. +var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?' - try { - resolved = !noExtension ? - which.sync(command) : - which.sync(command, { pathExt: path.delimiter + (process.env.PATHEXT || '') }); - } catch (e) { /* empty */ } +// not a ^ or / followed by a dot, +// followed by anything, any number of times. +var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?' + +// characters that need to be escaped in RegExp. +var reSpecials = charSet('().*{}+?[]^$\\!') + +// "abc" -> { a:true, b:true, c:true } +function charSet (s) { + return s.split('').reduce(function (set, c) { + set[c] = true + return set + }, {}) +} - commandCache.set(command + '!' + noExtension, resolved); +// normalizes slashes. +var slashSplit = /\/+/ - return resolved; +minimatch.filter = filter +function filter (pattern, options) { + options = options || {} + return function (p, i, list) { + return minimatch(p, pattern, options) + } } -module.exports = resolveCommand; - +function ext (a, b) { + a = a || {} + b = b || {} + var t = {} + Object.keys(b).forEach(function (k) { + t[k] = b[k] + }) + Object.keys(a).forEach(function (k) { + t[k] = a[k] + }) + return t +} -/***/ }), -/* 94 */ -/***/ (function(module, exports, __webpack_require__) { +minimatch.defaults = function (def) { + if (!def || !Object.keys(def).length) return minimatch -"use strict"; + var orig = minimatch + var m = function minimatch (p, pattern, options) { + return orig.minimatch(p, pattern, ext(def, options)) + } -module.exports = LRUCache + m.Minimatch = function Minimatch (pattern, options) { + return new orig.Minimatch(pattern, ext(def, options)) + } -// This will be a proper iterable 'Map' in engines that support it, -// or a fakey-fake PseudoMap in older versions. -var Map = __webpack_require__(319) -var util = __webpack_require__(10) + return m +} -// A linked list to keep track of recently-used-ness -var Yallist = __webpack_require__(321) +Minimatch.defaults = function (def) { + if (!def || !Object.keys(def).length) return Minimatch + return minimatch.defaults(def).Minimatch +} -// use symbols if possible, otherwise just _props -var hasSymbol = typeof Symbol === 'function' -var makeSymbol -if (hasSymbol) { - makeSymbol = function (key) { - return Symbol.for(key) +function minimatch (p, pattern, options) { + if (typeof pattern !== 'string') { + throw new TypeError('glob pattern string required') } -} else { - makeSymbol = function (key) { - return '_' + key + + if (!options) options = {} + + // shortcut: comments match nothing. + if (!options.nocomment && pattern.charAt(0) === '#') { + return false } -} -var MAX = makeSymbol('max') -var LENGTH = makeSymbol('length') -var LENGTH_CALCULATOR = makeSymbol('lengthCalculator') -var ALLOW_STALE = makeSymbol('allowStale') -var MAX_AGE = makeSymbol('maxAge') -var DISPOSE = makeSymbol('dispose') -var NO_DISPOSE_ON_SET = makeSymbol('noDisposeOnSet') -var LRU_LIST = makeSymbol('lruList') -var CACHE = makeSymbol('cache') + // "" only matches "" + if (pattern.trim() === '') return p === '' -function naiveLength () { return 1 } + return new Minimatch(pattern, options).match(p) +} -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -function LRUCache (options) { - if (!(this instanceof LRUCache)) { - return new LRUCache(options) +function Minimatch (pattern, options) { + if (!(this instanceof Minimatch)) { + return new Minimatch(pattern, options) } - if (typeof options === 'number') { - options = { max: options } + if (typeof pattern !== 'string') { + throw new TypeError('glob pattern string required') } - if (!options) { - options = {} - } + if (!options) options = {} + pattern = pattern.trim() - var max = this[MAX] = options.max - // Kind of weird to have a default max of Infinity, but oh well. - if (!max || - !(typeof max === 'number') || - max <= 0) { - this[MAX] = Infinity + // windows support: need to use /, not \ + if (path.sep !== '/') { + pattern = pattern.split(path.sep).join('/') } - var lc = options.length || naiveLength - if (typeof lc !== 'function') { - lc = naiveLength - } - this[LENGTH_CALCULATOR] = lc + this.options = options + this.set = [] + this.pattern = pattern + this.regexp = null + this.negate = false + this.comment = false + this.empty = false - this[ALLOW_STALE] = options.stale || false - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this.reset() + // make the set of regexps etc. + this.make() } -// resize the cache when the max changes. -Object.defineProperty(LRUCache.prototype, 'max', { - set: function (mL) { - if (!mL || !(typeof mL === 'number') || mL <= 0) { - mL = Infinity - } - this[MAX] = mL - trim(this) - }, - get: function () { - return this[MAX] - }, - enumerable: true -}) +Minimatch.prototype.debug = function () {} -Object.defineProperty(LRUCache.prototype, 'allowStale', { - set: function (allowStale) { - this[ALLOW_STALE] = !!allowStale - }, - get: function () { - return this[ALLOW_STALE] - }, - enumerable: true -}) +Minimatch.prototype.make = make +function make () { + // don't do it more than once. + if (this._made) return -Object.defineProperty(LRUCache.prototype, 'maxAge', { - set: function (mA) { - if (!mA || !(typeof mA === 'number') || mA < 0) { - mA = 0 - } - this[MAX_AGE] = mA - trim(this) - }, - get: function () { - return this[MAX_AGE] - }, - enumerable: true -}) + var pattern = this.pattern + var options = this.options -// resize the cache when the lengthCalculator changes. -Object.defineProperty(LRUCache.prototype, 'lengthCalculator', { - set: function (lC) { - if (typeof lC !== 'function') { - lC = naiveLength - } - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(function (hit) { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }, this) - } - trim(this) - }, - get: function () { return this[LENGTH_CALCULATOR] }, - enumerable: true -}) + // empty patterns and comments match nothing. + if (!options.nocomment && pattern.charAt(0) === '#') { + this.comment = true + return + } + if (!pattern) { + this.empty = true + return + } -Object.defineProperty(LRUCache.prototype, 'length', { - get: function () { return this[LENGTH] }, - enumerable: true -}) + // step 1: figure out negation, etc. + this.parseNegate() -Object.defineProperty(LRUCache.prototype, 'itemCount', { - get: function () { return this[LRU_LIST].length }, - enumerable: true -}) + // step 2: expand braces + var set = this.globSet = this.braceExpand() -LRUCache.prototype.rforEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this[LRU_LIST].tail; walker !== null;) { - var prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev - } -} + if (options.debug) this.debug = console.error -function forEachStep (self, fn, node, thisp) { - var hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) { - hit = undefined - } - } - if (hit) { - fn.call(thisp, hit.value, hit.key, self) - } -} + this.debug(this.pattern, set) -LRUCache.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this[LRU_LIST].head; walker !== null;) { - var next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next - } -} + // step 3: now we have a set, so turn each one into a series of path-portion + // matching patterns. + // These will be regexps, except in the case of "**", which is + // set to the GLOBSTAR object for globstar behavior, + // and will not contain any / characters + set = this.globParts = set.map(function (s) { + return s.split(slashSplit) + }) -LRUCache.prototype.keys = function () { - return this[LRU_LIST].toArray().map(function (k) { - return k.key - }, this) -} + this.debug(this.pattern, set) -LRUCache.prototype.values = function () { - return this[LRU_LIST].toArray().map(function (k) { - return k.value + // glob --> regexps + set = set.map(function (s, si, set) { + return s.map(this.parse, this) }, this) -} - -LRUCache.prototype.reset = function () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(function (hit) { - this[DISPOSE](hit.key, hit.value) - }, this) - } - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list -} + this.debug(this.pattern, set) -LRUCache.prototype.dump = function () { - return this[LRU_LIST].map(function (hit) { - if (!isStale(this, hit)) { - return { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - } - } - }, this).toArray().filter(function (h) { - return h + // filter out everything that didn't compile properly. + set = set.filter(function (s) { + return s.indexOf(false) === -1 }) -} -LRUCache.prototype.dumpLru = function () { - return this[LRU_LIST] + this.debug(this.pattern, set) + + this.set = set } -LRUCache.prototype.inspect = function (n, opts) { - var str = 'LRUCache {' - var extras = false +Minimatch.prototype.parseNegate = parseNegate +function parseNegate () { + var pattern = this.pattern + var negate = false + var options = this.options + var negateOffset = 0 - var as = this[ALLOW_STALE] - if (as) { - str += '\n allowStale: true' - extras = true - } + if (options.nonegate) return - var max = this[MAX] - if (max && max !== Infinity) { - if (extras) { - str += ',' - } - str += '\n max: ' + util.inspect(max, opts) - extras = true + for (var i = 0, l = pattern.length + ; i < l && pattern.charAt(i) === '!' + ; i++) { + negate = !negate + negateOffset++ } - var maxAge = this[MAX_AGE] - if (maxAge) { - if (extras) { - str += ',' - } - str += '\n maxAge: ' + util.inspect(maxAge, opts) - extras = true - } + if (negateOffset) this.pattern = pattern.substr(negateOffset) + this.negate = negate +} - var lc = this[LENGTH_CALCULATOR] - if (lc && lc !== naiveLength) { - if (extras) { - str += ',' - } - str += '\n length: ' + util.inspect(this[LENGTH], opts) - extras = true - } +// Brace expansion: +// a{b,c}d -> abd acd +// a{b,}c -> abc ac +// a{0..3}d -> a0d a1d a2d a3d +// a{b,c{d,e}f}g -> abg acdfg acefg +// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg +// +// Invalid sets are not expanded. +// a{2..}b -> a{2..}b +// a{b}c -> a{b}c +minimatch.braceExpand = function (pattern, options) { + return braceExpand(pattern, options) +} - var didFirst = false - this[LRU_LIST].forEach(function (item) { - if (didFirst) { - str += ',\n ' +Minimatch.prototype.braceExpand = braceExpand + +function braceExpand (pattern, options) { + if (!options) { + if (this instanceof Minimatch) { + options = this.options } else { - if (extras) { - str += ',\n' - } - didFirst = true - str += '\n ' - } - var key = util.inspect(item.key).split('\n').join('\n ') - var val = { value: item.value } - if (item.maxAge !== maxAge) { - val.maxAge = item.maxAge - } - if (lc !== naiveLength) { - val.length = item.length - } - if (isStale(this, item)) { - val.stale = true + options = {} } + } - val = util.inspect(val, opts).split('\n').join('\n ') - str += key + ' => ' + val - }) + pattern = typeof pattern === 'undefined' + ? this.pattern : pattern - if (didFirst || extras) { - str += '\n' + if (typeof pattern === 'undefined') { + throw new TypeError('undefined pattern') } - str += '}' - return str + if (options.nobrace || + !pattern.match(/\{.*\}/)) { + // shortcut. no need to expand. + return [pattern] + } + + return expand(pattern) } -LRUCache.prototype.set = function (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] +// parse a component of the expanded set. +// At this point, no pattern may contain "/" in it +// so we're going to return a 2d array, where each entry is the full +// pattern, split on '/', and then turned into a regular expression. +// A regexp is made at the end which joins each array with an +// escaped /, and another full one which joins each regexp with |. +// +// Following the lead of Bash 4.1, note that "**" only has special meaning +// when it is the *only* thing in a path portion. Otherwise, any series +// of * is equivalent to a single *. Globstar behavior is enabled by +// default, and can be disabled by setting options.noglobstar. +Minimatch.prototype.parse = parse +var SUBPARSE = {} +function parse (pattern, isSub) { + if (pattern.length > 1024 * 64) { + throw new TypeError('pattern is too long') + } - var now = maxAge ? Date.now() : 0 - var len = this[LENGTH_CALCULATOR](value, key) + var options = this.options - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } + // shortcuts + if (!options.noglobstar && pattern === '**') return GLOBSTAR + if (pattern === '') return '' - var node = this[CACHE].get(key) - var item = node.value + var re = '' + var hasMagic = !!options.nocase + var escaping = false + // ? => one single character + var patternListStack = [] + var negativeLists = [] + var stateChar + var inClass = false + var reClassStart = -1 + var classStart = -1 + // . and .. never match anything that doesn't start with ., + // even when options.dot is set. + var patternStart = pattern.charAt(0) === '.' ? '' // anything + // not (start or / followed by . or .. followed by / or end) + : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))' + : '(?!\\.)' + var self = this - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) { - this[DISPOSE](key, item.value) + function clearStateChar () { + if (stateChar) { + // we had some state-tracking character + // that wasn't consumed by this pass. + switch (stateChar) { + case '*': + re += star + hasMagic = true + break + case '?': + re += qmark + hasMagic = true + break + default: + re += '\\' + stateChar + break } + self.debug('clearStateChar %j %j', stateChar, re) + stateChar = false } - - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true - } - - var hit = new Entry(key, value, len, now, maxAge) - - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) { - this[DISPOSE](key, value) - } - return false - } - - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true -} - -LRUCache.prototype.has = function (key) { - if (!this[CACHE].has(key)) return false - var hit = this[CACHE].get(key).value - if (isStale(this, hit)) { - return false } - return true -} -LRUCache.prototype.get = function (key) { - return get(this, key, true) -} + for (var i = 0, len = pattern.length, c + ; (i < len) && (c = pattern.charAt(i)) + ; i++) { + this.debug('%s\t%s %s %j', pattern, i, re, c) -LRUCache.prototype.peek = function (key) { - return get(this, key, false) -} + // skip over any that are escaped. + if (escaping && reSpecials[c]) { + re += '\\' + c + escaping = false + continue + } -LRUCache.prototype.pop = function () { - var node = this[LRU_LIST].tail - if (!node) return null - del(this, node) - return node.value -} + switch (c) { + case '/': + // completely not allowed, even escaped. + // Should already be path-split by now. + return false -LRUCache.prototype.del = function (key) { - del(this, this[CACHE].get(key)) -} + case '\\': + clearStateChar() + escaping = true + continue -LRUCache.prototype.load = function (arr) { - // reset the cache - this.reset() + // the various stateChar values + // for the "extglob" stuff. + case '?': + case '*': + case '+': + case '@': + case '!': + this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) - var now = Date.now() - // A previous serialized cache has the most recent items first - for (var l = arr.length - 1; l >= 0; l--) { - var hit = arr[l] - var expiresAt = hit.e || 0 - if (expiresAt === 0) { - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - } else { - var maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } -} + // all of those are literals inside a class, except that + // the glob [!a] means [^a] in regexp + if (inClass) { + this.debug(' in class') + if (c === '!' && i === classStart + 1) c = '^' + re += c + continue + } -LRUCache.prototype.prune = function () { - var self = this - this[CACHE].forEach(function (value, key) { - get(self, key, false) - }) -} + // if we already have a stateChar, then it means + // that there was something like ** or +? in there. + // Handle the stateChar, then proceed with this one. + self.debug('call clearStateChar %j', stateChar) + clearStateChar() + stateChar = c + // if extglob is disabled, then +(asdf|foo) isn't a thing. + // just clear the statechar *now*, rather than even diving into + // the patternList stuff. + if (options.noext) clearStateChar() + continue -function get (self, key, doUse) { - var node = self[CACHE].get(key) - if (node) { - var hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) hit = undefined - } else { - if (doUse) { - self[LRU_LIST].unshiftNode(node) - } - } - if (hit) hit = hit.value - } - return hit -} + case '(': + if (inClass) { + re += '(' + continue + } -function isStale (self, hit) { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) { - return false - } - var stale = false - var diff = Date.now() - hit.now - if (hit.maxAge) { - stale = diff > hit.maxAge - } else { - stale = self[MAX_AGE] && (diff > self[MAX_AGE]) - } - return stale -} + if (!stateChar) { + re += '\\(' + continue + } -function trim (self) { - if (self[LENGTH] > self[MAX]) { - for (var walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - var prev = walker.prev - del(self, walker) - walker = prev - } - } -} + patternListStack.push({ + type: stateChar, + start: i - 1, + reStart: re.length, + open: plTypes[stateChar].open, + close: plTypes[stateChar].close + }) + // negation is (?:(?!js)[^/]*) + re += stateChar === '!' ? '(?:(?!(?:' : '(?:' + this.debug('plType %j %j', stateChar, re) + stateChar = false + continue -function del (self, node) { - if (node) { - var hit = node.value - if (self[DISPOSE]) { - self[DISPOSE](hit.key, hit.value) - } - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} + case ')': + if (inClass || !patternListStack.length) { + re += '\\)' + continue + } -// classy, since V8 prefers predictable objects. -function Entry (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 -} + clearStateChar() + hasMagic = true + var pl = patternListStack.pop() + // negation is (?:(?!js)[^/]*) + // The others are (?:) + re += pl.close + if (pl.type === '!') { + negativeLists.push(pl) + } + pl.reEnd = re.length + continue + case '|': + if (inClass || !patternListStack.length || escaping) { + re += '\\|' + escaping = false + continue + } -/***/ }), -/* 95 */ -/***/ (function(module, exports, __webpack_require__) { + clearStateChar() + re += '|' + continue -"use strict"; + // these are mostly the same in regexp and glob + case '[': + // swallow any state-tracking char before the [ + clearStateChar() + if (inClass) { + re += '\\' + c + continue + } -function escapeArgument(arg, quote) { - // Convert to string - arg = '' + arg; + inClass = true + classStart = i + reClassStart = re.length + re += c + continue - // If we are not going to quote the argument, - // escape shell metacharacters, including double and single quotes: - if (!quote) { - arg = arg.replace(/([()%!^<>&|;,"'\s])/g, '^$1'); - } else { - // Sequence of backslashes followed by a double quote: - // double up all the backslashes and escape the double quote - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); + case ']': + // a right bracket shall lose its special + // meaning and represent itself in + // a bracket expression if it occurs + // first in the list. -- POSIX.2 2.8.3.2 + if (i === classStart + 1 || !inClass) { + re += '\\' + c + escaping = false + continue + } - // Sequence of backslashes followed by the end of the string - // (which will become a double quote later): - // double up all the backslashes - arg = arg.replace(/(\\*)$/, '$1$1'); + // handle the case where we left a class open. + // "[z-a]" is valid, equivalent to "\[z-a\]" + if (inClass) { + // split where the last [ was, make sure we don't have + // an invalid re. if so, re-walk the contents of the + // would-be class to re-translate any characters that + // were passed through as-is + // TODO: It would probably be faster to determine this + // without a try/catch and a new RegExp, but it's tricky + // to do safely. For now, this is safe and works. + var cs = pattern.substring(classStart + 1, i) + try { + RegExp('[' + cs + ']') + } catch (er) { + // not a valid class! + var sp = this.parse(cs, SUBPARSE) + re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' + hasMagic = hasMagic || sp[1] + inClass = false + continue + } + } - // All other backslashes occur literally + // finish up the class. + hasMagic = true + inClass = false + re += c + continue - // Quote the whole thing: - arg = '"' + arg + '"'; - } + default: + // swallow any state char that wasn't consumed + clearStateChar() - return arg; -} + if (escaping) { + // no need + escaping = false + } else if (reSpecials[c] + && !(c === '^' && inClass)) { + re += '\\' + } -module.exports = escapeArgument; + re += c + } // switch + } // for -/***/ }), -/* 96 */ -/***/ (function(module, exports, __webpack_require__) { + // handle the case where we left a class open. + // "[abc" is valid, equivalent to "\[abc" + if (inClass) { + // split where the last [ was, and escape it + // this is a huge pita. We now have to re-walk + // the contents of the would-be class to re-translate + // any characters that were passed through as-is + cs = pattern.substr(classStart + 1) + sp = this.parse(cs, SUBPARSE) + re = re.substr(0, reClassStart) + '\\[' + sp[0] + hasMagic = hasMagic || sp[1] + } -"use strict"; + // handle the case where we had a +( thing at the *end* + // of the pattern. + // each pattern list stack adds 3 chars, and we need to go through + // and escape any | chars that were passed through as-is for the regexp. + // Go through and escape them, taking care not to double-escape any + // | chars that were already escaped. + for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { + var tail = re.slice(pl.reStart + pl.open.length) + this.debug('setting tail', re, pl) + // maybe some even number of \, then maybe 1 \, followed by a | + tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) { + if (!$2) { + // the | isn't already escaped, so escape it. + $2 = '\\' + } + + // need to escape all those slashes *again*, without escaping the + // one that we need for escaping the | character. As it works out, + // escaping an even number of slashes can be done by simply repeating + // it exactly after itself. That's why this trick works. + // + // I am sorry that you have to see this. + return $1 + $1 + $2 + '|' + }) -const chalk = __webpack_require__(338); + this.debug('tail=%j\n %s', tail, tail, pl, re) + var t = pl.type === '*' ? star + : pl.type === '?' ? qmark + : '\\' + pl.type -const isSupported = process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color'; + hasMagic = true + re = re.slice(0, pl.reStart) + t + '\\(' + tail + } -const main = { - info: chalk.blue('ℹ'), - success: chalk.green('✔'), - warning: chalk.yellow('⚠'), - error: chalk.red('✖') -}; + // handle trailing things that only matter at the very end. + clearStateChar() + if (escaping) { + // trailing \\ + re += '\\\\' + } -const fallbacks = { - info: chalk.blue('i'), - success: chalk.green('√'), - warning: chalk.yellow('‼'), - error: chalk.red('×') -}; + // only need to apply the nodot start if the re starts with + // something that could conceivably capture a dot + var addPatternStart = false + switch (re.charAt(0)) { + case '.': + case '[': + case '(': addPatternStart = true + } -module.exports = isSupported ? main : fallbacks; + // Hack to work around lack of negative lookbehind in JS + // A pattern like: *.!(x).!(y|z) needs to ensure that a name + // like 'a.xyz.yz' doesn't match. So, the first negative + // lookahead, has to look ALL the way ahead, to the end of + // the pattern. + for (var n = negativeLists.length - 1; n > -1; n--) { + var nl = negativeLists[n] + var nlBefore = re.slice(0, nl.reStart) + var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) + var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + var nlAfter = re.slice(nl.reEnd) -/***/ }), -/* 97 */ -/***/ (function(module, exports, __webpack_require__) { + nlLast += nlAfter -"use strict"; -// Copyright IBM Corp. 2014. All Rights Reserved. -// Node module: strong-log-transformer -// This file is licensed under the Artistic License 2.0. -// License text available at https://opensource.org/licenses/Artistic-2.0 + // Handle nested stuff like *(*.js|!(*.json)), where open parens + // mean that we should *not* include the ) in the bit that is considered + // "after" the negated section. + var openParensBefore = nlBefore.split('(').length - 1 + var cleanAfter = nlAfter + for (i = 0; i < openParensBefore; i++) { + cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') + } + nlAfter = cleanAfter + var dollar = '' + if (nlAfter === '' && isSub !== SUBPARSE) { + dollar = '$' + } + var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast + re = newRe + } + // if the re is not "" at this point, then we need to make sure + // it doesn't match against an empty path part. + // Otherwise a/* will match a/, which it should not. + if (re !== '' && hasMagic) { + re = '(?=.)' + re + } -var stream = __webpack_require__(22); -var util = __webpack_require__(10); -var fs = __webpack_require__(7); + if (addPatternStart) { + re = patternStart + re + } -var byline = __webpack_require__(343); -var through = __webpack_require__(345); -var duplexer = __webpack_require__(346); -var moment = __webpack_require__(0); + // parsing just a piece of a larger pattern. + if (isSub === SUBPARSE) { + return [re, hasMagic] + } -module.exports = Logger; + // skip the regexp for non-magical patterns + // unescape anything in it, though, so that it'll be + // an exact match against a file etc. + if (!hasMagic) { + return globUnescape(pattern) + } -Logger.DEFAULTS = { - format: 'text', - tag: '', - mergeMultiline: false, - timeStamp: false, -}; + var flags = options.nocase ? 'i' : '' + try { + var regExp = new RegExp('^' + re + '$', flags) + } catch (er) { + // If it was an invalid regular expression, then it can't match + // anything. This trick looks for a character after the end of + // the string, which is of course impossible, except in multi-line + // mode, but it's not a /m regex. + return new RegExp('$.') + } -var formatters = { - text: textFormatter, - json: jsonFormatter, + regExp._glob = pattern + regExp._src = re + + return regExp } -function Logger(options) { - var defaults = JSON.parse(JSON.stringify(Logger.DEFAULTS)); - options = util._extend(defaults, options || {}); - var catcher = new byline.LineStream; - var emitter = catcher; - var transforms = [ - objectifier(), - ]; +minimatch.makeRe = function (pattern, options) { + return new Minimatch(pattern, options || {}).makeRe() +} - if (options.tag) { - transforms.push(staticTagger(options.tag)); - } +Minimatch.prototype.makeRe = makeRe +function makeRe () { + if (this.regexp || this.regexp === false) return this.regexp - if (options.mergeMultiline) { - transforms.push(lineMerger()); + // at this point, this.set is a 2d array of partial + // pattern strings, or "**". + // + // It's better to use .match(). This function shouldn't + // be used, really, but it's pretty convenient sometimes, + // when you just want to work with a regex. + var set = this.set + + if (!set.length) { + this.regexp = false + return this.regexp } + var options = this.options - // TODO - // if (options.pidStamp) { - // transforms.push(pidStamper(options.pid)); - // } + var twoStar = options.noglobstar ? star + : options.dot ? twoStarDot + : twoStarNoDot + var flags = options.nocase ? 'i' : '' - // TODO - // if (options.workerStamp) { - // transforms.push(workerStamper(options.worker)); - // } + var re = set.map(function (pattern) { + return pattern.map(function (p) { + return (p === GLOBSTAR) ? twoStar + : (typeof p === 'string') ? regExpEscape(p) + : p._src + }).join('\\\/') + }).join('|') - transforms.push(formatters[options.format](options)); + // must match entire pattern + // ending in a * or ** will make it less strict. + re = '^(?:' + re + ')$' - // restore line endings that were removed by byline - transforms.push(reLiner()); + // can match anything, as long as it's not this. + if (this.negate) re = '^(?!' + re + ').*$' - for (var t in transforms) { - emitter = emitter.pipe(transforms[t]); + try { + this.regexp = new RegExp(re, flags) + } catch (ex) { + this.regexp = false + } + return this.regexp +} + +minimatch.match = function (list, pattern, options) { + options = options || {} + var mm = new Minimatch(pattern, options) + list = list.filter(function (f) { + return mm.match(f) + }) + if (mm.options.nonull && !list.length) { + list.push(pattern) } - - return duplexer(catcher, emitter); + return list } -function reLiner() { - return through(appendNewline); +Minimatch.prototype.match = match +function match (f, partial) { + this.debug('match', f, this.pattern) + // short-circuit in the case of busted things. + // comments, etc. + if (this.comment) return false + if (this.empty) return f === '' - function appendNewline(line) { - this.emit('data', line + '\n'); - } -} + if (f === '/' && partial) return true -function objectifier() { - return through(objectify, null, {autoDestroy: false}); + var options = this.options - function objectify(line) { - this.emit('data', { - msg: line, - time: Date.now(), - }); + // windows: need to use /, not \ + if (path.sep !== '/') { + f = f.split(path.sep).join('/') } -} -function staticTagger(tag) { - return through(tagger); + // treat the test path as a set of pathparts. + f = f.split(slashSplit) + this.debug(this.pattern, 'split', f) - function tagger(logEvent) { - logEvent.tag = tag; - this.emit('data', logEvent); - } -} + // just ONE of the pattern sets in this.set needs to match + // in order for it to be valid. If negating, then just one + // match means that we have failed. + // Either way, return on the first hit. -function textFormatter(options) { - return through(textify); + var set = this.set + this.debug(this.pattern, 'set', set) - function textify(logEvent) { - var line = util.format('%s%s', textifyTags(logEvent.tag), - logEvent.msg.toString()); - if (options.timeStamp) { - line = util.format('%s %s', moment(logEvent.time).toISOString(), line); - } - this.emit('data', line.replace(/\n/g, '\\n')); + // Find the basename of the path by looking for the last non-empty segment + var filename + var i + for (i = f.length - 1; i >= 0; i--) { + filename = f[i] + if (filename) break } - function textifyTags(tags) { - var str = ''; - if (typeof tags === 'string') { - str = tags + ' '; - } else if (typeof tags === 'object') { - for (var t in tags) { - str += t + ':' + tags[t] + ' '; - } + for (i = 0; i < set.length; i++) { + var pattern = set[i] + var file = f + if (options.matchBase && pattern.length === 1) { + file = [filename] } - return str; - } -} - -function jsonFormatter(options) { - return through(jsonify); - - function jsonify(logEvent) { - if (options.timeStamp) { - logEvent.time = moment(logEvent.time).toISOString(); - } else { - delete logEvent.time; + var hit = this.matchOne(file, pattern, partial) + if (hit) { + if (options.flipNegate) return true + return !this.negate } - logEvent.msg = logEvent.msg.toString(); - this.emit('data', JSON.stringify(logEvent)); } + + // didn't get any hits. this is success if it's a negative + // pattern, failure otherwise. + if (options.flipNegate) return false + return this.negate } -function lineMerger(host) { - var previousLine = null; - var flushTimer = null; - var stream = through(lineMergerWrite, lineMergerEnd); - var flush = _flush.bind(stream); +// set partial to true to test if, for example, +// "/a/b" matches the start of "/*/b/*/d" +// Partial means, if you run out of file before you run +// out of pattern, then that's fine, as long as all +// the parts match. +Minimatch.prototype.matchOne = function (file, pattern, partial) { + var options = this.options - return stream; + this.debug('matchOne', + { 'this': this, file: file, pattern: pattern }) - function lineMergerWrite(line) { - if (/^\s+/.test(line.msg)) { - if (previousLine) { - previousLine.msg += '\n' + line.msg; - } else { - previousLine = line; - } - } else { - flush(); - previousLine = line; - } - // rolling timeout - clearTimeout(flushTimer); - flushTimer = setTimeout(flush.bind(this), 10); - } + this.debug('matchOne', file.length, pattern.length) - function _flush() { - if (previousLine) { - this.emit('data', previousLine); - previousLine = null; - } - } + for (var fi = 0, + pi = 0, + fl = file.length, + pl = pattern.length + ; (fi < fl) && (pi < pl) + ; fi++, pi++) { + this.debug('matchOne loop') + var p = pattern[pi] + var f = file[fi] - function lineMergerEnd() { - flush.call(this); - this.emit('end'); - } -} + this.debug(pattern, p, f) + // should be impossible. + // some invalid regexp stuff in the set. + if (p === false) return false -/***/ }), -/* 98 */ -/***/ (function(module, exports, __webpack_require__) { + if (p === GLOBSTAR) { + this.debug('GLOBSTAR', [pattern, p, f]) -//! moment.js locale configuration -//! locale : Afrikaans [af] -//! author : Werner Mollentze : https://github.com/wernerm - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var af = moment.defineLocale('af', { - months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'), - monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), - weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), - weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), - weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), - meridiemParse: /vm|nm/i, - isPM : function (input) { - return /^nm$/i.test(input); - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'vm' : 'VM'; - } else { - return isLower ? 'nm' : 'NM'; + // "**" + // a/**/b/**/c would match the following: + // a/b/x/y/z/c + // a/x/y/z/b/c + // a/b/x/b/x/c + // a/b/c + // To do this, take the rest of the pattern after + // the **, and see if it would match the file remainder. + // If so, return success. + // If not, the ** "swallows" a segment, and try again. + // This is recursively awful. + // + // a/**/b/**/c matching a/b/x/y/z/c + // - a matches a + // - doublestar + // - matchOne(b/x/y/z/c, b/**/c) + // - b matches b + // - doublestar + // - matchOne(x/y/z/c, c) -> no + // - matchOne(y/z/c, c) -> no + // - matchOne(z/c, c) -> no + // - matchOne(c, c) yes, hit + var fr = fi + var pr = pi + 1 + if (pr === pl) { + this.debug('** at the end') + // a ** at the end will just swallow the rest. + // We have found a match. + // however, it will not swallow /.x, unless + // options.dot is set. + // . and .. are *never* matched by **, for explosively + // exponential reasons. + for (; fi < fl; fi++) { + if (file[fi] === '.' || file[fi] === '..' || + (!options.dot && file[fi].charAt(0) === '.')) return false } - }, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Vandag om] LT', - nextDay : '[Môre om] LT', - nextWeek : 'dddd [om] LT', - lastDay : '[Gister om] LT', - lastWeek : '[Laas] dddd [om] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'oor %s', - past : '%s gelede', - s : '\'n paar sekondes', - ss : '%d sekondes', - m : '\'n minuut', - mm : '%d minute', - h : '\'n uur', - hh : '%d ure', - d : '\'n dag', - dd : '%d dae', - M : '\'n maand', - MM : '%d maande', - y : '\'n jaar', - yy : '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter - }, - week : { - dow : 1, // Maandag is die eerste dag van die week. - doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar. - } -}); - -return af; + return true + } -}))); + // ok, let's see if we can swallow whatever we can. + while (fr < fl) { + var swallowee = file[fr] + this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) -/***/ }), -/* 99 */ -/***/ (function(module, exports, __webpack_require__) { + // XXX remove this slice. Just pass the start index. + if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { + this.debug('globstar found match!', fr, fl, swallowee) + // found a match. + return true + } else { + // can't swallow "." or ".." ever. + // can only swallow ".foo" when explicitly asked. + if (swallowee === '.' || swallowee === '..' || + (!options.dot && swallowee.charAt(0) === '.')) { + this.debug('dot detected!', file, fr, pattern, pr) + break + } -//! moment.js locale configuration -//! locale : Arabic [ar] -//! author : Abdel Said: https://github.com/abdelsaid -//! author : Ahmed Elkhatib -//! author : forabi https://github.com/forabi - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠' -}; -var numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' -}; -var pluralForm = function (n) { - return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; -}; -var plurals = { - s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], - m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], - h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], - d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], - M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], - y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] -}; -var pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; + // ** swallows a segment, and continue. + this.debug('globstar swallow a segment, and continue') + fr++ } - return str.replace(/%d/i, number); - }; -}; -var months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر' -]; + } -var ar = moment.defineLocale('ar', { - months : months, - monthsShort : months, - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'D/\u200FM/\u200FYYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM : function (input) { - return 'م' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar : { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'بعد %s', - past : 'منذ %s', - s : pluralize('s'), - ss : pluralize('s'), - m : pluralize('m'), - mm : pluralize('m'), - h : pluralize('h'), - hh : pluralize('h'), - d : pluralize('d'), - dd : pluralize('d'), - M : pluralize('M'), - MM : pluralize('M'), - y : pluralize('y'), - yy : pluralize('y') - }, - preparse: function (string) { - return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }).replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + // no match was found. + // However, in partial mode, we can't say this is necessarily over. + // If there's more *pattern* left, then + if (partial) { + // ran out of file + this.debug('\n>>> no match, partial?', file, fr, pattern, pr) + if (fr === fl) return true + } + return false } -}); -return ar; + // something other than ** + // non-magic patterns just have to match exactly + // patterns with magic have been turned into regexps. + var hit + if (typeof p === 'string') { + if (options.nocase) { + hit = f.toLowerCase() === p.toLowerCase() + } else { + hit = f === p + } + this.debug('string match', p, f, hit) + } else { + hit = f.match(p) + this.debug('pattern match', p, f, hit) + } -}))); + if (!hit) return false + } + // Note: ending in / means that we'll get a final "" + // at the end of the pattern. This can only match a + // corresponding "" at the end of the file. + // If the file ends in /, then it can only match a + // a pattern that ends in /, unless the pattern just + // doesn't have any more for it. But, a/b/ should *not* + // match "a/b/*", even though "" matches against the + // [^/]*? pattern, except in partial mode, where it might + // simply not be reached yet. + // However, a/b/ should still satisfy a/* -/***/ }), -/* 100 */ -/***/ (function(module, exports, __webpack_require__) { + // now either we fell off the end of the pattern, or we're done. + if (fi === fl && pi === pl) { + // ran out of pattern and filename at the same time. + // an exact hit! + return true + } else if (fi === fl) { + // ran out of file, but still had pattern left. + // this is ok if we're doing the match as part of + // a glob fs traversal. + return partial + } else if (pi === pl) { + // ran out of pattern, still have file left. + // this is only acceptable if we're on the very last + // empty segment of a file with a trailing slash. + // a/* should match a/b/ + var emptyFileEnd = (fi === fl - 1) && (file[fi] === '') + return emptyFileEnd + } -//! moment.js locale configuration -//! locale : Arabic (Algeria) [ar-dz] -//! author : Noureddine LOUAHEDJ : https://github.com/noureddineme - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var arDz = moment.defineLocale('ar-dz', { - months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - ss : '%d ثانية', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 4 // The week that contains Jan 1st is the first week of the year. - } -}); + // should be unreachable. + throw new Error('wtf?') +} -return arDz; +// replace stuff like \* with * +function globUnescape (s) { + return s.replace(/\\(.)/g, '$1') +} -}))); +function regExpEscape (s) { + return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') +} /***/ }), -/* 101 */ +/* 56 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Arabic (Kuwait) [ar-kw] -//! author : Nusret Parlak: https://github.com/nusretparlak - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var arKw = moment.defineLocale('ar-kw', { - months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - ss : '%d ثانية', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } -}); - -return arKw; - -}))); - +"use strict"; -/***/ }), -/* 102 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Arabic (Lybia) [ar-ly] -//! author : Ali Hmer: https://github.com/kikoanis - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '1', - '2': '2', - '3': '3', - '4': '4', - '5': '5', - '6': '6', - '7': '7', - '8': '8', - '9': '9', - '0': '0' -}; -var pluralForm = function (n) { - return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; -}; -var plurals = { - s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], - m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], - h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], - d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], - M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], - y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] -}; -var pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; -}; -var months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر' -]; +function posix(path) { + return path.charAt(0) === '/'; +} -var arLy = moment.defineLocale('ar-ly', { - months : months, - monthsShort : months, - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'D/\u200FM/\u200FYYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM : function (input) { - return 'م' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar : { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'بعد %s', - past : 'منذ %s', - s : pluralize('s'), - ss : pluralize('s'), - m : pluralize('m'), - mm : pluralize('m'), - h : pluralize('h'), - hh : pluralize('h'), - d : pluralize('d'), - dd : pluralize('d'), - M : pluralize('M'), - MM : pluralize('M'), - y : pluralize('y'), - yy : pluralize('y') - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } -}); +function win32(path) { + // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 + var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; + var result = splitDeviceRe.exec(path); + var device = result[1] || ''; + var isUnc = Boolean(device && device.charAt(1) !== ':'); -return arLy; + // UNC paths are always absolute + return Boolean(result[2] || isUnc); +} -}))); +module.exports = process.platform === 'win32' ? win32 : posix; +module.exports.posix = posix; +module.exports.win32 = win32; /***/ }), -/* 103 */ +/* 57 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Arabic (Morocco) [ar-ma] -//! author : ElFadili Yassine : https://github.com/ElFadiliY -//! author : Abdel Said : https://github.com/abdelsaid - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var arMa = moment.defineLocale('ar-ma', { - months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - ss : '%d ثانية', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } -}); - -return arMa; +"use strict"; -}))); +Object.defineProperty(exports, "__esModule", { + value: true +}); +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +class CliError extends Error { + constructor(message, meta = {}) { + super(message); + this.meta = meta; + } +} +exports.CliError = CliError; /***/ }), -/* 104 */ +/* 58 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Arabic (Saudi Arabia) [ar-sa] -//! author : Suhail Alkowaileet : https://github.com/xsoh - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠' -}; -var numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' -}; +// Note: since nyc uses this module to output coverage, any lines +// that are in the direct sync flow of nyc's outputCoverage are +// ignored, since we can never get coverage for them. +var assert = __webpack_require__(28) +var signals = __webpack_require__(189) -var arSa = moment.defineLocale('ar-sa', { - months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM : function (input) { - return 'م' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - ss : '%d ثانية', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' - }, - preparse: function (string) { - return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }).replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } -}); +var EE = __webpack_require__(40) +/* istanbul ignore if */ +if (typeof EE !== 'function') { + EE = EE.EventEmitter +} -return arSa; +var emitter +if (process.__signal_exit_emitter__) { + emitter = process.__signal_exit_emitter__ +} else { + emitter = process.__signal_exit_emitter__ = new EE() + emitter.count = 0 + emitter.emitted = {} +} -}))); +// Because this emitter is a global, we have to check to see if a +// previous version of this library failed to enable infinite listeners. +// I know what you're about to say. But literally everything about +// signal-exit is a compromise with evil. Get used to it. +if (!emitter.infinite) { + emitter.setMaxListeners(Infinity) + emitter.infinite = true +} +module.exports = function (cb, opts) { + assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') -/***/ }), -/* 105 */ -/***/ (function(module, exports, __webpack_require__) { + if (loaded === false) { + load() + } -//! moment.js locale configuration -//! locale : Arabic (Tunisia) [ar-tn] -//! author : Nader Toukabri : https://github.com/naderio - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var arTn = moment.defineLocale('ar-tn', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss : '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 4th is the first week of the year. - } -}); + var ev = 'exit' + if (opts && opts.alwaysLast) { + ev = 'afterexit' + } -return arTn; + var remove = function () { + emitter.removeListener(ev, cb) + if (emitter.listeners('exit').length === 0 && + emitter.listeners('afterexit').length === 0) { + unload() + } + } + emitter.on(ev, cb) -}))); + return remove +} +module.exports.unload = unload +function unload () { + if (!loaded) { + return + } + loaded = false -/***/ }), -/* 106 */ -/***/ (function(module, exports, __webpack_require__) { + signals.forEach(function (sig) { + try { + process.removeListener(sig, sigListeners[sig]) + } catch (er) {} + }) + process.emit = originalProcessEmit + process.reallyExit = originalProcessReallyExit + emitter.count -= 1 +} -//! moment.js locale configuration -//! locale : Azerbaijani [az] -//! author : topchiyev : https://github.com/topchiyev - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var suffixes = { - 1: '-inci', - 5: '-inci', - 8: '-inci', - 70: '-inci', - 80: '-inci', - 2: '-nci', - 7: '-nci', - 20: '-nci', - 50: '-nci', - 3: '-üncü', - 4: '-üncü', - 100: '-üncü', - 6: '-ncı', - 9: '-uncu', - 10: '-uncu', - 30: '-uncu', - 60: '-ıncı', - 90: '-ıncı' -}; +function emit (event, code, signal) { + if (emitter.emitted[event]) { + return + } + emitter.emitted[event] = true + emitter.emit(event, code, signal) +} -var az = moment.defineLocale('az', { - months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'), - monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), - weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'), - weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), - weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[bugün saat] LT', - nextDay : '[sabah saat] LT', - nextWeek : '[gələn həftə] dddd [saat] LT', - lastDay : '[dünən] LT', - lastWeek : '[keçən həftə] dddd [saat] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s sonra', - past : '%s əvvəl', - s : 'birneçə saniyyə', - ss : '%d saniyə', - m : 'bir dəqiqə', - mm : '%d dəqiqə', - h : 'bir saat', - hh : '%d saat', - d : 'bir gün', - dd : '%d gün', - M : 'bir ay', - MM : '%d ay', - y : 'bir il', - yy : '%d il' - }, - meridiemParse: /gecə|səhər|gündüz|axşam/, - isPM : function (input) { - return /^(gündüz|axşam)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'gecə'; - } else if (hour < 12) { - return 'səhər'; - } else if (hour < 17) { - return 'gündüz'; - } else { - return 'axşam'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, - ordinal : function (number) { - if (number === 0) { // special case for zero - return number + '-ıncı'; - } - var a = number % 10, - b = number % 100 - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. +// { : , ... } +var sigListeners = {} +signals.forEach(function (sig) { + sigListeners[sig] = function listener () { + // If there are no other listeners, an exit is coming! + // Simplest way: remove us and then re-send the signal. + // We know that this will kill the process, so we can + // safely emit now. + var listeners = process.listeners(sig) + if (listeners.length === emitter.count) { + unload() + emit('exit', null, sig) + /* istanbul ignore next */ + emit('afterexit', null, sig) + /* istanbul ignore next */ + process.kill(process.pid, sig) } -}); - -return az; + } +}) -}))); +module.exports.signals = function () { + return signals +} +module.exports.load = load -/***/ }), -/* 107 */ -/***/ (function(module, exports, __webpack_require__) { +var loaded = false -//! moment.js locale configuration -//! locale : Belarusian [be] -//! author : Dmitry Demidov : https://github.com/demidov91 -//! author: Praleska: http://praleska.pro/ -//! Author : Menelion Elensúle : https://github.com/Oire +function load () { + if (loaded) { + return + } + loaded = true -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; + // This is the number of onSignalExit's that are in play. + // It's important so that we can count the correct number of + // listeners on signals, and don't wait for the other one to + // handle it instead of us. + emitter.count += 1 + signals = signals.filter(function (sig) { + try { + process.on(sig, sigListeners[sig]) + return true + } catch (er) { + return false + } + }) -function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); + process.emit = processEmit + process.reallyExit = processReallyExit } -function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', - 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', - 'dd': 'дзень_дні_дзён', - 'MM': 'месяц_месяцы_месяцаў', - 'yy': 'год_гады_гадоў' - }; - if (key === 'm') { - return withoutSuffix ? 'хвіліна' : 'хвіліну'; - } - else if (key === 'h') { - return withoutSuffix ? 'гадзіна' : 'гадзіну'; - } - else { - return number + ' ' + plural(format[key], +number); - } + +var originalProcessReallyExit = process.reallyExit +function processReallyExit (code) { + process.exitCode = code || 0 + emit('exit', process.exitCode, null) + /* istanbul ignore next */ + emit('afterexit', process.exitCode, null) + /* istanbul ignore next */ + originalProcessReallyExit.call(process, process.exitCode) } -var be = moment.defineLocale('be', { - months : { - format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'), - standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_') - }, - monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'), - weekdays : { - format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'), - standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'), - isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/ - }, - weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY г.', - LLL : 'D MMMM YYYY г., HH:mm', - LLLL : 'dddd, D MMMM YYYY г., HH:mm' - }, - calendar : { - sameDay: '[Сёння ў] LT', - nextDay: '[Заўтра ў] LT', - lastDay: '[Учора ў] LT', - nextWeek: function () { - return '[У] dddd [ў] LT'; - }, - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [ў] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [ў] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'праз %s', - past : '%s таму', - s : 'некалькі секунд', - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : relativeTimeWithPlural, - hh : relativeTimeWithPlural, - d : 'дзень', - dd : relativeTimeWithPlural, - M : 'месяц', - MM : relativeTimeWithPlural, - y : 'год', - yy : relativeTimeWithPlural - }, - meridiemParse: /ночы|раніцы|дня|вечара/, - isPM : function (input) { - return /^(дня|вечара)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ночы'; - } else if (hour < 12) { - return 'раніцы'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечара'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы'; - case 'D': - return number + '-га'; - default: - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. +var originalProcessEmit = process.emit +function processEmit (ev, arg) { + if (ev === 'exit') { + if (arg !== undefined) { + process.exitCode = arg } -}); - -return be; - -}))); + var ret = originalProcessEmit.apply(this, arguments) + emit('exit', process.exitCode, null) + /* istanbul ignore next */ + emit('afterexit', process.exitCode, null) + return ret + } else { + return originalProcessEmit.apply(this, arguments) + } +} /***/ }), -/* 108 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Bulgarian [bg] -//! author : Krasen Borisov : https://github.com/kraz - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var bg = moment.defineLocale('bg', { - months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'), - monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), - weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), - weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'), - weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'D.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY H:mm', - LLLL : 'dddd, D MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[Днес в] LT', - nextDay : '[Утре в] LT', - nextWeek : 'dddd [в] LT', - lastDay : '[Вчера в] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[В изминалата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[В изминалия] dddd [в] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'след %s', - past : 'преди %s', - s : 'няколко секунди', - ss : '%d секунди', - m : 'минута', - mm : '%d минути', - h : 'час', - hh : '%d часа', - d : 'ден', - dd : '%d дни', - M : 'месец', - MM : '%d месеца', - y : 'година', - yy : '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal : function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); - -return bg; - -}))); +/* 59 */ +/***/ (function(module, exports) { +module.exports = require("child_process"); /***/ }), -/* 109 */ +/* 60 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Bambara [bm] -//! author : Estelle Comment : https://github.com/estellecomment - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - -// Language contact person : Abdoufata Kane : https://github.com/abdoufata - -var bm = moment.defineLocale('bm', { - months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'), - monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), - weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), - weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), - weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'MMMM [tile] D [san] YYYY', - LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm' - }, - calendar : { - sameDay : '[Bi lɛrɛ] LT', - nextDay : '[Sini lɛrɛ] LT', - nextWeek : 'dddd [don lɛrɛ] LT', - lastDay : '[Kunu lɛrɛ] LT', - lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s kɔnɔ', - past : 'a bɛ %s bɔ', - s : 'sanga dama dama', - ss : 'sekondi %d', - m : 'miniti kelen', - mm : 'miniti %d', - h : 'lɛrɛ kelen', - hh : 'lɛrɛ %d', - d : 'tile kelen', - dd : 'tile %d', - M : 'kalo kelen', - MM : 'kalo %d', - y : 'san kelen', - yy : 'san %d' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return bm; - -}))); - - -/***/ }), -/* 110 */ -/***/ (function(module, exports, __webpack_require__) { +"use strict"; -//! moment.js locale configuration -//! locale : Bengali [bn] -//! author : Kaushik Gandhi : https://github.com/kaushikgandhi - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '১', - '2': '২', - '3': '৩', - '4': '৪', - '5': '৫', - '6': '৬', - '7': '৭', - '8': '৮', - '9': '৯', - '0': '০' -}; -var numberMap = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0' -}; -var bn = moment.defineLocale('bn', { - months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'), - monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'), - weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'), - weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), - longDateFormat : { - LT : 'A h:mm সময়', - LTS : 'A h:mm:ss সময়', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm সময়', - LLLL : 'dddd, D MMMM YYYY, A h:mm সময়' - }, - calendar : { - sameDay : '[আজ] LT', - nextDay : '[আগামীকাল] LT', - nextWeek : 'dddd, LT', - lastDay : '[গতকাল] LT', - lastWeek : '[গত] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s পরে', - past : '%s আগে', - s : 'কয়েক সেকেন্ড', - ss : '%d সেকেন্ড', - m : 'এক মিনিট', - mm : '%d মিনিট', - h : 'এক ঘন্টা', - hh : '%d ঘন্টা', - d : 'এক দিন', - dd : '%d দিন', - M : 'এক মাস', - MM : '%d মাস', - y : 'এক বছর', - yy : '%d বছর' - }, - preparse: function (string) { - return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ((meridiem === 'রাত' && hour >= 4) || - (meridiem === 'দুপুর' && hour < 5) || - meridiem === 'বিকাল') { - return hour + 12; - } else { - return hour; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'রাত'; - } else if (hour < 10) { - return 'সকাল'; - } else if (hour < 17) { - return 'দুপুর'; - } else if (hour < 20) { - return 'বিকাল'; - } else { - return 'রাত'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } +Object.defineProperty(exports, "__esModule", { + value: true }); +exports.getProjectPaths = getProjectPaths; -return bn; - -}))); +var _path = __webpack_require__(2); +/** + * Returns all the paths where plugins are located + */ +function getProjectPaths(rootPath, options) { + const skipKibanaExtra = Boolean(options['skip-kibana-extra']); + const ossOnly = Boolean(options.oss); + const projectPaths = [rootPath, (0, _path.resolve)(rootPath, 'packages/*')]; + if (!ossOnly) { + projectPaths.push((0, _path.resolve)(rootPath, 'x-pack')); + projectPaths.push((0, _path.resolve)(rootPath, 'x-pack/plugins/*')); + } + if (!skipKibanaExtra) { + projectPaths.push((0, _path.resolve)(rootPath, '../kibana-extra/*')); + projectPaths.push((0, _path.resolve)(rootPath, '../kibana-extra/*/packages/*')); + projectPaths.push((0, _path.resolve)(rootPath, '../kibana-extra/*/plugins/*')); + } + return projectPaths; +} /* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ /***/ }), -/* 111 */ -/***/ (function(module, exports, __webpack_require__) { +/* 61 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -//! moment.js locale configuration -//! locale : Tibetan [bo] -//! author : Thupten N. Chakrishar : https://github.com/vajradog - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '༡', - '2': '༢', - '3': '༣', - '4': '༤', - '5': '༥', - '6': '༦', - '7': '༧', - '8': '༨', - '9': '༩', - '0': '༠' -}; -var numberMap = { - '༡': '1', - '༢': '2', - '༣': '3', - '༤': '4', - '༥': '5', - '༦': '6', - '༧': '7', - '༨': '8', - '༩': '9', - '༠': '0' -}; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = hostReportError; +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +function hostReportError(err) { + setTimeout(function () { throw err; }); +} +//# sourceMappingURL=hostReportError.js.map -var bo = moment.defineLocale('bo', { - months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), - monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), - weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'), - weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), - weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm', - LLLL : 'dddd, D MMMM YYYY, A h:mm' - }, - calendar : { - sameDay : '[དི་རིང] LT', - nextDay : '[སང་ཉིན] LT', - nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT', - lastDay : '[ཁ་སང] LT', - lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ལ་', - past : '%s སྔན་ལ', - s : 'ལམ་སང', - ss : '%d སྐར་ཆ།', - m : 'སྐར་མ་གཅིག', - mm : '%d སྐར་མ', - h : 'ཆུ་ཚོད་གཅིག', - hh : '%d ཆུ་ཚོད', - d : 'ཉིན་གཅིག', - dd : '%d ཉིན་', - M : 'ཟླ་བ་གཅིག', - MM : '%d ཟླ་བ', - y : 'ལོ་གཅིག', - yy : '%d ལོ' - }, - preparse: function (string) { - return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ((meridiem === 'མཚན་མོ' && hour >= 4) || - (meridiem === 'ཉིན་གུང' && hour < 5) || - meridiem === 'དགོང་དག') { - return hour + 12; - } else { - return hour; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'མཚན་མོ'; - } else if (hour < 10) { - return 'ཞོགས་ཀས'; - } else if (hour < 17) { - return 'ཉིན་གུང'; - } else if (hour < 20) { - return 'དགོང་དག'; - } else { - return 'མཚན་མོ'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } -}); -return bo; +/***/ }), +/* 62 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -}))); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return rxSubscriber; }); +/* unused harmony export $$rxSubscriber */ +/** PURE_IMPORTS_START PURE_IMPORTS_END */ +var rxSubscriber = (typeof Symbol === 'function' && typeof Symbol.for === 'function') + ? /*@__PURE__*/ Symbol.for('rxSubscriber') + : '@@rxSubscriber'; +var $$rxSubscriber = rxSubscriber; +//# sourceMappingURL=rxSubscriber.js.map /***/ }), -/* 112 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Breton [br] -//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +/* 63 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = pipe; +/* harmony export (immutable) */ __webpack_exports__["b"] = pipeFromArray; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(43); +/** PURE_IMPORTS_START _noop PURE_IMPORTS_END */ -function relativeTimeWithMutation(number, withoutSuffix, key) { - var format = { - 'mm': 'munutenn', - 'MM': 'miz', - 'dd': 'devezh' - }; - return number + ' ' + mutation(format[key], number); -} -function specialMutationForYears(number) { - switch (lastNumber(number)) { - case 1: - case 3: - case 4: - case 5: - case 9: - return number + ' bloaz'; - default: - return number + ' vloaz'; +function pipe() { + var fns = []; + for (var _i = 0; _i < arguments.length; _i++) { + fns[_i] = arguments[_i]; } + return pipeFromArray(fns); } -function lastNumber(number) { - if (number > 9) { - return lastNumber(number % 10); +function pipeFromArray(fns) { + if (!fns) { + return __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* noop */]; } - return number; -} -function mutation(text, number) { - if (number === 2) { - return softMutation(text); + if (fns.length === 1) { + return fns[0]; } - return text; -} -function softMutation(text) { - var mutationTable = { - 'm': 'v', - 'b': 'v', - 'd': 'z' + return function piped(input) { + return fns.reduce(function (prev, fn) { return fn(prev); }, input); }; - if (mutationTable[text.charAt(0)] === undefined) { - return text; - } - return mutationTable[text.charAt(0)] + text.substring(1); } - -var br = moment.defineLocale('br', { - months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'), - monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), - weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'), - weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), - weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'h[e]mm A', - LTS : 'h[e]mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D [a viz] MMMM YYYY', - LLL : 'D [a viz] MMMM YYYY h[e]mm A', - LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A' - }, - calendar : { - sameDay : '[Hiziv da] LT', - nextDay : '[Warc\'hoazh da] LT', - nextWeek : 'dddd [da] LT', - lastDay : '[Dec\'h da] LT', - lastWeek : 'dddd [paset da] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'a-benn %s', - past : '%s \'zo', - s : 'un nebeud segondennoù', - ss : '%d eilenn', - m : 'ur vunutenn', - mm : relativeTimeWithMutation, - h : 'un eur', - hh : '%d eur', - d : 'un devezh', - dd : relativeTimeWithMutation, - M : 'ur miz', - MM : relativeTimeWithMutation, - y : 'ur bloaz', - yy : specialMutationForYears - }, - dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, - ordinal : function (number) { - var output = (number === 1) ? 'añ' : 'vet'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return br; - -}))); +//# sourceMappingURL=pipe.js.map /***/ }), -/* 113 */ -/***/ (function(module, exports, __webpack_require__) { +/* 64 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -//! moment.js locale configuration -//! locale : Bosnian [bs] -//! author : Nedim Cholich : https://github.com/frontyard -//! based on (hr) translation by Bojan Marković - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } -} - -var bs = moment.defineLocale('bs', { - months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'), - monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[danas u] LT', - nextDay : '[sutra u] LT', - nextWeek : function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[jučer u] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'prije %s', - s : 'par sekundi', - ss : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : 'dan', - dd : translate, - M : 'mjesec', - MM : translate, - y : 'godinu', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = refCount; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ -return bs; -}))); +function refCount() { + return function refCountOperatorFunction(source) { + return source.lift(new RefCountOperator(source)); + }; +} +var RefCountOperator = /*@__PURE__*/ (function () { + function RefCountOperator(connectable) { + this.connectable = connectable; + } + RefCountOperator.prototype.call = function (subscriber, source) { + var connectable = this.connectable; + connectable._refCount++; + var refCounter = new RefCountSubscriber(subscriber, connectable); + var subscription = source.subscribe(refCounter); + if (!refCounter.closed) { + refCounter.connection = connectable.connect(); + } + return subscription; + }; + return RefCountOperator; +}()); +var RefCountSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](RefCountSubscriber, _super); + function RefCountSubscriber(destination, connectable) { + var _this = _super.call(this, destination) || this; + _this.connectable = connectable; + return _this; + } + RefCountSubscriber.prototype._unsubscribe = function () { + var connectable = this.connectable; + if (!connectable) { + this.connection = null; + return; + } + this.connectable = null; + var refCount = connectable._refCount; + if (refCount <= 0) { + this.connection = null; + return; + } + connectable._refCount = refCount - 1; + if (refCount > 1) { + this.connection = null; + return; + } + var connection = this.connection; + var sharedConnection = connectable._connection; + this.connection = null; + if (sharedConnection && (!connection || sharedConnection === connection)) { + sharedConnection.unsubscribe(); + } + }; + return RefCountSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); +//# sourceMappingURL=refCount.js.map /***/ }), -/* 114 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Catalan [ca] -//! author : Juan G. Hurtado : https://github.com/juanghurtado +/* 65 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ReplaySubject; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_queue__ = __webpack_require__(109); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__operators_observeOn__ = __webpack_require__(111); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_ObjectUnsubscribedError__ = __webpack_require__(44); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__SubjectSubscription__ = __webpack_require__(106); +/** PURE_IMPORTS_START tslib,_Subject,_scheduler_queue,_Subscription,_operators_observeOn,_util_ObjectUnsubscribedError,_SubjectSubscription PURE_IMPORTS_END */ -var ca = moment.defineLocale('ca', { - months : { - standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'), - format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'), - isFormat: /D[oD]?(\s)+MMMM/ - }, - monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'), - monthsParseExact : true, - weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), - weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), - weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM [de] YYYY', - ll : 'D MMM YYYY', - LLL : 'D MMMM [de] YYYY [a les] H:mm', - lll : 'D MMM YYYY, H:mm', - LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm', - llll : 'ddd D MMM YYYY, H:mm' - }, - calendar : { - sameDay : function () { - return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - nextDay : function () { - return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - nextWeek : function () { - return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - lastDay : function () { - return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - lastWeek : function () { - return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'd\'aquí %s', - past : 'fa %s', - s : 'uns segons', - ss : '%d segons', - m : 'un minut', - mm : '%d minuts', - h : 'una hora', - hh : '%d hores', - d : 'un dia', - dd : '%d dies', - M : 'un mes', - MM : '%d mesos', - y : 'un any', - yy : '%d anys' - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal : function (number, period) { - var output = (number === 1) ? 'r' : - (number === 2) ? 'n' : - (number === 3) ? 'r' : - (number === 4) ? 't' : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); -return ca; -}))); -/***/ }), -/* 115 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Czech [cs] -//! author : petrbela : https://github.com/petrbela - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'); -var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'); -function plural(n) { - return (n > 1) && (n < 5) && (~~(n / 10) !== 1); -} -function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekund'); - } else { - return result + 'sekundami'; - } - break; - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minuty' : 'minut'); - } else { - return result + 'minutami'; - } - break; - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodin'); - } else { - return result + 'hodinami'; - } - break; - case 'd': // a day / in a day / a day ago - return (withoutSuffix || isFuture) ? 'den' : 'dnem'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dny' : 'dní'); - } else { - return result + 'dny'; - } - break; - case 'M': // a month / in a month / a month ago - return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'měsíce' : 'měsíců'); - } else { - return result + 'měsíci'; - } - break; - case 'y': // a year / in a year / a year ago - return (withoutSuffix || isFuture) ? 'rok' : 'rokem'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'let'); - } else { - return result + 'lety'; - } - break; +var ReplaySubject = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ReplaySubject, _super); + function ReplaySubject(bufferSize, windowTime, scheduler) { + if (bufferSize === void 0) { + bufferSize = Number.POSITIVE_INFINITY; + } + if (windowTime === void 0) { + windowTime = Number.POSITIVE_INFINITY; + } + var _this = _super.call(this) || this; + _this.scheduler = scheduler; + _this._events = []; + _this._infiniteTimeWindow = false; + _this._bufferSize = bufferSize < 1 ? 1 : bufferSize; + _this._windowTime = windowTime < 1 ? 1 : windowTime; + if (windowTime === Number.POSITIVE_INFINITY) { + _this._infiniteTimeWindow = true; + _this.next = _this.nextInfiniteTimeWindow; + } + else { + _this.next = _this.nextTimeWindow; + } + return _this; } -} - -var cs = moment.defineLocale('cs', { - months : months, - monthsShort : monthsShort, - monthsParse : (function (months, monthsShort) { - var i, _monthsParse = []; - for (i = 0; i < 12; i++) { - // use custom parser to solve problem with July (červenec) - _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); - } - return _monthsParse; - }(months, monthsShort)), - shortMonthsParse : (function (monthsShort) { - var i, _shortMonthsParse = []; - for (i = 0; i < 12; i++) { - _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i'); - } - return _shortMonthsParse; - }(monthsShort)), - longMonthsParse : (function (months) { - var i, _longMonthsParse = []; - for (i = 0; i < 12; i++) { - _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i'); - } - return _longMonthsParse; - }(months)), - weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), - weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'), - weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'), - longDateFormat : { - LT: 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd D. MMMM YYYY H:mm', - l : 'D. M. YYYY' - }, - calendar : { - sameDay: '[dnes v] LT', - nextDay: '[zítra v] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v neděli v] LT'; - case 1: - case 2: - return '[v] dddd [v] LT'; - case 3: - return '[ve středu v] LT'; - case 4: - return '[ve čtvrtek v] LT'; - case 5: - return '[v pátek v] LT'; - case 6: - return '[v sobotu v] LT'; + ReplaySubject.prototype.nextInfiniteTimeWindow = function (value) { + var _events = this._events; + _events.push(value); + if (_events.length > this._bufferSize) { + _events.shift(); + } + _super.prototype.next.call(this, value); + }; + ReplaySubject.prototype.nextTimeWindow = function (value) { + this._events.push(new ReplayEvent(this._getNow(), value)); + this._trimBufferThenGetEvents(); + _super.prototype.next.call(this, value); + }; + ReplaySubject.prototype._subscribe = function (subscriber) { + var _infiniteTimeWindow = this._infiniteTimeWindow; + var _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents(); + var scheduler = this.scheduler; + var len = _events.length; + var subscription; + if (this.closed) { + throw new __WEBPACK_IMPORTED_MODULE_5__util_ObjectUnsubscribedError__["a" /* ObjectUnsubscribedError */](); + } + else if (this.isStopped || this.hasError) { + subscription = __WEBPACK_IMPORTED_MODULE_3__Subscription__["a" /* Subscription */].EMPTY; + } + else { + this.observers.push(subscriber); + subscription = new __WEBPACK_IMPORTED_MODULE_6__SubjectSubscription__["a" /* SubjectSubscription */](this, subscriber); + } + if (scheduler) { + subscriber.add(subscriber = new __WEBPACK_IMPORTED_MODULE_4__operators_observeOn__["a" /* ObserveOnSubscriber */](subscriber, scheduler)); + } + if (_infiniteTimeWindow) { + for (var i = 0; i < len && !subscriber.closed; i++) { + subscriber.next(_events[i]); } - }, - lastDay: '[včera v] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulou neděli v] LT'; - case 1: - case 2: - return '[minulé] dddd [v] LT'; - case 3: - return '[minulou středu v] LT'; - case 4: - case 5: - return '[minulý] dddd [v] LT'; - case 6: - return '[minulou sobotu v] LT'; + } + else { + for (var i = 0; i < len && !subscriber.closed; i++) { + subscriber.next(_events[i].value); } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'za %s', - past : 'před %s', - s : translate, - ss : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse : /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return cs; - -}))); - - -/***/ }), -/* 116 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Chuvash [cv] -//! author : Anatoly Mironov : https://github.com/mirontoli - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var cv = moment.defineLocale('cv', { - months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'), - monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), - weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'), - weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), - weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' - }, - calendar : { - sameDay: '[Паян] LT [сехетре]', - nextDay: '[Ыран] LT [сехетре]', - lastDay: '[Ӗнер] LT [сехетре]', - nextWeek: '[Ҫитес] dddd LT [сехетре]', - lastWeek: '[Иртнӗ] dddd LT [сехетре]', - sameElse: 'L' - }, - relativeTime : { - future : function (output) { - var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран'; - return output + affix; - }, - past : '%s каялла', - s : 'пӗр-ик ҫеккунт', - ss : '%d ҫеккунт', - m : 'пӗр минут', - mm : '%d минут', - h : 'пӗр сехет', - hh : '%d сехет', - d : 'пӗр кун', - dd : '%d кун', - M : 'пӗр уйӑх', - MM : '%d уйӑх', - y : 'пӗр ҫул', - yy : '%d ҫул' - }, - dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, - ordinal : '%d-мӗш', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); - -return cv; - -}))); - - -/***/ }), -/* 117 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Welsh [cy] -//! author : Robert Allen : https://github.com/robgallen -//! author : https://github.com/ryangreaves - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var cy = moment.defineLocale('cy', { - months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), - monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), - weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), - weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), - weekdaysParseExact : true, - // time formats are the same as en-gb - longDateFormat: { - LT: 'HH:mm', - LTS : 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Heddiw am] LT', - nextDay: '[Yfory am] LT', - nextWeek: 'dddd [am] LT', - lastDay: '[Ddoe am] LT', - lastWeek: 'dddd [diwethaf am] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'mewn %s', - past: '%s yn ôl', - s: 'ychydig eiliadau', - ss: '%d eiliad', - m: 'munud', - mm: '%d munud', - h: 'awr', - hh: '%d awr', - d: 'diwrnod', - dd: '%d diwrnod', - M: 'mis', - MM: '%d mis', - y: 'blwyddyn', - yy: '%d flynedd' - }, - dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, - // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh - ordinal: function (number) { - var b = number, - output = '', - lookup = [ - '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed - 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed - ]; - if (b > 20) { - if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { - output = 'fed'; // not 30ain, 70ain or 90ain - } else { - output = 'ain'; + } + if (this.hasError) { + subscriber.error(this.thrownError); + } + else if (this.isStopped) { + subscriber.complete(); + } + return subscription; + }; + ReplaySubject.prototype._getNow = function () { + return (this.scheduler || __WEBPACK_IMPORTED_MODULE_2__scheduler_queue__["a" /* queue */]).now(); + }; + ReplaySubject.prototype._trimBufferThenGetEvents = function () { + var now = this._getNow(); + var _bufferSize = this._bufferSize; + var _windowTime = this._windowTime; + var _events = this._events; + var eventsCount = _events.length; + var spliceCount = 0; + while (spliceCount < eventsCount) { + if ((now - _events[spliceCount].time) < _windowTime) { + break; } - } else if (b > 0) { - output = lookup[b]; + spliceCount++; } - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return cy; + if (eventsCount > _bufferSize) { + spliceCount = Math.max(spliceCount, eventsCount - _bufferSize); + } + if (spliceCount > 0) { + _events.splice(0, spliceCount); + } + return _events; + }; + return ReplaySubject; +}(__WEBPACK_IMPORTED_MODULE_1__Subject__["a" /* Subject */])); -}))); +var ReplayEvent = /*@__PURE__*/ (function () { + function ReplayEvent(time, value) { + this.time = time; + this.value = value; + } + return ReplayEvent; +}()); +//# sourceMappingURL=ReplaySubject.js.map /***/ }), -/* 118 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Danish [da] -//! author : Ulrik Nielsen : https://github.com/mrbase - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var da = moment.defineLocale('da', { - months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), - monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'), - weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH:mm', - LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' - }, - calendar : { - sameDay : '[i dag kl.] LT', - nextDay : '[i morgen kl.] LT', - nextWeek : 'på dddd [kl.] LT', - lastDay : '[i går kl.] LT', - lastWeek : '[i] dddd[s kl.] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'om %s', - past : '%s siden', - s : 'få sekunder', - ss : '%d sekunder', - m : 'et minut', - mm : '%d minutter', - h : 'en time', - hh : '%d timer', - d : 'en dag', - dd : '%d dage', - M : 'en måned', - MM : '%d måneder', - y : 'et år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +/* 66 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -return da; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = of; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isScheduler__ = __webpack_require__(14); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fromArray__ = __webpack_require__(20); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__empty__ = __webpack_require__(11); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__scalar__ = __webpack_require__(67); +/** PURE_IMPORTS_START _util_isScheduler,_fromArray,_empty,_scalar PURE_IMPORTS_END */ -}))); -/***/ }), -/* 119 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : German [de] -//! author : lluchs : https://github.com/lluchs -//! author: Menelion Elensúle: https://github.com/Oire -//! author : Mikolaj Dadela : https://github.com/mik01aj - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eine Minute', 'einer Minute'], - 'h': ['eine Stunde', 'einer Stunde'], - 'd': ['ein Tag', 'einem Tag'], - 'dd': [number + ' Tage', number + ' Tagen'], - 'M': ['ein Monat', 'einem Monat'], - 'MM': [number + ' Monate', number + ' Monaten'], - 'y': ['ein Jahr', 'einem Jahr'], - 'yy': [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; -} - -var de = moment.defineLocale('de', { - months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH:mm', - LLLL : 'dddd, D. MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime : { - future : 'in %s', - past : 'vor %s', - s : 'ein paar Sekunden', - ss : '%d Sekunden', - m : processRelativeTime, - mm : '%d Minuten', - h : processRelativeTime, - hh : '%d Stunden', - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. +function of() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; } -}); - -return de; - -}))); + var scheduler = args[args.length - 1]; + if (Object(__WEBPACK_IMPORTED_MODULE_0__util_isScheduler__["a" /* isScheduler */])(scheduler)) { + args.pop(); + } + else { + scheduler = undefined; + } + switch (args.length) { + case 0: + return Object(__WEBPACK_IMPORTED_MODULE_2__empty__["b" /* empty */])(scheduler); + case 1: + return scheduler ? Object(__WEBPACK_IMPORTED_MODULE_1__fromArray__["a" /* fromArray */])(args, scheduler) : Object(__WEBPACK_IMPORTED_MODULE_3__scalar__["a" /* scalar */])(args[0]); + default: + return Object(__WEBPACK_IMPORTED_MODULE_1__fromArray__["a" /* fromArray */])(args, scheduler); + } +} +//# sourceMappingURL=of.js.map /***/ }), -/* 120 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : German (Austria) [de-at] -//! author : lluchs : https://github.com/lluchs -//! author: Menelion Elensúle: https://github.com/Oire -//! author : Martin Groller : https://github.com/MadMG -//! author : Mikolaj Dadela : https://github.com/mik01aj - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eine Minute', 'einer Minute'], - 'h': ['eine Stunde', 'einer Stunde'], - 'd': ['ein Tag', 'einem Tag'], - 'dd': [number + ' Tage', number + ' Tagen'], - 'M': ['ein Monat', 'einem Monat'], - 'MM': [number + ' Monate', number + ' Monaten'], - 'y': ['ein Jahr', 'einem Jahr'], - 'yy': [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; -} - -var deAt = moment.defineLocale('de-at', { - months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH:mm', - LLLL : 'dddd, D. MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime : { - future : 'in %s', - past : 'vor %s', - s : 'ein paar Sekunden', - ss : '%d Sekunden', - m : processRelativeTime, - mm : '%d Minuten', - h : processRelativeTime, - hh : '%d Stunden', - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +/* 67 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -return deAt; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = scalar; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ -}))); +function scalar(value) { + var result = new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { + subscriber.next(value); + subscriber.complete(); + }); + result._isScalar = true; + result.value = value; + return result; +} +//# sourceMappingURL=scalar.js.map /***/ }), -/* 121 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : German (Switzerland) [de-ch] -//! author : sschueller : https://github.com/sschueller - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -// based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de# - -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eine Minute', 'einer Minute'], - 'h': ['eine Stunde', 'einer Stunde'], - 'd': ['ein Tag', 'einem Tag'], - 'dd': [number + ' Tage', number + ' Tagen'], - 'M': ['ein Monat', 'einem Monat'], - 'MM': [number + ' Monate', number + ' Monaten'], - 'y': ['ein Jahr', 'einem Jahr'], - 'yy': [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; -} - -var deCh = moment.defineLocale('de-ch', { - months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH:mm', - LLLL : 'dddd, D. MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime : { - future : 'in %s', - past : 'vor %s', - s : 'ein paar Sekunden', - ss : '%d Sekunden', - m : processRelativeTime, - mm : '%d Minuten', - h : processRelativeTime, - hh : '%d Stunden', - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +/* 68 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -return deCh; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = throwError; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ -}))); +function throwError(error, scheduler) { + if (!scheduler) { + return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return subscriber.error(error); }); + } + else { + return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { return scheduler.schedule(dispatch, 0, { error: error, subscriber: subscriber }); }); + } +} +function dispatch(_a) { + var error = _a.error, subscriber = _a.subscriber; + subscriber.error(error); +} +//# sourceMappingURL=throwError.js.map /***/ }), -/* 122 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Maldivian [dv] -//! author : Jawish Hameed : https://github.com/jawish - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު' -]; -var weekdays = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު' -]; - -var dv = moment.defineLocale('dv', { - months : months, - monthsShort : months, - weekdays : weekdays, - weekdaysShort : weekdays, - weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), - longDateFormat : { - - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'D/M/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /މކ|މފ/, - isPM : function (input) { - return 'މފ' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'މކ'; - } else { - return 'މފ'; - } - }, - calendar : { - sameDay : '[މިއަދު] LT', - nextDay : '[މާދަމާ] LT', - nextWeek : 'dddd LT', - lastDay : '[އިއްޔެ] LT', - lastWeek : '[ފާއިތުވި] dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ތެރޭގައި %s', - past : 'ކުރިން %s', - s : 'ސިކުންތުކޮޅެއް', - ss : 'd% ސިކުންތު', - m : 'މިނިޓެއް', - mm : 'މިނިޓު %d', - h : 'ގަޑިއިރެއް', - hh : 'ގަޑިއިރު %d', - d : 'ދުވަހެއް', - dd : 'ދުވަސް %d', - M : 'މަހެއް', - MM : 'މަސް %d', - y : 'އަހަރެއް', - yy : 'އަހަރު %d' - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week : { - dow : 7, // Sunday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } -}); +/* 69 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -return dv; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["b"] = combineLatest; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CombineLatestOperator; }); +/* unused harmony export CombineLatestSubscriber */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isScheduler__ = __webpack_require__(14); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__fromArray__ = __webpack_require__(20); +/** PURE_IMPORTS_START tslib,_util_isScheduler,_util_isArray,_OuterSubscriber,_util_subscribeToResult,_fromArray PURE_IMPORTS_END */ -}))); -/***/ }), -/* 123 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Greek [el] -//! author : Aggelos Karalias : https://github.com/mehiel -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; -function isFunction(input) { - return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; +var NONE = {}; +function combineLatest() { + var observables = []; + for (var _i = 0; _i < arguments.length; _i++) { + observables[_i] = arguments[_i]; + } + var resultSelector = null; + var scheduler = null; + if (Object(__WEBPACK_IMPORTED_MODULE_1__util_isScheduler__["a" /* isScheduler */])(observables[observables.length - 1])) { + scheduler = observables.pop(); + } + if (typeof observables[observables.length - 1] === 'function') { + resultSelector = observables.pop(); + } + if (observables.length === 1 && Object(__WEBPACK_IMPORTED_MODULE_2__util_isArray__["a" /* isArray */])(observables[0])) { + observables = observables[0]; + } + return Object(__WEBPACK_IMPORTED_MODULE_5__fromArray__["a" /* fromArray */])(observables, scheduler).lift(new CombineLatestOperator(resultSelector)); } +var CombineLatestOperator = /*@__PURE__*/ (function () { + function CombineLatestOperator(resultSelector) { + this.resultSelector = resultSelector; + } + CombineLatestOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector)); + }; + return CombineLatestOperator; +}()); - -var el = moment.defineLocale('el', { - monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'), - monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'), - months : function (momentToFormat, format) { - if (!momentToFormat) { - return this._monthsNominativeEl; - } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM' - return this._monthsGenitiveEl[momentToFormat.month()]; - } else { - return this._monthsNominativeEl[momentToFormat.month()]; +var CombineLatestSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](CombineLatestSubscriber, _super); + function CombineLatestSubscriber(destination, resultSelector) { + var _this = _super.call(this, destination) || this; + _this.resultSelector = resultSelector; + _this.active = 0; + _this.values = []; + _this.observables = []; + return _this; + } + CombineLatestSubscriber.prototype._next = function (observable) { + this.values.push(NONE); + this.observables.push(observable); + }; + CombineLatestSubscriber.prototype._complete = function () { + var observables = this.observables; + var len = observables.length; + if (len === 0) { + this.destination.complete(); } - }, - monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), - weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), - weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), - weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'μμ' : 'ΜΜ'; - } else { - return isLower ? 'πμ' : 'ΠΜ'; + else { + this.active = len; + this.toRespond = len; + for (var i = 0; i < len; i++) { + var observable = observables[i]; + this.add(Object(__WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__["a" /* subscribeToResult */])(this, observable, observable, i)); + } } - }, - isPM : function (input) { - return ((input + '').toLowerCase()[0] === 'μ'); - }, - meridiemParse : /[ΠΜ]\.?Μ?\.?/i, - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendarEl : { - sameDay : '[Σήμερα {}] LT', - nextDay : '[Αύριο {}] LT', - nextWeek : 'dddd [{}] LT', - lastDay : '[Χθες {}] LT', - lastWeek : function () { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; + }; + CombineLatestSubscriber.prototype.notifyComplete = function (unused) { + if ((this.active -= 1) === 0) { + this.destination.complete(); + } + }; + CombineLatestSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { + var values = this.values; + var oldVal = values[outerIndex]; + var toRespond = !this.toRespond + ? 0 + : oldVal === NONE ? --this.toRespond : this.toRespond; + values[outerIndex] = innerValue; + if (toRespond === 0) { + if (this.resultSelector) { + this._tryResultSelector(values); + } + else { + this.destination.next(values.slice()); } - }, - sameElse : 'L' - }, - calendar : function (key, mom) { - var output = this._calendarEl[key], - hours = mom && mom.hours(); - if (isFunction(output)) { - output = output.apply(mom); } - return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις')); - }, - relativeTime : { - future : 'σε %s', - past : '%s πριν', - s : 'λίγα δευτερόλεπτα', - ss : '%d δευτερόλεπτα', - m : 'ένα λεπτό', - mm : '%d λεπτά', - h : 'μία ώρα', - hh : '%d ώρες', - d : 'μία μέρα', - dd : '%d μέρες', - M : 'ένας μήνας', - MM : '%d μήνες', - y : 'ένας χρόνος', - yy : '%d χρόνια' - }, - dayOfMonthOrdinalParse: /\d{1,2}η/, - ordinal: '%dη', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4st is the first week of the year. - } -}); - -return el; + }; + CombineLatestSubscriber.prototype._tryResultSelector = function (values) { + var result; + try { + result = this.resultSelector.apply(this, values); + } + catch (err) { + this.destination.error(err); + return; + } + this.destination.next(result); + }; + return CombineLatestSubscriber; +}(__WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__["a" /* OuterSubscriber */])); -}))); +//# sourceMappingURL=combineLatest.js.map /***/ }), -/* 124 */ -/***/ (function(module, exports, __webpack_require__) { +/* 70 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -//! moment.js locale configuration -//! locale : English (Australia) [en-au] -//! author : Jared Morse : https://github.com/jarcoal - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var enAu = moment.defineLocale('en-au', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - ss : '%d seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = mergeAll; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeMap__ = __webpack_require__(35); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_identity__ = __webpack_require__(25); +/** PURE_IMPORTS_START _mergeMap,_util_identity PURE_IMPORTS_END */ -return enAu; -}))); +function mergeAll(concurrent) { + if (concurrent === void 0) { + concurrent = Number.POSITIVE_INFINITY; + } + return Object(__WEBPACK_IMPORTED_MODULE_0__mergeMap__["a" /* mergeMap */])(__WEBPACK_IMPORTED_MODULE_1__util_identity__["a" /* identity */], concurrent); +} +//# sourceMappingURL=mergeAll.js.map /***/ }), -/* 125 */ -/***/ (function(module, exports, __webpack_require__) { +/* 71 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = defer; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__from__ = __webpack_require__(18); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__empty__ = __webpack_require__(11); +/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */ -//! moment.js locale configuration -//! locale : English (Canada) [en-ca] -//! author : Jonathan Abourbih : https://github.com/jonbca - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var enCa = moment.defineLocale('en-ca', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'YYYY-MM-DD', - LL : 'MMMM D, YYYY', - LLL : 'MMMM D, YYYY h:mm A', - LLLL : 'dddd, MMMM D, YYYY h:mm A' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - ss : '%d seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - } -}); -return enCa; -}))); +function defer(observableFactory) { + return new __WEBPACK_IMPORTED_MODULE_0__Observable__["a" /* Observable */](function (subscriber) { + var input; + try { + input = observableFactory(); + } + catch (err) { + subscriber.error(err); + return undefined; + } + var source = input ? Object(__WEBPACK_IMPORTED_MODULE_1__from__["a" /* from */])(input) : Object(__WEBPACK_IMPORTED_MODULE_2__empty__["b" /* empty */])(); + return source.subscribe(subscriber); + }); +} +//# sourceMappingURL=defer.js.map /***/ }), -/* 126 */ -/***/ (function(module, exports, __webpack_require__) { +/* 72 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -//! moment.js locale configuration -//! locale : English (United Kingdom) [en-gb] -//! author : Chris Gedrim : https://github.com/chrisgedrim - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var enGb = moment.defineLocale('en-gb', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - ss : '%d seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["b"] = zip; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ZipOperator; }); +/* unused harmony export ZipSubscriber */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fromArray__ = __webpack_require__(20); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__ = __webpack_require__(34); +/** PURE_IMPORTS_START tslib,_fromArray,_util_isArray,_Subscriber,_OuterSubscriber,_util_subscribeToResult,_.._internal_symbol_iterator PURE_IMPORTS_END */ -return enGb; -}))); -/***/ }), -/* 127 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : English (Ireland) [en-ie] -//! author : Chris Cartlidge : https://github.com/chriscartlidge - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var enIe = moment.defineLocale('en-ie', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - ss : '%d seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + + +function zip() { + var observables = []; + for (var _i = 0; _i < arguments.length; _i++) { + observables[_i] = arguments[_i]; } -}); + var resultSelector = observables[observables.length - 1]; + if (typeof resultSelector === 'function') { + observables.pop(); + } + return Object(__WEBPACK_IMPORTED_MODULE_1__fromArray__["a" /* fromArray */])(observables, undefined).lift(new ZipOperator(resultSelector)); +} +var ZipOperator = /*@__PURE__*/ (function () { + function ZipOperator(resultSelector) { + this.resultSelector = resultSelector; + } + ZipOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector)); + }; + return ZipOperator; +}()); -return enIe; +var ZipSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ZipSubscriber, _super); + function ZipSubscriber(destination, resultSelector, values) { + if (values === void 0) { + values = Object.create(null); + } + var _this = _super.call(this, destination) || this; + _this.iterators = []; + _this.active = 0; + _this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : null; + _this.values = values; + return _this; + } + ZipSubscriber.prototype._next = function (value) { + var iterators = this.iterators; + if (Object(__WEBPACK_IMPORTED_MODULE_2__util_isArray__["a" /* isArray */])(value)) { + iterators.push(new StaticArrayIterator(value)); + } + else if (typeof value[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]] === 'function') { + iterators.push(new StaticIterator(value[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]]())); + } + else { + iterators.push(new ZipBufferIterator(this.destination, this, value)); + } + }; + ZipSubscriber.prototype._complete = function () { + var iterators = this.iterators; + var len = iterators.length; + if (len === 0) { + this.destination.complete(); + return; + } + this.active = len; + for (var i = 0; i < len; i++) { + var iterator = iterators[i]; + if (iterator.stillUnsubscribed) { + this.add(iterator.subscribe(iterator, i)); + } + else { + this.active--; + } + } + }; + ZipSubscriber.prototype.notifyInactive = function () { + this.active--; + if (this.active === 0) { + this.destination.complete(); + } + }; + ZipSubscriber.prototype.checkIterators = function () { + var iterators = this.iterators; + var len = iterators.length; + var destination = this.destination; + for (var i = 0; i < len; i++) { + var iterator = iterators[i]; + if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) { + return; + } + } + var shouldComplete = false; + var args = []; + for (var i = 0; i < len; i++) { + var iterator = iterators[i]; + var result = iterator.next(); + if (iterator.hasCompleted()) { + shouldComplete = true; + } + if (result.done) { + destination.complete(); + return; + } + args.push(result.value); + } + if (this.resultSelector) { + this._tryresultSelector(args); + } + else { + destination.next(args); + } + if (shouldComplete) { + destination.complete(); + } + }; + ZipSubscriber.prototype._tryresultSelector = function (args) { + var result; + try { + result = this.resultSelector.apply(this, args); + } + catch (err) { + this.destination.error(err); + return; + } + this.destination.next(result); + }; + return ZipSubscriber; +}(__WEBPACK_IMPORTED_MODULE_3__Subscriber__["a" /* Subscriber */])); -}))); +var StaticIterator = /*@__PURE__*/ (function () { + function StaticIterator(iterator) { + this.iterator = iterator; + this.nextResult = iterator.next(); + } + StaticIterator.prototype.hasValue = function () { + return true; + }; + StaticIterator.prototype.next = function () { + var result = this.nextResult; + this.nextResult = this.iterator.next(); + return result; + }; + StaticIterator.prototype.hasCompleted = function () { + var nextResult = this.nextResult; + return nextResult && nextResult.done; + }; + return StaticIterator; +}()); +var StaticArrayIterator = /*@__PURE__*/ (function () { + function StaticArrayIterator(array) { + this.array = array; + this.index = 0; + this.length = 0; + this.length = array.length; + } + StaticArrayIterator.prototype[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]] = function () { + return this; + }; + StaticArrayIterator.prototype.next = function (value) { + var i = this.index++; + var array = this.array; + return i < this.length ? { value: array[i], done: false } : { value: null, done: true }; + }; + StaticArrayIterator.prototype.hasValue = function () { + return this.array.length > this.index; + }; + StaticArrayIterator.prototype.hasCompleted = function () { + return this.array.length === this.index; + }; + return StaticArrayIterator; +}()); +var ZipBufferIterator = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ZipBufferIterator, _super); + function ZipBufferIterator(destination, parent, observable) { + var _this = _super.call(this, destination) || this; + _this.parent = parent; + _this.observable = observable; + _this.stillUnsubscribed = true; + _this.buffer = []; + _this.isComplete = false; + return _this; + } + ZipBufferIterator.prototype[__WEBPACK_IMPORTED_MODULE_6__internal_symbol_iterator__["a" /* iterator */]] = function () { + return this; + }; + ZipBufferIterator.prototype.next = function () { + var buffer = this.buffer; + if (buffer.length === 0 && this.isComplete) { + return { value: null, done: true }; + } + else { + return { value: buffer.shift(), done: false }; + } + }; + ZipBufferIterator.prototype.hasValue = function () { + return this.buffer.length > 0; + }; + ZipBufferIterator.prototype.hasCompleted = function () { + return this.buffer.length === 0 && this.isComplete; + }; + ZipBufferIterator.prototype.notifyComplete = function () { + if (this.buffer.length > 0) { + this.isComplete = true; + this.parent.notifyInactive(); + } + else { + this.destination.complete(); + } + }; + ZipBufferIterator.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { + this.buffer.push(innerValue); + this.parent.checkIterators(); + }; + ZipBufferIterator.prototype.subscribe = function (value, index) { + return Object(__WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__["a" /* subscribeToResult */])(this, this.observable, this, index); + }; + return ZipBufferIterator; +}(__WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__["a" /* OuterSubscriber */])); +//# sourceMappingURL=zip.js.map /***/ }), -/* 128 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (New Zealand) [en-nz] -//! author : Luke McGregor : https://github.com/lukemcgregor - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var enNz = moment.defineLocale('en-nz', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - ss : '%d seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +/* 73 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -return enNz; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = take; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__ = __webpack_require__(32); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_empty__ = __webpack_require__(11); +/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */ -}))); -/***/ }), -/* 129 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Esperanto [eo] -//! author : Colin Dean : https://github.com/colindean -//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia -//! comment : miestasmia corrected the translation by colindean - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var eo = moment.defineLocale('eo', { - months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'), - monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), - weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), - weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), - weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'D[-a de] MMMM, YYYY', - LLL : 'D[-a de] MMMM, YYYY HH:mm', - LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' - }, - meridiemParse: /[ap]\.t\.m/i, - isPM: function (input) { - return input.charAt(0).toLowerCase() === 'p'; - }, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'p.t.m.' : 'P.T.M.'; - } else { - return isLower ? 'a.t.m.' : 'A.T.M.'; +function take(count) { + return function (source) { + if (count === 0) { + return Object(__WEBPACK_IMPORTED_MODULE_3__observable_empty__["b" /* empty */])(); + } + else { + return source.lift(new TakeOperator(count)); + } + }; +} +var TakeOperator = /*@__PURE__*/ (function () { + function TakeOperator(total) { + this.total = total; + if (this.total < 0) { + throw new __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__["a" /* ArgumentOutOfRangeError */]; } - }, - calendar : { - sameDay : '[Hodiaŭ je] LT', - nextDay : '[Morgaŭ je] LT', - nextWeek : 'dddd [je] LT', - lastDay : '[Hieraŭ je] LT', - lastWeek : '[pasinta] dddd [je] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'post %s', - past : 'antaŭ %s', - s : 'sekundoj', - ss : '%d sekundoj', - m : 'minuto', - mm : '%d minutoj', - h : 'horo', - hh : '%d horoj', - d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo - dd : '%d tagoj', - M : 'monato', - MM : '%d monatoj', - y : 'jaro', - yy : '%d jaroj' - }, - dayOfMonthOrdinalParse: /\d{1,2}a/, - ordinal : '%da', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. } -}); + TakeOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new TakeSubscriber(subscriber, this.total)); + }; + return TakeOperator; +}()); +var TakeSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](TakeSubscriber, _super); + function TakeSubscriber(destination, total) { + var _this = _super.call(this, destination) || this; + _this.total = total; + _this.count = 0; + return _this; + } + TakeSubscriber.prototype._next = function (value) { + var total = this.total; + var count = ++this.count; + if (count <= total) { + this.destination.next(value); + if (count === total) { + this.destination.complete(); + this.unsubscribe(); + } + } + }; + return TakeSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); +//# sourceMappingURL=take.js.map -return eo; -}))); +/***/ }), +/* 74 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = takeLast; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__ = __webpack_require__(32); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_empty__ = __webpack_require__(11); +/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */ -/***/ }), -/* 130 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Spanish [es] -//! author : Julio Napurí : https://github.com/julionc -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +function takeLast(count) { + return function takeLastOperatorFunction(source) { + if (count === 0) { + return Object(__WEBPACK_IMPORTED_MODULE_3__observable_empty__["b" /* empty */])(); + } + else { + return source.lift(new TakeLastOperator(count)); + } + }; +} +var TakeLastOperator = /*@__PURE__*/ (function () { + function TakeLastOperator(total) { + this.total = total; + if (this.total < 0) { + throw new __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__["a" /* ArgumentOutOfRangeError */]; + } + } + TakeLastOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new TakeLastSubscriber(subscriber, this.total)); + }; + return TakeLastOperator; +}()); +var TakeLastSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](TakeLastSubscriber, _super); + function TakeLastSubscriber(destination, total) { + var _this = _super.call(this, destination) || this; + _this.total = total; + _this.ring = new Array(); + _this.count = 0; + return _this; + } + TakeLastSubscriber.prototype._next = function (value) { + var ring = this.ring; + var total = this.total; + var count = this.count++; + if (ring.length < total) { + ring.push(value); + } + else { + var index = count % total; + ring[index] = value; + } + }; + TakeLastSubscriber.prototype._complete = function () { + var destination = this.destination; + var count = this.count; + if (count > 0) { + var total = this.count >= this.total ? this.total : this.count; + var ring = this.ring; + for (var i = 0; i < total; i++) { + var idx = (count++) % total; + destination.next(ring[idx]); + } + } + destination.complete(); + }; + return TakeLastSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); +//# sourceMappingURL=takeLast.js.map -var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); -var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); -var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i]; -var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; +/***/ }), +/* 75 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var es = moment.defineLocale('es', { - months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = scan; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ + + +function scan(accumulator, seed) { + var hasSeed = false; + if (arguments.length >= 2) { + hasSeed = true; + } + return function scanOperatorFunction(source) { + return source.lift(new ScanOperator(accumulator, seed, hasSeed)); + }; +} +var ScanOperator = /*@__PURE__*/ (function () { + function ScanOperator(accumulator, seed, hasSeed) { + if (hasSeed === void 0) { + hasSeed = false; } - }, - monthsRegex : monthsRegex, - monthsShortRegex : monthsRegex, - monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse : monthsParse, - longMonthsParse : monthsParse, - shortMonthsParse : monthsParse, - weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY H:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar : { - sameDay : function () { - return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextDay : function () { - return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextWeek : function () { - return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastDay : function () { - return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + this.accumulator = accumulator; + this.seed = seed; + this.hasSeed = hasSeed; + } + ScanOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed)); + }; + return ScanOperator; +}()); +var ScanSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](ScanSubscriber, _super); + function ScanSubscriber(destination, accumulator, _seed, hasSeed) { + var _this = _super.call(this, destination) || this; + _this.accumulator = accumulator; + _this._seed = _seed; + _this.hasSeed = hasSeed; + _this.index = 0; + return _this; + } + Object.defineProperty(ScanSubscriber.prototype, "seed", { + get: function () { + return this._seed; }, - lastWeek : function () { - return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + set: function (value) { + this.hasSeed = true; + this._seed = value; }, - sameElse : 'L' - }, - relativeTime : { - future : 'en %s', - past : 'hace %s', - s : 'unos segundos', - ss : '%d segundos', - m : 'un minuto', - mm : '%d minutos', - h : 'una hora', - hh : '%d horas', - d : 'un día', - dd : '%d días', - M : 'un mes', - MM : '%d meses', - y : 'un año', - yy : '%d años' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return es; - -}))); + enumerable: true, + configurable: true + }); + ScanSubscriber.prototype._next = function (value) { + if (!this.hasSeed) { + this.seed = value; + this.destination.next(value); + } + else { + return this._tryNext(value); + } + }; + ScanSubscriber.prototype._tryNext = function (value) { + var index = this.index++; + var result; + try { + result = this.accumulator(this.seed, value, index); + } + catch (err) { + this.destination.error(err); + } + this.seed = result; + this.destination.next(result); + }; + return ScanSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__Subscriber__["a" /* Subscriber */])); +//# sourceMappingURL=scan.js.map /***/ }), -/* 131 */ -/***/ (function(module, exports, __webpack_require__) { +/* 76 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -//! moment.js locale configuration -//! locale : Spanish (Dominican Republic) [es-do] +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = switchMap; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__observable_from__ = __webpack_require__(18); +/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult,_map,_observable_from PURE_IMPORTS_END */ -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; -var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); -var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); -var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i]; -var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; -var esDo = moment.defineLocale('es-do', { - months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY h:mm A', - LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A' - }, - calendar : { - sameDay : function () { - return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextDay : function () { - return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextWeek : function () { - return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastDay : function () { - return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastWeek : function () { - return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'en %s', - past : 'hace %s', - s : 'unos segundos', - ss : '%d segundos', - m : 'un minuto', - mm : '%d minutos', - h : 'una hora', - hh : '%d horas', - d : 'un día', - dd : '%d días', - M : 'un mes', - MM : '%d meses', - y : 'un año', - yy : '%d años' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. +function switchMap(project, resultSelector) { + if (typeof resultSelector === 'function') { + return function (source) { return source.pipe(switchMap(function (a, i) { return Object(__WEBPACK_IMPORTED_MODULE_4__observable_from__["a" /* from */])(project(a, i)).pipe(Object(__WEBPACK_IMPORTED_MODULE_3__map__["a" /* map */])(function (b, ii) { return resultSelector(a, b, i, ii); })); })); }; } -}); - -return esDo; - -}))); + return function (source) { return source.lift(new SwitchMapOperator(project)); }; +} +var SwitchMapOperator = /*@__PURE__*/ (function () { + function SwitchMapOperator(project) { + this.project = project; + } + SwitchMapOperator.prototype.call = function (subscriber, source) { + return source.subscribe(new SwitchMapSubscriber(subscriber, this.project)); + }; + return SwitchMapOperator; +}()); +var SwitchMapSubscriber = /*@__PURE__*/ (function (_super) { + __WEBPACK_IMPORTED_MODULE_0_tslib__["a" /* __extends */](SwitchMapSubscriber, _super); + function SwitchMapSubscriber(destination, project) { + var _this = _super.call(this, destination) || this; + _this.project = project; + _this.index = 0; + return _this; + } + SwitchMapSubscriber.prototype._next = function (value) { + var result; + var index = this.index++; + try { + result = this.project(value, index); + } + catch (error) { + this.destination.error(error); + return; + } + this._innerSub(result, value, index); + }; + SwitchMapSubscriber.prototype._innerSub = function (result, value, index) { + var innerSubscription = this.innerSubscription; + if (innerSubscription) { + innerSubscription.unsubscribe(); + } + this.add(this.innerSubscription = Object(__WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__["a" /* subscribeToResult */])(this, result, value, index)); + }; + SwitchMapSubscriber.prototype._complete = function () { + var innerSubscription = this.innerSubscription; + if (!innerSubscription || innerSubscription.closed) { + _super.prototype._complete.call(this); + } + }; + SwitchMapSubscriber.prototype._unsubscribe = function () { + this.innerSubscription = null; + }; + SwitchMapSubscriber.prototype.notifyComplete = function (innerSub) { + this.remove(innerSub); + this.innerSubscription = null; + if (this.isStopped) { + _super.prototype._complete.call(this); + } + }; + SwitchMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { + this.destination.next(innerValue); + }; + return SwitchMapSubscriber; +}(__WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__["a" /* OuterSubscriber */])); +//# sourceMappingURL=switchMap.js.map /***/ }), -/* 132 */ +/* 77 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Spanish (United States) [es-us] -//! author : bustta : https://github.com/bustta - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +/* MIT license */ +var cssKeywords = __webpack_require__(139); +// NOTE: conversions should only return primitive values (i.e. arrays, or +// values that give correct `typeof` results). +// do not use box values types (i.e. Number(), String(), etc.) -var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); -var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); +var reverseKeywords = {}; +for (var key in cssKeywords) { + if (cssKeywords.hasOwnProperty(key)) { + reverseKeywords[cssKeywords[key]] = key; + } +} -var esUs = moment.defineLocale('es-us', { - months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsParseExact : true, - weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'MM/DD/YYYY', - LL : 'MMMM [de] D [de] YYYY', - LLL : 'MMMM [de] D [de] YYYY h:mm A', - LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A' - }, - calendar : { - sameDay : function () { - return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextDay : function () { - return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextWeek : function () { - return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastDay : function () { - return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastWeek : function () { - return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'en %s', - past : 'hace %s', - s : 'unos segundos', - ss : '%d segundos', - m : 'un minuto', - mm : '%d minutos', - h : 'una hora', - hh : '%d horas', - d : 'un día', - dd : '%d días', - M : 'un mes', - MM : '%d meses', - y : 'un año', - yy : '%d años' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } -}); +var convert = module.exports = { + rgb: {channels: 3, labels: 'rgb'}, + hsl: {channels: 3, labels: 'hsl'}, + hsv: {channels: 3, labels: 'hsv'}, + hwb: {channels: 3, labels: 'hwb'}, + cmyk: {channels: 4, labels: 'cmyk'}, + xyz: {channels: 3, labels: 'xyz'}, + lab: {channels: 3, labels: 'lab'}, + lch: {channels: 3, labels: 'lch'}, + hex: {channels: 1, labels: ['hex']}, + keyword: {channels: 1, labels: ['keyword']}, + ansi16: {channels: 1, labels: ['ansi16']}, + ansi256: {channels: 1, labels: ['ansi256']}, + hcg: {channels: 3, labels: ['h', 'c', 'g']}, + apple: {channels: 3, labels: ['r16', 'g16', 'b16']}, + gray: {channels: 1, labels: ['gray']} +}; -return esUs; +// hide .channels and .labels properties +for (var model in convert) { + if (convert.hasOwnProperty(model)) { + if (!('channels' in convert[model])) { + throw new Error('missing channels property: ' + model); + } -}))); + if (!('labels' in convert[model])) { + throw new Error('missing channel labels property: ' + model); + } + if (convert[model].labels.length !== convert[model].channels) { + throw new Error('channel and label counts mismatch: ' + model); + } -/***/ }), -/* 133 */ -/***/ (function(module, exports, __webpack_require__) { + var channels = convert[model].channels; + var labels = convert[model].labels; + delete convert[model].channels; + delete convert[model].labels; + Object.defineProperty(convert[model], 'channels', {value: channels}); + Object.defineProperty(convert[model], 'labels', {value: labels}); + } +} -//! moment.js locale configuration -//! locale : Estonian [et] -//! author : Henry Kehlmann : https://github.com/madhenry -//! improvements : Illimar Tambek : https://github.com/ragulka - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], - 'ss': [number + 'sekundi', number + 'sekundit'], - 'm' : ['ühe minuti', 'üks minut'], - 'mm': [number + ' minuti', number + ' minutit'], - 'h' : ['ühe tunni', 'tund aega', 'üks tund'], - 'hh': [number + ' tunni', number + ' tundi'], - 'd' : ['ühe päeva', 'üks päev'], - 'M' : ['kuu aja', 'kuu aega', 'üks kuu'], - 'MM': [number + ' kuu', number + ' kuud'], - 'y' : ['ühe aasta', 'aasta', 'üks aasta'], - 'yy': [number + ' aasta', number + ' aastat'] - }; - if (withoutSuffix) { - return format[key][2] ? format[key][2] : format[key][1]; - } - return isFuture ? format[key][0] : format[key][1]; -} - -var et = moment.defineLocale('et', { - months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'), - monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), - weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'), - weekdaysShort : 'P_E_T_K_N_R_L'.split('_'), - weekdaysMin : 'P_E_T_K_N_R_L'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[Täna,] LT', - nextDay : '[Homme,] LT', - nextWeek : '[Järgmine] dddd LT', - lastDay : '[Eile,] LT', - lastWeek : '[Eelmine] dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s pärast', - past : '%s tagasi', - s : processRelativeTime, - ss : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : '%d päeva', - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +convert.rgb.hsl = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var min = Math.min(r, g, b); + var max = Math.max(r, g, b); + var delta = max - min; + var h; + var s; + var l; -return et; + if (max === min) { + h = 0; + } else if (r === max) { + h = (g - b) / delta; + } else if (g === max) { + h = 2 + (b - r) / delta; + } else if (b === max) { + h = 4 + (r - g) / delta; + } -}))); + h = Math.min(h * 60, 360); + if (h < 0) { + h += 360; + } -/***/ }), -/* 134 */ -/***/ (function(module, exports, __webpack_require__) { + l = (min + max) / 2; -//! moment.js locale configuration -//! locale : Basque [eu] -//! author : Eneko Illarramendi : https://github.com/eillarra - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var eu = moment.defineLocale('eu', { - months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'), - monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), - monthsParseExact : true, - weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), - weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'), - weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'YYYY[ko] MMMM[ren] D[a]', - LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm', - LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - l : 'YYYY-M-D', - ll : 'YYYY[ko] MMM D[a]', - lll : 'YYYY[ko] MMM D[a] HH:mm', - llll : 'ddd, YYYY[ko] MMM D[a] HH:mm' - }, - calendar : { - sameDay : '[gaur] LT[etan]', - nextDay : '[bihar] LT[etan]', - nextWeek : 'dddd LT[etan]', - lastDay : '[atzo] LT[etan]', - lastWeek : '[aurreko] dddd LT[etan]', - sameElse : 'L' - }, - relativeTime : { - future : '%s barru', - past : 'duela %s', - s : 'segundo batzuk', - ss : '%d segundo', - m : 'minutu bat', - mm : '%d minutu', - h : 'ordu bat', - hh : '%d ordu', - d : 'egun bat', - dd : '%d egun', - M : 'hilabete bat', - MM : '%d hilabete', - y : 'urte bat', - yy : '%d urte' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); + if (max === min) { + s = 0; + } else if (l <= 0.5) { + s = delta / (max + min); + } else { + s = delta / (2 - max - min); + } -return eu; + return [h, s * 100, l * 100]; +}; -}))); +convert.rgb.hsv = function (rgb) { + var r = rgb[0]; + var g = rgb[1]; + var b = rgb[2]; + var min = Math.min(r, g, b); + var max = Math.max(r, g, b); + var delta = max - min; + var h; + var s; + var v; + if (max === 0) { + s = 0; + } else { + s = (delta / max * 1000) / 10; + } -/***/ }), -/* 135 */ -/***/ (function(module, exports, __webpack_require__) { + if (max === min) { + h = 0; + } else if (r === max) { + h = (g - b) / delta; + } else if (g === max) { + h = 2 + (b - r) / delta; + } else if (b === max) { + h = 4 + (r - g) / delta; + } -//! moment.js locale configuration -//! locale : Persian [fa] -//! author : Ebrahim Byagowi : https://github.com/ebraminio - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '۱', - '2': '۲', - '3': '۳', - '4': '۴', - '5': '۵', - '6': '۶', - '7': '۷', - '8': '۸', - '9': '۹', - '0': '۰' -}; -var numberMap = { - '۱': '1', - '۲': '2', - '۳': '3', - '۴': '4', - '۵': '5', - '۶': '6', - '۷': '7', - '۸': '8', - '۹': '9', - '۰': '0' -}; + h = Math.min(h * 60, 360); -var fa = moment.defineLocale('fa', { - months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), - monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), - weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), - weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), - weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - meridiemParse: /قبل از ظهر|بعد از ظهر/, - isPM: function (input) { - return /بعد از ظهر/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'قبل از ظهر'; - } else { - return 'بعد از ظهر'; - } - }, - calendar : { - sameDay : '[امروز ساعت] LT', - nextDay : '[فردا ساعت] LT', - nextWeek : 'dddd [ساعت] LT', - lastDay : '[دیروز ساعت] LT', - lastWeek : 'dddd [پیش] [ساعت] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'در %s', - past : '%s پیش', - s : 'چند ثانیه', - ss : 'ثانیه d%', - m : 'یک دقیقه', - mm : '%d دقیقه', - h : 'یک ساعت', - hh : '%d ساعت', - d : 'یک روز', - dd : '%d روز', - M : 'یک ماه', - MM : '%d ماه', - y : 'یک سال', - yy : '%d سال' - }, - preparse: function (string) { - return string.replace(/[۰-۹]/g, function (match) { - return numberMap[match]; - }).replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); - }, - dayOfMonthOrdinalParse: /\d{1,2}م/, - ordinal : '%dم', - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } -}); + if (h < 0) { + h += 360; + } -return fa; + v = ((max / 255) * 1000) / 10; -}))); + return [h, s, v]; +}; +convert.rgb.hwb = function (rgb) { + var r = rgb[0]; + var g = rgb[1]; + var b = rgb[2]; + var h = convert.rgb.hsl(rgb)[0]; + var w = 1 / 255 * Math.min(r, Math.min(g, b)); -/***/ }), -/* 136 */ -/***/ (function(module, exports, __webpack_require__) { + b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); -//! moment.js locale configuration -//! locale : Finnish [fi] -//! author : Tarmo Aidantausta : https://github.com/bleadof - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '); -var numbersFuture = [ - 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', - numbersPast[7], numbersPast[8], numbersPast[9] - ]; -function translate(number, withoutSuffix, key, isFuture) { - var result = ''; - switch (key) { - case 's': - return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; - case 'ss': - return isFuture ? 'sekunnin' : 'sekuntia'; - case 'm': - return isFuture ? 'minuutin' : 'minuutti'; - case 'mm': - result = isFuture ? 'minuutin' : 'minuuttia'; - break; - case 'h': - return isFuture ? 'tunnin' : 'tunti'; - case 'hh': - result = isFuture ? 'tunnin' : 'tuntia'; - break; - case 'd': - return isFuture ? 'päivän' : 'päivä'; - case 'dd': - result = isFuture ? 'päivän' : 'päivää'; - break; - case 'M': - return isFuture ? 'kuukauden' : 'kuukausi'; - case 'MM': - result = isFuture ? 'kuukauden' : 'kuukautta'; - break; - case 'y': - return isFuture ? 'vuoden' : 'vuosi'; - case 'yy': - result = isFuture ? 'vuoden' : 'vuotta'; - break; - } - result = verbalNumber(number, isFuture) + ' ' + result; - return result; -} -function verbalNumber(number, isFuture) { - return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number; -} - -var fi = moment.defineLocale('fi', { - months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'), - monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'), - weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'), - weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'), - weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD.MM.YYYY', - LL : 'Do MMMM[ta] YYYY', - LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm', - LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', - l : 'D.M.YYYY', - ll : 'Do MMM YYYY', - lll : 'Do MMM YYYY, [klo] HH.mm', - llll : 'ddd, Do MMM YYYY, [klo] HH.mm' - }, - calendar : { - sameDay : '[tänään] [klo] LT', - nextDay : '[huomenna] [klo] LT', - nextWeek : 'dddd [klo] LT', - lastDay : '[eilen] [klo] LT', - lastWeek : '[viime] dddd[na] [klo] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s päästä', - past : '%s sitten', - s : translate, - ss : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + return [h, w * 100, b * 100]; +}; -return fi; +convert.rgb.cmyk = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var c; + var m; + var y; + var k; -}))); + k = Math.min(1 - r, 1 - g, 1 - b); + c = (1 - r - k) / (1 - k) || 0; + m = (1 - g - k) / (1 - k) || 0; + y = (1 - b - k) / (1 - k) || 0; + return [c * 100, m * 100, y * 100, k * 100]; +}; -/***/ }), -/* 137 */ -/***/ (function(module, exports, __webpack_require__) { +/** + * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance + * */ +function comparativeDistance(x, y) { + return ( + Math.pow(x[0] - y[0], 2) + + Math.pow(x[1] - y[1], 2) + + Math.pow(x[2] - y[2], 2) + ); +} -//! moment.js locale configuration -//! locale : Faroese [fo] -//! author : Ragnar Johannesen : https://github.com/ragnar123 - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var fo = moment.defineLocale('fo', { - months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'), - monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'), - weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'), - weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D. MMMM, YYYY HH:mm' - }, - calendar : { - sameDay : '[Í dag kl.] LT', - nextDay : '[Í morgin kl.] LT', - nextWeek : 'dddd [kl.] LT', - lastDay : '[Í gjár kl.] LT', - lastWeek : '[síðstu] dddd [kl] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'um %s', - past : '%s síðani', - s : 'fá sekund', - ss : '%d sekundir', - m : 'ein minutt', - mm : '%d minuttir', - h : 'ein tími', - hh : '%d tímar', - d : 'ein dagur', - dd : '%d dagar', - M : 'ein mánaði', - MM : '%d mánaðir', - y : 'eitt ár', - yy : '%d ár' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +convert.rgb.keyword = function (rgb) { + var reversed = reverseKeywords[rgb]; + if (reversed) { + return reversed; + } -return fo; + var currentClosestDistance = Infinity; + var currentClosestKeyword; -}))); + for (var keyword in cssKeywords) { + if (cssKeywords.hasOwnProperty(keyword)) { + var value = cssKeywords[keyword]; + // Compute comparative distance + var distance = comparativeDistance(rgb, value); -/***/ }), -/* 138 */ -/***/ (function(module, exports, __webpack_require__) { + // Check if its less, if so set as closest + if (distance < currentClosestDistance) { + currentClosestDistance = distance; + currentClosestKeyword = keyword; + } + } + } -//! moment.js locale configuration -//! locale : French [fr] -//! author : John Fischer : https://github.com/jfroffice - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var fr = moment.defineLocale('fr', { - months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), - monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact : true, - weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Aujourd’hui à] LT', - nextDay : '[Demain à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[Hier à] LT', - lastWeek : 'dddd [dernier à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dans %s', - past : 'il y a %s', - s : 'quelques secondes', - ss : '%d secondes', - m : 'une minute', - mm : '%d minutes', - h : 'une heure', - hh : '%d heures', - d : 'un jour', - dd : '%d jours', - M : 'un mois', - MM : '%d mois', - y : 'un an', - yy : '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|)/, - ordinal : function (number, period) { - switch (period) { - // TODO: Return 'e' when day of month > 1. Move this case inside - // block for masculine words below. - // See https://github.com/moment/moment/issues/3375 - case 'D': - return number + (number === 1 ? 'er' : ''); - - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + return currentClosestKeyword; +}; - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +convert.keyword.rgb = function (keyword) { + return cssKeywords[keyword]; +}; -return fr; +convert.rgb.xyz = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; -}))); + // assume sRGB + r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92); + g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92); + b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92); + var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805); + var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722); + var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505); -/***/ }), -/* 139 */ -/***/ (function(module, exports, __webpack_require__) { + return [x * 100, y * 100, z * 100]; +}; -//! moment.js locale configuration -//! locale : French (Canada) [fr-ca] -//! author : Jonathan Abourbih : https://github.com/jonbca - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var frCa = moment.defineLocale('fr-ca', { - months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), - monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact : true, - weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Aujourd’hui à] LT', - nextDay : '[Demain à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[Hier à] LT', - lastWeek : 'dddd [dernier à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dans %s', - past : 'il y a %s', - s : 'quelques secondes', - ss : '%d secondes', - m : 'une minute', - mm : '%d minutes', - h : 'une heure', - hh : '%d heures', - d : 'un jour', - dd : '%d jours', - M : 'un mois', - MM : '%d mois', - y : 'un an', - yy : '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal : function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); +convert.rgb.lab = function (rgb) { + var xyz = convert.rgb.xyz(rgb); + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + var l; + var a; + var b; - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - } -}); + x /= 95.047; + y /= 100; + z /= 108.883; -return frCa; + x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); + y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); + z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); -}))); + l = (116 * y) - 16; + a = 500 * (x - y); + b = 200 * (y - z); + return [l, a, b]; +}; -/***/ }), -/* 140 */ -/***/ (function(module, exports, __webpack_require__) { +convert.hsl.rgb = function (hsl) { + var h = hsl[0] / 360; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var t1; + var t2; + var t3; + var rgb; + var val; -//! moment.js locale configuration -//! locale : French (Switzerland) [fr-ch] -//! author : Gaspard Bucher : https://github.com/gaspard - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var frCh = moment.defineLocale('fr-ch', { - months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), - monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact : true, - weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Aujourd’hui à] LT', - nextDay : '[Demain à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[Hier à] LT', - lastWeek : 'dddd [dernier à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dans %s', - past : 'il y a %s', - s : 'quelques secondes', - ss : '%d secondes', - m : 'une minute', - mm : '%d minutes', - h : 'une heure', - hh : '%d heures', - d : 'un jour', - dd : '%d jours', - M : 'un mois', - MM : '%d mois', - y : 'un an', - yy : '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal : function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); - - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + if (s === 0) { + val = l * 255; + return [val, val, val]; + } -return frCh; + if (l < 0.5) { + t2 = l * (1 + s); + } else { + t2 = l + s - l * s; + } -}))); + t1 = 2 * l - t2; + rgb = [0, 0, 0]; + for (var i = 0; i < 3; i++) { + t3 = h + 1 / 3 * -(i - 1); + if (t3 < 0) { + t3++; + } + if (t3 > 1) { + t3--; + } -/***/ }), -/* 141 */ -/***/ (function(module, exports, __webpack_require__) { + if (6 * t3 < 1) { + val = t1 + (t2 - t1) * 6 * t3; + } else if (2 * t3 < 1) { + val = t2; + } else if (3 * t3 < 2) { + val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; + } else { + val = t1; + } -//! moment.js locale configuration -//! locale : Frisian [fy] -//! author : Robin van der Vliet : https://github.com/robin0van0der0v + rgb[i] = val * 255; + } -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; + return rgb; +}; +convert.hsl.hsv = function (hsl) { + var h = hsl[0]; + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var smin = s; + var lmin = Math.max(l, 0.01); + var sv; + var v; -var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'); -var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); + l *= 2; + s *= (l <= 1) ? l : 2 - l; + smin *= lmin <= 1 ? lmin : 2 - lmin; + v = (l + s) / 2; + sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s); -var fy = moment.defineLocale('fy', { - months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - monthsParseExact : true, - weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), - weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'), - weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[hjoed om] LT', - nextDay: '[moarn om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[juster om] LT', - lastWeek: '[ôfrûne] dddd [om] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'oer %s', - past : '%s lyn', - s : 'in pear sekonden', - ss : '%d sekonden', - m : 'ien minút', - mm : '%d minuten', - h : 'ien oere', - hh : '%d oeren', - d : 'ien dei', - dd : '%d dagen', - M : 'ien moanne', - MM : '%d moannen', - y : 'ien jier', - yy : '%d jierren' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + return [h, sv * 100, v * 100]; +}; -return fy; +convert.hsv.rgb = function (hsv) { + var h = hsv[0] / 60; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var hi = Math.floor(h) % 6; -}))); + var f = h - Math.floor(h); + var p = 255 * v * (1 - s); + var q = 255 * v * (1 - (s * f)); + var t = 255 * v * (1 - (s * (1 - f))); + v *= 255; + switch (hi) { + case 0: + return [v, t, p]; + case 1: + return [q, v, p]; + case 2: + return [p, v, t]; + case 3: + return [p, q, v]; + case 4: + return [t, p, v]; + case 5: + return [v, p, q]; + } +}; -/***/ }), -/* 142 */ -/***/ (function(module, exports, __webpack_require__) { +convert.hsv.hsl = function (hsv) { + var h = hsv[0]; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var vmin = Math.max(v, 0.01); + var lmin; + var sl; + var l; -//! moment.js locale configuration -//! locale : Scottish Gaelic [gd] -//! author : Jon Ashdown : https://github.com/jonashdown + l = (2 - s) * v; + lmin = (2 - s) * vmin; + sl = s * vmin; + sl /= (lmin <= 1) ? lmin : 2 - lmin; + sl = sl || 0; + l /= 2; -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; + return [h, sl * 100, l * 100]; +}; +// http://dev.w3.org/csswg/css-color/#hwb-to-rgb +convert.hwb.rgb = function (hwb) { + var h = hwb[0] / 360; + var wh = hwb[1] / 100; + var bl = hwb[2] / 100; + var ratio = wh + bl; + var i; + var v; + var f; + var n; -var months = [ - 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd' -]; + // wh + bl cant be > 1 + if (ratio > 1) { + wh /= ratio; + bl /= ratio; + } -var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh']; + i = Math.floor(6 * h); + v = 1 - bl; + f = 6 * h - i; -var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne']; + if ((i & 0x01) !== 0) { + f = 1 - f; + } -var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis']; + n = wh + f * (v - wh); // linear interpolation -var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; + var r; + var g; + var b; + switch (i) { + default: + case 6: + case 0: r = v; g = n; b = wh; break; + case 1: r = n; g = v; b = wh; break; + case 2: r = wh; g = v; b = n; break; + case 3: r = wh; g = n; b = v; break; + case 4: r = n; g = wh; b = v; break; + case 5: r = v; g = wh; b = n; break; + } -var gd = moment.defineLocale('gd', { - months : months, - monthsShort : monthsShort, - monthsParseExact : true, - weekdays : weekdays, - weekdaysShort : weekdaysShort, - weekdaysMin : weekdaysMin, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[An-diugh aig] LT', - nextDay : '[A-màireach aig] LT', - nextWeek : 'dddd [aig] LT', - lastDay : '[An-dè aig] LT', - lastWeek : 'dddd [seo chaidh] [aig] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ann an %s', - past : 'bho chionn %s', - s : 'beagan diogan', - ss : '%d diogan', - m : 'mionaid', - mm : '%d mionaidean', - h : 'uair', - hh : '%d uairean', - d : 'latha', - dd : '%d latha', - M : 'mìos', - MM : '%d mìosan', - y : 'bliadhna', - yy : '%d bliadhna' - }, - dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/, - ordinal : function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + return [r * 255, g * 255, b * 255]; +}; -return gd; +convert.cmyk.rgb = function (cmyk) { + var c = cmyk[0] / 100; + var m = cmyk[1] / 100; + var y = cmyk[2] / 100; + var k = cmyk[3] / 100; + var r; + var g; + var b; -}))); + r = 1 - Math.min(1, c * (1 - k) + k); + g = 1 - Math.min(1, m * (1 - k) + k); + b = 1 - Math.min(1, y * (1 - k) + k); + return [r * 255, g * 255, b * 255]; +}; -/***/ }), -/* 143 */ -/***/ (function(module, exports, __webpack_require__) { +convert.xyz.rgb = function (xyz) { + var x = xyz[0] / 100; + var y = xyz[1] / 100; + var z = xyz[2] / 100; + var r; + var g; + var b; -//! moment.js locale configuration -//! locale : Galician [gl] -//! author : Juan G. Hurtado : https://github.com/juanghurtado - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var gl = moment.defineLocale('gl', { - months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'), - monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), - weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), - weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY H:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar : { - sameDay : function () { - return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; - }, - nextDay : function () { - return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; - }, - nextWeek : function () { - return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; - }, - lastDay : function () { - return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; - }, - lastWeek : function () { - return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : function (str) { - if (str.indexOf('un') === 0) { - return 'n' + str; - } - return 'en ' + str; - }, - past : 'hai %s', - s : 'uns segundos', - ss : '%d segundos', - m : 'un minuto', - mm : '%d minutos', - h : 'unha hora', - hh : '%d horas', - d : 'un día', - dd : '%d días', - M : 'un mes', - MM : '%d meses', - y : 'un ano', - yy : '%d anos' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986); + g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415); + b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570); -return gl; + // assume sRGB + r = r > 0.0031308 + ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055) + : r * 12.92; -}))); + g = g > 0.0031308 + ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055) + : g * 12.92; + b = b > 0.0031308 + ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055) + : b * 12.92; -/***/ }), -/* 144 */ -/***/ (function(module, exports, __webpack_require__) { + r = Math.min(Math.max(0, r), 1); + g = Math.min(Math.max(0, g), 1); + b = Math.min(Math.max(0, b), 1); -//! moment.js locale configuration -//! locale : Konkani Latin script [gom-latn] -//! author : The Discoverer : https://github.com/WikiDiscoverer - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 's': ['thodde secondanim', 'thodde second'], - 'ss': [number + ' secondanim', number + ' second'], - 'm': ['eka mintan', 'ek minute'], - 'mm': [number + ' mintanim', number + ' mintam'], - 'h': ['eka horan', 'ek hor'], - 'hh': [number + ' horanim', number + ' hor'], - 'd': ['eka disan', 'ek dis'], - 'dd': [number + ' disanim', number + ' dis'], - 'M': ['eka mhoinean', 'ek mhoino'], - 'MM': [number + ' mhoineanim', number + ' mhoine'], - 'y': ['eka vorsan', 'ek voros'], - 'yy': [number + ' vorsanim', number + ' vorsam'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; -} - -var gomLatn = moment.defineLocale('gom-latn', { - months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'), - monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'), - weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), - weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'A h:mm [vazta]', - LTS : 'A h:mm:ss [vazta]', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY A h:mm [vazta]', - LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', - llll: 'ddd, D MMM YYYY, A h:mm [vazta]' - }, - calendar : { - sameDay: '[Aiz] LT', - nextDay: '[Faleam] LT', - nextWeek: '[Ieta to] dddd[,] LT', - lastDay: '[Kal] LT', - lastWeek: '[Fatlo] dddd[,] LT', - sameElse: 'L' - }, - relativeTime : { - future : '%s', - past : '%s adim', - s : processRelativeTime, - ss : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse : /\d{1,2}(er)/, - ordinal : function (number, period) { - switch (period) { - // the ordinal 'er' only applies to day of the month - case 'D': - return number + 'er'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /rati|sokalli|donparam|sanje/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'rati') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'sokalli') { - return hour; - } else if (meridiem === 'donparam') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'sanje') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'rati'; - } else if (hour < 12) { - return 'sokalli'; - } else if (hour < 16) { - return 'donparam'; - } else if (hour < 20) { - return 'sanje'; - } else { - return 'rati'; - } - } -}); + return [r * 255, g * 255, b * 255]; +}; -return gomLatn; +convert.xyz.lab = function (xyz) { + var x = xyz[0]; + var y = xyz[1]; + var z = xyz[2]; + var l; + var a; + var b; -}))); + x /= 95.047; + y /= 100; + z /= 108.883; + x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); + y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); + z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); -/***/ }), -/* 145 */ -/***/ (function(module, exports, __webpack_require__) { + l = (116 * y) - 16; + a = 500 * (x - y); + b = 200 * (y - z); -//! moment.js locale configuration -//! locale : Gujarati [gu] -//! author : Kaushik Thanki : https://github.com/Kaushik1987 - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '૧', - '2': '૨', - '3': '૩', - '4': '૪', - '5': '૫', - '6': '૬', - '7': '૭', - '8': '૮', - '9': '૯', - '0': '૦' - }; -var numberMap = { - '૧': '1', - '૨': '2', - '૩': '3', - '૪': '4', - '૫': '5', - '૬': '6', - '૭': '7', - '૮': '8', - '૯': '9', - '૦': '0' - }; - -var gu = moment.defineLocale('gu', { - months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'), - monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'), - monthsParseExact: true, - weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'), - weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), - weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), - longDateFormat: { - LT: 'A h:mm વાગ્યે', - LTS: 'A h:mm:ss વાગ્યે', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm વાગ્યે', - LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે' - }, - calendar: { - sameDay: '[આજ] LT', - nextDay: '[કાલે] LT', - nextWeek: 'dddd, LT', - lastDay: '[ગઇકાલે] LT', - lastWeek: '[પાછલા] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s મા', - past: '%s પેહલા', - s: 'અમુક પળો', - ss: '%d સેકંડ', - m: 'એક મિનિટ', - mm: '%d મિનિટ', - h: 'એક કલાક', - hh: '%d કલાક', - d: 'એક દિવસ', - dd: '%d દિવસ', - M: 'એક મહિનો', - MM: '%d મહિનો', - y: 'એક વર્ષ', - yy: '%d વર્ષ' - }, - preparse: function (string) { - return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Gujarati notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. - meridiemParse: /રાત|બપોર|સવાર|સાંજ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'રાત') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'સવાર') { - return hour; - } else if (meridiem === 'બપોર') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'સાંજ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'રાત'; - } else if (hour < 10) { - return 'સવાર'; - } else if (hour < 17) { - return 'બપોર'; - } else if (hour < 20) { - return 'સાંજ'; - } else { - return 'રાત'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6 // The week that contains Jan 1st is the first week of the year. - } -}); + return [l, a, b]; +}; -return gu; +convert.lab.xyz = function (lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var x; + var y; + var z; -}))); + y = (l + 16) / 116; + x = a / 500 + y; + z = y - b / 200; + var y2 = Math.pow(y, 3); + var x2 = Math.pow(x, 3); + var z2 = Math.pow(z, 3); + y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787; + x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787; + z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787; -/***/ }), -/* 146 */ -/***/ (function(module, exports, __webpack_require__) { + x *= 95.047; + y *= 100; + z *= 108.883; -//! moment.js locale configuration -//! locale : Hebrew [he] -//! author : Tomer Cohen : https://github.com/tomer -//! author : Moshe Simantov : https://github.com/DevelopmentIL -//! author : Tal Ater : https://github.com/TalAter - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var he = moment.defineLocale('he', { - months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'), - monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'), - weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), - weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), - weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [ב]MMMM YYYY', - LLL : 'D [ב]MMMM YYYY HH:mm', - LLLL : 'dddd, D [ב]MMMM YYYY HH:mm', - l : 'D/M/YYYY', - ll : 'D MMM YYYY', - lll : 'D MMM YYYY HH:mm', - llll : 'ddd, D MMM YYYY HH:mm' - }, - calendar : { - sameDay : '[היום ב־]LT', - nextDay : '[מחר ב־]LT', - nextWeek : 'dddd [בשעה] LT', - lastDay : '[אתמול ב־]LT', - lastWeek : '[ביום] dddd [האחרון בשעה] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'בעוד %s', - past : 'לפני %s', - s : 'מספר שניות', - ss : '%d שניות', - m : 'דקה', - mm : '%d דקות', - h : 'שעה', - hh : function (number) { - if (number === 2) { - return 'שעתיים'; - } - return number + ' שעות'; - }, - d : 'יום', - dd : function (number) { - if (number === 2) { - return 'יומיים'; - } - return number + ' ימים'; - }, - M : 'חודש', - MM : function (number) { - if (number === 2) { - return 'חודשיים'; - } - return number + ' חודשים'; - }, - y : 'שנה', - yy : function (number) { - if (number === 2) { - return 'שנתיים'; - } else if (number % 10 === 0 && number !== 10) { - return number + ' שנה'; - } - return number + ' שנים'; - } - }, - meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, - isPM : function (input) { - return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 5) { - return 'לפנות בוקר'; - } else if (hour < 10) { - return 'בבוקר'; - } else if (hour < 12) { - return isLower ? 'לפנה"צ' : 'לפני הצהריים'; - } else if (hour < 18) { - return isLower ? 'אחה"צ' : 'אחרי הצהריים'; - } else { - return 'בערב'; - } - } -}); + return [x, y, z]; +}; -return he; +convert.lab.lch = function (lab) { + var l = lab[0]; + var a = lab[1]; + var b = lab[2]; + var hr; + var h; + var c; -}))); + hr = Math.atan2(b, a); + h = hr * 360 / 2 / Math.PI; + if (h < 0) { + h += 360; + } -/***/ }), -/* 147 */ -/***/ (function(module, exports, __webpack_require__) { + c = Math.sqrt(a * a + b * b); -//! moment.js locale configuration -//! locale : Hindi [hi] -//! author : Mayank Singhal : https://github.com/mayanksinghal - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०' + return [l, c, h]; }; -var numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' + +convert.lch.lab = function (lch) { + var l = lch[0]; + var c = lch[1]; + var h = lch[2]; + var a; + var b; + var hr; + + hr = h / 360 * 2 * Math.PI; + a = c * Math.cos(hr); + b = c * Math.sin(hr); + + return [l, a, b]; }; -var hi = moment.defineLocale('hi', { - months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'), - monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'), - monthsParseExact: true, - weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat : { - LT : 'A h:mm बजे', - LTS : 'A h:mm:ss बजे', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm बजे', - LLLL : 'dddd, D MMMM YYYY, A h:mm बजे' - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[कल] LT', - nextWeek : 'dddd, LT', - lastDay : '[कल] LT', - lastWeek : '[पिछले] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s में', - past : '%s पहले', - s : 'कुछ ही क्षण', - ss : '%d सेकंड', - m : 'एक मिनट', - mm : '%d मिनट', - h : 'एक घंटा', - hh : '%d घंटे', - d : 'एक दिन', - dd : '%d दिन', - M : 'एक महीने', - MM : '%d महीने', - y : 'एक वर्ष', - yy : '%d वर्ष' - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Hindi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. - meridiemParse: /रात|सुबह|दोपहर|शाम/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'रात') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सुबह') { - return hour; - } else if (meridiem === 'दोपहर') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'शाम') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'रात'; - } else if (hour < 10) { - return 'सुबह'; - } else if (hour < 17) { - return 'दोपहर'; - } else if (hour < 20) { - return 'शाम'; - } else { - return 'रात'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } -}); +convert.rgb.ansi16 = function (args) { + var r = args[0]; + var g = args[1]; + var b = args[2]; + var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization -return hi; + value = Math.round(value / 50); -}))); + if (value === 0) { + return 30; + } + var ansi = 30 + + ((Math.round(b / 255) << 2) + | (Math.round(g / 255) << 1) + | Math.round(r / 255)); -/***/ }), -/* 148 */ -/***/ (function(module, exports, __webpack_require__) { + if (value === 2) { + ansi += 60; + } -//! moment.js locale configuration -//! locale : Croatian [hr] -//! author : Bojan Marković : https://github.com/bmarkovic - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } -} + return ansi; +}; -var hr = moment.defineLocale('hr', { - months : { - format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'), - standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_') - }, - monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'), - monthsParseExact: true, - weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[danas u] LT', - nextDay : '[sutra u] LT', - nextWeek : function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[jučer u] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'prije %s', - s : 'par sekundi', - ss : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : 'dan', - dd : translate, - M : 'mjesec', - MM : translate, - y : 'godinu', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); +convert.hsv.ansi16 = function (args) { + // optimization here; we already know the value and don't need to get + // it converted for us. + return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); +}; -return hr; +convert.rgb.ansi256 = function (args) { + var r = args[0]; + var g = args[1]; + var b = args[2]; -}))); + // we use the extended greyscale palette here, with the exception of + // black and white. normal palette only has 4 greyscale shades. + if (r === g && g === b) { + if (r < 8) { + return 16; + } + if (r > 248) { + return 231; + } -/***/ }), -/* 149 */ -/***/ (function(module, exports, __webpack_require__) { + return Math.round(((r - 8) / 247) * 24) + 232; + } -//! moment.js locale configuration -//! locale : Hungarian [hu] -//! author : Adam Brunner : https://github.com/adambrunner - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); -function translate(number, withoutSuffix, key, isFuture) { - var num = number; - switch (key) { - case 's': - return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; - case 'ss': - return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce'; - case 'm': - return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'mm': - return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'h': - return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'hh': - return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'd': - return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'dd': - return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'M': - return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'MM': - return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'y': - return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); - case 'yy': - return num + (isFuture || withoutSuffix ? ' év' : ' éve'); - } - return ''; -} -function week(isFuture) { - return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; -} - -var hu = moment.defineLocale('hu', { - months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'), - monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), - weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), - weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), - weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'YYYY.MM.DD.', - LL : 'YYYY. MMMM D.', - LLL : 'YYYY. MMMM D. H:mm', - LLLL : 'YYYY. MMMM D., dddd H:mm' - }, - meridiemParse: /de|du/i, - isPM: function (input) { - return input.charAt(1).toLowerCase() === 'u'; - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 12) { - return isLower === true ? 'de' : 'DE'; - } else { - return isLower === true ? 'du' : 'DU'; - } - }, - calendar : { - sameDay : '[ma] LT[-kor]', - nextDay : '[holnap] LT[-kor]', - nextWeek : function () { - return week.call(this, true); - }, - lastDay : '[tegnap] LT[-kor]', - lastWeek : function () { - return week.call(this, false); - }, - sameElse : 'L' - }, - relativeTime : { - future : '%s múlva', - past : '%s', - s : translate, - ss : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + var ansi = 16 + + (36 * Math.round(r / 255 * 5)) + + (6 * Math.round(g / 255 * 5)) + + Math.round(b / 255 * 5); -return hu; + return ansi; +}; -}))); +convert.ansi16.rgb = function (args) { + var color = args % 10; + // handle greyscale + if (color === 0 || color === 7) { + if (args > 50) { + color += 3.5; + } -/***/ }), -/* 150 */ -/***/ (function(module, exports, __webpack_require__) { + color = color / 10.5 * 255; -//! moment.js locale configuration -//! locale : Armenian [hy-am] -//! author : Armendarabyan : https://github.com/armendarabyan + return [color, color, color]; + } -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; + var mult = (~~(args > 50) + 1) * 0.5; + var r = ((color & 1) * mult) * 255; + var g = (((color >> 1) & 1) * mult) * 255; + var b = (((color >> 2) & 1) * mult) * 255; + return [r, g, b]; +}; -var hyAm = moment.defineLocale('hy-am', { - months : { - format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'), - standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_') - }, - monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), - weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'), - weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY թ.', - LLL : 'D MMMM YYYY թ., HH:mm', - LLLL : 'dddd, D MMMM YYYY թ., HH:mm' - }, - calendar : { - sameDay: '[այսօր] LT', - nextDay: '[վաղը] LT', - lastDay: '[երեկ] LT', - nextWeek: function () { - return 'dddd [օրը ժամը] LT'; - }, - lastWeek: function () { - return '[անցած] dddd [օրը ժամը] LT'; - }, - sameElse: 'L' - }, - relativeTime : { - future : '%s հետո', - past : '%s առաջ', - s : 'մի քանի վայրկյան', - ss : '%d վայրկյան', - m : 'րոպե', - mm : '%d րոպե', - h : 'ժամ', - hh : '%d ժամ', - d : 'օր', - dd : '%d օր', - M : 'ամիս', - MM : '%d ամիս', - y : 'տարի', - yy : '%d տարի' - }, - meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, - isPM: function (input) { - return /^(ցերեկվա|երեկոյան)$/.test(input); - }, - meridiem : function (hour) { - if (hour < 4) { - return 'գիշերվա'; - } else if (hour < 12) { - return 'առավոտվա'; - } else if (hour < 17) { - return 'ցերեկվա'; - } else { - return 'երեկոյան'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, - ordinal: function (number, period) { - switch (period) { - case 'DDD': - case 'w': - case 'W': - case 'DDDo': - if (number === 1) { - return number + '-ին'; - } - return number + '-րդ'; - default: - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); +convert.ansi256.rgb = function (args) { + // handle greyscale + if (args >= 232) { + var c = (args - 232) * 10 + 8; + return [c, c, c]; + } -return hyAm; + args -= 16; -}))); + var rem; + var r = Math.floor(args / 36) / 5 * 255; + var g = Math.floor((rem = args % 36) / 6) / 5 * 255; + var b = (rem % 6) / 5 * 255; + return [r, g, b]; +}; -/***/ }), -/* 151 */ -/***/ (function(module, exports, __webpack_require__) { +convert.rgb.hex = function (args) { + var integer = ((Math.round(args[0]) & 0xFF) << 16) + + ((Math.round(args[1]) & 0xFF) << 8) + + (Math.round(args[2]) & 0xFF); -//! moment.js locale configuration -//! locale : Indonesian [id] -//! author : Mohammad Satrio Utomo : https://github.com/tyok -//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var id = moment.defineLocale('id', { - months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), - weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), - weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), - weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|siang|sore|malam/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'siang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sore' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'siang'; - } else if (hours < 19) { - return 'sore'; - } else { - return 'malam'; - } - }, - calendar : { - sameDay : '[Hari ini pukul] LT', - nextDay : '[Besok pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kemarin pukul] LT', - lastWeek : 'dddd [lalu pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dalam %s', - past : '%s yang lalu', - s : 'beberapa detik', - ss : '%d detik', - m : 'semenit', - mm : '%d menit', - h : 'sejam', - hh : '%d jam', - d : 'sehari', - dd : '%d hari', - M : 'sebulan', - MM : '%d bulan', - y : 'setahun', - yy : '%d tahun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); + var string = integer.toString(16).toUpperCase(); + return '000000'.substring(string.length) + string; +}; -return id; +convert.hex.rgb = function (args) { + var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); + if (!match) { + return [0, 0, 0]; + } -}))); + var colorString = match[0]; + if (match[0].length === 3) { + colorString = colorString.split('').map(function (char) { + return char + char; + }).join(''); + } -/***/ }), -/* 152 */ -/***/ (function(module, exports, __webpack_require__) { + var integer = parseInt(colorString, 16); + var r = (integer >> 16) & 0xFF; + var g = (integer >> 8) & 0xFF; + var b = integer & 0xFF; -//! moment.js locale configuration -//! locale : Icelandic [is] -//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik + return [r, g, b]; +}; -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +convert.rgb.hcg = function (rgb) { + var r = rgb[0] / 255; + var g = rgb[1] / 255; + var b = rgb[2] / 255; + var max = Math.max(Math.max(r, g), b); + var min = Math.min(Math.min(r, g), b); + var chroma = (max - min); + var grayscale; + var hue; + if (chroma < 1) { + grayscale = min / (1 - chroma); + } else { + grayscale = 0; + } -function plural(n) { - if (n % 100 === 11) { - return true; - } else if (n % 10 === 1) { - return false; - } - return true; -} -function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; - case 'ss': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum'); - } - return result + 'sekúnda'; - case 'm': - return withoutSuffix ? 'mínúta' : 'mínútu'; - case 'mm': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum'); - } else if (withoutSuffix) { - return result + 'mínúta'; - } - return result + 'mínútu'; - case 'hh': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum'); - } - return result + 'klukkustund'; - case 'd': - if (withoutSuffix) { - return 'dagur'; - } - return isFuture ? 'dag' : 'degi'; - case 'dd': - if (plural(number)) { - if (withoutSuffix) { - return result + 'dagar'; - } - return result + (isFuture ? 'daga' : 'dögum'); - } else if (withoutSuffix) { - return result + 'dagur'; - } - return result + (isFuture ? 'dag' : 'degi'); - case 'M': - if (withoutSuffix) { - return 'mánuður'; - } - return isFuture ? 'mánuð' : 'mánuði'; - case 'MM': - if (plural(number)) { - if (withoutSuffix) { - return result + 'mánuðir'; - } - return result + (isFuture ? 'mánuði' : 'mánuðum'); - } else if (withoutSuffix) { - return result + 'mánuður'; - } - return result + (isFuture ? 'mánuð' : 'mánuði'); - case 'y': - return withoutSuffix || isFuture ? 'ár' : 'ári'; - case 'yy': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); - } - return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); - } -} - -var is = moment.defineLocale('is', { - months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'), - monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), - weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'), - weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'), - weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY [kl.] H:mm', - LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm' - }, - calendar : { - sameDay : '[í dag kl.] LT', - nextDay : '[á morgun kl.] LT', - nextWeek : 'dddd [kl.] LT', - lastDay : '[í gær kl.] LT', - lastWeek : '[síðasta] dddd [kl.] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'eftir %s', - past : 'fyrir %s síðan', - s : translate, - ss : translate, - m : translate, - mm : translate, - h : 'klukkustund', - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + if (chroma <= 0) { + hue = 0; + } else + if (max === r) { + hue = ((g - b) / chroma) % 6; + } else + if (max === g) { + hue = 2 + (b - r) / chroma; + } else { + hue = 4 + (r - g) / chroma + 4; + } -return is; + hue /= 6; + hue %= 1; -}))); + return [hue * 360, chroma * 100, grayscale * 100]; +}; +convert.hsl.hcg = function (hsl) { + var s = hsl[1] / 100; + var l = hsl[2] / 100; + var c = 1; + var f = 0; -/***/ }), -/* 153 */ -/***/ (function(module, exports, __webpack_require__) { + if (l < 0.5) { + c = 2.0 * s * l; + } else { + c = 2.0 * s * (1.0 - l); + } -//! moment.js locale configuration -//! locale : Italian [it] -//! author : Lorenzo : https://github.com/aliem -//! author: Mattia Larentis: https://github.com/nostalgiaz - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var it = moment.defineLocale('it', { - months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'), - monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), - weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : function (s) { - return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s; - }, - past : '%s fa', - s : 'alcuni secondi', - ss : '%d secondi', - m : 'un minuto', - mm : '%d minuti', - h : 'un\'ora', - hh : '%d ore', - d : 'un giorno', - dd : '%d giorni', - M : 'un mese', - MM : '%d mesi', - y : 'un anno', - yy : '%d anni' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal: '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + if (c < 1.0) { + f = (l - 0.5 * c) / (1.0 - c); + } -return it; + return [hsl[0], c * 100, f * 100]; +}; -}))); +convert.hsv.hcg = function (hsv) { + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var c = s * v; + var f = 0; -/***/ }), -/* 154 */ -/***/ (function(module, exports, __webpack_require__) { + if (c < 1.0) { + f = (v - c) / (1 - c); + } -//! moment.js locale configuration -//! locale : Japanese [ja] -//! author : LI Long : https://github.com/baryon - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var ja = moment.defineLocale('ja', { - months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), - weekdaysShort : '日_月_火_水_木_金_土'.split('_'), - weekdaysMin : '日_月_火_水_木_金_土'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY/MM/DD', - LL : 'YYYY年M月D日', - LLL : 'YYYY年M月D日 HH:mm', - LLLL : 'YYYY年M月D日 HH:mm dddd', - l : 'YYYY/MM/DD', - ll : 'YYYY年M月D日', - lll : 'YYYY年M月D日 HH:mm', - llll : 'YYYY年M月D日 HH:mm dddd' - }, - meridiemParse: /午前|午後/i, - isPM : function (input) { - return input === '午後'; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return '午前'; - } else { - return '午後'; - } - }, - calendar : { - sameDay : '[今日] LT', - nextDay : '[明日] LT', - nextWeek : '[来週]dddd LT', - lastDay : '[昨日] LT', - lastWeek : '[前週]dddd LT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse : /\d{1,2}日/, - ordinal : function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - default: - return number; - } - }, - relativeTime : { - future : '%s後', - past : '%s前', - s : '数秒', - ss : '%d秒', - m : '1分', - mm : '%d分', - h : '1時間', - hh : '%d時間', - d : '1日', - dd : '%d日', - M : '1ヶ月', - MM : '%dヶ月', - y : '1年', - yy : '%d年' - } -}); + return [hsv[0], c * 100, f * 100]; +}; -return ja; +convert.hcg.rgb = function (hcg) { + var h = hcg[0] / 360; + var c = hcg[1] / 100; + var g = hcg[2] / 100; -}))); + if (c === 0.0) { + return [g * 255, g * 255, g * 255]; + } + var pure = [0, 0, 0]; + var hi = (h % 1) * 6; + var v = hi % 1; + var w = 1 - v; + var mg = 0; -/***/ }), -/* 155 */ -/***/ (function(module, exports, __webpack_require__) { + switch (Math.floor(hi)) { + case 0: + pure[0] = 1; pure[1] = v; pure[2] = 0; break; + case 1: + pure[0] = w; pure[1] = 1; pure[2] = 0; break; + case 2: + pure[0] = 0; pure[1] = 1; pure[2] = v; break; + case 3: + pure[0] = 0; pure[1] = w; pure[2] = 1; break; + case 4: + pure[0] = v; pure[1] = 0; pure[2] = 1; break; + default: + pure[0] = 1; pure[1] = 0; pure[2] = w; + } -//! moment.js locale configuration -//! locale : Javanese [jv] -//! author : Rony Lantip : https://github.com/lantip -//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var jv = moment.defineLocale('jv', { - months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), - weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), - weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), - weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /enjing|siyang|sonten|ndalu/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'enjing') { - return hour; - } else if (meridiem === 'siyang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sonten' || meridiem === 'ndalu') { - return hour + 12; - } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'enjing'; - } else if (hours < 15) { - return 'siyang'; - } else if (hours < 19) { - return 'sonten'; - } else { - return 'ndalu'; - } - }, - calendar : { - sameDay : '[Dinten puniko pukul] LT', - nextDay : '[Mbenjang pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kala wingi pukul] LT', - lastWeek : 'dddd [kepengker pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'wonten ing %s', - past : '%s ingkang kepengker', - s : 'sawetawis detik', - ss : '%d detik', - m : 'setunggal menit', - mm : '%d menit', - h : 'setunggal jam', - hh : '%d jam', - d : 'sedinten', - dd : '%d dinten', - M : 'sewulan', - MM : '%d wulan', - y : 'setaun', - yy : '%d taun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); + mg = (1.0 - c) * g; -return jv; + return [ + (c * pure[0] + mg) * 255, + (c * pure[1] + mg) * 255, + (c * pure[2] + mg) * 255 + ]; +}; -}))); +convert.hcg.hsv = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var v = c + g * (1.0 - c); + var f = 0; -/***/ }), -/* 156 */ -/***/ (function(module, exports, __webpack_require__) { + if (v > 0.0) { + f = c / v; + } -//! moment.js locale configuration -//! locale : Georgian [ka] -//! author : Irakli Janiashvili : https://github.com/irakli-janiashvili + return [hcg[0], f * 100, v * 100]; +}; -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +convert.hcg.hsl = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var l = g * (1.0 - c) + 0.5 * c; + var s = 0; -var ka = moment.defineLocale('ka', { - months : { - standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'), - format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_') - }, - monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), - weekdays : { - standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'), - format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'), - isFormat: /(წინა|შემდეგ)/ - }, - weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), - weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[დღეს] LT[-ზე]', - nextDay : '[ხვალ] LT[-ზე]', - lastDay : '[გუშინ] LT[-ზე]', - nextWeek : '[შემდეგ] dddd LT[-ზე]', - lastWeek : '[წინა] dddd LT-ზე', - sameElse : 'L' - }, - relativeTime : { - future : function (s) { - return (/(წამი|წუთი|საათი|წელი)/).test(s) ? - s.replace(/ი$/, 'ში') : - s + 'ში'; - }, - past : function (s) { - if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) { - return s.replace(/(ი|ე)$/, 'ის უკან'); - } - if ((/წელი/).test(s)) { - return s.replace(/წელი$/, 'წლის უკან'); - } - }, - s : 'რამდენიმე წამი', - ss : '%d წამი', - m : 'წუთი', - mm : '%d წუთი', - h : 'საათი', - hh : '%d საათი', - d : 'დღე', - dd : '%d დღე', - M : 'თვე', - MM : '%d თვე', - y : 'წელი', - yy : '%d წელი' - }, - dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, - ordinal : function (number) { - if (number === 0) { - return number; - } - if (number === 1) { - return number + '-ლი'; - } - if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { - return 'მე-' + number; - } - return number + '-ე'; - }, - week : { - dow : 1, - doy : 7 - } -}); + if (l > 0.0 && l < 0.5) { + s = c / (2 * l); + } else + if (l >= 0.5 && l < 1.0) { + s = c / (2 * (1 - l)); + } -return ka; + return [hcg[0], s * 100, l * 100]; +}; -}))); +convert.hcg.hwb = function (hcg) { + var c = hcg[1] / 100; + var g = hcg[2] / 100; + var v = c + g * (1.0 - c); + return [hcg[0], (v - c) * 100, (1 - v) * 100]; +}; +convert.hwb.hcg = function (hwb) { + var w = hwb[1] / 100; + var b = hwb[2] / 100; + var v = 1 - b; + var c = v - w; + var g = 0; -/***/ }), -/* 157 */ -/***/ (function(module, exports, __webpack_require__) { + if (c < 1) { + g = (v - c) / (1 - c); + } -//! moment.js locale configuration -//! locale : Kazakh [kk] -//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var suffixes = { - 0: '-ші', - 1: '-ші', - 2: '-ші', - 3: '-ші', - 4: '-ші', - 5: '-ші', - 6: '-шы', - 7: '-ші', - 8: '-ші', - 9: '-шы', - 10: '-шы', - 20: '-шы', - 30: '-шы', - 40: '-шы', - 50: '-ші', - 60: '-шы', - 70: '-ші', - 80: '-ші', - 90: '-шы', - 100: '-ші' + return [hwb[0], c * 100, g * 100]; }; -var kk = moment.defineLocale('kk', { - months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'), - monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), - weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'), - weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), - weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Бүгін сағат] LT', - nextDay : '[Ертең сағат] LT', - nextWeek : 'dddd [сағат] LT', - lastDay : '[Кеше сағат] LT', - lastWeek : '[Өткен аптаның] dddd [сағат] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ішінде', - past : '%s бұрын', - s : 'бірнеше секунд', - ss : '%d секунд', - m : 'бір минут', - mm : '%d минут', - h : 'бір сағат', - hh : '%d сағат', - d : 'бір күн', - dd : '%d күн', - M : 'бір ай', - MM : '%d ай', - y : 'бір жыл', - yy : '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, - ordinal : function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); - -return kk; - -}))); +convert.apple.rgb = function (apple) { + return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255]; +}; +convert.rgb.apple = function (rgb) { + return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535]; +}; -/***/ }), -/* 158 */ -/***/ (function(module, exports, __webpack_require__) { +convert.gray.rgb = function (args) { + return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; +}; -//! moment.js locale configuration -//! locale : Cambodian [km] -//! author : Kruy Vanna : https://github.com/kruyvanna - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var km = moment.defineLocale('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), - monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), - weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS : 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', - nextDay: '[ស្អែក ម៉ោង] LT', - nextWeek: 'dddd [ម៉ោង] LT', - lastDay: '[ម្សិលមិញ ម៉ោង] LT', - lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sទៀត', - past: '%sមុន', - s: 'ប៉ុន្មានវិនាទី', - ss: '%d វិនាទី', - m: 'មួយនាទី', - mm: '%d នាទី', - h: 'មួយម៉ោង', - hh: '%d ម៉ោង', - d: 'មួយថ្ងៃ', - dd: '%d ថ្ងៃ', - M: 'មួយខែ', - MM: '%d ខែ', - y: 'មួយឆ្នាំ', - yy: '%d ឆ្នាំ' - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 4th is the first week of the year. - } -}); +convert.gray.hsl = convert.gray.hsv = function (args) { + return [0, 0, args[0]]; +}; -return km; +convert.gray.hwb = function (gray) { + return [0, 100, gray[0]]; +}; -}))); +convert.gray.cmyk = function (gray) { + return [0, 0, 0, gray[0]]; +}; +convert.gray.lab = function (gray) { + return [gray[0], 0, 0]; +}; -/***/ }), -/* 159 */ -/***/ (function(module, exports, __webpack_require__) { +convert.gray.hex = function (gray) { + var val = Math.round(gray[0] / 100 * 255) & 0xFF; + var integer = (val << 16) + (val << 8) + val; -//! moment.js locale configuration -//! locale : Kannada [kn] -//! author : Rajeev Naik : https://github.com/rajeevnaikte - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '೧', - '2': '೨', - '3': '೩', - '4': '೪', - '5': '೫', - '6': '೬', - '7': '೭', - '8': '೮', - '9': '೯', - '0': '೦' + var string = integer.toString(16).toUpperCase(); + return '000000'.substring(string.length) + string; }; -var numberMap = { - '೧': '1', - '೨': '2', - '೩': '3', - '೪': '4', - '೫': '5', - '೬': '6', - '೭': '7', - '೮': '8', - '೯': '9', - '೦': '0' + +convert.rgb.gray = function (rgb) { + var val = (rgb[0] + rgb[1] + rgb[2]) / 3; + return [val / 255 * 100]; }; -var kn = moment.defineLocale('kn', { - months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'), - monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'), - monthsParseExact: true, - weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), - weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), - weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm', - LLLL : 'dddd, D MMMM YYYY, A h:mm' - }, - calendar : { - sameDay : '[ಇಂದು] LT', - nextDay : '[ನಾಳೆ] LT', - nextWeek : 'dddd, LT', - lastDay : '[ನಿನ್ನೆ] LT', - lastWeek : '[ಕೊನೆಯ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ನಂತರ', - past : '%s ಹಿಂದೆ', - s : 'ಕೆಲವು ಕ್ಷಣಗಳು', - ss : '%d ಸೆಕೆಂಡುಗಳು', - m : 'ಒಂದು ನಿಮಿಷ', - mm : '%d ನಿಮಿಷ', - h : 'ಒಂದು ಗಂಟೆ', - hh : '%d ಗಂಟೆ', - d : 'ಒಂದು ದಿನ', - dd : '%d ದಿನ', - M : 'ಒಂದು ತಿಂಗಳು', - MM : '%d ತಿಂಗಳು', - y : 'ಒಂದು ವರ್ಷ', - yy : '%d ವರ್ಷ' - }, - preparse: function (string) { - return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ರಾತ್ರಿ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { - return hour; - } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ಸಂಜೆ') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ರಾತ್ರಿ'; - } else if (hour < 10) { - return 'ಬೆಳಿಗ್ಗೆ'; - } else if (hour < 17) { - return 'ಮಧ್ಯಾಹ್ನ'; - } else if (hour < 20) { - return 'ಸಂಜೆ'; - } else { - return 'ರಾತ್ರಿ'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, - ordinal : function (number) { - return number + 'ನೇ'; - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } -}); -return kn; +/***/ }), +/* 78 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; -}))); +module.exports = (flag, argv) => { + argv = argv || process.argv; + const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); + const pos = argv.indexOf(prefix + flag); + const terminatorPos = argv.indexOf('--'); + return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); +}; /***/ }), -/* 160 */ +/* 79 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Korean [ko] -//! author : Kyungwook, Park : https://github.com/kyungw00k -//! author : Jeeeyul Lee - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var ko = moment.defineLocale('ko', { - months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), - weekdaysShort : '일_월_화_수_목_금_토'.split('_'), - weekdaysMin : '일_월_화_수_목_금_토'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'YYYY.MM.DD', - LL : 'YYYY년 MMMM D일', - LLL : 'YYYY년 MMMM D일 A h:mm', - LLLL : 'YYYY년 MMMM D일 dddd A h:mm', - l : 'YYYY.MM.DD', - ll : 'YYYY년 MMMM D일', - lll : 'YYYY년 MMMM D일 A h:mm', - llll : 'YYYY년 MMMM D일 dddd A h:mm' - }, - calendar : { - sameDay : '오늘 LT', - nextDay : '내일 LT', - nextWeek : 'dddd LT', - lastDay : '어제 LT', - lastWeek : '지난주 dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s 후', - past : '%s 전', - s : '몇 초', - ss : '%d초', - m : '1분', - mm : '%d분', - h : '한 시간', - hh : '%d시간', - d : '하루', - dd : '%d일', - M : '한 달', - MM : '%d달', - y : '일 년', - yy : '%d년' - }, - dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/, - ordinal : function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '일'; - case 'M': - return number + '월'; - case 'w': - case 'W': - return number + '주'; - default: - return number; - } - }, - meridiemParse : /오전|오후/, - isPM : function (token) { - return token === '오후'; - }, - meridiem : function (hour, minute, isUpper) { - return hour < 12 ? '오전' : '오후'; - } -}); - -return ko; +"use strict"; -}))); +var fs = __webpack_require__(6) -/***/ }), -/* 161 */ -/***/ (function(module, exports, __webpack_require__) { +module.exports = clone(fs) -//! moment.js locale configuration -//! locale : Kyrgyz [ky] -//! author : Chyngyz Arystan uulu : https://github.com/chyngyz - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - - -var suffixes = { - 0: '-чү', - 1: '-чи', - 2: '-чи', - 3: '-чү', - 4: '-чү', - 5: '-чи', - 6: '-чы', - 7: '-чи', - 8: '-чи', - 9: '-чу', - 10: '-чу', - 20: '-чы', - 30: '-чу', - 40: '-чы', - 50: '-чү', - 60: '-чы', - 70: '-чи', - 80: '-чи', - 90: '-чу', - 100: '-чү' -}; +function clone (obj) { + if (obj === null || typeof obj !== 'object') + return obj -var ky = moment.defineLocale('ky', { - months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'), - monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), - weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'), - weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), - weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Бүгүн саат] LT', - nextDay : '[Эртең саат] LT', - nextWeek : 'dddd [саат] LT', - lastDay : '[Кече саат] LT', - lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ичинде', - past : '%s мурун', - s : 'бирнече секунд', - ss : '%d секунд', - m : 'бир мүнөт', - mm : '%d мүнөт', - h : 'бир саат', - hh : '%d саат', - d : 'бир күн', - dd : '%d күн', - M : 'бир ай', - MM : '%d ай', - y : 'бир жыл', - yy : '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, - ordinal : function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); + if (obj instanceof Object) + var copy = { __proto__: obj.__proto__ } + else + var copy = Object.create(null) -return ky; + Object.getOwnPropertyNames(obj).forEach(function (key) { + Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) + }) -}))); + return copy +} /***/ }), -/* 162 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Luxembourgish [lb] -//! author : mweimerskirch : https://github.com/mweimerskirch -//! author : David Raison : https://github.com/kwisatz - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +var path = __webpack_require__(2); +var fs = __webpack_require__(6); +var _0777 = parseInt('0777', 8); +module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP; -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eng Minutt', 'enger Minutt'], - 'h': ['eng Stonn', 'enger Stonn'], - 'd': ['een Dag', 'engem Dag'], - 'M': ['ee Mount', 'engem Mount'], - 'y': ['ee Joer', 'engem Joer'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; -} -function processFutureTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'a ' + string; +function mkdirP (p, opts, f, made) { + if (typeof opts === 'function') { + f = opts; + opts = {}; } - return 'an ' + string; -} -function processPastTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'viru ' + string; + else if (!opts || typeof opts !== 'object') { + opts = { mode: opts }; } - return 'virun ' + string; -} -/** - * Returns true if the word before the given number loses the '-n' ending. - * e.g. 'an 10 Deeg' but 'a 5 Deeg' - * - * @param number {integer} - * @returns {boolean} - */ -function eifelerRegelAppliesToNumber(number) { - number = parseInt(number, 10); - if (isNaN(number)) { - return false; + + var mode = opts.mode; + var xfs = opts.fs || fs; + + if (mode === undefined) { + mode = _0777 & (~process.umask()); } - if (number < 0) { - // Negative Number --> always true - return true; - } else if (number < 10) { - // Only 1 digit - if (4 <= number && number <= 7) { - return true; + if (!made) made = null; + + var cb = f || function () {}; + p = path.resolve(p); + + xfs.mkdir(p, mode, function (er) { + if (!er) { + made = made || p; + return cb(null, made); } - return false; - } else if (number < 100) { - // 2 digits - var lastDigit = number % 10, firstDigit = number / 10; - if (lastDigit === 0) { - return eifelerRegelAppliesToNumber(firstDigit); - } - return eifelerRegelAppliesToNumber(lastDigit); - } else if (number < 10000) { - // 3 or 4 digits --> recursively check first digit - while (number >= 10) { - number = number / 10; - } - return eifelerRegelAppliesToNumber(number); - } else { - // Anything larger than 4 digits: recursively check first n-3 digits - number = number / 1000; - return eifelerRegelAppliesToNumber(number); - } -} - -var lb = moment.defineLocale('lb', { - months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'), - weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm [Auer]', - LTS: 'H:mm:ss [Auer]', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm [Auer]', - LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' - }, - calendar: { - sameDay: '[Haut um] LT', - sameElse: 'L', - nextDay: '[Muer um] LT', - nextWeek: 'dddd [um] LT', - lastDay: '[Gëschter um] LT', - lastWeek: function () { - // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule - switch (this.day()) { - case 2: - case 4: - return '[Leschten] dddd [um] LT'; - default: - return '[Leschte] dddd [um] LT'; - } + switch (er.code) { + case 'ENOENT': + mkdirP(path.dirname(p), opts, function (er, made) { + if (er) cb(er, made); + else mkdirP(p, opts, cb, made); + }); + break; + + // In the case of any other error, just see if there's a dir + // there already. If so, then hooray! If not, then something + // is borked. + default: + xfs.stat(p, function (er2, stat) { + // if the stat fails, then that's super weird. + // let the original error be the failure reason. + if (er2 || !stat.isDirectory()) cb(er, made) + else cb(null, made); + }); + break; } - }, - relativeTime : { - future : processFutureTime, - past : processPastTime, - s : 'e puer Sekonnen', - ss : '%d Sekonnen', - m : processRelativeTime, - mm : '%d Minutten', - h : processRelativeTime, - hh : '%d Stonnen', - d : processRelativeTime, - dd : '%d Deeg', - M : processRelativeTime, - MM : '%d Méint', - y : processRelativeTime, - yy : '%d Joer' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 4th is the first week of the year. + }); +} + +mkdirP.sync = function sync (p, opts, made) { + if (!opts || typeof opts !== 'object') { + opts = { mode: opts }; } -}); + + var mode = opts.mode; + var xfs = opts.fs || fs; + + if (mode === undefined) { + mode = _0777 & (~process.umask()); + } + if (!made) made = null; + + p = path.resolve(p); + + try { + xfs.mkdirSync(p, mode); + made = made || p; + } + catch (err0) { + switch (err0.code) { + case 'ENOENT' : + made = sync(path.dirname(p), opts, made); + sync(p, opts, made); + break; -return lb; + // In the case of any other error, just see if there's a dir + // there already. If so, then hooray! If not, then something + // is borked. + default: + var stat; + try { + stat = xfs.statSync(p); + } + catch (err1) { + throw err0; + } + if (!stat.isDirectory()) throw err0; + break; + } + } -}))); + return made; +}; /***/ }), -/* 163 */ +/* 81 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Lao [lo] -//! author : Ryan Hart : https://github.com/ryanhart2 - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var lo = moment.defineLocale('lo', { - months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), - monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), - weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'ວັນdddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, - isPM: function (input) { - return input === 'ຕອນແລງ'; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ຕອນເຊົ້າ'; - } else { - return 'ຕອນແລງ'; - } - }, - calendar : { - sameDay : '[ມື້ນີ້ເວລາ] LT', - nextDay : '[ມື້ອື່ນເວລາ] LT', - nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT', - lastDay : '[ມື້ວານນີ້ເວລາ] LT', - lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ອີກ %s', - past : '%sຜ່ານມາ', - s : 'ບໍ່ເທົ່າໃດວິນາທີ', - ss : '%d ວິນາທີ' , - m : '1 ນາທີ', - mm : '%d ນາທີ', - h : '1 ຊົ່ວໂມງ', - hh : '%d ຊົ່ວໂມງ', - d : '1 ມື້', - dd : '%d ມື້', - M : '1 ເດືອນ', - MM : '%d ເດືອນ', - y : '1 ປີ', - yy : '%d ປີ' - }, - dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, - ordinal : function (number) { - return 'ທີ່' + number; - } -}); +module.exports = realpath +realpath.realpath = realpath +realpath.sync = realpathSync +realpath.realpathSync = realpathSync +realpath.monkeypatch = monkeypatch +realpath.unmonkeypatch = unmonkeypatch -return lo; +var fs = __webpack_require__(6) +var origRealpath = fs.realpath +var origRealpathSync = fs.realpathSync -}))); +var version = process.version +var ok = /^v[0-5]\./.test(version) +var old = __webpack_require__(153) +function newError (er) { + return er && er.syscall === 'realpath' && ( + er.code === 'ELOOP' || + er.code === 'ENOMEM' || + er.code === 'ENAMETOOLONG' + ) +} -/***/ }), -/* 164 */ -/***/ (function(module, exports, __webpack_require__) { +function realpath (p, cache, cb) { + if (ok) { + return origRealpath(p, cache, cb) + } -//! moment.js locale configuration -//! locale : Lithuanian [lt] -//! author : Mindaugas Mozūras : https://github.com/mmozuras - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var units = { - 'ss' : 'sekundė_sekundžių_sekundes', - 'm' : 'minutė_minutės_minutę', - 'mm': 'minutės_minučių_minutes', - 'h' : 'valanda_valandos_valandą', - 'hh': 'valandos_valandų_valandas', - 'd' : 'diena_dienos_dieną', - 'dd': 'dienos_dienų_dienas', - 'M' : 'mėnuo_mėnesio_mėnesį', - 'MM': 'mėnesiai_mėnesių_mėnesius', - 'y' : 'metai_metų_metus', - 'yy': 'metai_metų_metus' -}; -function translateSeconds(number, withoutSuffix, key, isFuture) { - if (withoutSuffix) { - return 'kelios sekundės'; + if (typeof cache === 'function') { + cb = cache + cache = null + } + origRealpath(p, cache, function (er, result) { + if (newError(er)) { + old.realpath(p, cache, cb) } else { - return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; + cb(er, result) } + }) } -function translateSingular(number, withoutSuffix, key, isFuture) { - return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); -} -function special(number) { - return number % 10 === 0 || (number > 10 && number < 20); -} -function forms(key) { - return units[key].split('_'); -} -function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - if (number === 1) { - return result + translateSingular(number, withoutSuffix, key[0], isFuture); - } else if (withoutSuffix) { - return result + (special(number) ? forms(key)[1] : forms(key)[0]); + +function realpathSync (p, cache) { + if (ok) { + return origRealpathSync(p, cache) + } + + try { + return origRealpathSync(p, cache) + } catch (er) { + if (newError(er)) { + return old.realpathSync(p, cache) } else { - if (isFuture) { - return result + forms(key)[1]; - } else { - return result + (special(number) ? forms(key)[1] : forms(key)[2]); - } + throw er } + } } -var lt = moment.defineLocale('lt', { - months : { - format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'), - standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'), - isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ - }, - monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), - weekdays : { - format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'), - standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'), - isFormat: /dddd HH:mm/ - }, - weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), - weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'YYYY [m.] MMMM D [d.]', - LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', - l : 'YYYY-MM-DD', - ll : 'YYYY [m.] MMMM D [d.]', - lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' - }, - calendar : { - sameDay : '[Šiandien] LT', - nextDay : '[Rytoj] LT', - nextWeek : 'dddd LT', - lastDay : '[Vakar] LT', - lastWeek : '[Praėjusį] dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : 'po %s', - past : 'prieš %s', - s : translateSeconds, - ss : translate, - m : translateSingular, - mm : translate, - h : translateSingular, - hh : translate, - d : translateSingular, - dd : translate, - M : translateSingular, - MM : translate, - y : translateSingular, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}-oji/, - ordinal : function (number) { - return number + '-oji'; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); -return lt; +function monkeypatch () { + fs.realpath = realpath + fs.realpathSync = realpathSync +} -}))); +function unmonkeypatch () { + fs.realpath = origRealpath + fs.realpathSync = origRealpathSync +} /***/ }), -/* 165 */ +/* 82 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Latvian [lv] -//! author : Kristaps Karlsons : https://github.com/skakri -//! author : Jānis Elmeris : https://github.com/JanisE - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var units = { - 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'), - 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), - 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), - 'h': 'stundas_stundām_stunda_stundas'.split('_'), - 'hh': 'stundas_stundām_stunda_stundas'.split('_'), - 'd': 'dienas_dienām_diena_dienas'.split('_'), - 'dd': 'dienas_dienām_diena_dienas'.split('_'), - 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - 'y': 'gada_gadiem_gads_gadi'.split('_'), - 'yy': 'gada_gadiem_gads_gadi'.split('_') -}; -/** - * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. - */ -function format(forms, number, withoutSuffix) { - if (withoutSuffix) { - // E.g. "21 minūte", "3 minūtes". - return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; - } else { - // E.g. "21 minūtes" as in "pēc 21 minūtes". - // E.g. "3 minūtēm" as in "pēc 3 minūtēm". - return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; - } -} -function relativeTimeWithPlural(number, withoutSuffix, key) { - return number + ' ' + format(units[key], number, withoutSuffix); -} -function relativeTimeWithSingular(number, withoutSuffix, key) { - return format(units[key], number, withoutSuffix); -} -function relativeSeconds(number, withoutSuffix) { - return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; -} - -var lv = moment.defineLocale('lv', { - months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'), - monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), - weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'), - weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY.', - LL : 'YYYY. [gada] D. MMMM', - LLL : 'YYYY. [gada] D. MMMM, HH:mm', - LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm' - }, - calendar : { - sameDay : '[Šodien pulksten] LT', - nextDay : '[Rīt pulksten] LT', - nextWeek : 'dddd [pulksten] LT', - lastDay : '[Vakar pulksten] LT', - lastWeek : '[Pagājušā] dddd [pulksten] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'pēc %s', - past : 'pirms %s', - s : relativeSeconds, - ss : relativeTimeWithPlural, - m : relativeTimeWithSingular, - mm : relativeTimeWithPlural, - h : relativeTimeWithSingular, - hh : relativeTimeWithPlural, - d : relativeTimeWithSingular, - dd : relativeTimeWithPlural, - M : relativeTimeWithSingular, - MM : relativeTimeWithPlural, - y : relativeTimeWithSingular, - yy : relativeTimeWithPlural - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return lv; - -}))); +try { + var util = __webpack_require__(8); + if (typeof util.inherits !== 'function') throw ''; + module.exports = util.inherits; +} catch (e) { + module.exports = __webpack_require__(157); +} /***/ }), -/* 166 */ +/* 83 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Montenegrin [me] -//! author : Miodrag Nikač : https://github.com/miodragnikac - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var translator = { - words: { //Different grammatical cases - ss: ['sekund', 'sekunda', 'sekundi'], - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mjesec', 'mjeseca', 'mjeseci'], - yy: ['godina', 'godine', 'godina'] - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - } -}; +exports.alphasort = alphasort +exports.alphasorti = alphasorti +exports.setopts = setopts +exports.ownProp = ownProp +exports.makeAbs = makeAbs +exports.finish = finish +exports.mark = mark +exports.isIgnored = isIgnored +exports.childrenIgnored = childrenIgnored -var me = moment.defineLocale('me', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact : true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm', - LTS : 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sjutra u] LT', - - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[juče u] LT', - lastWeek : function () { - var lastWeekDays = [ - '[prošle] [nedjelje] [u] LT', - '[prošlog] [ponedjeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srijede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ]; - return lastWeekDays[this.day()]; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'prije %s', - s : 'nekoliko sekundi', - ss : translator.translate, - m : translator.translate, - mm : translator.translate, - h : translator.translate, - hh : translator.translate, - d : 'dan', - dd : translator.translate, - M : 'mjesec', - MM : translator.translate, - y : 'godinu', - yy : translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); +function ownProp (obj, field) { + return Object.prototype.hasOwnProperty.call(obj, field) +} -return me; +var path = __webpack_require__(2) +var minimatch = __webpack_require__(55) +var isAbsolute = __webpack_require__(56) +var Minimatch = minimatch.Minimatch -}))); +function alphasorti (a, b) { + return a.toLowerCase().localeCompare(b.toLowerCase()) +} +function alphasort (a, b) { + return a.localeCompare(b) +} -/***/ }), -/* 167 */ -/***/ (function(module, exports, __webpack_require__) { +function setupIgnores (self, options) { + self.ignore = options.ignore || [] -//! moment.js locale configuration -//! locale : Maori [mi] -//! author : John Corrigan : https://github.com/johnideal - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var mi = moment.defineLocale('mi', { - months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'), - monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'), - monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, - weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), - weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [i] HH:mm', - LLLL: 'dddd, D MMMM YYYY [i] HH:mm' - }, - calendar: { - sameDay: '[i teie mahana, i] LT', - nextDay: '[apopo i] LT', - nextWeek: 'dddd [i] LT', - lastDay: '[inanahi i] LT', - lastWeek: 'dddd [whakamutunga i] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'i roto i %s', - past: '%s i mua', - s: 'te hēkona ruarua', - ss: '%d hēkona', - m: 'he meneti', - mm: '%d meneti', - h: 'te haora', - hh: '%d haora', - d: 'he ra', - dd: '%d ra', - M: 'he marama', - MM: '%d marama', - y: 'he tau', - yy: '%d tau' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + if (!Array.isArray(self.ignore)) + self.ignore = [self.ignore] -return mi; + if (self.ignore.length) { + self.ignore = self.ignore.map(ignoreMap) + } +} -}))); +// ignore patterns are always in dot:true mode. +function ignoreMap (pattern) { + var gmatcher = null + if (pattern.slice(-3) === '/**') { + var gpattern = pattern.replace(/(\/\*\*)+$/, '') + gmatcher = new Minimatch(gpattern, { dot: true }) + } + return { + matcher: new Minimatch(pattern, { dot: true }), + gmatcher: gmatcher + } +} -/***/ }), -/* 168 */ -/***/ (function(module, exports, __webpack_require__) { +function setopts (self, pattern, options) { + if (!options) + options = {} -//! moment.js locale configuration -//! locale : Macedonian [mk] -//! author : Borislav Mickov : https://github.com/B0k0 - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var mk = moment.defineLocale('mk', { - months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'), - monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), - weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'), - weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'), - weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'D.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY H:mm', - LLLL : 'dddd, D MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[Денес во] LT', - nextDay : '[Утре во] LT', - nextWeek : '[Во] dddd [во] LT', - lastDay : '[Вчера во] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Изминатата] dddd [во] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Изминатиот] dddd [во] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'после %s', - past : 'пред %s', - s : 'неколку секунди', - ss : '%d секунди', - m : 'минута', - mm : '%d минути', - h : 'час', - hh : '%d часа', - d : 'ден', - dd : '%d дена', - M : 'месец', - MM : '%d месеци', - y : 'година', - yy : '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal : function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + // base-matching: just use globstar for that. + if (options.matchBase && -1 === pattern.indexOf("/")) { + if (options.noglobstar) { + throw new Error("base matching requires globstar") } -}); + pattern = "**/" + pattern + } -return mk; + self.silent = !!options.silent + self.pattern = pattern + self.strict = options.strict !== false + self.realpath = !!options.realpath + self.realpathCache = options.realpathCache || Object.create(null) + self.follow = !!options.follow + self.dot = !!options.dot + self.mark = !!options.mark + self.nodir = !!options.nodir + if (self.nodir) + self.mark = true + self.sync = !!options.sync + self.nounique = !!options.nounique + self.nonull = !!options.nonull + self.nosort = !!options.nosort + self.nocase = !!options.nocase + self.stat = !!options.stat + self.noprocess = !!options.noprocess + self.absolute = !!options.absolute -}))); + self.maxLength = options.maxLength || Infinity + self.cache = options.cache || Object.create(null) + self.statCache = options.statCache || Object.create(null) + self.symlinks = options.symlinks || Object.create(null) + setupIgnores(self, options) -/***/ }), -/* 169 */ -/***/ (function(module, exports, __webpack_require__) { + self.changedCwd = false + var cwd = process.cwd() + if (!ownProp(options, "cwd")) + self.cwd = cwd + else { + self.cwd = path.resolve(options.cwd) + self.changedCwd = self.cwd !== cwd + } -//! moment.js locale configuration -//! locale : Malayalam [ml] -//! author : Floyd Pink : https://github.com/floydpink - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var ml = moment.defineLocale('ml', { - months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'), - monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'), - monthsParseExact : true, - weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'), - weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), - weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), - longDateFormat : { - LT : 'A h:mm -നു', - LTS : 'A h:mm:ss -നു', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm -നു', - LLLL : 'dddd, D MMMM YYYY, A h:mm -നു' - }, - calendar : { - sameDay : '[ഇന്ന്] LT', - nextDay : '[നാളെ] LT', - nextWeek : 'dddd, LT', - lastDay : '[ഇന്നലെ] LT', - lastWeek : '[കഴിഞ്ഞ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s കഴിഞ്ഞ്', - past : '%s മുൻപ്', - s : 'അൽപ നിമിഷങ്ങൾ', - ss : '%d സെക്കൻഡ്', - m : 'ഒരു മിനിറ്റ്', - mm : '%d മിനിറ്റ്', - h : 'ഒരു മണിക്കൂർ', - hh : '%d മണിക്കൂർ', - d : 'ഒരു ദിവസം', - dd : '%d ദിവസം', - M : 'ഒരു മാസം', - MM : '%d മാസം', - y : 'ഒരു വർഷം', - yy : '%d വർഷം' - }, - meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ((meridiem === 'രാത്രി' && hour >= 4) || - meridiem === 'ഉച്ച കഴിഞ്ഞ്' || - meridiem === 'വൈകുന്നേരം') { - return hour + 12; - } else { - return hour; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'രാത്രി'; - } else if (hour < 12) { - return 'രാവിലെ'; - } else if (hour < 17) { - return 'ഉച്ച കഴിഞ്ഞ്'; - } else if (hour < 20) { - return 'വൈകുന്നേരം'; - } else { - return 'രാത്രി'; - } - } -}); + self.root = options.root || path.resolve(self.cwd, "/") + self.root = path.resolve(self.root) + if (process.platform === "win32") + self.root = self.root.replace(/\\/g, "/") -return ml; + // TODO: is an absolute `cwd` supposed to be resolved against `root`? + // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test') + self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd) + if (process.platform === "win32") + self.cwdAbs = self.cwdAbs.replace(/\\/g, "/") + self.nomount = !!options.nomount -}))); + // disable comments and negation in Minimatch. + // Note that they are not supported in Glob itself anyway. + options.nonegate = true + options.nocomment = true + self.minimatch = new Minimatch(pattern, options) + self.options = self.minimatch.options +} -/***/ }), -/* 170 */ -/***/ (function(module, exports, __webpack_require__) { +function finish (self) { + var nou = self.nounique + var all = nou ? [] : Object.create(null) -//! moment.js locale configuration -//! locale : Marathi [mr] -//! author : Harshad Kale : https://github.com/kalehv -//! author : Vivek Athalye : https://github.com/vnathalye - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०' -}; -var numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' -}; + for (var i = 0, l = self.matches.length; i < l; i ++) { + var matches = self.matches[i] + if (!matches || Object.keys(matches).length === 0) { + if (self.nonull) { + // do like the shell, and spit out the literal glob + var literal = self.minimatch.globSet[i] + if (nou) + all.push(literal) + else + all[literal] = true + } + } else { + // had matches + var m = Object.keys(matches) + if (nou) + all.push.apply(all, m) + else + m.forEach(function (m) { + all[m] = true + }) + } + } -function relativeTimeMr(number, withoutSuffix, string, isFuture) -{ - var output = ''; - if (withoutSuffix) { - switch (string) { - case 's': output = 'काही सेकंद'; break; - case 'ss': output = '%d सेकंद'; break; - case 'm': output = 'एक मिनिट'; break; - case 'mm': output = '%d मिनिटे'; break; - case 'h': output = 'एक तास'; break; - case 'hh': output = '%d तास'; break; - case 'd': output = 'एक दिवस'; break; - case 'dd': output = '%d दिवस'; break; - case 'M': output = 'एक महिना'; break; - case 'MM': output = '%d महिने'; break; - case 'y': output = 'एक वर्ष'; break; - case 'yy': output = '%d वर्षे'; break; - } + if (!nou) + all = Object.keys(all) + + if (!self.nosort) + all = all.sort(self.nocase ? alphasorti : alphasort) + + // at *some* point we statted all of these + if (self.mark) { + for (var i = 0; i < all.length; i++) { + all[i] = self._mark(all[i]) } - else { - switch (string) { - case 's': output = 'काही सेकंदां'; break; - case 'ss': output = '%d सेकंदां'; break; - case 'm': output = 'एका मिनिटा'; break; - case 'mm': output = '%d मिनिटां'; break; - case 'h': output = 'एका तासा'; break; - case 'hh': output = '%d तासां'; break; - case 'd': output = 'एका दिवसा'; break; - case 'dd': output = '%d दिवसां'; break; - case 'M': output = 'एका महिन्या'; break; - case 'MM': output = '%d महिन्यां'; break; - case 'y': output = 'एका वर्षा'; break; - case 'yy': output = '%d वर्षां'; break; - } - } - return output.replace(/%d/i, number); -} - -var mr = moment.defineLocale('mr', { - months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'), - monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'), - monthsParseExact : true, - weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat : { - LT : 'A h:mm वाजता', - LTS : 'A h:mm:ss वाजता', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm वाजता', - LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता' - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[उद्या] LT', - nextWeek : 'dddd, LT', - lastDay : '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future: '%sमध्ये', - past: '%sपूर्वी', - s: relativeTimeMr, - ss: relativeTimeMr, - m: relativeTimeMr, - mm: relativeTimeMr, - h: relativeTimeMr, - hh: relativeTimeMr, - d: relativeTimeMr, - dd: relativeTimeMr, - M: relativeTimeMr, - MM: relativeTimeMr, - y: relativeTimeMr, - yy: relativeTimeMr - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'रात्री') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सकाळी') { - return hour; - } else if (meridiem === 'दुपारी') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'सायंकाळी') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'रात्री'; - } else if (hour < 10) { - return 'सकाळी'; - } else if (hour < 17) { - return 'दुपारी'; - } else if (hour < 20) { - return 'सायंकाळी'; - } else { - return 'रात्री'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + if (self.nodir) { + all = all.filter(function (e) { + var notDir = !(/\/$/.test(e)) + var c = self.cache[e] || self.cache[makeAbs(self, e)] + if (notDir && c) + notDir = c !== 'DIR' && !Array.isArray(c) + return notDir + }) } -}); + } -return mr; + if (self.ignore.length) + all = all.filter(function(m) { + return !isIgnored(self, m) + }) -}))); + self.found = all +} +function mark (self, p) { + var abs = makeAbs(self, p) + var c = self.cache[abs] + var m = p + if (c) { + var isDir = c === 'DIR' || Array.isArray(c) + var slash = p.slice(-1) === '/' -/***/ }), -/* 171 */ -/***/ (function(module, exports, __webpack_require__) { + if (isDir && !slash) + m += '/' + else if (!isDir && slash) + m = m.slice(0, -1) -//! moment.js locale configuration -//! locale : Malay [ms] -//! author : Weldan Jamili : https://github.com/weldan - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var ms = moment.defineLocale('ms', { - months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), - monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar : { - sameDay : '[Hari ini pukul] LT', - nextDay : '[Esok pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kelmarin pukul] LT', - lastWeek : 'dddd [lepas pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dalam %s', - past : '%s yang lepas', - s : 'beberapa saat', - ss : '%d saat', - m : 'seminit', - mm : '%d minit', - h : 'sejam', - hh : '%d jam', - d : 'sehari', - dd : '%d hari', - M : 'sebulan', - MM : '%d bulan', - y : 'setahun', - yy : '%d tahun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + if (m !== p) { + var mabs = makeAbs(self, m) + self.statCache[mabs] = self.statCache[abs] + self.cache[mabs] = self.cache[abs] } -}); + } + + return m +} + +// lotta situps... +function makeAbs (self, f) { + var abs = f + if (f.charAt(0) === '/') { + abs = path.join(self.root, f) + } else if (isAbsolute(f) || f === '') { + abs = f + } else if (self.changedCwd) { + abs = path.resolve(self.cwd, f) + } else { + abs = path.resolve(f) + } -return ms; + if (process.platform === 'win32') + abs = abs.replace(/\\/g, '/') -}))); + return abs +} -/***/ }), -/* 172 */ -/***/ (function(module, exports, __webpack_require__) { +// Return true, if pattern ends with globstar '**', for the accompanying parent directory. +// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents +function isIgnored (self, path) { + if (!self.ignore.length) + return false -//! moment.js locale configuration -//! locale : Malay [ms-my] -//! note : DEPRECATED, the correct one is [ms] -//! author : Weldan Jamili : https://github.com/weldan - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var msMy = moment.defineLocale('ms-my', { - months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), - monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar : { - sameDay : '[Hari ini pukul] LT', - nextDay : '[Esok pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kelmarin pukul] LT', - lastWeek : 'dddd [lepas pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dalam %s', - past : '%s yang lepas', - s : 'beberapa saat', - ss : '%d saat', - m : 'seminit', - mm : '%d minit', - h : 'sejam', - hh : '%d jam', - d : 'sehari', - dd : '%d hari', - M : 'sebulan', - MM : '%d bulan', - y : 'setahun', - yy : '%d tahun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); + return self.ignore.some(function(item) { + return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path)) + }) +} -return msMy; +function childrenIgnored (self, path) { + if (!self.ignore.length) + return false -}))); + return self.ignore.some(function(item) { + return !!(item.gmatcher && item.gmatcher.match(path)) + }) +} /***/ }), -/* 173 */ -/***/ (function(module, exports, __webpack_require__) { +/* 84 */ +/***/ (function(module, exports) { -//! moment.js locale configuration -//! locale : Maltese (Malta) [mt] -//! author : Alessandro Maruccia : https://github.com/alesma - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var mt = moment.defineLocale('mt', { - months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'), - monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), - weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'), - weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), - weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Illum fil-]LT', - nextDay : '[Għada fil-]LT', - nextWeek : 'dddd [fil-]LT', - lastDay : '[Il-bieraħ fil-]LT', - lastWeek : 'dddd [li għadda] [fil-]LT', - sameElse : 'L' - }, - relativeTime : { - future : 'f’ %s', - past : '%s ilu', - s : 'ftit sekondi', - ss : '%d sekondi', - m : 'minuta', - mm : '%d minuti', - h : 'siegħa', - hh : '%d siegħat', - d : 'ġurnata', - dd : '%d ġranet', - M : 'xahar', - MM : '%d xhur', - y : 'sena', - yy : '%d sni' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal: '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +// Returns a wrapper function that returns a wrapped callback +// The wrapper function should do some stuff, and return a +// presumably different callback function. +// This makes sure that own properties are retained, so that +// decorations and such are not lost along the way. +module.exports = wrappy +function wrappy (fn, cb) { + if (fn && cb) return wrappy(fn)(cb) -return mt; + if (typeof fn !== 'function') + throw new TypeError('need wrapper function') + + Object.keys(fn).forEach(function (k) { + wrapper[k] = fn[k] + }) + + return wrapper -}))); + function wrapper() { + var args = new Array(arguments.length) + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i] + } + var ret = fn.apply(this, args) + var cb = args[args.length-1] + if (typeof ret === 'function' && ret !== cb) { + Object.keys(cb).forEach(function (k) { + ret[k] = cb[k] + }) + } + return ret + } +} /***/ }), -/* 174 */ +/* 85 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Burmese [my] -//! author : Squar team, mysquar.com -//! author : David Rossellat : https://github.com/gholadr -//! author : Tin Aung Lin : https://github.com/thanyawzinmin - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '၁', - '2': '၂', - '3': '၃', - '4': '၄', - '5': '၅', - '6': '၆', - '7': '၇', - '8': '၈', - '9': '၉', - '0': '၀' -}; -var numberMap = { - '၁': '1', - '၂': '2', - '၃': '3', - '၄': '4', - '၅': '5', - '၆': '6', - '၇': '7', - '၈': '8', - '၉': '9', - '၀': '0' -}; +var wrappy = __webpack_require__(84) +module.exports = wrappy(once) +module.exports.strict = wrappy(onceStrict) -var my = moment.defineLocale('my', { - months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'), - monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), - weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), - weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ယနေ.] LT [မှာ]', - nextDay: '[မနက်ဖြန်] LT [မှာ]', - nextWeek: 'dddd LT [မှာ]', - lastDay: '[မနေ.က] LT [မှာ]', - lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', - sameElse: 'L' - }, - relativeTime: { - future: 'လာမည့် %s မှာ', - past: 'လွန်ခဲ့သော %s က', - s: 'စက္ကန်.အနည်းငယ်', - ss : '%d စက္ကန့်', - m: 'တစ်မိနစ်', - mm: '%d မိနစ်', - h: 'တစ်နာရီ', - hh: '%d နာရီ', - d: 'တစ်ရက်', - dd: '%d ရက်', - M: 'တစ်လ', - MM: '%d လ', - y: 'တစ်နှစ်', - yy: '%d နှစ်' - }, - preparse: function (string) { - return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { - return numberMap[match]; - }); +once.proto = once(function () { + Object.defineProperty(Function.prototype, 'once', { + value: function () { + return once(this) }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); + configurable: true + }) + + Object.defineProperty(Function.prototype, 'onceStrict', { + value: function () { + return onceStrict(this) }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 1st is the first week of the year. - } -}); + configurable: true + }) +}) -return my; +function once (fn) { + var f = function () { + if (f.called) return f.value + f.called = true + return f.value = fn.apply(this, arguments) + } + f.called = false + return f +} -}))); +function onceStrict (fn) { + var f = function () { + if (f.called) + throw new Error(f.onceError) + f.called = true + return f.value = fn.apply(this, arguments) + } + var name = fn.name || 'Function wrapped with `once`' + f.onceError = name + " shouldn't be called more than once" + f.called = false + return f +} /***/ }), -/* 175 */ +/* 86 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Norwegian Bokmål [nb] -//! authors : Espen Hovlandsdal : https://github.com/rexxars -//! Sigurd Gartmann : https://github.com/sigurdga - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var nb = moment.defineLocale('nb', { - months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), - monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), - monthsParseExact : true, - weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'), - weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY [kl.] HH:mm', - LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar : { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[forrige] dddd [kl.] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'om %s', - past : '%s siden', - s : 'noen sekunder', - ss : '%d sekunder', - m : 'ett minutt', - mm : '%d minutter', - h : 'en time', - hh : '%d timer', - d : 'en dag', - dd : '%d dager', - M : 'en måned', - MM : '%d måneder', - y : 'ett år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return nb; +"use strict"; -}))); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Project = undefined; -/***/ }), -/* 176 */ -/***/ (function(module, exports, __webpack_require__) { +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ -//! moment.js locale configuration -//! locale : Nepalese [ne] -//! author : suvash : https://github.com/suvash - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०' -}; -var numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' -}; -var ne = moment.defineLocale('ne', { - months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'), - monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'), - monthsParseExact : true, - weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'), - weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), - weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'Aको h:mm बजे', - LTS : 'Aको h:mm:ss बजे', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, Aको h:mm बजे', - LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे' - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /राति|बिहान|दिउँसो|साँझ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राति') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'बिहान') { - return hour; - } else if (meridiem === 'दिउँसो') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'साँझ') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 3) { - return 'राति'; - } else if (hour < 12) { - return 'बिहान'; - } else if (hour < 16) { - return 'दिउँसो'; - } else if (hour < 20) { - return 'साँझ'; - } else { - return 'राति'; - } - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[भोलि] LT', - nextWeek : '[आउँदो] dddd[,] LT', - lastDay : '[हिजो] LT', - lastWeek : '[गएको] dddd[,] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%sमा', - past : '%s अगाडि', - s : 'केही क्षण', - ss : '%d सेकेण्ड', - m : 'एक मिनेट', - mm : '%d मिनेट', - h : 'एक घण्टा', - hh : '%d घण्टा', - d : 'एक दिन', - dd : '%d दिन', - M : 'एक महिना', - MM : '%d महिना', - y : 'एक बर्ष', - yy : '%d बर्ष' - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } -}); +var _chalk = __webpack_require__(17); -return ne; +var _chalk2 = _interopRequireDefault(_chalk); -}))); +var _path = __webpack_require__(2); +var _util = __webpack_require__(8); -/***/ }), -/* 177 */ -/***/ (function(module, exports, __webpack_require__) { +var _errors = __webpack_require__(57); -//! moment.js locale configuration -//! locale : Dutch [nl] -//! author : Joris Röling : https://github.com/jorisroling -//! author : Jacob Middag : https://github.com/middagj +var _log = __webpack_require__(19); -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +var _package_json = __webpack_require__(41); +var _scripts = __webpack_require__(194); -var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); -var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; -var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; +function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } -var nl = moment.defineLocale('nl', { - months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; +class Project { + constructor(packageJson, projectPath) { + this.isWorkspaceRoot = false; + this.isWorkspaceProject = false; + this.json = Object.freeze(packageJson); + this.path = projectPath; + this.packageJsonLocation = (0, _path.resolve)(this.path, 'package.json'); + this.nodeModulesLocation = (0, _path.resolve)(this.path, 'node_modules'); + this.optimizeLocation = (0, _path.resolve)(this.path, 'optimize'); + this.targetLocation = (0, _path.resolve)(this.path, 'target'); + this.productionDependencies = this.json.dependencies || {}; + this.devDependencies = this.json.devDependencies || {}; + this.allDependencies = _extends({}, this.devDependencies, this.productionDependencies); + this.isWorkspaceRoot = this.json.hasOwnProperty('workspaces'); + this.scripts = this.json.scripts || {}; + } + static fromPath(path) { + return _asyncToGenerator(function* () { + const pkgJson = yield (0, _package_json.readPackageJson)(path); + return new Project(pkgJson, path); + })(); + } + get name() { + return this.json.name; + } + ensureValidProjectDependency(project, dependentProjectIsInWorkspace) { + const versionInPackageJson = this.allDependencies[project.name]; + let expectedVersionInPackageJson; + if (dependentProjectIsInWorkspace) { + expectedVersionInPackageJson = project.json.version; } else { - return monthsShortWithDots[m.month()]; + const relativePathToProject = normalizePath((0, _path.relative)(this.path, project.path)); + expectedVersionInPackageJson = `link:${relativePathToProject}`; } - }, - - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - - monthsParse : monthsParse, - longMonthsParse : monthsParse, - shortMonthsParse : monthsParse, - - weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'over %s', - past : '%s geleden', - s : 'een paar seconden', - ss : '%d seconden', - m : 'één minuut', - mm : '%d minuten', - h : 'één uur', - hh : '%d uur', - d : 'één dag', - dd : '%d dagen', - M : 'één maand', - MM : '%d maanden', - y : 'één jaar', - yy : '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + // No issues! + if (versionInPackageJson === expectedVersionInPackageJson) { + return; + } + let problemMsg; + if ((0, _package_json.isLinkDependency)(versionInPackageJson) && dependentProjectIsInWorkspace) { + problemMsg = `but should be using a workspace`; + } else if ((0, _package_json.isLinkDependency)(versionInPackageJson)) { + problemMsg = `using 'link:', but the path is wrong`; + } else { + problemMsg = `but it's not using the local package`; + } + throw new _errors.CliError(`[${this.name}] depends on [${project.name}] ${problemMsg}. Update its package.json to the expected value below.`, { + actual: `"${project.name}": "${versionInPackageJson}"`, + expected: `"${project.name}": "${expectedVersionInPackageJson}"`, + package: `${this.name} (${this.packageJsonLocation})` + }); } -}); + getBuildConfig() { + return this.json.kibana && this.json.kibana.build || {}; + } + /** + * Returns the directory that should be copied into the Kibana build artifact. + * This config can be specified to only include the project's build artifacts + * instead of everything located in the project directory. + */ + getIntermediateBuildDirectory() { + return (0, _path.resolve)(this.path, this.getBuildConfig().intermediateBuildDirectory || '.'); + } + hasScript(name) { + return name in this.scripts; + } + getExecutables() { + const raw = this.json.bin; + if (!raw) { + return {}; + } + if (typeof raw === 'string') { + return { + [this.name]: (0, _path.resolve)(this.path, raw) + }; + } + if (typeof raw === 'object') { + const binsConfig = {}; + for (const binName of Object.keys(raw)) { + binsConfig[binName] = (0, _path.resolve)(this.path, raw[binName]); + } + return binsConfig; + } + throw new _errors.CliError(`[${this.name}] has an invalid "bin" field in its package.json, ` + `expected an object or a string`, { + binConfig: (0, _util.inspect)(raw), + package: `${this.name} (${this.packageJsonLocation})` + }); + } + runScript(scriptName, args = []) { + var _this = this; -return nl; + return _asyncToGenerator(function* () { + _log.log.write(_chalk2.default.bold(`\n\nRunning script [${_chalk2.default.green(scriptName)}] in [${_chalk2.default.green(_this.name)}]:\n`)); + return (0, _scripts.runScriptInPackage)(scriptName, args, _this); + })(); + } + runScriptStreaming(scriptName, args = []) { + return (0, _scripts.runScriptInPackageStreaming)(scriptName, args, this); + } + hasDependencies() { + return Object.keys(this.allDependencies).length > 0; + } + installDependencies({ extraArgs }) { + var _this2 = this; -}))); + return _asyncToGenerator(function* () { + _log.log.write(_chalk2.default.bold(`\n\nInstalling dependencies in [${_chalk2.default.green(_this2.name)}]:\n`)); + return (0, _scripts.installInDir)(_this2.path, extraArgs); + })(); + } +} +exports.Project = Project; // We normalize all path separators to `/` in generated files +function normalizePath(path) { + return path.replace(/[\\\/]+/g, '/'); +} /***/ }), -/* 178 */ +/* 87 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Dutch (Belgium) [nl-be] -//! author : Joris Röling : https://github.com/jorisroling -//! author : Jacob Middag : https://github.com/middagj - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +module.exports = normalize +var fixer = __webpack_require__(170) +normalize.fixer = fixer -var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); -var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); +var makeWarning = __webpack_require__(183) -var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; -var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; +var fieldsToFix = ['name','version','description','repository','modules','scripts' + ,'files','bin','man','bugs','keywords','readme','homepage','license'] +var otherThingsToFix = ['dependencies','people', 'typos'] -var nlBe = moment.defineLocale('nl-be', { - months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, +var thingsToFix = fieldsToFix.map(function(fieldName) { + return ucFirst(fieldName) + "Field" +}) +// two ways to do this in CoffeeScript on only one line, sub-70 chars: +// thingsToFix = fieldsToFix.map (name) -> ucFirst(name) + "Field" +// thingsToFix = (ucFirst(name) + "Field" for name in fieldsToFix) +thingsToFix = thingsToFix.concat(otherThingsToFix) - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - - monthsParse : monthsParse, - longMonthsParse : monthsParse, - shortMonthsParse : monthsParse, - - weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'over %s', - past : '%s geleden', - s : 'een paar seconden', - ss : '%d seconden', - m : 'één minuut', - mm : '%d minuten', - h : 'één uur', - hh : '%d uur', - d : 'één dag', - dd : '%d dagen', - M : 'één maand', - MM : '%d maanden', - y : 'één jaar', - yy : '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +function normalize (data, warn, strict) { + if(warn === true) warn = null, strict = true + if(!strict) strict = false + if(!warn || data.private) warn = function(msg) { /* noop */ } -return nlBe; + if (data.scripts && + data.scripts.install === "node-gyp rebuild" && + !data.scripts.preinstall) { + data.gypfile = true + } + fixer.warn = function() { warn(makeWarning.apply(null, arguments)) } + thingsToFix.forEach(function(thingName) { + fixer["fix" + ucFirst(thingName)](data, strict) + }) + data._id = data.name + "@" + data.version +} -}))); +function ucFirst (string) { + return string.charAt(0).toUpperCase() + string.slice(1); +} /***/ }), -/* 179 */ -/***/ (function(module, exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Nynorsk [nn] -//! author : https://github.com/mechuwind - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var nn = moment.defineLocale('nn', { - months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), - monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), - weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'), - weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY [kl.] H:mm', - LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar : { - sameDay: '[I dag klokka] LT', - nextDay: '[I morgon klokka] LT', - nextWeek: 'dddd [klokka] LT', - lastDay: '[I går klokka] LT', - lastWeek: '[Føregåande] dddd [klokka] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'om %s', - past : '%s sidan', - s : 'nokre sekund', - ss : '%d sekund', - m : 'eit minutt', - mm : '%d minutt', - h : 'ein time', - hh : '%d timar', - d : 'ein dag', - dd : '%d dagar', - M : 'ein månad', - MM : '%d månader', - y : 'eit år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return nn; - -}))); +/* 88 */ +/***/ (function(module, exports) { +module.exports = require("url"); /***/ }), -/* 180 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Punjabi (India) [pa-in] -//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '੧', - '2': '੨', - '3': '੩', - '4': '੪', - '5': '੫', - '6': '੬', - '7': '੭', - '8': '੮', - '9': '੯', - '0': '੦' -}; -var numberMap = { - '੧': '1', - '੨': '2', - '੩': '3', - '੪': '4', - '੫': '5', - '੬': '6', - '੭': '7', - '੮': '8', - '੯': '9', - '੦': '0' -}; +"use strict"; -var paIn = moment.defineLocale('pa-in', { - // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi. - months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), - monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), - weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'), - weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - longDateFormat : { - LT : 'A h:mm ਵਜੇ', - LTS : 'A h:mm:ss ਵਜੇ', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm ਵਜੇ', - LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' - }, - calendar : { - sameDay : '[ਅਜ] LT', - nextDay : '[ਕਲ] LT', - nextWeek : 'dddd, LT', - lastDay : '[ਕਲ] LT', - lastWeek : '[ਪਿਛਲੇ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ਵਿੱਚ', - past : '%s ਪਿਛਲੇ', - s : 'ਕੁਝ ਸਕਿੰਟ', - ss : '%d ਸਕਿੰਟ', - m : 'ਇਕ ਮਿੰਟ', - mm : '%d ਮਿੰਟ', - h : 'ਇੱਕ ਘੰਟਾ', - hh : '%d ਘੰਟੇ', - d : 'ਇੱਕ ਦਿਨ', - dd : '%d ਦਿਨ', - M : 'ਇੱਕ ਮਹੀਨਾ', - MM : '%d ਮਹੀਨੇ', - y : 'ਇੱਕ ਸਾਲ', - yy : '%d ਸਾਲ' - }, - preparse: function (string) { - return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Punjabi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. - meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ਰਾਤ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ਸਵੇਰ') { - return hour; - } else if (meridiem === 'ਦੁਪਹਿਰ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ਸ਼ਾਮ') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ਰਾਤ'; - } else if (hour < 10) { - return 'ਸਵੇਰ'; - } else if (hour < 17) { - return 'ਦੁਪਹਿਰ'; - } else if (hour < 20) { - return 'ਸ਼ਾਮ'; - } else { - return 'ਰਾਤ'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } -}); -return paIn; +var gitHosts = module.exports = { + github: { + // First two are insecure and generally shouldn't be used any more, but + // they are still supported. + 'protocols': [ 'git', 'http', 'git+ssh', 'git+https', 'ssh', 'https' ], + 'domain': 'github.com', + 'treepath': 'tree', + 'filetemplate': 'https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}', + 'bugstemplate': 'https://{domain}/{user}/{project}/issues', + 'gittemplate': 'git://{auth@}{domain}/{user}/{project}.git{#committish}', + 'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz' + }, + bitbucket: { + 'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ], + 'domain': 'bitbucket.org', + 'treepath': 'src', + 'tarballtemplate': 'https://{domain}/{user}/{project}/get/{committish}.tar.gz' + }, + gitlab: { + 'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ], + 'domain': 'gitlab.com', + 'treepath': 'tree', + 'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#README', + 'bugstemplate': 'https://{domain}/{user}/{project}/issues', + 'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}' + }, + gist: { + 'protocols': [ 'git', 'git+ssh', 'git+https', 'ssh', 'https' ], + 'domain': 'gist.github.com', + 'pathmatch': /^[/](?:([^/]+)[/])?([a-z0-9]+)(?:[.]git)?$/, + 'filetemplate': 'https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}', + 'bugstemplate': 'https://{domain}/{project}', + 'gittemplate': 'git://{domain}/{project}.git{#committish}', + 'sshtemplate': 'git@{domain}:/{project}.git{#committish}', + 'sshurltemplate': 'git+ssh://git@{domain}/{project}.git{#committish}', + 'browsetemplate': 'https://{domain}/{project}{/committish}', + 'docstemplate': 'https://{domain}/{project}{/committish}', + 'httpstemplate': 'git+https://{domain}/{project}.git{#committish}', + 'shortcuttemplate': '{type}:{project}{#committish}', + 'pathtemplate': '{project}{#committish}', + 'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz' + } +} + +var gitHostDefaults = { + 'sshtemplate': 'git@{domain}:{user}/{project}.git{#committish}', + 'sshurltemplate': 'git+ssh://git@{domain}/{user}/{project}.git{#committish}', + 'browsetemplate': 'https://{domain}/{user}/{project}{/tree/committish}', + 'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#readme', + 'httpstemplate': 'git+https://{auth@}{domain}/{user}/{project}.git{#committish}', + 'filetemplate': 'https://{domain}/{user}/{project}/raw/{committish}/{path}', + 'shortcuttemplate': '{type}:{user}/{project}{#committish}', + 'pathtemplate': '{user}/{project}{#committish}', + 'pathmatch': /^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/ +} -}))); +Object.keys(gitHosts).forEach(function (name) { + Object.keys(gitHostDefaults).forEach(function (key) { + if (gitHosts[name][key]) return + gitHosts[name][key] = gitHostDefaults[key] + }) + gitHosts[name].protocols_re = RegExp('^(' + + gitHosts[name].protocols.map(function (protocol) { + return protocol.replace(/([\\+*{}()[\]$^|])/g, '\\$1') + }).join('|') + '):$') +}) /***/ }), -/* 181 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Polish [pl] -//! author : Rafal Hirsz : https://github.com/evoL - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'); -var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'); -function plural(n) { - return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1); -} -function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - return result + (plural(number) ? 'sekundy' : 'sekund'); - case 'm': - return withoutSuffix ? 'minuta' : 'minutę'; - case 'mm': - return result + (plural(number) ? 'minuty' : 'minut'); - case 'h': - return withoutSuffix ? 'godzina' : 'godzinę'; - case 'hh': - return result + (plural(number) ? 'godziny' : 'godzin'); - case 'MM': - return result + (plural(number) ? 'miesiące' : 'miesięcy'); - case 'yy': - return result + (plural(number) ? 'lata' : 'lat'); - } -} - -var pl = moment.defineLocale('pl', { - months : function (momentToFormat, format) { - if (!momentToFormat) { - return monthsNominative; - } else if (format === '') { - // Hack: if format empty we know this is used to generate - // RegExp by moment. Give then back both valid forms of months - // in RegExp ready format. - return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')'; - } else if (/D MMMM/.test(format)) { - return monthsSubjective[momentToFormat.month()]; - } else { - return monthsNominative[momentToFormat.month()]; - } - }, - monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), - weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'), - weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), - weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Dziś o] LT', - nextDay: '[Jutro o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[W niedzielę o] LT'; - - case 2: - return '[We wtorek o] LT'; - - case 3: - return '[W środę o] LT'; - - case 6: - return '[W sobotę o] LT'; - - default: - return '[W] dddd [o] LT'; - } - }, - lastDay: '[Wczoraj o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielę o] LT'; - case 3: - return '[W zeszłą środę o] LT'; - case 6: - return '[W zeszłą sobotę o] LT'; - default: - return '[W zeszły] dddd [o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'za %s', - past : '%s temu', - s : 'kilka sekund', - ss : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : '1 dzień', - dd : '%d dni', - M : 'miesiąc', - MM : translate, - y : 'rok', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return pl; +"use strict"; -}))); +const isPlainObj = __webpack_require__(190); +module.exports = (obj, opts) => { + if (!isPlainObj(obj)) { + throw new TypeError('Expected a plain object'); + } -/***/ }), -/* 182 */ -/***/ (function(module, exports, __webpack_require__) { + opts = opts || {}; -//! moment.js locale configuration -//! locale : Portuguese [pt] -//! author : Jefferson : https://github.com/jalex79 - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var pt = moment.defineLocale('pt', { - months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), - monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'), - weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY HH:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm' - }, - calendar : { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return (this.day() === 0 || this.day() === 6) ? - '[Último] dddd [às] LT' : // Saturday + Sunday - '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L' - }, - relativeTime : { - future : 'em %s', - past : 'há %s', - s : 'segundos', - ss : '%d segundos', - m : 'um minuto', - mm : '%d minutos', - h : 'uma hora', - hh : '%d horas', - d : 'um dia', - dd : '%d dias', - M : 'um mês', - MM : '%d meses', - y : 'um ano', - yy : '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + // DEPRECATED + if (typeof opts === 'function') { + throw new TypeError('Specify the compare function as an option instead'); + } -return pt; + const deep = opts.deep; + const seenInput = []; + const seenOutput = []; -}))); + const sortKeys = x => { + const seenIndex = seenInput.indexOf(x); + if (seenIndex !== -1) { + return seenOutput[seenIndex]; + } -/***/ }), -/* 183 */ -/***/ (function(module, exports, __webpack_require__) { + const ret = {}; + const keys = Object.keys(x).sort(opts.compare); -//! moment.js locale configuration -//! locale : Portuguese (Brazil) [pt-br] -//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var ptBr = moment.defineLocale('pt-br', { - months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), - monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'), - weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY [às] HH:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' - }, - calendar : { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return (this.day() === 0 || this.day() === 6) ? - '[Último] dddd [às] LT' : // Saturday + Sunday - '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L' - }, - relativeTime : { - future : 'em %s', - past : '%s atrás', - s : 'poucos segundos', - ss : '%d segundos', - m : 'um minuto', - mm : '%d minutos', - h : 'uma hora', - hh : '%d horas', - d : 'um dia', - dd : '%d dias', - M : 'um mês', - MM : '%d meses', - y : 'um ano', - yy : '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal : '%dº' -}); + seenInput.push(x); + seenOutput.push(ret); -return ptBr; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const val = x[key]; -}))); + if (deep && Array.isArray(val)) { + const retArr = []; + for (let j = 0; j < val.length; j++) { + retArr[j] = isPlainObj(val[j]) ? sortKeys(val[j]) : val[j]; + } -/***/ }), -/* 184 */ -/***/ (function(module, exports, __webpack_require__) { + ret[key] = retArr; + continue; + } -//! moment.js locale configuration -//! locale : Romanian [ro] -//! author : Vlad Gurdiga : https://github.com/gurdiga -//! author : Valentin Agachi : https://github.com/avaly - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'ss': 'secunde', - 'mm': 'minute', - 'hh': 'ore', - 'dd': 'zile', - 'MM': 'luni', - 'yy': 'ani' - }, - separator = ' '; - if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { - separator = ' de '; - } - return number + separator + format[key]; -} - -var ro = moment.defineLocale('ro', { - months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'), - monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), - weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), - weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY H:mm', - LLLL : 'dddd, D MMMM YYYY H:mm' - }, - calendar : { - sameDay: '[azi la] LT', - nextDay: '[mâine la] LT', - nextWeek: 'dddd [la] LT', - lastDay: '[ieri la] LT', - lastWeek: '[fosta] dddd [la] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'peste %s', - past : '%s în urmă', - s : 'câteva secunde', - ss : relativeTimeWithPlural, - m : 'un minut', - mm : relativeTimeWithPlural, - h : 'o oră', - hh : relativeTimeWithPlural, - d : 'o zi', - dd : relativeTimeWithPlural, - M : 'o lună', - MM : relativeTimeWithPlural, - y : 'un an', - yy : relativeTimeWithPlural - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); + ret[key] = deep && isPlainObj(val) ? sortKeys(val) : val; + } -return ro; + return ret; + }; -}))); + return sortKeys(obj); +}; /***/ }), -/* 185 */ +/* 91 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Russian [ru] -//! author : Viktorminator : https://github.com/Viktorminator -//! Author : Menelion Elensúle : https://github.com/Oire -//! author : Коренберг Марк : https://github.com/socketpair +"use strict"; -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; +const fs = __webpack_require__(6); +const path = __webpack_require__(2); +const pify = __webpack_require__(191); +const defaults = { + mode: 0o777 & (~process.umask()), + fs +}; -function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); -} -function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', - 'hh': 'час_часа_часов', - 'dd': 'день_дня_дней', - 'MM': 'месяц_месяца_месяцев', - 'yy': 'год_года_лет' - }; - if (key === 'm') { - return withoutSuffix ? 'минута' : 'минуту'; - } - else { - return number + ' ' + plural(format[key], +number); - } -} -var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; +// https://github.com/nodejs/node/issues/8987 +// https://github.com/libuv/libuv/pull/1088 +const checkPath = pth => { + if (process.platform === 'win32') { + const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')); -// http://new.gramota.ru/spravka/rules/139-prop : § 103 -// Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 -// CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 -var ru = moment.defineLocale('ru', { - months : { - format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'), - standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_') - }, - monthsShort : { - // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ? - format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'), - standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_') - }, - weekdays : { - standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'), - format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'), - isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/ - }, - weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - monthsParse : monthsParse, - longMonthsParse : monthsParse, - shortMonthsParse : monthsParse, - - // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки - monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - - // копия предыдущего - monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - - // полные названия с падежами - monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, - - // Выражение, которое соотвествует только сокращённым формам - monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY г.', - LLL : 'D MMMM YYYY г., H:mm', - LLLL : 'dddd, D MMMM YYYY г., H:mm' - }, - calendar : { - sameDay: '[Сегодня в] LT', - nextDay: '[Завтра в] LT', - lastDay: '[Вчера в] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В следующее] dddd [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd [в] LT'; - } else { - return '[В] dddd [в] LT'; - } - } - }, - lastWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В прошлое] dddd [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd [в] LT'; - } else { - return '[В] dddd [в] LT'; - } - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'через %s', - past : '%s назад', - s : 'несколько секунд', - ss : relativeTimeWithPlural, - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : 'час', - hh : relativeTimeWithPlural, - d : 'день', - dd : relativeTimeWithPlural, - M : 'месяц', - MM : relativeTimeWithPlural, - y : 'год', - yy : relativeTimeWithPlural - }, - meridiemParse: /ночи|утра|дня|вечера/i, - isPM : function (input) { - return /^(дня|вечера)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ночи'; - } else if (hour < 12) { - return 'утра'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечера'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - return number + '-й'; - case 'D': - return number + '-го'; - case 'w': - case 'W': - return number + '-я'; - default: - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + if (pathHasInvalidWinCharacters) { + const err = new Error(`Path contains invalid characters: ${pth}`); + err.code = 'EINVAL'; + throw err; + } + } +}; -return ru; +module.exports = (input, opts) => Promise.resolve().then(() => { + checkPath(input); + opts = Object.assign({}, defaults, opts); -}))); + const mkdir = pify(opts.fs.mkdir); + const stat = pify(opts.fs.stat); + const make = pth => { + return mkdir(pth, opts.mode) + .then(() => pth) + .catch(err => { + if (err.code === 'ENOENT') { + if (err.message.includes('null bytes') || path.dirname(pth) === pth) { + throw err; + } -/***/ }), -/* 186 */ -/***/ (function(module, exports, __webpack_require__) { + return make(path.dirname(pth)).then(() => make(pth)); + } -//! moment.js locale configuration -//! locale : Sindhi [sd] -//! author : Narain Sagar : https://github.com/narainsagar - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var months = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر' -]; -var days = [ - 'آچر', - 'سومر', - 'اڱارو', - 'اربع', - 'خميس', - 'جمع', - 'ڇنڇر' -]; + return stat(pth) + .then(stats => stats.isDirectory() ? pth : Promise.reject()) + .catch(() => { + throw err; + }); + }); + }; -var sd = moment.defineLocale('sd', { - months : months, - monthsShort : months, - weekdays : days, - weekdaysShort : days, - weekdaysMin : days, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM : function (input) { - return 'شام' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar : { - sameDay : '[اڄ] LT', - nextDay : '[سڀاڻي] LT', - nextWeek : 'dddd [اڳين هفتي تي] LT', - lastDay : '[ڪالهه] LT', - lastWeek : '[گزريل هفتي] dddd [تي] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s پوء', - past : '%s اڳ', - s : 'چند سيڪنڊ', - ss : '%d سيڪنڊ', - m : 'هڪ منٽ', - mm : '%d منٽ', - h : 'هڪ ڪلاڪ', - hh : '%d ڪلاڪ', - d : 'هڪ ڏينهن', - dd : '%d ڏينهن', - M : 'هڪ مهينو', - MM : '%d مهينا', - y : 'هڪ سال', - yy : '%d سال' - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } + return make(path.resolve(input)); }); -return sd; - -}))); +module.exports.sync = (input, opts) => { + checkPath(input); + opts = Object.assign({}, defaults, opts); + const make = pth => { + try { + opts.fs.mkdirSync(pth, opts.mode); + } catch (err) { + if (err.code === 'ENOENT') { + if (err.message.includes('null bytes') || path.dirname(pth) === pth) { + throw err; + } -/***/ }), -/* 187 */ -/***/ (function(module, exports, __webpack_require__) { + make(path.dirname(pth)); + return make(pth); + } -//! moment.js locale configuration -//! locale : Northern Sami [se] -//! authors : Bård Rolstad Henriksen : https://github.com/karamell - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - - -var se = moment.defineLocale('se', { - months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'), - monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'), - weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'), - weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), - weekdaysMin : 's_v_m_g_d_b_L'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'MMMM D. [b.] YYYY', - LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm', - LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' - }, - calendar : { - sameDay: '[otne ti] LT', - nextDay: '[ihttin ti] LT', - nextWeek: 'dddd [ti] LT', - lastDay: '[ikte ti] LT', - lastWeek: '[ovddit] dddd [ti] LT', - sameElse: 'L' - }, - relativeTime : { - future : '%s geažes', - past : 'maŋit %s', - s : 'moadde sekunddat', - ss: '%d sekunddat', - m : 'okta minuhta', - mm : '%d minuhtat', - h : 'okta diimmu', - hh : '%d diimmut', - d : 'okta beaivi', - dd : '%d beaivvit', - M : 'okta mánnu', - MM : '%d mánut', - y : 'okta jahki', - yy : '%d jagit' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + try { + if (!opts.fs.statSync(pth).isDirectory()) { + throw new Error('The path is not a directory'); + } + } catch (_) { + throw err; + } + } -return se; + return pth; + }; -}))); + return make(path.resolve(input)); +}; /***/ }), -/* 188 */ +/* 92 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Sinhalese [si] -//! author : Sampath Sitinamaluwa : https://github.com/sampathsris - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -/*jshint -W100*/ -var si = moment.defineLocale('si', { - months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'), - monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'), - weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'), - weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), - weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'a h:mm', - LTS : 'a h:mm:ss', - L : 'YYYY/MM/DD', - LL : 'YYYY MMMM D', - LLL : 'YYYY MMMM D, a h:mm', - LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' - }, - calendar : { - sameDay : '[අද] LT[ට]', - nextDay : '[හෙට] LT[ට]', - nextWeek : 'dddd LT[ට]', - lastDay : '[ඊයේ] LT[ට]', - lastWeek : '[පසුගිය] dddd LT[ට]', - sameElse : 'L' - }, - relativeTime : { - future : '%sකින්', - past : '%sකට පෙර', - s : 'තත්පර කිහිපය', - ss : 'තත්පර %d', - m : 'මිනිත්තුව', - mm : 'මිනිත්තු %d', - h : 'පැය', - hh : 'පැය %d', - d : 'දිනය', - dd : 'දින %d', - M : 'මාසය', - MM : 'මාස %d', - y : 'වසර', - yy : 'වසර %d' - }, - dayOfMonthOrdinalParse: /\d{1,2} වැනි/, - ordinal : function (number) { - return number + ' වැනි'; - }, - meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, - isPM : function (input) { - return input === 'ප.ව.' || input === 'පස් වරු'; - }, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'ප.ව.' : 'පස් වරු'; - } else { - return isLower ? 'පෙ.ව.' : 'පෙර වරු'; - } - } -}); +"use strict"; -return si; -}))); +var path = __webpack_require__(2); +var which = __webpack_require__(199); +var LRU = __webpack_require__(93); +var commandCache = new LRU({ max: 50, maxAge: 30 * 1000 }); // Cache just for 30sec -/***/ }), -/* 189 */ -/***/ (function(module, exports, __webpack_require__) { +function resolveCommand(command, noExtension) { + var resolved; -//! moment.js locale configuration -//! locale : Slovak [sk] -//! author : Martin Minka : https://github.com/k2s -//! based on work of petrbela : https://github.com/petrbela - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'); -var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); -function plural(n) { - return (n > 1) && (n < 5); -} -function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekúnd'); - } else { - return result + 'sekundami'; - } - break; - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minúty' : 'minút'); - } else { - return result + 'minútami'; - } - break; - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodín'); - } else { - return result + 'hodinami'; - } - break; - case 'd': // a day / in a day / a day ago - return (withoutSuffix || isFuture) ? 'deň' : 'dňom'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dni' : 'dní'); - } else { - return result + 'dňami'; - } - break; - case 'M': // a month / in a month / a month ago - return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'mesiace' : 'mesiacov'); - } else { - return result + 'mesiacmi'; - } - break; - case 'y': // a year / in a year / a year ago - return (withoutSuffix || isFuture) ? 'rok' : 'rokom'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'rokov'); - } else { - return result + 'rokmi'; - } - break; - } -} + noExtension = !!noExtension; + resolved = commandCache.get(command + '!' + noExtension); -var sk = moment.defineLocale('sk', { - months : months, - monthsShort : monthsShort, - weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), - weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'), - weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'), - longDateFormat : { - LT: 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd D. MMMM YYYY H:mm' - }, - calendar : { - sameDay: '[dnes o] LT', - nextDay: '[zajtra o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v nedeľu o] LT'; - case 1: - case 2: - return '[v] dddd [o] LT'; - case 3: - return '[v stredu o] LT'; - case 4: - return '[vo štvrtok o] LT'; - case 5: - return '[v piatok o] LT'; - case 6: - return '[v sobotu o] LT'; - } - }, - lastDay: '[včera o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulú nedeľu o] LT'; - case 1: - case 2: - return '[minulý] dddd [o] LT'; - case 3: - return '[minulú stredu o] LT'; - case 4: - case 5: - return '[minulý] dddd [o] LT'; - case 6: - return '[minulú sobotu o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'za %s', - past : 'pred %s', - s : translate, - ss : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + // Check if its resolved in the cache + if (commandCache.has(command)) { + return commandCache.get(command); } -}); -return sk; + try { + resolved = !noExtension ? + which.sync(command) : + which.sync(command, { pathExt: path.delimiter + (process.env.PATHEXT || '') }); + } catch (e) { /* empty */ } + + commandCache.set(command + '!' + noExtension, resolved); + + return resolved; +} -}))); +module.exports = resolveCommand; /***/ }), -/* 190 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Slovenian [sl] -//! author : Robert Sedovšek : https://github.com/sedovsek - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; - case 'ss': - if (number === 1) { - result += withoutSuffix ? 'sekundo' : 'sekundi'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; - } else { - result += withoutSuffix || isFuture ? 'sekund' : 'sekund'; - } - return result; - case 'm': - return withoutSuffix ? 'ena minuta' : 'eno minuto'; - case 'mm': - if (number === 1) { - result += withoutSuffix ? 'minuta' : 'minuto'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'minute' : 'minutami'; - } else { - result += withoutSuffix || isFuture ? 'minut' : 'minutami'; - } - return result; - case 'h': - return withoutSuffix ? 'ena ura' : 'eno uro'; - case 'hh': - if (number === 1) { - result += withoutSuffix ? 'ura' : 'uro'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'uri' : 'urama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'ure' : 'urami'; - } else { - result += withoutSuffix || isFuture ? 'ur' : 'urami'; - } - return result; - case 'd': - return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; - case 'dd': - if (number === 1) { - result += withoutSuffix || isFuture ? 'dan' : 'dnem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; - } else { - result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; - } - return result; - case 'M': - return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; - case 'MM': - if (number === 1) { - result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; - } else { - result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; - } - return result; - case 'y': - return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; - case 'yy': - if (number === 1) { - result += withoutSuffix || isFuture ? 'leto' : 'letom'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'leti' : 'letoma'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'leta' : 'leti'; - } else { - result += withoutSuffix || isFuture ? 'let' : 'leti'; - } - return result; - } -} - -var sl = moment.defineLocale('sl', { - months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'), - monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), - weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), - weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[danes ob] LT', - nextDay : '[jutri ob] LT', - - nextWeek : function () { - switch (this.day()) { - case 0: - return '[v] [nedeljo] [ob] LT'; - case 3: - return '[v] [sredo] [ob] LT'; - case 6: - return '[v] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[v] dddd [ob] LT'; - } - }, - lastDay : '[včeraj ob] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - return '[prejšnjo] [nedeljo] [ob] LT'; - case 3: - return '[prejšnjo] [sredo] [ob] LT'; - case 6: - return '[prejšnjo] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prejšnji] dddd [ob] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'čez %s', - past : 'pred %s', - s : processRelativeTime, - ss : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); +"use strict"; -return sl; -}))); +module.exports = LRUCache +// This will be a proper iterable 'Map' in engines that support it, +// or a fakey-fake PseudoMap in older versions. +var Map = __webpack_require__(203) +var util = __webpack_require__(8) -/***/ }), -/* 191 */ -/***/ (function(module, exports, __webpack_require__) { +// A linked list to keep track of recently-used-ness +var Yallist = __webpack_require__(205) -//! moment.js locale configuration -//! locale : Albanian [sq] -//! author : Flakërim Ismani : https://github.com/flakerimi -//! author : Menelion Elensúle : https://github.com/Oire -//! author : Oerd Cukalla : https://github.com/oerd - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var sq = moment.defineLocale('sq', { - months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'), - monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), - weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), - weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), - weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'), - weekdaysParseExact : true, - meridiemParse: /PD|MD/, - isPM: function (input) { - return input.charAt(0) === 'M'; - }, - meridiem : function (hours, minutes, isLower) { - return hours < 12 ? 'PD' : 'MD'; - }, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Sot në] LT', - nextDay : '[Nesër në] LT', - nextWeek : 'dddd [në] LT', - lastDay : '[Dje në] LT', - lastWeek : 'dddd [e kaluar në] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'në %s', - past : '%s më parë', - s : 'disa sekonda', - ss : '%d sekonda', - m : 'një minutë', - mm : '%d minuta', - h : 'një orë', - hh : '%d orë', - d : 'një ditë', - dd : '%d ditë', - M : 'një muaj', - MM : '%d muaj', - y : 'një vit', - yy : '%d vite' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); +// use symbols if possible, otherwise just _props +var hasSymbol = typeof Symbol === 'function' +var makeSymbol +if (hasSymbol) { + makeSymbol = function (key) { + return Symbol.for(key) + } +} else { + makeSymbol = function (key) { + return '_' + key + } +} -return sq; +var MAX = makeSymbol('max') +var LENGTH = makeSymbol('length') +var LENGTH_CALCULATOR = makeSymbol('lengthCalculator') +var ALLOW_STALE = makeSymbol('allowStale') +var MAX_AGE = makeSymbol('maxAge') +var DISPOSE = makeSymbol('dispose') +var NO_DISPOSE_ON_SET = makeSymbol('noDisposeOnSet') +var LRU_LIST = makeSymbol('lruList') +var CACHE = makeSymbol('cache') -}))); +function naiveLength () { return 1 } +// lruList is a yallist where the head is the youngest +// item, and the tail is the oldest. the list contains the Hit +// objects as the entries. +// Each Hit object has a reference to its Yallist.Node. This +// never changes. +// +// cache is a Map (or PseudoMap) that matches the keys to +// the Yallist.Node object. +function LRUCache (options) { + if (!(this instanceof LRUCache)) { + return new LRUCache(options) + } -/***/ }), -/* 192 */ -/***/ (function(module, exports, __webpack_require__) { + if (typeof options === 'number') { + options = { max: options } + } -//! moment.js locale configuration -//! locale : Serbian [sr] -//! author : Milan Janačković : https://github.com/milan-j - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var translator = { - words: { //Different grammatical cases - ss: ['sekunda', 'sekunde', 'sekundi'], - m: ['jedan minut', 'jedne minute'], - mm: ['minut', 'minute', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mesec', 'meseca', 'meseci'], - yy: ['godina', 'godine', 'godina'] - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - } -}; + if (!options) { + options = {} + } -var sr = moment.defineLocale('sr', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm', - LTS : 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedelju] [u] LT'; - case 3: - return '[u] [sredu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[juče u] LT', - lastWeek : function () { - var lastWeekDays = [ - '[prošle] [nedelje] [u] LT', - '[prošlog] [ponedeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ]; - return lastWeekDays[this.day()]; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'pre %s', - s : 'nekoliko sekundi', - ss : translator.translate, - m : translator.translate, - mm : translator.translate, - h : translator.translate, - hh : translator.translate, - d : 'dan', - dd : translator.translate, - M : 'mesec', - MM : translator.translate, - y : 'godinu', - yy : translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); + var max = this[MAX] = options.max + // Kind of weird to have a default max of Infinity, but oh well. + if (!max || + !(typeof max === 'number') || + max <= 0) { + this[MAX] = Infinity + } -return sr; + var lc = options.length || naiveLength + if (typeof lc !== 'function') { + lc = naiveLength + } + this[LENGTH_CALCULATOR] = lc -}))); + this[ALLOW_STALE] = options.stale || false + this[MAX_AGE] = options.maxAge || 0 + this[DISPOSE] = options.dispose + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false + this.reset() +} +// resize the cache when the max changes. +Object.defineProperty(LRUCache.prototype, 'max', { + set: function (mL) { + if (!mL || !(typeof mL === 'number') || mL <= 0) { + mL = Infinity + } + this[MAX] = mL + trim(this) + }, + get: function () { + return this[MAX] + }, + enumerable: true +}) -/***/ }), -/* 193 */ -/***/ (function(module, exports, __webpack_require__) { +Object.defineProperty(LRUCache.prototype, 'allowStale', { + set: function (allowStale) { + this[ALLOW_STALE] = !!allowStale + }, + get: function () { + return this[ALLOW_STALE] + }, + enumerable: true +}) -//! moment.js locale configuration -//! locale : Serbian Cyrillic [sr-cyrl] -//! author : Milan Janačković : https://github.com/milan-j - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var translator = { - words: { //Different grammatical cases - ss: ['секунда', 'секунде', 'секунди'], - m: ['један минут', 'једне минуте'], - mm: ['минут', 'минуте', 'минута'], - h: ['један сат', 'једног сата'], - hh: ['сат', 'сата', 'сати'], - dd: ['дан', 'дана', 'дана'], - MM: ['месец', 'месеца', 'месеци'], - yy: ['година', 'године', 'година'] - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } +Object.defineProperty(LRUCache.prototype, 'maxAge', { + set: function (mA) { + if (!mA || !(typeof mA === 'number') || mA < 0) { + mA = 0 } -}; + this[MAX_AGE] = mA + trim(this) + }, + get: function () { + return this[MAX_AGE] + }, + enumerable: true +}) -var srCyrl = moment.defineLocale('sr-cyrl', { - months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'), - monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'), - monthsParseExact: true, - weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), - weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), - weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm', - LTS : 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[данас у] LT', - nextDay: '[сутра у] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[у] [недељу] [у] LT'; - case 3: - return '[у] [среду] [у] LT'; - case 6: - return '[у] [суботу] [у] LT'; - case 1: - case 2: - case 4: - case 5: - return '[у] dddd [у] LT'; - } - }, - lastDay : '[јуче у] LT', - lastWeek : function () { - var lastWeekDays = [ - '[прошле] [недеље] [у] LT', - '[прошлог] [понедељка] [у] LT', - '[прошлог] [уторка] [у] LT', - '[прошле] [среде] [у] LT', - '[прошлог] [четвртка] [у] LT', - '[прошлог] [петка] [у] LT', - '[прошле] [суботе] [у] LT' - ]; - return lastWeekDays[this.day()]; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'за %s', - past : 'пре %s', - s : 'неколико секунди', - ss : translator.translate, - m : translator.translate, - mm : translator.translate, - h : translator.translate, - hh : translator.translate, - d : 'дан', - dd : translator.translate, - M : 'месец', - MM : translator.translate, - y : 'годину', - yy : translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. +// resize the cache when the lengthCalculator changes. +Object.defineProperty(LRUCache.prototype, 'lengthCalculator', { + set: function (lC) { + if (typeof lC !== 'function') { + lC = naiveLength } -}); - -return srCyrl; + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC + this[LENGTH] = 0 + this[LRU_LIST].forEach(function (hit) { + hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) + this[LENGTH] += hit.length + }, this) + } + trim(this) + }, + get: function () { return this[LENGTH_CALCULATOR] }, + enumerable: true +}) -}))); +Object.defineProperty(LRUCache.prototype, 'length', { + get: function () { return this[LENGTH] }, + enumerable: true +}) +Object.defineProperty(LRUCache.prototype, 'itemCount', { + get: function () { return this[LRU_LIST].length }, + enumerable: true +}) -/***/ }), -/* 194 */ -/***/ (function(module, exports, __webpack_require__) { +LRUCache.prototype.rforEach = function (fn, thisp) { + thisp = thisp || this + for (var walker = this[LRU_LIST].tail; walker !== null;) { + var prev = walker.prev + forEachStep(this, fn, walker, thisp) + walker = prev + } +} -//! moment.js locale configuration -//! locale : siSwati [ss] -//! author : Nicolai Davies : https://github.com/nicolaidavies - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - - -var ss = moment.defineLocale('ss', { - months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'), - monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), - weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'), - weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), - weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Namuhla nga] LT', - nextDay : '[Kusasa nga] LT', - nextWeek : 'dddd [nga] LT', - lastDay : '[Itolo nga] LT', - lastWeek : 'dddd [leliphelile] [nga] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'nga %s', - past : 'wenteka nga %s', - s : 'emizuzwana lomcane', - ss : '%d mzuzwana', - m : 'umzuzu', - mm : '%d emizuzu', - h : 'lihora', - hh : '%d emahora', - d : 'lilanga', - dd : '%d emalanga', - M : 'inyanga', - MM : '%d tinyanga', - y : 'umnyaka', - yy : '%d iminyaka' - }, - meridiemParse: /ekuseni|emini|entsambama|ebusuku/, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'ekuseni'; - } else if (hours < 15) { - return 'emini'; - } else if (hours < 19) { - return 'entsambama'; - } else { - return 'ebusuku'; - } - }, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ekuseni') { - return hour; - } else if (meridiem === 'emini') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { - if (hour === 0) { - return 0; - } - return hour + 12; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal : '%d', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. +function forEachStep (self, fn, node, thisp) { + var hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) { + hit = undefined } -}); + } + if (hit) { + fn.call(thisp, hit.value, hit.key, self) + } +} + +LRUCache.prototype.forEach = function (fn, thisp) { + thisp = thisp || this + for (var walker = this[LRU_LIST].head; walker !== null;) { + var next = walker.next + forEachStep(this, fn, walker, thisp) + walker = next + } +} -return ss; +LRUCache.prototype.keys = function () { + return this[LRU_LIST].toArray().map(function (k) { + return k.key + }, this) +} -}))); +LRUCache.prototype.values = function () { + return this[LRU_LIST].toArray().map(function (k) { + return k.value + }, this) +} +LRUCache.prototype.reset = function () { + if (this[DISPOSE] && + this[LRU_LIST] && + this[LRU_LIST].length) { + this[LRU_LIST].forEach(function (hit) { + this[DISPOSE](hit.key, hit.value) + }, this) + } -/***/ }), -/* 195 */ -/***/ (function(module, exports, __webpack_require__) { + this[CACHE] = new Map() // hash of items by key + this[LRU_LIST] = new Yallist() // list of items in order of use recency + this[LENGTH] = 0 // length of items in the list +} -//! moment.js locale configuration -//! locale : Swedish [sv] -//! author : Jens Alm : https://github.com/ulmus - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var sv = moment.defineLocale('sv', { - months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'), - monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), - weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'), - weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [kl.] HH:mm', - LLLL : 'dddd D MMMM YYYY [kl.] HH:mm', - lll : 'D MMM YYYY HH:mm', - llll : 'ddd D MMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Idag] LT', - nextDay: '[Imorgon] LT', - lastDay: '[Igår] LT', - nextWeek: '[På] dddd LT', - lastWeek: '[I] dddd[s] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'om %s', - past : 'för %s sedan', - s : 'några sekunder', - ss : '%d sekunder', - m : 'en minut', - mm : '%d minuter', - h : 'en timme', - hh : '%d timmar', - d : 'en dag', - dd : '%d dagar', - M : 'en månad', - MM : '%d månader', - y : 'ett år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'e' : - (b === 1) ? 'a' : - (b === 2) ? 'a' : - (b === 3) ? 'e' : 'e'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. +LRUCache.prototype.dump = function () { + return this[LRU_LIST].map(function (hit) { + if (!isStale(this, hit)) { + return { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + } } -}); + }, this).toArray().filter(function (h) { + return h + }) +} -return sv; +LRUCache.prototype.dumpLru = function () { + return this[LRU_LIST] +} -}))); +LRUCache.prototype.inspect = function (n, opts) { + var str = 'LRUCache {' + var extras = false + var as = this[ALLOW_STALE] + if (as) { + str += '\n allowStale: true' + extras = true + } -/***/ }), -/* 196 */ -/***/ (function(module, exports, __webpack_require__) { + var max = this[MAX] + if (max && max !== Infinity) { + if (extras) { + str += ',' + } + str += '\n max: ' + util.inspect(max, opts) + extras = true + } -//! moment.js locale configuration -//! locale : Swahili [sw] -//! author : Fahad Kassim : https://github.com/fadsel - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var sw = moment.defineLocale('sw', { - months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'), - monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), - weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'), - weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), - weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[leo saa] LT', - nextDay : '[kesho saa] LT', - nextWeek : '[wiki ijayo] dddd [saat] LT', - lastDay : '[jana] LT', - lastWeek : '[wiki iliyopita] dddd [saat] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s baadaye', - past : 'tokea %s', - s : 'hivi punde', - ss : 'sekunde %d', - m : 'dakika moja', - mm : 'dakika %d', - h : 'saa limoja', - hh : 'masaa %d', - d : 'siku moja', - dd : 'masiku %d', - M : 'mwezi mmoja', - MM : 'miezi %d', - y : 'mwaka mmoja', - yy : 'miaka %d' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + var maxAge = this[MAX_AGE] + if (maxAge) { + if (extras) { + str += ',' } -}); + str += '\n maxAge: ' + util.inspect(maxAge, opts) + extras = true + } + + var lc = this[LENGTH_CALCULATOR] + if (lc && lc !== naiveLength) { + if (extras) { + str += ',' + } + str += '\n length: ' + util.inspect(this[LENGTH], opts) + extras = true + } -return sw; + var didFirst = false + this[LRU_LIST].forEach(function (item) { + if (didFirst) { + str += ',\n ' + } else { + if (extras) { + str += ',\n' + } + didFirst = true + str += '\n ' + } + var key = util.inspect(item.key).split('\n').join('\n ') + var val = { value: item.value } + if (item.maxAge !== maxAge) { + val.maxAge = item.maxAge + } + if (lc !== naiveLength) { + val.length = item.length + } + if (isStale(this, item)) { + val.stale = true + } -}))); + val = util.inspect(val, opts).split('\n').join('\n ') + str += key + ' => ' + val + }) + if (didFirst || extras) { + str += '\n' + } + str += '}' -/***/ }), -/* 197 */ -/***/ (function(module, exports, __webpack_require__) { + return str +} -//! moment.js locale configuration -//! locale : Tamil [ta] -//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var symbolMap = { - '1': '௧', - '2': '௨', - '3': '௩', - '4': '௪', - '5': '௫', - '6': '௬', - '7': '௭', - '8': '௮', - '9': '௯', - '0': '௦' -}; -var numberMap = { - '௧': '1', - '௨': '2', - '௩': '3', - '௪': '4', - '௫': '5', - '௬': '6', - '௭': '7', - '௮': '8', - '௯': '9', - '௦': '0' -}; +LRUCache.prototype.set = function (key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE] -var ta = moment.defineLocale('ta', { - months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), - monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), - weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'), - weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'), - weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, HH:mm', - LLLL : 'dddd, D MMMM YYYY, HH:mm' - }, - calendar : { - sameDay : '[இன்று] LT', - nextDay : '[நாளை] LT', - nextWeek : 'dddd, LT', - lastDay : '[நேற்று] LT', - lastWeek : '[கடந்த வாரம்] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s இல்', - past : '%s முன்', - s : 'ஒரு சில விநாடிகள்', - ss : '%d விநாடிகள்', - m : 'ஒரு நிமிடம்', - mm : '%d நிமிடங்கள்', - h : 'ஒரு மணி நேரம்', - hh : '%d மணி நேரம்', - d : 'ஒரு நாள்', - dd : '%d நாட்கள்', - M : 'ஒரு மாதம்', - MM : '%d மாதங்கள்', - y : 'ஒரு வருடம்', - yy : '%d ஆண்டுகள்' - }, - dayOfMonthOrdinalParse: /\d{1,2}வது/, - ordinal : function (number) { - return number + 'வது'; - }, - preparse: function (string) { - return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // refer http://ta.wikipedia.org/s/1er1 - meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, - meridiem : function (hour, minute, isLower) { - if (hour < 2) { - return ' யாமம்'; - } else if (hour < 6) { - return ' வைகறை'; // வைகறை - } else if (hour < 10) { - return ' காலை'; // காலை - } else if (hour < 14) { - return ' நண்பகல்'; // நண்பகல் - } else if (hour < 18) { - return ' எற்பாடு'; // எற்பாடு - } else if (hour < 22) { - return ' மாலை'; // மாலை - } else { - return ' யாமம்'; - } - }, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'யாமம்') { - return hour < 2 ? hour : hour + 12; - } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { - return hour; - } else if (meridiem === 'நண்பகல்') { - return hour >= 10 ? hour : hour + 12; - } else { - return hour + 12; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + var now = maxAge ? Date.now() : 0 + var len = this[LENGTH_CALCULATOR](value, key) + + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + del(this, this[CACHE].get(key)) + return false } -}); -return ta; + var node = this[CACHE].get(key) + var item = node.value -}))); + // dispose of the old one before overwriting + // split out into 2 ifs for better coverage tracking + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) { + this[DISPOSE](key, item.value) + } + } + item.now = now + item.maxAge = maxAge + item.value = value + this[LENGTH] += len - item.length + item.length = len + this.get(key) + trim(this) + return true + } -/***/ }), -/* 198 */ -/***/ (function(module, exports, __webpack_require__) { + var hit = new Entry(key, value, len, now, maxAge) -//! moment.js locale configuration -//! locale : Telugu [te] -//! author : Krishna Chaitanya Thota : https://github.com/kcthota - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var te = moment.defineLocale('te', { - months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'), - monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'), - monthsParseExact : true, - weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'), - weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), - weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm', - LLLL : 'dddd, D MMMM YYYY, A h:mm' - }, - calendar : { - sameDay : '[నేడు] LT', - nextDay : '[రేపు] LT', - nextWeek : 'dddd, LT', - lastDay : '[నిన్న] LT', - lastWeek : '[గత] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s లో', - past : '%s క్రితం', - s : 'కొన్ని క్షణాలు', - ss : '%d సెకన్లు', - m : 'ఒక నిమిషం', - mm : '%d నిమిషాలు', - h : 'ఒక గంట', - hh : '%d గంటలు', - d : 'ఒక రోజు', - dd : '%d రోజులు', - M : 'ఒక నెల', - MM : '%d నెలలు', - y : 'ఒక సంవత్సరం', - yy : '%d సంవత్సరాలు' - }, - dayOfMonthOrdinalParse : /\d{1,2}వ/, - ordinal : '%dవ', - meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'రాత్రి') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ఉదయం') { - return hour; - } else if (meridiem === 'మధ్యాహ్నం') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'సాయంత్రం') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'రాత్రి'; - } else if (hour < 10) { - return 'ఉదయం'; - } else if (hour < 17) { - return 'మధ్యాహ్నం'; - } else if (hour < 20) { - return 'సాయంత్రం'; - } else { - return 'రాత్రి'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + // oversized objects fall out of cache automatically. + if (hit.length > this[MAX]) { + if (this[DISPOSE]) { + this[DISPOSE](key, value) } -}); + return false + } -return te; + this[LENGTH] += hit.length + this[LRU_LIST].unshift(hit) + this[CACHE].set(key, this[LRU_LIST].head) + trim(this) + return true +} -}))); +LRUCache.prototype.has = function (key) { + if (!this[CACHE].has(key)) return false + var hit = this[CACHE].get(key).value + if (isStale(this, hit)) { + return false + } + return true +} +LRUCache.prototype.get = function (key) { + return get(this, key, true) +} -/***/ }), -/* 199 */ -/***/ (function(module, exports, __webpack_require__) { +LRUCache.prototype.peek = function (key) { + return get(this, key, false) +} + +LRUCache.prototype.pop = function () { + var node = this[LRU_LIST].tail + if (!node) return null + del(this, node) + return node.value +} + +LRUCache.prototype.del = function (key) { + del(this, this[CACHE].get(key)) +} + +LRUCache.prototype.load = function (arr) { + // reset the cache + this.reset() + + var now = Date.now() + // A previous serialized cache has the most recent items first + for (var l = arr.length - 1; l >= 0; l--) { + var hit = arr[l] + var expiresAt = hit.e || 0 + if (expiresAt === 0) { + // the item was created without expiration in a non aged cache + this.set(hit.k, hit.v) + } else { + var maxAge = expiresAt - now + // dont add already expired items + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge) + } + } + } +} + +LRUCache.prototype.prune = function () { + var self = this + this[CACHE].forEach(function (value, key) { + get(self, key, false) + }) +} + +function get (self, key, doUse) { + var node = self[CACHE].get(key) + if (node) { + var hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) hit = undefined + } else { + if (doUse) { + self[LRU_LIST].unshiftNode(node) + } + } + if (hit) hit = hit.value + } + return hit +} + +function isStale (self, hit) { + if (!hit || (!hit.maxAge && !self[MAX_AGE])) { + return false + } + var stale = false + var diff = Date.now() - hit.now + if (hit.maxAge) { + stale = diff > hit.maxAge + } else { + stale = self[MAX_AGE] && (diff > self[MAX_AGE]) + } + return stale +} -//! moment.js locale configuration -//! locale : Tetun Dili (East Timor) [tet] -//! author : Joshua Brooks : https://github.com/joshbrooks -//! author : Onorio De J. Afonso : https://github.com/marobo - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var tet = moment.defineLocale('tet', { - months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'), - monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'), - weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'), - weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'), - weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Ohin iha] LT', - nextDay: '[Aban iha] LT', - nextWeek: 'dddd [iha] LT', - lastDay: '[Horiseik iha] LT', - lastWeek: 'dddd [semana kotuk] [iha] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'iha %s', - past : '%s liuba', - s : 'minutu balun', - ss : 'minutu %d', - m : 'minutu ida', - mm : 'minutus %d', - h : 'horas ida', - hh : 'horas %d', - d : 'loron ida', - dd : 'loron %d', - M : 'fulan ida', - MM : 'fulan %d', - y : 'tinan ida', - yy : 'tinan %d' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. +function trim (self) { + if (self[LENGTH] > self[MAX]) { + for (var walker = self[LRU_LIST].tail; + self[LENGTH] > self[MAX] && walker !== null;) { + // We know that we're about to delete this one, and also + // what the next least recently used key will be, so just + // go ahead and set it now. + var prev = walker.prev + del(self, walker) + walker = prev } -}); + } +} -return tet; +function del (self, node) { + if (node) { + var hit = node.value + if (self[DISPOSE]) { + self[DISPOSE](hit.key, hit.value) + } + self[LENGTH] -= hit.length + self[CACHE].delete(hit.key) + self[LRU_LIST].removeNode(node) + } +} -}))); +// classy, since V8 prefers predictable objects. +function Entry (key, value, length, now, maxAge) { + this.key = key + this.value = value + this.length = length + this.now = now + this.maxAge = maxAge || 0 +} /***/ }), -/* 200 */ +/* 94 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Thai [th] -//! author : Kridsada Thanabulpong : https://github.com/sirn - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var th = moment.defineLocale('th', { - months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), - monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), - monthsParseExact: true, - weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), - weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference - weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY เวลา H:mm', - LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm' - }, - meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, - isPM: function (input) { - return input === 'หลังเที่ยง'; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ก่อนเที่ยง'; - } else { - return 'หลังเที่ยง'; - } - }, - calendar : { - sameDay : '[วันนี้ เวลา] LT', - nextDay : '[พรุ่งนี้ เวลา] LT', - nextWeek : 'dddd[หน้า เวลา] LT', - lastDay : '[เมื่อวานนี้ เวลา] LT', - lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'อีก %s', - past : '%sที่แล้ว', - s : 'ไม่กี่วินาที', - ss : '%d วินาที', - m : '1 นาที', - mm : '%d นาที', - h : '1 ชั่วโมง', - hh : '%d ชั่วโมง', - d : '1 วัน', - dd : '%d วัน', - M : '1 เดือน', - MM : '%d เดือน', - y : '1 ปี', - yy : '%d ปี' - } -}); +"use strict"; + -return th; +function escapeArgument(arg, quote) { + // Convert to string + arg = '' + arg; -}))); + // If we are not going to quote the argument, + // escape shell metacharacters, including double and single quotes: + if (!quote) { + arg = arg.replace(/([()%!^<>&|;,"'\s])/g, '^$1'); + } else { + // Sequence of backslashes followed by a double quote: + // double up all the backslashes and escape the double quote + arg = arg.replace(/(\\*)"/g, '$1$1\\"'); + // Sequence of backslashes followed by the end of the string + // (which will become a double quote later): + // double up all the backslashes + arg = arg.replace(/(\\*)$/, '$1$1'); -/***/ }), -/* 201 */ -/***/ (function(module, exports, __webpack_require__) { + // All other backslashes occur literally -//! moment.js locale configuration -//! locale : Tagalog (Philippines) [tl-ph] -//! author : Dan Hagman : https://github.com/hagmandan - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var tlPh = moment.defineLocale('tl-ph', { - months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'), - monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), - weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'MM/D/YYYY', - LL : 'MMMM D, YYYY', - LLL : 'MMMM D, YYYY HH:mm', - LLLL : 'dddd, MMMM DD, YYYY HH:mm' - }, - calendar : { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L' - }, - relativeTime : { - future : 'sa loob ng %s', - past : '%s ang nakalipas', - s : 'ilang segundo', - ss : '%d segundo', - m : 'isang minuto', - mm : '%d minuto', - h : 'isang oras', - hh : '%d oras', - d : 'isang araw', - dd : '%d araw', - M : 'isang buwan', - MM : '%d buwan', - y : 'isang taon', - yy : '%d taon' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal : function (number) { - return number; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + // Quote the whole thing: + arg = '"' + arg + '"'; } -}); -return tlPh; + return arg; +} -}))); +module.exports = escapeArgument; /***/ }), -/* 202 */ +/* 95 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Klingon [tlh] -//! author : Dominika Kruk : https://github.com/amaranthrose - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); - -function translateFuture(output) { - var time = output; - time = (output.indexOf('jaj') !== -1) ? - time.slice(0, -3) + 'leS' : - (output.indexOf('jar') !== -1) ? - time.slice(0, -3) + 'waQ' : - (output.indexOf('DIS') !== -1) ? - time.slice(0, -3) + 'nem' : - time + ' pIq'; - return time; -} - -function translatePast(output) { - var time = output; - time = (output.indexOf('jaj') !== -1) ? - time.slice(0, -3) + 'Hu’' : - (output.indexOf('jar') !== -1) ? - time.slice(0, -3) + 'wen' : - (output.indexOf('DIS') !== -1) ? - time.slice(0, -3) + 'ben' : - time + ' ret'; - return time; -} - -function translate(number, withoutSuffix, string, isFuture) { - var numberNoun = numberAsNoun(number); - switch (string) { - case 'ss': - return numberNoun + ' lup'; - case 'mm': - return numberNoun + ' tup'; - case 'hh': - return numberNoun + ' rep'; - case 'dd': - return numberNoun + ' jaj'; - case 'MM': - return numberNoun + ' jar'; - case 'yy': - return numberNoun + ' DIS'; - } -} - -function numberAsNoun(number) { - var hundred = Math.floor((number % 1000) / 100), - ten = Math.floor((number % 100) / 10), - one = number % 10, - word = ''; - if (hundred > 0) { - word += numbersNouns[hundred] + 'vatlh'; - } - if (ten > 0) { - word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH'; - } - if (one > 0) { - word += ((word !== '') ? ' ' : '') + numbersNouns[one]; - } - return (word === '') ? 'pagh' : word; -} - -var tlh = moment.defineLocale('tlh', { - months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'), - monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'), - monthsParseExact : true, - weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[DaHjaj] LT', - nextDay: '[wa’leS] LT', - nextWeek: 'LLL', - lastDay: '[wa’Hu’] LT', - lastWeek: 'LLL', - sameElse: 'L' - }, - relativeTime : { - future : translateFuture, - past : translatePast, - s : 'puS lup', - ss : translate, - m : 'wa’ tup', - mm : translate, - h : 'wa’ rep', - hh : translate, - d : 'wa’ jaj', - dd : translate, - M : 'wa’ jar', - MM : translate, - y : 'wa’ DIS', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return tlh; - -}))); +"use strict"; +const chalk = __webpack_require__(222); -/***/ }), -/* 203 */ -/***/ (function(module, exports, __webpack_require__) { +const isSupported = process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color'; -//! moment.js locale configuration -//! locale : Turkish [tr] -//! authors : Erhan Gundogan : https://github.com/erhangundogan, -//! Burak Yiğit Kaya: https://github.com/BYK - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var suffixes = { - 1: '\'inci', - 5: '\'inci', - 8: '\'inci', - 70: '\'inci', - 80: '\'inci', - 2: '\'nci', - 7: '\'nci', - 20: '\'nci', - 50: '\'nci', - 3: '\'üncü', - 4: '\'üncü', - 100: '\'üncü', - 6: '\'ncı', - 9: '\'uncu', - 10: '\'uncu', - 30: '\'uncu', - 60: '\'ıncı', - 90: '\'ıncı' +const main = { + info: chalk.blue('ℹ'), + success: chalk.green('✔'), + warning: chalk.yellow('⚠'), + error: chalk.red('✖') }; -var tr = moment.defineLocale('tr', { - months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'), - monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), - weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), - weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), - weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[bugün saat] LT', - nextDay : '[yarın saat] LT', - nextWeek : '[gelecek] dddd [saat] LT', - lastDay : '[dün] LT', - lastWeek : '[geçen] dddd [saat] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s sonra', - past : '%s önce', - s : 'birkaç saniye', - ss : '%d saniye', - m : 'bir dakika', - mm : '%d dakika', - h : 'bir saat', - hh : '%d saat', - d : 'bir gün', - dd : '%d gün', - M : 'bir ay', - MM : '%d ay', - y : 'bir yıl', - yy : '%d yıl' - }, - dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, - ordinal : function (number) { - if (number === 0) { // special case for zero - return number + '\'ıncı'; - } - var a = number % 10, - b = number % 100 - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); - -return tr; +const fallbacks = { + info: chalk.blue('i'), + success: chalk.green('√'), + warning: chalk.yellow('‼'), + error: chalk.red('×') +}; -}))); +module.exports = isSupported ? main : fallbacks; /***/ }), -/* 204 */ +/* 96 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Talossan [tzl] -//! author : Robin van der Vliet : https://github.com/robin0van0der0v -//! author : Iustì Canun - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -// After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. -// This is currently too difficult (maybe even impossible) to add. -var tzl = moment.defineLocale('tzl', { - months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'), - monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), - weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), - weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), - weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM [dallas] YYYY', - LLL : 'D. MMMM [dallas] YYYY HH.mm', - LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' - }, - meridiemParse: /d\'o|d\'a/i, - isPM : function (input) { - return 'd\'o' === input.toLowerCase(); - }, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'd\'o' : 'D\'O'; - } else { - return isLower ? 'd\'a' : 'D\'A'; - } - }, - calendar : { - sameDay : '[oxhi à] LT', - nextDay : '[demà à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[ieiri à] LT', - lastWeek : '[sür el] dddd [lasteu à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'osprei %s', - past : 'ja%s', - s : processRelativeTime, - ss : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 's': ['viensas secunds', '\'iensas secunds'], - 'ss': [number + ' secunds', '' + number + ' secunds'], - 'm': ['\'n míut', '\'iens míut'], - 'mm': [number + ' míuts', '' + number + ' míuts'], - 'h': ['\'n þora', '\'iensa þora'], - 'hh': [number + ' þoras', '' + number + ' þoras'], - 'd': ['\'n ziua', '\'iensa ziua'], - 'dd': [number + ' ziuas', '' + number + ' ziuas'], - 'M': ['\'n mes', '\'iens mes'], - 'MM': [number + ' mesen', '' + number + ' mesen'], - 'y': ['\'n ar', '\'iens ar'], - 'yy': [number + ' ars', '' + number + ' ars'] - }; - return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]); -} - -return tzl; - -}))); +"use strict"; +// Copyright IBM Corp. 2014,2018. All Rights Reserved. +// Node module: strong-log-transformer +// This file is licensed under the Apache License 2.0. +// License text available at https://opensource.org/licenses/Apache-2.0 -/***/ }), -/* 205 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Central Atlas Tamazight [tzm] -//! author : Abdel Said : https://github.com/abdelsaid - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var tzm = moment.defineLocale('tzm', { - months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), - monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), - weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS: 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', - nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', - nextWeek: 'dddd [ⴴ] LT', - lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', - lastWeek: 'dddd [ⴴ] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', - past : 'ⵢⴰⵏ %s', - s : 'ⵉⵎⵉⴽ', - ss : '%d ⵉⵎⵉⴽ', - m : 'ⵎⵉⵏⵓⴺ', - mm : '%d ⵎⵉⵏⵓⴺ', - h : 'ⵙⴰⵄⴰ', - hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', - d : 'ⴰⵙⵙ', - dd : '%d oⵙⵙⴰⵏ', - M : 'ⴰⵢoⵓⵔ', - MM : '%d ⵉⵢⵢⵉⵔⵏ', - y : 'ⴰⵙⴳⴰⵙ', - yy : '%d ⵉⵙⴳⴰⵙⵏ' - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } -}); +var stream = __webpack_require__(21); +var util = __webpack_require__(8); +var fs = __webpack_require__(6); -return tzm; +var byline = __webpack_require__(228); +var through = __webpack_require__(230); +var duplexer = __webpack_require__(231); -}))); +module.exports = Logger; +Logger.DEFAULTS = { + format: 'text', + tag: '', + mergeMultiline: false, + timeStamp: false, +}; -/***/ }), -/* 206 */ -/***/ (function(module, exports, __webpack_require__) { +var formatters = { + text: textFormatter, + json: jsonFormatter, +} -//! moment.js locale configuration -//! locale : Central Atlas Tamazight Latin [tzm-latn] -//! author : Abdel Said : https://github.com/abdelsaid - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var tzmLatn = moment.defineLocale('tzm-latn', { - months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), - monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), - weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[asdkh g] LT', - nextDay: '[aska g] LT', - nextWeek: 'dddd [g] LT', - lastDay: '[assant g] LT', - lastWeek: 'dddd [g] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'dadkh s yan %s', - past : 'yan %s', - s : 'imik', - ss : '%d imik', - m : 'minuḍ', - mm : '%d minuḍ', - h : 'saɛa', - hh : '%d tassaɛin', - d : 'ass', - dd : '%d ossan', - M : 'ayowr', - MM : '%d iyyirn', - y : 'asgas', - yy : '%d isgasn' - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } -}); +function Logger(options) { + var defaults = JSON.parse(JSON.stringify(Logger.DEFAULTS)); + options = util._extend(defaults, options || {}); + var catcher = new byline.LineStream; + var emitter = catcher; + var transforms = [ + objectifier(), + ]; -return tzmLatn; + if (options.tag) { + transforms.push(staticTagger(options.tag)); + } -}))); + if (options.mergeMultiline) { + transforms.push(lineMerger()); + } + // TODO + // if (options.pidStamp) { + // transforms.push(pidStamper(options.pid)); + // } -/***/ }), -/* 207 */ -/***/ (function(module, exports, __webpack_require__) { + // TODO + // if (options.workerStamp) { + // transforms.push(workerStamper(options.worker)); + // } -//! moment.js locale configuration -//! locale : Ukrainian [uk] -//! author : zemlanin : https://github.com/zemlanin -//! Author : Menelion Elensúle : https://github.com/Oire + transforms.push(formatters[options.format](options)); -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; + // restore line endings that were removed by byline + transforms.push(reLiner()); + for (var t in transforms) { + emitter = emitter.pipe(transforms[t]); + } -function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); -} -function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', - 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', - 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин', - 'dd': 'день_дні_днів', - 'MM': 'місяць_місяці_місяців', - 'yy': 'рік_роки_років' - }; - if (key === 'm') { - return withoutSuffix ? 'хвилина' : 'хвилину'; - } - else if (key === 'h') { - return withoutSuffix ? 'година' : 'годину'; - } - else { - return number + ' ' + plural(format[key], +number); - } + return duplexer(catcher, emitter); } -function weekdaysCaseReplace(m, format) { - var weekdays = { - 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'), - 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'), - 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_') - }; - if (!m) { - return weekdays['nominative']; - } +function reLiner() { + return through(appendNewline); - var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ? - 'accusative' : - ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ? - 'genitive' : - 'nominative'); - return weekdays[nounCase][m.day()]; -} -function processHoursFunction(str) { - return function () { - return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; - }; + function appendNewline(line) { + this.emit('data', line + '\n'); + } } -var uk = moment.defineLocale('uk', { - months : { - 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'), - 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_') - }, - monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'), - weekdays : weekdaysCaseReplace, - weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY р.', - LLL : 'D MMMM YYYY р., HH:mm', - LLLL : 'dddd, D MMMM YYYY р., HH:mm' - }, - calendar : { - sameDay: processHoursFunction('[Сьогодні '), - nextDay: processHoursFunction('[Завтра '), - lastDay: processHoursFunction('[Вчора '), - nextWeek: processHoursFunction('[У] dddd ['), - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return processHoursFunction('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return processHoursFunction('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'за %s', - past : '%s тому', - s : 'декілька секунд', - ss : relativeTimeWithPlural, - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : 'годину', - hh : relativeTimeWithPlural, - d : 'день', - dd : relativeTimeWithPlural, - M : 'місяць', - MM : relativeTimeWithPlural, - y : 'рік', - yy : relativeTimeWithPlural - }, - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - meridiemParse: /ночі|ранку|дня|вечора/, - isPM: function (input) { - return /^(дня|вечора)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ночі'; - } else if (hour < 12) { - return 'ранку'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечора'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-й'; - case 'D': - return number + '-го'; - default: - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } -}); - -return uk; +function objectifier() { + return through(objectify, null, {autoDestroy: false}); -}))); + function objectify(line) { + this.emit('data', { + msg: line, + time: Date.now(), + }); + } +} +function staticTagger(tag) { + return through(tagger); -/***/ }), -/* 208 */ -/***/ (function(module, exports, __webpack_require__) { + function tagger(logEvent) { + logEvent.tag = tag; + this.emit('data', logEvent); + } +} -//! moment.js locale configuration -//! locale : Urdu [ur] -//! author : Sawood Alam : https://github.com/ibnesayeed -//! author : Zack : https://github.com/ZackVision - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var months = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر' -]; -var days = [ - 'اتوار', - 'پیر', - 'منگل', - 'بدھ', - 'جمعرات', - 'جمعہ', - 'ہفتہ' -]; +function textFormatter(options) { + return through(textify); -var ur = moment.defineLocale('ur', { - months : months, - monthsShort : months, - weekdays : days, - weekdaysShort : days, - weekdaysMin : days, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM : function (input) { - return 'شام' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar : { - sameDay : '[آج بوقت] LT', - nextDay : '[کل بوقت] LT', - nextWeek : 'dddd [بوقت] LT', - lastDay : '[گذشتہ روز بوقت] LT', - lastWeek : '[گذشتہ] dddd [بوقت] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s بعد', - past : '%s قبل', - s : 'چند سیکنڈ', - ss : '%d سیکنڈ', - m : 'ایک منٹ', - mm : '%d منٹ', - h : 'ایک گھنٹہ', - hh : '%d گھنٹے', - d : 'ایک دن', - dd : '%d دن', - M : 'ایک ماہ', - MM : '%d ماہ', - y : 'ایک سال', - yy : '%d سال' - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + function textify(logEvent) { + var line = util.format('%s%s', textifyTags(logEvent.tag), + logEvent.msg.toString()); + if (options.timeStamp) { + line = util.format('%s %s', new Date(logEvent.time).toISOString(), line); } -}); - -return ur; - -}))); - - -/***/ }), -/* 209 */ -/***/ (function(module, exports, __webpack_require__) { + this.emit('data', line.replace(/\n/g, '\\n')); + } -//! moment.js locale configuration -//! locale : Uzbek [uz] -//! author : Sardor Muminov : https://github.com/muminoff - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var uz = moment.defineLocale('uz', { - months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'), - monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), - weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), - weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'D MMMM YYYY, dddd HH:mm' - }, - calendar : { - sameDay : '[Бугун соат] LT [да]', - nextDay : '[Эртага] LT [да]', - nextWeek : 'dddd [куни соат] LT [да]', - lastDay : '[Кеча соат] LT [да]', - lastWeek : '[Утган] dddd [куни соат] LT [да]', - sameElse : 'L' - }, - relativeTime : { - future : 'Якин %s ичида', - past : 'Бир неча %s олдин', - s : 'фурсат', - ss : '%d фурсат', - m : 'бир дакика', - mm : '%d дакика', - h : 'бир соат', - hh : '%d соат', - d : 'бир кун', - dd : '%d кун', - M : 'бир ой', - MM : '%d ой', - y : 'бир йил', - yy : '%d йил' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 4th is the first week of the year. + function textifyTags(tags) { + var str = ''; + if (typeof tags === 'string') { + str = tags + ' '; + } else if (typeof tags === 'object') { + for (var t in tags) { + str += t + ':' + tags[t] + ' '; + } } -}); - -return uz; - -}))); - + return str; + } +} -/***/ }), -/* 210 */ -/***/ (function(module, exports, __webpack_require__) { +function jsonFormatter(options) { + return through(jsonify); -//! moment.js locale configuration -//! locale : Uzbek Latin [uz-latn] -//! author : Rasulbek Mirzayev : github.com/Rasulbeeek - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var uzLatn = moment.defineLocale('uz-latn', { - months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'), - monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), - weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'), - weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), - weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'D MMMM YYYY, dddd HH:mm' - }, - calendar : { - sameDay : '[Bugun soat] LT [da]', - nextDay : '[Ertaga] LT [da]', - nextWeek : 'dddd [kuni soat] LT [da]', - lastDay : '[Kecha soat] LT [da]', - lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]', - sameElse : 'L' - }, - relativeTime : { - future : 'Yaqin %s ichida', - past : 'Bir necha %s oldin', - s : 'soniya', - ss : '%d soniya', - m : 'bir daqiqa', - mm : '%d daqiqa', - h : 'bir soat', - hh : '%d soat', - d : 'bir kun', - dd : '%d kun', - M : 'bir oy', - MM : '%d oy', - y : 'bir yil', - yy : '%d yil' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + function jsonify(logEvent) { + if (options.timeStamp) { + logEvent.time = new Date(logEvent.time).toISOString(); + } else { + delete logEvent.time; } -}); - -return uzLatn; - -}))); + logEvent.msg = logEvent.msg.toString(); + this.emit('data', JSON.stringify(logEvent)); + } +} +function lineMerger(host) { + var previousLine = null; + var flushTimer = null; + var stream = through(lineMergerWrite, lineMergerEnd); + var flush = _flush.bind(stream); -/***/ }), -/* 211 */ -/***/ (function(module, exports, __webpack_require__) { + return stream; -//! moment.js locale configuration -//! locale : Vietnamese [vi] -//! author : Bang Nguyen : https://github.com/bangnk - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var vi = moment.defineLocale('vi', { - months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'), - monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'), - monthsParseExact : true, - weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'), - weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysParseExact : true, - meridiemParse: /sa|ch/i, - isPM : function (input) { - return /^ch$/i.test(input); - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'sa' : 'SA'; - } else { - return isLower ? 'ch' : 'CH'; - } - }, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM [năm] YYYY', - LLL : 'D MMMM [năm] YYYY HH:mm', - LLLL : 'dddd, D MMMM [năm] YYYY HH:mm', - l : 'DD/M/YYYY', - ll : 'D MMM YYYY', - lll : 'D MMM YYYY HH:mm', - llll : 'ddd, D MMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Hôm nay lúc] LT', - nextDay: '[Ngày mai lúc] LT', - nextWeek: 'dddd [tuần tới lúc] LT', - lastDay: '[Hôm qua lúc] LT', - lastWeek: 'dddd [tuần rồi lúc] LT', - sameElse: 'L' - }, - relativeTime : { - future : '%s tới', - past : '%s trước', - s : 'vài giây', - ss : '%d giây' , - m : 'một phút', - mm : '%d phút', - h : 'một giờ', - hh : '%d giờ', - d : 'một ngày', - dd : '%d ngày', - M : 'một tháng', - MM : '%d tháng', - y : 'một năm', - yy : '%d năm' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal : function (number) { - return number; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + function lineMergerWrite(line) { + if (/^\s+/.test(line.msg)) { + if (previousLine) { + previousLine.msg += '\n' + line.msg; + } else { + previousLine = line; + } + } else { + flush(); + previousLine = line; } -}); + // rolling timeout + clearTimeout(flushTimer); + flushTimer = setTimeout(flush.bind(this), 10); + } -return vi; + function _flush() { + if (previousLine) { + this.emit('data', previousLine); + previousLine = null; + } + } -}))); + function lineMergerEnd() { + flush.call(this); + this.emit('end'); + } +} /***/ }), -/* 212 */ +/* 97 */ /***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Pseudo [x-pseudo] -//! author : Andrew Hood : https://github.com/andrewhood125 - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var xPseudo = moment.defineLocale('x-pseudo', { - months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'), - monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'), - monthsParseExact : true, - weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'), - weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), - weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[T~ódá~ý át] LT', - nextDay : '[T~ómó~rró~w át] LT', - nextWeek : 'dddd [át] LT', - lastDay : '[Ý~ést~érdá~ý át] LT', - lastWeek : '[L~ást] dddd [át] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'í~ñ %s', - past : '%s á~gó', - s : 'á ~féw ~sécó~ñds', - ss : '%d s~écóñ~ds', - m : 'á ~míñ~úté', - mm : '%d m~íñú~tés', - h : 'á~ñ hó~úr', - hh : '%d h~óúrs', - d : 'á ~dáý', - dd : '%d d~áýs', - M : 'á ~móñ~th', - MM : '%d m~óñt~hs', - y : 'á ~ýéár', - yy : '%d ý~éárs' - }, - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); - -return xPseudo; - -}))); - +"use strict"; -/***/ }), -/* 213 */ -/***/ (function(module, exports, __webpack_require__) { -//! moment.js locale configuration -//! locale : Yoruba Nigeria [yo] -//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var yo = moment.defineLocale('yo', { - months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'), - monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), - weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), - weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), - weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Ònì ni] LT', - nextDay : '[Ọ̀la ni] LT', - nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT', - lastDay : '[Àna ni] LT', - lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ní %s', - past : '%s kọjá', - s : 'ìsẹjú aayá die', - ss :'aayá %d', - m : 'ìsẹjú kan', - mm : 'ìsẹjú %d', - h : 'wákati kan', - hh : 'wákati %d', - d : 'ọjọ́ kan', - dd : 'ọjọ́ %d', - M : 'osù kan', - MM : 'osù %d', - y : 'ọdún kan', - yy : 'ọdún %d' - }, - dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/, - ordinal : 'ọjọ́ %d', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } +Object.defineProperty(exports, "__esModule", { + value: true }); +exports.copyWorkspacePackages = exports.workspacePackagePaths = undefined; + +let workspacePackagePaths = exports.workspacePackagePaths = (() => { + var _ref = _asyncToGenerator(function* (rootPath) { + const rootPkgJson = yield (0, _package_json.readPackageJson)(_path2.default.join(rootPath, 'package.json')); + if (!rootPkgJson.workspaces) { + return []; + } + const workspacesPathsPatterns = rootPkgJson.workspaces.packages; + let workspaceProjectsPaths = []; + for (const pattern of workspacesPathsPatterns) { + workspaceProjectsPaths = workspaceProjectsPaths.concat((yield packagesFromGlobPattern({ pattern, rootPath }))); + } + // Filter out exclude glob patterns + for (const pattern of workspacesPathsPatterns) { + if (pattern.startsWith('!')) { + const pathToRemove = _path2.default.join(rootPath, pattern.slice(1), 'package.json'); + workspaceProjectsPaths = workspaceProjectsPaths.filter(function (p) { + return p !== pathToRemove; + }); + } + } + return workspaceProjectsPaths; + }); -return yo; - -}))); + return function workspacePackagePaths(_x) { + return _ref.apply(this, arguments); + }; +})(); +let copyWorkspacePackages = exports.copyWorkspacePackages = (() => { + var _ref2 = _asyncToGenerator(function* (rootPath) { + const workspaceProjects = yield getWorkspaceProjects(rootPath); + for (const project of workspaceProjects.values()) { + const dest = _path2.default.resolve(rootPath, 'node_modules', project.name); + // Remove the symlink + yield (0, _fs.unlink)(dest); + // Copy in the package + yield (0, _fs.copyDirectory)(project.path, dest); + } + }); -/***/ }), -/* 214 */ -/***/ (function(module, exports, __webpack_require__) { + return function copyWorkspacePackages(_x2) { + return _ref2.apply(this, arguments); + }; +})(); -//! moment.js locale configuration -//! locale : Chinese (China) [zh-cn] -//! author : suupic : https://github.com/suupic -//! author : Zeno Zeng : https://github.com/zenozeng - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var zhCn = moment.defineLocale('zh-cn', { - months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'), - weekdaysMin : '日_一_二_三_四_五_六'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY/MM/DD', - LL : 'YYYY年M月D日', - LLL : 'YYYY年M月D日Ah点mm分', - LLLL : 'YYYY年M月D日ddddAh点mm分', - l : 'YYYY/M/D', - ll : 'YYYY年M月D日', - lll : 'YYYY年M月D日 HH:mm', - llll : 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || - meridiem === '上午') { - return hour; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } else { - // '中午' - return hour >= 11 ? hour : hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, - ordinal : function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '周'; - default: - return number; +let getWorkspaceProjects = (() => { + var _ref3 = _asyncToGenerator(function* (rootPath) { + const projectPaths = (0, _config.getProjectPaths)(rootPath, {}); + const projects = yield (0, _projects.getProjects)(rootPath, projectPaths); + for (const [key, project] of projects.entries()) { + if (!project.isWorkspaceProject) { + projects.delete(key); + } } - }, - relativeTime : { - future : '%s内', - past : '%s前', - s : '几秒', - ss : '%d 秒', - m : '1 分钟', - mm : '%d 分钟', - h : '1 小时', - hh : '%d 小时', - d : '1 天', - dd : '%d 天', - M : '1 个月', - MM : '%d 个月', - y : '1 年', - yy : '%d 年' - }, - week : { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } -}); + return projects; + }); -return zhCn; + return function getWorkspaceProjects(_x3) { + return _ref3.apply(this, arguments); + }; +})(); -}))); +var _glob = __webpack_require__(23); +var _glob2 = _interopRequireDefault(_glob); -/***/ }), -/* 215 */ -/***/ (function(module, exports, __webpack_require__) { +var _path = __webpack_require__(2); -//! moment.js locale configuration -//! locale : Chinese (Hong Kong) [zh-hk] -//! author : Ben : https://github.com/ben-lin -//! author : Chris Lam : https://github.com/hehachris -//! author : Konstantin : https://github.com/skfd - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var zhHk = moment.defineLocale('zh-hk', { - months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin : '日_一_二_三_四_五_六'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY/MM/DD', - LL : 'YYYY年M月D日', - LLL : 'YYYY年M月D日 HH:mm', - LLLL : 'YYYY年M月D日dddd HH:mm', - l : 'YYYY/M/D', - ll : 'YYYY年M月D日', - lll : 'YYYY年M月D日 HH:mm', - llll : 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal : function (number, period) { - switch (period) { - case 'd' : - case 'D' : - case 'DDD' : - return number + '日'; - case 'M' : - return number + '月'; - case 'w' : - case 'W' : - return number + '週'; - default : - return number; - } - }, - relativeTime : { - future : '%s內', - past : '%s前', - s : '幾秒', - ss : '%d 秒', - m : '1 分鐘', - mm : '%d 分鐘', - h : '1 小時', - hh : '%d 小時', - d : '1 天', - dd : '%d 天', - M : '1 個月', - MM : '%d 個月', - y : '1 年', - yy : '%d 年' - } -}); +var _path2 = _interopRequireDefault(_path); -return zhHk; +var _util = __webpack_require__(8); -}))); +var _config = __webpack_require__(60); +var _fs = __webpack_require__(39); -/***/ }), -/* 216 */ -/***/ (function(module, exports, __webpack_require__) { +var _package_json = __webpack_require__(41); -//! moment.js locale configuration -//! locale : Chinese (Taiwan) [zh-tw] -//! author : Ben : https://github.com/ben-lin -//! author : Chris Lam : https://github.com/hehachris - -;(function (global, factory) { - true ? factory(__webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) -}(this, (function (moment) { 'use strict'; - - -var zhTw = moment.defineLocale('zh-tw', { - months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin : '日_一_二_三_四_五_六'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY/MM/DD', - LL : 'YYYY年M月D日', - LLL : 'YYYY年M月D日 HH:mm', - LLLL : 'YYYY年M月D日dddd HH:mm', - l : 'YYYY/M/D', - ll : 'YYYY年M月D日', - lll : 'YYYY年M月D日 HH:mm', - llll : 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal : function (number, period) { - switch (period) { - case 'd' : - case 'D' : - case 'DDD' : - return number + '日'; - case 'M' : - return number + '月'; - case 'w' : - case 'W' : - return number + '週'; - default : - return number; - } - }, - relativeTime : { - future : '%s內', - past : '%s前', - s : '幾秒', - ss : '%d 秒', - m : '1 分鐘', - mm : '%d 分鐘', - h : '1 小時', - hh : '%d 小時', - d : '1 天', - dd : '%d 天', - M : '1 個月', - MM : '%d 個月', - y : '1 年', - yy : '%d 年' - } -}); +var _projects = __webpack_require__(22); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ -return zhTw; -}))); +const glob = (0, _util.promisify)(_glob2.default); +function packagesFromGlobPattern({ pattern, rootPath }) { + const globOptions = { + cwd: rootPath, + // Should throw in case of unusual errors when reading the file system + strict: true, + // Always returns absolute paths for matched files + absolute: true, + // Do not match ** against multiple filenames + // (This is only specified because we currently don't have a need for it.) + noglobstar: true + }; + return glob(_path2.default.join(pattern, 'package.json'), globOptions); +} /***/ }), -/* 217 */ +/* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const globby = __webpack_require__(352); -const isPathCwd = __webpack_require__(356); -const isPathInCwd = __webpack_require__(357); -const pify = __webpack_require__(23); -const rimraf = __webpack_require__(360); -const pMap = __webpack_require__(361); +const path = __webpack_require__(2); +const globby = __webpack_require__(236); +const isPathCwd = __webpack_require__(240); +const isPathInCwd = __webpack_require__(241); +const pify = __webpack_require__(244); +const rimraf = __webpack_require__(245); +const pMap = __webpack_require__(246); const rimrafP = pify(rimraf); @@ -25296,22 +9196,22 @@ module.exports.sync = (patterns, opts) => { /***/ }), -/* 218 */ +/* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = typeof Promise === 'function' ? Promise : __webpack_require__(353); +module.exports = typeof Promise === 'function' ? Promise : __webpack_require__(237); /***/ }), -/* 219 */ +/* 100 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var arrayUniq = __webpack_require__(354); +var arrayUniq = __webpack_require__(238); module.exports = function () { return arrayUniq([].concat.apply([], arguments)); @@ -25319,7 +9219,7 @@ module.exports = function () { /***/ }), -/* 220 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25416,13 +9316,13 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) { /***/ }), -/* 221 */ +/* 102 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return empty; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__(43); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_hostReportError__ = __webpack_require__(63); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__(42); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_hostReportError__ = __webpack_require__(61); /** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */ @@ -25443,7 +9343,7 @@ var empty = { /***/ }), -/* 222 */ +/* 103 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -25456,12 +9356,12 @@ function isObject(x) { /***/ }), -/* 223 */ +/* 104 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UnsubscriptionError; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ var UnsubscriptionError = /*@__PURE__*/ (function (_super) { @@ -25481,18 +9381,18 @@ var UnsubscriptionError = /*@__PURE__*/ (function (_super) { /***/ }), -/* 224 */ +/* 105 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ConnectableObservable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return connectableObservableDescriptor; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__operators_refCount__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__operators_refCount__ = __webpack_require__(64); /** PURE_IMPORTS_START tslib,_Subject,_Observable,_Subscriber,_Subscription,_operators_refCount PURE_IMPORTS_END */ @@ -25639,13 +9539,13 @@ var RefCountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 225 */ +/* 106 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SubjectSubscription; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); /** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */ @@ -25681,16 +9581,16 @@ var SubjectSubscription = /*@__PURE__*/ (function (_super) { /***/ }), -/* 226 */ +/* 107 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = groupBy; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GroupedObservable; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Observable__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Observable__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Subject__ = __webpack_require__(9); /** PURE_IMPORTS_START tslib,_Subscriber,_Subscription,_Observable,_Subject PURE_IMPORTS_END */ @@ -25877,14 +9777,14 @@ var InnerRefCountSubscription = /*@__PURE__*/ (function (_super) { /***/ }), -/* 227 */ +/* 108 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BehaviorSubject; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ObjectUnsubscribedError__ = __webpack_require__(45); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ObjectUnsubscribedError__ = __webpack_require__(44); /** PURE_IMPORTS_START tslib,_Subject,_util_ObjectUnsubscribedError PURE_IMPORTS_END */ @@ -25931,13 +9831,13 @@ var BehaviorSubject = /*@__PURE__*/ (function (_super) { /***/ }), -/* 228 */ +/* 109 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return queue; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QueueAction__ = __webpack_require__(378); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QueueScheduler__ = __webpack_require__(380); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QueueAction__ = __webpack_require__(263); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QueueScheduler__ = __webpack_require__(265); /** PURE_IMPORTS_START _QueueAction,_QueueScheduler PURE_IMPORTS_END */ @@ -25946,7 +9846,7 @@ var queue = /*@__PURE__*/ new __WEBPACK_IMPORTED_MODULE_1__QueueScheduler__["a" /***/ }), -/* 229 */ +/* 110 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -25973,7 +9873,7 @@ var Scheduler = /*@__PURE__*/ (function () { /***/ }), -/* 230 */ +/* 111 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -25981,9 +9881,9 @@ var Scheduler = /*@__PURE__*/ (function () { /* unused harmony export ObserveOnOperator */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ObserveOnSubscriber; }); /* unused harmony export ObserveOnMessage */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Notification__ = __webpack_require__(46); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Notification__ = __webpack_require__(45); /** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */ @@ -26053,7 +9953,7 @@ var ObserveOnMessage = /*@__PURE__*/ (function () { /***/ }), -/* 231 */ +/* 112 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -26073,13 +9973,13 @@ var subscribeToArray = function (array) { /***/ }), -/* 232 */ +/* 113 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return asap; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AsapAction__ = __webpack_require__(381); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsapScheduler__ = __webpack_require__(383); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AsapAction__ = __webpack_require__(266); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsapScheduler__ = __webpack_require__(268); /** PURE_IMPORTS_START _AsapAction,_AsapScheduler PURE_IMPORTS_END */ @@ -26088,12 +9988,12 @@ var asap = /*@__PURE__*/ new __WEBPACK_IMPORTED_MODULE_1__AsapScheduler__["a" /* /***/ }), -/* 233 */ +/* 114 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TimeoutError; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /** PURE_IMPORTS_START tslib PURE_IMPORTS_END */ var TimeoutError = /*@__PURE__*/ (function (_super) { @@ -26111,20 +10011,20 @@ var TimeoutError = /*@__PURE__*/ (function (_super) { /***/ }), -/* 234 */ +/* 115 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return subscribeTo; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__subscribeToArray__ = __webpack_require__(231); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__subscribeToPromise__ = __webpack_require__(235); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__subscribeToIterable__ = __webpack_require__(236); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__subscribeToObservable__ = __webpack_require__(237); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isArrayLike__ = __webpack_require__(238); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__isPromise__ = __webpack_require__(239); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__isObject__ = __webpack_require__(222); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__symbol_iterator__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__subscribeToArray__ = __webpack_require__(112); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__subscribeToPromise__ = __webpack_require__(116); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__subscribeToIterable__ = __webpack_require__(117); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__subscribeToObservable__ = __webpack_require__(118); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isArrayLike__ = __webpack_require__(119); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__isPromise__ = __webpack_require__(120); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__isObject__ = __webpack_require__(103); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__symbol_iterator__ = __webpack_require__(34); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__symbol_observable__ = __webpack_require__(24); /** PURE_IMPORTS_START _Observable,_subscribeToArray,_subscribeToPromise,_subscribeToIterable,_subscribeToObservable,_isArrayLike,_isPromise,_isObject,_symbol_iterator,_symbol_observable PURE_IMPORTS_END */ @@ -26173,12 +10073,12 @@ var subscribeTo = function (result) { /***/ }), -/* 235 */ +/* 116 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return subscribeToPromise; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__hostReportError__ = __webpack_require__(63); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__hostReportError__ = __webpack_require__(61); /** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */ var subscribeToPromise = function (promise) { @@ -26197,12 +10097,12 @@ var subscribeToPromise = function (promise) { /***/ }), -/* 236 */ +/* 117 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return subscribeToIterable; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__symbol_iterator__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__symbol_iterator__ = __webpack_require__(34); /** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */ var subscribeToIterable = function (iterable) { @@ -26233,7 +10133,7 @@ var subscribeToIterable = function (iterable) { /***/ }), -/* 237 */ +/* 118 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -26256,7 +10156,7 @@ var subscribeToObservable = function (obj) { /***/ }), -/* 238 */ +/* 119 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -26267,7 +10167,7 @@ var isArrayLike = (function (x) { return x && typeof x.length === 'number' && ty /***/ }), -/* 239 */ +/* 120 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -26280,12 +10180,12 @@ function isPromise(value) { /***/ }), -/* 240 */ +/* 121 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = concatAll; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeAll__ = __webpack_require__(72); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeAll__ = __webpack_require__(70); /** PURE_IMPORTS_START _mergeAll PURE_IMPORTS_END */ function concatAll() { @@ -26295,15 +10195,15 @@ function concatAll() { /***/ }), -/* 241 */ +/* 122 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = merge; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isScheduler__ = __webpack_require__(15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__operators_mergeAll__ = __webpack_require__(72); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__fromArray__ = __webpack_require__(21); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isScheduler__ = __webpack_require__(14); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__operators_mergeAll__ = __webpack_require__(70); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__fromArray__ = __webpack_require__(20); /** PURE_IMPORTS_START _Observable,_util_isScheduler,_operators_mergeAll,_fromArray PURE_IMPORTS_END */ @@ -26335,14 +10235,14 @@ function merge() { /***/ }), -/* 242 */ +/* 123 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NEVER; }); /* harmony export (immutable) */ __webpack_exports__["b"] = never; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_noop__ = __webpack_require__(44); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_noop__ = __webpack_require__(43); /** PURE_IMPORTS_START _Observable,_util_noop PURE_IMPORTS_END */ @@ -26354,18 +10254,18 @@ function never() { /***/ }), -/* 243 */ +/* 124 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = race; /* unused harmony export RaceOperator */ /* unused harmony export RaceSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__fromArray__ = __webpack_require__(21); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__fromArray__ = __webpack_require__(20); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_util_isArray,_fromArray,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -26447,15 +10347,15 @@ var RaceSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 244 */ +/* 125 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = timer; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isNumeric__ = __webpack_require__(49); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isScheduler__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isNumeric__ = __webpack_require__(48); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isScheduler__ = __webpack_require__(14); /** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */ @@ -26500,16 +10400,16 @@ function dispatch(state) { /***/ }), -/* 245 */ +/* 126 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = audit; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_util_tryCatch,_util_errorObject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -26582,12 +10482,12 @@ var AuditSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 246 */ +/* 127 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = concatMap; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeMap__ = __webpack_require__(38); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeMap__ = __webpack_require__(35); /** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */ function concatMap(project, resultSelector) { @@ -26597,7 +10497,7 @@ function concatMap(project, resultSelector) { /***/ }), -/* 247 */ +/* 128 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -26610,15 +10510,15 @@ function isDate(value) { /***/ }), -/* 248 */ +/* 129 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = distinctUntilChanged; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(14); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(13); /** PURE_IMPORTS_START tslib,_Subscriber,_util_tryCatch,_util_errorObject PURE_IMPORTS_END */ @@ -26681,15 +10581,15 @@ var DistinctUntilChangedSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 249 */ +/* 130 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = tap; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_noop__ = __webpack_require__(44); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isFunction__ = __webpack_require__(32); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_noop__ = __webpack_require__(43); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isFunction__ = __webpack_require__(29); /** PURE_IMPORTS_START tslib,_Subscriber,_util_noop,_util_isFunction PURE_IMPORTS_END */ @@ -26768,15 +10668,15 @@ var TapSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 250 */ +/* 131 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = find; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FindValueOperator; }); /* unused harmony export FindValueSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -26838,15 +10738,15 @@ var FindValueSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 251 */ +/* 132 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return defaultThrottleConfig; }); /* harmony export (immutable) */ __webpack_exports__["b"] = throttle; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -26941,16 +10841,16 @@ var ThrottleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 252 */ +/* 133 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = timeoutWith; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isDate__ = __webpack_require__(247); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isDate__ = __webpack_require__(128); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -27022,73 +10922,12 @@ var TimeoutWithSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 253 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -const ansiRegex = __webpack_require__(494); - -module.exports = input => typeof input === 'string' ? input.replace(ansiRegex(), '') : input; - - -/***/ }), -/* 254 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.getProjectPaths = getProjectPaths; - -var _path = __webpack_require__(3); - -/** - * Returns all the paths where plugins are located - */ -function getProjectPaths(rootPath, options) { - const skipKibanaExtra = Boolean(options['skip-kibana-extra']); - const ossOnly = Boolean(options.oss); - const projectPaths = [rootPath, (0, _path.resolve)(rootPath, 'packages/*')]; - if (!ossOnly) { - projectPaths.push((0, _path.resolve)(rootPath, 'x-pack')); - projectPaths.push((0, _path.resolve)(rootPath, 'x-pack/plugins/*')); - } - if (!skipKibanaExtra) { - projectPaths.push((0, _path.resolve)(rootPath, '../kibana-extra/*')); - projectPaths.push((0, _path.resolve)(rootPath, '../kibana-extra/*/packages/*')); - projectPaths.push((0, _path.resolve)(rootPath, '../kibana-extra/*/plugins/*')); - } - return projectPaths; -} /* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/***/ }), -/* 255 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const NestedError = __webpack_require__(256); +const NestedError = __webpack_require__(135); class CpFileError extends NestedError { constructor(message, nested) { @@ -27102,10 +10941,10 @@ module.exports = CpFileError; /***/ }), -/* 256 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { -var inherits = __webpack_require__(83); +var inherits = __webpack_require__(82); var NestedError = function (message, nested) { this.nested = nested; @@ -27156,7 +10995,7 @@ module.exports = NestedError; /***/ }), -/* 257 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -27166,7 +11005,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _cli = __webpack_require__(258); +var _cli = __webpack_require__(137); Object.defineProperty(exports, 'run', { enumerable: true, @@ -27175,7 +11014,7 @@ Object.defineProperty(exports, 'run', { } }); -var _production = __webpack_require__(497); +var _production = __webpack_require__(385); Object.defineProperty(exports, 'buildProductionProjects', { enumerable: true, @@ -27190,17 +11029,17 @@ Object.defineProperty(exports, 'prepareExternalProjectDependencies', { } }); -var _package_json = __webpack_require__(42); +var _workspaces = __webpack_require__(97); -Object.defineProperty(exports, 'transformDependencies', { +Object.defineProperty(exports, 'copyWorkspacePackages', { enumerable: true, get: function () { - return _package_json.transformDependencies; + return _workspaces.copyWorkspacePackages; } }); /***/ }), -/* 258 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -27251,25 +11090,25 @@ let run = exports.run = (() => { }; })(); -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _dedent = __webpack_require__(264); +var _dedent = __webpack_require__(143); var _dedent2 = _interopRequireDefault(_dedent); -var _getopts = __webpack_require__(265); +var _getopts = __webpack_require__(144); var _getopts2 = _interopRequireDefault(_getopts); -var _path = __webpack_require__(3); +var _path = __webpack_require__(2); -var _commands = __webpack_require__(266); +var _commands = __webpack_require__(145); -var _run = __webpack_require__(490); +var _run = __webpack_require__(375); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -27315,12 +11154,12 @@ function help() { } /***/ }), -/* 259 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(module) { -const colorConvert = __webpack_require__(53); +const colorConvert = __webpack_require__(52); const wrapAnsi16 = (fn, offset) => function () { const code = fn.apply(colorConvert, arguments); @@ -27485,10 +11324,10 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module))) /***/ }), -/* 260 */ +/* 139 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -27647,10 +11486,10 @@ module.exports = { /***/ }), -/* 261 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { -var conversions = __webpack_require__(79); +var conversions = __webpack_require__(77); /* this function routes a model to all other models. @@ -27750,13 +11589,13 @@ module.exports = function (fromModel) { /***/ }), -/* 262 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(54); -const hasFlag = __webpack_require__(55); +const os = __webpack_require__(53); +const hasFlag = __webpack_require__(78); const env = process.env; @@ -27804,6 +11643,10 @@ function supportsColor(stream) { } if (stream && !stream.isTTY && forceColor !== true) { + // VS code debugger doesn't have isTTY set + if (env.VSCODE_PID) { + return 1; + } return 0; } @@ -27888,7 +11731,7 @@ module.exports = { /***/ }), -/* 263 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -28023,7 +11866,7 @@ module.exports = (chalk, tmp) => { /***/ }), -/* 264 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -28089,7 +11932,7 @@ if (true) { /***/ }), -/* 265 */ +/* 144 */ /***/ (function(module, exports) { const SHORTSPLIT = /$|[!-@\[-`{-~].*/g @@ -28257,7 +12100,7 @@ module.exports = function(argv, opts) { /***/ }), -/* 266 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -28268,13 +12111,13 @@ Object.defineProperty(exports, "__esModule", { }); exports.commands = undefined; -var _bootstrap = __webpack_require__(267); +var _bootstrap = __webpack_require__(146); -var _clean = __webpack_require__(351); +var _clean = __webpack_require__(235); -var _run = __webpack_require__(373); +var _run = __webpack_require__(258); -var _watch = __webpack_require__(374); +var _watch = __webpack_require__(259); /* * Licensed to Elasticsearch B.V. under one or more contributor @@ -28302,7 +12145,7 @@ const commands = exports.commands = { }; /***/ }), -/* 267 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -28313,17 +12156,17 @@ Object.defineProperty(exports, "__esModule", { }); exports.BootstrapCommand = undefined; -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _link_project_executables = __webpack_require__(268); +var _link_project_executables = __webpack_require__(147); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); -var _parallelize = __webpack_require__(57); +var _parallelize = __webpack_require__(54); -var _projects = __webpack_require__(30); +var _projects = __webpack_require__(22); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -28352,12 +12195,19 @@ const BootstrapCommand = exports.BootstrapCommand = { name: 'bootstrap', run(projects, projectGraph, { options }) { return _asyncToGenerator(function* () { + const batchedProjectsByWorkspace = (0, _projects.topologicallyBatchProjects)(projects, projectGraph, { + batchByWorkspace: true + }); const batchedProjects = (0, _projects.topologicallyBatchProjects)(projects, projectGraph); const frozenLockfile = options['frozen-lockfile'] === true; const extraArgs = frozenLockfile ? ['--frozen-lockfile'] : []; _log.log.write(_chalk2.default.bold('\nRunning installs in topological order:')); - for (const batch of batchedProjects) { + for (const batch of batchedProjectsByWorkspace) { for (const project of batch) { + if (project.isWorkspaceProject) { + _log.log.write(`Skipping workspace project: ${project.name}`); + continue; + } if (project.hasDependencies()) { yield project.installDependencies({ extraArgs }); } @@ -28389,7 +12239,7 @@ const BootstrapCommand = exports.BootstrapCommand = { }; /***/ }), -/* 268 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -28439,15 +12289,15 @@ let linkProjectExecutables = exports.linkProjectExecutables = (() => { }; })(); -var _path = __webpack_require__(3); +var _path = __webpack_require__(2); -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _fs = __webpack_require__(56); +var _fs = __webpack_require__(39); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -28471,7 +12321,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a */ /***/ }), -/* 269 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { // On windows, create a .cmd file. @@ -28487,10 +12337,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a module.exports = cmdShim cmdShim.ifExists = cmdShimIfExists -var fs = __webpack_require__(28) +var fs = __webpack_require__(27) -var mkdir = __webpack_require__(81) - , path = __webpack_require__(3) +var mkdir = __webpack_require__(80) + , path = __webpack_require__(2) , shebangExpr = /^#\!\s*(?:\/usr\/bin\/env)?\s*([^ \t]+)(.*)$/ function cmdShimIfExists (from, to, cb) { @@ -28657,11 +12507,11 @@ function times(n, ok, cb) { /***/ }), -/* 270 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { -var fs = __webpack_require__(80) -var constants = __webpack_require__(271) +var fs = __webpack_require__(79) +var constants = __webpack_require__(150) var origCwd = process.cwd var cwd = null @@ -28993,16 +12843,16 @@ function chownErOk (er) { /***/ }), -/* 271 */ +/* 150 */ /***/ (function(module, exports) { module.exports = require("constants"); /***/ }), -/* 272 */ +/* 151 */ /***/ (function(module, exports, __webpack_require__) { -var Stream = __webpack_require__(22).Stream +var Stream = __webpack_require__(21).Stream module.exports = legacy @@ -29123,7 +12973,274 @@ function legacy (fs) { /***/ }), -/* 273 */ +/* 152 */ +/***/ (function(module, exports, __webpack_require__) { + +var fs = __webpack_require__(6), + path = __webpack_require__(2); + +module.exports = ncp; +ncp.ncp = ncp; + +function ncp (source, dest, options, callback) { + var cback = callback; + + if (!callback) { + cback = options; + options = {}; + } + + var basePath = process.cwd(), + currentPath = path.resolve(basePath, source), + targetPath = path.resolve(basePath, dest), + filter = options.filter, + rename = options.rename, + transform = options.transform, + clobber = options.clobber !== false, + modified = options.modified, + dereference = options.dereference, + errs = null, + started = 0, + finished = 0, + running = 0, + limit = options.limit || ncp.limit || 16; + + limit = (limit < 1) ? 1 : (limit > 512) ? 512 : limit; + + startCopy(currentPath); + + function startCopy(source) { + started++; + if (filter) { + if (filter instanceof RegExp) { + if (!filter.test(source)) { + return cb(true); + } + } + else if (typeof filter === 'function') { + if (!filter(source)) { + return cb(true); + } + } + } + return getStats(source); + } + + function getStats(source) { + var stat = dereference ? fs.stat : fs.lstat; + if (running >= limit) { + return setImmediate(function () { + getStats(source); + }); + } + running++; + stat(source, function (err, stats) { + var item = {}; + if (err) { + return onError(err); + } + + // We need to get the mode from the stats object and preserve it. + item.name = source; + item.mode = stats.mode; + item.mtime = stats.mtime; //modified time + item.atime = stats.atime; //access time + + if (stats.isDirectory()) { + return onDir(item); + } + else if (stats.isFile()) { + return onFile(item); + } + else if (stats.isSymbolicLink()) { + // Symlinks don't really need to know about the mode. + return onLink(source); + } + }); + } + + function onFile(file) { + var target = file.name.replace(currentPath, targetPath); + if(rename) { + target = rename(target); + } + isWritable(target, function (writable) { + if (writable) { + return copyFile(file, target); + } + if(clobber) { + rmFile(target, function () { + copyFile(file, target); + }); + } + if (modified) { + var stat = dereference ? fs.stat : fs.lstat; + stat(target, function(err, stats) { + //if souce modified time greater to target modified time copy file + if (file.mtime.getTime()>stats.mtime.getTime()) + copyFile(file, target); + else return cb(); + }); + } + else { + return cb(); + } + }); + } + + function copyFile(file, target) { + var readStream = fs.createReadStream(file.name), + writeStream = fs.createWriteStream(target, { mode: file.mode }); + + readStream.on('error', onError); + writeStream.on('error', onError); + + if(transform) { + transform(readStream, writeStream, file); + } else { + writeStream.on('open', function() { + readStream.pipe(writeStream); + }); + } + writeStream.once('finish', function() { + if (modified) { + //target file modified date sync. + fs.utimesSync(target, file.atime, file.mtime); + cb(); + } + else cb(); + }); + } + + function rmFile(file, done) { + fs.unlink(file, function (err) { + if (err) { + return onError(err); + } + return done(); + }); + } + + function onDir(dir) { + var target = dir.name.replace(currentPath, targetPath); + isWritable(target, function (writable) { + if (writable) { + return mkDir(dir, target); + } + copyDir(dir.name); + }); + } + + function mkDir(dir, target) { + fs.mkdir(target, dir.mode, function (err) { + if (err) { + return onError(err); + } + copyDir(dir.name); + }); + } + + function copyDir(dir) { + fs.readdir(dir, function (err, items) { + if (err) { + return onError(err); + } + items.forEach(function (item) { + startCopy(path.join(dir, item)); + }); + return cb(); + }); + } + + function onLink(link) { + var target = link.replace(currentPath, targetPath); + fs.readlink(link, function (err, resolvedPath) { + if (err) { + return onError(err); + } + checkLink(resolvedPath, target); + }); + } + + function checkLink(resolvedPath, target) { + if (dereference) { + resolvedPath = path.resolve(basePath, resolvedPath); + } + isWritable(target, function (writable) { + if (writable) { + return makeLink(resolvedPath, target); + } + fs.readlink(target, function (err, targetDest) { + if (err) { + return onError(err); + } + if (dereference) { + targetDest = path.resolve(basePath, targetDest); + } + if (targetDest === resolvedPath) { + return cb(); + } + return rmFile(target, function () { + makeLink(resolvedPath, target); + }); + }); + }); + } + + function makeLink(linkPath, target) { + fs.symlink(linkPath, target, function (err) { + if (err) { + return onError(err); + } + return cb(); + }); + } + + function isWritable(path, done) { + fs.lstat(path, function (err) { + if (err) { + if (err.code === 'ENOENT') return done(true); + return done(false); + } + return done(false); + }); + } + + function onError(err) { + if (options.stopOnError) { + return cback(err); + } + else if (!errs && options.errs) { + errs = fs.createWriteStream(options.errs); + } + else if (!errs) { + errs = []; + } + if (typeof errs.write === 'undefined') { + errs.push(err); + } + else { + errs.write(err.stack + '\n\n'); + } + return cb(); + } + + function cb(skipped) { + if (!skipped) running--; + finished++; + if ((started === finished) && (running === 0)) { + if (cback !== undefined ) { + return errs ? cback(errs) : cback(null); + } + } + } +} + + + + +/***/ }), +/* 153 */ /***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. @@ -29147,9 +13264,9 @@ function legacy (fs) { // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -var pathModule = __webpack_require__(3); +var pathModule = __webpack_require__(2); var isWindows = process.platform === 'win32'; -var fs = __webpack_require__(7); +var fs = __webpack_require__(6); // JavaScript implementation of realpath, ported from node pre-v6 @@ -29432,11 +13549,11 @@ exports.realpath = function realpath(p, cache, cb) { /***/ }), -/* 274 */ +/* 154 */ /***/ (function(module, exports, __webpack_require__) { -var concatMap = __webpack_require__(275); -var balanced = __webpack_require__(276); +var concatMap = __webpack_require__(155); +var balanced = __webpack_require__(156); module.exports = expandTop; @@ -29639,7 +13756,7 @@ function expand(str, isTop) { /***/ }), -/* 275 */ +/* 155 */ /***/ (function(module, exports) { module.exports = function (xs, fn) { @@ -29658,7 +13775,7 @@ var isArray = Array.isArray || function (xs) { /***/ }), -/* 276 */ +/* 156 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -29724,7 +13841,7 @@ function range(a, b, str) { /***/ }), -/* 277 */ +/* 157 */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -29753,22 +13870,22 @@ if (typeof Object.create === 'function') { /***/ }), -/* 278 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { module.exports = globSync globSync.GlobSync = GlobSync -var fs = __webpack_require__(7) -var rp = __webpack_require__(82) -var minimatch = __webpack_require__(58) +var fs = __webpack_require__(6) +var rp = __webpack_require__(81) +var minimatch = __webpack_require__(55) var Minimatch = minimatch.Minimatch -var Glob = __webpack_require__(31).Glob -var util = __webpack_require__(10) -var path = __webpack_require__(3) -var assert = __webpack_require__(29) -var isAbsolute = __webpack_require__(59) -var common = __webpack_require__(84) +var Glob = __webpack_require__(23).Glob +var util = __webpack_require__(8) +var path = __webpack_require__(2) +var assert = __webpack_require__(28) +var isAbsolute = __webpack_require__(56) +var common = __webpack_require__(83) var alphasort = common.alphasort var alphasorti = common.alphasorti var setopts = common.setopts @@ -30245,12 +14362,12 @@ GlobSync.prototype._makeAbs = function (f) { /***/ }), -/* 279 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { -var wrappy = __webpack_require__(85) +var wrappy = __webpack_require__(84) var reqs = Object.create(null) -var once = __webpack_require__(86) +var once = __webpack_require__(85) module.exports = wrappy(inflight) @@ -30305,14 +14422,14 @@ function slice (args) { /***/ }), -/* 280 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const loadJsonFile = __webpack_require__(281); -const pathType = __webpack_require__(287); +const path = __webpack_require__(2); +const loadJsonFile = __webpack_require__(161); +const pathType = __webpack_require__(168); module.exports = (fp, opts) => { if (typeof fp !== 'string') { @@ -30332,7 +14449,7 @@ module.exports = (fp, opts) => { }) .then(x => { if (opts.normalize !== false) { - __webpack_require__(88)(x); + __webpack_require__(87)(x); } return x; @@ -30351,7 +14468,7 @@ module.exports.sync = (fp, opts) => { const x = loadJsonFile.sync(fp); if (opts.normalize !== false) { - __webpack_require__(88)(x); + __webpack_require__(87)(x); } return x; @@ -30359,16 +14476,16 @@ module.exports.sync = (fp, opts) => { /***/ }), -/* 281 */ +/* 161 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const fs = __webpack_require__(28); -const stripBom = __webpack_require__(282); -const parseJson = __webpack_require__(283); -const pify = __webpack_require__(23); +const path = __webpack_require__(2); +const fs = __webpack_require__(27); +const stripBom = __webpack_require__(162); +const parseJson = __webpack_require__(163); +const pify = __webpack_require__(167); const parse = (data, fp) => parseJson(stripBom(data), path.relative('.', fp)); @@ -30377,7 +14494,7 @@ module.exports.sync = fp => parse(fs.readFileSync(fp, 'utf8'), fp); /***/ }), -/* 282 */ +/* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -30398,13 +14515,13 @@ module.exports = x => { /***/ }), -/* 283 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const errorEx = __webpack_require__(284); -const fallback = __webpack_require__(286); +const errorEx = __webpack_require__(164); +const fallback = __webpack_require__(166); const JSONError = errorEx('JSONError', { fileName: errorEx.append('in %s') @@ -30438,14 +14555,14 @@ module.exports = (input, reviver, filename) => { /***/ }), -/* 284 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(10); -var isArrayish = __webpack_require__(285); +var util = __webpack_require__(8); +var isArrayish = __webpack_require__(165); var errorEx = function errorEx(name, properties) { if (!name || name.constructor !== String) { @@ -30578,7 +14695,7 @@ module.exports = errorEx; /***/ }), -/* 285 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -30595,7 +14712,7 @@ module.exports = function isArrayish(obj) { /***/ }), -/* 286 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -30634,13 +14751,104 @@ function parseJson (txt, reviver, context) { /***/ }), -/* 287 */ +/* 167 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(7); -const pify = __webpack_require__(23); + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; + + +/***/ }), +/* 168 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +const fs = __webpack_require__(6); +const pify = __webpack_require__(169); function type(fn, fn2, fp) { if (typeof fp !== 'string') { @@ -30683,17 +14891,108 @@ exports.symlinkSync = typeSync.bind(null, 'lstatSync', 'isSymbolicLink'); /***/ }), -/* 288 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { -var semver = __webpack_require__(289) -var validateLicense = __webpack_require__(290); -var hostedGitInfo = __webpack_require__(295) -var isBuiltinModule = __webpack_require__(297) +"use strict"; + + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; + + +/***/ }), +/* 170 */ +/***/ (function(module, exports, __webpack_require__) { + +var semver = __webpack_require__(171) +var validateLicense = __webpack_require__(172); +var hostedGitInfo = __webpack_require__(177) +var isBuiltinModule = __webpack_require__(179) var depTypes = ["dependencies","devDependencies","optionalDependencies"] -var extractDescription = __webpack_require__(299) -var url = __webpack_require__(89) -var typos = __webpack_require__(300) +var extractDescription = __webpack_require__(181) +var url = __webpack_require__(88) +var typos = __webpack_require__(182) var fixer = module.exports = { // default warning function @@ -31106,7 +15405,7 @@ function bugsTypos(bugs, warn) { /***/ }), -/* 289 */ +/* 171 */ /***/ (function(module, exports) { exports = module.exports = SemVer; @@ -31132,9 +15431,6 @@ exports.SEMVER_SPEC_VERSION = '2.0.0'; var MAX_LENGTH = 256; var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; -// Max safe segment length for coercion. -var MAX_SAFE_COMPONENT_LENGTH = 16; - // The actual regexps go on exports.re var re = exports.re = []; var src = exports.src = []; @@ -31270,15 +15566,6 @@ src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'; var XRANGELOOSE = R++; src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'; -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -var COERCE = R++; -src[COERCE] = '(?:^|[^\\d])' + - '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:$|[^\\d])'; - // Tilde ranges. // Meaning is "reasonably at or greater than" var LONETILDE = R++; @@ -32418,29 +16705,13 @@ function intersects(r1, r2, loose) { return r1.intersects(r2) } -exports.coerce = coerce; -function coerce(version) { - if (version instanceof SemVer) - return version; - - if (typeof version !== 'string') - return null; - - var match = version.match(re[COERCE]); - - if (match == null) - return null; - - return parse((match[1] || '0') + '.' + (match[2] || '0') + '.' + (match[3] || '0')); -} - /***/ }), -/* 290 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { -var parse = __webpack_require__(291); -var correct = __webpack_require__(293); +var parse = __webpack_require__(173); +var correct = __webpack_require__(175); var genericWarning = ( 'license should be ' + @@ -32526,10 +16797,10 @@ module.exports = function(argument) { /***/ }), -/* 291 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { -var parser = __webpack_require__(292).parser +var parser = __webpack_require__(174).parser module.exports = function (argument) { return parser.parse(argument) @@ -32537,7 +16808,7 @@ module.exports = function (argument) { /***/ }), -/* 292 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {/* parser generated by jison 0.4.17 */ @@ -33890,7 +18161,7 @@ exports.main = function commonjsMain(args) { console.log('Usage: '+args[0]+' FILE'); process.exit(1); } - var source = __webpack_require__(7).readFileSync(__webpack_require__(3).normalize(args[1]), "utf8"); + var source = __webpack_require__(6).readFileSync(__webpack_require__(2).normalize(args[1]), "utf8"); return exports.parser.parse(source); }; if (typeof module !== 'undefined' && __webpack_require__.c[__webpack_require__.s] === module) { @@ -33898,13 +18169,13 @@ if (typeof module !== 'undefined' && __webpack_require__.c[__webpack_require__.s } } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module))) /***/ }), -/* 293 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { -var licenseIDs = __webpack_require__(294); +var licenseIDs = __webpack_require__(176); function valid(string) { return licenseIDs.indexOf(string) > -1; @@ -34144,20 +18415,20 @@ module.exports = function(identifier) { /***/ }), -/* 294 */ +/* 176 */ /***/ (function(module, exports) { module.exports = ["Glide","Abstyles","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AMPAS","APL-1.0","Adobe-Glyph","APAFML","Adobe-2006","AGPL-1.0","Afmparse","Aladdin","ADSL","AMDPLPA","ANTLR-PD","Apache-1.0","Apache-1.1","Apache-2.0","AML","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","AAL","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BSL-1.0","Borceux","BSD-2-Clause","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","BSD-3-Clause","BSD-3-Clause-Clear","BSD-4-Clause","BSD-Protection","BSD-Source-Code","BSD-3-Clause-Attribution","0BSD","BSD-4-Clause-UC","bzip2-1.0.5","bzip2-1.0.6","Caldera","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","ClArtistic","MIT-CMU","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","CPOL-1.02","CDDL-1.0","CDDL-1.1","CPAL-1.0","CPL-1.0","CATOSL-1.1","Condor-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-3.0","CC-BY-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-4.0","CC0-1.0","Crossword","CrystalStacker","CUA-OPL-1.0","Cube","curl","D-FSL-1.0","diffmark","WTFPL","DOC","Dotseqn","DSDP","dvipdfm","EPL-1.0","ECL-1.0","ECL-2.0","eGenix","EFL-1.0","EFL-2.0","MIT-advertising","MIT-enna","Entessa","ErlPL-1.1","EUDatagrid","EUPL-1.0","EUPL-1.1","Eurosym","Fair","MIT-feh","Frameworx-1.0","FreeImage","FTL","FSFAP","FSFUL","FSFULLR","Giftware","GL2PS","Glulxe","AGPL-3.0","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-3.0","LGPL-2.1","LGPL-3.0","LGPL-2.0","gnuplot","gSOAP-1.3b","HaskellReport","HPND","IBM-pibs","IPL-1.0","ICU","ImageMagick","iMatix","Imlib2","IJG","Info-ZIP","Intel-ACPI","Intel","Interbase-1.0","IPA","ISC","JasPer-2.0","JSON","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","Latex2e","BSD-3-Clause-LBNL","Leptonica","LGPLLR","Libpng","libtiff","LAL-1.2","LAL-1.3","LiLiQ-P-1.1","LiLiQ-Rplus-1.1","LiLiQ-R-1.1","LPL-1.02","LPL-1.0","MakeIndex","MTLL","MS-PL","MS-RL","MirOS","MITNFA","MIT","Motosoto","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","mpich2","Multics","Mup","NASA-1.3","Naumen","NBPL-1.0","NetCDF","NGPL","NOSL","NPL-1.0","NPL-1.1","Newsletr","NLPL","Nokia","NPOSL-3.0","NLOD-1.0","Noweb","NRL","NTP","Nunit","OCLC-2.0","ODbL-1.0","PDDL-1.0","OCCT-PL","OGTSL","OLDAP-2.2.2","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenSSL","OSET-PL-2.1","PHP-3.0","PHP-3.01","Plexus","PostgreSQL","psfrag","psutils","Python-2.0","QPL-1.0","Qhull","Rdisc","RPSL-1.0","RPL-1.1","RPL-1.5","RHeCos-1.1","RSCPL","RSA-MD","Ruby","SAX-PD","Saxpath","SCEA","SWL","SMPPL","Sendmail","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","OFL-1.0","OFL-1.1","SimPL-2.0","Sleepycat","SNIA","Spencer-86","Spencer-94","Spencer-99","SMLNJ","SugarCRM-1.1.3","SISSL","SISSL-1.2","SPL-1.0","Watcom-1.0","TCL","Unlicense","TMate","TORQUE-1.1","TOSL","Unicode-TOU","UPL-1.0","NCSA","Vim","VOSTROM","VSL-1.0","W3C-19980720","W3C","Wsuipa","Xnet","X11","Xerox","XFree86-1.1","xinetd","xpp","XSkat","YPL-1.0","YPL-1.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","zlib-acknowledgement","ZPL-1.1","ZPL-2.0","ZPL-2.1","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-No-Nuclear-License-2014","eCos-2.0","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-2.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","GPL-3.0-with-GCC-exception","StandardML-NJ","WXwindows"] /***/ }), -/* 295 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var url = __webpack_require__(89) -var gitHosts = __webpack_require__(90) -var GitHost = module.exports = __webpack_require__(296) +var url = __webpack_require__(88) +var gitHosts = __webpack_require__(89) +var GitHost = module.exports = __webpack_require__(178) var protocolToRepresentationMap = { 'git+ssh': 'sshurl', @@ -34278,13 +18549,13 @@ function parseGitUrl (giturl) { /***/ }), -/* 296 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var gitHosts = __webpack_require__(90) -var extend = Object.assign || __webpack_require__(10)._extend +var gitHosts = __webpack_require__(89) +var extend = Object.assign || __webpack_require__(8)._extend var GitHost = module.exports = function (type, user, auth, project, committish, defaultRepresentation, opts) { var gitHostInfo = this @@ -34399,12 +18670,12 @@ GitHost.prototype.toString = function (opts) { /***/ }), -/* 297 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var builtinModules = __webpack_require__(298); +var builtinModules = __webpack_require__(180); module.exports = function (str) { if (typeof str !== 'string') { @@ -34416,7 +18687,7 @@ module.exports = function (str) { /***/ }), -/* 298 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -34433,7 +18704,7 @@ module.exports = Object.keys(process.binding('natives')).filter(function (el) { /***/ }), -/* 299 */ +/* 181 */ /***/ (function(module, exports) { module.exports = extractDescription @@ -34453,17 +18724,17 @@ function extractDescription (d) { /***/ }), -/* 300 */ +/* 182 */ /***/ (function(module, exports) { module.exports = {"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}} /***/ }), -/* 301 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { -var util = __webpack_require__(10) -var messages = __webpack_require__(302) +var util = __webpack_require__(8) +var messages = __webpack_require__(184) module.exports = function() { var args = Array.prototype.slice.call(arguments, 0) @@ -34488,20 +18759,20 @@ function makeTypoWarning (providedName, probableName, field) { /***/ }), -/* 302 */ +/* 184 */ /***/ (function(module, exports) { module.exports = {"repositories":"'repositories' (plural) Not supported. Please pick one as the 'repository' field","missingRepository":"No repository field.","brokenGitUrl":"Probably broken git url: %s","nonObjectScripts":"scripts must be an object","nonStringScript":"script values must be string commands","nonArrayFiles":"Invalid 'files' member","invalidFilename":"Invalid filename in 'files' list: %s","nonArrayBundleDependencies":"Invalid 'bundleDependencies' list. Must be array of package names","nonStringBundleDependency":"Invalid bundleDependencies member: %s","nonDependencyBundleDependency":"Non-dependency in bundleDependencies: %s","nonObjectDependencies":"%s field must be an object","nonStringDependency":"Invalid dependency: %s %s","deprecatedArrayDependencies":"specifying %s as array is deprecated","deprecatedModules":"modules field is deprecated","nonArrayKeywords":"keywords should be an array of strings","nonStringKeyword":"keywords should be an array of strings","conflictingName":"%s is also the name of a node core module.","nonStringDescription":"'description' field should be a string","missingDescription":"No description","missingReadme":"No README data","missingLicense":"No license field.","nonEmailUrlBugsString":"Bug string field must be url, email, or {email,url}","nonUrlBugsUrlField":"bugs.url field must be a string url. Deleted.","nonEmailBugsEmailField":"bugs.email field must be a string email. Deleted.","emptyNormalizedBugs":"Normalized value of bugs field is an empty object. Deleted.","nonUrlHomepage":"homepage field must be a string url. Deleted.","invalidLicense":"license should be a valid SPDX license expression","typo":"%s should probably be %s."} /***/ }), -/* 303 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const writeJsonFile = __webpack_require__(304); -const sortKeys = __webpack_require__(91); +const path = __webpack_require__(2); +const writeJsonFile = __webpack_require__(186); +const sortKeys = __webpack_require__(90); const opts = {detectIndent: true}; @@ -34554,18 +18825,18 @@ module.exports.sync = (fp, data) => { /***/ }), -/* 304 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const fs = __webpack_require__(28); -const writeFileAtomic = __webpack_require__(305); -const sortKeys = __webpack_require__(91); -const makeDir = __webpack_require__(92); -const pify = __webpack_require__(23); -const detectIndent = __webpack_require__(309); +const path = __webpack_require__(2); +const fs = __webpack_require__(27); +const writeFileAtomic = __webpack_require__(187); +const sortKeys = __webpack_require__(90); +const makeDir = __webpack_require__(91); +const pify = __webpack_require__(192); +const detectIndent = __webpack_require__(193); const init = (fn, fp, data, opts) => { if (!fp) { @@ -34634,7 +18905,7 @@ module.exports.sync = (fp, data, opts) => { /***/ }), -/* 305 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -34644,10 +18915,10 @@ module.exports.sync = writeFileSync module.exports._getTmpname = getTmpname // for testing module.exports._cleanupOnExit = cleanupOnExit -var fs = __webpack_require__(28) -var MurmurHash3 = __webpack_require__(306) -var onExit = __webpack_require__(61) -var path = __webpack_require__(3) +var fs = __webpack_require__(27) +var MurmurHash3 = __webpack_require__(188) +var onExit = __webpack_require__(58) +var path = __webpack_require__(2) var activeFiles = {} var invocations = 0 @@ -34840,7 +19111,7 @@ function writeFileSync (filename, data, options) { /***/ }), -/* 306 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34984,7 +19255,7 @@ function writeFileSync (filename, data, options) { /***/ }), -/* 307 */ +/* 189 */ /***/ (function(module, exports) { // This is not the set of all possible signals. @@ -35043,7 +19314,7 @@ if (process.platform === 'linux') { /***/ }), -/* 308 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35057,7 +19328,189 @@ module.exports = function (x) { /***/ }), -/* 309 */ +/* 191 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; + + +/***/ }), +/* 192 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; + + +/***/ }), +/* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35186,7 +19639,7 @@ module.exports = str => { /***/ }), -/* 310 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35202,7 +19655,7 @@ exports.runScriptInPackage = exports.installInDir = undefined; */ let installInDir = exports.installInDir = (() => { var _ref = _asyncToGenerator(function* (directory, extraArgs = []) { - const options = ['install', '--check-files', '--non-interactive', '--mutex=file', ...extraArgs]; + const options = ['install', '--non-interactive', '--mutex=file', ...extraArgs]; // We pass the mutex flag to ensure only one instance of yarn runs at any // given time (e.g. to avoid conflicts). yield (0, _child_process.spawn)('yarn', options, { @@ -35238,7 +19691,7 @@ let runScriptInPackage = exports.runScriptInPackage = (() => { exports.runScriptInPackageStreaming = runScriptInPackageStreaming; -var _child_process = __webpack_require__(311); +var _child_process = __webpack_require__(195); function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /* * Licensed to Elasticsearch B.V. under one or more contributor @@ -35270,7 +19723,7 @@ function runScriptInPackageStreaming(script, args, pkg) { } /***/ }), -/* 311 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -35303,26 +19756,26 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument exports.spawn = spawn; exports.spawnStreaming = spawnStreaming; -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _execa = __webpack_require__(312); +var _execa = __webpack_require__(196); var _execa2 = _interopRequireDefault(_execa); -var _logSymbols = __webpack_require__(96); +var _logSymbols = __webpack_require__(95); var _logSymbols2 = _interopRequireDefault(_logSymbols); -var _strongLogTransformer = __webpack_require__(342); +var _strongLogTransformer = __webpack_require__(227); var _strongLogTransformer2 = _interopRequireDefault(_strongLogTransformer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function generateColors() { - const colorWheel = [_chalk2.default.cyan, _chalk2.default.magenta, _chalk2.default.blue, _chalk2.default.yellow, _chalk2.default.green, _chalk2.default.red]; + const colorWheel = [_chalk2.default.cyan, _chalk2.default.magenta, _chalk2.default.blue, _chalk2.default.yellow, _chalk2.default.green]; const count = colorWheel.length; let children = 0; return () => colorWheel[children++ % count]; @@ -35349,23 +19802,23 @@ function spawnStreaming(command, args, opts, { prefix }) { } /***/ }), -/* 312 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const childProcess = __webpack_require__(62); -const util = __webpack_require__(10); -const crossSpawn = __webpack_require__(313); -const stripEof = __webpack_require__(329); -const npmRunPath = __webpack_require__(330); -const isStream = __webpack_require__(332); -const _getStream = __webpack_require__(333); -const pFinally = __webpack_require__(335); -const onExit = __webpack_require__(61); -const errname = __webpack_require__(336); -const stdio = __webpack_require__(337); +const path = __webpack_require__(2); +const childProcess = __webpack_require__(59); +const util = __webpack_require__(8); +const crossSpawn = __webpack_require__(197); +const stripEof = __webpack_require__(213); +const npmRunPath = __webpack_require__(214); +const isStream = __webpack_require__(216); +const _getStream = __webpack_require__(217); +const pFinally = __webpack_require__(219); +const onExit = __webpack_require__(58); +const errname = __webpack_require__(220); +const stdio = __webpack_require__(221); const TEN_MEGABYTES = 1000 * 1000 * 10; @@ -35719,15 +20172,15 @@ module.exports.spawn = util.deprecate(module.exports, 'execa.spawn() is deprecat /***/ }), -/* 313 */ +/* 197 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var cp = __webpack_require__(62); -var parse = __webpack_require__(314); -var enoent = __webpack_require__(327); +var cp = __webpack_require__(59); +var parse = __webpack_require__(198); +var enoent = __webpack_require__(211); var cpSpawnSync = cp.spawnSync; @@ -35754,7 +20207,7 @@ function spawnSync(command, args, options) { if (!cpSpawnSync) { try { - cpSpawnSync = __webpack_require__(328); // eslint-disable-line global-require + cpSpawnSync = __webpack_require__(212); // eslint-disable-line global-require } catch (ex) { throw new Error( 'In order to use spawnSync on node 0.10 or older, you must ' + @@ -35785,17 +20238,17 @@ module.exports._enoent = enoent; /***/ }), -/* 314 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var resolveCommand = __webpack_require__(93); -var hasEmptyArgumentBug = __webpack_require__(322); -var escapeArgument = __webpack_require__(95); -var escapeCommand = __webpack_require__(323); -var readShebang = __webpack_require__(324); +var resolveCommand = __webpack_require__(92); +var hasEmptyArgumentBug = __webpack_require__(206); +var escapeArgument = __webpack_require__(94); +var escapeCommand = __webpack_require__(207); +var readShebang = __webpack_require__(208); var isWin = process.platform === 'win32'; var skipShellRegExp = /\.(?:com|exe)$/i; @@ -35905,7 +20358,7 @@ module.exports = parse; /***/ }), -/* 315 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { module.exports = which @@ -35915,9 +20368,9 @@ var isWindows = process.platform === 'win32' || process.env.OSTYPE === 'cygwin' || process.env.OSTYPE === 'msys' -var path = __webpack_require__(3) +var path = __webpack_require__(2) var COLON = isWindows ? ';' : ':' -var isexe = __webpack_require__(316) +var isexe = __webpack_require__(200) function getNotFoundError (cmd) { var er = new Error('not found: ' + cmd) @@ -36046,15 +20499,15 @@ function whichSync (cmd, opt) { /***/ }), -/* 316 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { -var fs = __webpack_require__(7) +var fs = __webpack_require__(6) var core if (process.platform === 'win32' || global.TESTING_WINDOWS) { - core = __webpack_require__(317) + core = __webpack_require__(201) } else { - core = __webpack_require__(318) + core = __webpack_require__(202) } module.exports = isexe @@ -36109,13 +20562,13 @@ function sync (path, options) { /***/ }), -/* 317 */ +/* 201 */ /***/ (function(module, exports, __webpack_require__) { module.exports = isexe isexe.sync = sync -var fs = __webpack_require__(7) +var fs = __webpack_require__(6) function checkPathExt (path, options) { var pathext = options.pathExt !== undefined ? @@ -36157,13 +20610,13 @@ function sync (path, options) { /***/ }), -/* 318 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { module.exports = isexe isexe.sync = sync -var fs = __webpack_require__(7) +var fs = __webpack_require__(6) function isexe (path, options, cb) { fs.stat(path, function (er, stat) { @@ -36204,7 +20657,7 @@ function checkMode (stat, options) { /***/ }), -/* 319 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { if (process.env.npm_package_name === 'pseudomap' && @@ -36214,12 +20667,12 @@ if (process.env.npm_package_name === 'pseudomap' && if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) { module.exports = Map } else { - module.exports = __webpack_require__(320) + module.exports = __webpack_require__(204) } /***/ }), -/* 320 */ +/* 204 */ /***/ (function(module, exports) { var hasOwnProperty = Object.prototype.hasOwnProperty @@ -36338,7 +20791,7 @@ function set (data, k, v) { /***/ }), -/* 321 */ +/* 205 */ /***/ (function(module, exports) { module.exports = Yallist @@ -36714,7 +21167,7 @@ function Node (value, prev, next, list) { /***/ }), -/* 322 */ +/* 206 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36739,13 +21192,13 @@ module.exports = hasEmptyArgumentBug(); /***/ }), -/* 323 */ +/* 207 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var escapeArgument = __webpack_require__(95); +var escapeArgument = __webpack_require__(94); function escapeCommand(command) { // Do not escape if this command is not dangerous.. @@ -36758,15 +21211,15 @@ module.exports = escapeCommand; /***/ }), -/* 324 */ +/* 208 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var fs = __webpack_require__(7); -var LRU = __webpack_require__(94); -var shebangCommand = __webpack_require__(325); +var fs = __webpack_require__(6); +var LRU = __webpack_require__(93); +var shebangCommand = __webpack_require__(209); var shebangCache = new LRU({ max: 50, maxAge: 30 * 1000 }); // Cache just for 30sec @@ -36802,12 +21255,12 @@ module.exports = readShebang; /***/ }), -/* 325 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var shebangRegex = __webpack_require__(326); +var shebangRegex = __webpack_require__(210); module.exports = function (str) { var match = str.match(shebangRegex); @@ -36828,7 +21281,7 @@ module.exports = function (str) { /***/ }), -/* 326 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36837,14 +21290,14 @@ module.exports = /^#!.*/; /***/ }), -/* 327 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var isWin = process.platform === 'win32'; -var resolveCommand = __webpack_require__(93); +var resolveCommand = __webpack_require__(92); var isNode10 = process.version.indexOf('v0.10.') === 0; @@ -36917,17 +21370,17 @@ module.exports.notFoundError = notFoundError; /***/ }), -/* 328 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(62).spawnSync; +module.exports = __webpack_require__(59).spawnSync; /***/ }), -/* 329 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36949,13 +21402,13 @@ module.exports = function (x) { /***/ }), -/* 330 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const pathKey = __webpack_require__(331); +const path = __webpack_require__(2); +const pathKey = __webpack_require__(215); module.exports = opts => { opts = Object.assign({ @@ -36995,7 +21448,7 @@ module.exports.env = opts => { /***/ }), -/* 331 */ +/* 215 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -37015,7 +21468,7 @@ module.exports = opts => { /***/ }), -/* 332 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -37043,12 +21496,12 @@ isStream.transform = function (stream) { /***/ }), -/* 333 */ +/* 217 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const bufferStream = __webpack_require__(334); +const bufferStream = __webpack_require__(218); function getStream(inputStream, opts) { if (!inputStream) { @@ -37101,12 +21554,12 @@ module.exports.array = (stream, opts) => getStream(stream, Object.assign({}, opt /***/ }), -/* 334 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const PassThrough = __webpack_require__(22).PassThrough; +const PassThrough = __webpack_require__(21).PassThrough; module.exports = opts => { opts = Object.assign({}, opts); @@ -37159,7 +21612,7 @@ module.exports = opts => { /***/ }), -/* 335 */ +/* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -37181,7 +21634,7 @@ module.exports = (promise, onFinally) => { /***/ }), -/* 336 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -37225,7 +21678,7 @@ module.exports.__test__ = errname; /***/ }), -/* 337 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -37273,16 +21726,16 @@ module.exports = opts => { /***/ }), -/* 338 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const escapeStringRegexp = __webpack_require__(52); -const ansiStyles = __webpack_require__(339); -const stdoutColor = __webpack_require__(340).stdout; +const escapeStringRegexp = __webpack_require__(51); +const ansiStyles = __webpack_require__(223); +const supportsColor = __webpack_require__(224); -const template = __webpack_require__(341); +const template = __webpack_require__(226); const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); @@ -37298,7 +21751,7 @@ function applyOptions(obj, options) { options = options || {}; // Detect level if not set manually - const scLevel = stdoutColor ? stdoutColor.level : 0; + const scLevel = supportsColor ? supportsColor.level : 0; obj.level = options.level === undefined ? scLevel : options.level; obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0; } @@ -37503,17 +21956,17 @@ function chalkTag(chalk, strings) { Object.defineProperties(Chalk.prototype, styles); module.exports = Chalk(); // eslint-disable-line new-cap -module.exports.supportsColor = stdoutColor; +module.exports.supportsColor = supportsColor; module.exports.default = module.exports; // For TypeScript /***/ }), -/* 339 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(module) { -const colorConvert = __webpack_require__(53); +const colorConvert = __webpack_require__(52); const wrapAnsi16 = (fn, offset) => function () { const code = fn.apply(colorConvert, arguments); @@ -37665,35 +22118,20 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module))) /***/ }), -/* 340 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(54); -const hasFlag = __webpack_require__(55); +const os = __webpack_require__(53); +const hasFlag = __webpack_require__(225); const env = process.env; -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - forceColor = false; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = true; -} -if ('FORCE_COLOR' in env) { - forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; -} - -function translateLevel(level) { +const support = level => { if (level === 0) { return false; } @@ -37704,10 +22142,12 @@ function translateLevel(level) { has256: level >= 2, has16m: level >= 3 }; -} +}; -function supportsColor(stream) { - if (forceColor === false) { +let supportLevel = (() => { + if (hasFlag('no-color') || + hasFlag('no-colors') || + hasFlag('color=false')) { return 0; } @@ -37721,26 +22161,30 @@ function supportsColor(stream) { return 2; } - if (stream && !stream.isTTY && forceColor !== true) { - return 0; + if (hasFlag('color') || + hasFlag('colors') || + hasFlag('color=true') || + hasFlag('color=always')) { + return 1; } - const min = forceColor ? 1 : 0; + if (process.stdout && !process.stdout.isTTY) { + return 0; + } if (process.platform === 'win32') { // Node.js 7.5.0 is the first version of Node.js to include a patch to // libuv that enables 256 color output on Windows. Anything earlier and it // won't work. However, here we target Node.js 8 at minimum as it is an LTS // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows - // release that supports 256 colors. Windows 10 build 14931 is the first release - // that supports 16m/TrueColor. + // release that supports 256 colors. const osRelease = os.release().split('.'); if ( Number(process.versions.node.split('.')[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; + return 2; } return 1; @@ -37751,7 +22195,7 @@ function supportsColor(stream) { return 1; } - return min; + return 0; } if ('TEAMCITY_VERSION' in env) { @@ -37785,26 +22229,38 @@ function supportsColor(stream) { } if (env.TERM === 'dumb') { - return min; + return 0; } - return min; -} + return 0; +})(); -function getSupportLevel(stream) { - const level = supportsColor(stream); - return translateLevel(level); +if ('FORCE_COLOR' in env) { + supportLevel = parseInt(env.FORCE_COLOR, 10) === 0 ? 0 : (supportLevel || 1); } -module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel(process.stdout), - stderr: getSupportLevel(process.stderr) +module.exports = process && support(supportLevel); + + +/***/ }), +/* 225 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +module.exports = function (flag, argv) { + argv = argv || process.argv; + + var terminatorPos = argv.indexOf('--'); + var prefix = /^-{1,2}/.test(flag) ? '' : '--'; + var pos = argv.indexOf(prefix + flag); + + return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); }; /***/ }), -/* 341 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -37939,20 +22395,20 @@ module.exports = (chalk, tmp) => { /***/ }), -/* 342 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { -// Copyright IBM Corp. 2014. All Rights Reserved. +// Copyright IBM Corp. 2014,2018. All Rights Reserved. // Node module: strong-log-transformer -// This file is licensed under the Artistic License 2.0. -// License text available at https://opensource.org/licenses/Artistic-2.0 +// This file is licensed under the Apache License 2.0. +// License text available at https://opensource.org/licenses/Apache-2.0 -module.exports = __webpack_require__(97); -module.exports.cli = __webpack_require__(348); +module.exports = __webpack_require__(96); +module.exports.cli = __webpack_require__(232); /***/ }), -/* 343 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { // Copyright (C) 2011-2015 John Hewson @@ -37975,9 +22431,9 @@ module.exports.cli = __webpack_require__(348); // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. -var stream = __webpack_require__(22), - util = __webpack_require__(10), - timers = __webpack_require__(344); +var stream = __webpack_require__(21), + util = __webpack_require__(8), + timers = __webpack_require__(229); // convinience API module.exports = function(readStream, options) { @@ -38113,16 +22569,16 @@ LineStream.prototype._reencode = function(line, chunkEncoding) { /***/ }), -/* 344 */ +/* 229 */ /***/ (function(module, exports) { module.exports = require("timers"); /***/ }), -/* 345 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { -var Stream = __webpack_require__(22) +var Stream = __webpack_require__(21) // through // @@ -38233,10 +22689,10 @@ function through (write, end, opts) { /***/ }), -/* 346 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { -var Stream = __webpack_require__(22) +var Stream = __webpack_require__(21) var writeMethods = ["write", "end", "destroy"] var readMethods = ["resume", "pause"] var readEvents = ["data", "close"] @@ -38326,282 +22782,22 @@ function duplex(writer, reader) { /***/ }), -/* 347 */ -/***/ (function(module, exports, __webpack_require__) { - -var map = { - "./af": 98, - "./af.js": 98, - "./ar": 99, - "./ar-dz": 100, - "./ar-dz.js": 100, - "./ar-kw": 101, - "./ar-kw.js": 101, - "./ar-ly": 102, - "./ar-ly.js": 102, - "./ar-ma": 103, - "./ar-ma.js": 103, - "./ar-sa": 104, - "./ar-sa.js": 104, - "./ar-tn": 105, - "./ar-tn.js": 105, - "./ar.js": 99, - "./az": 106, - "./az.js": 106, - "./be": 107, - "./be.js": 107, - "./bg": 108, - "./bg.js": 108, - "./bm": 109, - "./bm.js": 109, - "./bn": 110, - "./bn.js": 110, - "./bo": 111, - "./bo.js": 111, - "./br": 112, - "./br.js": 112, - "./bs": 113, - "./bs.js": 113, - "./ca": 114, - "./ca.js": 114, - "./cs": 115, - "./cs.js": 115, - "./cv": 116, - "./cv.js": 116, - "./cy": 117, - "./cy.js": 117, - "./da": 118, - "./da.js": 118, - "./de": 119, - "./de-at": 120, - "./de-at.js": 120, - "./de-ch": 121, - "./de-ch.js": 121, - "./de.js": 119, - "./dv": 122, - "./dv.js": 122, - "./el": 123, - "./el.js": 123, - "./en-au": 124, - "./en-au.js": 124, - "./en-ca": 125, - "./en-ca.js": 125, - "./en-gb": 126, - "./en-gb.js": 126, - "./en-ie": 127, - "./en-ie.js": 127, - "./en-nz": 128, - "./en-nz.js": 128, - "./eo": 129, - "./eo.js": 129, - "./es": 130, - "./es-do": 131, - "./es-do.js": 131, - "./es-us": 132, - "./es-us.js": 132, - "./es.js": 130, - "./et": 133, - "./et.js": 133, - "./eu": 134, - "./eu.js": 134, - "./fa": 135, - "./fa.js": 135, - "./fi": 136, - "./fi.js": 136, - "./fo": 137, - "./fo.js": 137, - "./fr": 138, - "./fr-ca": 139, - "./fr-ca.js": 139, - "./fr-ch": 140, - "./fr-ch.js": 140, - "./fr.js": 138, - "./fy": 141, - "./fy.js": 141, - "./gd": 142, - "./gd.js": 142, - "./gl": 143, - "./gl.js": 143, - "./gom-latn": 144, - "./gom-latn.js": 144, - "./gu": 145, - "./gu.js": 145, - "./he": 146, - "./he.js": 146, - "./hi": 147, - "./hi.js": 147, - "./hr": 148, - "./hr.js": 148, - "./hu": 149, - "./hu.js": 149, - "./hy-am": 150, - "./hy-am.js": 150, - "./id": 151, - "./id.js": 151, - "./is": 152, - "./is.js": 152, - "./it": 153, - "./it.js": 153, - "./ja": 154, - "./ja.js": 154, - "./jv": 155, - "./jv.js": 155, - "./ka": 156, - "./ka.js": 156, - "./kk": 157, - "./kk.js": 157, - "./km": 158, - "./km.js": 158, - "./kn": 159, - "./kn.js": 159, - "./ko": 160, - "./ko.js": 160, - "./ky": 161, - "./ky.js": 161, - "./lb": 162, - "./lb.js": 162, - "./lo": 163, - "./lo.js": 163, - "./lt": 164, - "./lt.js": 164, - "./lv": 165, - "./lv.js": 165, - "./me": 166, - "./me.js": 166, - "./mi": 167, - "./mi.js": 167, - "./mk": 168, - "./mk.js": 168, - "./ml": 169, - "./ml.js": 169, - "./mr": 170, - "./mr.js": 170, - "./ms": 171, - "./ms-my": 172, - "./ms-my.js": 172, - "./ms.js": 171, - "./mt": 173, - "./mt.js": 173, - "./my": 174, - "./my.js": 174, - "./nb": 175, - "./nb.js": 175, - "./ne": 176, - "./ne.js": 176, - "./nl": 177, - "./nl-be": 178, - "./nl-be.js": 178, - "./nl.js": 177, - "./nn": 179, - "./nn.js": 179, - "./pa-in": 180, - "./pa-in.js": 180, - "./pl": 181, - "./pl.js": 181, - "./pt": 182, - "./pt-br": 183, - "./pt-br.js": 183, - "./pt.js": 182, - "./ro": 184, - "./ro.js": 184, - "./ru": 185, - "./ru.js": 185, - "./sd": 186, - "./sd.js": 186, - "./se": 187, - "./se.js": 187, - "./si": 188, - "./si.js": 188, - "./sk": 189, - "./sk.js": 189, - "./sl": 190, - "./sl.js": 190, - "./sq": 191, - "./sq.js": 191, - "./sr": 192, - "./sr-cyrl": 193, - "./sr-cyrl.js": 193, - "./sr.js": 192, - "./ss": 194, - "./ss.js": 194, - "./sv": 195, - "./sv.js": 195, - "./sw": 196, - "./sw.js": 196, - "./ta": 197, - "./ta.js": 197, - "./te": 198, - "./te.js": 198, - "./tet": 199, - "./tet.js": 199, - "./th": 200, - "./th.js": 200, - "./tl-ph": 201, - "./tl-ph.js": 201, - "./tlh": 202, - "./tlh.js": 202, - "./tr": 203, - "./tr.js": 203, - "./tzl": 204, - "./tzl.js": 204, - "./tzm": 205, - "./tzm-latn": 206, - "./tzm-latn.js": 206, - "./tzm.js": 205, - "./uk": 207, - "./uk.js": 207, - "./ur": 208, - "./ur.js": 208, - "./uz": 209, - "./uz-latn": 210, - "./uz-latn.js": 210, - "./uz.js": 209, - "./vi": 211, - "./vi.js": 211, - "./x-pseudo": 212, - "./x-pseudo.js": 212, - "./yo": 213, - "./yo.js": 213, - "./zh-cn": 214, - "./zh-cn.js": 214, - "./zh-hk": 215, - "./zh-hk.js": 215, - "./zh-tw": 216, - "./zh-tw.js": 216 -}; -function webpackContext(req) { - return __webpack_require__(webpackContextResolve(req)); -}; -function webpackContextResolve(req) { - var id = map[req]; - if(!(id + 1)) // check for number or string - throw new Error("Cannot find module '" + req + "'."); - return id; -}; -webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); -}; -webpackContext.resolve = webpackContextResolve; -module.exports = webpackContext; -webpackContext.id = 347; - -/***/ }), -/* 348 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// Copyright IBM Corp. 2014. All Rights Reserved. +// Copyright IBM Corp. 2014,2018. All Rights Reserved. // Node module: strong-log-transformer -// This file is licensed under the Artistic License 2.0. -// License text available at https://opensource.org/licenses/Artistic-2.0 +// This file is licensed under the Apache License 2.0. +// License text available at https://opensource.org/licenses/Apache-2.0 -var minimist = __webpack_require__(349); -var path = __webpack_require__(3); +var minimist = __webpack_require__(233); +var path = __webpack_require__(2); -var Logger = __webpack_require__(97); -var pkg = __webpack_require__(350); +var Logger = __webpack_require__(96); +var pkg = __webpack_require__(234); module.exports = cli; @@ -38613,6 +22809,8 @@ function cli(args) { version($0, p); } else if (opts.h || opts.help) { usage($0, p); + } else if (args.length < 3) { + process.stdin.pipe(Logger()).pipe(process.stdout); } else { process.stdin.pipe(Logger(opts)).pipe(process.stdout); } @@ -38640,9 +22838,8 @@ function usage($0, p) { p(''); function boolOpt(name, def) { - name = def ? 'no-' + name : name; name = name + PADDING.slice(0, 20-name.length); - p(' --%s default: %s', name, def ? 'on' : 'off'); + p(' --%s default: %s', name, def); } function stdOpt(name, def) { @@ -38654,17 +22851,25 @@ function usage($0, p) { /***/ }), -/* 349 */ +/* 233 */ /***/ (function(module, exports) { module.exports = function (args, opts) { if (!opts) opts = {}; - var flags = { bools : {}, strings : {} }; - - [].concat(opts['boolean']).filter(Boolean).forEach(function (key) { - flags.bools[key] = true; - }); + var flags = { bools : {}, strings : {}, unknownFn: null }; + + if (typeof opts['unknown'] === 'function') { + flags.unknownFn = opts['unknown']; + } + + if (typeof opts['boolean'] === 'boolean' && opts['boolean']) { + flags.allBools = true; + } else { + [].concat(opts['boolean']).filter(Boolean).forEach(function (key) { + flags.bools[key] = true; + }); + } var aliases = {}; Object.keys(opts.alias || {}).forEach(function (key) { @@ -38697,7 +22902,16 @@ module.exports = function (args, opts) { args = args.slice(0, args.indexOf('--')); } - function setArg (key, val) { + function argDefined(key, arg) { + return (flags.allBools && /^--[^=]+$/.test(arg)) || + flags.strings[key] || flags.bools[key] || aliases[key]; + } + + function setArg (key, val, arg) { + if (arg && flags.unknownFn && !argDefined(key, arg)) { + if (flags.unknownFn(arg) === false) return; + } + var value = !flags.strings[key] && isNumber(val) ? Number(val) : val ; @@ -38707,7 +22921,32 @@ module.exports = function (args, opts) { setKey(argv, x.split('.'), value); }); } + + function setKey (obj, keys, value) { + var o = obj; + keys.slice(0,-1).forEach(function (key) { + if (o[key] === undefined) o[key] = {}; + o = o[key]; + }); + + var key = keys[keys.length - 1]; + if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') { + o[key] = value; + } + else if (Array.isArray(o[key])) { + o[key].push(value); + } + else { + o[key] = [ o[key], value ]; + } + } + function aliasIsBoolean(key) { + return aliases[key].some(function (x) { + return flags.bools[x]; + }); + } + for (var i = 0; i < args.length; i++) { var arg = args[i]; @@ -38716,27 +22955,33 @@ module.exports = function (args, opts) { // 'dotall' regex modifier. See: // http://stackoverflow.com/a/1068308/13216 var m = arg.match(/^--([^=]+)=([\s\S]*)$/); - setArg(m[1], m[2]); + var key = m[1]; + var value = m[2]; + if (flags.bools[key]) { + value = value !== 'false'; + } + setArg(key, value, arg); } else if (/^--no-.+/.test(arg)) { var key = arg.match(/^--no-(.+)/)[1]; - setArg(key, false); + setArg(key, false, arg); } else if (/^--.+/.test(arg)) { var key = arg.match(/^--(.+)/)[1]; var next = args[i + 1]; if (next !== undefined && !/^-/.test(next) && !flags.bools[key] - && (aliases[key] ? !flags.bools[aliases[key]] : true)) { - setArg(key, next); + && !flags.allBools + && (aliases[key] ? !aliasIsBoolean(key) : true)) { + setArg(key, next, arg); i++; } else if (/^(true|false)$/.test(next)) { - setArg(key, next === 'true'); + setArg(key, next === 'true', arg); i++; } else { - setArg(key, flags.strings[key] ? '' : true); + setArg(key, flags.strings[key] ? '' : true, arg); } } else if (/^-[^-]+/.test(arg)) { @@ -38747,24 +22992,30 @@ module.exports = function (args, opts) { var next = arg.slice(j+2); if (next === '-') { - setArg(letters[j], next) + setArg(letters[j], next, arg) continue; } + if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) { + setArg(letters[j], next.split('=')[1], arg); + broken = true; + break; + } + if (/[A-Za-z]/.test(letters[j]) && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) { - setArg(letters[j], next); + setArg(letters[j], next, arg); broken = true; break; } if (letters[j+1] && letters[j+1].match(/\W/)) { - setArg(letters[j], arg.slice(j+2)); + setArg(letters[j], arg.slice(j+2), arg); broken = true; break; } else { - setArg(letters[j], flags.strings[letters[j]] ? '' : true); + setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg); } } @@ -38772,23 +23023,29 @@ module.exports = function (args, opts) { if (!broken && key !== '-') { if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1]) && !flags.bools[key] - && (aliases[key] ? !flags.bools[aliases[key]] : true)) { - setArg(key, args[i+1]); + && (aliases[key] ? !aliasIsBoolean(key) : true)) { + setArg(key, args[i+1], arg); i++; } else if (args[i+1] && /true|false/.test(args[i+1])) { - setArg(key, args[i+1] === 'true'); + setArg(key, args[i+1] === 'true', arg); i++; } else { - setArg(key, flags.strings[key] ? '' : true); + setArg(key, flags.strings[key] ? '' : true, arg); } } } else { - argv._.push( - flags.strings['_'] || !isNumber(arg) ? arg : Number(arg) - ); + if (!flags.unknownFn || flags.unknownFn(arg) !== false) { + argv._.push( + flags.strings['_'] || !isNumber(arg) ? arg : Number(arg) + ); + } + if (opts.stopEarly) { + argv._.push.apply(argv._, args.slice(i + 1)); + break; + } } } @@ -38827,25 +23084,6 @@ function hasKey (obj, keys) { return key in o; } -function setKey (obj, keys, value) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - if (o[key] === undefined) o[key] = {}; - o = o[key]; - }); - - var key = keys[keys.length - 1]; - if (o[key] === undefined || typeof o[key] === 'boolean') { - o[key] = value; - } - else if (Array.isArray(o[key])) { - o[key].push(value); - } - else { - o[key] = [ o[key], value ]; - } -} - function isNumber (x) { if (typeof x === 'number') return true; if (/^0x[0-9a-f]+$/i.test(x)) return true; @@ -38855,13 +23093,13 @@ function isNumber (x) { /***/ }), -/* 350 */ +/* 234 */ /***/ (function(module, exports) { -module.exports = {"name":"strong-log-transformer","version":"1.0.6","description":"Stream transformer that prefixes lines with timestamps and other things.","author":"Ryan Graham ","license":"Artistic-2.0","repository":{"type":"git","url":"git://github.com/strongloop/strong-log-transformer"},"keywords":["logging","streams"],"bugs":{"url":"https://github.com/strongloop/strong-log-transformer/issues"},"homepage":"https://github.com/strongloop/strong-log-transformer","directories":{"test":"test"},"bin":{"sl-log-transformer":"bin/sl-log-transformer.js"},"main":"index.js","scripts":{"test":"tap --coverage --coverage-report=cobertura test/test-*"},"dependencies":{"byline":"^5.0.0","duplexer":"^0.1.1","minimist":"^0.1.0","moment":"^2.6.0","through":"^2.3.4"},"devDependencies":{"tap":"^1.3.2"}} +module.exports = {"name":"strong-log-transformer","version":"2.0.0","description":"Stream transformer that prefixes lines with timestamps and other things.","author":"Ryan Graham ","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/strongloop/strong-log-transformer"},"keywords":["logging","streams"],"bugs":{"url":"https://github.com/strongloop/strong-log-transformer/issues"},"homepage":"https://github.com/strongloop/strong-log-transformer","directories":{"test":"test"},"bin":{"sl-log-transformer":"bin/sl-log-transformer.js"},"main":"index.js","scripts":{"test":"tap --100 test/test-*"},"dependencies":{"byline":"^5.0.0","duplexer":"^0.1.1","minimist":"^1.2.0","through":"^2.3.4"},"devDependencies":{"tap":"^12.0.1"},"engines":{"node":">=4"}} /***/ }), -/* 351 */ +/* 235 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -38872,23 +23110,23 @@ Object.defineProperty(exports, "__esModule", { }); exports.CleanCommand = undefined; -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _del = __webpack_require__(217); +var _del = __webpack_require__(98); var _del2 = _interopRequireDefault(_del); -var _ora = __webpack_require__(362); +var _ora = __webpack_require__(247); var _ora2 = _interopRequireDefault(_ora); -var _path = __webpack_require__(3); +var _path = __webpack_require__(2); -var _fs = __webpack_require__(56); +var _fs = __webpack_require__(39); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -38944,16 +23182,16 @@ const CleanCommand = exports.CleanCommand = { }; /***/ }), -/* 352 */ +/* 236 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Promise = __webpack_require__(218); -var arrayUnion = __webpack_require__(219); -var objectAssign = __webpack_require__(220); -var glob = __webpack_require__(31); -var pify = __webpack_require__(355); +var Promise = __webpack_require__(99); +var arrayUnion = __webpack_require__(100); +var objectAssign = __webpack_require__(101); +var glob = __webpack_require__(23); +var pify = __webpack_require__(239); var globP = pify(glob, Promise).bind(glob); @@ -39039,7 +23277,7 @@ module.exports.hasMagic = function (patterns, opts) { /***/ }), -/* 353 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -39338,7 +23576,7 @@ module.exports = Promise; /***/ }), -/* 354 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -39407,7 +23645,7 @@ if ('Set' in global) { /***/ }), -/* 355 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -39482,12 +23720,12 @@ pify.all = pify; /***/ }), -/* 356 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var path = __webpack_require__(3); +var path = __webpack_require__(2); module.exports = function (str) { return path.resolve(str) === path.resolve(process.cwd()); @@ -39495,12 +23733,12 @@ module.exports = function (str) { /***/ }), -/* 357 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isPathInside = __webpack_require__(358); +var isPathInside = __webpack_require__(242); module.exports = function (str) { return isPathInside(str, process.cwd()); @@ -39508,13 +23746,13 @@ module.exports = function (str) { /***/ }), -/* 358 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var path = __webpack_require__(3); -var pathIsInside = __webpack_require__(359); +var path = __webpack_require__(2); +var pathIsInside = __webpack_require__(243); module.exports = function (a, b) { a = path.resolve(a); @@ -39529,13 +23767,13 @@ module.exports = function (a, b) { /***/ }), -/* 359 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var path = __webpack_require__(3); +var path = __webpack_require__(2); module.exports = function (thePath, potentialParent) { // For inside-directory checking, we want to allow trailing slashes, so normalize. @@ -39564,16 +23802,107 @@ function stripTrailingSep(thePath) { /***/ }), -/* 360 */ +/* 244 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; + + +/***/ }), +/* 245 */ /***/ (function(module, exports, __webpack_require__) { module.exports = rimraf rimraf.sync = rimrafSync -var assert = __webpack_require__(29) -var path = __webpack_require__(3) -var fs = __webpack_require__(7) -var glob = __webpack_require__(31) +var assert = __webpack_require__(28) +var path = __webpack_require__(2) +var fs = __webpack_require__(6) +var glob = __webpack_require__(23) var _0666 = parseInt('666', 8) var defaultGlobOpts = { @@ -39934,7 +24263,7 @@ function rmkidsSync (p, options) { /***/ }), -/* 361 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -40008,15 +24337,15 @@ module.exports = (iterable, mapper, opts) => new Promise((resolve, reject) => { /***/ }), -/* 362 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const chalk = __webpack_require__(363); -const cliCursor = __webpack_require__(367); -const cliSpinners = __webpack_require__(371); -const logSymbols = __webpack_require__(96); +const chalk = __webpack_require__(248); +const cliCursor = __webpack_require__(252); +const cliSpinners = __webpack_require__(256); +const logSymbols = __webpack_require__(95); class Ora { constructor(options) { @@ -40163,16 +24492,16 @@ module.exports.promise = (action, options) => { /***/ }), -/* 363 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const escapeStringRegexp = __webpack_require__(52); -const ansiStyles = __webpack_require__(364); -const stdoutColor = __webpack_require__(365).stdout; +const escapeStringRegexp = __webpack_require__(51); +const ansiStyles = __webpack_require__(249); +const stdoutColor = __webpack_require__(250).stdout; -const template = __webpack_require__(366); +const template = __webpack_require__(251); const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); @@ -40398,12 +24727,12 @@ module.exports.default = module.exports; // For TypeScript /***/ }), -/* 364 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(module) { -const colorConvert = __webpack_require__(53); +const colorConvert = __webpack_require__(52); const wrapAnsi16 = (fn, offset) => function () { const code = fn.apply(colorConvert, arguments); @@ -40506,30 +24835,43 @@ function assembleStyles() { }); } + const ansi2ansi = n => n; const rgb2rgb = (r, g, b) => [r, g, b]; styles.color.close = '\u001B[39m'; styles.bgColor.close = '\u001B[49m'; - styles.color.ansi = {}; - styles.color.ansi256 = {}; + styles.color.ansi = { + ansi: wrapAnsi16(ansi2ansi, 0) + }; + styles.color.ansi256 = { + ansi256: wrapAnsi256(ansi2ansi, 0) + }; styles.color.ansi16m = { rgb: wrapAnsi16m(rgb2rgb, 0) }; - styles.bgColor.ansi = {}; - styles.bgColor.ansi256 = {}; + styles.bgColor.ansi = { + ansi: wrapAnsi16(ansi2ansi, 10) + }; + styles.bgColor.ansi256 = { + ansi256: wrapAnsi256(ansi2ansi, 10) + }; styles.bgColor.ansi16m = { rgb: wrapAnsi16m(rgb2rgb, 10) }; - for (const key of Object.keys(colorConvert)) { + for (let key of Object.keys(colorConvert)) { if (typeof colorConvert[key] !== 'object') { continue; } const suite = colorConvert[key]; + if (key === 'ansi16') { + key = 'ansi'; + } + if ('ansi16' in suite) { styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0); styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10); @@ -40555,16 +24897,16 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module))) /***/ }), -/* 365 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const os = __webpack_require__(54); -const hasFlag = __webpack_require__(55); +const os = __webpack_require__(53); +const hasFlag = __webpack_require__(78); const env = process.env; @@ -40612,6 +24954,10 @@ function supportsColor(stream) { } if (stream && !stream.isTTY && forceColor !== true) { + // VS code debugger doesn't have isTTY set + if (env.VSCODE_PID) { + return 1; + } return 0; } @@ -40648,14 +24994,16 @@ function supportsColor(stream) { return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; } + if (env.COLORTERM === 'truecolor') { + return 3; + } + if ('TERM_PROGRAM' in env) { const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); switch (env.TERM_PROGRAM) { case 'iTerm.app': return version >= 3 ? 3 : 2; - case 'Hyper': - return 3; case 'Apple_Terminal': return 2; // No default @@ -40694,7 +25042,7 @@ module.exports = { /***/ }), -/* 366 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -40829,12 +25177,12 @@ module.exports = (chalk, tmp) => { /***/ }), -/* 367 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const restoreCursor = __webpack_require__(368); +const restoreCursor = __webpack_require__(253); let hidden = false; @@ -40875,13 +25223,13 @@ exports.toggle = (force, stream) => { /***/ }), -/* 368 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const onetime = __webpack_require__(369); -const signalExit = __webpack_require__(61); +const onetime = __webpack_require__(254); +const signalExit = __webpack_require__(58); module.exports = onetime(() => { signalExit(() => { @@ -40891,12 +25239,12 @@ module.exports = onetime(() => { /***/ }), -/* 369 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const mimicFn = __webpack_require__(370); +const mimicFn = __webpack_require__(255); module.exports = (fn, opts) => { // TODO: Remove this in v3 @@ -40937,7 +25285,7 @@ module.exports = (fn, opts) => { /***/ }), -/* 370 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -40947,28 +25295,26 @@ module.exports = (to, from) => { for (const prop of Object.getOwnPropertyNames(from).concat(Object.getOwnPropertySymbols(from))) { Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop)); } - - return to; }; /***/ }), -/* 371 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(372); +module.exports = __webpack_require__(257); /***/ }), -/* 372 */ +/* 257 */ /***/ (function(module, exports) { module.exports = {"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"line":{"interval":130,"frames":["-","\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]}} /***/ }), -/* 373 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -40979,15 +25325,15 @@ Object.defineProperty(exports, "__esModule", { }); exports.RunCommand = undefined; -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); -var _parallelize = __webpack_require__(57); +var _parallelize = __webpack_require__(54); -var _projects = __webpack_require__(30); +var _projects = __webpack_require__(22); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -41040,7 +25386,7 @@ const RunCommand = exports.RunCommand = { }; /***/ }), -/* 374 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -41051,17 +25397,17 @@ Object.defineProperty(exports, "__esModule", { }); exports.WatchCommand = undefined; -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); -var _parallelize = __webpack_require__(57); +var _parallelize = __webpack_require__(54); -var _projects = __webpack_require__(30); +var _projects = __webpack_require__(22); -var _watch = __webpack_require__(375); +var _watch = __webpack_require__(260); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -41143,7 +25489,7 @@ const WatchCommand = exports.WatchCommand = { }; /***/ }), -/* 375 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -41154,11 +25500,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.waitUntilWatchIsReady = waitUntilWatchIsReady; -var _rxjs = __webpack_require__(376); +var _rxjs = __webpack_require__(261); var Rx = _interopRequireWildcard(_rxjs); -var _operators = __webpack_require__(407); +var _operators = __webpack_require__(292); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } @@ -41212,115 +25558,115 @@ function waitUntilWatchIsReady(stream, opts = {}) { } /***/ }), -/* 376 */ +/* 261 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__internal_Observable__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__internal_Observable__ = __webpack_require__(3); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return __WEBPACK_IMPORTED_MODULE_0__internal_Observable__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__internal_observable_ConnectableObservable__ = __webpack_require__(224); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__internal_observable_ConnectableObservable__ = __webpack_require__(105); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function() { return __WEBPACK_IMPORTED_MODULE_1__internal_observable_ConnectableObservable__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__internal_operators_groupBy__ = __webpack_require__(226); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__internal_operators_groupBy__ = __webpack_require__(107); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "GroupedObservable", function() { return __WEBPACK_IMPORTED_MODULE_2__internal_operators_groupBy__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__internal_symbol_observable__ = __webpack_require__(24); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "observable", function() { return __WEBPACK_IMPORTED_MODULE_3__internal_symbol_observable__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__internal_Subject__ = __webpack_require__(9); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Subject", function() { return __WEBPACK_IMPORTED_MODULE_4__internal_Subject__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__internal_BehaviorSubject__ = __webpack_require__(227); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__internal_BehaviorSubject__ = __webpack_require__(108); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function() { return __WEBPACK_IMPORTED_MODULE_5__internal_BehaviorSubject__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_ReplaySubject__ = __webpack_require__(67); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_ReplaySubject__ = __webpack_require__(65); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ReplaySubject", function() { return __WEBPACK_IMPORTED_MODULE_6__internal_ReplaySubject__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__internal_AsyncSubject__ = __webpack_require__(47); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__internal_AsyncSubject__ = __webpack_require__(46); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncSubject", function() { return __WEBPACK_IMPORTED_MODULE_7__internal_AsyncSubject__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__internal_scheduler_asap__ = __webpack_require__(232); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__internal_scheduler_asap__ = __webpack_require__(113); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "asapScheduler", function() { return __WEBPACK_IMPORTED_MODULE_8__internal_scheduler_asap__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__internal_scheduler_async__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__internal_scheduler_async__ = __webpack_require__(12); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "asyncScheduler", function() { return __WEBPACK_IMPORTED_MODULE_9__internal_scheduler_async__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__internal_scheduler_queue__ = __webpack_require__(228); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__internal_scheduler_queue__ = __webpack_require__(109); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "queueScheduler", function() { return __WEBPACK_IMPORTED_MODULE_10__internal_scheduler_queue__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__internal_scheduler_animationFrame__ = __webpack_require__(384); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__internal_scheduler_animationFrame__ = __webpack_require__(269); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function() { return __WEBPACK_IMPORTED_MODULE_11__internal_scheduler_animationFrame__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__internal_scheduler_VirtualTimeScheduler__ = __webpack_require__(387); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__internal_scheduler_VirtualTimeScheduler__ = __webpack_require__(272); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function() { return __WEBPACK_IMPORTED_MODULE_12__internal_scheduler_VirtualTimeScheduler__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "VirtualAction", function() { return __WEBPACK_IMPORTED_MODULE_12__internal_scheduler_VirtualTimeScheduler__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__internal_Scheduler__ = __webpack_require__(229); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__internal_Scheduler__ = __webpack_require__(110); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Scheduler", function() { return __WEBPACK_IMPORTED_MODULE_13__internal_Scheduler__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__internal_Subscription__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__internal_Subscription__ = __webpack_require__(7); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Subscription", function() { return __WEBPACK_IMPORTED_MODULE_14__internal_Subscription__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__internal_Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__internal_Subscriber__ = __webpack_require__(1); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Subscriber", function() { return __WEBPACK_IMPORTED_MODULE_15__internal_Subscriber__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__internal_Notification__ = __webpack_require__(46); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__internal_Notification__ = __webpack_require__(45); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return __WEBPACK_IMPORTED_MODULE_16__internal_Notification__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__internal_util_pipe__ = __webpack_require__(65); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__internal_util_pipe__ = __webpack_require__(63); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pipe", function() { return __WEBPACK_IMPORTED_MODULE_17__internal_util_pipe__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__internal_util_noop__ = __webpack_require__(44); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__internal_util_noop__ = __webpack_require__(43); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return __WEBPACK_IMPORTED_MODULE_18__internal_util_noop__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__internal_util_identity__ = __webpack_require__(25); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return __WEBPACK_IMPORTED_MODULE_19__internal_util_identity__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__internal_util_isObservable__ = __webpack_require__(388); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__internal_util_isObservable__ = __webpack_require__(273); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "isObservable", function() { return __WEBPACK_IMPORTED_MODULE_20__internal_util_isObservable__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__internal_util_ArgumentOutOfRangeError__ = __webpack_require__(35); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__internal_util_ArgumentOutOfRangeError__ = __webpack_require__(32); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function() { return __WEBPACK_IMPORTED_MODULE_21__internal_util_ArgumentOutOfRangeError__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__internal_util_EmptyError__ = __webpack_require__(36); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__internal_util_EmptyError__ = __webpack_require__(33); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyError", function() { return __WEBPACK_IMPORTED_MODULE_22__internal_util_EmptyError__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__internal_util_ObjectUnsubscribedError__ = __webpack_require__(45); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__internal_util_ObjectUnsubscribedError__ = __webpack_require__(44); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function() { return __WEBPACK_IMPORTED_MODULE_23__internal_util_ObjectUnsubscribedError__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__internal_util_UnsubscriptionError__ = __webpack_require__(223); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__internal_util_UnsubscriptionError__ = __webpack_require__(104); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "UnsubscriptionError", function() { return __WEBPACK_IMPORTED_MODULE_24__internal_util_UnsubscriptionError__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__internal_util_TimeoutError__ = __webpack_require__(233); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__internal_util_TimeoutError__ = __webpack_require__(114); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimeoutError", function() { return __WEBPACK_IMPORTED_MODULE_25__internal_util_TimeoutError__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__internal_observable_bindCallback__ = __webpack_require__(389); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__internal_observable_bindCallback__ = __webpack_require__(274); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bindCallback", function() { return __WEBPACK_IMPORTED_MODULE_26__internal_observable_bindCallback__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__internal_observable_bindNodeCallback__ = __webpack_require__(390); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__internal_observable_bindNodeCallback__ = __webpack_require__(275); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function() { return __WEBPACK_IMPORTED_MODULE_27__internal_observable_bindNodeCallback__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__internal_observable_combineLatest__ = __webpack_require__(71); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__internal_observable_combineLatest__ = __webpack_require__(69); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return __WEBPACK_IMPORTED_MODULE_28__internal_observable_combineLatest__["b"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__internal_observable_concat__ = __webpack_require__(48); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__internal_observable_concat__ = __webpack_require__(47); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return __WEBPACK_IMPORTED_MODULE_29__internal_observable_concat__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__internal_observable_defer__ = __webpack_require__(73); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__internal_observable_defer__ = __webpack_require__(71); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defer", function() { return __WEBPACK_IMPORTED_MODULE_30__internal_observable_defer__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__internal_observable_empty__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__internal_observable_empty__ = __webpack_require__(11); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return __WEBPACK_IMPORTED_MODULE_31__internal_observable_empty__["b"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__internal_observable_forkJoin__ = __webpack_require__(397); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__internal_observable_forkJoin__ = __webpack_require__(282); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "forkJoin", function() { return __WEBPACK_IMPORTED_MODULE_32__internal_observable_forkJoin__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__internal_observable_from__ = __webpack_require__(19); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__internal_observable_from__ = __webpack_require__(18); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "from", function() { return __WEBPACK_IMPORTED_MODULE_33__internal_observable_from__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__internal_observable_fromEvent__ = __webpack_require__(398); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__internal_observable_fromEvent__ = __webpack_require__(283); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "fromEvent", function() { return __WEBPACK_IMPORTED_MODULE_34__internal_observable_fromEvent__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__internal_observable_fromEventPattern__ = __webpack_require__(399); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__internal_observable_fromEventPattern__ = __webpack_require__(284); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "fromEventPattern", function() { return __WEBPACK_IMPORTED_MODULE_35__internal_observable_fromEventPattern__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__internal_observable_generate__ = __webpack_require__(400); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__internal_observable_generate__ = __webpack_require__(285); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return __WEBPACK_IMPORTED_MODULE_36__internal_observable_generate__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__internal_observable_iif__ = __webpack_require__(401); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__internal_observable_iif__ = __webpack_require__(286); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "iif", function() { return __WEBPACK_IMPORTED_MODULE_37__internal_observable_iif__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__internal_observable_interval__ = __webpack_require__(402); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__internal_observable_interval__ = __webpack_require__(287); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return __WEBPACK_IMPORTED_MODULE_38__internal_observable_interval__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__internal_observable_merge__ = __webpack_require__(241); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__internal_observable_merge__ = __webpack_require__(122); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return __WEBPACK_IMPORTED_MODULE_39__internal_observable_merge__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__internal_observable_never__ = __webpack_require__(242); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__internal_observable_never__ = __webpack_require__(123); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "never", function() { return __WEBPACK_IMPORTED_MODULE_40__internal_observable_never__["b"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__internal_observable_of__ = __webpack_require__(68); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__internal_observable_of__ = __webpack_require__(66); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "of", function() { return __WEBPACK_IMPORTED_MODULE_41__internal_observable_of__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__internal_observable_onErrorResumeNext__ = __webpack_require__(403); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__internal_observable_onErrorResumeNext__ = __webpack_require__(288); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return __WEBPACK_IMPORTED_MODULE_42__internal_observable_onErrorResumeNext__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__internal_observable_pairs__ = __webpack_require__(404); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__internal_observable_pairs__ = __webpack_require__(289); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return __WEBPACK_IMPORTED_MODULE_43__internal_observable_pairs__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__internal_observable_race__ = __webpack_require__(243); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__internal_observable_race__ = __webpack_require__(124); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return __WEBPACK_IMPORTED_MODULE_44__internal_observable_race__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__internal_observable_range__ = __webpack_require__(405); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__internal_observable_range__ = __webpack_require__(290); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "range", function() { return __WEBPACK_IMPORTED_MODULE_45__internal_observable_range__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__internal_observable_throwError__ = __webpack_require__(70); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__internal_observable_throwError__ = __webpack_require__(68); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "throwError", function() { return __WEBPACK_IMPORTED_MODULE_46__internal_observable_throwError__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__internal_observable_timer__ = __webpack_require__(244); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__internal_observable_timer__ = __webpack_require__(125); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return __WEBPACK_IMPORTED_MODULE_47__internal_observable_timer__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__internal_observable_using__ = __webpack_require__(406); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__internal_observable_using__ = __webpack_require__(291); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "using", function() { return __WEBPACK_IMPORTED_MODULE_48__internal_observable_using__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_49__internal_observable_zip__ = __webpack_require__(74); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_49__internal_observable_zip__ = __webpack_require__(72); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return __WEBPACK_IMPORTED_MODULE_49__internal_observable_zip__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "EMPTY", function() { return __WEBPACK_IMPORTED_MODULE_31__internal_observable_empty__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NEVER", function() { return __WEBPACK_IMPORTED_MODULE_40__internal_observable_never__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__internal_config__ = __webpack_require__(43); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__internal_config__ = __webpack_require__(42); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return __WEBPACK_IMPORTED_MODULE_50__internal_config__["a"]; }); /** PURE_IMPORTS_START PURE_IMPORTS_END */ @@ -41380,14 +25726,14 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /***/ }), -/* 377 */ +/* 262 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = toSubscriber; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__symbol_rxSubscriber__ = __webpack_require__(64); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observer__ = __webpack_require__(221); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__symbol_rxSubscriber__ = __webpack_require__(62); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observer__ = __webpack_require__(102); /** PURE_IMPORTS_START _Subscriber,_symbol_rxSubscriber,_Observer PURE_IMPORTS_END */ @@ -41410,13 +25756,13 @@ function toSubscriber(nextOrObserver, error, complete) { /***/ }), -/* 378 */ +/* 263 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return QueueAction; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncAction__ = __webpack_require__(33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncAction__ = __webpack_require__(30); /** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */ @@ -41461,13 +25807,13 @@ var QueueAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 379 */ +/* 264 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Action; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); /** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */ @@ -41489,13 +25835,13 @@ var Action = /*@__PURE__*/ (function (_super) { /***/ }), -/* 380 */ +/* 265 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return QueueScheduler; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(34); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(31); /** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */ @@ -41511,14 +25857,14 @@ var QueueScheduler = /*@__PURE__*/ (function (_super) { /***/ }), -/* 381 */ +/* 266 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsapAction; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_Immediate__ = __webpack_require__(382); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AsyncAction__ = __webpack_require__(33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_Immediate__ = __webpack_require__(267); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AsyncAction__ = __webpack_require__(30); /** PURE_IMPORTS_START tslib,_util_Immediate,_AsyncAction PURE_IMPORTS_END */ @@ -41561,7 +25907,7 @@ var AsapAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 382 */ +/* 267 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -41590,13 +25936,13 @@ var Immediate = { /***/ }), -/* 383 */ +/* 268 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AsapScheduler; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(34); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(31); /** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */ @@ -41633,13 +25979,13 @@ var AsapScheduler = /*@__PURE__*/ (function (_super) { /***/ }), -/* 384 */ +/* 269 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return animationFrame; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AnimationFrameAction__ = __webpack_require__(385); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AnimationFrameScheduler__ = __webpack_require__(386); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AnimationFrameAction__ = __webpack_require__(270); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AnimationFrameScheduler__ = __webpack_require__(271); /** PURE_IMPORTS_START _AnimationFrameAction,_AnimationFrameScheduler PURE_IMPORTS_END */ @@ -41648,13 +25994,13 @@ var animationFrame = /*@__PURE__*/ new __WEBPACK_IMPORTED_MODULE_1__AnimationFra /***/ }), -/* 385 */ +/* 270 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AnimationFrameAction; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncAction__ = __webpack_require__(33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncAction__ = __webpack_require__(30); /** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */ @@ -41696,13 +26042,13 @@ var AnimationFrameAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 386 */ +/* 271 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AnimationFrameScheduler; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(34); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncScheduler__ = __webpack_require__(31); /** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */ @@ -41739,15 +26085,15 @@ var AnimationFrameScheduler = /*@__PURE__*/ (function (_super) { /***/ }), -/* 387 */ +/* 272 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return VirtualTimeScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VirtualAction; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncAction__ = __webpack_require__(33); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AsyncScheduler__ = __webpack_require__(34); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncAction__ = __webpack_require__(30); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AsyncScheduler__ = __webpack_require__(31); /** PURE_IMPORTS_START tslib,_AsyncAction,_AsyncScheduler PURE_IMPORTS_END */ @@ -41859,12 +26205,12 @@ var VirtualAction = /*@__PURE__*/ (function (_super) { /***/ }), -/* 388 */ +/* 273 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = isObservable; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ function isObservable(obj) { @@ -41874,16 +26220,16 @@ function isObservable(obj) { /***/ }), -/* 389 */ +/* 274 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = bindCallback; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncSubject__ = __webpack_require__(47); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__operators_map__ = __webpack_require__(16); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isScheduler__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncSubject__ = __webpack_require__(46); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__operators_map__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isScheduler__ = __webpack_require__(14); /** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_isArray,_util_isScheduler PURE_IMPORTS_END */ @@ -41986,16 +26332,16 @@ function dispatchError(state) { /***/ }), -/* 390 */ +/* 275 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = bindNodeCallback; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncSubject__ = __webpack_require__(47); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__operators_map__ = __webpack_require__(16); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isScheduler__ = __webpack_require__(15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isArray__ = __webpack_require__(11); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AsyncSubject__ = __webpack_require__(46); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__operators_map__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isScheduler__ = __webpack_require__(14); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isArray__ = __webpack_require__(10); /** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_isScheduler,_util_isArray PURE_IMPORTS_END */ @@ -42106,13 +26452,13 @@ function dispatchError(arg) { /***/ }), -/* 391 */ +/* 276 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InnerSubscriber; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -42144,7 +26490,7 @@ var InnerSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 392 */ +/* 277 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -42159,12 +26505,12 @@ function isInteropObservable(input) { /***/ }), -/* 393 */ +/* 278 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = isIterable; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__symbol_iterator__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__symbol_iterator__ = __webpack_require__(34); /** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */ function isIterable(input) { @@ -42174,14 +26520,14 @@ function isIterable(input) { /***/ }), -/* 394 */ +/* 279 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = fromPromise; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToPromise__ = __webpack_require__(235); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToPromise__ = __webpack_require__(116); /** PURE_IMPORTS_START _Observable,_Subscription,_util_subscribeToPromise PURE_IMPORTS_END */ @@ -42211,15 +26557,15 @@ function fromPromise(input, scheduler) { /***/ }), -/* 395 */ +/* 280 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = fromIterable; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__symbol_iterator__ = __webpack_require__(37); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToIterable__ = __webpack_require__(236); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__symbol_iterator__ = __webpack_require__(34); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToIterable__ = __webpack_require__(117); /** PURE_IMPORTS_START _Observable,_Subscription,_symbol_iterator,_util_subscribeToIterable PURE_IMPORTS_END */ @@ -42275,15 +26621,15 @@ function fromIterable(input, scheduler) { /***/ }), -/* 396 */ +/* 281 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = fromObservable; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__symbol_observable__ = __webpack_require__(24); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToObservable__ = __webpack_require__(237); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToObservable__ = __webpack_require__(118); /** PURE_IMPORTS_START _Observable,_Subscription,_symbol_observable,_util_subscribeToObservable PURE_IMPORTS_END */ @@ -42312,18 +26658,18 @@ function fromObservable(input, scheduler) { /***/ }), -/* 397 */ +/* 282 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = forkJoin; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__empty__ = __webpack_require__(12); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__operators_map__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__empty__ = __webpack_require__(11); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__operators_map__ = __webpack_require__(15); /** PURE_IMPORTS_START tslib,_Observable,_util_isArray,_empty,_util_subscribeToResult,_OuterSubscriber,_operators_map PURE_IMPORTS_END */ @@ -42401,15 +26747,15 @@ var ForkJoinSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 398 */ +/* 283 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = fromEvent; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isFunction__ = __webpack_require__(32); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__operators_map__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isFunction__ = __webpack_require__(29); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__operators_map__ = __webpack_require__(15); /** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */ @@ -42476,15 +26822,15 @@ function isEventTarget(sourceObj) { /***/ }), -/* 399 */ +/* 284 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = fromEventPattern; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isFunction__ = __webpack_require__(32); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__operators_map__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isFunction__ = __webpack_require__(29); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__operators_map__ = __webpack_require__(15); /** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */ @@ -42520,14 +26866,14 @@ function fromEventPattern(addHandler, removeHandler, resultSelector) { /***/ }), -/* 400 */ +/* 285 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = generate; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_identity__ = __webpack_require__(25); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isScheduler__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isScheduler__ = __webpack_require__(14); /** PURE_IMPORTS_START _Observable,_util_identity,_util_isScheduler PURE_IMPORTS_END */ @@ -42656,13 +27002,13 @@ function dispatch(state) { /***/ }), -/* 401 */ +/* 286 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = iif; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defer__ = __webpack_require__(73); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__empty__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defer__ = __webpack_require__(71); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__empty__ = __webpack_require__(11); /** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */ @@ -42679,14 +27025,14 @@ function iif(condition, trueResult, falseResult) { /***/ }), -/* 402 */ +/* 287 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = interval; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isNumeric__ = __webpack_require__(49); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isNumeric__ = __webpack_require__(48); /** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric PURE_IMPORTS_END */ @@ -42718,15 +27064,15 @@ function dispatch(state) { /***/ }), -/* 403 */ +/* 288 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = onErrorResumeNext; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__from__ = __webpack_require__(19); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__empty__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__from__ = __webpack_require__(18); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__empty__ = __webpack_require__(11); /** PURE_IMPORTS_START _Observable,_from,_util_isArray,_empty PURE_IMPORTS_END */ @@ -42757,14 +27103,14 @@ function onErrorResumeNext() { /***/ }), -/* 404 */ +/* 289 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = pairs; /* unused harmony export dispatch */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); /** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */ @@ -42807,13 +27153,13 @@ function dispatch(state) { /***/ }), -/* 405 */ +/* 290 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = range; /* unused harmony export dispatch */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */ function range(start, count, scheduler) { @@ -42864,14 +27210,14 @@ function dispatch(state) { /***/ }), -/* 406 */ +/* 291 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = using; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__from__ = __webpack_require__(19); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__empty__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__from__ = __webpack_require__(18); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__empty__ = __webpack_require__(11); /** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */ @@ -42908,217 +27254,217 @@ function using(resourceFactory, observableFactory) { /***/ }), -/* 407 */ +/* 292 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__internal_operators_audit__ = __webpack_require__(245); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__internal_operators_audit__ = __webpack_require__(126); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "audit", function() { return __WEBPACK_IMPORTED_MODULE_0__internal_operators_audit__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__internal_operators_auditTime__ = __webpack_require__(408); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__internal_operators_auditTime__ = __webpack_require__(293); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "auditTime", function() { return __WEBPACK_IMPORTED_MODULE_1__internal_operators_auditTime__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__internal_operators_buffer__ = __webpack_require__(409); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__internal_operators_buffer__ = __webpack_require__(294); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return __WEBPACK_IMPORTED_MODULE_2__internal_operators_buffer__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__internal_operators_bufferCount__ = __webpack_require__(410); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__internal_operators_bufferCount__ = __webpack_require__(295); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bufferCount", function() { return __WEBPACK_IMPORTED_MODULE_3__internal_operators_bufferCount__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__internal_operators_bufferTime__ = __webpack_require__(411); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__internal_operators_bufferTime__ = __webpack_require__(296); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bufferTime", function() { return __WEBPACK_IMPORTED_MODULE_4__internal_operators_bufferTime__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__internal_operators_bufferToggle__ = __webpack_require__(412); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__internal_operators_bufferToggle__ = __webpack_require__(297); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bufferToggle", function() { return __WEBPACK_IMPORTED_MODULE_5__internal_operators_bufferToggle__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_operators_bufferWhen__ = __webpack_require__(413); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__internal_operators_bufferWhen__ = __webpack_require__(298); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bufferWhen", function() { return __WEBPACK_IMPORTED_MODULE_6__internal_operators_bufferWhen__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__internal_operators_catchError__ = __webpack_require__(414); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__internal_operators_catchError__ = __webpack_require__(299); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "catchError", function() { return __WEBPACK_IMPORTED_MODULE_7__internal_operators_catchError__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__internal_operators_combineAll__ = __webpack_require__(415); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__internal_operators_combineAll__ = __webpack_require__(300); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "combineAll", function() { return __WEBPACK_IMPORTED_MODULE_8__internal_operators_combineAll__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__internal_operators_combineLatest__ = __webpack_require__(416); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__internal_operators_combineLatest__ = __webpack_require__(301); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return __WEBPACK_IMPORTED_MODULE_9__internal_operators_combineLatest__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__internal_operators_concat__ = __webpack_require__(417); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__internal_operators_concat__ = __webpack_require__(302); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return __WEBPACK_IMPORTED_MODULE_10__internal_operators_concat__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__internal_operators_concatAll__ = __webpack_require__(240); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__internal_operators_concatAll__ = __webpack_require__(121); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "concatAll", function() { return __WEBPACK_IMPORTED_MODULE_11__internal_operators_concatAll__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__internal_operators_concatMap__ = __webpack_require__(246); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__internal_operators_concatMap__ = __webpack_require__(127); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "concatMap", function() { return __WEBPACK_IMPORTED_MODULE_12__internal_operators_concatMap__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__internal_operators_concatMapTo__ = __webpack_require__(418); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__internal_operators_concatMapTo__ = __webpack_require__(303); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "concatMapTo", function() { return __WEBPACK_IMPORTED_MODULE_13__internal_operators_concatMapTo__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__internal_operators_count__ = __webpack_require__(419); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__internal_operators_count__ = __webpack_require__(304); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "count", function() { return __WEBPACK_IMPORTED_MODULE_14__internal_operators_count__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__internal_operators_debounce__ = __webpack_require__(420); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__internal_operators_debounce__ = __webpack_require__(305); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return __WEBPACK_IMPORTED_MODULE_15__internal_operators_debounce__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__internal_operators_debounceTime__ = __webpack_require__(421); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__internal_operators_debounceTime__ = __webpack_require__(306); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "debounceTime", function() { return __WEBPACK_IMPORTED_MODULE_16__internal_operators_debounceTime__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__internal_operators_defaultIfEmpty__ = __webpack_require__(39); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__internal_operators_defaultIfEmpty__ = __webpack_require__(36); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defaultIfEmpty", function() { return __WEBPACK_IMPORTED_MODULE_17__internal_operators_defaultIfEmpty__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__internal_operators_delay__ = __webpack_require__(422); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__internal_operators_delay__ = __webpack_require__(307); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "delay", function() { return __WEBPACK_IMPORTED_MODULE_18__internal_operators_delay__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__internal_operators_delayWhen__ = __webpack_require__(423); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__internal_operators_delayWhen__ = __webpack_require__(308); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "delayWhen", function() { return __WEBPACK_IMPORTED_MODULE_19__internal_operators_delayWhen__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__internal_operators_dematerialize__ = __webpack_require__(424); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__internal_operators_dematerialize__ = __webpack_require__(309); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "dematerialize", function() { return __WEBPACK_IMPORTED_MODULE_20__internal_operators_dematerialize__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__internal_operators_distinct__ = __webpack_require__(425); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__internal_operators_distinct__ = __webpack_require__(310); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "distinct", function() { return __WEBPACK_IMPORTED_MODULE_21__internal_operators_distinct__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__internal_operators_distinctUntilChanged__ = __webpack_require__(248); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__internal_operators_distinctUntilChanged__ = __webpack_require__(129); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function() { return __WEBPACK_IMPORTED_MODULE_22__internal_operators_distinctUntilChanged__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__internal_operators_distinctUntilKeyChanged__ = __webpack_require__(426); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__internal_operators_distinctUntilKeyChanged__ = __webpack_require__(311); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function() { return __WEBPACK_IMPORTED_MODULE_23__internal_operators_distinctUntilKeyChanged__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__internal_operators_elementAt__ = __webpack_require__(427); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__internal_operators_elementAt__ = __webpack_require__(312); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "elementAt", function() { return __WEBPACK_IMPORTED_MODULE_24__internal_operators_elementAt__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__internal_operators_endWith__ = __webpack_require__(428); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__internal_operators_endWith__ = __webpack_require__(313); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "endWith", function() { return __WEBPACK_IMPORTED_MODULE_25__internal_operators_endWith__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__internal_operators_every__ = __webpack_require__(429); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__internal_operators_every__ = __webpack_require__(314); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "every", function() { return __WEBPACK_IMPORTED_MODULE_26__internal_operators_every__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__internal_operators_exhaust__ = __webpack_require__(430); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__internal_operators_exhaust__ = __webpack_require__(315); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "exhaust", function() { return __WEBPACK_IMPORTED_MODULE_27__internal_operators_exhaust__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__internal_operators_exhaustMap__ = __webpack_require__(431); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__internal_operators_exhaustMap__ = __webpack_require__(316); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "exhaustMap", function() { return __WEBPACK_IMPORTED_MODULE_28__internal_operators_exhaustMap__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__internal_operators_expand__ = __webpack_require__(432); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__internal_operators_expand__ = __webpack_require__(317); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "expand", function() { return __WEBPACK_IMPORTED_MODULE_29__internal_operators_expand__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__internal_operators_filter__ = __webpack_require__(40); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__internal_operators_filter__ = __webpack_require__(37); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return __WEBPACK_IMPORTED_MODULE_30__internal_operators_filter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__internal_operators_finalize__ = __webpack_require__(433); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__internal_operators_finalize__ = __webpack_require__(318); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "finalize", function() { return __WEBPACK_IMPORTED_MODULE_31__internal_operators_finalize__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__internal_operators_find__ = __webpack_require__(250); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__internal_operators_find__ = __webpack_require__(131); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "find", function() { return __WEBPACK_IMPORTED_MODULE_32__internal_operators_find__["b"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__internal_operators_findIndex__ = __webpack_require__(434); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__internal_operators_findIndex__ = __webpack_require__(319); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "findIndex", function() { return __WEBPACK_IMPORTED_MODULE_33__internal_operators_findIndex__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__internal_operators_first__ = __webpack_require__(435); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__internal_operators_first__ = __webpack_require__(320); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "first", function() { return __WEBPACK_IMPORTED_MODULE_34__internal_operators_first__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__internal_operators_groupBy__ = __webpack_require__(226); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__internal_operators_groupBy__ = __webpack_require__(107); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "groupBy", function() { return __WEBPACK_IMPORTED_MODULE_35__internal_operators_groupBy__["b"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__internal_operators_ignoreElements__ = __webpack_require__(436); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__internal_operators_ignoreElements__ = __webpack_require__(321); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ignoreElements", function() { return __WEBPACK_IMPORTED_MODULE_36__internal_operators_ignoreElements__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__internal_operators_isEmpty__ = __webpack_require__(437); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__internal_operators_isEmpty__ = __webpack_require__(322); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return __WEBPACK_IMPORTED_MODULE_37__internal_operators_isEmpty__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__internal_operators_last__ = __webpack_require__(438); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__internal_operators_last__ = __webpack_require__(323); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "last", function() { return __WEBPACK_IMPORTED_MODULE_38__internal_operators_last__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__internal_operators_map__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__internal_operators_map__ = __webpack_require__(15); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return __WEBPACK_IMPORTED_MODULE_39__internal_operators_map__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__internal_operators_mapTo__ = __webpack_require__(439); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__internal_operators_mapTo__ = __webpack_require__(324); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mapTo", function() { return __WEBPACK_IMPORTED_MODULE_40__internal_operators_mapTo__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__internal_operators_materialize__ = __webpack_require__(440); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__internal_operators_materialize__ = __webpack_require__(325); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "materialize", function() { return __WEBPACK_IMPORTED_MODULE_41__internal_operators_materialize__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__internal_operators_max__ = __webpack_require__(441); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__internal_operators_max__ = __webpack_require__(326); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return __WEBPACK_IMPORTED_MODULE_42__internal_operators_max__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__internal_operators_merge__ = __webpack_require__(442); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__internal_operators_merge__ = __webpack_require__(327); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return __WEBPACK_IMPORTED_MODULE_43__internal_operators_merge__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__internal_operators_mergeAll__ = __webpack_require__(72); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__internal_operators_mergeAll__ = __webpack_require__(70); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeAll", function() { return __WEBPACK_IMPORTED_MODULE_44__internal_operators_mergeAll__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__internal_operators_mergeMap__ = __webpack_require__(38); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__internal_operators_mergeMap__ = __webpack_require__(35); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMap", function() { return __WEBPACK_IMPORTED_MODULE_45__internal_operators_mergeMap__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "flatMap", function() { return __WEBPACK_IMPORTED_MODULE_45__internal_operators_mergeMap__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__internal_operators_mergeMapTo__ = __webpack_require__(443); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__internal_operators_mergeMapTo__ = __webpack_require__(328); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMapTo", function() { return __WEBPACK_IMPORTED_MODULE_46__internal_operators_mergeMapTo__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__internal_operators_mergeScan__ = __webpack_require__(444); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__internal_operators_mergeScan__ = __webpack_require__(329); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeScan", function() { return __WEBPACK_IMPORTED_MODULE_47__internal_operators_mergeScan__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__internal_operators_min__ = __webpack_require__(445); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__internal_operators_min__ = __webpack_require__(330); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return __WEBPACK_IMPORTED_MODULE_48__internal_operators_min__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_49__internal_operators_multicast__ = __webpack_require__(26); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "multicast", function() { return __WEBPACK_IMPORTED_MODULE_49__internal_operators_multicast__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__internal_operators_observeOn__ = __webpack_require__(230); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__internal_operators_observeOn__ = __webpack_require__(111); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "observeOn", function() { return __WEBPACK_IMPORTED_MODULE_50__internal_operators_observeOn__["b"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_51__internal_operators_onErrorResumeNext__ = __webpack_require__(446); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_51__internal_operators_onErrorResumeNext__ = __webpack_require__(331); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return __WEBPACK_IMPORTED_MODULE_51__internal_operators_onErrorResumeNext__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_52__internal_operators_pairwise__ = __webpack_require__(447); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_52__internal_operators_pairwise__ = __webpack_require__(332); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pairwise", function() { return __WEBPACK_IMPORTED_MODULE_52__internal_operators_pairwise__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_53__internal_operators_partition__ = __webpack_require__(448); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_53__internal_operators_partition__ = __webpack_require__(333); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return __WEBPACK_IMPORTED_MODULE_53__internal_operators_partition__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_54__internal_operators_pluck__ = __webpack_require__(450); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_54__internal_operators_pluck__ = __webpack_require__(335); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pluck", function() { return __WEBPACK_IMPORTED_MODULE_54__internal_operators_pluck__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_55__internal_operators_publish__ = __webpack_require__(451); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_55__internal_operators_publish__ = __webpack_require__(336); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "publish", function() { return __WEBPACK_IMPORTED_MODULE_55__internal_operators_publish__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_56__internal_operators_publishBehavior__ = __webpack_require__(452); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_56__internal_operators_publishBehavior__ = __webpack_require__(337); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "publishBehavior", function() { return __WEBPACK_IMPORTED_MODULE_56__internal_operators_publishBehavior__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_57__internal_operators_publishLast__ = __webpack_require__(453); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_57__internal_operators_publishLast__ = __webpack_require__(338); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "publishLast", function() { return __WEBPACK_IMPORTED_MODULE_57__internal_operators_publishLast__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_58__internal_operators_publishReplay__ = __webpack_require__(454); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_58__internal_operators_publishReplay__ = __webpack_require__(339); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "publishReplay", function() { return __WEBPACK_IMPORTED_MODULE_58__internal_operators_publishReplay__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_59__internal_operators_race__ = __webpack_require__(455); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_59__internal_operators_race__ = __webpack_require__(340); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return __WEBPACK_IMPORTED_MODULE_59__internal_operators_race__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_60__internal_operators_reduce__ = __webpack_require__(51); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_60__internal_operators_reduce__ = __webpack_require__(50); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return __WEBPACK_IMPORTED_MODULE_60__internal_operators_reduce__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_61__internal_operators_repeat__ = __webpack_require__(456); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_61__internal_operators_repeat__ = __webpack_require__(341); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "repeat", function() { return __WEBPACK_IMPORTED_MODULE_61__internal_operators_repeat__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_62__internal_operators_repeatWhen__ = __webpack_require__(457); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_62__internal_operators_repeatWhen__ = __webpack_require__(342); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "repeatWhen", function() { return __WEBPACK_IMPORTED_MODULE_62__internal_operators_repeatWhen__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_63__internal_operators_retry__ = __webpack_require__(458); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_63__internal_operators_retry__ = __webpack_require__(343); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "retry", function() { return __WEBPACK_IMPORTED_MODULE_63__internal_operators_retry__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_64__internal_operators_retryWhen__ = __webpack_require__(459); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_64__internal_operators_retryWhen__ = __webpack_require__(344); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "retryWhen", function() { return __WEBPACK_IMPORTED_MODULE_64__internal_operators_retryWhen__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_65__internal_operators_refCount__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_65__internal_operators_refCount__ = __webpack_require__(64); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "refCount", function() { return __WEBPACK_IMPORTED_MODULE_65__internal_operators_refCount__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_66__internal_operators_sample__ = __webpack_require__(460); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_66__internal_operators_sample__ = __webpack_require__(345); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sample", function() { return __WEBPACK_IMPORTED_MODULE_66__internal_operators_sample__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_67__internal_operators_sampleTime__ = __webpack_require__(461); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_67__internal_operators_sampleTime__ = __webpack_require__(346); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sampleTime", function() { return __WEBPACK_IMPORTED_MODULE_67__internal_operators_sampleTime__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_68__internal_operators_scan__ = __webpack_require__(77); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_68__internal_operators_scan__ = __webpack_require__(75); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return __WEBPACK_IMPORTED_MODULE_68__internal_operators_scan__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_69__internal_operators_sequenceEqual__ = __webpack_require__(462); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_69__internal_operators_sequenceEqual__ = __webpack_require__(347); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sequenceEqual", function() { return __WEBPACK_IMPORTED_MODULE_69__internal_operators_sequenceEqual__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_70__internal_operators_share__ = __webpack_require__(463); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_70__internal_operators_share__ = __webpack_require__(348); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "share", function() { return __WEBPACK_IMPORTED_MODULE_70__internal_operators_share__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_71__internal_operators_shareReplay__ = __webpack_require__(464); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_71__internal_operators_shareReplay__ = __webpack_require__(349); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "shareReplay", function() { return __WEBPACK_IMPORTED_MODULE_71__internal_operators_shareReplay__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_72__internal_operators_single__ = __webpack_require__(465); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_72__internal_operators_single__ = __webpack_require__(350); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "single", function() { return __WEBPACK_IMPORTED_MODULE_72__internal_operators_single__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_73__internal_operators_skip__ = __webpack_require__(466); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_73__internal_operators_skip__ = __webpack_require__(351); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "skip", function() { return __WEBPACK_IMPORTED_MODULE_73__internal_operators_skip__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_74__internal_operators_skipLast__ = __webpack_require__(467); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_74__internal_operators_skipLast__ = __webpack_require__(352); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "skipLast", function() { return __WEBPACK_IMPORTED_MODULE_74__internal_operators_skipLast__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_75__internal_operators_skipUntil__ = __webpack_require__(468); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_75__internal_operators_skipUntil__ = __webpack_require__(353); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "skipUntil", function() { return __WEBPACK_IMPORTED_MODULE_75__internal_operators_skipUntil__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_76__internal_operators_skipWhile__ = __webpack_require__(469); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_76__internal_operators_skipWhile__ = __webpack_require__(354); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "skipWhile", function() { return __WEBPACK_IMPORTED_MODULE_76__internal_operators_skipWhile__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_77__internal_operators_startWith__ = __webpack_require__(470); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_77__internal_operators_startWith__ = __webpack_require__(355); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "startWith", function() { return __WEBPACK_IMPORTED_MODULE_77__internal_operators_startWith__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_78__internal_operators_subscribeOn__ = __webpack_require__(471); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_78__internal_operators_subscribeOn__ = __webpack_require__(356); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeOn", function() { return __WEBPACK_IMPORTED_MODULE_78__internal_operators_subscribeOn__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_79__internal_operators_switchAll__ = __webpack_require__(473); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_79__internal_operators_switchAll__ = __webpack_require__(358); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "switchAll", function() { return __WEBPACK_IMPORTED_MODULE_79__internal_operators_switchAll__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_80__internal_operators_switchMap__ = __webpack_require__(78); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_80__internal_operators_switchMap__ = __webpack_require__(76); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "switchMap", function() { return __WEBPACK_IMPORTED_MODULE_80__internal_operators_switchMap__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_81__internal_operators_switchMapTo__ = __webpack_require__(474); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_81__internal_operators_switchMapTo__ = __webpack_require__(359); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "switchMapTo", function() { return __WEBPACK_IMPORTED_MODULE_81__internal_operators_switchMapTo__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_82__internal_operators_take__ = __webpack_require__(75); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_82__internal_operators_take__ = __webpack_require__(73); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "take", function() { return __WEBPACK_IMPORTED_MODULE_82__internal_operators_take__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_83__internal_operators_takeLast__ = __webpack_require__(76); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_83__internal_operators_takeLast__ = __webpack_require__(74); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "takeLast", function() { return __WEBPACK_IMPORTED_MODULE_83__internal_operators_takeLast__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_84__internal_operators_takeUntil__ = __webpack_require__(475); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_84__internal_operators_takeUntil__ = __webpack_require__(360); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "takeUntil", function() { return __WEBPACK_IMPORTED_MODULE_84__internal_operators_takeUntil__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_85__internal_operators_takeWhile__ = __webpack_require__(476); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_85__internal_operators_takeWhile__ = __webpack_require__(361); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "takeWhile", function() { return __WEBPACK_IMPORTED_MODULE_85__internal_operators_takeWhile__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_86__internal_operators_tap__ = __webpack_require__(249); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_86__internal_operators_tap__ = __webpack_require__(130); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "tap", function() { return __WEBPACK_IMPORTED_MODULE_86__internal_operators_tap__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_87__internal_operators_throttle__ = __webpack_require__(251); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_87__internal_operators_throttle__ = __webpack_require__(132); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return __WEBPACK_IMPORTED_MODULE_87__internal_operators_throttle__["b"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_88__internal_operators_throttleTime__ = __webpack_require__(477); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_88__internal_operators_throttleTime__ = __webpack_require__(362); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "throttleTime", function() { return __WEBPACK_IMPORTED_MODULE_88__internal_operators_throttleTime__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_89__internal_operators_throwIfEmpty__ = __webpack_require__(50); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_89__internal_operators_throwIfEmpty__ = __webpack_require__(49); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function() { return __WEBPACK_IMPORTED_MODULE_89__internal_operators_throwIfEmpty__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_90__internal_operators_timeInterval__ = __webpack_require__(478); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_90__internal_operators_timeInterval__ = __webpack_require__(363); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return __WEBPACK_IMPORTED_MODULE_90__internal_operators_timeInterval__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_91__internal_operators_timeout__ = __webpack_require__(479); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_91__internal_operators_timeout__ = __webpack_require__(364); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return __WEBPACK_IMPORTED_MODULE_91__internal_operators_timeout__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_92__internal_operators_timeoutWith__ = __webpack_require__(252); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_92__internal_operators_timeoutWith__ = __webpack_require__(133); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeoutWith", function() { return __WEBPACK_IMPORTED_MODULE_92__internal_operators_timeoutWith__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_93__internal_operators_timestamp__ = __webpack_require__(480); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_93__internal_operators_timestamp__ = __webpack_require__(365); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timestamp", function() { return __WEBPACK_IMPORTED_MODULE_93__internal_operators_timestamp__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_94__internal_operators_toArray__ = __webpack_require__(481); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_94__internal_operators_toArray__ = __webpack_require__(366); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return __WEBPACK_IMPORTED_MODULE_94__internal_operators_toArray__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_95__internal_operators_window__ = __webpack_require__(482); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_95__internal_operators_window__ = __webpack_require__(367); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "window", function() { return __WEBPACK_IMPORTED_MODULE_95__internal_operators_window__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_96__internal_operators_windowCount__ = __webpack_require__(483); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_96__internal_operators_windowCount__ = __webpack_require__(368); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "windowCount", function() { return __WEBPACK_IMPORTED_MODULE_96__internal_operators_windowCount__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_97__internal_operators_windowTime__ = __webpack_require__(484); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_97__internal_operators_windowTime__ = __webpack_require__(369); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "windowTime", function() { return __WEBPACK_IMPORTED_MODULE_97__internal_operators_windowTime__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_98__internal_operators_windowToggle__ = __webpack_require__(485); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_98__internal_operators_windowToggle__ = __webpack_require__(370); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "windowToggle", function() { return __WEBPACK_IMPORTED_MODULE_98__internal_operators_windowToggle__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_99__internal_operators_windowWhen__ = __webpack_require__(486); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_99__internal_operators_windowWhen__ = __webpack_require__(371); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "windowWhen", function() { return __WEBPACK_IMPORTED_MODULE_99__internal_operators_windowWhen__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_100__internal_operators_withLatestFrom__ = __webpack_require__(487); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_100__internal_operators_withLatestFrom__ = __webpack_require__(372); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withLatestFrom", function() { return __WEBPACK_IMPORTED_MODULE_100__internal_operators_withLatestFrom__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_101__internal_operators_zip__ = __webpack_require__(488); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_101__internal_operators_zip__ = __webpack_require__(373); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return __WEBPACK_IMPORTED_MODULE_101__internal_operators_zip__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_102__internal_operators_zipAll__ = __webpack_require__(489); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_102__internal_operators_zipAll__ = __webpack_require__(374); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "zipAll", function() { return __WEBPACK_IMPORTED_MODULE_102__internal_operators_zipAll__["a"]; }); /** PURE_IMPORTS_START PURE_IMPORTS_END */ @@ -43229,14 +27575,14 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /***/ }), -/* 408 */ +/* 293 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = auditTime; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__audit__ = __webpack_require__(245); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_timer__ = __webpack_require__(244); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__audit__ = __webpack_require__(126); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_timer__ = __webpack_require__(125); /** PURE_IMPORTS_START _scheduler_async,_audit,_observable_timer PURE_IMPORTS_END */ @@ -43251,14 +27597,14 @@ function auditTime(duration, scheduler) { /***/ }), -/* 409 */ +/* 294 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = buffer; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -43299,13 +27645,13 @@ var BufferSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 410 */ +/* 295 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = bufferCount; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -43399,15 +27745,15 @@ var BufferSkipCountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 411 */ +/* 296 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = bufferTime; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isScheduler__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isScheduler__ = __webpack_require__(14); /** PURE_IMPORTS_START tslib,_scheduler_async,_Subscriber,_util_isScheduler PURE_IMPORTS_END */ @@ -43559,15 +27905,15 @@ function dispatchBufferClose(arg) { /***/ }), -/* 412 */ +/* 297 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = bufferToggle; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); /** PURE_IMPORTS_START tslib,_Subscription,_util_subscribeToResult,_OuterSubscriber PURE_IMPORTS_END */ @@ -43678,17 +28024,17 @@ var BufferToggleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 413 */ +/* 298 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = bufferWhen; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_Subscription,_util_tryCatch,_util_errorObject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -43774,14 +28120,14 @@ var BufferWhenSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 414 */ +/* 299 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = catchError; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -43830,12 +28176,12 @@ var CatchSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 415 */ +/* 300 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = combineAll; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_combineLatest__ = __webpack_require__(71); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_combineLatest__ = __webpack_require__(69); /** PURE_IMPORTS_START _observable_combineLatest PURE_IMPORTS_END */ function combineAll(project) { @@ -43845,14 +28191,14 @@ function combineAll(project) { /***/ }), -/* 416 */ +/* 301 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = combineLatest; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_combineLatest__ = __webpack_require__(71); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_from__ = __webpack_require__(19); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_combineLatest__ = __webpack_require__(69); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_from__ = __webpack_require__(18); /** PURE_IMPORTS_START _util_isArray,_observable_combineLatest,_observable_from PURE_IMPORTS_END */ @@ -43876,12 +28222,12 @@ function combineLatest() { /***/ }), -/* 417 */ +/* 302 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = concat; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_concat__ = __webpack_require__(48); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_concat__ = __webpack_require__(47); /** PURE_IMPORTS_START _observable_concat PURE_IMPORTS_END */ function concat() { @@ -43895,12 +28241,12 @@ function concat() { /***/ }), -/* 418 */ +/* 303 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = concatMapTo; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__concatMap__ = __webpack_require__(246); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__concatMap__ = __webpack_require__(127); /** PURE_IMPORTS_START _concatMap PURE_IMPORTS_END */ function concatMapTo(innerObservable, resultSelector) { @@ -43910,13 +28256,13 @@ function concatMapTo(innerObservable, resultSelector) { /***/ }), -/* 419 */ +/* 304 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = count; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -43974,14 +28320,14 @@ var CountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 420 */ +/* 305 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = debounce; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -44061,14 +28407,14 @@ var DebounceSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 421 */ +/* 306 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = debounceTime; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(12); /** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */ @@ -44136,16 +28482,16 @@ function dispatchNext(subscriber) { /***/ }), -/* 422 */ +/* 307 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = delay; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isDate__ = __webpack_require__(247); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Notification__ = __webpack_require__(46); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isDate__ = __webpack_require__(128); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Notification__ = __webpack_require__(45); /** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_Subscriber,_Notification PURE_IMPORTS_END */ @@ -44239,16 +28585,16 @@ var DelayMessage = /*@__PURE__*/ (function () { /***/ }), -/* 423 */ +/* 308 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = delayWhen; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -44379,13 +28725,13 @@ var SubscriptionDelaySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 424 */ +/* 309 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = dematerialize; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -44416,15 +28762,15 @@ var DeMaterializeSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 425 */ +/* 310 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = distinct; /* unused harmony export DistinctSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -44493,12 +28839,12 @@ var DistinctSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 426 */ +/* 311 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = distinctUntilKeyChanged; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__distinctUntilChanged__ = __webpack_require__(248); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__distinctUntilChanged__ = __webpack_require__(129); /** PURE_IMPORTS_START _distinctUntilChanged PURE_IMPORTS_END */ function distinctUntilKeyChanged(key, compare) { @@ -44508,16 +28854,16 @@ function distinctUntilKeyChanged(key, compare) { /***/ }), -/* 427 */ +/* 312 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = elementAt; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_ArgumentOutOfRangeError__ = __webpack_require__(35); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(40); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__throwIfEmpty__ = __webpack_require__(50); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__defaultIfEmpty__ = __webpack_require__(39); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__take__ = __webpack_require__(75); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_ArgumentOutOfRangeError__ = __webpack_require__(32); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__throwIfEmpty__ = __webpack_require__(49); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__defaultIfEmpty__ = __webpack_require__(36); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__take__ = __webpack_require__(73); /** PURE_IMPORTS_START _util_ArgumentOutOfRangeError,_filter,_throwIfEmpty,_defaultIfEmpty,_take PURE_IMPORTS_END */ @@ -44539,16 +28885,16 @@ function elementAt(index, defaultValue) { /***/ }), -/* 428 */ +/* 313 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = endWith; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_fromArray__ = __webpack_require__(21); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_scalar__ = __webpack_require__(69); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_empty__ = __webpack_require__(12); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_concat__ = __webpack_require__(48); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isScheduler__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_fromArray__ = __webpack_require__(20); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_scalar__ = __webpack_require__(67); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_empty__ = __webpack_require__(11); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_concat__ = __webpack_require__(47); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isScheduler__ = __webpack_require__(14); /** PURE_IMPORTS_START _observable_fromArray,_observable_scalar,_observable_empty,_observable_concat,_util_isScheduler PURE_IMPORTS_END */ @@ -44584,13 +28930,13 @@ function endWith() { /***/ }), -/* 429 */ +/* 314 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = every; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -44645,14 +28991,14 @@ var EverySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 430 */ +/* 315 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = exhaust; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -44701,16 +29047,16 @@ var SwitchFirstSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 431 */ +/* 316 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = exhaustMap; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(16); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__observable_from__ = __webpack_require__(19); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__observable_from__ = __webpack_require__(18); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult,_map,_observable_from PURE_IMPORTS_END */ @@ -44786,18 +29132,18 @@ var ExhaustMapSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 432 */ +/* 317 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = expand; /* unused harmony export ExpandOperator */ /* unused harmony export ExpandSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_util_tryCatch,_util_errorObject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -44901,14 +29247,14 @@ var ExpandSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 433 */ +/* 318 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = finalize; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(7); /** PURE_IMPORTS_START tslib,_Subscriber,_Subscription PURE_IMPORTS_END */ @@ -44938,12 +29284,12 @@ var FinallySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 434 */ +/* 319 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = findIndex; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__operators_find__ = __webpack_require__(250); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__operators_find__ = __webpack_require__(131); /** PURE_IMPORTS_START _operators_find PURE_IMPORTS_END */ function findIndex(predicate, thisArg) { @@ -44953,16 +29299,16 @@ function findIndex(predicate, thisArg) { /***/ }), -/* 435 */ +/* 320 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = first; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_EmptyError__ = __webpack_require__(36); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(40); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__take__ = __webpack_require__(75); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__defaultIfEmpty__ = __webpack_require__(39); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__throwIfEmpty__ = __webpack_require__(50); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_EmptyError__ = __webpack_require__(33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__take__ = __webpack_require__(73); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__defaultIfEmpty__ = __webpack_require__(36); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__throwIfEmpty__ = __webpack_require__(49); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_identity__ = __webpack_require__(25); /** PURE_IMPORTS_START _util_EmptyError,_filter,_take,_defaultIfEmpty,_throwIfEmpty,_util_identity PURE_IMPORTS_END */ @@ -44979,13 +29325,13 @@ function first(predicate, defaultValue) { /***/ }), -/* 436 */ +/* 321 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = ignoreElements; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -45015,13 +29361,13 @@ var IgnoreElementsSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 437 */ +/* 322 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = isEmpty; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -45058,16 +29404,16 @@ var IsEmptySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 438 */ +/* 323 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = last; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_EmptyError__ = __webpack_require__(36); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(40); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__takeLast__ = __webpack_require__(76); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__throwIfEmpty__ = __webpack_require__(50); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__defaultIfEmpty__ = __webpack_require__(39); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_EmptyError__ = __webpack_require__(33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__takeLast__ = __webpack_require__(74); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__throwIfEmpty__ = __webpack_require__(49); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__defaultIfEmpty__ = __webpack_require__(36); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_identity__ = __webpack_require__(25); /** PURE_IMPORTS_START _util_EmptyError,_filter,_takeLast,_throwIfEmpty,_defaultIfEmpty,_util_identity PURE_IMPORTS_END */ @@ -45084,13 +29430,13 @@ function last(predicate, defaultValue) { /***/ }), -/* 439 */ +/* 324 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = mapTo; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -45122,14 +29468,14 @@ var MapToSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 440 */ +/* 325 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = materialize; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Notification__ = __webpack_require__(46); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Notification__ = __webpack_require__(45); /** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */ @@ -45171,12 +29517,12 @@ var MaterializeSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 441 */ +/* 326 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = max; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__reduce__ = __webpack_require__(51); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__reduce__ = __webpack_require__(50); /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */ function max(comparer) { @@ -45189,12 +29535,12 @@ function max(comparer) { /***/ }), -/* 442 */ +/* 327 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = merge; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_merge__ = __webpack_require__(241); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_merge__ = __webpack_require__(122); /** PURE_IMPORTS_START _observable_merge PURE_IMPORTS_END */ function merge() { @@ -45208,12 +29554,12 @@ function merge() { /***/ }), -/* 443 */ +/* 328 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = mergeMapTo; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeMap__ = __webpack_require__(38); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeMap__ = __webpack_require__(35); /** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */ function mergeMapTo(innerObservable, resultSelector, concurrent) { @@ -45232,18 +29578,18 @@ function mergeMapTo(innerObservable, resultSelector, concurrent) { /***/ }), -/* 444 */ +/* 329 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = mergeScan; /* unused harmony export MergeScanOperator */ /* unused harmony export MergeScanSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToResult__ = __webpack_require__(6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToResult__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(4); /** PURE_IMPORTS_START tslib,_util_tryCatch,_util_errorObject,_util_subscribeToResult,_OuterSubscriber PURE_IMPORTS_END */ @@ -45338,12 +29684,12 @@ var MergeScanSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 445 */ +/* 330 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = min; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__reduce__ = __webpack_require__(51); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__reduce__ = __webpack_require__(50); /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */ function min(comparer) { @@ -45356,17 +29702,17 @@ function min(comparer) { /***/ }), -/* 446 */ +/* 331 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = onErrorResumeNext; /* unused harmony export onErrorResumeNextStatic */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_from__ = __webpack_require__(19); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_from__ = __webpack_require__(18); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_observable_from,_util_isArray,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -45439,13 +29785,13 @@ var OnErrorResumeNextSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 447 */ +/* 332 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = pairwise; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -45482,13 +29828,13 @@ var PairwiseSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 448 */ +/* 333 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = partition; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_not__ = __webpack_require__(449); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(40); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_not__ = __webpack_require__(334); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__filter__ = __webpack_require__(37); /** PURE_IMPORTS_START _util_not,_filter PURE_IMPORTS_END */ @@ -45504,7 +29850,7 @@ function partition(predicate, thisArg) { /***/ }), -/* 449 */ +/* 334 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -45522,12 +29868,12 @@ function not(pred, thisArg) { /***/ }), -/* 450 */ +/* 335 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = pluck; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__map__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__map__ = __webpack_require__(15); /** PURE_IMPORTS_START _map PURE_IMPORTS_END */ function pluck() { @@ -45561,7 +29907,7 @@ function plucker(props, length) { /***/ }), -/* 451 */ +/* 336 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -45580,12 +29926,12 @@ function publish(selector) { /***/ }), -/* 452 */ +/* 337 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = publishBehavior; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BehaviorSubject__ = __webpack_require__(227); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BehaviorSubject__ = __webpack_require__(108); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__multicast__ = __webpack_require__(26); /** PURE_IMPORTS_START _BehaviorSubject,_multicast PURE_IMPORTS_END */ @@ -45597,12 +29943,12 @@ function publishBehavior(value) { /***/ }), -/* 453 */ +/* 338 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = publishLast; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AsyncSubject__ = __webpack_require__(47); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AsyncSubject__ = __webpack_require__(46); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__multicast__ = __webpack_require__(26); /** PURE_IMPORTS_START _AsyncSubject,_multicast PURE_IMPORTS_END */ @@ -45614,12 +29960,12 @@ function publishLast() { /***/ }), -/* 454 */ +/* 339 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = publishReplay; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ReplaySubject__ = __webpack_require__(67); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ReplaySubject__ = __webpack_require__(65); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__multicast__ = __webpack_require__(26); /** PURE_IMPORTS_START _ReplaySubject,_multicast PURE_IMPORTS_END */ @@ -45636,13 +29982,13 @@ function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) { /***/ }), -/* 455 */ +/* 340 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = race; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isArray__ = __webpack_require__(11); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_race__ = __webpack_require__(243); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_isArray__ = __webpack_require__(10); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_race__ = __webpack_require__(124); /** PURE_IMPORTS_START _util_isArray,_observable_race PURE_IMPORTS_END */ @@ -45662,14 +30008,14 @@ function race() { /***/ }), -/* 456 */ +/* 341 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = repeat; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_empty__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_empty__ = __webpack_require__(11); /** PURE_IMPORTS_START tslib,_Subscriber,_observable_empty PURE_IMPORTS_END */ @@ -45726,17 +30072,17 @@ var RepeatSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 457 */ +/* 342 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = repeatWhen; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_Subject,_util_tryCatch,_util_errorObject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -45821,13 +30167,13 @@ var RepeatWhenSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 458 */ +/* 343 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = retry; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -45873,17 +30219,17 @@ var RetrySubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 459 */ +/* 344 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = retryWhen; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_Subject,_util_tryCatch,_util_errorObject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -45961,14 +30307,14 @@ var RetryWhenSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 460 */ +/* 345 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = sample; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -46017,14 +30363,14 @@ var SampleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 461 */ +/* 346 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = sampleTime; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(12); /** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */ @@ -46076,17 +30422,17 @@ function dispatchNotification(state) { /***/ }), -/* 462 */ +/* 347 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = sequenceEqual; /* unused harmony export SequenceEqualOperator */ /* unused harmony export SequenceEqualSubscriber */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(14); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(13); /** PURE_IMPORTS_START tslib,_Subscriber,_util_tryCatch,_util_errorObject PURE_IMPORTS_END */ @@ -46194,13 +30540,13 @@ var SequenceEqualCompareToSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 463 */ +/* 348 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = share; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__multicast__ = __webpack_require__(26); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__refCount__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__refCount__ = __webpack_require__(64); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subject__ = __webpack_require__(9); /** PURE_IMPORTS_START _multicast,_refCount,_Subject PURE_IMPORTS_END */ @@ -46216,12 +30562,12 @@ function share() { /***/ }), -/* 464 */ +/* 349 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = shareReplay; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ReplaySubject__ = __webpack_require__(67); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ReplaySubject__ = __webpack_require__(65); /** PURE_IMPORTS_START _ReplaySubject PURE_IMPORTS_END */ function shareReplay(bufferSize, windowTime, scheduler) { @@ -46264,14 +30610,14 @@ function shareReplayOperator(bufferSize, windowTime, scheduler) { /***/ }), -/* 465 */ +/* 350 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = single; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_EmptyError__ = __webpack_require__(36); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_EmptyError__ = __webpack_require__(33); /** PURE_IMPORTS_START tslib,_Subscriber,_util_EmptyError PURE_IMPORTS_END */ @@ -46343,13 +30689,13 @@ var SingleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 466 */ +/* 351 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = skip; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -46384,14 +30730,14 @@ var SkipSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 467 */ +/* 352 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = skipLast; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__ = __webpack_require__(35); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_ArgumentOutOfRangeError__ = __webpack_require__(32); /** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError PURE_IMPORTS_END */ @@ -46445,14 +30791,14 @@ var SkipLastSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 468 */ +/* 353 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = skipUntil; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -46496,13 +30842,13 @@ var SkipUntilSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 469 */ +/* 354 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = skipWhile; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -46551,16 +30897,16 @@ var SkipWhileSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 470 */ +/* 355 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = startWith; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_fromArray__ = __webpack_require__(21); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_scalar__ = __webpack_require__(69); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_empty__ = __webpack_require__(12); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_concat__ = __webpack_require__(48); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isScheduler__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_fromArray__ = __webpack_require__(20); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__observable_scalar__ = __webpack_require__(67); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_empty__ = __webpack_require__(11); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_concat__ = __webpack_require__(47); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isScheduler__ = __webpack_require__(14); /** PURE_IMPORTS_START _observable_fromArray,_observable_scalar,_observable_empty,_observable_concat,_util_isScheduler PURE_IMPORTS_END */ @@ -46596,12 +30942,12 @@ function startWith() { /***/ }), -/* 471 */ +/* 356 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = subscribeOn; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_SubscribeOnObservable__ = __webpack_require__(472); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_SubscribeOnObservable__ = __webpack_require__(357); /** PURE_IMPORTS_START _observable_SubscribeOnObservable PURE_IMPORTS_END */ function subscribeOn(scheduler, delay) { @@ -46626,15 +30972,15 @@ var SubscribeOnOperator = /*@__PURE__*/ (function () { /***/ }), -/* 472 */ +/* 357 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SubscribeOnObservable; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Observable__ = __webpack_require__(4); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_asap__ = __webpack_require__(232); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isNumeric__ = __webpack_require__(49); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Observable__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_asap__ = __webpack_require__(113); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_isNumeric__ = __webpack_require__(48); /** PURE_IMPORTS_START tslib,_Observable,_scheduler_asap,_util_isNumeric PURE_IMPORTS_END */ @@ -46689,12 +31035,12 @@ var SubscribeOnObservable = /*@__PURE__*/ (function (_super) { /***/ }), -/* 473 */ +/* 358 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = switchAll; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__switchMap__ = __webpack_require__(78); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__switchMap__ = __webpack_require__(76); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_identity__ = __webpack_require__(25); /** PURE_IMPORTS_START _switchMap,_util_identity PURE_IMPORTS_END */ @@ -46706,12 +31052,12 @@ function switchAll() { /***/ }), -/* 474 */ +/* 359 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = switchMapTo; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__switchMap__ = __webpack_require__(78); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__switchMap__ = __webpack_require__(76); /** PURE_IMPORTS_START _switchMap PURE_IMPORTS_END */ function switchMapTo(innerObservable, resultSelector) { @@ -46721,14 +31067,14 @@ function switchMapTo(innerObservable, resultSelector) { /***/ }), -/* 475 */ +/* 360 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = takeUntil; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -46767,13 +31113,13 @@ var TakeUntilSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 476 */ +/* 361 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = takeWhile; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ @@ -46824,15 +31170,15 @@ var TakeWhileSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 477 */ +/* 362 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = throttleTime; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__throttle__ = __webpack_require__(251); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__throttle__ = __webpack_require__(132); /** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async,_throttle PURE_IMPORTS_END */ @@ -46917,16 +31263,16 @@ function dispatchNext(arg) { /***/ }), -/* 478 */ +/* 363 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = timeInterval; /* unused harmony export TimeInterval */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scan__ = __webpack_require__(77); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_defer__ = __webpack_require__(73); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__scan__ = __webpack_require__(75); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__observable_defer__ = __webpack_require__(71); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__map__ = __webpack_require__(15); /** PURE_IMPORTS_START _scheduler_async,_scan,_observable_defer,_map PURE_IMPORTS_END */ @@ -46960,15 +31306,15 @@ var TimeInterval = /*@__PURE__*/ (function () { /***/ }), -/* 479 */ +/* 364 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = timeout; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_TimeoutError__ = __webpack_require__(233); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__timeoutWith__ = __webpack_require__(252); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_throwError__ = __webpack_require__(70); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_TimeoutError__ = __webpack_require__(114); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__timeoutWith__ = __webpack_require__(133); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__observable_throwError__ = __webpack_require__(68); /** PURE_IMPORTS_START _scheduler_async,_util_TimeoutError,_timeoutWith,_observable_throwError PURE_IMPORTS_END */ @@ -46984,14 +31330,14 @@ function timeout(due, scheduler) { /***/ }), -/* 480 */ +/* 365 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = timestamp; /* unused harmony export Timestamp */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__map__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__map__ = __webpack_require__(15); /** PURE_IMPORTS_START _scheduler_async,_map PURE_IMPORTS_END */ @@ -47013,12 +31359,12 @@ var Timestamp = /*@__PURE__*/ (function () { /***/ }), -/* 481 */ +/* 366 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = toArray; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__reduce__ = __webpack_require__(51); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__reduce__ = __webpack_require__(50); /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */ function toArrayReducer(arr, item, index) { @@ -47035,15 +31381,15 @@ function toArray() { /***/ }), -/* 482 */ +/* 367 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = window; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_Subject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -47114,13 +31460,13 @@ var WindowSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 483 */ +/* 368 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = windowCount; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subscriber__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subject__ = __webpack_require__(9); /** PURE_IMPORTS_START tslib,_Subscriber,_Subject PURE_IMPORTS_END */ @@ -47203,17 +31549,17 @@ var WindowCountSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 484 */ +/* 369 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = windowTime; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(13); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isNumeric__ = __webpack_require__(49); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_isScheduler__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__scheduler_async__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Subscriber__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_isNumeric__ = __webpack_require__(48); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_isScheduler__ = __webpack_require__(14); /** PURE_IMPORTS_START tslib,_Subject,_scheduler_async,_Subscriber,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */ @@ -47372,18 +31718,18 @@ function dispatchWindowClose(state) { /***/ }), -/* 485 */ +/* 370 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = windowToggle; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subscription__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_Subject,_Subscription,_util_tryCatch,_util_errorObject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -47517,17 +31863,17 @@ var WindowToggleSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 486 */ +/* 371 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = windowWhen; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subject__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(17); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_tryCatch__ = __webpack_require__(16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_errorObject__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_Subject,_util_tryCatch,_util_errorObject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -47615,14 +31961,14 @@ var WindowSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 487 */ +/* 372 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = withLatestFrom; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OuterSubscriber__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_subscribeToResult__ = __webpack_require__(5); /** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ @@ -47709,12 +32055,12 @@ var WithLatestFromSubscriber = /*@__PURE__*/ (function (_super) { /***/ }), -/* 488 */ +/* 373 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = zip; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_zip__ = __webpack_require__(74); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_zip__ = __webpack_require__(72); /** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */ function zip() { @@ -47730,12 +32076,12 @@ function zip() { /***/ }), -/* 489 */ +/* 374 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = zipAll; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_zip__ = __webpack_require__(74); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__observable_zip__ = __webpack_require__(72); /** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */ function zipAll(project) { @@ -47745,7 +32091,7 @@ function zipAll(project) { /***/ }), -/* 490 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47799,27 +32145,27 @@ let runCommand = exports.runCommand = (() => { }; })(); -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _indentString = __webpack_require__(491); +var _indentString = __webpack_require__(376); var _indentString2 = _interopRequireDefault(_indentString); -var _wrapAnsi = __webpack_require__(492); +var _wrapAnsi = __webpack_require__(377); var _wrapAnsi2 = _interopRequireDefault(_wrapAnsi); -var _config = __webpack_require__(254); +var _config = __webpack_require__(60); -var _errors = __webpack_require__(60); +var _errors = __webpack_require__(57); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); -var _projects = __webpack_require__(30); +var _projects = __webpack_require__(22); -var _projects_tree = __webpack_require__(496); +var _projects_tree = __webpack_require__(384); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -47851,7 +32197,7 @@ function toArray(value) { } /***/ }), -/* 491 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47885,13 +32231,13 @@ module.exports = (str, count, opts) => { /***/ }), -/* 492 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const stringWidth = __webpack_require__(493); -const stripAnsi = __webpack_require__(253); +const stringWidth = __webpack_require__(378); +const stripAnsi = __webpack_require__(382); const ESCAPES = new Set([ '\u001B', @@ -48085,13 +32431,13 @@ module.exports = (str, cols, opts) => { /***/ }), -/* 493 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const stripAnsi = __webpack_require__(253); -const isFullwidthCodePoint = __webpack_require__(495); +const stripAnsi = __webpack_require__(379); +const isFullwidthCodePoint = __webpack_require__(381); module.exports = str => { if (typeof str !== 'string' || str.length === 0) { @@ -48128,7 +32474,18 @@ module.exports = str => { /***/ }), -/* 494 */ +/* 379 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +const ansiRegex = __webpack_require__(380); + +module.exports = input => typeof input === 'string' ? input.replace(ansiRegex(), '') : input; + + +/***/ }), +/* 380 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48145,7 +32502,7 @@ module.exports = () => { /***/ }), -/* 495 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48198,7 +32555,35 @@ module.exports = x => { /***/ }), -/* 496 */ +/* 382 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +const ansiRegex = __webpack_require__(383); + +module.exports = input => typeof input === 'string' ? input.replace(ansiRegex(), '') : input; + + +/***/ }), +/* 383 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = () => { + const pattern = [ + '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)', + '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))' + ].join('|'); + + return new RegExp(pattern, 'g'); +}; + + +/***/ }), +/* 384 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48209,11 +32594,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.renderProjectsTree = renderProjectsTree; -var _chalk = __webpack_require__(18); +var _chalk = __webpack_require__(17); var _chalk2 = _interopRequireDefault(_chalk); -var _path = __webpack_require__(3); +var _path = __webpack_require__(2); var _path2 = _interopRequireDefault(_path); @@ -48340,7 +32725,7 @@ function addProjectToTree(tree, pathParts, project) { } /***/ }), -/* 497 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48350,7 +32735,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _build_production_projects = __webpack_require__(498); +var _build_production_projects = __webpack_require__(386); Object.defineProperty(exports, 'buildProductionProjects', { enumerable: true, @@ -48359,7 +32744,7 @@ Object.defineProperty(exports, 'buildProductionProjects', { } }); -var _prepare_project_dependencies = __webpack_require__(509); +var _prepare_project_dependencies = __webpack_require__(398); Object.defineProperty(exports, 'prepareExternalProjectDependencies', { enumerable: true, @@ -48369,7 +32754,7 @@ Object.defineProperty(exports, 'prepareExternalProjectDependencies', { }); /***/ }), -/* 498 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48381,7 +32766,7 @@ Object.defineProperty(exports, "__esModule", { exports.buildProductionProjects = undefined; let buildProductionProjects = exports.buildProductionProjects = (() => { - var _ref = _asyncToGenerator(function* ({ kibanaRoot, buildRoot }) { + var _ref = _asyncToGenerator(function* ({ kibanaRoot, buildRoots }) { const projects = yield getProductionProjects(kibanaRoot); const projectGraph = (0, _projects.buildProjectGraph)(projects); const batchedProjects = (0, _projects.topologicallyBatchProjects)(projects, projectGraph); @@ -48393,7 +32778,9 @@ let buildProductionProjects = exports.buildProductionProjects = (() => { for (const project of batch) { yield deleteTarget(project); yield buildProject(project); - yield copyToBuild(project, kibanaRoot, buildRoot); + for (const buildRoot of buildRoots) { + yield copyToBuild(project, kibanaRoot, buildRoot); + } } } }); @@ -48483,8 +32870,7 @@ let copyToBuild = (() => { // the intermediate build, we fall back to using the project's already defined // `package.json`. const packageJson = (yield (0, _fs.isFile)((0, _path.join)(buildProjectPath, 'package.json'))) ? yield (0, _package_json.readPackageJson)(buildProjectPath) : project.json; - const preparedPackageJson = (0, _package_json.createProductionPackageJson)(packageJson); - yield (0, _package_json.writePackageJson)(buildProjectPath, preparedPackageJson); + yield (0, _package_json.writePackageJson)(buildProjectPath, packageJson); }); return function copyToBuild(_x5, _x6, _x7) { @@ -48492,25 +32878,25 @@ let copyToBuild = (() => { }; })(); -var _cpy = __webpack_require__(499); +var _cpy = __webpack_require__(387); var _cpy2 = _interopRequireDefault(_cpy); -var _del = __webpack_require__(217); +var _del = __webpack_require__(98); var _del2 = _interopRequireDefault(_del); -var _path = __webpack_require__(3); +var _path = __webpack_require__(2); -var _config = __webpack_require__(254); +var _config = __webpack_require__(60); -var _fs = __webpack_require__(56); +var _fs = __webpack_require__(39); -var _log = __webpack_require__(20); +var _log = __webpack_require__(19); -var _package_json = __webpack_require__(42); +var _package_json = __webpack_require__(41); -var _projects = __webpack_require__(30); +var _projects = __webpack_require__(22); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -48534,17 +32920,17 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a */ /***/ }), -/* 499 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const EventEmitter = __webpack_require__(41); -const path = __webpack_require__(3); -const arrify = __webpack_require__(500); -const globby = __webpack_require__(501); -const cpFile = __webpack_require__(503); -const CpyError = __webpack_require__(508); +const EventEmitter = __webpack_require__(40); +const path = __webpack_require__(2); +const arrify = __webpack_require__(388); +const globby = __webpack_require__(389); +const cpFile = __webpack_require__(391); +const CpyError = __webpack_require__(397); const preprocessSrcPath = (srcPath, opts) => opts.cwd ? path.resolve(opts.cwd, srcPath) : srcPath; @@ -48638,7 +33024,7 @@ module.exports = (src, dest, opts) => { /***/ }), -/* 500 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48653,16 +33039,16 @@ module.exports = function (val) { /***/ }), -/* 501 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Promise = __webpack_require__(218); -var arrayUnion = __webpack_require__(219); -var objectAssign = __webpack_require__(220); -var glob = __webpack_require__(31); -var pify = __webpack_require__(502); +var Promise = __webpack_require__(99); +var arrayUnion = __webpack_require__(100); +var objectAssign = __webpack_require__(101); +var glob = __webpack_require__(23); +var pify = __webpack_require__(390); var globP = pify(glob, Promise).bind(glob); @@ -48748,7 +33134,7 @@ module.exports.hasMagic = function (patterns, opts) { /***/ }), -/* 502 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48823,17 +33209,17 @@ pify.all = pify; /***/ }), -/* 503 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(3); -const fsConstants = __webpack_require__(7).constants; -const Buffer = __webpack_require__(504).Buffer; -const CpFileError = __webpack_require__(255); -const fs = __webpack_require__(506); -const ProgressEmitter = __webpack_require__(507); +const path = __webpack_require__(2); +const fsConstants = __webpack_require__(6).constants; +const Buffer = __webpack_require__(392).Buffer; +const CpFileError = __webpack_require__(134); +const fs = __webpack_require__(394); +const ProgressEmitter = __webpack_require__(396); module.exports = (src, dest, opts) => { if (!src || !dest) { @@ -48983,11 +33369,11 @@ module.exports.sync = (src, dest, opts) => { /***/ }), -/* 504 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { /* eslint-disable node/no-deprecated-api */ -var buffer = __webpack_require__(505) +var buffer = __webpack_require__(393) var Buffer = buffer.Buffer // alternative to using Object.keys for old browsers @@ -49051,21 +33437,21 @@ SafeBuffer.allocUnsafeSlow = function (size) { /***/ }), -/* 505 */ +/* 393 */ /***/ (function(module, exports) { module.exports = require("buffer"); /***/ }), -/* 506 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const fs = __webpack_require__(28); -const makeDir = __webpack_require__(92); -const pify = __webpack_require__(23); -const CpFileError = __webpack_require__(255); +const fs = __webpack_require__(27); +const makeDir = __webpack_require__(91); +const pify = __webpack_require__(395); +const CpFileError = __webpack_require__(134); const fsP = pify(fs); @@ -49210,12 +33596,103 @@ if (fs.copyFileSync) { /***/ }), -/* 507 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const EventEmitter = __webpack_require__(41); + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; + + +/***/ }), +/* 396 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +const EventEmitter = __webpack_require__(40); const written = new WeakMap(); @@ -49252,12 +33729,12 @@ module.exports = ProgressEmitter; /***/ }), -/* 508 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const NestedError = __webpack_require__(256); +const NestedError = __webpack_require__(135); class CpyError extends NestedError { constructor(message, nested) { @@ -49271,7 +33748,7 @@ module.exports = CpyError; /***/ }), -/* 509 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49311,9 +33788,9 @@ let prepareExternalProjectDependencies = exports.prepareExternalProjectDependenc }; })(); -var _package_json = __webpack_require__(42); +var _package_json = __webpack_require__(41); -var _project = __webpack_require__(87); +var _project = __webpack_require__(86); function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /* * Licensed to Elasticsearch B.V. under one or more contributor diff --git a/packages/kbn-pm/package.json b/packages/kbn-pm/package.json index 4ca3f0b16400c..0c03bd9238b4f 100644 --- a/packages/kbn-pm/package.json +++ b/packages/kbn-pm/package.json @@ -24,6 +24,7 @@ "@types/lodash.clonedeepwith": "^4.5.3", "@types/log-symbols": "^2.0.0", "@types/mkdirp": "^0.5.2", + "@types/ncp": "^2.0.1", "@types/node": "^8.9.4", "@types/ora": "^1.3.2", "@types/read-pkg": "^3.0.0", @@ -50,14 +51,15 @@ "lodash.clonedeepwith": "^4.5.0", "log-symbols": "^2.2.0", "mkdirp": "^0.5.1", + "ncp": "^2.0.0", "ora": "^1.4.0", - "prettier": "^1.14.0", + "prettier": "^1.14.3", "read-pkg": "^3.0.0", "rxjs": "^6.2.1", "spawn-sync": "^1.0.15", "string-replace-loader": "^1.3.0", "strip-ansi": "^4.0.0", - "strong-log-transformer": "^1.0.6", + "strong-log-transformer": "^2.0.0", "tempy": "^0.2.1", "ts-loader": "^3.5.0", "typescript": "^3.0.3", diff --git a/packages/kbn-pm/src/commands/__snapshots__/bootstrap.test.ts.snap b/packages/kbn-pm/src/commands/__snapshots__/bootstrap.test.ts.snap index 8e7fa2cc6c97f..003d434978ef5 100644 --- a/packages/kbn-pm/src/commands/__snapshots__/bootstrap.test.ts.snap +++ b/packages/kbn-pm/src/commands/__snapshots__/bootstrap.test.ts.snap @@ -6,22 +6,29 @@ Array [ Map { "kibana" => Project { "allDependencies": Object { - "bar": "link:packages/bar", + "bar": "1.0.0", }, "devDependencies": Object {}, + "isWorkspaceProject": false, + "isWorkspaceRoot": true, "json": Object { "dependencies": Object { - "bar": "link:packages/bar", + "bar": "1.0.0", }, "name": "kibana", "version": "1.0.0", + "workspaces": Object { + "packages": Array [ + "packages/*", + ], + }, }, "nodeModulesLocation": "/packages/kbn-pm/src/commands/node_modules", "optimizeLocation": "/packages/kbn-pm/src/commands/optimize", "packageJsonLocation": "/packages/kbn-pm/src/commands/package.json", "path": "/packages/kbn-pm/src/commands", "productionDependencies": Object { - "bar": "link:packages/bar", + "bar": "1.0.0", }, "scripts": Object {}, "targetLocation": "/packages/kbn-pm/src/commands/target", @@ -29,6 +36,8 @@ Array [ "bar" => Project { "allDependencies": Object {}, "devDependencies": Object {}, + "isWorkspaceProject": false, + "isWorkspaceRoot": false, "json": Object { "name": "bar", "scripts": Object { @@ -52,6 +61,8 @@ Array [ Project { "allDependencies": Object {}, "devDependencies": Object {}, + "isWorkspaceProject": false, + "isWorkspaceRoot": false, "json": Object { "name": "bar", "scripts": Object { @@ -84,6 +95,8 @@ Array [ Project { "allDependencies": Object {}, "devDependencies": Object {}, + "isWorkspaceProject": false, + "isWorkspaceRoot": false, "json": Object { "name": "bar", "scripts": Object { @@ -158,11 +171,11 @@ Array [ exports[`handles dependencies of dependencies: install in dir 1`] = ` Array [ Array [ - "/packages/kbn-pm/src/commands/packages/bar", + "/packages/kbn-pm/src/commands", Array [], ], Array [ - "/packages/kbn-pm/src/commands", + "/packages/kbn-pm/src/commands/packages/bar", Array [], ], Array [ @@ -181,13 +194,13 @@ Running installs in topological order:", Array [ " -Installing dependencies in [bar]: +Installing dependencies in [kibana]: ", ], Array [ " -Installing dependencies in [kibana]: +Installing dependencies in [bar]: ", ], Array [ diff --git a/packages/kbn-pm/src/commands/bootstrap.test.ts b/packages/kbn-pm/src/commands/bootstrap.test.ts index 66bdc6d82ecda..f7f1cf4e6784f 100644 --- a/packages/kbn-pm/src/commands/bootstrap.test.ts +++ b/packages/kbn-pm/src/commands/bootstrap.test.ts @@ -34,8 +34,8 @@ const mockInstallInDir = installInDir as jest.Mock; const mockRunScriptInPackageStreaming = runScriptInPackageStreaming as jest.Mock; const mockLinkProjectExecutables = linkProjectExecutables as jest.Mock; -const createProject = (packageJson: IPackageJson, path = '.') => - new Project( +const createProject = (packageJson: IPackageJson, path = '.') => { + const project = new Project( { name: 'kibana', version: '1.0.0', @@ -44,6 +44,12 @@ const createProject = (packageJson: IPackageJson, path = '.') => resolve(__dirname, path) ); + if (packageJson.workspaces) { + project.isWorkspaceRoot = true; + } + + return project; +}; expect.addSnapshotSerializer(absolutePathSnapshotSerializer); expect.addSnapshotSerializer(stripAnsiSnapshotSerializer); @@ -59,7 +65,10 @@ afterEach(() => { test('handles dependencies of dependencies', async () => { const kibana = createProject({ dependencies: { - bar: 'link:packages/bar', + bar: '1.0.0', + }, + workspaces: { + packages: ['packages/*'], }, }); const foo = createProject( @@ -86,6 +95,7 @@ test('handles dependencies of dependencies', async () => { }, 'packages/baz' ); + const projects = new Map([['kibana', kibana], ['foo', foo], ['bar', bar], ['baz', baz]]); const projectGraph = buildProjectGraph(projects); @@ -104,7 +114,10 @@ test('handles dependencies of dependencies', async () => { test('does not run installer if no deps in package', async () => { const kibana = createProject({ dependencies: { - bar: 'link:packages/bar', + bar: '1.0.0', + }, + workspaces: { + packages: ['packages/*'], }, }); // bar has no dependencies @@ -135,6 +148,9 @@ test('handles "frozen-lockfile"', async () => { dependencies: { foo: '2.2.0', }, + workspaces: { + packages: ['packages/*'], + }, }); const projects = new Map([['kibana', kibana]]); @@ -156,7 +172,10 @@ test('handles "frozen-lockfile"', async () => { test('calls "kbn:bootstrap" scripts and links executables after installing deps', async () => { const kibana = createProject({ dependencies: { - bar: 'link:packages/bar', + bar: '1.0.0', + }, + workspaces: { + packages: ['packages/*'], }, }); const bar = createProject( diff --git a/packages/kbn-pm/src/commands/bootstrap.ts b/packages/kbn-pm/src/commands/bootstrap.ts index 2d2aa9b040a75..2469e4cca1cb1 100644 --- a/packages/kbn-pm/src/commands/bootstrap.ts +++ b/packages/kbn-pm/src/commands/bootstrap.ts @@ -30,6 +30,9 @@ export const BootstrapCommand: ICommand = { name: 'bootstrap', async run(projects, projectGraph, { options }) { + const batchedProjectsByWorkspace = topologicallyBatchProjects(projects, projectGraph, { + batchByWorkspace: true, + }); const batchedProjects = topologicallyBatchProjects(projects, projectGraph); const frozenLockfile = options['frozen-lockfile'] === true; @@ -37,8 +40,13 @@ export const BootstrapCommand: ICommand = { log.write(chalk.bold('\nRunning installs in topological order:')); - for (const batch of batchedProjects) { + for (const batch of batchedProjectsByWorkspace) { for (const project of batch) { + if (project.isWorkspaceProject) { + log.write(`Skipping workspace project: ${project.name}`); + continue; + } + if (project.hasDependencies()) { await project.installDependencies({ extraArgs }); } diff --git a/packages/kbn-pm/src/index.ts b/packages/kbn-pm/src/index.ts index 76979b31e90e2..a4c411f5152c3 100644 --- a/packages/kbn-pm/src/index.ts +++ b/packages/kbn-pm/src/index.ts @@ -19,4 +19,4 @@ export { run } from './cli'; export { buildProductionProjects, prepareExternalProjectDependencies } from './production'; -export { transformDependencies } from './utils/package_json'; +export { copyWorkspacePackages } from './utils/workspaces'; diff --git a/packages/kbn-pm/src/production/build_production_projects.ts b/packages/kbn-pm/src/production/build_production_projects.ts index 292020b22781f..cbb0aadf3cf11 100644 --- a/packages/kbn-pm/src/production/build_production_projects.ts +++ b/packages/kbn-pm/src/production/build_production_projects.ts @@ -24,11 +24,7 @@ import { join, relative, resolve } from 'path'; import { getProjectPaths } from '../config'; import { isDirectory, isFile } from '../utils/fs'; import { log } from '../utils/log'; -import { - createProductionPackageJson, - readPackageJson, - writePackageJson, -} from '../utils/package_json'; +import { readPackageJson, writePackageJson } from '../utils/package_json'; import { Project } from '../utils/project'; import { buildProjectGraph, @@ -39,10 +35,10 @@ import { export async function buildProductionProjects({ kibanaRoot, - buildRoot, + buildRoots, }: { kibanaRoot: string; - buildRoot: string; + buildRoots: string[]; }) { const projects = await getProductionProjects(kibanaRoot); const projectGraph = buildProjectGraph(projects); @@ -55,7 +51,9 @@ export async function buildProductionProjects({ for (const project of batch) { await deleteTarget(project); await buildProject(project); - await copyToBuild(project, kibanaRoot, buildRoot); + for (const buildRoot of buildRoots) { + await copyToBuild(project, kibanaRoot, buildRoot); + } } } } @@ -128,6 +126,5 @@ async function copyToBuild(project: Project, kibanaRoot: string, buildRoot: stri ? await readPackageJson(buildProjectPath) : project.json; - const preparedPackageJson = createProductionPackageJson(packageJson); - await writePackageJson(buildProjectPath, preparedPackageJson); + await writePackageJson(buildProjectPath, packageJson); } diff --git a/packages/kbn-pm/src/production/integration_tests/__snapshots__/build_production_projects.test.ts.snap b/packages/kbn-pm/src/production/integration_tests/__snapshots__/build_production_projects.test.ts.snap index 9a5c479255218..94642340e0d9d 100644 --- a/packages/kbn-pm/src/production/integration_tests/__snapshots__/build_production_projects.test.ts.snap +++ b/packages/kbn-pm/src/production/integration_tests/__snapshots__/build_production_projects.test.ts.snap @@ -44,7 +44,7 @@ Object { exports[`kbn-pm production builds and copies projects for production: packages/foo/package.json 1`] = ` Object { "dependencies": Object { - "@elastic/bar": "file:../bar", + "@elastic/bar": "link:../bar", }, "devDependencies": Object { "babel-cli": "^6.26.0", diff --git a/packages/kbn-pm/src/production/integration_tests/build_production_projects.test.ts b/packages/kbn-pm/src/production/integration_tests/build_production_projects.test.ts index d0f2f05bec1b1..0cef08fc7d064 100644 --- a/packages/kbn-pm/src/production/integration_tests/build_production_projects.test.ts +++ b/packages/kbn-pm/src/production/integration_tests/build_production_projects.test.ts @@ -51,7 +51,7 @@ describe('kbn-pm production', () => { }); } - await buildProductionProjects({ kibanaRoot: tmpDir, buildRoot }); + await buildProductionProjects({ kibanaRoot: tmpDir, buildRoots: [buildRoot] }); const files = await globby(['**/*', '!**/node_modules/**'], { cwd: buildRoot, diff --git a/packages/kbn-pm/src/utils/__fixtures__/kibana/package.json b/packages/kbn-pm/src/utils/__fixtures__/kibana/package.json index 98bc15383f844..4479334f22dd7 100644 --- a/packages/kbn-pm/src/utils/__fixtures__/kibana/package.json +++ b/packages/kbn-pm/src/utils/__fixtures__/kibana/package.json @@ -2,6 +2,11 @@ "name": "kibana", "version": "1.0.0", "dependencies": { - "foo": "link:packages/foo" + "foo": "1.0.0" + }, + "workspaces": { + "packages": [ + "packages/*" + ] } } diff --git a/packages/kbn-pm/src/utils/__fixtures__/kibana/packages/bar/package.json b/packages/kbn-pm/src/utils/__fixtures__/kibana/packages/bar/package.json index b5eae58393860..c5bdda83e8e6c 100644 --- a/packages/kbn-pm/src/utils/__fixtures__/kibana/packages/bar/package.json +++ b/packages/kbn-pm/src/utils/__fixtures__/kibana/packages/bar/package.json @@ -2,6 +2,6 @@ "name": "bar", "version": "1.0.0", "dependencies": { - "foo": "link:../foo" + "foo": "1.0.0" } } diff --git a/packages/kbn-pm/src/utils/__fixtures__/plugins/zorge/package.json b/packages/kbn-pm/src/utils/__fixtures__/plugins/zorge/package.json new file mode 100644 index 0000000000000..80a27b17661dd --- /dev/null +++ b/packages/kbn-pm/src/utils/__fixtures__/plugins/zorge/package.json @@ -0,0 +1,7 @@ +{ + "name": "zorge", + "version": "1.0.0", + "dependencies": { + "foo": "link:../../kibana/packages/foo" + } +} diff --git a/packages/kbn-pm/src/utils/__snapshots__/link_project_executables.test.ts.snap b/packages/kbn-pm/src/utils/__snapshots__/link_project_executables.test.ts.snap index cae0463a23cfd..451333e1216b6 100644 --- a/packages/kbn-pm/src/utils/__snapshots__/link_project_executables.test.ts.snap +++ b/packages/kbn-pm/src/utils/__snapshots__/link_project_executables.test.ts.snap @@ -3,6 +3,7 @@ exports[`bin script points nowhere does not try to create symlink or node_modules/.bin directory: fs module calls 1`] = ` Object { "chmod": Array [], + "copyDirectory": Array [], "createSymlink": Array [], "isDirectory": Array [], "isFile": Array [ @@ -15,6 +16,7 @@ Object { ], "mkdirp": Array [], "readFile": Array [], + "unlink": Array [], } `; @@ -30,6 +32,7 @@ Object { "755", ], ], + "copyDirectory": Array [], "createSymlink": Array [ Array [ "/packages/kbn-pm/src/utils/bar/bin/bar.js", @@ -60,6 +63,7 @@ Object { ], ], "readFile": Array [], + "unlink": Array [], } `; diff --git a/packages/kbn-pm/src/utils/__snapshots__/project.test.ts.snap b/packages/kbn-pm/src/utils/__snapshots__/project.test.ts.snap index f6c34e862f70f..5146ec8c56033 100644 --- a/packages/kbn-pm/src/utils/__snapshots__/project.test.ts.snap +++ b/packages/kbn-pm/src/utils/__snapshots__/project.test.ts.snap @@ -1,7 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`#ensureValidProjectDependency using link: in workspace 1`] = `"[kibana] depends on [foo] but should be using a workspace. Update its package.json to the expected value below."`; + exports[`#ensureValidProjectDependency using link:, but with wrong path 1`] = `"[kibana] depends on [foo] using 'link:', but the path is wrong. Update its package.json to the expected value below."`; -exports[`#ensureValidProjectDependency using version instead of link: 1`] = `"[kibana] depends on [foo], but it's not using the local package. Update its package.json to the expected value below."`; +exports[`#ensureValidProjectDependency using version instead of link: 1`] = `"[kibana] depends on [foo] but it's not using the local package. Update its package.json to the expected value below."`; + +exports[`#ensureValidProjectDependency using wrong version in workspace 1`] = `"[kibana] depends on [foo] but it's not using the local package. Update its package.json to the expected value below."`; exports[`#getExecutables() throws CliError when bin is something strange 1`] = `"[kibana] has an invalid \\"bin\\" field in its package.json, expected an object or a string"`; diff --git a/packages/kbn-pm/src/utils/__snapshots__/projects.test.ts.snap b/packages/kbn-pm/src/utils/__snapshots__/projects.test.ts.snap index 07bc6ad775ac9..86ba136c50aa1 100644 --- a/packages/kbn-pm/src/utils/__snapshots__/projects.test.ts.snap +++ b/packages/kbn-pm/src/utils/__snapshots__/projects.test.ts.snap @@ -14,6 +14,9 @@ Object { "bar", "baz", ], + "zorge": Array [ + "foo", + ], } `; @@ -26,6 +29,7 @@ Array [ Array [ "kibana", "bar", + "zorge", ], Array [ "quux", @@ -39,6 +43,7 @@ Array [ "kibana", "bar", "baz", + "zorge", ], Array [ "quux", diff --git a/packages/kbn-pm/src/utils/__snapshots__/projects_tree.test.ts.snap b/packages/kbn-pm/src/utils/__snapshots__/projects_tree.test.ts.snap index 70c650fae7d45..12cbc704b4803 100644 --- a/packages/kbn-pm/src/utils/__snapshots__/projects_tree.test.ts.snap +++ b/packages/kbn-pm/src/utils/__snapshots__/projects_tree.test.ts.snap @@ -7,7 +7,8 @@ exports[`handles projects outside root folder 1`] = ` │ └── foo └── ../plugins ├── baz - └── quux" + ├── quux + └── zorge" `; exports[`handles projects with root folder 1`] = ` diff --git a/packages/kbn-pm/src/utils/child_process.ts b/packages/kbn-pm/src/utils/child_process.ts index caf1e822ff96d..c90f2d1379ecf 100644 --- a/packages/kbn-pm/src/utils/child_process.ts +++ b/packages/kbn-pm/src/utils/child_process.ts @@ -23,7 +23,7 @@ import logSymbols from 'log-symbols'; import logTransformer from 'strong-log-transformer'; function generateColors() { - const colorWheel = [chalk.cyan, chalk.magenta, chalk.blue, chalk.yellow, chalk.green, chalk.red]; + const colorWheel = [chalk.cyan, chalk.magenta, chalk.blue, chalk.yellow, chalk.green]; const count = colorWheel.length; let children = 0; diff --git a/packages/kbn-pm/src/utils/fs.ts b/packages/kbn-pm/src/utils/fs.ts index 1f3a689eccd73..e40ead8d8287f 100644 --- a/packages/kbn-pm/src/utils/fs.ts +++ b/packages/kbn-pm/src/utils/fs.ts @@ -20,16 +20,18 @@ import cmdShimCb from 'cmd-shim'; import fs from 'fs'; import mkdirpCb from 'mkdirp'; +import { ncp } from 'ncp'; import { dirname, relative } from 'path'; import { promisify } from 'util'; const stat = promisify(fs.stat); const readFile = promisify(fs.readFile); -const unlink = promisify(fs.unlink); const symlink = promisify(fs.symlink); const chmod = promisify(fs.chmod); const cmdShim = promisify(cmdShimCb); const mkdirp = promisify(mkdirpCb); +export const unlink = promisify(fs.unlink); +export const copyDirectory = promisify(ncp); export { chmod, readFile, mkdirp }; diff --git a/packages/kbn-pm/src/utils/package_json.ts b/packages/kbn-pm/src/utils/package_json.ts index 132325149d824..c865b8e0c1a3d 100644 --- a/packages/kbn-pm/src/utils/package_json.ts +++ b/packages/kbn-pm/src/utils/package_json.ts @@ -38,31 +38,4 @@ export function writePackageJson(path: string, json: IPackageJson) { return writePkg(path, json); } -export const createProductionPackageJson = (pkgJson: IPackageJson) => ({ - ...pkgJson, - dependencies: transformDependencies(pkgJson.dependencies), -}); - export const isLinkDependency = (depVersion: string) => depVersion.startsWith('link:'); - -/** - * Replaces `link:` dependencies with `file:` dependencies. When installing - * dependencies, these `file:` dependencies will be copied into `node_modules` - * instead of being symlinked. - * - * This will allow us to copy packages into the build and run `yarn`, which - * will then _copy_ the `file:` dependencies into `node_modules` instead of - * symlinking like we do in development. - */ -export function transformDependencies(dependencies: IPackageDependencies = {}) { - const newDeps: IPackageDependencies = {}; - for (const name of Object.keys(dependencies)) { - const depVersion = dependencies[name]; - if (isLinkDependency(depVersion)) { - newDeps[name] = depVersion.replace('link:', 'file:'); - } else { - newDeps[name] = depVersion; - } - } - return newDeps; -} diff --git a/packages/kbn-pm/src/utils/project.test.ts b/packages/kbn-pm/src/utils/project.test.ts index ba7d44814f64c..ce4f0bbe8ccff 100644 --- a/packages/kbn-pm/src/utils/project.test.ts +++ b/packages/kbn-pm/src/utils/project.test.ts @@ -76,7 +76,7 @@ describe('#ensureValidProjectDependency', () => { 'packages/foo' ); - expect(() => root.ensureValidProjectDependency(foo)).not.toThrow(); + expect(() => root.ensureValidProjectDependency(foo, false)).not.toThrow(); }); test('using link:, but with wrong path', () => { @@ -96,7 +96,7 @@ describe('#ensureValidProjectDependency', () => { 'packages/foo' ); - expect(() => root.ensureValidProjectDependency(foo)).toThrowErrorMatchingSnapshot(); + expect(() => root.ensureValidProjectDependency(foo, false)).toThrowErrorMatchingSnapshot(); }); test('using version instead of link:', () => { @@ -116,7 +116,60 @@ describe('#ensureValidProjectDependency', () => { 'packages/foo' ); - expect(() => root.ensureValidProjectDependency(foo)).toThrowErrorMatchingSnapshot(); + expect(() => root.ensureValidProjectDependency(foo, false)).toThrowErrorMatchingSnapshot(); + }); + + test('using version in workspace', () => { + const root = createProjectWith({ + dependencies: { + foo: '1.0.0', + }, + }); + + const foo = createProjectWith( + { + name: 'foo', + version: '1.0.0', + }, + 'packages/foo' + ); + + expect(() => root.ensureValidProjectDependency(foo, true)).not.toThrow(); + }); + + test('using wrong version in workspace', () => { + const root = createProjectWith({ + dependencies: { + foo: '1.0.0', + }, + }); + + const foo = createProjectWith( + { + name: 'foo', + version: '2.0.0', + }, + 'packages/foo' + ); + + expect(() => root.ensureValidProjectDependency(foo, true)).toThrowErrorMatchingSnapshot(); + }); + + test('using link: in workspace', () => { + const root = createProjectWith({ + dependencies: { + foo: 'link:packages/foo', + }, + }); + + const foo = createProjectWith( + { + name: 'foo', + }, + 'packages/foo' + ); + + expect(() => root.ensureValidProjectDependency(foo, true)).toThrowErrorMatchingSnapshot(); }); }); diff --git a/packages/kbn-pm/src/utils/project.ts b/packages/kbn-pm/src/utils/project.ts index 817bfe5450cf6..58cc047aa8c22 100644 --- a/packages/kbn-pm/src/utils/project.ts +++ b/packages/kbn-pm/src/utils/project.ts @@ -53,6 +53,8 @@ export class Project { public readonly productionDependencies: IPackageDependencies; public readonly devDependencies: IPackageDependencies; public readonly scripts: IPackageScripts; + public isWorkspaceRoot = false; + public isWorkspaceProject = false; constructor(packageJson: IPackageJson, projectPath: string) { this.json = Object.freeze(packageJson); @@ -69,6 +71,7 @@ export class Project { ...this.devDependencies, ...this.productionDependencies, }; + this.isWorkspaceRoot = this.json.hasOwnProperty('workspaces'); this.scripts = this.json.scripts || {}; } @@ -77,37 +80,40 @@ export class Project { return this.json.name; } - public ensureValidProjectDependency(project: Project) { - const relativePathToProject = normalizePath(relative(this.path, project.path)); - + public ensureValidProjectDependency(project: Project, dependentProjectIsInWorkspace: boolean) { const versionInPackageJson = this.allDependencies[project.name]; - const expectedVersionInPackageJson = `link:${relativePathToProject}`; + let expectedVersionInPackageJson; + if (dependentProjectIsInWorkspace) { + expectedVersionInPackageJson = project.json.version; + } else { + const relativePathToProject = normalizePath(relative(this.path, project.path)); + expectedVersionInPackageJson = `link:${relativePathToProject}`; + } + + // No issues! if (versionInPackageJson === expectedVersionInPackageJson) { return; } - const updateMsg = 'Update its package.json to the expected value below.'; - const meta = { - actual: `"${project.name}": "${versionInPackageJson}"`, - expected: `"${project.name}": "${expectedVersionInPackageJson}"`, - package: `${this.name} (${this.packageJsonLocation})`, - }; - - if (isLinkDependency(versionInPackageJson)) { - throw new CliError( - `[${this.name}] depends on [${ - project.name - }] using 'link:', but the path is wrong. ${updateMsg}`, - meta - ); + let problemMsg; + if (isLinkDependency(versionInPackageJson) && dependentProjectIsInWorkspace) { + problemMsg = `but should be using a workspace`; + } else if (isLinkDependency(versionInPackageJson)) { + problemMsg = `using 'link:', but the path is wrong`; + } else { + problemMsg = `but it's not using the local package`; } throw new CliError( `[${this.name}] depends on [${ project.name - }], but it's not using the local package. ${updateMsg}`, - meta + }] ${problemMsg}. Update its package.json to the expected value below.`, + { + actual: `"${project.name}": "${versionInPackageJson}"`, + expected: `"${project.name}": "${expectedVersionInPackageJson}"`, + package: `${this.name} (${this.packageJsonLocation})`, + } ); } diff --git a/packages/kbn-pm/src/utils/projects.test.ts b/packages/kbn-pm/src/utils/projects.test.ts index e2b6f225472d1..1dbb90861b183 100644 --- a/packages/kbn-pm/src/utils/projects.test.ts +++ b/packages/kbn-pm/src/utils/projects.test.ts @@ -52,9 +52,9 @@ describe('#getProjects', () => { test('handles packages outside root', async () => { const projects = await getProjects(rootPath, ['../plugins/*']); - const expectedProjects = ['baz', 'quux']; + const expectedProjects = ['baz', 'quux', 'zorge']; - expect(projects.size).toBe(2); + expect(projects.size).toBe(3); expect([...projects.keys()]).toEqual(expect.arrayContaining(expectedProjects)); }); @@ -194,6 +194,16 @@ describe('#topologicallyBatchProjects', () => { expect(expectedBatches).toMatchSnapshot(); }); + + describe('batchByWorkspace = true', async () => { + test('batches projects topologically based on their project dependencies and workspaces', async () => { + const batches = topologicallyBatchProjects(projects, graph, { batchByWorkspace: true }); + + const expectedBatches = batches.map(batch => batch.map(project => project.name)); + + expect(expectedBatches).toEqual([['kibana'], ['bar', 'foo'], ['baz', 'zorge'], ['quux']]); + }); + }); }); describe('#includeTransitiveProjects', () => { diff --git a/packages/kbn-pm/src/utils/projects.ts b/packages/kbn-pm/src/utils/projects.ts index d46596a08694c..e8a40cce3011a 100644 --- a/packages/kbn-pm/src/utils/projects.ts +++ b/packages/kbn-pm/src/utils/projects.ts @@ -23,6 +23,7 @@ import { promisify } from 'util'; import { CliError } from './errors'; import { Project } from './project'; +import { workspacePackagePaths } from './workspaces'; const glob = promisify(globSync); @@ -40,6 +41,8 @@ export async function getProjects( ) { const projects: ProjectMap = new Map(); + const workspaceProjectsPaths = await workspacePackagePaths(rootPath); + for (const pattern of projectsPathsPatterns) { const pathsToProcess = await packagesFromGlobPattern({ pattern, rootPath }); @@ -48,6 +51,10 @@ export async function getProjects( const projectDir = path.dirname(projectConfigPath); const project = await Project.fromPath(projectDir); + if (workspaceProjectsPaths.indexOf(filePath) >= 0) { + project.isWorkspaceProject = true; + } + const excludeProject = exclude.includes(project.name) || (include.length > 0 && !include.includes(project.name)); @@ -105,7 +112,9 @@ export function buildProjectGraph(projects: ProjectMap) { if (projects.has(depName)) { const dep = projects.get(depName)!; - project.ensureValidProjectDependency(dep); + const dependentProjectIsInWorkspace = + project.isWorkspaceProject || project.json.name === 'kibana'; + project.ensureValidProjectDependency(dep, dependentProjectIsInWorkspace); projectDeps.push(dep); } @@ -119,21 +128,47 @@ export function buildProjectGraph(projects: ProjectMap) { export function topologicallyBatchProjects( projectsToBatch: ProjectMap, - projectGraph: ProjectGraph + projectGraph: ProjectGraph, + { batchByWorkspace = false } = {} ) { // We're going to be chopping stuff out of this list, so copy it. - const projectToBatchNames = new Set(projectsToBatch.keys()); - + const projectsLeftToBatch = new Set(projectsToBatch.keys()); const batches = []; - while (projectToBatchNames.size > 0) { + + if (batchByWorkspace) { + const workspaceRootProject = Array.from(projectsToBatch.values()).find(p => p.isWorkspaceRoot); + + if (!workspaceRootProject) { + throw new CliError(`There was no yarn workspace root found.`); + } + + // Push in the workspace root first. + batches.push([workspaceRootProject]); + projectsLeftToBatch.delete(workspaceRootProject.name); + + // In the next batch, push in all workspace projects. + const workspaceBatch = []; + for (const projectName of projectsLeftToBatch) { + const project = projectsToBatch.get(projectName)!; + + if (project.isWorkspaceProject) { + workspaceBatch.push(project); + projectsLeftToBatch.delete(projectName); + } + } + + batches.push(workspaceBatch); + } + + while (projectsLeftToBatch.size > 0) { // Get all projects that have no remaining dependencies within the repo // that haven't yet been picked. const batch = []; - for (const projectName of projectToBatchNames) { + for (const projectName of projectsLeftToBatch) { const projectDeps = projectGraph.get(projectName)!; - const hasNotBatchedDependencies = projectDeps.some(dep => projectToBatchNames.has(dep.name)); + const needsDependenciesBatched = projectDeps.some(dep => projectsLeftToBatch.has(dep.name)); - if (!hasNotBatchedDependencies) { + if (!needsDependenciesBatched) { batch.push(projectsToBatch.get(projectName)!); } } @@ -142,7 +177,7 @@ export function topologicallyBatchProjects( // then we've encountered a cycle in the dependency graph. const hasCycles = batch.length === 0; if (hasCycles) { - const cycleProjectNames = [...projectToBatchNames]; + const cycleProjectNames = [...projectsLeftToBatch]; const message = 'Encountered a cycle in the dependency graph. Projects in cycle are:\n' + cycleProjectNames.join(', '); @@ -152,7 +187,7 @@ export function topologicallyBatchProjects( batches.push(batch); - batch.forEach(project => projectToBatchNames.delete(project.name)); + batch.forEach(project => projectsLeftToBatch.delete(project.name)); } return batches; diff --git a/packages/kbn-pm/src/utils/scripts.ts b/packages/kbn-pm/src/utils/scripts.ts index d7076b1d28b39..177068b9b1112 100644 --- a/packages/kbn-pm/src/utils/scripts.ts +++ b/packages/kbn-pm/src/utils/scripts.ts @@ -24,7 +24,7 @@ import { Project } from './project'; * Install all dependencies in the given directory */ export async function installInDir(directory: string, extraArgs: string[] = []) { - const options = ['install', '--check-files', '--non-interactive', '--mutex=file', ...extraArgs]; + const options = ['install', '--non-interactive', '--mutex=file', ...extraArgs]; // We pass the mutex flag to ensure only one instance of yarn runs at any // given time (e.g. to avoid conflicts). diff --git a/packages/kbn-pm/src/utils/workspaces.ts b/packages/kbn-pm/src/utils/workspaces.ts new file mode 100644 index 0000000000000..12548523db2ac --- /dev/null +++ b/packages/kbn-pm/src/utils/workspaces.ts @@ -0,0 +1,100 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import globSync from 'glob'; +import path from 'path'; +import { promisify } from 'util'; + +import { getProjectPaths } from '../config'; +import { copyDirectory, unlink } from './fs'; +import { readPackageJson } from './package_json'; +import { getProjects } from './projects'; + +const glob = promisify(globSync); + +export async function workspacePackagePaths(rootPath: string): Promise { + const rootPkgJson = await readPackageJson(path.join(rootPath, 'package.json')); + + if (!rootPkgJson.workspaces) { + return []; + } + + const workspacesPathsPatterns: string[] = rootPkgJson.workspaces.packages; + let workspaceProjectsPaths: string[] = []; + + for (const pattern of workspacesPathsPatterns) { + workspaceProjectsPaths = workspaceProjectsPaths.concat( + await packagesFromGlobPattern({ pattern, rootPath }) + ); + } + + // Filter out exclude glob patterns + for (const pattern of workspacesPathsPatterns) { + if (pattern.startsWith('!')) { + const pathToRemove = path.join(rootPath, pattern.slice(1), 'package.json'); + workspaceProjectsPaths = workspaceProjectsPaths.filter(p => p !== pathToRemove); + } + } + + return workspaceProjectsPaths; +} + +export async function copyWorkspacePackages(rootPath: string): Promise { + const workspaceProjects = await getWorkspaceProjects(rootPath); + + for (const project of workspaceProjects.values()) { + const dest = path.resolve(rootPath, 'node_modules', project.name); + + // Remove the symlink + await unlink(dest); + // Copy in the package + await copyDirectory(project.path, dest); + } +} + +async function getWorkspaceProjects(rootPath: string) { + const projectPaths = getProjectPaths(rootPath, {}); + const projects = await getProjects(rootPath, projectPaths); + + for (const [key, project] of projects.entries()) { + if (!project.isWorkspaceProject) { + projects.delete(key); + } + } + + return projects; +} + +function packagesFromGlobPattern({ pattern, rootPath }: { pattern: string; rootPath: string }) { + const globOptions = { + cwd: rootPath, + + // Should throw in case of unusual errors when reading the file system + strict: true, + + // Always returns absolute paths for matched files + absolute: true, + + // Do not match ** against multiple filenames + // (This is only specified because we currently don't have a need for it.) + noglobstar: true, + }; + + return glob(path.join(pattern, 'package.json'), globOptions); +} diff --git a/packages/kbn-pm/yarn.lock b/packages/kbn-pm/yarn.lock deleted file mode 100644 index c9bf49572df53..0000000000000 --- a/packages/kbn-pm/yarn.lock +++ /dev/null @@ -1,3853 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@mrmlnc/readdir-enhanced@^2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" - dependencies: - call-me-maybe "^1.0.1" - glob-to-regexp "^0.3.0" - -"@types/cmd-shim@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/cmd-shim/-/cmd-shim-2.0.0.tgz#c3d81d3c2a51af3c65c19b4f1d493a75abf07a5c" - -"@types/cp-file@*": - version "4.2.0" - resolved "https://registry.yarnpkg.com/@types/cp-file/-/cp-file-4.2.0.tgz#2b12186b50dad407b11021284627bdf4adb87a87" - -"@types/cpy@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@types/cpy/-/cpy-5.1.0.tgz#ced20cbae8528031ae5478f1d0fe4bca2518eda7" - dependencies: - "@types/cp-file" "*" - "@types/glob" "*" - -"@types/dedent@^0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@types/dedent/-/dedent-0.7.0.tgz#155f339ca404e6dd90b9ce46a3f78fd69ca9b050" - -"@types/del@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/del/-/del-3.0.0.tgz#1c8cd8b6e38da3b572352ca8eaf5527931426288" - dependencies: - "@types/glob" "*" - -"@types/events@*": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@types/events/-/events-1.1.0.tgz#93b1be91f63c184450385272c47b6496fd028e02" - -"@types/execa@^0.8.1": - version "0.8.1" - resolved "https://registry.yarnpkg.com/@types/execa/-/execa-0.8.1.tgz#0a9398c7661015c7d6c8e09d1f0a4018d5002f6e" - dependencies: - "@types/node" "*" - -"@types/getopts@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/getopts/-/getopts-2.0.0.tgz#8a603370cb367d3192bd8012ad39ab2320b5b476" - -"@types/glob@*", "@types/glob@^5.0.35": - version "5.0.35" - resolved "https://registry.yarnpkg.com/@types/glob/-/glob-5.0.35.tgz#1ae151c802cece940443b5ac246925c85189f32a" - dependencies: - "@types/events" "*" - "@types/minimatch" "*" - "@types/node" "*" - -"@types/globby@^6.1.0": - version "6.1.0" - resolved "https://registry.yarnpkg.com/@types/globby/-/globby-6.1.0.tgz#7c25b975512a89effea2a656ca8cf6db7fb29d11" - dependencies: - "@types/glob" "*" - -"@types/has-ansi@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/has-ansi/-/has-ansi-3.0.0.tgz#636403dc4e0b2649421c4158e5c404416f3f0330" - -"@types/indent-string@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/indent-string/-/indent-string-3.0.0.tgz#9ebb391ceda548926f5819ad16405349641b999f" - -"@types/jest@^23.3.1": - version "23.3.1" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-23.3.1.tgz#a4319aedb071d478e6f407d1c4578ec8156829cf" - -"@types/lodash.clonedeepwith@^4.5.3": - version "4.5.3" - resolved "https://registry.yarnpkg.com/@types/lodash.clonedeepwith/-/lodash.clonedeepwith-4.5.3.tgz#8057f074de743bdcff59fdbf26cd04c674a186cc" - dependencies: - "@types/lodash" "*" - -"@types/lodash@*": - version "4.14.104" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.104.tgz#53ee2357fa2e6e68379341d92eb2ecea4b11bb80" - -"@types/log-symbols@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/log-symbols/-/log-symbols-2.0.0.tgz#7919e2ec3c8d13879bfdcab310dd7a3f7fc9466d" - -"@types/minimatch@*": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" - -"@types/mkdirp@^0.5.2": - version "0.5.2" - resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-0.5.2.tgz#503aacfe5cc2703d5484326b1b27efa67a339c1f" - dependencies: - "@types/node" "*" - -"@types/node@*": - version "9.4.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.6.tgz#d8176d864ee48753d053783e4e463aec86b8d82e" - -"@types/node@^8.9.4": - version "8.9.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-8.9.4.tgz#dfd327582a06c114eb6e0441fa3d6fab35edad48" - -"@types/normalize-package-data@*": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" - -"@types/ora@^1.3.2": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@types/ora/-/ora-1.3.2.tgz#ded29aeec023deaa1e56b99cb51234954f35a7cd" - dependencies: - "@types/node" "*" - -"@types/read-pkg@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/read-pkg/-/read-pkg-3.0.0.tgz#17ab6f0b396a58a5567ee387f558f2caedc8ae53" - dependencies: - "@types/normalize-package-data" "*" - -"@types/strip-ansi@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/strip-ansi/-/strip-ansi-3.0.0.tgz#9b63d453a6b54aa849182207711a08be8eea48ae" - -"@types/strong-log-transformer@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/strong-log-transformer/-/strong-log-transformer-1.0.0.tgz#47b0c9fe1f0c997ed4239746e633e8e36fc836ac" - dependencies: - "@types/node" "*" - -"@types/tempy@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@types/tempy/-/tempy-0.1.0.tgz#8ba0339dcd5abb554f301683dc3396d153ec5bfd" - -"@types/wrap-ansi@^2.0.14": - version "2.0.14" - resolved "https://registry.yarnpkg.com/@types/wrap-ansi/-/wrap-ansi-2.0.14.tgz#5afbdd8374de9ff8ad752cb03ab9f225f7c2ee24" - -"@types/write-pkg@^3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@types/write-pkg/-/write-pkg-3.1.0.tgz#f58767f4fb9a6a3ad8e95d3e9cd1f2d026ceab26" - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -acorn-dynamic-import@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" - dependencies: - acorn "^4.0.3" - -acorn@^4.0.3: - version "4.0.13" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" - -acorn@^5.0.0: - version "5.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102" - -ajv-keywords@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.1.0.tgz#ac2b27939c543e95d2c06e7f7f5c27be4aa543be" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ajv@^6.1.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.1.1.tgz#978d597fbc2b7d0e5a5c3ddeb149a682f2abfa0e" - dependencies: - fast-deep-equal "^1.0.0" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.3.0" - -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" - dependencies: - color-convert "^1.9.0" - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - dependencies: - color-convert "^1.9.0" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - dependencies: - arr-flatten "^1.0.1" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - -arr-flatten@^1.0.1, arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - -array-union@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - dependencies: - array-uniq "^1.0.1" - -array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - -arrify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - -asn1.js@^4.0.0: - version "4.10.1" - resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -assert@^1.1.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" - dependencies: - util "0.10.3" - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -async@^2.1.2: - version "2.6.0" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.0.tgz#61a29abb6fcc026fea77e56d1c6ec53a795951f4" - dependencies: - lodash "^4.14.0" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -atob@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.0.3.tgz#19c7a760473774468f20b2d2d03372ad7d4cbf5d" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws4@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.0" - debug "^2.6.8" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.7" - slash "^1.0.0" - source-map "^0.5.6" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-loader@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126" - dependencies: - find-cache-dir "^1.0.0" - loader-utils "^1.0.2" - mkdirp "^0.5.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-async-generators@^6.5.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-generator-functions@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-async-to-generator@^6.22.0, babel-plugin-transform-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-exponentiation-operator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-preset-env@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^2.1.2" - invariant "^2.2.2" - semver "^5.3.0" - -babel-preset-stage-3@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395" - dependencies: - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-generator-functions "^6.24.1" - babel-plugin-transform-async-to-generator "^6.24.1" - babel-plugin-transform-exponentiation-operator "^6.24.1" - babel-plugin-transform-object-rest-spread "^6.22.0" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -base64-js@^1.0.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.3.tgz#fb13668233d9614cf5fb4bce95a9ba4096cdf801" - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -big.js@^3.1.3: - version "3.2.0" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: - version "4.11.8" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -braces@^2.3.0, braces@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.1.tgz#7086c913b4e5a08dbe37ac0ee6a2500c4ba691bb" - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - define-property "^1.0.0" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - kind-of "^6.0.2" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -brorand@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - -browserify-aes@^1.0.0, browserify-aes@^1.0.4: - version "1.1.1" - resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.1.1.tgz#38b7ab55edb806ff2dcda1a7f1620773a477c49f" - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -browserify-cipher@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a" - dependencies: - browserify-aes "^1.0.4" - browserify-des "^1.0.0" - evp_bytestokey "^1.0.0" - -browserify-des@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd" - dependencies: - cipher-base "^1.0.1" - des.js "^1.0.0" - inherits "^2.0.1" - -browserify-rsa@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" - dependencies: - bn.js "^4.1.0" - randombytes "^2.0.1" - -browserify-sign@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" - dependencies: - bn.js "^4.1.1" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.2" - elliptic "^6.0.0" - inherits "^2.0.1" - parse-asn1 "^5.0.0" - -browserify-zlib@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" - dependencies: - pako "~1.0.5" - -browserslist@^2.1.2: - version "2.11.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2" - dependencies: - caniuse-lite "^1.0.30000792" - electron-to-chromium "^1.3.30" - -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" - -buffer@^4.3.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" - dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" - isarray "^1.0.0" - -builtin-modules@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -builtin-status-codes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" - -byline@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/byline/-/byline-5.0.0.tgz#741c5216468eadc457b03410118ad77de8c1ddb1" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -call-me-maybe@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" - -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - -camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - -caniuse-lite@^1.0.30000792: - version "1.0.30000810" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000810.tgz#47585fffce0e9f3593a6feea4673b945424351d9" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796" - dependencies: - ansi-styles "^3.2.0" - escape-string-regexp "^1.0.5" - supports-color "^5.2.0" - -chalk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chokidar@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - dependencies: - restore-cursor "^2.0.0" - -cli-spinners@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-1.1.0.tgz#f1847b168844d917a671eb9d147e3df497c90d06" - -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - -cliui@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - wrap-ansi "^2.0.0" - -cmd-shim@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-2.0.2.tgz#6fcbda99483a8fd15d7d30a196ca69d688a2efdb" - dependencies: - graceful-fs "^4.1.2" - mkdirp "~0.5.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" - dependencies: - delayed-stream "~1.0.0" - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - -component-emitter@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -concat-stream@^1.4.7: - version "1.6.0" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" - dependencies: - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - -console-browserify@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" - dependencies: - date-now "^0.1.4" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -constants-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" - -convert-source-map@^1.5.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - -core-js@^2.4.0, core-js@^2.5.0: - version "2.5.3" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e" - -core-util-is@1.0.2, core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cp-file@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cp-file/-/cp-file-5.0.0.tgz#bc700fd30ca32d24d46c7fb02b992e435fc5a978" - dependencies: - graceful-fs "^4.1.2" - make-dir "^1.0.0" - nested-error-stacks "^2.0.0" - pify "^3.0.0" - safe-buffer "^5.0.1" - -cpy@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cpy/-/cpy-6.0.0.tgz#0b6888e037bb5a7b02a62249551316208a523253" - dependencies: - arrify "^1.0.1" - cp-file "^5.0.0" - globby "^6.0.0" - nested-error-stacks "^2.0.0" - -create-ecdh@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d" - dependencies: - bn.js "^4.1.0" - elliptic "^6.0.0" - -create-hash@^1.1.0, create-hash@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.3.tgz#606042ac8b9262750f483caddab0f5819172d8fd" - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - ripemd160 "^2.0.0" - sha.js "^2.4.0" - -create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: - version "1.1.6" - resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.6.tgz#acb9e221a4e17bdb076e90657c42b93e3726cf06" - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -cross-spawn@^5.0.1: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -crypto-browserify@^3.11.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" - dependencies: - browserify-cipher "^1.0.0" - browserify-sign "^4.0.0" - create-ecdh "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.0" - diffie-hellman "^5.0.0" - inherits "^2.0.1" - pbkdf2 "^3.0.3" - public-encrypt "^4.0.0" - randombytes "^2.0.0" - randomfill "^1.0.3" - -crypto-random-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" - -d@1: - version "1.0.0" - resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" - dependencies: - es5-ext "^0.10.9" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -date-now@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" - -debug@^2.2.0, debug@^2.3.3, debug@^2.6.8: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -decamelize@^1.0.0, decamelize@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -del@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/del/-/del-3.0.0.tgz#53ecf699ffcbcb39637691ab13baf160819766e5" - dependencies: - globby "^6.1.0" - is-path-cwd "^1.0.0" - is-path-in-cwd "^1.0.0" - p-map "^1.1.1" - pify "^3.0.0" - rimraf "^2.2.8" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -des.js@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" - dependencies: - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - dependencies: - repeating "^2.0.0" - -detect-indent@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" - -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - -diffie-hellman@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" - dependencies: - bn.js "^4.1.0" - miller-rabin "^4.0.0" - randombytes "^2.0.0" - -dir-glob@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034" - dependencies: - arrify "^1.0.1" - path-type "^3.0.0" - -domain-browser@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" - -duplexer@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -electron-to-chromium@^1.3.30: - version "1.3.33" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.33.tgz#bf00703d62a7c65238136578c352d6c5c042a545" - -elliptic@^6.0.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" - dependencies: - bn.js "^4.4.0" - brorand "^1.0.1" - hash.js "^1.0.0" - hmac-drbg "^1.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.0" - -emojis-list@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" - -enhanced-resolve@^3.0.0, enhanced-resolve@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.4.0" - object-assign "^4.0.1" - tapable "^0.2.7" - -errno@^0.1.3: - version "0.1.7" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" - dependencies: - prr "~1.0.1" - -error-ex@^1.2.0, error-ex@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" - dependencies: - is-arrayish "^0.2.1" - -es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: - version "0.10.39" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.39.tgz#fca21b67559277ca4ac1a1ed7048b107b6f76d87" - dependencies: - es6-iterator "~2.0.3" - es6-symbol "~3.1.1" - -es6-iterator@^2.0.1, es6-iterator@~2.0.1, es6-iterator@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-map@^0.1.3: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-set "~0.1.5" - es6-symbol "~3.1.1" - event-emitter "~0.3.5" - -es6-set@~0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-symbol "3.1.1" - event-emitter "~0.3.5" - -es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" - dependencies: - d "1" - es5-ext "~0.10.14" - -es6-weak-map@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" - dependencies: - d "1" - es5-ext "^0.10.14" - es6-iterator "^2.0.1" - es6-symbol "^3.1.1" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -escope@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" - dependencies: - es6-map "^0.1.3" - es6-weak-map "^2.0.1" - esrecurse "^4.1.0" - estraverse "^4.1.1" - -esrecurse@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163" - dependencies: - estraverse "^4.1.0" - object-assign "^4.0.1" - -estraverse@^4.1.0, estraverse@^4.1.1: - version "4.2.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -event-emitter@~0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" - dependencies: - d "1" - es5-ext "~0.10.14" - -events@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" - -evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - -execa@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.9.0.tgz#adb7ce62cf985071f60580deb4a88b9e34712d01" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - dependencies: - is-posix-bracket "^0.1.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - dependencies: - fill-range "^2.1.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - dependencies: - is-extglob "^1.0.0" - -extglob@^2.0.2, extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - -extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - -fast-deep-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff" - -fast-glob@^2.0.2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.0.4.tgz#a4b9f49e36175f5ef1a3456f580226a6e7abcc9e" - dependencies: - "@mrmlnc/readdir-enhanced" "^2.2.1" - glob-parent "3.1.0" - merge2 "1.2.1" - micromatch "3.1.5" - -fast-json-stable-stringify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - -fill-range@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^1.1.3" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -find-cache-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f" - dependencies: - commondir "^1.0.1" - make-dir "^1.0.0" - pkg-dir "^2.0.0" - -find-up@^2.0.0, find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - dependencies: - locate-path "^2.0.0" - -for-in@^1.0.1, for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - dependencies: - for-in "^1.0.1" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - dependencies: - map-cache "^0.2.2" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8" - dependencies: - nan "^2.3.0" - node-pre-gyp "^0.6.39" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -get-caller-file@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - -getopts@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/getopts/-/getopts-2.0.0.tgz#e9119f3e79d22d0685b77fbe78d5cd6e19ca1af0" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob-to-regexp@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" - -glob@^7.0.3, glob@^7.0.5, glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -globby@^6.0.0, globby@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" - dependencies: - array-union "^1.0.1" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -globby@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/globby/-/globby-8.0.1.tgz#b5ad48b8aa80b35b814fc1281ecc851f1d2b5b50" - dependencies: - array-union "^1.0.1" - dir-glob "^2.0.0" - fast-glob "^2.0.2" - glob "^7.1.2" - ignore "^3.3.5" - pify "^3.0.0" - slash "^1.0.0" - -graceful-fs@^4.1.11, graceful-fs@^4.1.2: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-ansi@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-3.0.0.tgz#36077ef1d15f333484aa7fa77a28606f1c655b37" - dependencies: - ansi-regex "^3.0.0" - -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -hash-base@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1" - dependencies: - inherits "^2.0.1" - -hash-base@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -hash.js@^1.0.0, hash.js@^1.0.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.0" - -hawk@3.1.3, hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hmac-drbg@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -hosted-git-info@^2.1.4: - version "2.5.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -https-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" - -ieee754@^1.1.4: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" - -ignore@^3.3.5: - version "3.3.7" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - -indent-string@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - -indexof@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -inherits@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" - -ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -interpret@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" - -invariant@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.3.tgz#1a827dfde7dcbd7c323f0ca826be8fa7c5e9d688" - dependencies: - loose-envify "^1.0.0" - -invert-kv@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - dependencies: - kind-of "^6.0.0" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-builtin-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" - dependencies: - builtin-modules "^1.0.0" - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - dependencies: - kind-of "^6.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - -is-extglob@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - dependencies: - is-extglob "^1.0.0" - -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - dependencies: - is-extglob "^2.1.0" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - -is-odd@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-2.0.0.tgz#7646624671fd7ea558ccd9a2795182f2958f1b24" - dependencies: - is-number "^4.0.0" - -is-path-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" - -is-path-in-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" - dependencies: - is-path-inside "^1.0.0" - -is-path-inside@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" - dependencies: - path-is-inside "^1.0.1" - -is-plain-obj@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - -is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - dependencies: - isobject "^3.0.1" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - -isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json-loader@^0.5.4: - version "0.5.7" - resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" - -json-parse-better-errors@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz#50183cd1b2d25275de069e9e71b467ac9eab973a" - -json-schema-traverse@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -json5@^0.5.0, json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" - -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - -lazy-cache@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-2.0.2.tgz#b9190a4f913354694840859f8a8f7084d8822264" - dependencies: - set-getter "^0.1.0" - -lcid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" - dependencies: - invert-kv "^1.0.0" - -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - -load-json-file@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" - dependencies: - graceful-fs "^4.1.2" - parse-json "^4.0.0" - pify "^3.0.0" - strip-bom "^3.0.0" - -loader-runner@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" - -loader-utils@^1.0.2, loader-utils@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" - dependencies: - big.js "^3.1.3" - emojis-list "^2.0.0" - json5 "^0.5.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -lodash.clonedeepwith@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeepwith/-/lodash.clonedeepwith-4.5.0.tgz#6ee30573a03a1a60d670a62ef33c10cf1afdbdd4" - -lodash@^4, lodash@^4.14.0, lodash@^4.17.4: - version "4.17.5" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" - -log-symbols@^2.1.0, log-symbols@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - dependencies: - chalk "^2.0.1" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -loose-envify@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -lru-cache@^4.0.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -make-dir@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.2.0.tgz#6d6a49eead4aae296c53bbf3a1a008bd6c89469b" - dependencies: - pify "^3.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - dependencies: - object-visit "^1.0.0" - -md5.js@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -mem@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" - dependencies: - mimic-fn "^1.0.0" - -memory-fs@^0.4.0, memory-fs@~0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" - dependencies: - errno "^0.1.3" - readable-stream "^2.0.1" - -merge2@1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.2.1.tgz#271d2516ff52d4af7f7b710b8bf3e16e183fef66" - -micromatch@3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.5.tgz#d05e168c206472dfbca985bfef4f57797b4cd4ba" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.0" - define-property "^1.0.0" - extend-shallow "^2.0.1" - extglob "^2.0.2" - fragment-cache "^0.2.1" - kind-of "^6.0.0" - nanomatch "^1.2.5" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -micromatch@^3.1.4: - version "3.1.6" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.6.tgz#8d7c043b48156f408ca07a4715182b79b99420bf" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" - dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" - -mime-db@~1.33.0: - version "1.33.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.18" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" - dependencies: - mime-db "~1.33.0" - -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - -minimalistic-assert@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" - -minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.1.0.tgz#99df657a52574c21c9057497df742790b2b4c0de" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -mixin-deep@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -"mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@~0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -moment@^2.6.0: - version "2.20.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.20.1.tgz#d6eb1a46cbcc14a2b2f9434112c1ff8907f313fd" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -nan@^2.3.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.8.0.tgz#ed715f3fe9de02b57a5e6252d90a96675e1f085a" - -nanomatch@^1.2.5, nanomatch@^1.2.9: - version "1.2.9" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.9.tgz#879f7150cb2dab7a471259066c104eee6e0fa7c2" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-odd "^2.0.0" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -nested-error-stacks@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/nested-error-stacks/-/nested-error-stacks-2.0.0.tgz#98b2ffaefb4610fa3936f1e71435d30700de2840" - dependencies: - inherits "~2.0.1" - -node-libs-browser@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.1.0.tgz#5f94263d404f6e44767d726901fff05478d600df" - dependencies: - assert "^1.1.1" - browserify-zlib "^0.2.0" - buffer "^4.3.0" - console-browserify "^1.1.0" - constants-browserify "^1.0.0" - crypto-browserify "^3.11.0" - domain-browser "^1.1.1" - events "^1.0.0" - https-browserify "^1.0.0" - os-browserify "^0.3.0" - path-browserify "0.0.0" - process "^0.11.10" - punycode "^1.2.4" - querystring-es3 "^0.2.0" - readable-stream "^2.3.3" - stream-browserify "^2.0.1" - stream-http "^2.7.2" - string_decoder "^1.0.0" - timers-browserify "^2.0.4" - tty-browserify "0.0.0" - url "^0.11.0" - util "^0.10.3" - vm-browserify "0.0.4" - -node-pre-gyp@^0.6.39: - version "0.6.39" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649" - dependencies: - detect-libc "^1.0.2" - hawk "3.1.3" - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.0.2" - rc "^1.1.7" - request "2.81.0" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-package-data@^2.3.2: - version "2.4.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" - dependencies: - hosted-git-info "^2.1.4" - is-builtin-module "^1.0.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -oauth-sign@~0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^4.0.1, object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - dependencies: - isobject "^3.0.0" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - dependencies: - isobject "^3.0.1" - -once@^1.3.0, once@^1.3.3: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - dependencies: - mimic-fn "^1.0.0" - -ora@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-1.4.0.tgz#884458215b3a5d4097592285f93321bb7a79e2e5" - dependencies: - chalk "^2.1.0" - cli-cursor "^2.1.0" - cli-spinners "^1.0.1" - log-symbols "^2.1.0" - -os-browserify@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-locale@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" - dependencies: - execa "^0.7.0" - lcid "^1.0.0" - mem "^1.1.0" - -os-shim@^0.1.2: - version "0.1.3" - resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" - -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -p-limit@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" - dependencies: - p-try "^1.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - dependencies: - p-limit "^1.1.0" - -p-map@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.2.0.tgz#e4e94f311eabbc8633a1e79908165fca26241b6b" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - -pako@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" - -parse-asn1@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" - dependencies: - asn1.js "^4.0.0" - browserify-aes "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.0" - pbkdf2 "^3.0.3" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - dependencies: - error-ex "^1.2.0" - -parse-json@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" - dependencies: - error-ex "^1.3.1" - json-parse-better-errors "^1.0.1" - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - -path-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-is-inside@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - -path-key@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - dependencies: - pify "^2.0.0" - -path-type@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" - dependencies: - pify "^3.0.0" - -pbkdf2@^3.0.3: - version "3.0.14" - resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.14.tgz#a35e13c64799b06ce15320f459c230e68e73bade" - dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -pify@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - -pkg-dir@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" - dependencies: - find-up "^2.1.0" - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - -prettier@^1.14.0: - version "1.14.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.14.0.tgz#847c235522035fd988100f1f43cf20a7d24f9372" - -private@^0.1.6, private@^0.1.7: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -process@^0.11.10: - version "0.11.10" - resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" - -prr@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - -public-encrypt@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6" - dependencies: - bn.js "^4.1.0" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - parse-asn1 "^5.0.0" - randombytes "^2.0.1" - -punycode@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" - -punycode@^1.2.4, punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -querystring-es3@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" - -querystring@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" - -randomatic@^1.1.3: - version "1.1.7" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" - dependencies: - safe-buffer "^5.1.0" - -randomfill@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" - dependencies: - randombytes "^2.0.5" - safe-buffer "^5.1.0" - -rc@^1.1.7: - version "1.2.5" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.5.tgz#275cd687f6e3b36cc756baa26dfee80a790301fd" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - -read-pkg@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" - dependencies: - load-json-file "^4.0.0" - normalize-package-data "^2.3.2" - path-type "^3.0.0" - -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.2, readable-stream@^2.3.3: - version "2.3.4" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.4.tgz#c946c3f47fa7d8eabc0b6150f4a12f69a4574071" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - dependencies: - is-equal-shallow "^0.1.3" - -regex-not@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -request@2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - -require-main-filename@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - dependencies: - onetime "^2.0.0" - signal-exit "^3.0.2" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - -rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" - dependencies: - hash-base "^2.0.0" - inherits "^2.0.1" - -rxjs@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.2.1.tgz#246cebec189a6cbc143a3ef9f62d6f4c91813ca1" - dependencies: - tslib "^1.9.0" - -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - dependencies: - ret "~0.1.10" - -"semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -set-blocking@^2.0.0, set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-getter@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/set-getter/-/set-getter-0.1.0.tgz#d769c182c9d5a51f409145f2fba82e5e86e80376" - dependencies: - to-object-path "^0.3.0" - -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -set-value@^0.4.3: - version "0.4.3" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.1" - to-object-path "^0.3.0" - -set-value@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setimmediate@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - -sha.js@^2.4.0, sha.js@^2.4.8: - version "2.4.10" - resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.10.tgz#b1fde5cd7d11a5626638a07c604ab909cfa31f9b" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0, signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.1.tgz#e12b5487faded3e3dea0ac91e9400bf75b401370" - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^2.0.0" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -sort-keys@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128" - dependencies: - is-plain-obj "^1.0.0" - -source-list-map@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085" - -source-map-resolve@^0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.1.tgz#7ad0f593f2281598e854df80f19aae4b92d7a11a" - dependencies: - atob "^2.0.0" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - -source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - -spawn-sync@^1.0.15: - version "1.0.15" - resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476" - dependencies: - concat-stream "^1.4.7" - os-shim "^0.1.2" - -spdx-correct@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" - dependencies: - spdx-license-ids "^1.0.2" - -spdx-expression-parse@~1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" - -spdx-license-ids@^1.0.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - dependencies: - extend-shallow "^3.0.0" - -sshpk@^1.7.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -stream-browserify@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" - dependencies: - inherits "~2.0.1" - readable-stream "^2.0.2" - -stream-http@^2.7.2: - version "2.8.0" - resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.0.tgz#fd86546dac9b1c91aff8fc5d287b98fafb41bc10" - dependencies: - builtin-status-codes "^3.0.0" - inherits "^2.0.1" - readable-stream "^2.3.3" - to-arraybuffer "^1.0.0" - xtend "^4.0.0" - -string-replace-loader@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string-replace-loader/-/string-replace-loader-1.3.0.tgz#1d404a7bf5e2ec21b08ffc76d89445fbe49bc01d" - dependencies: - loader-utils "^1.1.0" - lodash "^4" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string-width@^2.0.0, string-width@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string_decoder@^1.0.0, string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -stringstream@~0.0.4: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - dependencies: - ansi-regex "^3.0.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -strong-log-transformer@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/strong-log-transformer/-/strong-log-transformer-1.0.6.tgz#f7fb93758a69a571140181277eea0c2eb1301fa3" - dependencies: - byline "^5.0.0" - duplexer "^0.1.1" - minimist "^0.1.0" - moment "^2.6.0" - through "^2.3.4" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^4.2.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" - dependencies: - has-flag "^2.0.0" - -supports-color@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.2.0.tgz#b0d5333b1184dd3666cbe5aa0b45c5ac7ac17a4a" - dependencies: - has-flag "^3.0.0" - -supports-color@^5.3.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" - dependencies: - has-flag "^3.0.0" - -tapable@^0.2.7: - version "0.2.8" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" - -tar-pack@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -temp-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d" - -tempy@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/tempy/-/tempy-0.2.1.tgz#9038e4dbd1c201b74472214179bc2c6f7776e54c" - dependencies: - temp-dir "^1.0.0" - unique-string "^1.0.0" - -through@^2.3.4: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - -timers-browserify@^2.0.4: - version "2.0.6" - resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.6.tgz#241e76927d9ca05f4d959819022f5b3664b64bae" - dependencies: - setimmediate "^1.0.4" - -to-arraybuffer@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.1.tgz#15358bee4a2c83bd76377ba1dc049d0f18837aae" - dependencies: - define-property "^0.2.5" - extend-shallow "^2.0.1" - regex-not "^1.0.0" - -tough-cookie@~2.3.0: - version "2.3.3" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561" - dependencies: - punycode "^1.4.1" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - -ts-loader@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-3.5.0.tgz#151d004dcddb4cf8e381a3bf9d6b74c2d957a9c0" - dependencies: - chalk "^2.3.0" - enhanced-resolve "^3.0.0" - loader-utils "^1.0.2" - micromatch "^3.1.4" - semver "^5.0.1" - -tslib@^1.9.0, tslib@^1.9.3: - version "1.9.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" - -tty-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - -typescript@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.3.tgz#4853b3e275ecdaa27f78fda46dc273a7eb7fc1c8" - -uglify-js@^2.8.29: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" - dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -uglifyjs-webpack-plugin@^0.4.6: - version "0.4.6" - resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz#b951f4abb6bd617e66f63eb891498e391763e309" - dependencies: - source-map "^0.5.6" - uglify-js "^2.8.29" - webpack-sources "^1.0.1" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - -union-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^0.4.3" - -unique-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" - dependencies: - crypto-random-string "^1.0.0" - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - -url@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" - dependencies: - punycode "1.3.2" - querystring "0.2.0" - -use@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/use/-/use-2.0.2.tgz#ae28a0d72f93bf22422a18a2e379993112dec8e8" - dependencies: - define-property "^0.2.5" - isobject "^3.0.0" - lazy-cache "^2.0.2" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -util@0.10.3, util@^0.10.3: - version "0.10.3" - resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" - dependencies: - inherits "2.0.1" - -uuid@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" - -validate-npm-package-license@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" - dependencies: - spdx-correct "~1.0.0" - spdx-expression-parse "~1.0.0" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -vm-browserify@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" - dependencies: - indexof "0.0.1" - -watchpack@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.4.0.tgz#4a1472bcbb952bd0a9bb4036801f954dfb39faac" - dependencies: - async "^2.1.2" - chokidar "^1.7.0" - graceful-fs "^4.1.2" - -webpack-sources@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.1.0.tgz#a101ebae59d6507354d71d8013950a3a8b7a5a54" - dependencies: - source-list-map "^2.0.0" - source-map "~0.6.1" - -webpack@^3.11.0: - version "3.11.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.11.0.tgz#77da451b1d7b4b117adaf41a1a93b5742f24d894" - dependencies: - acorn "^5.0.0" - acorn-dynamic-import "^2.0.0" - ajv "^6.1.0" - ajv-keywords "^3.1.0" - async "^2.1.2" - enhanced-resolve "^3.4.0" - escope "^3.6.0" - interpret "^1.0.0" - json-loader "^0.5.4" - json5 "^0.5.1" - loader-runner "^2.3.0" - loader-utils "^1.1.0" - memory-fs "~0.4.1" - mkdirp "~0.5.0" - node-libs-browser "^2.0.0" - source-map "^0.5.3" - supports-color "^4.2.1" - tapable "^0.2.7" - uglifyjs-webpack-plugin "^0.4.6" - watchpack "^1.4.0" - webpack-sources "^1.0.1" - yargs "^8.0.2" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - -wrap-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - -wrap-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-3.0.1.tgz#288a04d87eda5c286e060dfe8f135ce8d007f8ba" - dependencies: - string-width "^2.1.1" - strip-ansi "^4.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -write-file-atomic@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" - dependencies: - graceful-fs "^4.1.11" - imurmurhash "^0.1.4" - signal-exit "^3.0.2" - -write-json-file@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-2.3.0.tgz#2b64c8a33004d54b8698c76d585a77ceb61da32f" - dependencies: - detect-indent "^5.0.0" - graceful-fs "^4.1.2" - make-dir "^1.0.0" - pify "^3.0.0" - sort-keys "^2.0.0" - write-file-atomic "^2.0.0" - -write-pkg@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/write-pkg/-/write-pkg-3.1.0.tgz#030a9994cc9993d25b4e75a9f1a1923607291ce9" - dependencies: - sort-keys "^2.0.0" - write-json-file "^2.2.0" - -xtend@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -y18n@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - -yargs-parser@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" - dependencies: - camelcase "^4.1.0" - -yargs@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" - dependencies: - camelcase "^4.1.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^2.0.0" - read-pkg-up "^2.0.0" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^2.0.0" - which-module "^2.0.0" - y18n "^3.2.1" - yargs-parser "^7.0.0" - -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" diff --git a/packages/kbn-system-loader/package.json b/packages/kbn-system-loader/package.json index c436a8b6cc451..6e6c0eeaeac5c 100644 --- a/packages/kbn-system-loader/package.json +++ b/packages/kbn-system-loader/package.json @@ -3,16 +3,8 @@ "version": "1.0.0", "license": "Apache-2.0", "private": true, - "main": "target/index.js", - "typings": "target/index.d.ts", - "scripts": { - "build": "tsc", - "kbn:bootstrap": "yarn build" - }, - "devDependencies": { - "@types/jest": "^23.3.1", - "typescript": "^3.0.3" - }, + "main": "src/index.js", + "typings": "src/index.d.ts", "dependencies": { "tslib": "^1.9.3" } diff --git a/packages/kbn-system-loader/yarn.lock b/packages/kbn-system-loader/yarn.lock deleted file mode 100644 index c11d44a742123..0000000000000 --- a/packages/kbn-system-loader/yarn.lock +++ /dev/null @@ -1,15 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@types/jest@^23.3.1": - version "23.3.1" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-23.3.1.tgz#a4319aedb071d478e6f407d1c4578ec8156829cf" - -tslib@^1.9.3: - version "1.9.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" - -typescript@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.3.tgz#4853b3e275ecdaa27f78fda46dc273a7eb7fc1c8" diff --git a/packages/kbn-test-subj-selector/yarn.lock b/packages/kbn-test-subj-selector/yarn.lock deleted file mode 100644 index d608375475719..0000000000000 --- a/packages/kbn-test-subj-selector/yarn.lock +++ /dev/null @@ -1,107 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -commander@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-0.6.1.tgz#fa68a14f6a945d54dbbe50d8cdb3320e9e3b1a06" - -commander@2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.3.0.tgz#fd430e889832ec353b9acd1de217c11cb3eef873" - -debug@2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" - dependencies: - ms "0.7.1" - -diff@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-1.4.0.tgz#7f28d2eb9ee7b15a97efd89ce63dcfdaa3ccbabf" - -escape-string-regexp@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz#4dbc2fe674e71949caf3fb2695ce7f2dc1d9a8d1" - -expect.js@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/expect.js/-/expect.js-0.3.1.tgz#b0a59a0d2eff5437544ebf0ceaa6015841d09b5b" - -glob@3.2.11: - version "3.2.11" - resolved "https://registry.yarnpkg.com/glob/-/glob-3.2.11.tgz#4a973f635b9190f715d10987d5c00fd2815ebe3d" - dependencies: - inherits "2" - minimatch "0.3" - -growl@1.9.2: - version "1.9.2" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" - -inherits@2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -jade@0.26.3: - version "0.26.3" - resolved "https://registry.yarnpkg.com/jade/-/jade-0.26.3.tgz#8f10d7977d8d79f2f6ff862a81b0513ccb25686c" - dependencies: - commander "0.6.1" - mkdirp "0.3.0" - -lru-cache@2: - version "2.7.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952" - -minimatch@0.3: - version "0.3.0" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-0.3.0.tgz#275d8edaac4f1bb3326472089e7949c8394699dd" - dependencies: - lru-cache "2" - sigmund "~1.0.0" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -mkdirp@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" - -mkdirp@0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -mocha@^2.3.4: - version "2.5.3" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-2.5.3.tgz#161be5bdeb496771eb9b35745050b622b5aefc58" - dependencies: - commander "2.3.0" - debug "2.2.0" - diff "1.4.0" - escape-string-regexp "1.0.2" - glob "3.2.11" - growl "1.9.2" - jade "0.26.3" - mkdirp "0.5.1" - supports-color "1.2.0" - to-iso-string "0.0.2" - -ms@0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" - -sigmund@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590" - -supports-color@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-1.2.0.tgz#ff1ed1e61169d06b3cf2d588e188b18d8847e17e" - -to-iso-string@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/to-iso-string/-/to-iso-string-0.0.2.tgz#4dc19e664dfccbe25bd8db508b00c6da158255d1" diff --git a/packages/kbn-test/package.json b/packages/kbn-test/package.json index dd0c39f59d503..773add70b6923 100644 --- a/packages/kbn-test/package.json +++ b/packages/kbn-test/package.json @@ -10,13 +10,14 @@ "kbn:watch": "yarn build --watch" }, "devDependencies": { - "@kbn/babel-preset": "link:../kbn-babel-preset", - "@kbn/dev-utils": "link:../kbn-dev-utils", + "@kbn/babel-preset": "1.0.0", + "@kbn/dev-utils": "1.0.0", "babel-cli": "^6.26.0" }, "dependencies": { "chalk": "^2.4.1", "dedent": "^0.7.0", + "del": "^3.0.0", "getopts": "^2.0.6", "glob": "^7.1.2", "rxjs": "^6.2.1", diff --git a/packages/kbn-test/src/es/es_test_cluster.js b/packages/kbn-test/src/es/es_test_cluster.js index 20bee8f1f0468..b6d4a4490acb7 100644 --- a/packages/kbn-test/src/es/es_test_cluster.js +++ b/packages/kbn-test/src/es/es_test_cluster.js @@ -23,10 +23,10 @@ import { get } from 'lodash'; import toPath from 'lodash/internal/toPath'; import { Cluster } from '@kbn/es'; import { esTestConfig } from './es_test_config'; -import { rmrfSync } from './rmrf_sync'; import { KIBANA_ROOT } from '../'; import elasticsearch from 'elasticsearch'; const path = require('path'); +const del = require('del'); export function createEsTestCluster(options = {}) { const { @@ -58,7 +58,7 @@ export function createEsTestCluster(options = {}) { const second = 1000; const minute = second * 60; - return esFrom === 'snapshot' ? minute : minute * 6; + return esFrom === 'snapshot' ? 3 * minute : 6 * minute; } async start(esArgs = []) { @@ -91,7 +91,7 @@ export function createEsTestCluster(options = {}) { async cleanup() { await this.stop(); - rmrfSync(config.installPath); + await del(config.installPath, { force: true }); log.info('[es] cleanup complete'); } diff --git a/packages/kbn-test/src/es/rmrf_sync.js b/packages/kbn-test/src/es/rmrf_sync.js deleted file mode 100644 index 51cd8369f397c..0000000000000 --- a/packages/kbn-test/src/es/rmrf_sync.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import * as fs from 'fs'; - -/** - * Recursive deletion for a directory - * - * @param {String} path - */ -export function rmrfSync(path) { - if (fs.existsSync(path)) { - fs.readdirSync(path).forEach(file => { - const curPath = path + '/' + file; - - if (fs.lstatSync(curPath).isDirectory()) { - rmrfSync(curPath); - } else { - fs.unlinkSync(curPath); - } - }); - fs.rmdirSync(path); - } -} diff --git a/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/args.test.js.snap b/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/args.test.js.snap index 04122fbf55f95..93d129213ff02 100644 --- a/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/args.test.js.snap +++ b/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/args.test.js.snap @@ -16,6 +16,8 @@ Options: --bail Stop the test run at the first failure. --grep Pattern to select which tests to run. --updateBaselines Replace baseline screenshots with whatever is generated from the test. + --include-tag Tags that suites must include to be run, can be included multiple times. + --exclude-tag Tags that suites must NOT include to be run, can be included multiple times. --verbose Log everything. --debug Run in debug mode. --quiet Only log errors. @@ -29,6 +31,10 @@ Object { ], "createLogger": [Function], "extraKbnOpts": undefined, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, "updateBaselines": true, } `; @@ -41,6 +47,10 @@ Object { "createLogger": [Function], "debug": true, "extraKbnOpts": undefined, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -52,6 +62,10 @@ Object { ], "createLogger": [Function], "extraKbnOpts": undefined, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -67,6 +81,10 @@ Object { "extraKbnOpts": Object { "server.foo": "bar", }, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -78,6 +96,10 @@ Object { "createLogger": [Function], "extraKbnOpts": undefined, "quiet": true, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -89,6 +111,10 @@ Object { "createLogger": [Function], "extraKbnOpts": undefined, "silent": true, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -100,6 +126,10 @@ Object { "createLogger": [Function], "esFrom": "source", "extraKbnOpts": undefined, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -111,6 +141,10 @@ Object { "createLogger": [Function], "extraKbnOpts": undefined, "installDir": "foo", + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -122,6 +156,10 @@ Object { "createLogger": [Function], "extraKbnOpts": undefined, "grep": "management", + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, } `; @@ -132,6 +170,10 @@ Object { ], "createLogger": [Function], "extraKbnOpts": undefined, + "suiteTags": Object { + "exclude": Array [], + "include": Array [], + }, "verbose": true, } `; diff --git a/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/cli.test.js.snap b/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/cli.test.js.snap index 854415c734e0f..6d4b35f754b42 100644 --- a/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/cli.test.js.snap +++ b/packages/kbn-test/src/functional_tests/cli/run_tests/__snapshots__/cli.test.js.snap @@ -16,6 +16,8 @@ Options: --bail Stop the test run at the first failure. --grep Pattern to select which tests to run. --updateBaselines Replace baseline screenshots with whatever is generated from the test. + --include-tag Tags that suites must include to be run, can be included multiple times. + --exclude-tag Tags that suites must NOT include to be run, can be included multiple times. --verbose Log everything. --debug Run in debug mode. --quiet Only log errors. diff --git a/packages/kbn-test/src/functional_tests/cli/run_tests/args.js b/packages/kbn-test/src/functional_tests/cli/run_tests/args.js index c03649a1167eb..6aa1e1aa5c31b 100644 --- a/packages/kbn-test/src/functional_tests/cli/run_tests/args.js +++ b/packages/kbn-test/src/functional_tests/cli/run_tests/args.js @@ -44,6 +44,14 @@ const options = { updateBaselines: { desc: 'Replace baseline screenshots with whatever is generated from the test.', }, + 'include-tag': { + arg: '', + desc: 'Tags that suites must include to be run, can be included multiple times.', + }, + 'exclude-tag': { + arg: '', + desc: 'Tags that suites must NOT include to be run, can be included multiple times.', + }, verbose: { desc: 'Log everything.' }, debug: { desc: 'Run in debug mode.' }, quiet: { desc: 'Only log errors.' }, @@ -98,6 +106,13 @@ export function processOptions(userOptions, defaultConfigPaths) { delete userOptions['kibana-install-dir']; } + userOptions.suiteTags = { + include: [].concat(userOptions['include-tag'] || []), + exclude: [].concat(userOptions['exclude-tag'] || []), + }; + delete userOptions['include-tag']; + delete userOptions['exclude-tag']; + function createLogger() { return new ToolingLog({ level: pickLevelFromFlags(userOptions), @@ -115,7 +130,9 @@ export function processOptions(userOptions, defaultConfigPaths) { function validateOptions(userOptions) { Object.entries(userOptions).forEach(([key, val]) => { - if (key === '_') return; + if (key === '_' || key === 'suiteTags') { + return; + } // Validate flags passed if (options[key] === undefined) { diff --git a/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js b/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js index d0a3160018fea..d0cc7091d7767 100644 --- a/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js +++ b/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js @@ -25,12 +25,15 @@ import { setupUsers, DEFAULT_SUPERUSER_PASS } from './auth'; export async function runElasticsearch({ config, options }) { const { log, esFrom } = options; - const isOss = config.get('esTestCluster.license') === 'oss'; + const license = config.get('esTestCluster.license'); + const isTrialLicense = config.get('esTestCluster.license') === 'trial'; const cluster = createEsTestCluster({ port: config.get('servers.elasticsearch.port'), - password: !isOss ? DEFAULT_SUPERUSER_PASS : config.get('servers.elasticsearch.password'), - license: config.get('esTestCluster.license'), + password: isTrialLicense + ? DEFAULT_SUPERUSER_PASS + : config.get('servers.elasticsearch.password'), + license, log, basePath: resolve(KIBANA_ROOT, '.es'), esFrom: esFrom || config.get('esTestCluster.from'), @@ -40,7 +43,7 @@ export async function runElasticsearch({ config, options }) { await cluster.start(esArgs); - if (!isOss) { + if (isTrialLicense) { await setupUsers(log, config); } diff --git a/packages/kbn-test/src/functional_tests/lib/run_ftr.js b/packages/kbn-test/src/functional_tests/lib/run_ftr.js index 6fe02ec39d9a4..779286212f5c7 100644 --- a/packages/kbn-test/src/functional_tests/lib/run_ftr.js +++ b/packages/kbn-test/src/functional_tests/lib/run_ftr.js @@ -20,7 +20,10 @@ import { createFunctionalTestRunner } from '../../../../../src/functional_test_runner'; import { CliError } from './run_cli'; -export async function runFtr({ configPath, options: { log, bail, grep, updateBaselines } }) { +export async function runFtr({ + configPath, + options: { log, bail, grep, updateBaselines, suiteTags }, +}) { const ftr = createFunctionalTestRunner({ log, configFile: configPath, @@ -30,6 +33,7 @@ export async function runFtr({ configPath, options: { log, bail, grep, updateBas grep, }, updateBaselines, + suiteTags, }, }); diff --git a/packages/kbn-test/yarn.lock b/packages/kbn-test/yarn.lock deleted file mode 100644 index 941eca6869018..0000000000000 --- a/packages/kbn-test/yarn.lock +++ /dev/null @@ -1,1689 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@kbn/babel-preset@link:../kbn-babel-preset": - version "0.0.0" - uid "" - -"@kbn/dev-utils@link:../kbn-dev-utils": - version "0.0.0" - uid "" - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - dependencies: - color-convert "^1.9.0" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - dependencies: - arr-flatten "^1.0.1" - -arr-flatten@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -babel-cli@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" - dependencies: - babel-core "^6.26.0" - babel-polyfill "^6.26.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - commander "^2.11.0" - convert-source-map "^1.5.0" - fs-readdir-recursive "^1.0.0" - glob "^7.1.2" - lodash "^4.17.4" - output-file-sync "^1.1.2" - path-is-absolute "^1.0.1" - slash "^1.0.0" - source-map "^0.5.6" - v8flags "^2.1.1" - optionalDependencies: - chokidar "^1.6.1" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@^6.26.0: - version "6.26.3" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.1" - debug "^2.6.9" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.8" - slash "^1.0.0" - source-map "^0.5.7" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-builder-react-jsx@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - esutils "^2.0.2" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-add-module-exports@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-async-generators@^6.5.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" - -babel-plugin-syntax-class-properties@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-flow@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" - -babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" - -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-generator-functions@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-class-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" - dependencies: - babel-helper-function-name "^6.24.1" - babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-define@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-define/-/babel-plugin-transform-define-1.3.0.tgz#94c5f9459c810c738cc7c50cbd44a31829d6f319" - dependencies: - lodash "4.17.4" - traverse "0.6.6" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.2" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-flow-strip-types@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" - dependencies: - babel-plugin-syntax-flow "^6.18.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-react-display-name@^6.23.0: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-self@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz#df6d80a9da2612a121e6ddd7558bcbecf06e636e" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-source@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" - dependencies: - babel-helper-builder-react-jsx "^6.24.1" - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" - dependencies: - babel-runtime "^6.26.0" - core-js "^2.5.0" - regenerator-runtime "^0.10.5" - -babel-preset-env@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.4.0.tgz#c8e02a3bcc7792f23cded68e0355b9d4c28f0f7a" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^1.4.0" - invariant "^2.2.2" - -babel-preset-flow@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" - dependencies: - babel-plugin-transform-flow-strip-types "^6.22.0" - -babel-preset-react@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" - dependencies: - babel-plugin-syntax-jsx "^6.3.13" - babel-plugin-transform-react-display-name "^6.23.0" - babel-plugin-transform-react-jsx "^6.24.1" - babel-plugin-transform-react-jsx-self "^6.22.0" - babel-plugin-transform-react-jsx-source "^6.22.0" - babel-preset-flow "^6.23.0" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -bl@^1.0.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.2.tgz#a160911717103c07410cef63ef51b397c025af9c" - dependencies: - readable-stream "^2.3.5" - safe-buffer "^5.1.1" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -browserslist@^1.4.0: - version "1.7.7" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" - dependencies: - caniuse-db "^1.0.30000639" - electron-to-chromium "^1.2.7" - -buffer-alloc-unsafe@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.1.tgz#ffe1f67551dd055737de253337bfe853dfab1a6a" - -buffer-alloc@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.1.0.tgz#05514d33bf1656d3540c684f65b1202e90eca303" - dependencies: - buffer-alloc-unsafe "^0.1.0" - buffer-fill "^0.1.0" - -buffer-fill@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-0.1.1.tgz#76d825c4d6e50e06b7a31eb520c04d08cc235071" - -caniuse-db@^1.0.30000639: - version "1.0.30000836" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000836.tgz#788b6c8f6f02991743b18cdbbd54f96d05b4b95a" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chokidar@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -chownr@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -commander@^2.11.0: - version "2.15.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -convert-source-map@^1.5.0, convert-source-map@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" - -core-js@^2.4.0, core-js@^2.5.0: - version "2.5.6" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.6.tgz#0fe6d45bf3cac3ac364a9d72de7576f4eb221b9d" - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -debug@^2.1.2, debug@^2.6.8, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - -deep-extend@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.5.1.tgz#b894a9dd90d3023fbf1c55a394fb858eb2066f1f" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - dependencies: - repeating "^2.0.0" - -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - -electron-to-chromium@^1.2.7: - version "1.3.45" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.45.tgz#458ac1b1c5c760ce8811a16d2bfbd97ec30bafb8" - -end-of-stream@^1.0.0, end-of-stream@^1.1.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" - dependencies: - once "^1.4.0" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -execa@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" - dependencies: - cross-spawn "^6.0.0" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - dependencies: - is-posix-bracket "^0.1.0" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - dependencies: - fill-range "^2.1.0" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - dependencies: - is-extglob "^1.0.0" - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - -fill-range@^2.1.0: - version "2.2.4" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^3.0.0" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -for-in@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - dependencies: - for-in "^1.0.1" - -fs-constants@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" - -fs-minipass@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" - dependencies: - minipass "^2.2.1" - -fs-readdir-recursive@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.0.0: - version "1.2.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.3.tgz#08292982e7059f6674c93d8b829c1e8604979ac0" - dependencies: - nan "^2.9.2" - node-pre-gyp "^0.9.0" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -getopts@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/getopts/-/getopts-2.0.6.tgz#4788d533a977527e79efd57b5e742ffa0dd33105" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob@^7.0.5, glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -graceful-fs@^4.1.2, graceful-fs@^4.1.4: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -iconv-lite@^0.4.4: - version "0.4.23" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" - dependencies: - safer-buffer ">= 2.1.2 < 3" - -ignore-walk@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" - dependencies: - minimatch "^3.0.4" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -invariant@^2.2.2: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - dependencies: - loose-envify "^1.0.0" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - dependencies: - is-extglob "^1.0.0" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -kind-of@^3.0.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^6.0.0: - version "6.0.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" - -lodash@4.17.4: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -lodash@^4.17.4: - version "4.17.10" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" - -loose-envify@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -math-random@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -minipass@^2.2.1, minipass@^2.2.4: - version "2.3.0" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.0.tgz#2e11b1c46df7fe7f1afbe9a490280add21ffe384" - dependencies: - safe-buffer "^5.1.1" - yallist "^3.0.0" - -minizlib@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" - dependencies: - minipass "^2.2.1" - -mkdirp@^0.5.0, mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -moment@^2.20.1: - version "2.22.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.1.tgz#529a2e9bf973f259c9643d237fda84de3a26e8ad" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -nan@^2.9.2: - version "2.10.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" - -needle@^2.2.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.1.tgz#b5e325bd3aae8c2678902fa296f729455d1d3a7d" - dependencies: - debug "^2.1.2" - iconv-lite "^0.4.4" - sax "^1.2.4" - -nice-try@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" - -node-pre-gyp@^0.9.0: - version "0.9.1" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.9.1.tgz#f11c07516dd92f87199dbc7e1838eab7cd56c9e0" - dependencies: - detect-libc "^1.0.2" - mkdirp "^0.5.1" - needle "^2.2.0" - nopt "^4.0.1" - npm-packlist "^1.1.6" - npmlog "^4.0.2" - rc "^1.1.7" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^4" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -npm-bundled@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.3.tgz#7e71703d973af3370a9591bafe3a63aca0be2308" - -npm-packlist@^1.1.6: - version "1.1.10" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.10.tgz#1039db9e985727e464df066f4cf0ab6ef85c398a" - dependencies: - ignore-walk "^3.0.1" - npm-bundled "^1.0.1" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -once@^1.3.0, once@^1.3.1, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -output-file-sync@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" - dependencies: - graceful-fs "^4.1.4" - mkdirp "^0.5.1" - object-assign "^4.1.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - -private@^0.1.6, private@^0.1.8: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -pump@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.3.tgz#5dfe8311c33bbf6fc18261f9f34702c47c08a954" - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -randomatic@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923" - dependencies: - is-number "^4.0.0" - kind-of "^6.0.0" - math-random "^1.0.1" - -rc@^1.1.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.7.tgz#8a10ca30d588d00464360372b890d06dacd02297" - dependencies: - deep-extend "^0.5.1" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -readable-stream@^2.0.0, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.3.5: - version "2.3.6" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - dependencies: - is-equal-shallow "^0.1.3" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -rxjs@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.2.1.tgz#246cebec189a6cbc143a3ef9f62d6f4c91813ca1" - dependencies: - tslib "^1.9.0" - -safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - -"safer-buffer@>= 2.1.2 < 3": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - -sax@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - -semver@^5.3.0, semver@^5.5.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map@^0.5.6, source-map@^0.5.7: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^5.3.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" - dependencies: - has-flag "^3.0.0" - -tar-fs@^1.16.2: - version "1.16.2" - resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-1.16.2.tgz#17e5239747e399f7e77344f5f53365f04af53577" - dependencies: - chownr "^1.0.1" - mkdirp "^0.5.1" - pump "^1.0.0" - tar-stream "^1.1.2" - -tar-stream@^1.1.2: - version "1.6.0" - resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.0.tgz#a50efaa7b17760b82c27b3cae4a301a8254a5715" - dependencies: - bl "^1.0.0" - buffer-alloc "^1.1.0" - end-of-stream "^1.0.0" - fs-constants "^1.0.0" - readable-stream "^2.0.0" - to-buffer "^1.1.0" - xtend "^4.0.0" - -tar@^4: - version "4.4.2" - resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.2.tgz#60685211ba46b38847b1ae7ee1a24d744a2cd462" - dependencies: - chownr "^1.0.1" - fs-minipass "^1.2.5" - minipass "^2.2.4" - minizlib "^1.1.0" - mkdirp "^0.5.0" - safe-buffer "^5.1.2" - yallist "^3.0.2" - -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - dependencies: - os-tmpdir "~1.0.2" - -to-buffer@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -traverse@0.6.6: - version "0.6.6" - resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" - -tree-kill@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - -tslib@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.1.tgz#a5d1f0532a49221c87755cfcc89ca37197242ba7" - -tslib@^1.9.3: - version "1.9.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -v8flags@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - dependencies: - user-home "^1.1.1" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -xtend@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -yallist@^3.0.0, yallist@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" - -zlib@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/zlib/-/zlib-1.0.5.tgz#6e7c972fc371c645a6afb03ab14769def114fcc0" diff --git a/packages/kbn-ui-framework/dist/ui_framework.css b/packages/kbn-ui-framework/dist/ui_framework.css index 928c41497a547..a05df90d8f947 100644 --- a/packages/kbn-ui-framework/dist/ui_framework.css +++ b/packages/kbn-ui-framework/dist/ui_framework.css @@ -2213,7 +2213,8 @@ main { -ms-flex-align: center; align-items: center; padding-left: 10px; - /* 1 */ } + /* 1 */ + height: 100%; } .kuiLocalBreadcrumb { font-size: 14px; @@ -2685,6 +2686,8 @@ main { -ms-flex-pack: justify; justify-content: space-between; min-height: 29px; + /* 1 */ + line-height: 29px; /* 1 */ } .kuiLocalNavRow__section { @@ -2719,7 +2722,7 @@ main { display: -ms-flexbox; display: flex; width: 100%; - margin-bottom: 10px; } + margin-bottom: 8px; } .kuiLocalSearchInput { -webkit-appearance: none; diff --git a/packages/kbn-ui-framework/package.json b/packages/kbn-ui-framework/package.json index a778f036a65ac..a2ac3316a380d 100644 --- a/packages/kbn-ui-framework/package.json +++ b/packages/kbn-ui-framework/package.json @@ -17,7 +17,7 @@ "dependencies": { "classnames": "2.2.5", "focus-trap-react": "^3.1.1", - "lodash": "3.10.1", + "lodash": "npm:@elastic/lodash@3.10.1-kibana1", "prop-types": "15.5.8", "react": "^16.2.0", "react-ace": "^5.9.0", @@ -31,7 +31,7 @@ }, "devDependencies": { "@elastic/eui": "0.0.23", - "@kbn/babel-preset": "link:../kbn-babel-preset", + "@kbn/babel-preset": "1.0.0", "autoprefixer": "6.5.4", "babel-core": "6.21.0", "babel-loader": "7.1.2", @@ -70,6 +70,6 @@ "webpack": "3.6.0", "webpack-dev-server": "2.9.1", "yeoman-generator": "1.1.1", - "yo": "2.0.0" + "yo": "2.0.3" } } diff --git a/packages/kbn-ui-framework/src/components/local_nav/_local_breadcrumbs.scss b/packages/kbn-ui-framework/src/components/local_nav/_local_breadcrumbs.scss index b6a732b0e51a1..94186c39d3692 100644 --- a/packages/kbn-ui-framework/src/components/local_nav/_local_breadcrumbs.scss +++ b/packages/kbn-ui-framework/src/components/local_nav/_local_breadcrumbs.scss @@ -6,6 +6,7 @@ display: flex; align-items: center; padding-left: $localNavSideSpacing; /* 1 */ + height: 100%; } .kuiLocalBreadcrumb { diff --git a/packages/kbn-ui-framework/src/components/local_nav/_local_nav.scss b/packages/kbn-ui-framework/src/components/local_nav/_local_nav.scss index 54ae35593b6cc..c5d7421addf2e 100644 --- a/packages/kbn-ui-framework/src/components/local_nav/_local_nav.scss +++ b/packages/kbn-ui-framework/src/components/local_nav/_local_nav.scss @@ -28,6 +28,7 @@ align-items: stretch; justify-content: space-between; min-height: 29px; /* 1 */ + line-height: 29px; /* 1 */ } .kuiLocalNavRow__section { diff --git a/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss b/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss index f1f4ba2dfcf50..10e9a8a847aa3 100644 --- a/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss +++ b/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss @@ -1,7 +1,7 @@ .kuiLocalSearch { display: flex; width: 100%; - margin-bottom: 10px; + margin-bottom: 8px; } .kuiLocalSearchInput { diff --git a/packages/kbn-ui-framework/yarn.lock b/packages/kbn-ui-framework/yarn.lock deleted file mode 100644 index 1e56d3ddcc536..0000000000000 --- a/packages/kbn-ui-framework/yarn.lock +++ /dev/null @@ -1,7673 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@elastic/eui@0.0.23": - version "0.0.23" - resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-0.0.23.tgz#01a3d88aeaff175da5d42b70d407d08a32783f3d" - dependencies: - brace "^0.10.0" - classnames "^2.2.5" - core-js "^2.5.1" - focus-trap-react "^3.0.4" - highlight.js "^9.12.0" - html "^1.0.0" - jquery "^3.2.1" - keymirror "^0.1.1" - lodash "^3.10.1" - numeral "^2.0.6" - prop-types "^15.6.0" - react-ace "^5.5.0" - react-color "^2.13.8" - serve "^6.3.1" - tabbable "^1.1.0" - uuid "^3.1.0" - -"@kbn/babel-preset@link:../kbn-babel-preset": - version "0.0.0" - uid "" - -"@sinonjs/formatio@^2.0.0": - version "2.0.0" - resolved "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" - dependencies: - samsam "1.3.0" - -"@zeit/check-updates@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@zeit/check-updates/-/check-updates-1.1.0.tgz#d0f65026a36f27cd1fd54c647d8294447c1d2d8b" - dependencies: - chalk "2.3.0" - ms "2.1.1" - update-notifier "2.3.0" - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -accepts@~1.3.4: - version "1.3.5" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2" - dependencies: - mime-types "~2.1.18" - negotiator "0.6.1" - -acorn-dynamic-import@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" - dependencies: - acorn "^4.0.3" - -acorn@^4.0.3: - version "4.0.13" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" - -acorn@^5.0.0: - version "5.5.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.5.3.tgz#f473dd47e0277a08e28e9bec5aeeb04751f0b8c9" - -address@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/address/-/address-1.0.3.tgz#b5f50631f8d6cec8bd20c963963afb55e06cbce9" - -aggregate-error@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-1.0.0.tgz#888344dad0220a72e3af50906117f48771925fac" - dependencies: - clean-stack "^1.0.0" - indent-string "^3.0.0" - -ajv-keywords@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ajv@^5.0.0, ajv@^5.1.0, ajv@^5.1.5: - version "5.5.2" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" - dependencies: - co "^4.6.0" - fast-deep-equal "^1.0.0" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.3.0" - -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - -alphanum-sort@^1.0.1, alphanum-sort@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" - -amdefine@>=0.0.4: - version "1.0.1" - resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" - -ansi-align@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" - dependencies: - string-width "^2.0.0" - -ansi-escapes@^1.1.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" - -ansi-escapes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92" - -ansi-html@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.0.0, ansi-styles@^3.1.0, ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - dependencies: - color-convert "^1.9.0" - -ansi@^0.3.0, ansi@~0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/ansi/-/ansi-0.3.1.tgz#0c42d4fb17160d5a9af1e484bace1c66922c1b21" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -anymatch@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" - dependencies: - micromatch "^3.1.4" - normalize-path "^2.1.1" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -arch@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/arch/-/arch-2.1.0.tgz#3613aa46149064b3c1f0607919bf1d4786e82889" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -argparse@^1.0.2, argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - dependencies: - sprintf-js "~1.0.2" - -args@3.0.8: - version "3.0.8" - resolved "https://registry.yarnpkg.com/args/-/args-3.0.8.tgz#2f425ab639c69d74ff728f3d7c6e93b97b91af7c" - dependencies: - camelcase "4.1.0" - chalk "2.1.0" - mri "1.1.0" - pkginfo "0.4.1" - string-similarity "1.2.0" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - dependencies: - arr-flatten "^1.0.1" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - -arr-flatten@^1.0.1, arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - -array-differ@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-1.0.0.tgz#eff52e3758249d33be402b8bb8e564bb2b5d4031" - -array-find-index@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - -array-flatten@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.1.tgz#426bb9da84090c1838d812c8150af20a8331e296" - -array-includes@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" - dependencies: - define-properties "^1.1.2" - es-abstract "^1.7.0" - -array-union@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - dependencies: - array-uniq "^1.0.1" - -array-uniq@^1.0.0, array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - -arrify@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - -asap@~2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - -asn1.js@^4.0.0: - version "4.10.1" - resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -assert@^1.1.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" - dependencies: - util "0.10.3" - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - -ast-types@0.9.6: - version "0.9.6" - resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.6.tgz#102c9e9e9005d3e7e3829bf0c4fa24ee862ee9b9" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -async-foreach@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" - -async@^1.4.0, async@^1.4.2, async@^1.5.2, async@~1.5.2: - version "1.5.2" - resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" - -async@^2.0.0, async@^2.1.2, async@^2.1.4, async@^2.1.5: - version "2.6.0" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.0.tgz#61a29abb6fcc026fea77e56d1c6ec53a795951f4" - dependencies: - lodash "^4.14.0" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -atob@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.0.3.tgz#19c7a760473774468f20b2d2d03372ad7d4cbf5d" - -autoprefixer@6.5.4: - version "6.5.4" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.5.4.tgz#1386eb6708ccff36aefff70adc694ecfd60af1b0" - dependencies: - browserslist "~1.4.0" - caniuse-db "^1.0.30000597" - normalize-range "^0.1.2" - num2fraction "^1.2.2" - postcss "^5.2.6" - postcss-value-parser "^3.2.3" - -autoprefixer@^6.3.1: - version "6.7.7" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.7.7.tgz#1dbd1c835658e35ce3f9984099db00585c782014" - dependencies: - browserslist "^1.7.6" - caniuse-db "^1.0.30000634" - normalize-range "^0.1.2" - num2fraction "^1.2.2" - postcss "^5.2.16" - postcss-value-parser "^3.2.3" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - -aws4@^1.2.1, aws4@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" - -babel-code-frame@^6.11.0, babel-code-frame@^6.20.0, babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@6.21.0: - version "6.21.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.21.0.tgz#75525480c21c803f826ef3867d22c19f080a3724" - dependencies: - babel-code-frame "^6.20.0" - babel-generator "^6.21.0" - babel-helpers "^6.16.0" - babel-messages "^6.8.0" - babel-register "^6.18.0" - babel-runtime "^6.20.0" - babel-template "^6.16.0" - babel-traverse "^6.21.0" - babel-types "^6.21.0" - babylon "^6.11.0" - convert-source-map "^1.1.0" - debug "^2.1.1" - json5 "^0.5.0" - lodash "^4.2.0" - minimatch "^3.0.2" - path-is-absolute "^1.0.0" - private "^0.1.6" - slash "^1.0.0" - source-map "^0.5.0" - -babel-core@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.0" - debug "^2.6.8" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.7" - slash "^1.0.0" - source-map "^0.5.6" - -babel-generator@^6.21.0, babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-builder-react-jsx@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - esutils "^2.0.2" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.16.0, babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-loader@7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126" - dependencies: - find-cache-dir "^1.0.0" - loader-utils "^1.0.2" - mkdirp "^0.5.1" - -babel-messages@^6.23.0, babel-messages@^6.8.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-add-module-exports@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-async-generators@^6.5.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" - -babel-plugin-syntax-class-properties@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-flow@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" - -babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" - -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-generator-functions@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-generators "^6.5.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-class-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" - dependencies: - babel-helper-function-name "^6.24.1" - babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-define@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-define/-/babel-plugin-transform-define-1.3.0.tgz#94c5f9459c810c738cc7c50cbd44a31829d6f319" - dependencies: - lodash "4.17.4" - traverse "0.6.6" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-flow-strip-types@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" - dependencies: - babel-plugin-syntax-flow "^6.18.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-react-display-name@^6.23.0: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-self@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz#df6d80a9da2612a121e6ddd7558bcbecf06e636e" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-source@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" - dependencies: - babel-helper-builder-react-jsx "^6.24.1" - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@6.20.0: - version "6.20.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.20.0.tgz#de4a371006139e20990aac0be367d398331204e7" - dependencies: - babel-runtime "^6.20.0" - core-js "^2.4.0" - regenerator-runtime "^0.10.0" - -babel-preset-env@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.4.0.tgz#c8e02a3bcc7792f23cded68e0355b9d4c28f0f7a" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^1.4.0" - invariant "^2.2.2" - -babel-preset-flow@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" - dependencies: - babel-plugin-transform-flow-strip-types "^6.22.0" - -babel-preset-react@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" - dependencies: - babel-plugin-syntax-jsx "^6.3.13" - babel-plugin-transform-react-display-name "^6.23.0" - babel-plugin-transform-react-jsx "^6.24.1" - babel-plugin-transform-react-jsx-self "^6.22.0" - babel-plugin-transform-react-jsx-source "^6.22.0" - babel-preset-flow "^6.23.0" - -babel-register@^6.18.0, babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.21.0, babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.21.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.11.0, babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -balanced-match@^0.4.2: - version "0.4.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -base64-js@^1.0.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.3.tgz#fb13668233d9614cf5fb4bce95a9ba4096cdf801" - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -basic-auth@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.0.tgz#015db3f353e02e56377755f962742e8981e7bbba" - dependencies: - safe-buffer "5.1.1" - -batch@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -big.js@^3.1.3: - version "3.2.0" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" - -bin-version-check@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/bin-version-check/-/bin-version-check-2.1.0.tgz#e4e5df290b9069f7d111324031efc13fdd11a5b0" - dependencies: - bin-version "^1.0.0" - minimist "^1.1.0" - semver "^4.0.3" - semver-truncate "^1.0.0" - -bin-version@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/bin-version/-/bin-version-1.0.4.tgz#9eb498ee6fd76f7ab9a7c160436f89579435d78e" - dependencies: - find-versions "^1.0.0" - -binary-extensions@^1.0.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" - -binaryextensions@2: - version "2.1.1" - resolved "https://registry.yarnpkg.com/binaryextensions/-/binaryextensions-2.1.1.tgz#3209a51ca4a4ad541a3b8d3d6a6d5b83a2485935" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -bluebird@3.5.1: - version "3.5.1" - resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" - -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: - version "4.11.8" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" - -body-parser@1.18.2: - version "1.18.2" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454" - dependencies: - bytes "3.0.0" - content-type "~1.0.4" - debug "2.6.9" - depd "~1.1.1" - http-errors "~1.6.2" - iconv-lite "0.4.19" - on-finished "~2.3.0" - qs "6.5.1" - raw-body "2.3.2" - type-is "~1.6.15" - -bonjour@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/bonjour/-/bonjour-3.5.0.tgz#8e890a183d8ee9a2393b3844c691a42bcf7bc9f5" - dependencies: - array-flatten "^2.1.0" - deep-equal "^1.0.1" - dns-equal "^1.0.0" - dns-txt "^2.0.2" - multicast-dns "^6.0.1" - multicast-dns-service-types "^1.1.0" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -boom@4.x.x: - version "4.3.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-4.3.1.tgz#4f8a3005cb4a7e3889f749030fd25b96e01d2e31" - dependencies: - hoek "4.x.x" - -boom@5.x.x: - version "5.2.0" - resolved "https://registry.yarnpkg.com/boom/-/boom-5.2.0.tgz#5dd9da6ee3a5f302077436290cb717d3f4a54e02" - dependencies: - hoek "4.x.x" - -boxen@1.3.0, boxen@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" - dependencies: - ansi-align "^2.0.0" - camelcase "^4.0.0" - chalk "^2.0.1" - cli-boxes "^1.0.0" - string-width "^2.0.0" - term-size "^1.2.0" - widest-line "^2.0.0" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace@0.10.0, brace@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/brace/-/brace-0.10.0.tgz#edef4eb9b0928ba1ee5f717ffc157749a6dd5d76" - dependencies: - w3c-blob "0.0.1" - -brace@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/brace/-/brace-0.11.1.tgz#4896fcc9d544eef45f4bb7660db320d3b379fe58" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -braces@^2.3.0, braces@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.1.tgz#7086c913b4e5a08dbe37ac0ee6a2500c4ba691bb" - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - define-property "^1.0.0" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - kind-of "^6.0.2" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -brorand@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - -browserify-aes@^1.0.0, browserify-aes@^1.0.4: - version "1.1.1" - resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.1.1.tgz#38b7ab55edb806ff2dcda1a7f1620773a477c49f" - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -browserify-cipher@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a" - dependencies: - browserify-aes "^1.0.4" - browserify-des "^1.0.0" - evp_bytestokey "^1.0.0" - -browserify-des@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd" - dependencies: - cipher-base "^1.0.1" - des.js "^1.0.0" - inherits "^2.0.1" - -browserify-rsa@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" - dependencies: - bn.js "^4.1.0" - randombytes "^2.0.1" - -browserify-sign@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" - dependencies: - bn.js "^4.1.1" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.2" - elliptic "^6.0.0" - inherits "^2.0.1" - parse-asn1 "^5.0.0" - -browserify-zlib@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" - dependencies: - pako "~1.0.5" - -browserslist@^1.3.6, browserslist@^1.4.0, browserslist@^1.5.2, browserslist@^1.7.6: - version "1.7.7" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" - dependencies: - caniuse-db "^1.0.30000639" - electron-to-chromium "^1.2.7" - -browserslist@~1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.4.0.tgz#9cfdcf5384d9158f5b70da2aa00b30e8ff019049" - dependencies: - caniuse-db "^1.0.30000539" - -buffer-indexof@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-indexof/-/buffer-indexof-1.1.1.tgz#52fabcc6a606d1a00302802648ef68f639da268c" - -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" - -buffer@^4.3.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" - dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" - isarray "^1.0.0" - -builtin-modules@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -builtin-status-codes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" - -bytes@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -camel-case@3.0.x: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" - dependencies: - no-case "^2.2.0" - upper-case "^1.1.1" - -camelcase-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" - dependencies: - camelcase "^2.0.0" - map-obj "^1.0.0" - -camelcase@4.1.0, camelcase@^4.0.0, camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - -camelcase@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" - -camelcase@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" - -caniuse-api@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-1.6.1.tgz#b534e7c734c4f81ec5fbe8aca2ad24354b962c6c" - dependencies: - browserslist "^1.3.6" - caniuse-db "^1.0.30000529" - lodash.memoize "^4.1.2" - lodash.uniq "^4.5.0" - -caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000539, caniuse-db@^1.0.30000597, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639: - version "1.0.30000813" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000813.tgz#e0a1c603f8880ad787b2a35652b2733f32a5e29a" - -capture-stack-trace@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - -chalk@2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e" - dependencies: - ansi-styles "^3.1.0" - escape-string-regexp "^1.0.5" - supports-color "^4.0.0" - -chalk@2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba" - dependencies: - ansi-styles "^3.1.0" - escape-string-regexp "^1.0.5" - supports-color "^4.0.0" - -chalk@2.3.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3, chalk@~1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chardet@^0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" - -chokidar@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.0.tgz#90c32ad4802901d7713de532dc284e96a63ad058" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -chokidar@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -chokidar@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.2.tgz#4dc65139eeb2714977735b6a35d06e97b494dfd7" - dependencies: - anymatch "^2.0.0" - async-each "^1.0.0" - braces "^2.3.0" - glob-parent "^3.1.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^4.0.0" - normalize-path "^2.1.1" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - upath "^1.0.0" - optionalDependencies: - fsevents "^1.0.0" - -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -clap@^1.0.9: - version "1.2.3" - resolved "https://registry.yarnpkg.com/clap/-/clap-1.2.3.tgz#4f36745b32008492557f46412d66d50cb99bce51" - dependencies: - chalk "^1.1.3" - -class-extend@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/class-extend/-/class-extend-0.1.2.tgz#8057a82b00f53f82a5d62c50ef8cffdec6fabc34" - dependencies: - object-assign "^2.0.0" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -classnames@2.2.5, classnames@^2.2.5: - version "2.2.5" - resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.5.tgz#fb3801d453467649ef3603c7d61a02bd129bde6d" - -clean-css@4.1.x: - version "4.1.11" - resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.1.11.tgz#2ecdf145aba38f54740f26cefd0ff3e03e125d6a" - dependencies: - source-map "0.5.x" - -clean-stack@^1.0.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-1.3.0.tgz#9e821501ae979986c46b1d66d2d432db2fd4ae31" - -cli-boxes@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" - -cli-cursor@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" - dependencies: - restore-cursor "^1.0.1" - -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - dependencies: - restore-cursor "^2.0.0" - -cli-list@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/cli-list/-/cli-list-0.2.0.tgz#7e673ee0dd39a611a486476e53f3c6b3941cb582" - -cli-table@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23" - dependencies: - colors "1.0.3" - -cli-width@^1.0.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-1.1.1.tgz#a4d293ef67ebb7b88d4a4d42c0ccf00c4d1e366d" - -cli-width@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" - -clipboardy@1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-1.2.3.tgz#0526361bf78724c1f20be248d428e365433c07ef" - dependencies: - arch "^2.1.0" - execa "^0.8.0" - -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - -cliui@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - wrap-ansi "^2.0.0" - -clone-buffer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58" - -clone-deep@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-0.3.0.tgz#348c61ae9cdbe0edfe053d91ff4cc521d790ede8" - dependencies: - for-own "^1.0.0" - is-plain-object "^2.0.1" - kind-of "^3.2.2" - shallow-clone "^0.1.2" - -clone-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-1.0.0.tgz#eae0a2413f55c0942f818c229fefce845d7f3b1c" - dependencies: - is-regexp "^1.0.0" - is-supported-regexp-flag "^1.0.0" - -clone-stats@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-0.0.1.tgz#b88f94a82cf38b8791d58046ea4029ad88ca99d1" - -clone-stats@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680" - -clone@^1.0.0, clone@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.3.tgz#298d7e2231660f40c003c2ed3140decf3f53085f" - -clone@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb" - -cloneable-readable@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/cloneable-readable/-/cloneable-readable-1.1.1.tgz#c27a4f3a943ca37bed9b01c7d572ee61b1302b15" - dependencies: - inherits "^2.0.1" - process-nextick-args "^2.0.0" - readable-stream "^2.3.5" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -coa@~1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/coa/-/coa-1.0.4.tgz#a9ef153660d6a86a8bdec0289a5c684d217432fd" - dependencies: - q "^1.1.2" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -coffee-script@~1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/coffee-script/-/coffee-script-1.10.0.tgz#12938bcf9be1948fa006f92e0c4c9e81705108c0" - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.3.0, color-convert@^1.9.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" - dependencies: - color-name "^1.1.1" - -color-name@^1.0.0, color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -color-string@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991" - dependencies: - color-name "^1.0.0" - -color@^0.11.0: - version "0.11.4" - resolved "https://registry.yarnpkg.com/color/-/color-0.11.4.tgz#6d7b5c74fb65e841cd48792ad1ed5e07b904d764" - dependencies: - clone "^1.0.2" - color-convert "^1.3.0" - color-string "^0.3.0" - -colormin@^1.0.5: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colormin/-/colormin-1.1.2.tgz#ea2f7420a72b96881a38aae59ec124a6f7298133" - dependencies: - color "^0.11.0" - css-color-names "0.0.4" - has "^1.0.1" - -colors@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" - -colors@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" - -combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" - dependencies: - delayed-stream "~1.0.0" - -commander@2.14.x, commander@~2.14.1: - version "2.14.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.1.tgz#2235123e37af8ca3c65df45b026dbd357b01b9aa" - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - -component-emitter@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" - -compressible@~2.0.13: - version "2.0.13" - resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.13.tgz#0d1020ab924b2fdb4d6279875c7d6daba6baa7a9" - dependencies: - mime-db ">= 1.33.0 < 2" - -compression@^1.5.2, compression@^1.6.2: - version "1.7.2" - resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.2.tgz#aaffbcd6aaf854b44ebb280353d5ad1651f59a69" - dependencies: - accepts "~1.3.4" - bytes "3.0.0" - compressible "~2.0.13" - debug "2.6.9" - on-headers "~1.0.1" - safe-buffer "5.1.1" - vary "~1.1.2" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -concat-stream@^1.4.7: - version "1.6.1" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.1.tgz#261b8f518301f1d834e36342b9fea095d2620a26" - dependencies: - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - -configstore@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-1.4.0.tgz#c35781d0501d268c25c54b8b17f6240e8a4fb021" - dependencies: - graceful-fs "^4.1.2" - mkdirp "^0.5.0" - object-assign "^4.0.1" - os-tmpdir "^1.0.0" - osenv "^0.1.0" - uuid "^2.0.1" - write-file-atomic "^1.1.2" - xdg-basedir "^2.0.0" - -configstore@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.1.tgz#094ee662ab83fad9917678de114faaea8fcdca90" - dependencies: - dot-prop "^4.1.0" - graceful-fs "^4.1.2" - make-dir "^1.0.0" - unique-string "^1.0.0" - write-file-atomic "^2.0.0" - xdg-basedir "^3.0.0" - -connect-history-api-fallback@^1.3.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz#b06873934bc5e344fef611a196a6faae0aee015a" - -console-browserify@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" - dependencies: - date-now "^0.1.4" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -constants-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" - -content-disposition@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" - -content-type@1.0.4, content-type@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" - -convert-source-map@^1.1.0, convert-source-map@^1.5.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - -cookie@0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - -core-js@^1.0.0: - version "1.2.7" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" - -core-js@^2.4.0, core-js@^2.5.0, core-js@^2.5.1: - version "2.5.3" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e" - -core-util-is@1.0.2, core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -cosmiconfig@^2.1.0, cosmiconfig@^2.1.1: - version "2.2.2" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-2.2.2.tgz#6173cebd56fac042c1f4390edf7af6c07c7cb892" - dependencies: - is-directory "^0.3.1" - js-yaml "^3.4.3" - minimist "^1.2.0" - object-assign "^4.1.0" - os-homedir "^1.0.1" - parse-json "^2.2.0" - require-from-string "^1.1.0" - -create-ecdh@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d" - dependencies: - bn.js "^4.1.0" - elliptic "^6.0.0" - -create-error-class@^3.0.0, create-error-class@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" - dependencies: - capture-stack-trace "^1.0.0" - -create-hash@^1.1.0, create-hash@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.3.tgz#606042ac8b9262750f483caddab0f5819172d8fd" - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - ripemd160 "^2.0.0" - sha.js "^2.4.0" - -create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: - version "1.1.6" - resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.6.tgz#acb9e221a4e17bdb076e90657c42b93e3726cf06" - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -create-react-class@^15.5.1: - version "15.6.3" - resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.3.tgz#2d73237fb3f970ae6ebe011a9e66f46dbca80036" - dependencies: - fbjs "^0.8.9" - loose-envify "^1.3.1" - object-assign "^4.1.1" - -cross-spawn-async@^2.1.1: - version "2.2.5" - resolved "https://registry.yarnpkg.com/cross-spawn-async/-/cross-spawn-async-2.2.5.tgz#845ff0c0834a3ded9d160daca6d390906bb288cc" - dependencies: - lru-cache "^4.0.0" - which "^1.2.8" - -cross-spawn@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" - dependencies: - lru-cache "^4.0.1" - which "^1.2.9" - -cross-spawn@^5.0.1: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -cryptiles@3.x.x: - version "3.1.2" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-3.1.2.tgz#a89fbb220f5ce25ec56e8c4aa8a4fd7b5b0d29fe" - dependencies: - boom "5.x.x" - -crypto-browserify@^3.11.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" - dependencies: - browserify-cipher "^1.0.0" - browserify-sign "^4.0.0" - create-ecdh "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.0" - diffie-hellman "^5.0.0" - inherits "^2.0.1" - pbkdf2 "^3.0.3" - public-encrypt "^4.0.0" - randombytes "^2.0.0" - randomfill "^1.0.3" - -crypto-random-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" - -css-color-names@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" - -css-loader@0.28.7: - version "0.28.7" - resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.28.7.tgz#5f2ee989dd32edd907717f953317656160999c1b" - dependencies: - babel-code-frame "^6.11.0" - css-selector-tokenizer "^0.7.0" - cssnano ">=2.6.1 <4" - icss-utils "^2.1.0" - loader-utils "^1.0.2" - lodash.camelcase "^4.3.0" - object-assign "^4.0.1" - postcss "^5.0.6" - postcss-modules-extract-imports "^1.0.0" - postcss-modules-local-by-default "^1.0.1" - postcss-modules-scope "^1.0.0" - postcss-modules-values "^1.1.0" - postcss-value-parser "^3.3.0" - source-list-map "^2.0.0" - -css-selector-tokenizer@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz#e6988474ae8c953477bf5e7efecfceccd9cf4c86" - dependencies: - cssesc "^0.1.0" - fastparse "^1.1.1" - regexpu-core "^1.0.0" - -cssesc@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-0.1.0.tgz#c814903e45623371a0477b40109aaafbeeaddbb4" - -"cssnano@>=2.6.1 <4": - version "3.10.0" - resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-3.10.0.tgz#4f38f6cea2b9b17fa01490f23f1dc68ea65c1c38" - dependencies: - autoprefixer "^6.3.1" - decamelize "^1.1.2" - defined "^1.0.0" - has "^1.0.1" - object-assign "^4.0.1" - postcss "^5.0.14" - postcss-calc "^5.2.0" - postcss-colormin "^2.1.8" - postcss-convert-values "^2.3.4" - postcss-discard-comments "^2.0.4" - postcss-discard-duplicates "^2.0.1" - postcss-discard-empty "^2.0.1" - postcss-discard-overridden "^0.1.1" - postcss-discard-unused "^2.2.1" - postcss-filter-plugins "^2.0.0" - postcss-merge-idents "^2.1.5" - postcss-merge-longhand "^2.0.1" - postcss-merge-rules "^2.0.3" - postcss-minify-font-values "^1.0.2" - postcss-minify-gradients "^1.0.1" - postcss-minify-params "^1.0.4" - postcss-minify-selectors "^2.0.4" - postcss-normalize-charset "^1.1.0" - postcss-normalize-url "^3.0.7" - postcss-ordered-values "^2.1.0" - postcss-reduce-idents "^2.2.2" - postcss-reduce-initial "^1.0.0" - postcss-reduce-transforms "^1.0.3" - postcss-svgo "^2.1.1" - postcss-unique-selectors "^2.0.2" - postcss-value-parser "^3.2.3" - postcss-zindex "^2.0.1" - -csso@~2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/csso/-/csso-2.3.2.tgz#ddd52c587033f49e94b71fc55569f252e8ff5f85" - dependencies: - clap "^1.0.9" - source-map "^0.5.3" - -currently-unhandled@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" - dependencies: - array-find-index "^1.0.1" - -d@1: - version "1.0.0" - resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" - dependencies: - es5-ext "^0.10.9" - -dargs@5.1.0, dargs@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/dargs/-/dargs-5.1.0.tgz#ec7ea50c78564cd36c9d5ec18f66329fade27829" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -date-now@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" - -dateformat@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-2.2.0.tgz#4065e2013cf9fb916ddfd82efb506ad4c6769062" - -dateformat@~1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-1.0.12.tgz#9f124b67594c937ff706932e4a642cca8dbbfee9" - dependencies: - get-stdin "^4.0.1" - meow "^3.3.0" - -debug@2.6.9, debug@^2.0.0, debug@^2.1.0, debug@^2.1.1, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.6, debug@^2.6.8: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -debug@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - dependencies: - ms "2.0.0" - -decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - -deep-equal@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" - -deep-extend@^0.4.0, deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -default-uid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/default-uid/-/default-uid-1.0.0.tgz#fcefa9df9f5ac40c8916d912dd1fe1146aa3c59e" - -define-properties@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" - dependencies: - foreach "^2.0.5" - object-keys "^1.0.8" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -defined@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" - -del@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/del/-/del-3.0.0.tgz#53ecf699ffcbcb39637691ab13baf160819766e5" - dependencies: - globby "^6.1.0" - is-path-cwd "^1.0.0" - is-path-in-cwd "^1.0.0" - p-map "^1.1.1" - pify "^3.0.0" - rimraf "^2.2.8" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -depd@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359" - -depd@~1.1.1, depd@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" - -des.js@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" - dependencies: - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -destroy@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" - -detect-conflict@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/detect-conflict/-/detect-conflict-1.0.1.tgz#088657a66a961c05019db7c4230883b1c6b4176e" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - dependencies: - repeating "^2.0.0" - -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - -detect-node@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.3.tgz#a2033c09cc8e158d37748fbde7507832bd6ce127" - -detect-port@1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/detect-port/-/detect-port-1.2.2.tgz#57a44533632d8bc74ad255676866ca43f96c7469" - dependencies: - address "^1.0.1" - debug "^2.6.0" - -diff@^2.1.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/diff/-/diff-2.2.3.tgz#60eafd0d28ee906e4e8ff0a52c1229521033bf99" - -diff@^3.1.0, diff@^3.3.1: - version "3.5.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" - -diffie-hellman@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" - dependencies: - bn.js "^4.1.0" - miller-rabin "^4.0.0" - randombytes "^2.0.0" - -dns-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d" - -dns-packet@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.3.1.tgz#12aa426981075be500b910eedcd0b47dd7deda5a" - dependencies: - ip "^1.1.0" - safe-buffer "^5.0.1" - -dns-txt@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/dns-txt/-/dns-txt-2.0.2.tgz#b91d806f5d27188e4ab3e7d107d881a1cc4642b6" - dependencies: - buffer-indexof "^1.0.0" - -domain-browser@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" - -dot-prop@^4.1.0, dot-prop@^4.1.1: - version "4.2.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" - dependencies: - is-obj "^1.0.0" - -downgrade-root@^1.0.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/downgrade-root/-/downgrade-root-1.2.2.tgz#531319715b0e81ffcc22eb28478ba27643e12c6c" - dependencies: - default-uid "^1.0.0" - is-root "^1.0.0" - -duplexer2@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" - dependencies: - readable-stream "^2.0.2" - -duplexer3@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" - -each-async@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/each-async/-/each-async-1.1.1.tgz#dee5229bdf0ab6ba2012a395e1b869abf8813473" - dependencies: - onetime "^1.0.0" - set-immediate-shim "^1.0.0" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -editions@^1.3.3: - version "1.3.4" - resolved "https://registry.yarnpkg.com/editions/-/editions-1.3.4.tgz#3662cb592347c3168eb8e498a0ff73271d67f50b" - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - -ejs@^2.3.1: - version "2.5.7" - resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.5.7.tgz#cc872c168880ae3c7189762fd5ffc00896c9518a" - -electron-to-chromium@^1.2.7: - version "1.3.37" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.37.tgz#4a92734e0044c8cf0b1553be57eae21a4c6e5fab" - -elliptic@^6.0.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" - dependencies: - bn.js "^4.4.0" - brorand "^1.0.1" - hash.js "^1.0.0" - hmac-drbg "^1.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.0" - -emojis-list@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" - -encodeurl@~1.0.1, encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - -encoding@^0.1.11: - version "0.1.12" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" - dependencies: - iconv-lite "~0.4.13" - -enhanced-resolve@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.4.0" - object-assign "^4.0.1" - tapable "^0.2.7" - -errno@^0.1.3: - version "0.1.7" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" - dependencies: - prr "~1.0.1" - -error-ex@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" - dependencies: - is-arrayish "^0.2.1" - -error@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/error/-/error-7.0.2.tgz#a5f75fff4d9926126ddac0ea5dc38e689153cb02" - dependencies: - string-template "~0.2.1" - xtend "~4.0.0" - -es-abstract@^1.7.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864" - dependencies: - es-to-primitive "^1.1.1" - function-bind "^1.1.1" - has "^1.0.1" - is-callable "^1.1.3" - is-regex "^1.0.4" - -es-to-primitive@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" - dependencies: - is-callable "^1.1.1" - is-date-object "^1.0.1" - is-symbol "^1.0.1" - -es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: - version "0.10.40" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.40.tgz#ab3d2179b943008c5e9ef241beb25ef41424c774" - dependencies: - es6-iterator "~2.0.3" - es6-symbol "~3.1.1" - -es6-iterator@^2.0.1, es6-iterator@~2.0.1, es6-iterator@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-map@^0.1.3: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-set "~0.1.5" - es6-symbol "~3.1.1" - event-emitter "~0.3.5" - -es6-set@~0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-symbol "3.1.1" - event-emitter "~0.3.5" - -es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" - dependencies: - d "1" - es5-ext "~0.10.14" - -es6-templates@^0.2.2: - version "0.2.3" - resolved "https://registry.yarnpkg.com/es6-templates/-/es6-templates-0.2.3.tgz#5cb9ac9fb1ded6eb1239342b81d792bbb4078ee4" - dependencies: - recast "~0.11.12" - through "~2.3.6" - -es6-weak-map@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" - dependencies: - d "1" - es5-ext "^0.10.14" - es6-iterator "^2.0.1" - es6-symbol "^3.1.1" - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -escope@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" - dependencies: - es6-map "^0.1.3" - es6-weak-map "^2.0.1" - esrecurse "^4.1.0" - estraverse "^4.1.1" - -esprima@^2.6.0: - version "2.7.3" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" - -esprima@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" - -esprima@~3.1.0: - version "3.1.3" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" - -esrecurse@^4.1.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" - dependencies: - estraverse "^4.1.0" - -estraverse@^4.1.0, estraverse@^4.1.1: - version "4.2.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - -event-emitter@~0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" - dependencies: - d "1" - es5-ext "~0.10.14" - -eventemitter2@~0.4.13: - version "0.4.14" - resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-0.4.14.tgz#8f61b75cde012b2e9eb284d4545583b5643b61ab" - -eventemitter3@1.x.x: - version "1.2.0" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508" - -events@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" - -eventsource@0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-0.1.6.tgz#0acede849ed7dd1ccc32c811bb11b944d4f29232" - dependencies: - original ">=0.0.5" - -evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - -execa@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.4.0.tgz#4eb6467a36a095fabb2970ff9d5e3fb7bce6ebc3" - dependencies: - cross-spawn-async "^2.1.1" - is-stream "^1.1.0" - npm-run-path "^1.0.0" - object-assign "^4.0.1" - path-key "^1.0.0" - strip-eof "^1.0.0" - -execa@^0.6.0: - version "0.6.3" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.6.3.tgz#57b69a594f081759c69e5370f0d17b9cb11658fe" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execall@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/execall/-/execall-1.0.0.tgz#73d0904e395b3cab0658b08d09ec25307f29bb73" - dependencies: - clone-regexp "^1.0.0" - -exit-hook@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" - -exit@~0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - dependencies: - is-posix-bracket "^0.1.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - dependencies: - fill-range "^2.1.0" - -expose-loader@0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/expose-loader/-/expose-loader-0.7.3.tgz#35fbd3659789e4faa81f59de8b7e9fc39e466d51" - -express@^4.13.3: - version "4.16.2" - resolved "https://registry.yarnpkg.com/express/-/express-4.16.2.tgz#e35c6dfe2d64b7dca0a5cd4f21781be3299e076c" - dependencies: - accepts "~1.3.4" - array-flatten "1.1.1" - body-parser "1.18.2" - content-disposition "0.5.2" - content-type "~1.0.4" - cookie "0.3.1" - cookie-signature "1.0.6" - debug "2.6.9" - depd "~1.1.1" - encodeurl "~1.0.1" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "1.1.0" - fresh "0.5.2" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "~2.3.0" - parseurl "~1.3.2" - path-to-regexp "0.1.7" - proxy-addr "~2.0.2" - qs "6.5.1" - range-parser "~1.2.0" - safe-buffer "5.1.1" - send "0.16.1" - serve-static "1.13.1" - setprototypeof "1.1.0" - statuses "~1.3.1" - type-is "~1.6.15" - utils-merge "1.0.1" - vary "~1.1.2" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extend@^3.0.0, extend@~3.0.0, extend@~3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -external-editor@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-1.1.1.tgz#12d7b0db850f7ff7e7081baf4005700060c4600b" - dependencies: - extend "^3.0.0" - spawn-sync "^1.0.15" - tmp "^0.0.29" - -external-editor@^2.0.4: - version "2.1.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.1.0.tgz#3d026a21b7f95b5726387d4200ac160d372c3b48" - dependencies: - chardet "^0.4.0" - iconv-lite "^0.4.17" - tmp "^0.0.33" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - dependencies: - is-extglob "^1.0.0" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - -extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - -fast-deep-equal@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" - -fast-json-stable-stringify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" - -fastparse@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.1.tgz#d1e2643b38a94d7583b479060e6c4affc94071f8" - -faye-websocket@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4" - dependencies: - websocket-driver ">=0.5.1" - -faye-websocket@~0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.1.tgz#f0efe18c4f56e4f40afc7e06c719fd5ee6188f38" - dependencies: - websocket-driver ">=0.5.1" - -fbjs@^0.8.16, fbjs@^0.8.9: - version "0.8.16" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" - dependencies: - core-js "^1.0.0" - isomorphic-fetch "^2.1.1" - loose-envify "^1.0.0" - object-assign "^4.1.0" - promise "^7.1.1" - setimmediate "^1.0.5" - ua-parser-js "^0.7.9" - -figures@^1.3.5: - version "1.7.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" - dependencies: - escape-string-regexp "^1.0.5" - object-assign "^4.1.0" - -figures@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" - dependencies: - escape-string-regexp "^1.0.5" - -file-loader@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-1.1.4.tgz#5ca9384adfafe008077c3439a435b2781a889ef5" - dependencies: - loader-utils "^1.0.2" - schema-utils "^0.3.0" - -file-sync-cmp@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/file-sync-cmp/-/file-sync-cmp-0.1.1.tgz#a5e7a8ffbfa493b43b923bbd4ca89a53b63b612b" - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - -filesize@3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/filesize/-/filesize-3.6.0.tgz#22d079615624bb6fd3c04026120628a41b3f4efa" - -fill-range@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^1.1.3" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -filter-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" - -finalhandler@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.0.tgz#ce0b6855b45853e791b2fcc680046d88253dd7f5" - dependencies: - debug "2.6.9" - encodeurl "~1.0.1" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.2" - statuses "~1.3.1" - unpipe "~1.0.0" - -find-cache-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f" - dependencies: - commondir "^1.0.1" - make-dir "^1.0.0" - pkg-dir "^2.0.0" - -find-up@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" - dependencies: - path-exists "^2.0.0" - pinkie-promise "^2.0.0" - -find-up@^2.0.0, find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - dependencies: - locate-path "^2.0.0" - -find-versions@^1.0.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-1.2.1.tgz#cbde9f12e38575a0af1be1b9a2c5d5fd8f186b62" - dependencies: - array-uniq "^1.0.0" - get-stdin "^4.0.1" - meow "^3.5.0" - semver-regex "^1.0.0" - -findup-sync@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.3.0.tgz#37930aa5d816b777c03445e1966cc6790a4c0b16" - dependencies: - glob "~5.0.0" - -first-chunk-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz#1bdecdb8e083c0664b91945581577a43a9f31d70" - dependencies: - readable-stream "^2.0.2" - -flatten@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" - -focus-trap-react@^3.0.4, focus-trap-react@^3.1.1: - version "3.1.2" - resolved "https://registry.yarnpkg.com/focus-trap-react/-/focus-trap-react-3.1.2.tgz#4dd021ccd028bbd3321147d132cdf7585d6d1394" - dependencies: - focus-trap "^2.0.1" - -focus-trap@^2.0.1: - version "2.4.3" - resolved "https://registry.yarnpkg.com/focus-trap/-/focus-trap-2.4.3.tgz#95edc23e77829b7772cb2486d61fd6371ce112f9" - dependencies: - tabbable "^1.0.3" - -for-in@^0.1.3: - version "0.1.8" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.8.tgz#d8773908e31256109952b1fdb9b3fa867d2775e1" - -for-in@^1.0.1, for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - dependencies: - for-in "^1.0.1" - -for-own@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b" - dependencies: - for-in "^1.0.1" - -foreach@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" - -foreachasync@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/foreachasync/-/foreachasync-3.0.0.tgz#5502987dc8714be3392097f32e0071c9dee07cf6" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -form-data@~2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" - dependencies: - asynckit "^0.4.0" - combined-stream "1.0.6" - mime-types "^2.1.12" - -forwarded@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - dependencies: - map-cache "^0.2.2" - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - -fs-extra@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd" - dependencies: - graceful-fs "^4.1.2" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8" - dependencies: - nan "^2.3.0" - node-pre-gyp "^0.6.39" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -fullname@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/fullname/-/fullname-3.3.0.tgz#a08747d6921229610b8178b7614fce10cb185f5a" - dependencies: - execa "^0.6.0" - filter-obj "^1.1.0" - mem "^1.1.0" - p-any "^1.0.0" - p-try "^1.0.0" - passwd-user "^2.1.0" - rc "^1.1.6" - -function-bind@^1.0.2, function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - -gauge@~1.2.5: - version "1.2.7" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-1.2.7.tgz#e9cec5483d3d4ee0ef44b60a7d99e4935e136d93" - dependencies: - ansi "^0.3.0" - has-unicode "^2.0.0" - lodash.pad "^4.1.0" - lodash.padend "^4.1.0" - lodash.padstart "^4.1.0" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -gaze@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.2.tgz#847224677adb8870d679257ed3388fdb61e40105" - dependencies: - globule "^1.0.0" - -get-caller-file@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" - -get-stdin@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - -getobject@~0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/getobject/-/getobject-0.1.0.tgz#047a449789fa160d018f5486ed91320b6ec7885c" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -gh-got@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/gh-got/-/gh-got-5.0.0.tgz#ee95be37106fd8748a96f8d1db4baea89e1bfa8a" - dependencies: - got "^6.2.0" - is-plain-obj "^1.1.0" - -github-username@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/github-username/-/github-username-3.0.0.tgz#0a772219b3130743429f2456d0bdd3db55dce7b1" - dependencies: - gh-got "^5.0.0" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - -glob@^6.0.1: - version "6.0.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-6.0.4.tgz#0f08860f6a155127b2fadd4f9ce24b1aab6e4d22" - dependencies: - inflight "^1.0.4" - inherits "2" - minimatch "2 || 3" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@~7.1.1: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@~5.0.0: - version "5.0.15" - resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" - dependencies: - inflight "^1.0.4" - inherits "2" - minimatch "2 || 3" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@~7.0.0: - version "7.0.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.2" - once "^1.3.0" - path-is-absolute "^1.0.0" - -global-dirs@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" - dependencies: - ini "^1.3.4" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -globby@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-4.1.0.tgz#080f54549ec1b82a6c60e631fc82e1211dbe95f8" - dependencies: - array-union "^1.0.1" - arrify "^1.0.0" - glob "^6.0.1" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -globby@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" - dependencies: - array-union "^1.0.1" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -globule@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/globule/-/globule-1.2.0.tgz#1dc49c6822dd9e8a2fa00ba2a295006e8664bd09" - dependencies: - glob "~7.1.1" - lodash "~4.17.4" - minimatch "~3.0.2" - -got@^5.0.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/got/-/got-5.7.1.tgz#5f81635a61e4a6589f180569ea4e381680a51f35" - dependencies: - create-error-class "^3.0.1" - duplexer2 "^0.1.4" - is-redirect "^1.0.0" - is-retry-allowed "^1.0.0" - is-stream "^1.0.0" - lowercase-keys "^1.0.0" - node-status-codes "^1.0.0" - object-assign "^4.0.1" - parse-json "^2.1.0" - pinkie-promise "^2.0.0" - read-all-stream "^3.0.0" - readable-stream "^2.0.5" - timed-out "^3.0.0" - unzip-response "^1.0.2" - url-parse-lax "^1.0.0" - -got@^6.2.0, got@^6.7.1: - version "6.7.1" - resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" - dependencies: - create-error-class "^3.0.0" - duplexer3 "^0.1.4" - get-stream "^3.0.0" - is-redirect "^1.0.0" - is-retry-allowed "^1.0.0" - is-stream "^1.0.0" - lowercase-keys "^1.0.0" - safe-buffer "^5.0.1" - timed-out "^4.0.0" - unzip-response "^2.0.1" - url-parse-lax "^1.0.0" - -graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -grouped-queue@^0.3.0, grouped-queue@^0.3.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/grouped-queue/-/grouped-queue-0.3.3.tgz#c167d2a5319c5a0e0964ef6a25b7c2df8996c85c" - dependencies: - lodash "^4.17.2" - -grunt-babel@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/grunt-babel/-/grunt-babel-7.0.0.tgz#13c90c01f154dec214e0eeb5d66ac7c70cedf2d3" - -grunt-cli@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/grunt-cli/-/grunt-cli-1.2.0.tgz#562b119ebb069ddb464ace2845501be97b35b6a8" - dependencies: - findup-sync "~0.3.0" - grunt-known-options "~1.1.0" - nopt "~3.0.6" - resolve "~1.1.0" - -grunt-contrib-clean@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/grunt-contrib-clean/-/grunt-contrib-clean-1.1.0.tgz#564abf2d0378a983a15b9e3f30ee75b738c40638" - dependencies: - async "^1.5.2" - rimraf "^2.5.1" - -grunt-contrib-copy@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz#7060c6581e904b8ab0d00f076e0a8f6e3e7c3573" - dependencies: - chalk "^1.1.1" - file-sync-cmp "^0.1.0" - -grunt-known-options@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/grunt-known-options/-/grunt-known-options-1.1.0.tgz#a4274eeb32fa765da5a7a3b1712617ce3b144149" - -grunt-legacy-log-utils@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/grunt-legacy-log-utils/-/grunt-legacy-log-utils-1.0.0.tgz#a7b8e2d0fb35b5a50f4af986fc112749ebc96f3d" - dependencies: - chalk "~1.1.1" - lodash "~4.3.0" - -grunt-legacy-log@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/grunt-legacy-log/-/grunt-legacy-log-1.0.1.tgz#c7731b2745f4732aa9950ee4d7ae63c553f68469" - dependencies: - colors "~1.1.2" - grunt-legacy-log-utils "~1.0.0" - hooker "~0.2.3" - lodash "~4.17.5" - underscore.string "~3.3.4" - -grunt-legacy-util@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/grunt-legacy-util/-/grunt-legacy-util-1.0.0.tgz#386aa78dc6ed50986c2b18957265b1b48abb9b86" - dependencies: - async "~1.5.2" - exit "~0.1.1" - getobject "~0.1.0" - hooker "~0.2.3" - lodash "~4.3.0" - underscore.string "~3.2.3" - which "~1.2.1" - -grunt@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/grunt/-/grunt-1.0.1.tgz#e8778764e944b18f32bb0f10b9078475c9dfb56b" - dependencies: - coffee-script "~1.10.0" - dateformat "~1.0.12" - eventemitter2 "~0.4.13" - exit "~0.1.1" - findup-sync "~0.3.0" - glob "~7.0.0" - grunt-cli "~1.2.0" - grunt-known-options "~1.1.0" - grunt-legacy-log "~1.0.0" - grunt-legacy-util "~1.0.0" - iconv-lite "~0.4.13" - js-yaml "~3.5.2" - minimatch "~3.0.0" - nopt "~3.0.6" - path-is-absolute "~1.0.0" - rimraf "~2.2.8" - -handle-thing@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-1.2.5.tgz#fd7aad726bf1a5fd16dfc29b2f7a6601d27139c4" - -handlebars@4.0.11: - version "4.0.11" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" - dependencies: - async "^1.4.0" - optimist "^0.6.1" - source-map "^0.4.4" - optionalDependencies: - uglify-js "^2.6" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -har-validator@~5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.0.3.tgz#ba402c266194f15956ef15e0fcf242993f6a7dfd" - dependencies: - ajv "^5.1.0" - har-schema "^2.0.0" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" - -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" - dependencies: - function-bind "^1.0.2" - -hash-base@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1" - dependencies: - inherits "^2.0.1" - -hash-base@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -hash.js@^1.0.0, hash.js@^1.0.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.0" - -hawk@3.1.3, hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hawk@~6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-6.0.2.tgz#af4d914eb065f9b5ce4d9d11c1cb2126eecc3038" - dependencies: - boom "4.x.x" - cryptiles "3.x.x" - hoek "4.x.x" - sntp "2.x.x" - -he@1.1.x: - version "1.1.1" - resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" - -highlight.js@9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.0.0.tgz#f5f8d564c97ab374a046f5598077ae6adddbe620" - -highlight.js@^9.12.0: - version "9.12.0" - resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e" - -history@^3.0.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/history/-/history-3.3.0.tgz#fcedcce8f12975371545d735461033579a6dae9c" - dependencies: - invariant "^2.2.1" - loose-envify "^1.2.0" - query-string "^4.2.2" - warning "^3.0.0" - -history@^4.7.2: - version "4.7.2" - resolved "https://registry.yarnpkg.com/history/-/history-4.7.2.tgz#22b5c7f31633c5b8021c7f4a8a954ac139ee8d5b" - dependencies: - invariant "^2.2.1" - loose-envify "^1.2.0" - resolve-pathname "^2.2.0" - value-equal "^0.4.0" - warning "^3.0.0" - -hmac-drbg@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -hoek@4.x.x: - version "4.2.1" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb" - -hoist-non-react-statics@^2.3.0, hoist-non-react-statics@^2.3.1, hoist-non-react-statics@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40" - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -hooker@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/hooker/-/hooker-0.2.3.tgz#b834f723cc4a242aa65963459df6d984c5d3d959" - -hosted-git-info@^2.1.4: - version "2.6.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222" - -hpack.js@^2.1.6: - version "2.1.6" - resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" - dependencies: - inherits "^2.0.1" - obuf "^1.0.0" - readable-stream "^2.0.1" - wbuf "^1.1.0" - -html-comment-regex@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.1.tgz#668b93776eaae55ebde8f3ad464b307a4963625e" - -html-entities@^1.2.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.2.1.tgz#0df29351f0721163515dfb9e5543e5f6eed5162f" - -html-loader@0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/html-loader/-/html-loader-0.5.1.tgz#4f1e8396a1ea6ab42bedc987dfac058070861ebe" - dependencies: - es6-templates "^0.2.2" - fastparse "^1.1.1" - html-minifier "^3.0.1" - loader-utils "^1.0.2" - object-assign "^4.1.0" - -html-minifier@^3.0.1: - version "3.5.10" - resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.5.10.tgz#8522c772c388db81aa5c26f62033302d906ea1c7" - dependencies: - camel-case "3.0.x" - clean-css "4.1.x" - commander "2.14.x" - he "1.1.x" - ncname "1.0.x" - param-case "2.1.x" - relateurl "0.2.x" - uglify-js "3.3.x" - -html@1.0.0, html@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/html/-/html-1.0.0.tgz#a544fa9ea5492bfb3a2cca8210a10be7b5af1f61" - dependencies: - concat-stream "^1.4.7" - -http-deceiver@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" - -http-errors@1.6.2, http-errors@~1.6.2: - version "1.6.2" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736" - dependencies: - depd "1.1.1" - inherits "2.0.3" - setprototypeof "1.0.3" - statuses ">= 1.3.1 < 2" - -http-parser-js@>=0.4.0: - version "0.4.11" - resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.4.11.tgz#5b720849c650903c27e521633d94696ee95f3529" - -http-proxy-middleware@~0.17.4: - version "0.17.4" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-0.17.4.tgz#642e8848851d66f09d4f124912846dbaeb41b833" - dependencies: - http-proxy "^1.16.2" - is-glob "^3.1.0" - lodash "^4.17.2" - micromatch "^2.3.11" - -http-proxy@^1.16.2: - version "1.16.2" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.16.2.tgz#06dff292952bf64dbe8471fa9df73066d4f37742" - dependencies: - eventemitter3 "1.x.x" - requires-port "1.x.x" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -https-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" - -humanize-string@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/humanize-string/-/humanize-string-1.0.1.tgz#fce2d6c545efc25dea1f23235182c98da0180b42" - dependencies: - decamelize "^1.0.0" - -iconv-lite@0.4.19, iconv-lite@^0.4.17, iconv-lite@~0.4.13: - version "0.4.19" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" - -icss-replace-symbols@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded" - -icss-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-2.1.0.tgz#83f0a0ec378bf3246178b6c2ad9136f135b1c962" - dependencies: - postcss "^6.0.1" - -ieee754@^1.1.4: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" - -import-lazy@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" - -imports-loader@0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/imports-loader/-/imports-loader-0.7.1.tgz#f204b5f34702a32c1db7d48d89d5e867a0441253" - dependencies: - loader-utils "^1.0.2" - source-map "^0.5.6" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - -in-publish@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51" - -indent-string@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" - dependencies: - repeating "^2.0.0" - -indent-string@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - -indexes-of@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" - -indexof@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -inherits@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" - -ini@^1.3.4, ini@~1.3.0: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - -inquirer@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.10.1.tgz#ea25e4ce69ca145e05c99e46dcfec05e4012594a" - dependencies: - ansi-escapes "^1.1.0" - ansi-regex "^2.0.0" - chalk "^1.0.0" - cli-cursor "^1.0.1" - cli-width "^1.0.1" - figures "^1.3.5" - lodash "^3.3.1" - readline2 "^1.0.1" - run-async "^0.1.0" - rx-lite "^3.1.2" - strip-ansi "^3.0.0" - through "^2.3.6" - -inquirer@^1.0.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-1.2.3.tgz#4dec6f32f37ef7bb0b2ed3f1d1a5c3f545074918" - dependencies: - ansi-escapes "^1.1.0" - chalk "^1.0.0" - cli-cursor "^1.0.1" - cli-width "^2.0.0" - external-editor "^1.1.0" - figures "^1.3.5" - lodash "^4.3.0" - mute-stream "0.0.6" - pinkie-promise "^2.0.0" - run-async "^2.2.0" - rx "^4.1.0" - string-width "^1.0.1" - strip-ansi "^3.0.0" - through "^2.3.6" - -inquirer@^3.0.1, inquirer@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" - dependencies: - ansi-escapes "^3.0.0" - chalk "^2.0.0" - cli-cursor "^2.1.0" - cli-width "^2.0.0" - external-editor "^2.0.4" - figures "^2.0.0" - lodash "^4.3.0" - mute-stream "0.0.7" - run-async "^2.2.0" - rx-lite "^4.0.8" - rx-lite-aggregates "^4.0.8" - string-width "^2.1.0" - strip-ansi "^4.0.0" - through "^2.3.6" - -insight@^0.8.4: - version "0.8.4" - resolved "https://registry.yarnpkg.com/insight/-/insight-0.8.4.tgz#671caf65b47c9fe8c3d1b3206cf45bb211b75884" - dependencies: - async "^1.4.2" - chalk "^1.0.0" - configstore "^1.0.0" - inquirer "^0.10.0" - lodash.debounce "^3.0.1" - object-assign "^4.0.1" - os-name "^1.0.0" - request "^2.74.0" - tough-cookie "^2.0.0" - uuid "^3.0.0" - -internal-ip@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-1.2.0.tgz#ae9fbf93b984878785d50a8de1b356956058cf5c" - dependencies: - meow "^3.3.0" - -interpret@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" - -invariant@^2.0.0, invariant@^2.2.1, invariant@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.3.tgz#1a827dfde7dcbd7c323f0ca826be8fa7c5e9d688" - dependencies: - loose-envify "^1.0.0" - -invert-kv@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" - -ip@1.1.5, ip@^1.1.0, ip@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" - -ipaddr.js@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.6.0.tgz#e3fa357b773da619f26e95f049d055c72796f86b" - -is-absolute-url@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - dependencies: - kind-of "^6.0.0" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.0.2, is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - -is-builtin-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" - dependencies: - builtin-modules "^1.0.0" - -is-callable@^1.1.1, is-callable@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - dependencies: - kind-of "^6.0.0" - -is-date-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - -is-docker@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-1.1.0.tgz#f04374d4eee5310e9a8e113bf1495411e46176a1" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - -is-extglob@^2.1.0, is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - dependencies: - is-extglob "^1.0.0" - -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - dependencies: - is-extglob "^2.1.0" - -is-glob@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" - dependencies: - is-extglob "^2.1.1" - -is-installed-globally@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" - dependencies: - global-dirs "^0.1.0" - is-path-inside "^1.0.0" - -is-npm@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - -is-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - -is-odd@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-2.0.0.tgz#7646624671fd7ea558ccd9a2795182f2958f1b24" - dependencies: - is-number "^4.0.0" - -is-path-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" - -is-path-in-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" - dependencies: - is-path-inside "^1.0.0" - -is-path-inside@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" - dependencies: - path-is-inside "^1.0.1" - -is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - -is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - dependencies: - isobject "^3.0.1" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - -is-promise@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" - -is-redirect@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" - -is-regex@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" - dependencies: - has "^1.0.1" - -is-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" - -is-retry-allowed@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" - -is-root@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-root/-/is-root-1.0.0.tgz#07b6c233bc394cd9d02ba15c966bd6660d6342d5" - -is-scoped@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-scoped/-/is-scoped-1.0.0.tgz#449ca98299e713038256289ecb2b540dc437cb30" - dependencies: - scoped-regex "^1.0.0" - -is-stream@1.1.0, is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-supported-regexp-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.0.tgz#8b520c85fae7a253382d4b02652e045576e13bb8" - -is-svg@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-2.1.0.tgz#cf61090da0d9efbcab8722deba6f032208dbb0e9" - dependencies: - html-comment-regex "^1.1.0" - -is-symbol@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -is-utf8@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - -is-wsl@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" - -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - -isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - -isomorphic-fetch@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -istextorbinary@^2.1.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/istextorbinary/-/istextorbinary-2.2.1.tgz#a5231a08ef6dd22b268d0895084cf8d58b5bec53" - dependencies: - binaryextensions "2" - editions "^1.3.3" - textextensions "2" - -jquery@^3.2.1, jquery@^3.3.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.3.1.tgz#958ce29e81c9790f31be7792df5d4d95fc57fbca" - -js-base64@^2.1.8, js-base64@^2.1.9: - version "2.4.3" - resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.3.tgz#2e545ec2b0f2957f41356510205214e98fad6582" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -js-yaml@^3.4.3: - version "3.11.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef" - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -js-yaml@~3.5.2: - version "3.5.5" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.5.5.tgz#0377c38017cabc7322b0d1fbcd25a491641f2fbe" - dependencies: - argparse "^1.0.2" - esprima "^2.6.0" - -js-yaml@~3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80" - dependencies: - argparse "^1.0.7" - esprima "^2.6.0" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json-loader@^0.5.4: - version "0.5.7" - resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" - -json-schema-traverse@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -json3@^3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" - -json5@^0.5.0, json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - optionalDependencies: - graceful-fs "^4.1.6" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -just-extend@^1.1.27: - version "1.1.27" - resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-1.1.27.tgz#ec6e79410ff914e472652abfa0e603c03d60e905" - -keymirror@0.1.1, keymirror@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/keymirror/-/keymirror-0.1.1.tgz#918889ea13f8d0a42e7c557250eee713adc95c35" - -kind-of@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-2.0.1.tgz#018ec7a4ce7e3a86cb9141be519d24c8faa981b5" - dependencies: - is-buffer "^1.0.2" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0, kind-of@^3.2.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" - -latest-version@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15" - dependencies: - package-json "^4.0.0" - -lazy-cache@^0.2.3: - version "0.2.7" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-0.2.7.tgz#7feddf2dcb6edb77d11ef1d117ab5ffdf0ab1b65" - -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - -lazy-cache@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-2.0.2.tgz#b9190a4f913354694840859f8a8f7084d8822264" - dependencies: - set-getter "^0.1.0" - -lcid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" - dependencies: - invert-kv "^1.0.0" - -load-json-file@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - pinkie-promise "^2.0.0" - strip-bom "^2.0.0" - -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - -loader-runner@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" - -loader-utils@^1.0.1, loader-utils@^1.0.2, loader-utils@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" - dependencies: - big.js "^3.1.3" - emojis-list "^2.0.0" - json5 "^0.5.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -lodash-es@^4.17.5, lodash-es@^4.2.1: - version "4.17.7" - resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.7.tgz#db240a3252c3dd8360201ac9feef91ac977ea856" - -lodash._getnative@^3.0.0: - version "3.9.1" - resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" - -lodash.assign@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" - -lodash.camelcase@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" - -lodash.clonedeep@^4.3.2: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" - -lodash.debounce@^3.0.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-3.1.1.tgz#812211c378a94cc29d5aa4e3346cf0bfce3a7df5" - dependencies: - lodash._getnative "^3.0.0" - -lodash.get@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" - -lodash.isequal@^4.1.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" - -lodash.memoize@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" - -lodash.mergewith@^4.6.0: - version "4.6.1" - resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz#639057e726c3afbdb3e7d42741caa8d6e4335927" - -lodash.pad@^4.1.0: - version "4.5.1" - resolved "https://registry.yarnpkg.com/lodash.pad/-/lodash.pad-4.5.1.tgz#4330949a833a7c8da22cc20f6a26c4d59debba70" - -lodash.padend@^4.1.0: - version "4.6.1" - resolved "https://registry.yarnpkg.com/lodash.padend/-/lodash.padend-4.6.1.tgz#53ccba047d06e158d311f45da625f4e49e6f166e" - -lodash.padstart@^4.1.0: - version "4.6.1" - resolved "https://registry.yarnpkg.com/lodash.padstart/-/lodash.padstart-4.6.1.tgz#d2e3eebff0d9d39ad50f5cbd1b52a7bce6bb611b" - -lodash.tail@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lodash.tail/-/lodash.tail-4.1.1.tgz#d2333a36d9e7717c8ad2f7cacafec7c32b444664" - -lodash.uniq@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" - -lodash@3.10.1, lodash@^3.10.1, lodash@^3.3.1: - version "3.10.1" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" - -lodash@4.17.4: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -lodash@^4.0.0, lodash@^4.0.1, lodash@^4.11.1, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@~4.17.4, lodash@~4.17.5: - version "4.17.5" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" - -lodash@~4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.3.0.tgz#efd9c4a6ec53f3b05412429915c3e4824e4d25a4" - -log-symbols@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18" - dependencies: - chalk "^1.0.0" - -log-symbols@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - dependencies: - chalk "^2.0.1" - -loglevel@^1.4.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.1.tgz#e0fc95133b6ef276cdc8887cdaf24aa6f156f8fa" - -lolex@^2.2.0, lolex@^2.3.2: - version "2.5.0" - resolved "https://registry.yarnpkg.com/lolex/-/lolex-2.5.0.tgz#69d6a667607738564daf108f63240ae8cbd28fb4" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -loud-rejection@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" - dependencies: - currently-unhandled "^0.4.1" - signal-exit "^3.0.0" - -lower-case@^1.1.1: - version "1.1.4" - resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" - -lowercase-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" - -lru-cache@^4.0.0, lru-cache@^4.0.1: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f" - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -macaddress@^0.2.8: - version "0.2.8" - resolved "https://registry.yarnpkg.com/macaddress/-/macaddress-0.2.8.tgz#5904dc537c39ec6dbefeae902327135fa8511f12" - -make-dir@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.2.0.tgz#6d6a49eead4aae296c53bbf3a1a008bd6c89469b" - dependencies: - pify "^3.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - -map-obj@^1.0.0, map-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - dependencies: - object-visit "^1.0.0" - -material-colors@^1.2.1: - version "1.2.5" - resolved "https://registry.yarnpkg.com/material-colors/-/material-colors-1.2.5.tgz#5292593e6754cb1bcc2b98030e4e0d6a3afc9ea1" - -math-expression-evaluator@^1.2.14: - version "1.2.17" - resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac" - -md5.js@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - -mem-fs-editor@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/mem-fs-editor/-/mem-fs-editor-3.0.2.tgz#dd0a6eaf2bb8a6b37740067aa549eb530105af9f" - dependencies: - commondir "^1.0.1" - deep-extend "^0.4.0" - ejs "^2.3.1" - glob "^7.0.3" - globby "^6.1.0" - mkdirp "^0.5.0" - multimatch "^2.0.0" - rimraf "^2.2.8" - through2 "^2.0.0" - vinyl "^2.0.1" - -mem-fs@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/mem-fs/-/mem-fs-1.1.3.tgz#b8ae8d2e3fcb6f5d3f9165c12d4551a065d989cc" - dependencies: - through2 "^2.0.0" - vinyl "^1.1.0" - vinyl-file "^2.0.0" - -mem@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" - dependencies: - mimic-fn "^1.0.0" - -memory-fs@^0.4.0, memory-fs@~0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" - dependencies: - errno "^0.1.3" - readable-stream "^2.0.1" - -meow@^3.0.0, meow@^3.3.0, meow@^3.5.0, meow@^3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" - dependencies: - camelcase-keys "^2.0.0" - decamelize "^1.1.2" - loud-rejection "^1.0.0" - map-obj "^1.0.1" - minimist "^1.1.3" - normalize-package-data "^2.3.4" - object-assign "^4.0.1" - read-pkg-up "^1.0.1" - redent "^1.0.0" - trim-newlines "^1.0.0" - -merge-descriptors@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" - -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - -micro-compress@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/micro-compress/-/micro-compress-1.0.0.tgz#53f5a80b4ad0320ca165a559b6e3df145d4f704f" - dependencies: - compression "^1.6.2" - -micro@9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/micro/-/micro-9.1.0.tgz#f2effba306639076e994c007c327dfc36a5185e9" - dependencies: - content-type "1.0.4" - is-stream "1.1.0" - mri "1.1.0" - raw-body "2.3.2" - -micromatch@^2.1.5, micromatch@^2.3.11: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -micromatch@^3.1.4: - version "3.1.9" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.9.tgz#15dc93175ae39e52e93087847096effc73efcf89" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" - dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" - -"mime-db@>= 1.33.0 < 2", mime-db@~1.33.0: - version "1.33.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" - -mime-types@2.1.18, mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.18, mime-types@~2.1.7: - version "2.1.18" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" - dependencies: - mime-db "~1.33.0" - -mime@1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" - -mime@^1.5.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - -minimalistic-assert@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" - -minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - -"minimatch@2 || 3", minimatch@3.0.x, minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.0, minimatch@~3.0.2: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.1.0, minimist@^1.1.3, minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -minimist@~0.0.1: - version "0.0.10" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" - -mixin-deep@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mixin-object@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/mixin-object/-/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e" - dependencies: - for-in "^0.1.3" - is-extendable "^0.1.1" - -mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -moment@^2.20.1: - version "2.21.0" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.21.0.tgz#2a114b51d2a6ec9e6d83cf803f838a878d8a023a" - -mri@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mri/-/mri-1.1.0.tgz#5c0a3f29c8ccffbbb1ec941dcec09d71fa32f36a" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -ms@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" - -multicast-dns-service-types@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz#899f11d9686e5e05cb91b35d5f0e63b773cfc901" - -multicast-dns@^6.0.1: - version "6.2.3" - resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-6.2.3.tgz#a0ec7bd9055c4282f790c3c82f4e28db3b31b229" - dependencies: - dns-packet "^1.3.1" - thunky "^1.0.2" - -multimatch@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-2.1.0.tgz#9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b" - dependencies: - array-differ "^1.0.0" - array-union "^1.0.1" - arrify "^1.0.0" - minimatch "^3.0.0" - -mute-stream@0.0.5: - version "0.0.5" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0" - -mute-stream@0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.6.tgz#48962b19e169fd1dfc240b3f1e7317627bbc47db" - -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - -nan@^2.3.0, nan@^2.3.2: - version "2.9.2" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.9.2.tgz#f564d75f5f8f36a6d9456cca7a6c4fe488ab7866" - -nanomatch@^1.2.9: - version "1.2.9" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.9.tgz#879f7150cb2dab7a471259066c104eee6e0fa7c2" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-odd "^2.0.0" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -ncname@1.0.x: - version "1.0.0" - resolved "https://registry.yarnpkg.com/ncname/-/ncname-1.0.0.tgz#5b57ad18b1ca092864ef62b0b1ed8194f383b71c" - dependencies: - xml-char-classes "^1.0.0" - -negotiator@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" - -neo-async@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.0.tgz#76b1c823130cca26acfbaccc8fbaf0a2fa33b18f" - -nise@^1.2.0: - version "1.3.3" - resolved "https://registry.yarnpkg.com/nise/-/nise-1.3.3.tgz#c17a850066a8a1dfeb37f921da02441afc4a82ba" - dependencies: - "@sinonjs/formatio" "^2.0.0" - just-extend "^1.1.27" - lolex "^2.3.2" - path-to-regexp "^1.7.0" - text-encoding "^0.6.4" - -no-case@^2.2.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.2.tgz#60b813396be39b3f1288a4c1ed5d1e7d28b464ac" - dependencies: - lower-case "^1.1.1" - -node-fetch@^1.0.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" - dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" - -node-forge@0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.7.1.tgz#9da611ea08982f4b94206b3beb4cc9665f20c300" - -node-gyp@^3.3.1: - version "3.6.2" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.6.2.tgz#9bfbe54562286284838e750eac05295853fa1c60" - dependencies: - fstream "^1.0.0" - glob "^7.0.3" - graceful-fs "^4.1.2" - minimatch "^3.0.2" - mkdirp "^0.5.0" - nopt "2 || 3" - npmlog "0 || 1 || 2 || 3 || 4" - osenv "0" - request "2" - rimraf "2" - semver "~5.3.0" - tar "^2.0.0" - which "1" - -node-libs-browser@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.1.0.tgz#5f94263d404f6e44767d726901fff05478d600df" - dependencies: - assert "^1.1.1" - browserify-zlib "^0.2.0" - buffer "^4.3.0" - console-browserify "^1.1.0" - constants-browserify "^1.0.0" - crypto-browserify "^3.11.0" - domain-browser "^1.1.1" - events "^1.0.0" - https-browserify "^1.0.0" - os-browserify "^0.3.0" - path-browserify "0.0.0" - process "^0.11.10" - punycode "^1.2.4" - querystring-es3 "^0.2.0" - readable-stream "^2.3.3" - stream-browserify "^2.0.1" - stream-http "^2.7.2" - string_decoder "^1.0.0" - timers-browserify "^2.0.4" - tty-browserify "0.0.0" - url "^0.11.0" - util "^0.10.3" - vm-browserify "0.0.4" - -node-pre-gyp@^0.6.39: - version "0.6.39" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649" - dependencies: - detect-libc "^1.0.2" - hawk "3.1.3" - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.0.2" - rc "^1.1.7" - request "2.81.0" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" - -node-sass@4.5.3: - version "4.5.3" - resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.5.3.tgz#d09c9d1179641239d1b97ffc6231fdcec53e1568" - dependencies: - async-foreach "^0.1.3" - chalk "^1.1.1" - cross-spawn "^3.0.0" - gaze "^1.0.0" - get-stdin "^4.0.1" - glob "^7.0.3" - in-publish "^2.0.0" - lodash.assign "^4.2.0" - lodash.clonedeep "^4.3.2" - lodash.mergewith "^4.6.0" - meow "^3.7.0" - mkdirp "^0.5.1" - nan "^2.3.2" - node-gyp "^3.3.1" - npmlog "^4.0.0" - request "^2.79.0" - sass-graph "^2.1.1" - stdout-stream "^1.4.0" - -node-status-codes@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/node-status-codes/-/node-status-codes-1.0.0.tgz#5ae5541d024645d32a58fcddc9ceecea7ae3ac2f" - -node-version@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/node-version/-/node-version-1.1.0.tgz#f437d7ba407e65e2c4eaef8887b1718ba523d4f0" - -"nopt@2 || 3", nopt@~3.0.6: - version "3.0.6" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" - dependencies: - abbrev "1" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: - version "2.4.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" - dependencies: - hosted-git-info "^2.1.4" - is-builtin-module "^1.0.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-range@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" - -normalize-url@^1.4.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c" - dependencies: - object-assign "^4.0.1" - prepend-http "^1.0.0" - query-string "^4.1.0" - sort-keys "^1.0.0" - -npm-keyword@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/npm-keyword/-/npm-keyword-4.2.0.tgz#98ffebfdbb1336f27ef5fe1baca0dcacd0acf6c0" - dependencies: - got "^5.0.0" - object-assign "^4.0.1" - pinkie-promise "^2.0.0" - registry-url "^3.0.3" - -npm-run-path@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-1.0.0.tgz#f5c32bf595fe81ae927daec52e82f8b000ac3c8f" - dependencies: - path-key "^1.0.0" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.0, npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -npmlog@^2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-2.0.4.tgz#98b52530f2514ca90d09ec5b22c8846722375692" - dependencies: - ansi "~0.3.1" - are-we-there-yet "~1.1.2" - gauge "~1.2.5" - -num2fraction@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -numeral@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/numeral/-/numeral-2.0.6.tgz#4ad080936d443c2561aed9f2197efffe25f4e506" - -oauth-sign@~0.8.1, oauth-sign@~0.8.2: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-2.1.1.tgz#43c36e5d569ff8e4816c4efa8be02d26967c18aa" - -object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-keys@^1.0.8: - version "1.0.11" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" - -object-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/object-values/-/object-values-1.0.0.tgz#72af839630119e5b98c3b02bb8c27e3237158105" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - dependencies: - isobject "^3.0.0" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - dependencies: - isobject "^3.0.1" - -obuf@^1.0.0, obuf@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.1.tgz#104124b6c602c6796881a042541d36db43a5264e" - -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - dependencies: - ee-first "1.1.1" - -on-headers@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" - -once@^1.3.0, once@^1.3.3: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -onetime@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" - -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - dependencies: - mimic-fn "^1.0.0" - -openssl-self-signed-certificate@1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/openssl-self-signed-certificate/-/openssl-self-signed-certificate-1.1.6.tgz#9d3a4776b1a57e9847350392114ad2f915a83dd4" - -opn@5.2.0, opn@^5.1.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/opn/-/opn-5.2.0.tgz#71fdf934d6827d676cecbea1531f95d354641225" - dependencies: - is-wsl "^1.1.0" - -opn@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/opn/-/opn-4.0.2.tgz#7abc22e644dff63b0a96d5ab7f2790c0f01abc95" - dependencies: - object-assign "^4.0.1" - pinkie-promise "^2.0.0" - -optimist@^0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" - dependencies: - minimist "~0.0.1" - wordwrap "~0.0.2" - -original@>=0.0.5: - version "1.0.0" - resolved "https://registry.yarnpkg.com/original/-/original-1.0.0.tgz#9147f93fa1696d04be61e01bd50baeaca656bd3b" - dependencies: - url-parse "1.0.x" - -os-browserify@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" - -os-homedir@^1.0.0, os-homedir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-locale@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" - dependencies: - lcid "^1.0.0" - -os-locale@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" - dependencies: - execa "^0.7.0" - lcid "^1.0.0" - mem "^1.1.0" - -os-name@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/os-name/-/os-name-1.0.3.tgz#1b379f64835af7c5a7f498b357cb95215c159edf" - dependencies: - osx-release "^1.0.0" - win-release "^1.0.0" - -os-shim@^0.1.2: - version "0.1.3" - resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" - -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.1, os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@0, osenv@^0.1.0, osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -osx-release@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/osx-release/-/osx-release-1.1.0.tgz#f217911a28136949af1bf9308b241e2737d3cd6c" - dependencies: - minimist "^1.1.0" - -p-any@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/p-any/-/p-any-1.1.0.tgz#1d03835c7eed1e34b8e539c47b7b60d0d015d4e1" - dependencies: - p-some "^2.0.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -p-limit@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" - dependencies: - p-try "^1.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - dependencies: - p-limit "^1.1.0" - -p-map@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.2.0.tgz#e4e94f311eabbc8633a1e79908165fca26241b6b" - -p-some@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/p-some/-/p-some-2.0.1.tgz#65d87c8b154edbcf5221d167778b6d2e150f6f06" - dependencies: - aggregate-error "^1.0.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - -package-json@^2.1.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/package-json/-/package-json-2.4.0.tgz#0d15bd67d1cbbddbb2ca222ff2edb86bcb31a8bb" - dependencies: - got "^5.0.0" - registry-auth-token "^3.0.1" - registry-url "^3.0.3" - semver "^5.1.0" - -package-json@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" - dependencies: - got "^6.7.1" - registry-auth-token "^3.0.1" - registry-url "^3.0.3" - semver "^5.1.0" - -pad-component@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/pad-component/-/pad-component-0.0.1.tgz#ad1f22ce1bf0fdc0d6ddd908af17f351a404b8ac" - -pako@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" - -param-case@2.1.x: - version "2.1.1" - resolved "https://registry.yarnpkg.com/param-case/-/param-case-2.1.1.tgz#df94fd8cf6531ecf75e6bef9a0858fbc72be2247" - dependencies: - no-case "^2.2.0" - -parse-asn1@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" - dependencies: - asn1.js "^4.0.0" - browserify-aes "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.0" - pbkdf2 "^3.0.3" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -parse-help@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/parse-help/-/parse-help-0.1.1.tgz#2f4df942e77a5581bba9967c0c3f48e4c66d7dda" - dependencies: - execall "^1.0.0" - -parse-json@^2.1.0, parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - dependencies: - error-ex "^1.2.0" - -parseurl@~1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - -passwd-user@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/passwd-user/-/passwd-user-2.1.0.tgz#fad9db6ae252f8b088e0c5decd20a7da0c5d9f1e" - dependencies: - execa "^0.4.0" - pify "^2.3.0" - -path-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - -path-exists@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" - dependencies: - pinkie-promise "^2.0.0" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1, path-is-absolute@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-is-inside@1.0.2, path-is-inside@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - -path-key@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-1.0.0.tgz#5d53d578019646c0d68800db4e146e6bdc2ac7af" - -path-key@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -path-parse@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" - -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" - -path-to-regexp@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.7.0.tgz#59fde0f435badacba103a84e9d3bc64e96b9937d" - dependencies: - isarray "0.0.1" - -path-type@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" - dependencies: - pify "^3.0.0" - -path-type@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" - dependencies: - graceful-fs "^4.1.2" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - dependencies: - pify "^2.0.0" - -pbkdf2@^3.0.3: - version "3.0.14" - resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.14.tgz#a35e13c64799b06ce15320f459c230e68e73bade" - dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - -pify@^2.0.0, pify@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - -pkg-dir@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" - dependencies: - find-up "^2.1.0" - -pkginfo@0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/pkginfo/-/pkginfo-0.4.1.tgz#b5418ef0439de5425fc4995042dced14fb2a84ff" - -portfinder@^1.0.9: - version "1.0.13" - resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.13.tgz#bb32ecd87c27104ae6ee44b5a3ccbf0ebb1aede9" - dependencies: - async "^1.5.2" - debug "^2.2.0" - mkdirp "0.5.x" - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - -postcss-calc@^5.2.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-5.3.1.tgz#77bae7ca928ad85716e2fda42f261bf7c1d65b5e" - dependencies: - postcss "^5.0.2" - postcss-message-helpers "^2.0.0" - reduce-css-calc "^1.2.6" - -postcss-colormin@^2.1.8: - version "2.2.2" - resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-2.2.2.tgz#6631417d5f0e909a3d7ec26b24c8a8d1e4f96e4b" - dependencies: - colormin "^1.0.5" - postcss "^5.0.13" - postcss-value-parser "^3.2.3" - -postcss-convert-values@^2.3.4: - version "2.6.1" - resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-2.6.1.tgz#bbd8593c5c1fd2e3d1c322bb925dcae8dae4d62d" - dependencies: - postcss "^5.0.11" - postcss-value-parser "^3.1.2" - -postcss-discard-comments@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz#befe89fafd5b3dace5ccce51b76b81514be00e3d" - dependencies: - postcss "^5.0.14" - -postcss-discard-duplicates@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-2.1.0.tgz#b9abf27b88ac188158a5eb12abcae20263b91932" - dependencies: - postcss "^5.0.4" - -postcss-discard-empty@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz#d2b4bd9d5ced5ebd8dcade7640c7d7cd7f4f92b5" - dependencies: - postcss "^5.0.14" - -postcss-discard-overridden@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz#8b1eaf554f686fb288cd874c55667b0aa3668d58" - dependencies: - postcss "^5.0.16" - -postcss-discard-unused@^2.2.1: - version "2.2.3" - resolved "https://registry.yarnpkg.com/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz#bce30b2cc591ffc634322b5fb3464b6d934f4433" - dependencies: - postcss "^5.0.14" - uniqs "^2.0.0" - -postcss-filter-plugins@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/postcss-filter-plugins/-/postcss-filter-plugins-2.0.2.tgz#6d85862534d735ac420e4a85806e1f5d4286d84c" - dependencies: - postcss "^5.0.4" - uniqid "^4.0.0" - -postcss-load-config@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-1.2.0.tgz#539e9afc9ddc8620121ebf9d8c3673e0ce50d28a" - dependencies: - cosmiconfig "^2.1.0" - object-assign "^4.1.0" - postcss-load-options "^1.2.0" - postcss-load-plugins "^2.3.0" - -postcss-load-options@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/postcss-load-options/-/postcss-load-options-1.2.0.tgz#b098b1559ddac2df04bc0bb375f99a5cfe2b6d8c" - dependencies: - cosmiconfig "^2.1.0" - object-assign "^4.1.0" - -postcss-load-plugins@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/postcss-load-plugins/-/postcss-load-plugins-2.3.0.tgz#745768116599aca2f009fad426b00175049d8d92" - dependencies: - cosmiconfig "^2.1.1" - object-assign "^4.1.0" - -postcss-loader@2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-2.0.6.tgz#8c7e0055a3df1889abc6bad52dd45b2f41bbc6fc" - dependencies: - loader-utils "^1.1.0" - postcss "^6.0.2" - postcss-load-config "^1.2.0" - schema-utils "^0.3.0" - -postcss-merge-idents@^2.1.5: - version "2.1.7" - resolved "https://registry.yarnpkg.com/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz#4c5530313c08e1d5b3bbf3d2bbc747e278eea270" - dependencies: - has "^1.0.1" - postcss "^5.0.10" - postcss-value-parser "^3.1.1" - -postcss-merge-longhand@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-2.0.2.tgz#23d90cd127b0a77994915332739034a1a4f3d658" - dependencies: - postcss "^5.0.4" - -postcss-merge-rules@^2.0.3: - version "2.1.2" - resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-2.1.2.tgz#d1df5dfaa7b1acc3be553f0e9e10e87c61b5f721" - dependencies: - browserslist "^1.5.2" - caniuse-api "^1.5.2" - postcss "^5.0.4" - postcss-selector-parser "^2.2.2" - vendors "^1.0.0" - -postcss-message-helpers@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/postcss-message-helpers/-/postcss-message-helpers-2.0.0.tgz#a4f2f4fab6e4fe002f0aed000478cdf52f9ba60e" - -postcss-minify-font-values@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz#4b58edb56641eba7c8474ab3526cafd7bbdecb69" - dependencies: - object-assign "^4.0.1" - postcss "^5.0.4" - postcss-value-parser "^3.0.2" - -postcss-minify-gradients@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz#5dbda11373703f83cfb4a3ea3881d8d75ff5e6e1" - dependencies: - postcss "^5.0.12" - postcss-value-parser "^3.3.0" - -postcss-minify-params@^1.0.4: - version "1.2.2" - resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz#ad2ce071373b943b3d930a3fa59a358c28d6f1f3" - dependencies: - alphanum-sort "^1.0.1" - postcss "^5.0.2" - postcss-value-parser "^3.0.2" - uniqs "^2.0.0" - -postcss-minify-selectors@^2.0.4: - version "2.1.1" - resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz#b2c6a98c0072cf91b932d1a496508114311735bf" - dependencies: - alphanum-sort "^1.0.2" - has "^1.0.1" - postcss "^5.0.14" - postcss-selector-parser "^2.0.0" - -postcss-modules-extract-imports@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz#b614c9720be6816eaee35fb3a5faa1dba6a05ddb" - dependencies: - postcss "^6.0.1" - -postcss-modules-local-by-default@^1.0.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz#f7d80c398c5a393fa7964466bd19500a7d61c069" - dependencies: - css-selector-tokenizer "^0.7.0" - postcss "^6.0.1" - -postcss-modules-scope@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz#d6ea64994c79f97b62a72b426fbe6056a194bb90" - dependencies: - css-selector-tokenizer "^0.7.0" - postcss "^6.0.1" - -postcss-modules-values@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz#ecffa9d7e192518389f42ad0e83f72aec456ea20" - dependencies: - icss-replace-symbols "^1.1.0" - postcss "^6.0.1" - -postcss-normalize-charset@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz#ef9ee71212d7fe759c78ed162f61ed62b5cb93f1" - dependencies: - postcss "^5.0.5" - -postcss-normalize-url@^3.0.7: - version "3.0.8" - resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz#108f74b3f2fcdaf891a2ffa3ea4592279fc78222" - dependencies: - is-absolute-url "^2.0.0" - normalize-url "^1.4.0" - postcss "^5.0.14" - postcss-value-parser "^3.2.3" - -postcss-ordered-values@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-2.2.3.tgz#eec6c2a67b6c412a8db2042e77fe8da43f95c11d" - dependencies: - postcss "^5.0.4" - postcss-value-parser "^3.0.1" - -postcss-reduce-idents@^2.2.2: - version "2.4.0" - resolved "https://registry.yarnpkg.com/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz#c2c6d20cc958284f6abfbe63f7609bf409059ad3" - dependencies: - postcss "^5.0.4" - postcss-value-parser "^3.0.2" - -postcss-reduce-initial@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz#68f80695f045d08263a879ad240df8dd64f644ea" - dependencies: - postcss "^5.0.4" - -postcss-reduce-transforms@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz#ff76f4d8212437b31c298a42d2e1444025771ae1" - dependencies: - has "^1.0.1" - postcss "^5.0.8" - postcss-value-parser "^3.0.1" - -postcss-selector-parser@^2.0.0, postcss-selector-parser@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz#f9437788606c3c9acee16ffe8d8b16297f27bb90" - dependencies: - flatten "^1.0.2" - indexes-of "^1.0.1" - uniq "^1.0.1" - -postcss-svgo@^2.1.1: - version "2.1.6" - resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-2.1.6.tgz#b6df18aa613b666e133f08adb5219c2684ac108d" - dependencies: - is-svg "^2.0.0" - postcss "^5.0.14" - postcss-value-parser "^3.2.3" - svgo "^0.7.0" - -postcss-unique-selectors@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz#981d57d29ddcb33e7b1dfe1fd43b8649f933ca1d" - dependencies: - alphanum-sort "^1.0.1" - postcss "^5.0.4" - uniqs "^2.0.0" - -postcss-value-parser@^3.0.1, postcss-value-parser@^3.0.2, postcss-value-parser@^3.1.1, postcss-value-parser@^3.1.2, postcss-value-parser@^3.2.3, postcss-value-parser@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15" - -postcss-zindex@^2.0.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-2.2.0.tgz#d2109ddc055b91af67fc4cb3b025946639d2af22" - dependencies: - has "^1.0.1" - postcss "^5.0.4" - uniqs "^2.0.0" - -postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.2, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.2.16, postcss@^5.2.6: - version "5.2.18" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5" - dependencies: - chalk "^1.1.3" - js-base64 "^2.1.9" - source-map "^0.5.6" - supports-color "^3.2.3" - -postcss@^6.0.1, postcss@^6.0.2: - version "6.0.19" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.19.tgz#76a78386f670b9d9494a655bf23ac012effd1555" - dependencies: - chalk "^2.3.1" - source-map "^0.6.1" - supports-color "^5.2.0" - -prepend-http@^1.0.0, prepend-http@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - -pretty-bytes@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" - -private@^0.1.6, private@^0.1.7, private@~0.1.5: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" - -process@^0.11.10: - version "0.11.10" - resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" - -promise@^7.1.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" - dependencies: - asap "~2.0.3" - -prop-types@15.5.8: - version "15.5.8" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.8.tgz#6b7b2e141083be38c8595aa51fc55775c7199394" - dependencies: - fbjs "^0.8.9" - -prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.6, prop-types@^15.5.8, prop-types@^15.6.0: - version "15.6.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.1.tgz#36644453564255ddda391191fb3a125cbdf654ca" - dependencies: - fbjs "^0.8.16" - loose-envify "^1.3.1" - object-assign "^4.1.1" - -proxy-addr@~2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341" - dependencies: - forwarded "~0.1.2" - ipaddr.js "1.6.0" - -prr@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - -public-encrypt@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6" - dependencies: - bn.js "^4.1.0" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - parse-asn1 "^5.0.0" - randombytes "^2.0.1" - -punycode@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" - -punycode@^1.2.4, punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -q@^1.1.2: - version "1.5.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" - -qs@6.5.1, qs@~6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -query-string@^4.1.0, query-string@^4.2.2: - version "4.3.4" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" - dependencies: - object-assign "^4.1.0" - strict-uri-encode "^1.0.0" - -querystring-es3@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" - -querystring@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" - -querystringify@0.0.x: - version "0.0.4" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-0.0.4.tgz#0cf7f84f9463ff0ae51c4c4b142d95be37724d9c" - -querystringify@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-1.0.0.tgz#6286242112c5b712fa654e526652bf6a13ff05cb" - -randomatic@^1.1.3: - version "1.1.7" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" - dependencies: - safe-buffer "^5.1.0" - -randomfill@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" - dependencies: - randombytes "^2.0.5" - safe-buffer "^5.1.0" - -range-parser@^1.0.3, range-parser@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" - -raw-body@2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.2.tgz#bcd60c77d3eb93cde0050295c3f379389bc88f89" - dependencies: - bytes "3.0.0" - http-errors "1.6.2" - iconv-lite "0.4.19" - unpipe "1.0.0" - -raw-loader@0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-0.5.1.tgz#0c3d0beaed8a01c966d9787bf778281252a979aa" - -rc@^1.0.1, rc@^1.1.6, rc@^1.1.7: - version "1.2.5" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.5.tgz#275cd687f6e3b36cc756baa26dfee80a790301fd" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -react-ace@^5.5.0, react-ace@^5.9.0: - version "5.9.0" - resolved "https://registry.yarnpkg.com/react-ace/-/react-ace-5.9.0.tgz#427a1cc4869b960a6f9748aa7eb169a9269fc336" - dependencies: - brace "^0.11.0" - lodash.get "^4.4.2" - lodash.isequal "^4.1.1" - prop-types "^15.5.8" - -react-color@^2.13.8: - version "2.14.0" - resolved "https://registry.yarnpkg.com/react-color/-/react-color-2.14.0.tgz#5828a11c034aa0939befbd888a066ee37d8c3cc2" - dependencies: - lodash "^4.0.1" - material-colors "^1.2.1" - prop-types "^15.5.10" - reactcss "^1.2.0" - tinycolor2 "^1.4.1" - -react-dom@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.0.tgz#69003178601c0ca19b709b33a83369fe6124c044" - dependencies: - fbjs "^0.8.16" - loose-envify "^1.1.0" - object-assign "^4.1.1" - prop-types "^15.6.0" - -react-redux@^5.0.6: - version "5.0.7" - resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-5.0.7.tgz#0dc1076d9afb4670f993ffaef44b8f8c1155a4c8" - dependencies: - hoist-non-react-statics "^2.5.0" - invariant "^2.0.0" - lodash "^4.17.5" - lodash-es "^4.17.5" - loose-envify "^1.1.0" - prop-types "^15.6.0" - -react-router-dom@4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-4.2.2.tgz#c8a81df3adc58bba8a76782e946cbd4eae649b8d" - dependencies: - history "^4.7.2" - invariant "^2.2.2" - loose-envify "^1.3.1" - prop-types "^15.5.4" - react-router "^4.2.0" - warning "^3.0.0" - -react-router-redux@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-4.0.8.tgz#227403596b5151e182377dab835b5d45f0f8054e" - -react-router@^3.2.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/react-router/-/react-router-3.2.1.tgz#b9a3279962bdfbe684c8bd0482b81ef288f0f244" - dependencies: - create-react-class "^15.5.1" - history "^3.0.0" - hoist-non-react-statics "^2.3.1" - invariant "^2.2.1" - loose-envify "^1.2.0" - prop-types "^15.5.6" - warning "^3.0.0" - -react-router@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/react-router/-/react-router-4.2.0.tgz#61f7b3e3770daeb24062dae3eedef1b054155986" - dependencies: - history "^4.7.2" - hoist-non-react-statics "^2.3.0" - invariant "^2.2.2" - loose-envify "^1.3.1" - path-to-regexp "^1.7.0" - prop-types "^15.5.4" - warning "^3.0.0" - -react@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba" - dependencies: - fbjs "^0.8.16" - loose-envify "^1.1.0" - object-assign "^4.1.1" - prop-types "^15.6.0" - -reactcss@^1.2.0: - version "1.2.3" - resolved "https://registry.yarnpkg.com/reactcss/-/reactcss-1.2.3.tgz#c00013875e557b1cf0dfd9a368a1c3dab3b548dd" - dependencies: - lodash "^4.0.1" - -read-all-stream@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/read-all-stream/-/read-all-stream-3.1.0.tgz#35c3e177f2078ef789ee4bfafa4373074eaef4fa" - dependencies: - pinkie-promise "^2.0.0" - readable-stream "^2.0.0" - -read-chunk@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/read-chunk/-/read-chunk-2.1.0.tgz#6a04c0928005ed9d42e1a6ac5600e19cbc7ff655" - dependencies: - pify "^3.0.0" - safe-buffer "^5.1.1" - -read-pkg-up@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" - dependencies: - find-up "^1.0.0" - read-pkg "^1.0.0" - -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - -read-pkg@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" - dependencies: - load-json-file "^1.0.0" - normalize-package-data "^2.3.2" - path-type "^1.0.0" - -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - -readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.2.9, readable-stream@^2.3.3, readable-stream@^2.3.5: - version "2.3.5" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.5.tgz#b4f85003a938cbb6ecbce2a124fb1012bd1a838d" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -readline2@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - mute-stream "0.0.5" - -recast@~0.11.12: - version "0.11.23" - resolved "https://registry.yarnpkg.com/recast/-/recast-0.11.23.tgz#451fd3004ab1e4df9b4e4b66376b2a21912462d3" - dependencies: - ast-types "0.9.6" - esprima "~3.1.0" - private "~0.1.5" - source-map "~0.5.0" - -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - dependencies: - resolve "^1.1.6" - -redent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" - dependencies: - indent-string "^2.1.0" - strip-indent "^1.0.1" - -reduce-css-calc@^1.2.6: - version "1.3.0" - resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz#747c914e049614a4c9cfbba629871ad1d2927716" - dependencies: - balanced-match "^0.4.2" - math-expression-evaluator "^1.2.14" - reduce-function-call "^1.0.1" - -reduce-function-call@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/reduce-function-call/-/reduce-function-call-1.0.2.tgz#5a200bf92e0e37751752fe45b0ab330fd4b6be99" - dependencies: - balanced-match "^0.4.2" - -redux-thunk@2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-2.2.0.tgz#e615a16e16b47a19a515766133d1e3e99b7852e5" - -redux@3.7.2: - version "3.7.2" - resolved "https://registry.yarnpkg.com/redux/-/redux-3.7.2.tgz#06b73123215901d25d065be342eb026bc1c8537b" - dependencies: - lodash "^4.2.1" - lodash-es "^4.2.1" - loose-envify "^1.1.0" - symbol-observable "^1.0.3" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.10.0: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - dependencies: - is-equal-shallow "^0.1.3" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexpu-core@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-1.0.0.tgz#86a763f58ee4d7c2f6b102e4764050de7ed90c6b" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -registry-auth-token@^3.0.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" - dependencies: - rc "^1.1.6" - safe-buffer "^5.0.1" - -registry-url@^3.0.3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" - dependencies: - rc "^1.0.1" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -relateurl@0.2.x: - version "0.2.7" - resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -replace-ext@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-0.0.1.tgz#29bbd92078a739f0bcce2b4ee41e837953522924" - -replace-ext@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" - -request@2, request@^2.74.0, request@^2.79.0: - version "2.83.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.83.0.tgz#ca0b65da02ed62935887808e6f510381034e3356" - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.6.0" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.1" - forever-agent "~0.6.1" - form-data "~2.3.1" - har-validator "~5.0.3" - hawk "~6.0.2" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.17" - oauth-sign "~0.8.2" - performance-now "^2.1.0" - qs "~6.5.1" - safe-buffer "^5.1.1" - stringstream "~0.0.5" - tough-cookie "~2.3.3" - tunnel-agent "^0.6.0" - uuid "^3.1.0" - -request@2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - -require-from-string@^1.1.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-1.2.1.tgz#529c9ccef27380adfec9a2f965b649bbee636418" - -require-main-filename@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" - -requires-port@1.0.x, requires-port@1.x.x, requires-port@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - -resolve-pathname@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-2.2.0.tgz#7e9ae21ed815fd63ab189adeee64dc831eefa879" - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - -resolve@^1.1.6: - version "1.5.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36" - dependencies: - path-parse "^1.0.5" - -resolve@~1.1.0: - version "1.1.7" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" - -restore-cursor@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" - dependencies: - exit-hook "^1.0.0" - onetime "^1.0.0" - -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - dependencies: - onetime "^2.0.0" - signal-exit "^3.0.2" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - -rimraf@2, rimraf@^2.2.0, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -rimraf@~2.2.8: - version "2.2.8" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582" - -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" - dependencies: - hash-base "^2.0.0" - inherits "^2.0.1" - -root-check@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/root-check/-/root-check-1.0.0.tgz#c52a794bf0db9fad567536e41898f0c9e0a86697" - dependencies: - downgrade-root "^1.0.0" - sudo-block "^1.1.0" - -run-async@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389" - dependencies: - once "^1.3.0" - -run-async@^2.0.0, run-async@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" - dependencies: - is-promise "^2.1.0" - -rx-lite-aggregates@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" - dependencies: - rx-lite "*" - -rx-lite@*, rx-lite@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" - -rx-lite@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102" - -rx@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782" - -safe-buffer@5.1.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - dependencies: - ret "~0.1.10" - -samsam@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.3.0.tgz#8d1d9350e25622da30de3e44ba692b5221ab7c50" - -sass-graph@^2.1.1: - version "2.2.4" - resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-2.2.4.tgz#13fbd63cd1caf0908b9fd93476ad43a51d1e0b49" - dependencies: - glob "^7.0.0" - lodash "^4.0.0" - scss-tokenizer "^0.2.3" - yargs "^7.0.0" - -sass-loader@6.0.6: - version "6.0.6" - resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-6.0.6.tgz#e9d5e6c1f155faa32a4b26d7a9b7107c225e40f9" - dependencies: - async "^2.1.5" - clone-deep "^0.3.0" - loader-utils "^1.0.1" - lodash.tail "^4.1.1" - pify "^3.0.0" - -sax@~1.2.1: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - -schema-utils@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf" - dependencies: - ajv "^5.0.0" - -scoped-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/scoped-regex/-/scoped-regex-1.0.0.tgz#a346bb1acd4207ae70bd7c0c7ca9e566b6baddb8" - -scss-tokenizer@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" - dependencies: - js-base64 "^2.1.8" - source-map "^0.4.2" - -select-hose@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" - -selfsigned@^1.9.1: - version "1.10.2" - resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-1.10.2.tgz#b4449580d99929b65b10a48389301a6592088758" - dependencies: - node-forge "0.7.1" - -semver-diff@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" - dependencies: - semver "^5.0.3" - -semver-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-1.0.0.tgz#92a4969065f9c70c694753d55248fc68f8f652c9" - -semver-truncate@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/semver-truncate/-/semver-truncate-1.1.2.tgz#57f41de69707a62709a7e0104ba2117109ea47e8" - dependencies: - semver "^5.3.0" - -"semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" - -semver@^4.0.3: - version "4.3.6" - resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.6.tgz#300bc6e0e86374f7ba61068b5b1ecd57fc6532da" - -semver@~5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" - -send@0.16.1: - version "0.16.1" - resolved "https://registry.yarnpkg.com/send/-/send-0.16.1.tgz#a70e1ca21d1382c11d0d9f6231deb281080d7ab3" - dependencies: - debug "2.6.9" - depd "~1.1.1" - destroy "~1.0.4" - encodeurl "~1.0.1" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "~1.6.2" - mime "1.4.1" - ms "2.0.0" - on-finished "~2.3.0" - range-parser "~1.2.0" - statuses "~1.3.1" - -send@0.16.2: - version "0.16.2" - resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1" - dependencies: - debug "2.6.9" - depd "~1.1.2" - destroy "~1.0.4" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "~1.6.2" - mime "1.4.1" - ms "2.0.0" - on-finished "~2.3.0" - range-parser "~1.2.0" - statuses "~1.4.0" - -serve-index@^1.7.2: - version "1.9.1" - resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239" - dependencies: - accepts "~1.3.4" - batch "0.6.1" - debug "2.6.9" - escape-html "~1.0.3" - http-errors "~1.6.2" - mime-types "~2.1.17" - parseurl "~1.3.2" - -serve-static@1.13.1: - version "1.13.1" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.1.tgz#4c57d53404a761d8f2e7c1e8a18a47dbf278a719" - dependencies: - encodeurl "~1.0.1" - escape-html "~1.0.3" - parseurl "~1.3.2" - send "0.16.1" - -serve@^6.3.1: - version "6.5.2" - resolved "https://registry.yarnpkg.com/serve/-/serve-6.5.2.tgz#b6030a82c3f5597813f231f75abc29536bb098f9" - dependencies: - "@zeit/check-updates" "1.1.0" - args "3.0.8" - basic-auth "2.0.0" - bluebird "3.5.1" - boxen "1.3.0" - chalk "2.3.2" - clipboardy "1.2.3" - dargs "5.1.0" - detect-port "1.2.2" - filesize "3.6.0" - fs-extra "5.0.0" - handlebars "4.0.11" - ip "1.1.5" - micro "9.1.0" - micro-compress "1.0.0" - mime-types "2.1.18" - node-version "1.1.0" - openssl-self-signed-certificate "1.1.6" - opn "5.2.0" - path-is-inside "1.0.2" - path-type "3.0.0" - send "0.16.2" - -set-blocking@^2.0.0, set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-getter@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/set-getter/-/set-getter-0.1.0.tgz#d769c182c9d5a51f409145f2fba82e5e86e80376" - dependencies: - to-object-path "^0.3.0" - -set-immediate-shim@^1.0.0, set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -set-value@^0.4.3: - version "0.4.3" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.1" - to-object-path "^0.3.0" - -set-value@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setimmediate@^1.0.4, setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - -setprototypeof@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" - -setprototypeof@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" - -sha.js@^2.4.0, sha.js@^2.4.8: - version "2.4.10" - resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.10.tgz#b1fde5cd7d11a5626638a07c604ab909cfa31f9b" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -shallow-clone@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-0.1.2.tgz#5909e874ba77106d73ac414cfec1ffca87d97060" - dependencies: - is-extendable "^0.1.1" - kind-of "^2.0.1" - lazy-cache "^0.2.3" - mixin-object "^2.0.1" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -shelljs@^0.7.0: - version "0.7.8" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3" - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - -signal-exit@^3.0.0, signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -sinon@^5.0.7: - version "5.0.7" - resolved "https://registry.yarnpkg.com/sinon/-/sinon-5.0.7.tgz#3bded6a73613ccc9e512e20246ced69a27c27dab" - dependencies: - "@sinonjs/formatio" "^2.0.0" - diff "^3.1.0" - lodash.get "^4.4.2" - lolex "^2.2.0" - nise "^1.2.0" - supports-color "^5.1.0" - type-detect "^4.0.5" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - -slide@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.1.tgz#e12b5487faded3e3dea0ac91e9400bf75b401370" - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^2.0.0" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -sntp@2.x.x: - version "2.1.0" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-2.1.0.tgz#2c6cec14fedc2222739caf9b5c3d85d1cc5a2cc8" - dependencies: - hoek "4.x.x" - -sockjs-client@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/sockjs-client/-/sockjs-client-1.1.4.tgz#5babe386b775e4cf14e7520911452654016c8b12" - dependencies: - debug "^2.6.6" - eventsource "0.1.6" - faye-websocket "~0.11.0" - inherits "^2.0.1" - json3 "^3.3.2" - url-parse "^1.1.8" - -sockjs@0.3.18: - version "0.3.18" - resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.18.tgz#d9b289316ca7df77595ef299e075f0f937eb4207" - dependencies: - faye-websocket "^0.10.0" - uuid "^2.0.2" - -sort-keys@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" - dependencies: - is-plain-obj "^1.0.0" - -sort-on@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/sort-on/-/sort-on-2.0.0.tgz#0df42a679d7ae4aed9c30ba2f55807d979910fcc" - dependencies: - arrify "^1.0.0" - dot-prop "^4.1.1" - -source-list-map@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085" - -source-map-resolve@^0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.1.tgz#7ad0f593f2281598e854df80f19aae4b92d7a11a" - dependencies: - atob "^2.0.0" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - -source-map@0.5.x, source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.0, source-map@~0.5.1: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -source-map@^0.4.2, source-map@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" - dependencies: - amdefine ">=0.0.4" - -source-map@^0.6.1, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - -spawn-sync@^1.0.15: - version "1.0.15" - resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476" - dependencies: - concat-stream "^1.4.7" - os-shim "^0.1.2" - -spdx-correct@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" - -spdx-expression-parse@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" - -spdy-transport@^2.0.18: - version "2.0.20" - resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-2.0.20.tgz#735e72054c486b2354fe89e702256004a39ace4d" - dependencies: - debug "^2.6.8" - detect-node "^2.0.3" - hpack.js "^2.1.6" - obuf "^1.1.1" - readable-stream "^2.2.9" - safe-buffer "^5.0.1" - wbuf "^1.7.2" - -spdy@^3.4.1: - version "3.4.7" - resolved "https://registry.yarnpkg.com/spdy/-/spdy-3.4.7.tgz#42ff41ece5cc0f99a3a6c28aabb73f5c3b03acbc" - dependencies: - debug "^2.6.8" - handle-thing "^1.2.5" - http-deceiver "^1.2.7" - safe-buffer "^5.0.1" - select-hose "^2.0.0" - spdy-transport "^2.0.18" - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - dependencies: - extend-shallow "^3.0.0" - -sprintf-js@^1.0.3: - version "1.1.1" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.1.tgz#36be78320afe5801f6cea3ee78b6e5aab940ea0c" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - -sshpk@^1.7.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -"statuses@>= 1.3.1 < 2", statuses@~1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" - -statuses@~1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" - -stdout-stream@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.0.tgz#a2c7c8587e54d9427ea9edb3ac3f2cd522df378b" - dependencies: - readable-stream "^2.0.1" - -stream-browserify@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" - dependencies: - inherits "~2.0.1" - readable-stream "^2.0.2" - -stream-http@^2.7.2: - version "2.8.0" - resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.0.tgz#fd86546dac9b1c91aff8fc5d287b98fafb41bc10" - dependencies: - builtin-status-codes "^3.0.0" - inherits "^2.0.1" - readable-stream "^2.3.3" - to-arraybuffer "^1.0.0" - xtend "^4.0.0" - -strict-uri-encode@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" - -string-length@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-1.0.1.tgz#56970fb1c38558e9e70b728bf3de269ac45adfac" - dependencies: - strip-ansi "^3.0.0" - -string-similarity@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/string-similarity/-/string-similarity-1.2.0.tgz#d75153cb383846318b7a39a8d9292bb4db4e9c30" - dependencies: - lodash "^4.13.1" - -string-template@~0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string_decoder@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.0.tgz#384f322ee8a848e500effde99901bba849c5d403" - dependencies: - safe-buffer "~5.1.0" - -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -stringstream@~0.0.4, stringstream@~0.0.5: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - dependencies: - ansi-regex "^3.0.0" - -strip-bom-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz#f87db5ef2613f6968aa545abfe1ec728b6a829ca" - dependencies: - first-chunk-stream "^2.0.0" - strip-bom "^2.0.0" - -strip-bom@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" - dependencies: - is-utf8 "^0.2.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-indent@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" - dependencies: - get-stdin "^4.0.1" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -style-loader@0.19.0: - version "0.19.0" - resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.19.0.tgz#7258e788f0fee6a42d710eaf7d6c2412a4c50759" - dependencies: - loader-utils "^1.0.2" - schema-utils "^0.3.0" - -sudo-block@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/sudo-block/-/sudo-block-1.2.0.tgz#cc539bf8191624d4f507d83eeb45b4cea27f3463" - dependencies: - chalk "^1.0.0" - is-docker "^1.0.0" - is-root "^1.0.0" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^3.1.2, supports-color@^3.2.3: - version "3.2.3" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" - dependencies: - has-flag "^1.0.0" - -supports-color@^4.0.0, supports-color@^4.2.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" - dependencies: - has-flag "^2.0.0" - -supports-color@^5.1.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" - dependencies: - has-flag "^3.0.0" - -supports-color@^5.2.0, supports-color@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.3.0.tgz#5b24ac15db80fa927cf5227a4a33fd3c4c7676c0" - dependencies: - has-flag "^3.0.0" - -svgo@^0.7.0: - version "0.7.2" - resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5" - dependencies: - coa "~1.0.1" - colors "~1.1.2" - csso "~2.3.1" - js-yaml "~3.7.0" - mkdirp "~0.5.1" - sax "~1.2.1" - whet.extend "~0.9.9" - -symbol-observable@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" - -tabbable@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/tabbable/-/tabbable-1.1.0.tgz#2c9a9c9f09db5bb0659f587d532548dd6ef2067b" - -tabbable@^1.0.3, tabbable@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/tabbable/-/tabbable-1.1.2.tgz#b171680aea6e0a3e9281ff23532e2e5de11c0d94" - -tabtab@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/tabtab/-/tabtab-1.3.2.tgz#bb9c2ca6324f659fde7634c2caf3c096e1187ca7" - dependencies: - debug "^2.2.0" - inquirer "^1.0.2" - minimist "^1.2.0" - mkdirp "^0.5.1" - npmlog "^2.0.3" - object-assign "^4.1.0" - -taketalk@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/taketalk/-/taketalk-1.0.0.tgz#b4d4f0deed206ae7df775b129ea2ca6de52f26dd" - dependencies: - get-stdin "^4.0.1" - minimist "^1.1.0" - -tapable@^0.2.7: - version "0.2.8" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" - -tar-pack@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.0.0, tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -term-size@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" - dependencies: - execa "^0.7.0" - -text-encoding@^0.6.4: - version "0.6.4" - resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.6.4.tgz#e399a982257a276dae428bb92845cb71bdc26d19" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - -textextensions@2: - version "2.2.0" - resolved "https://registry.yarnpkg.com/textextensions/-/textextensions-2.2.0.tgz#38ac676151285b658654581987a0ce1a4490d286" - -through2@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" - dependencies: - readable-stream "^2.1.5" - xtend "~4.0.1" - -through@^2.3.6, through@~2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - -thunky@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.0.2.tgz#a862e018e3fb1ea2ec3fce5d55605cf57f247371" - -time-stamp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-2.0.0.tgz#95c6a44530e15ba8d6f4a3ecb8c3a3fac46da357" - -timed-out@^3.0.0: - version "3.1.3" - resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-3.1.3.tgz#95860bfcc5c76c277f8f8326fd0f5b2e20eba217" - -timed-out@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" - -timers-browserify@^2.0.4: - version "2.0.6" - resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.6.tgz#241e76927d9ca05f4d959819022f5b3664b64bae" - dependencies: - setimmediate "^1.0.4" - -tinycolor2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.1.tgz#f4fad333447bc0b07d4dc8e9209d8f39a8ac77e8" - -titleize@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/titleize/-/titleize-1.0.0.tgz#7d350722061830ba6617631e0cfd3ea08398d95a" - -tmp@^0.0.29: - version "0.0.29" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.29.tgz#f25125ff0dd9da3ccb0c2dd371ee1288bb9128c0" - dependencies: - os-tmpdir "~1.0.1" - -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - dependencies: - os-tmpdir "~1.0.2" - -to-arraybuffer@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -tough-cookie@^2.0.0, tough-cookie@~2.3.0, tough-cookie@~2.3.3: - version "2.3.4" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" - dependencies: - punycode "^1.4.1" - -traverse@0.6.6: - version "0.6.6" - resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" - -trim-newlines@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - -tty-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -twig@^0.8.2: - version "0.8.9" - resolved "https://registry.yarnpkg.com/twig/-/twig-0.8.9.tgz#b1594f002b684e5f029de3e54e87bec4f084b6c2" - dependencies: - minimatch "3.0.x" - walk "2.3.x" - -type-detect@^4.0.5: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - -type-is@~1.6.15: - version "1.6.16" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194" - dependencies: - media-typer "0.3.0" - mime-types "~2.1.18" - -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - -ua-parser-js@^0.7.9: - version "0.7.17" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac" - -uglify-js@3.3.x: - version "3.3.13" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.3.13.tgz#8a1a89eeb16e2d6a66b0db2b04cb871af3c669cf" - dependencies: - commander "~2.14.1" - source-map "~0.6.1" - -uglify-js@^2.6, uglify-js@^2.8.29: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" - dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -uglifyjs-webpack-plugin@^0.4.6: - version "0.4.6" - resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz#b951f4abb6bd617e66f63eb891498e391763e309" - dependencies: - source-map "^0.5.6" - uglify-js "^2.8.29" - webpack-sources "^1.0.1" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - -underscore.string@~3.2.3: - version "3.2.3" - resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-3.2.3.tgz#806992633665d5e5fcb4db1fb3a862eb68e9e6da" - -underscore.string@~3.3.4: - version "3.3.4" - resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-3.3.4.tgz#2c2a3f9f83e64762fdc45e6ceac65142864213db" - dependencies: - sprintf-js "^1.0.3" - util-deprecate "^1.0.2" - -union-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^0.4.3" - -uniq@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" - -uniqid@^4.0.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/uniqid/-/uniqid-4.1.1.tgz#89220ddf6b751ae52b5f72484863528596bb84c1" - dependencies: - macaddress "^0.2.8" - -uniqs@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/uniqs/-/uniqs-2.0.0.tgz#ffede4b36b25290696e6e165d4a59edb998e6b02" - -unique-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" - dependencies: - crypto-random-string "^1.0.0" - -universalify@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" - -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -untildify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/untildify/-/untildify-2.1.0.tgz#17eb2807987f76952e9c0485fc311d06a826a2e0" - dependencies: - os-homedir "^1.0.0" - -untildify@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/untildify/-/untildify-3.0.2.tgz#7f1f302055b3fea0f3e81dc78eb36766cb65e3f1" - -unzip-response@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-1.0.2.tgz#b984f0877fc0a89c2c773cc1ef7b5b232b5b06fe" - -unzip-response@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" - -upath@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/upath/-/upath-1.0.4.tgz#ee2321ba0a786c50973db043a50b7bcba822361d" - -update-notifier@2.3.0, update-notifier@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.3.0.tgz#4e8827a6bb915140ab093559d7014e3ebb837451" - dependencies: - boxen "^1.2.1" - chalk "^2.0.1" - configstore "^3.0.0" - import-lazy "^2.1.0" - is-installed-globally "^0.1.0" - is-npm "^1.0.0" - latest-version "^3.0.0" - semver-diff "^2.0.0" - xdg-basedir "^3.0.0" - -upper-case@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - -url-parse-lax@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" - dependencies: - prepend-http "^1.0.1" - -url-parse@1.0.x: - version "1.0.5" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.0.5.tgz#0854860422afdcfefeb6c965c662d4800169927b" - dependencies: - querystringify "0.0.x" - requires-port "1.0.x" - -url-parse@^1.1.8: - version "1.2.0" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.2.0.tgz#3a19e8aaa6d023ddd27dcc44cb4fc8f7fec23986" - dependencies: - querystringify "~1.0.0" - requires-port "~1.0.0" - -url@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" - dependencies: - punycode "1.3.2" - querystring "0.2.0" - -use@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/use/-/use-2.0.2.tgz#ae28a0d72f93bf22422a18a2e379993112dec8e8" - dependencies: - define-property "^0.2.5" - isobject "^3.0.0" - lazy-cache "^2.0.2" - -user-home@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" - dependencies: - os-homedir "^1.0.0" - -util-deprecate@^1.0.2, util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -util@0.10.3, util@^0.10.3: - version "0.10.3" - resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" - dependencies: - inherits "2.0.1" - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - -uuid@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" - -uuid@^2.0.1, uuid@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" - -uuid@^3.0.0, uuid@^3.1.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" - -validate-npm-package-license@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338" - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -value-equal@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-0.4.0.tgz#c5bdd2f54ee093c04839d71ce2e4758a6890abc7" - -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - -vendors@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.1.tgz#37ad73c8ee417fb3d580e785312307d274847f22" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -vinyl-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/vinyl-file/-/vinyl-file-2.0.0.tgz#a7ebf5ffbefda1b7d18d140fcb07b223efb6751a" - dependencies: - graceful-fs "^4.1.2" - pify "^2.3.0" - pinkie-promise "^2.0.0" - strip-bom "^2.0.0" - strip-bom-stream "^2.0.0" - vinyl "^1.1.0" - -vinyl@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-1.2.0.tgz#5c88036cf565e5df05558bfc911f8656df218884" - dependencies: - clone "^1.0.0" - clone-stats "^0.0.1" - replace-ext "0.0.1" - -vinyl@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.1.0.tgz#021f9c2cf951d6b939943c89eb5ee5add4fd924c" - dependencies: - clone "^2.1.1" - clone-buffer "^1.0.0" - clone-stats "^1.0.0" - cloneable-readable "^1.0.0" - remove-trailing-separator "^1.0.1" - replace-ext "^1.0.0" - -vm-browserify@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" - dependencies: - indexof "0.0.1" - -w3c-blob@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/w3c-blob/-/w3c-blob-0.0.1.tgz#b0cd352a1a50f515563420ffd5861f950f1d85b8" - -walk@2.3.x: - version "2.3.9" - resolved "https://registry.yarnpkg.com/walk/-/walk-2.3.9.tgz#31b4db6678f2ae01c39ea9fb8725a9031e558a7b" - dependencies: - foreachasync "^3.0.0" - -warning@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/warning/-/warning-3.0.0.tgz#32e5377cb572de4ab04753bdf8821c01ed605b7c" - dependencies: - loose-envify "^1.0.0" - -watchpack@^1.4.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.5.0.tgz#231e783af830a22f8966f65c4c4bacc814072eed" - dependencies: - chokidar "^2.0.2" - graceful-fs "^4.1.2" - neo-async "^2.5.0" - -wbuf@^1.1.0, wbuf@^1.7.2: - version "1.7.2" - resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.2.tgz#d697b99f1f59512df2751be42769c1580b5801fe" - dependencies: - minimalistic-assert "^1.0.0" - -webpack-dev-middleware@^1.11.0: - version "1.12.2" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-1.12.2.tgz#f8fc1120ce3b4fc5680ceecb43d777966b21105e" - dependencies: - memory-fs "~0.4.1" - mime "^1.5.0" - path-is-absolute "^1.0.0" - range-parser "^1.0.3" - time-stamp "^2.0.0" - -webpack-dev-server@2.9.1: - version "2.9.1" - resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-2.9.1.tgz#7ac9320b61b00eb65b2109f15c82747fc5b93585" - dependencies: - ansi-html "0.0.7" - array-includes "^3.0.3" - bonjour "^3.5.0" - chokidar "^1.6.0" - compression "^1.5.2" - connect-history-api-fallback "^1.3.0" - del "^3.0.0" - express "^4.13.3" - html-entities "^1.2.0" - http-proxy-middleware "~0.17.4" - internal-ip "1.2.0" - ip "^1.1.5" - loglevel "^1.4.1" - opn "^5.1.0" - portfinder "^1.0.9" - selfsigned "^1.9.1" - serve-index "^1.7.2" - sockjs "0.3.18" - sockjs-client "1.1.4" - spdy "^3.4.1" - strip-ansi "^3.0.1" - supports-color "^4.2.1" - webpack-dev-middleware "^1.11.0" - yargs "^6.6.0" - -webpack-sources@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.1.0.tgz#a101ebae59d6507354d71d8013950a3a8b7a5a54" - dependencies: - source-list-map "^2.0.0" - source-map "~0.6.1" - -webpack@3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.6.0.tgz#a89a929fbee205d35a4fa2cc487be9cbec8898bc" - dependencies: - acorn "^5.0.0" - acorn-dynamic-import "^2.0.0" - ajv "^5.1.5" - ajv-keywords "^2.0.0" - async "^2.1.2" - enhanced-resolve "^3.4.0" - escope "^3.6.0" - interpret "^1.0.0" - json-loader "^0.5.4" - json5 "^0.5.1" - loader-runner "^2.3.0" - loader-utils "^1.1.0" - memory-fs "~0.4.1" - mkdirp "~0.5.0" - node-libs-browser "^2.0.0" - source-map "^0.5.3" - supports-color "^4.2.1" - tapable "^0.2.7" - uglifyjs-webpack-plugin "^0.4.6" - watchpack "^1.4.0" - webpack-sources "^1.0.1" - yargs "^8.0.2" - -websocket-driver@>=0.5.1: - version "0.7.0" - resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.0.tgz#0caf9d2d755d93aee049d4bdd0d3fe2cca2a24eb" - dependencies: - http-parser-js ">=0.4.0" - websocket-extensions ">=0.1.1" - -websocket-extensions@>=0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29" - -whatwg-fetch@>=0.10.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" - -whet.extend@~0.9.9: - version "0.9.9" - resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1" - -which-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - -which@1, which@^1.2.8, which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -which@~1.2.1: - version "1.2.14" - resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -widest-line@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273" - dependencies: - string-width "^2.1.1" - -win-release@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/win-release/-/win-release-1.1.1.tgz#5fa55e02be7ca934edfc12665632e849b72e5209" - dependencies: - semver "^5.0.1" - -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - -wordwrap@~0.0.2: - version "0.0.3" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" - -wrap-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -write-file-atomic@^1.1.2: - version "1.3.4" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-1.3.4.tgz#f807a4f0b1d9e913ae7a48112e6cc3af1991b45f" - dependencies: - graceful-fs "^4.1.11" - imurmurhash "^0.1.4" - slide "^1.1.5" - -write-file-atomic@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" - dependencies: - graceful-fs "^4.1.11" - imurmurhash "^0.1.4" - signal-exit "^3.0.2" - -xdg-basedir@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-2.0.0.tgz#edbc903cc385fc04523d966a335504b5504d1bd2" - dependencies: - os-homedir "^1.0.0" - -xdg-basedir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" - -xml-char-classes@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/xml-char-classes/-/xml-char-classes-1.0.0.tgz#64657848a20ffc5df583a42ad8a277b4512bbc4d" - -xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -y18n@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - -yargs-parser@^4.2.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" - dependencies: - camelcase "^3.0.0" - -yargs-parser@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a" - dependencies: - camelcase "^3.0.0" - -yargs-parser@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" - dependencies: - camelcase "^4.1.0" - -yargs@^6.6.0: - version "6.6.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" - dependencies: - camelcase "^3.0.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^1.4.0" - read-pkg-up "^1.0.1" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^1.0.2" - which-module "^1.0.0" - y18n "^3.2.1" - yargs-parser "^4.2.0" - -yargs@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" - dependencies: - camelcase "^3.0.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^1.4.0" - read-pkg-up "^1.0.1" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^1.0.2" - which-module "^1.0.0" - y18n "^3.2.1" - yargs-parser "^5.0.0" - -yargs@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" - dependencies: - camelcase "^4.1.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^2.0.0" - read-pkg-up "^2.0.0" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^2.0.0" - which-module "^2.0.0" - y18n "^3.2.1" - yargs-parser "^7.0.0" - -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" - -yeoman-character@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/yeoman-character/-/yeoman-character-1.1.0.tgz#90d4b5beaf92759086177015b2fdfa2e0684d7c7" - dependencies: - supports-color "^3.1.2" - -yeoman-doctor@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/yeoman-doctor/-/yeoman-doctor-2.1.0.tgz#94ab784896a64f53a9fac452d5e9133e2750a236" - dependencies: - bin-version-check "^2.1.0" - chalk "^1.0.0" - each-async "^1.1.1" - log-symbols "^1.0.1" - object-values "^1.0.0" - semver "^5.0.3" - twig "^0.8.2" - user-home "^2.0.0" - -yeoman-environment@^1.1.0: - version "1.6.6" - resolved "https://registry.yarnpkg.com/yeoman-environment/-/yeoman-environment-1.6.6.tgz#cd85fa67d156060e440d7807d7ef7cf0d2d1d671" - dependencies: - chalk "^1.0.0" - debug "^2.0.0" - diff "^2.1.2" - escape-string-regexp "^1.0.2" - globby "^4.0.0" - grouped-queue "^0.3.0" - inquirer "^1.0.2" - lodash "^4.11.1" - log-symbols "^1.0.1" - mem-fs "^1.1.0" - text-table "^0.2.0" - untildify "^2.0.0" - -yeoman-environment@^2.0.0: - version "2.0.5" - resolved "https://registry.yarnpkg.com/yeoman-environment/-/yeoman-environment-2.0.5.tgz#84f22bafa84088971fe99ea85f654a3a3dd2b693" - dependencies: - chalk "^2.1.0" - debug "^3.1.0" - diff "^3.3.1" - escape-string-regexp "^1.0.2" - globby "^6.1.0" - grouped-queue "^0.3.3" - inquirer "^3.3.0" - is-scoped "^1.0.0" - lodash "^4.17.4" - log-symbols "^2.1.0" - mem-fs "^1.1.0" - text-table "^0.2.0" - untildify "^3.0.2" - -yeoman-generator@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/yeoman-generator/-/yeoman-generator-1.1.1.tgz#40c2b4f6cdfbe05e1952fdd72933f0d8925dbdf5" - dependencies: - async "^2.0.0" - chalk "^1.0.0" - class-extend "^0.1.0" - cli-table "^0.3.1" - cross-spawn "^5.0.1" - dargs "^5.1.0" - dateformat "^2.0.0" - debug "^2.1.0" - detect-conflict "^1.0.0" - error "^7.0.2" - find-up "^2.1.0" - github-username "^3.0.0" - glob "^7.0.3" - istextorbinary "^2.1.0" - lodash "^4.11.1" - mem-fs-editor "^3.0.0" - minimist "^1.2.0" - mkdirp "^0.5.0" - path-exists "^3.0.0" - path-is-absolute "^1.0.0" - pretty-bytes "^4.0.2" - read-chunk "^2.0.0" - read-pkg-up "^2.0.0" - rimraf "^2.2.0" - run-async "^2.0.0" - shelljs "^0.7.0" - text-table "^0.2.0" - through2 "^2.0.0" - user-home "^2.0.0" - yeoman-environment "^1.1.0" - -yo@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yo/-/yo-2.0.0.tgz#0cd75211379ed87105f99510885759062147b517" - dependencies: - async "^2.1.4" - chalk "^1.0.0" - cli-list "^0.2.0" - configstore "^3.0.0" - cross-spawn "^5.0.1" - figures "^2.0.0" - fullname "^3.2.0" - got "^6.7.1" - humanize-string "^1.0.0" - inquirer "^3.0.1" - insight "^0.8.4" - lodash "^4.17.4" - meow "^3.0.0" - npm-keyword "^4.1.0" - opn "^4.0.2" - package-json "^2.1.0" - parse-help "^0.1.1" - read-pkg-up "^2.0.0" - root-check "^1.0.0" - sort-on "^2.0.0" - string-length "^1.0.0" - tabtab "^1.3.2" - titleize "^1.0.0" - update-notifier "^2.1.0" - user-home "^2.0.0" - yeoman-character "^1.0.0" - yeoman-doctor "^2.0.0" - yeoman-environment "^2.0.0" - yosay "^2.0.0" - -yosay@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/yosay/-/yosay-2.0.1.tgz#078167f0365732e5c82d3f64633f9cd3a0526d2f" - dependencies: - ansi-regex "^2.0.0" - ansi-styles "^3.0.0" - chalk "^1.0.0" - cli-boxes "^1.0.0" - pad-component "0.0.1" - string-width "^2.0.0" - strip-ansi "^3.0.0" - taketalk "^1.0.0" - wrap-ansi "^2.0.0" diff --git a/src/cli/cluster/cluster_manager.js b/src/cli/cluster/cluster_manager.js index 1ea8a91eb21ef..347391dfe8e06 100644 --- a/src/cli/cluster/cluster_manager.js +++ b/src/cli/cluster/cluster_manager.js @@ -18,9 +18,12 @@ */ import { resolve } from 'path'; +import { format as formatUrl } from 'url'; +import opn from 'opn'; + import { debounce, invoke, bindAll, once, uniq } from 'lodash'; -import { fromEvent, race } from 'rxjs'; -import { first } from 'rxjs/operators'; +import * as Rx from 'rxjs'; +import { first, mapTo, filter, map, take } from 'rxjs/operators'; import Log from '../log'; import Worker from './worker'; @@ -45,44 +48,40 @@ export default class ClusterManager { this.basePathProxy = basePathProxy; const serverArgv = []; - const optimizerArgv = [ - '--plugins.initialize=false', - '--server.autoListen=false', - ]; + const optimizerArgv = ['--plugins.initialize=false', '--server.autoListen=false']; if (this.basePathProxy) { optimizerArgv.push( `--server.basePath=${this.basePathProxy.basePath}`, - '--server.rewriteBasePath=true', + '--server.rewriteBasePath=true' ); serverArgv.push( `--server.port=${this.basePathProxy.targetPort}`, `--server.basePath=${this.basePathProxy.basePath}`, - '--server.rewriteBasePath=true', + '--server.rewriteBasePath=true' ); } this.workers = [ - this.optimizer = new Worker({ + (this.optimizer = new Worker({ type: 'optmzr', title: 'optimizer', log: this.log, argv: optimizerArgv, - watch: false - }), - - this.server = new Worker({ + watch: false, + })), + (this.server = new Worker({ type: 'server', log: this.log, - argv: serverArgv - }) + argv: serverArgv, + })), ]; // broker messages between workers - this.workers.forEach((worker) => { - worker.on('broadcast', (msg) => { - this.workers.forEach((to) => { + this.workers.forEach(worker => { + worker.on('broadcast', msg => { + this.workers.forEach(to => { if (to !== worker && to.online) { to.fork.send(msg); } @@ -92,29 +91,38 @@ export default class ClusterManager { bindAll(this, 'onWatcherAdd', 'onWatcherError', 'onWatcherChange'); + if (opts.open) { + this.setupOpen(formatUrl({ + protocol: config.get('server.ssl.enabled') ? 'https' : 'http', + hostname: config.get('server.host'), + port: config.get('server.port'), + pathname: (this.basePathProxy ? this.basePathProxy.basePath : ''), + })); + } + if (opts.watch) { const pluginPaths = config.get('plugins.paths'); const scanDirs = config.get('plugins.scanDirs'); - const extraPaths = [ - ...pluginPaths, - ...scanDirs, - ]; + const extraPaths = [...pluginPaths, ...scanDirs]; const extraIgnores = scanDirs .map(scanDir => resolve(scanDir, '*')) .concat(pluginPaths) - .reduce((acc, path) => acc.concat( - resolve(path, 'test'), - resolve(path, 'build'), - resolve(path, 'target'), - resolve(path, 'scripts'), - resolve(path, 'docs'), - ), []); + .reduce( + (acc, path) => + acc.concat( + resolve(path, 'test'), + resolve(path, 'build'), + resolve(path, 'target'), + resolve(path, 'scripts'), + resolve(path, 'docs'), + resolve(path, 'x-pack/plugins/canvas/canvas_plugin_src') // prevents server from restarting twice for Canvas plugin changes + ), + [] + ); this.setupWatching(extraPaths, extraIgnores); - } - - else this.startCluster(); + } else this.startCluster(); } startCluster() { @@ -128,6 +136,28 @@ export default class ClusterManager { } } + setupOpen(openUrl) { + const serverListening$ = Rx.merge( + Rx.fromEvent(this.server, 'listening') + .pipe(mapTo(true)), + Rx.fromEvent(this.server, 'fork:exit') + .pipe(mapTo(false)), + Rx.fromEvent(this.server, 'crashed') + .pipe(mapTo(false)) + ); + + const optimizeSuccess$ = Rx.fromEvent(this.optimizer, 'optimizeStatus') + .pipe(map(msg => !!msg.success)); + + Rx.combineLatest(serverListening$, optimizeSuccess$) + .pipe( + filter(([serverListening, optimizeSuccess]) => serverListening && optimizeSuccess), + take(1), + ) + .toPromise() + .then(() => opn(openUrl)); + } + setupWatching(extraPaths, extraIgnores) { const chokidar = require('chokidar'); const { fromRoot } = require('../../utils'); @@ -142,7 +172,7 @@ export default class ClusterManager { fromRoot('x-pack/server'), fromRoot('x-pack/webpackShims'), fromRoot('config'), - ...extraPaths + ...extraPaths, ].map(path => resolve(path)); this.watcher = chokidar.watch(uniq(watchPaths), { @@ -150,21 +180,24 @@ export default class ClusterManager { ignored: [ /[\\\/](\..*|node_modules|bower_components|public|__[a-z0-9_]+__|coverage)[\\\/]/, /\.test\.js$/, - ...extraIgnores - ] + ...extraIgnores, + ], }); this.watcher.on('add', this.onWatcherAdd); this.watcher.on('error', this.onWatcherError); - this.watcher.on('ready', once(() => { - // start sending changes to workers - this.watcher.removeListener('add', this.onWatcherAdd); - this.watcher.on('all', this.onWatcherChange); + this.watcher.on( + 'ready', + once(() => { + // start sending changes to workers + this.watcher.removeListener('add', this.onWatcherAdd); + this.watcher.on('all', this.onWatcherChange); - this.log.good('watching for changes', `(${this.addedCount} files)`); - this.startCluster(); - })); + this.log.good('watching for changes', `(${this.addedCount} files)`); + this.startCluster(); + }) + ); } setupManualRestart() { @@ -178,7 +211,7 @@ export default class ClusterManager { const rl = readline.createInterface(process.stdin, process.stdout); let nls = 0; - const clear = () => nls = 0; + const clear = () => (nls = 0); const clearSoon = debounce(clear, 2000); rl.setPrompt(''); @@ -230,9 +263,11 @@ export default class ClusterManager { return Promise.resolve(); } - return race( - fromEvent(this.server, 'listening'), - fromEvent(this.server, 'crashed') - ).pipe(first()).toPromise(); + return Rx.race( + Rx.fromEvent(this.server, 'listening'), + Rx.fromEvent(this.server, 'crashed') + ) + .pipe(first()) + .toPromise(); } } diff --git a/src/cli/cluster/worker.js b/src/cli/cluster/worker.js index a7176bc0c734c..2d7c870d38522 100644 --- a/src/cli/cluster/worker.js +++ b/src/cli/cluster/worker.js @@ -125,6 +125,9 @@ export default class Worker extends EventEmitter { case 'WORKER_BROADCAST': this.emit('broadcast', data); break; + case 'OPTIMIZE_STATUS': + this.emit('optimizeStatus', data); + break; case 'WORKER_LISTENING': this.listening = true; this.emit('listening'); diff --git a/src/cli/serve/integration_tests/__snapshots__/invalid_config.test.js.snap b/src/cli/serve/integration_tests/__snapshots__/invalid_config.test.js.snap deleted file mode 100644 index 47b98f740af58..0000000000000 --- a/src/cli/serve/integration_tests/__snapshots__/invalid_config.test.js.snap +++ /dev/null @@ -1,18 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`cli invalid config support exits with statusCode 64 and logs a single line when config is invalid 1`] = ` -Array [ - Object { - "@timestamp": "## @timestamp ##", - "error": "## Error with stack trace ##", - "level": "fatal", - "message": "\\"unknown.key\\", \\"other.unknown.key\\", \\"other.third\\", \\"some.flat.key\\", and \\"some.array\\" settings were not applied. Check for spelling errors and ensure that expected plugins are installed.", - "pid": "## PID ##", - "tags": Array [ - "fatal", - "root", - ], - "type": "error", - }, -] -`; diff --git a/src/cli/serve/integration_tests/__snapshots__/reload_logging_config.test.js.snap b/src/cli/serve/integration_tests/__snapshots__/reload_logging_config.test.js.snap deleted file mode 100644 index fa3e0bcbc8204..0000000000000 --- a/src/cli/serve/integration_tests/__snapshots__/reload_logging_config.test.js.snap +++ /dev/null @@ -1,76 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Server logging configuration should be reloadable via SIGHUP process signaling 1`] = ` -Object { - "code": 0, - "lines": Array [ - Object { - "@timestamp": "## @timestamp ##", - "message": "Plugin initialization disabled.", - "pid": "## PID ##", - "tags": Array [ - "info", - ], - "type": "log", - }, - Object { - "@timestamp": "## @timestamp ##", - "message": "The elasticsearch plugin is disabled. Skipping migrations.", - "pid": "## PID ##", - "tags": Array [ - "warning", - "migration", - ], - "type": "log", - }, - Object { - "@timestamp": "## @timestamp ##", - "message": "Server running at http://localhost:8274", - "pid": "## PID ##", - "tags": Array [ - "info", - "http", - "server", - "listening", - ], - "type": "log", - }, - Object { - "@timestamp": "## @timestamp ##", - "message": "Reloading logging configuration due to SIGHUP.", - "pid": "## PID ##", - "tags": Array [ - "info", - "config", - ], - "type": "log", - }, - Object { - "@timestamp": "## @timestamp ##", - "message": "New logging configuration: -{ - \\"ops\\": { - \\"interval\\": 5000 - }, - \\"logging\\": { - \\"json\\": false, - \\"silent\\": false, - \\"quiet\\": false, - \\"verbose\\": false, - \\"events\\": {}, - \\"dest\\": \\"stdout\\", - \\"filter\\": {}, - \\"useUTC\\": true - } -}", - "pid": "## PID ##", - "tags": Array [ - "info", - "config", - ], - "type": "log", - }, - " log [## timestamp ##] [info][config] Reloaded logging configuration due to SIGHUP.", - ], -} -`; diff --git a/src/cli/serve/integration_tests/invalid_config.test.js b/src/cli/serve/integration_tests/invalid_config.test.js index 495bfbeaa939e..add9654b30ad8 100644 --- a/src/cli/serve/integration_tests/invalid_config.test.js +++ b/src/cli/serve/integration_tests/invalid_config.test.js @@ -45,6 +45,9 @@ describe('cli invalid config support', function () { expect(error).toBe(undefined); expect(status).toBe(64); - expect(logLines).toMatchSnapshot(); + expect(logLines[0].message).toMatch('{ Error: "unknown.key", "other.unknown.key", "other.third", "some.flat.key", and "' + + 'some.array" settings were not applied. Check for spelling errors and ensure that expected plugins are installed.'); + expect(logLines[0].tags).toEqual(['fatal', 'root']); + expect(logLines[0].type).toEqual('log'); }, 20 * 1000); }); diff --git a/src/cli/serve/integration_tests/reload_logging_config.test.js b/src/cli/serve/integration_tests/reload_logging_config.test.js index 61e590f2b51d5..e80a3d9d4fb81 100644 --- a/src/cli/serve/integration_tests/reload_logging_config.test.js +++ b/src/cli/serve/integration_tests/reload_logging_config.test.js @@ -22,8 +22,7 @@ import { writeFileSync } from 'fs'; import { relative, resolve } from 'path'; import { safeDump } from 'js-yaml'; import es from 'event-stream'; -import stripAnsi from 'strip-ansi'; -import { getConfigFromFiles } from '../../../core/server/config'; +import { getConfigFromFiles } from '../../../core/server/config/read_config'; const testConfigFile = follow('__fixtures__/reload_logging_config/kibana.test.yml'); const kibanaPath = follow('../../../../scripts/kibana.js'); @@ -42,19 +41,7 @@ function setLoggingJson(enabled) { writeFileSync(testConfigFile, yaml); } -const prepareJson = obj => ({ - ...obj, - pid: '## PID ##', - '@timestamp': '## @timestamp ##' -}); - -const prepareLogLine = str => - stripAnsi(str.replace( - /\[\d{2}:\d{2}:\d{2}.\d{3}\]/, - '[## timestamp ##]' - )); - -describe.skip('Server logging configuration', function () { +describe('Server logging configuration', function () { let child; let isJson; @@ -80,7 +67,7 @@ describe.skip('Server logging configuration', function () { }); } else { it('should be reloadable via SIGHUP process signaling', function (done) { - expect.assertions(1); + expect.assertions(3); child = spawn('node', [kibanaPath, '--config', testConfigFile]); @@ -88,12 +75,15 @@ describe.skip('Server logging configuration', function () { done(new Error(`error in child process while attempting to reload config. ${err.stack || err.message || err}`)); }); - const lines = []; + let sawJson = false; + let sawNonjson = false; child.on('exit', _code => { const code = _code === null ? 0 : _code; - expect({ code, lines }).toMatchSnapshot(); + expect(code).toEqual(0); + expect(sawJson).toEqual(true); + expect(sawNonjson).toEqual(true); done(); }); @@ -107,23 +97,18 @@ describe.skip('Server logging configuration', function () { if (isJson) { const data = JSON.parse(line); - lines.push(prepareJson(data)); + sawJson = true; if (data.tags.includes('listening')) { switchToPlainTextLog(); } } else if (line.startsWith('{')) { // We have told Kibana to stop logging json, but it hasn't completed - // the switch yet, so we verify the messages that are logged while - // switching over. - - const data = JSON.parse(line); - lines.push(prepareJson(data)); + // the switch yet, so we ignore before switching over. } else { - // Kibana has successfully stopped logging json, so we verify the - // log line and kill the server. + // Kibana has successfully stopped logging json, so kill the server. - lines.push(prepareLogLine(line)); + sawNonjson = true; child.kill(); child = undefined; diff --git a/src/cli/serve/serve.js b/src/cli/serve/serve.js index e1d0421003e07..8de60c209dc7c 100644 --- a/src/cli/serve/serve.js +++ b/src/cli/serve/serve.js @@ -191,6 +191,7 @@ export default function (program) { if (CAN_CLUSTER) { command .option('--dev', 'Run the server with development mode defaults') + .option('--open', 'Open a browser window to the base url after the server is started') .option('--ssl', 'Run the dev server using HTTPS') .option('--no-base-path', 'Don\'t put a proxy in front of the dev server, which adds a random basePath') .option('--no-watch', 'Prevents automatic restarts of the server in --dev mode'); @@ -214,6 +215,7 @@ export default function (program) { configs: [].concat(opts.config || []), cliArgs: { dev: !!opts.dev, + open: !!opts.open, envName: unknownOptions.env ? unknownOptions.env.name : undefined, quiet: !!opts.quiet, silent: !!opts.silent, diff --git a/src/cli_plugin/install/downloaders/http.js b/src/cli_plugin/install/downloaders/http.js index a704f3df77c1d..cd9a1f8f3309d 100644 --- a/src/cli_plugin/install/downloaders/http.js +++ b/src/cli_plugin/install/downloaders/http.js @@ -19,7 +19,6 @@ import Wreck from 'wreck'; import Progress from '../progress'; -import { fromNode as fn } from 'bluebird'; import { createWriteStream } from 'fs'; import HttpProxyAgent from 'http-proxy-agent'; import HttpsProxyAgent from 'https-proxy-agent'; @@ -41,32 +40,31 @@ function getProxyAgent(sourceUrl, logger) { } } -function sendRequest({ sourceUrl, timeout }, logger) { +async function sendRequest({ sourceUrl, timeout }, logger) { const maxRedirects = 11; //Because this one goes to 11. - return fn(cb => { - const reqOptions = { timeout, redirects: maxRedirects }; - const proxyAgent = getProxyAgent(sourceUrl, logger); + const reqOptions = { timeout, redirects: maxRedirects }; + const proxyAgent = getProxyAgent(sourceUrl, logger); - if (proxyAgent) { - reqOptions.agent = proxyAgent; - } - - const req = Wreck.request('GET', sourceUrl, reqOptions, (err, resp) => { - if (err) { - if (err.code === 'ECONNREFUSED') { - err = new Error('ENOTFOUND'); - } + if (proxyAgent) { + reqOptions.agent = proxyAgent; + } - return cb(err); - } + try { + const promise = Wreck.request('GET', sourceUrl, reqOptions); + const req = promise.req; + const resp = await promise; + if (resp.statusCode >= 400) { + throw new Error('ENOTFOUND'); + } - if (resp.statusCode >= 400) { - return cb(new Error('ENOTFOUND')); - } + return { req, resp }; + } catch (err) { + if (err.code === 'ECONNREFUSED') { + err = new Error('ENOTFOUND'); + } - cb(null, { req, resp }); - }); - }); + throw err; + } } function downloadResponse({ resp, targetPath, progress }) { diff --git a/src/core/public/chrome/chrome_service.test.ts b/src/core/public/chrome/chrome_service.test.ts new file mode 100644 index 0000000000000..5840f826ba125 --- /dev/null +++ b/src/core/public/chrome/chrome_service.test.ts @@ -0,0 +1,239 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import * as Rx from 'rxjs'; +import { toArray } from 'rxjs/operators'; + +const store = new Map(); +(window as any).localStorage = { + setItem: (key: string, value: string) => store.set(String(key), String(value)), + getItem: (key: string) => store.get(String(key)), + removeItem: (key: string) => store.delete(String(key)), +}; + +import { ChromeService } from './chrome_service'; + +beforeEach(() => { + store.clear(); +}); + +describe('start', () => { + describe('brand', () => { + it('updates/emits the brand as it changes', async () => { + const service = new ChromeService(); + const start = service.start(); + const promise = start + .getBrand$() + .pipe(toArray()) + .toPromise(); + + start.setBrand({ + logo: 'big logo', + smallLogo: 'not so big logo', + }); + start.setBrand({ + logo: 'big logo without small logo', + }); + service.stop(); + + await expect(promise).resolves.toMatchInlineSnapshot(` +Array [ + Object {}, + Object { + "logo": "big logo", + "smallLogo": "not so big logo", + }, + Object { + "logo": "big logo without small logo", + "smallLogo": undefined, + }, +] +`); + }); + }); + + describe('visibility', () => { + it('updates/emits the visibility', async () => { + const service = new ChromeService(); + const start = service.start(); + const promise = start + .getIsVisible$() + .pipe(toArray()) + .toPromise(); + + start.setIsVisible(true); + start.setIsVisible(false); + start.setIsVisible(true); + service.stop(); + + await expect(promise).resolves.toMatchInlineSnapshot(` +Array [ + true, + true, + false, + true, +] +`); + }); + + it('always emits false if embed query string is in hash when started', async () => { + window.history.pushState(undefined, '', '#/home?a=b&embed=true'); + + const service = new ChromeService(); + const start = service.start(); + const promise = start + .getIsVisible$() + .pipe(toArray()) + .toPromise(); + + start.setIsVisible(true); + start.setIsVisible(false); + start.setIsVisible(true); + service.stop(); + + await expect(promise).resolves.toMatchInlineSnapshot(` +Array [ + false, + false, + false, + false, +] +`); + }); + }); + + describe('is collapsed', () => { + it('updates/emits isCollapsed', async () => { + const service = new ChromeService(); + const start = service.start(); + const promise = start + .getIsCollapsed$() + .pipe(toArray()) + .toPromise(); + + start.setIsCollapsed(true); + start.setIsCollapsed(false); + start.setIsCollapsed(true); + service.stop(); + + await expect(promise).resolves.toMatchInlineSnapshot(` +Array [ + false, + true, + false, + true, +] +`); + }); + + it('only stores true in localStorage', async () => { + const service = new ChromeService(); + const start = service.start(); + + start.setIsCollapsed(true); + expect(store.size).toBe(1); + + start.setIsCollapsed(false); + expect(store.size).toBe(0); + }); + }); + + describe('application classes', () => { + it('updates/emits the application classes', async () => { + const service = new ChromeService(); + const start = service.start(); + const promise = start + .getApplicationClasses$() + .pipe(toArray()) + .toPromise(); + + start.addApplicationClass('foo'); + start.addApplicationClass('foo'); + start.addApplicationClass('bar'); + start.addApplicationClass('bar'); + start.addApplicationClass('baz'); + start.removeApplicationClass('bar'); + start.removeApplicationClass('foo'); + service.stop(); + + await expect(promise).resolves.toMatchInlineSnapshot(` +Array [ + Array [], + Array [ + "foo", + ], + Array [ + "foo", + ], + Array [ + "foo", + "bar", + ], + Array [ + "foo", + "bar", + ], + Array [ + "foo", + "bar", + "baz", + ], + Array [ + "foo", + "baz", + ], + Array [ + "baz", + ], +] +`); + }); + }); +}); + +describe('stop', () => { + it('completes applicationClass$, isCollapsed$, isVisible$, and brand$ observables', async () => { + const service = new ChromeService(); + const start = service.start(); + const promise = Rx.combineLatest( + start.getBrand$(), + start.getApplicationClasses$(), + start.getIsCollapsed$(), + start.getIsVisible$() + ).toPromise(); + + service.stop(); + await promise; + }); + + it('completes immediately if service already stopped', async () => { + const service = new ChromeService(); + const start = service.start(); + service.stop(); + + await expect( + Rx.combineLatest( + start.getBrand$(), + start.getApplicationClasses$(), + start.getIsCollapsed$(), + start.getIsVisible$() + ).toPromise() + ).resolves.toBe(undefined); + }); +}); diff --git a/src/core/public/chrome/chrome_service.ts b/src/core/public/chrome/chrome_service.ts new file mode 100644 index 0000000000000..1e634aa42e2d8 --- /dev/null +++ b/src/core/public/chrome/chrome_service.ts @@ -0,0 +1,146 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import * as Url from 'url'; + +import * as Rx from 'rxjs'; +import { map, takeUntil } from 'rxjs/operators'; + +const IS_COLLAPSED_KEY = 'core.chrome.isCollapsed'; + +function isEmbedParamInHash() { + const { query } = Url.parse(String(window.location.hash).slice(1), true); + return Boolean(query.embed); +} + +export interface Brand { + logo?: string; + smallLogo?: string; +} + +export class ChromeService { + private readonly stop$ = new Rx.ReplaySubject(1); + + public start() { + const FORCE_HIDDEN = isEmbedParamInHash(); + + const brand$ = new Rx.BehaviorSubject({}); + const isVisible$ = new Rx.BehaviorSubject(true); + const isCollapsed$ = new Rx.BehaviorSubject(!!localStorage.getItem(IS_COLLAPSED_KEY)); + const applicationClasses$ = new Rx.BehaviorSubject>(new Set()); + + return { + /** + * Set the brand configuration. Normally the `logo` property will be rendered as the + * CSS background for the home link in the chrome navigation, but when the page is + * rendered in a small window the `smallLogo` will be used and rendered at about + * 45px wide. + * + * example: + * + * chrome.setBrand({ + * logo: 'url(/plugins/app/logo.png) center no-repeat' + * smallLogo: 'url(/plugins/app/logo-small.png) center no-repeat' + * }) + * + */ + setBrand: (brand: Brand) => { + brand$.next( + Object.freeze({ + logo: brand.logo, + smallLogo: brand.smallLogo, + }) + ); + }, + + /** + * Get an observable of the current brand information. + */ + getBrand$: () => brand$.pipe(takeUntil(this.stop$)), + + /** + * Set the temporary visibility for the chrome. This does nothing if the chrome is hidden + * by default and should be used to hide the chrome for things like full-screen modes + * with an exit button. + */ + setIsVisible: (visibility: boolean) => { + isVisible$.next(visibility); + }, + + /** + * Get an observable of the current visibility state of the chrome. + */ + getIsVisible$: () => + isVisible$.pipe( + map(visibility => (FORCE_HIDDEN ? false : visibility)), + takeUntil(this.stop$) + ), + + /** + * Set the collapsed state of the chrome navigation. + */ + setIsCollapsed: (isCollapsed: boolean) => { + isCollapsed$.next(isCollapsed); + if (isCollapsed) { + localStorage.setItem(IS_COLLAPSED_KEY, 'true'); + } else { + localStorage.removeItem(IS_COLLAPSED_KEY); + } + }, + + /** + * Get an observable of the current collapsed state of the chrome. + */ + getIsCollapsed$: () => isCollapsed$.pipe(takeUntil(this.stop$)), + + /** + * Add a className that should be set on the application container. + */ + addApplicationClass: (className: string) => { + const update = new Set([...applicationClasses$.getValue()]); + update.add(className); + applicationClasses$.next(update); + }, + + /** + * Remove a className added with `addApplicationClass()`. If className is unknown it is ignored. + */ + removeApplicationClass: (className: string) => { + const update = new Set([...applicationClasses$.getValue()]); + update.delete(className); + applicationClasses$.next(update); + }, + + /** + * Get the current set of classNames that will be set on the application container. + */ + getApplicationClasses$: () => + applicationClasses$.pipe( + map(set => [...set]), + takeUntil(this.stop$) + ), + }; + } + + public stop() { + this.stop$.next(); + } +} + +export type ChromeStartContract = ReturnType; diff --git a/src/core/public/chrome/index.ts b/src/core/public/chrome/index.ts new file mode 100644 index 0000000000000..afc3d237ececb --- /dev/null +++ b/src/core/public/chrome/index.ts @@ -0,0 +1,20 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { ChromeService, ChromeStartContract, Brand } from './chrome_service'; diff --git a/src/core/public/core_system.test.ts b/src/core/public/core_system.test.ts index e5c5319fb85ed..29fa38fb5ed91 100644 --- a/src/core/public/core_system.test.ts +++ b/src/core/public/core_system.test.ts @@ -18,6 +18,7 @@ */ import { BasePathService } from './base_path'; +import { ChromeService } from './chrome'; import { FatalErrorsService } from './fatal_errors'; import { InjectedMetadataService } from './injected_metadata'; import { LegacyPlatformService } from './legacy_platform'; @@ -92,11 +93,21 @@ const MockUiSettingsService = jest.fn(function _MockNotificat this: any ) { this.start = jest.fn().mockReturnValue(mockUiSettingsContract); + this.stop = jest.fn(); }); jest.mock('./ui_settings', () => ({ UiSettingsService: MockUiSettingsService, })); +const mockChromeStartContract = {}; +const MockChromeService = jest.fn(function _MockNotificationsService(this: any) { + this.start = jest.fn().mockReturnValue(mockChromeStartContract); + this.stop = jest.fn(); +}); +jest.mock('./chrome', () => ({ + ChromeService: MockChromeService, +})); + import { CoreSystem } from './core_system'; jest.spyOn(CoreSystem.prototype, 'stop'); @@ -124,6 +135,7 @@ describe('constructor', () => { expect(MockLoadingCountService).toHaveBeenCalledTimes(1); expect(MockBasePathService).toHaveBeenCalledTimes(1); expect(MockUiSettingsService).toHaveBeenCalledTimes(1); + expect(MockChromeService).toHaveBeenCalledTimes(1); }); it('passes injectedMetadata param to InjectedMetadataService', () => { @@ -231,6 +243,28 @@ describe('#stop', () => { expect(loadingCountService.stop).toHaveBeenCalled(); }); + it('calls chrome.stop()', () => { + const coreSystem = new CoreSystem({ + ...defaultCoreSystemParams, + }); + + const [chromeService] = MockChromeService.mock.instances; + expect(chromeService.stop).not.toHaveBeenCalled(); + coreSystem.stop(); + expect(chromeService.stop).toHaveBeenCalled(); + }); + + it('calls uiSettings.stop()', () => { + const coreSystem = new CoreSystem({ + ...defaultCoreSystemParams, + }); + + const [uiSettings] = MockUiSettingsService.mock.instances; + expect(uiSettings.stop).not.toHaveBeenCalled(); + coreSystem.stop(); + expect(uiSettings.stop).toHaveBeenCalled(); + }); + it('clears the rootDomElement', () => { const rootDomElement = document.createElement('div'); const coreSystem = new CoreSystem({ @@ -312,6 +346,13 @@ describe('#start()', () => { expect(mockInstance.start).toHaveBeenCalledTimes(1); expect(mockInstance.start).toHaveBeenCalledWith(); }); + + it('calls chrome#start()', () => { + startCore(); + const [mockInstance] = MockChromeService.mock.instances; + expect(mockInstance.start).toHaveBeenCalledTimes(1); + expect(mockInstance.start).toHaveBeenCalledWith(); + }); }); describe('LegacyPlatform targetDomElement', () => { diff --git a/src/core/public/core_system.ts b/src/core/public/core_system.ts index 5d39a883e39f8..a7df47f37e89b 100644 --- a/src/core/public/core_system.ts +++ b/src/core/public/core_system.ts @@ -20,6 +20,7 @@ import './core.css'; import { BasePathService } from './base_path'; +import { ChromeService } from './chrome'; import { FatalErrorsService } from './fatal_errors'; import { InjectedMetadataParams, InjectedMetadataService } from './injected_metadata'; import { LegacyPlatformParams, LegacyPlatformService } from './legacy_platform'; @@ -48,6 +49,7 @@ export class CoreSystem { private readonly loadingCount: LoadingCountService; private readonly uiSettings: UiSettingsService; private readonly basePath: BasePathService; + private readonly chrome: ChromeService; private readonly rootDomElement: HTMLElement; private readonly notificationsTargetDomElement: HTMLDivElement; @@ -78,6 +80,7 @@ export class CoreSystem { this.loadingCount = new LoadingCountService(); this.basePath = new BasePathService(); this.uiSettings = new UiSettingsService(); + this.chrome = new ChromeService(); this.legacyPlatformTargetDomElement = document.createElement('div'); this.legacyPlatform = new LegacyPlatformService({ @@ -106,6 +109,8 @@ export class CoreSystem { injectedMetadata, basePath, }); + const chrome = this.chrome.start(); + this.legacyPlatform.start({ injectedMetadata, fatalErrors, @@ -113,6 +118,7 @@ export class CoreSystem { loadingCount, basePath, uiSettings, + chrome, }); } catch (error) { this.fatalErrors.add(error); @@ -123,6 +129,8 @@ export class CoreSystem { this.legacyPlatform.stop(); this.notifications.stop(); this.loadingCount.stop(); + this.uiSettings.stop(); + this.chrome.stop(); this.rootDomElement.textContent = ''; } } diff --git a/src/core/public/fatal_errors/fatal_errors_service.tsx b/src/core/public/fatal_errors/fatal_errors_service.tsx index 3a7e821a368a6..942d05c41a51c 100644 --- a/src/core/public/fatal_errors/fatal_errors_service.tsx +++ b/src/core/public/fatal_errors/fatal_errors_service.tsx @@ -36,12 +36,17 @@ export class FatalErrorsService { private readonly errorInfo$ = new Rx.ReplaySubject(); constructor(private params: FatalErrorsParams) { - this.errorInfo$.pipe(first(), tap(() => this.onFirstError())).subscribe({ - error: error => { - // tslint:disable-next-line no-console - console.error('Uncaught error in fatal error screen internals', error); - }, - }); + this.errorInfo$ + .pipe( + first(), + tap(() => this.onFirstError()) + ) + .subscribe({ + error: error => { + // tslint:disable-next-line no-console + console.error('Uncaught error in fatal error screen internals', error); + }, + }); } public add = (error: Error | string, source?: string) => { diff --git a/src/core/public/legacy_platform/__snapshots__/legacy_platform_service.test.ts.snap b/src/core/public/legacy_platform/__snapshots__/legacy_platform_service.test.ts.snap index 9e9d34ebfe02a..b4a3fb8eface6 100644 --- a/src/core/public/legacy_platform/__snapshots__/legacy_platform_service.test.ts.snap +++ b/src/core/public/legacy_platform/__snapshots__/legacy_platform_service.test.ts.snap @@ -9,6 +9,9 @@ Array [ "ui/chrome/api/base_path", "ui/chrome/api/ui_settings", "ui/chrome/api/injected_vars", + "ui/chrome/api/controls", + "ui/chrome/api/theme", + "ui/chrome/services/global_nav_state", "ui/chrome", "legacy files", ] @@ -23,6 +26,9 @@ Array [ "ui/chrome/api/base_path", "ui/chrome/api/ui_settings", "ui/chrome/api/injected_vars", + "ui/chrome/api/controls", + "ui/chrome/api/theme", + "ui/chrome/services/global_nav_state", "ui/test_harness", "legacy files", ] diff --git a/src/core/public/legacy_platform/legacy_platform_service.test.ts b/src/core/public/legacy_platform/legacy_platform_service.test.ts index 913cfc79a6ae9..8abf529a2a6bf 100644 --- a/src/core/public/legacy_platform/legacy_platform_service.test.ts +++ b/src/core/public/legacy_platform/legacy_platform_service.test.ts @@ -94,6 +94,30 @@ jest.mock('ui/chrome/api/injected_vars', () => { }; }); +const mockChromeControlsInit = jest.fn(); +jest.mock('ui/chrome/api/controls', () => { + mockLoadOrder.push('ui/chrome/api/controls'); + return { + __newPlatformInit__: mockChromeControlsInit, + }; +}); + +const mockChromeThemeInit = jest.fn(); +jest.mock('ui/chrome/api/theme', () => { + mockLoadOrder.push('ui/chrome/api/theme'); + return { + __newPlatformInit__: mockChromeThemeInit, + }; +}); + +const mockGlobalNavStateInit = jest.fn(); +jest.mock('ui/chrome/services/global_nav_state', () => { + mockLoadOrder.push('ui/chrome/services/global_nav_state'); + return { + __newPlatformInit__: mockGlobalNavStateInit, + }; +}); + import { LegacyPlatformService } from './legacy_platform_service'; const fatalErrorsStartContract = {} as any; @@ -118,6 +142,7 @@ const basePathStartContract = { }; const uiSettingsStartContract: any = {}; +const chromeStartContract: any = {}; const defaultParams = { targetDomElement: document.createElement('div'), @@ -133,6 +158,7 @@ const defaultStartDeps = { loadingCount: loadingCountStartContract, basePath: basePathStartContract, uiSettings: uiSettingsStartContract, + chrome: chromeStartContract, }; afterEach(() => { @@ -224,6 +250,39 @@ describe('#start()', () => { expect(mockInjectedVarsInit).toHaveBeenCalledWith(injectedMetadataStartContract); }); + it('passes chrome service to ui/chrome/api/controls', () => { + const legacyPlatform = new LegacyPlatformService({ + ...defaultParams, + }); + + legacyPlatform.start(defaultStartDeps); + + expect(mockChromeControlsInit).toHaveBeenCalledTimes(1); + expect(mockChromeControlsInit).toHaveBeenCalledWith(chromeStartContract); + }); + + it('passes chrome service to ui/chrome/api/theme', () => { + const legacyPlatform = new LegacyPlatformService({ + ...defaultParams, + }); + + legacyPlatform.start(defaultStartDeps); + + expect(mockChromeThemeInit).toHaveBeenCalledTimes(1); + expect(mockChromeThemeInit).toHaveBeenCalledWith(chromeStartContract); + }); + + it('passes chrome service to ui/chrome/api/global_nav_state', () => { + const legacyPlatform = new LegacyPlatformService({ + ...defaultParams, + }); + + legacyPlatform.start(defaultStartDeps); + + expect(mockGlobalNavStateInit).toHaveBeenCalledTimes(1); + expect(mockGlobalNavStateInit).toHaveBeenCalledWith(chromeStartContract); + }); + describe('useLegacyTestHarness = false', () => { it('passes the targetDomElement to ui/chrome', () => { const legacyPlatform = new LegacyPlatformService({ diff --git a/src/core/public/legacy_platform/legacy_platform_service.ts b/src/core/public/legacy_platform/legacy_platform_service.ts index 2b7ae5f2bc894..8354b9592f840 100644 --- a/src/core/public/legacy_platform/legacy_platform_service.ts +++ b/src/core/public/legacy_platform/legacy_platform_service.ts @@ -19,6 +19,7 @@ import angular from 'angular'; import { BasePathStartContract } from '../base_path'; +import { ChromeStartContract } from '../chrome'; import { FatalErrorsStartContract } from '../fatal_errors'; import { InjectedMetadataStartContract } from '../injected_metadata'; import { LoadingCountStartContract } from '../loading_count'; @@ -32,6 +33,7 @@ interface Deps { loadingCount: LoadingCountStartContract; basePath: BasePathStartContract; uiSettings: UiSettingsClient; + chrome: ChromeStartContract; } export interface LegacyPlatformParams { @@ -57,6 +59,7 @@ export class LegacyPlatformService { loadingCount, basePath, uiSettings, + chrome, }: Deps) { // Inject parts of the new platform into parts of the legacy platform // so that legacy APIs/modules can mimic their new platform counterparts @@ -67,6 +70,9 @@ export class LegacyPlatformService { require('ui/chrome/api/base_path').__newPlatformInit__(basePath); require('ui/chrome/api/ui_settings').__newPlatformInit__(uiSettings); require('ui/chrome/api/injected_vars').__newPlatformInit__(injectedMetadata); + require('ui/chrome/api/controls').__newPlatformInit__(chrome); + require('ui/chrome/api/theme').__newPlatformInit__(chrome); + require('ui/chrome/services/global_nav_state').__newPlatformInit__(chrome); // Load the bootstrap module before loading the legacy platform files so that // the bootstrap module can modify the environment a bit first diff --git a/src/core/server/config/__mocks__/env.ts b/src/core/server/config/__mocks__/env.ts index 839b3d4983462..2f9c0575858c3 100644 --- a/src/core/server/config/__mocks__/env.ts +++ b/src/core/server/config/__mocks__/env.ts @@ -30,6 +30,7 @@ export function getEnvOptions(options: DeepPartial = {}): EnvOptions configs: options.configs || [], cliArgs: { dev: true, + open: false, quiet: false, silent: false, watch: false, diff --git a/src/core/server/config/__snapshots__/env.test.ts.snap b/src/core/server/config/__snapshots__/env.test.ts.snap index ebe6c4ea83470..ba106ca56bf85 100644 --- a/src/core/server/config/__snapshots__/env.test.ts.snap +++ b/src/core/server/config/__snapshots__/env.test.ts.snap @@ -7,6 +7,7 @@ Env { "basePath": false, "dev": true, "envName": "development", + "open": false, "optimize": false, "quiet": false, "repl": false, @@ -17,7 +18,6 @@ Env { "configs": Array [ "/some/other/path/some-kibana.yml", ], - "corePluginsDir": "/test/cwd/core_plugins", "homeDir": "/test/cwd", "isDevClusterMaster": false, "logDir": "/test/cwd/log", @@ -43,6 +43,7 @@ Env { "basePath": false, "dev": false, "envName": "production", + "open": false, "optimize": false, "quiet": false, "repl": false, @@ -53,7 +54,6 @@ Env { "configs": Array [ "/some/other/path/some-kibana.yml", ], - "corePluginsDir": "/test/cwd/core_plugins", "homeDir": "/test/cwd", "isDevClusterMaster": false, "logDir": "/test/cwd/log", @@ -78,6 +78,7 @@ Env { "cliArgs": Object { "basePath": false, "dev": true, + "open": false, "optimize": false, "quiet": false, "repl": false, @@ -88,7 +89,6 @@ Env { "configs": Array [ "/test/cwd/config/kibana.yml", ], - "corePluginsDir": "/test/cwd/core_plugins", "homeDir": "/test/cwd", "isDevClusterMaster": true, "logDir": "/test/cwd/log", @@ -113,6 +113,7 @@ Env { "cliArgs": Object { "basePath": false, "dev": false, + "open": false, "optimize": false, "quiet": false, "repl": false, @@ -123,7 +124,6 @@ Env { "configs": Array [ "/some/other/path/some-kibana.yml", ], - "corePluginsDir": "/test/cwd/core_plugins", "homeDir": "/test/cwd", "isDevClusterMaster": false, "logDir": "/test/cwd/log", @@ -148,6 +148,7 @@ Env { "cliArgs": Object { "basePath": false, "dev": false, + "open": false, "optimize": false, "quiet": false, "repl": false, @@ -158,7 +159,6 @@ Env { "configs": Array [ "/some/other/path/some-kibana.yml", ], - "corePluginsDir": "/test/cwd/core_plugins", "homeDir": "/test/cwd", "isDevClusterMaster": false, "logDir": "/test/cwd/log", @@ -183,6 +183,7 @@ Env { "cliArgs": Object { "basePath": false, "dev": false, + "open": false, "optimize": false, "quiet": false, "repl": false, @@ -193,7 +194,6 @@ Env { "configs": Array [ "/some/other/path/some-kibana.yml", ], - "corePluginsDir": "/some/home/dir/core_plugins", "homeDir": "/some/home/dir", "isDevClusterMaster": false, "logDir": "/some/home/dir/log", diff --git a/src/core/server/config/config_service.test.ts b/src/core/server/config/config_service.test.ts index 22598b2a971d0..086b465b8d42e 100644 --- a/src/core/server/config/config_service.test.ts +++ b/src/core/server/config/config_service.test.ts @@ -25,7 +25,7 @@ import { first } from 'rxjs/operators'; const mockPackage = new Proxy({ raw: {} as any }, { get: (obj, prop) => obj.raw[prop] }); jest.mock('../../../utils/package_json', () => ({ pkg: mockPackage })); -import { schema, Type, TypeOf } from './schema'; +import { schema, Type, TypeOf } from '@kbn/config-schema'; import { ConfigService, Env, ObjectToConfigAdapter } from '.'; import { logger } from '../logging/__mocks__'; diff --git a/src/core/server/config/config_service.ts b/src/core/server/config/config_service.ts index a3314d5657141..0d71fbeb5c986 100644 --- a/src/core/server/config/config_service.ts +++ b/src/core/server/config/config_service.ts @@ -17,13 +17,13 @@ * under the License. */ +import { Type } from '@kbn/config-schema'; import { isEqual } from 'lodash'; import { Observable } from 'rxjs'; import { distinctUntilChanged, first, map } from 'rxjs/operators'; import { Config, ConfigPath, ConfigWithSchema, Env } from '.'; import { Logger, LoggerFactory } from '../logging'; -import { Type } from './schema'; export class ConfigService { private readonly log: Logger; @@ -146,7 +146,10 @@ export class ConfigService { private getDistinctConfig(path: ConfigPath) { this.markAsHandled(path); - return this.config$.pipe(map(config => config.get(path)), distinctUntilChanged(isEqual)); + return this.config$.pipe( + map(config => config.get(path)), + distinctUntilChanged(isEqual) + ); } private markAsHandled(path: ConfigPath) { diff --git a/src/core/server/config/config_with_schema.ts b/src/core/server/config/config_with_schema.ts index 31de12a95cc9f..1c392b93b6a75 100644 --- a/src/core/server/config/config_with_schema.ts +++ b/src/core/server/config/config_with_schema.ts @@ -18,8 +18,8 @@ */ // TODO inline all of these +import { Type, TypeOf } from '@kbn/config-schema'; import { Env } from './env'; -import { Type, TypeOf } from './schema'; /** * Interface that defines the static side of a config class. diff --git a/src/core/server/config/env.ts b/src/core/server/config/env.ts index b5a1092724b84..9dcdab0faa8af 100644 --- a/src/core/server/config/env.ts +++ b/src/core/server/config/env.ts @@ -22,7 +22,7 @@ import process from 'process'; import { pkg } from '../../../utils/package_json'; -interface PackageInfo { +export interface PackageInfo { version: string; branch: string; buildNum: number; @@ -50,6 +50,7 @@ export interface CliArgs { repl: boolean; basePath: boolean; optimize: boolean; + open: boolean; } export class Env { @@ -61,7 +62,6 @@ export class Env { } public readonly configDir: string; - public readonly corePluginsDir: string; public readonly binDir: string; public readonly logDir: string; public readonly staticFilesDir: string; @@ -96,7 +96,6 @@ export class Env { */ constructor(readonly homeDir: string, options: EnvOptions) { this.configDir = resolve(this.homeDir, 'config'); - this.corePluginsDir = resolve(this.homeDir, 'core_plugins'); this.binDir = resolve(this.homeDir, 'bin'); this.logDir = resolve(this.homeDir, 'log'); this.staticFilesDir = resolve(this.homeDir, 'ui'); diff --git a/src/core/server/config/index.ts b/src/core/server/config/index.ts index bbddec03a0f41..51fcd8a41fbc3 100644 --- a/src/core/server/config/index.ts +++ b/src/core/server/config/index.ts @@ -22,5 +22,5 @@ export { RawConfigService } from './raw_config_service'; export { Config, ConfigPath } from './config'; /** @internal */ export { ObjectToConfigAdapter } from './object_to_config_adapter'; -export { Env, CliArgs } from './env'; +export { Env, CliArgs, PackageInfo } from './env'; export { ConfigWithSchema } from './config_with_schema'; diff --git a/src/core/server/config/schema/internals/index.ts b/src/core/server/config/schema/internals/index.ts deleted file mode 100644 index f97fcf8b4c1f0..0000000000000 --- a/src/core/server/config/schema/internals/index.ts +++ /dev/null @@ -1,288 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import * as Joi from 'joi'; -import { - AnySchema, - JoiRoot, - Reference, - Rules, - SchemaLike, - State, - ValidationErrorItem, - ValidationOptions, -} from 'joi'; -import { isPlainObject } from 'lodash'; -import { isDuration } from 'moment'; -import { ByteSizeValue, ensureByteSizeValue } from '../byte_size_value'; -import { ensureDuration } from '../duration'; - -export { AnySchema, Reference, SchemaLike, ValidationErrorItem }; - -function isMap(o: any): o is Map { - return o instanceof Map; -} - -const anyCustomRule: Rules = { - name: 'custom', - params: { - validator: Joi.func() - .maxArity(1) - .required(), - }, - validate(params, value, state, options) { - let validationResultMessage; - try { - validationResultMessage = params.validator(value); - } catch (e) { - validationResultMessage = e.message || e; - } - - if (typeof validationResultMessage === 'string') { - return this.createError( - 'any.custom', - { value, message: validationResultMessage }, - state, - options - ); - } - - return value; - }, -}; - -export const internals = Joi.extend([ - { - name: 'any', - - rules: [anyCustomRule], - }, - { - name: 'boolean', - - base: Joi.boolean(), - coerce(value: any, state: State, options: ValidationOptions) { - // If value isn't defined, let Joi handle default value if it's defined. - if (value !== undefined && typeof value !== 'boolean') { - return this.createError('boolean.base', { value }, state, options); - } - - return value; - }, - rules: [anyCustomRule], - }, - { - name: 'string', - - base: Joi.string(), - rules: [anyCustomRule], - }, - { - name: 'bytes', - - coerce(value: any, state: State, options: ValidationOptions) { - try { - if (typeof value === 'string') { - return ByteSizeValue.parse(value); - } - - if (typeof value === 'number') { - return new ByteSizeValue(value); - } - } catch (e) { - return this.createError('bytes.parse', { value, message: e.message }, state, options); - } - - return value; - }, - pre(value: any, state: State, options: ValidationOptions) { - // If value isn't defined, let Joi handle default value if it's defined. - if (value instanceof ByteSizeValue) { - return value as any; - } - - return this.createError('bytes.base', { value }, state, options); - }, - rules: [ - anyCustomRule, - { - name: 'min', - params: { - limit: Joi.alternatives([Joi.number(), Joi.string()]).required(), - }, - validate(params, value, state, options) { - const limit = ensureByteSizeValue(params.limit); - if (value.isLessThan(limit)) { - return this.createError('bytes.min', { value, limit }, state, options); - } - - return value; - }, - }, - { - name: 'max', - params: { - limit: Joi.alternatives([Joi.number(), Joi.string()]).required(), - }, - validate(params, value, state, options) { - const limit = ensureByteSizeValue(params.limit); - if (value.isGreaterThan(limit)) { - return this.createError('bytes.max', { value, limit }, state, options); - } - - return value; - }, - }, - ], - }, - { - name: 'duration', - - coerce(value: any, state: State, options: ValidationOptions) { - try { - if (typeof value === 'string' || typeof value === 'number') { - return ensureDuration(value); - } - } catch (e) { - return this.createError('duration.parse', { value, message: e.message }, state, options); - } - - return value; - }, - pre(value: any, state: State, options: ValidationOptions) { - if (!isDuration(value)) { - return this.createError('duration.base', { value }, state, options); - } - - return value; - }, - rules: [anyCustomRule], - }, - { - name: 'number', - - base: Joi.number(), - coerce(value: any, state: State, options: ValidationOptions) { - // If value isn't defined, let Joi handle default value if it's defined. - if (value === undefined) { - return value; - } - - // Do we want to allow strings that can be converted, e.g. "2"? (Joi does) - // (this can for example be nice in http endpoints with query params) - // - // From Joi docs on `Joi.number`: - // > Generates a schema object that matches a number data type (as well as - // > strings that can be converted to numbers) - const coercedValue: any = typeof value === 'string' ? Number(value) : value; - if (typeof coercedValue !== 'number' || isNaN(coercedValue)) { - return this.createError('number.base', { value }, state, options); - } - - return value; - }, - rules: [anyCustomRule], - }, - { - name: 'object', - - base: Joi.object(), - coerce(value: any, state: State, options: ValidationOptions) { - // If value isn't defined, let Joi handle default value if it's defined. - if (value !== undefined && !isPlainObject(value)) { - return this.createError('object.base', { value }, state, options); - } - - return value; - }, - rules: [anyCustomRule], - }, - { - name: 'map', - - coerce(value: any, state: State, options: ValidationOptions) { - if (isPlainObject(value)) { - return new Map(Object.entries(value)); - } - - return value; - }, - pre(value: any, state: State, options: ValidationOptions) { - if (!isMap(value)) { - return this.createError('map.base', { value }, state, options); - } - - return value as any; - }, - rules: [ - anyCustomRule, - { - name: 'entries', - params: { - key: Joi.object().schema(), - value: Joi.object().schema(), - }, - validate(params, value, state, options) { - const result = new Map(); - for (const [entryKey, entryValue] of value) { - const { value: validatedEntryKey, error: keyError } = Joi.validate( - entryKey, - params.key - ); - - if (keyError) { - return this.createError('map.key', { entryKey, reason: keyError }, state, options); - } - - const { value: validatedEntryValue, error: valueError } = Joi.validate( - entryValue, - params.value - ); - - if (valueError) { - return this.createError( - 'map.value', - { entryKey, reason: valueError }, - state, - options - ); - } - - result.set(validatedEntryKey, validatedEntryValue); - } - - return result as any; - }, - }, - ], - }, - { - name: 'array', - - base: Joi.array(), - coerce(value: any, state: State, options: ValidationOptions) { - // If value isn't defined, let Joi handle default value if it's defined. - if (value !== undefined && !Array.isArray(value)) { - return this.createError('array.base', { value }, state, options); - } - - return value; - }, - rules: [anyCustomRule], - }, -]) as JoiRoot; diff --git a/src/core/server/config/schema/internals/internals_schema.d.ts b/src/core/server/config/schema/internals/internals_schema.d.ts deleted file mode 100644 index 41fa611ac205c..0000000000000 --- a/src/core/server/config/schema/internals/internals_schema.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import * as Joi from 'joi'; -import { ByteSizeValue } from '../byte_size_value'; - -declare module 'joi' { - interface BytesSchema extends AnySchema { - min(limit: number | string | ByteSizeValue): this; - max(limit: number | string | ByteSizeValue): this; - } - - interface MapSchema extends AnySchema { - entries(key: AnySchema, value: AnySchema): this; - } - - // In more recent Joi types we can use `Root` type instead of `typeof Joi`. - export type JoiRoot = typeof Joi & { - bytes: () => BytesSchema; - duration: () => AnySchema; - map: () => MapSchema; - }; - - interface AnySchema { - custom(validator: (value: any) => string | void): this; - } - - // Joi types don't include `schema` function even though it's supported. - interface ObjectSchema { - schema(): this; - } - - // Joi types define only signature with single extension, but Joi supports - // an array form as well. It's fixed in more recent Joi types. - function extend(extension: Joi.Extension | Joi.Extension[]): any; -} diff --git a/src/core/server/dev/dev_config.ts b/src/core/server/dev/dev_config.ts index 5c8aca3ce3c51..174b108883792 100644 --- a/src/core/server/dev/dev_config.ts +++ b/src/core/server/dev/dev_config.ts @@ -17,7 +17,7 @@ * under the License. */ -import { schema, TypeOf } from '../config/schema'; +import { schema, TypeOf } from '@kbn/config-schema'; const createDevSchema = schema.object({ basePathProxyTarget: schema.number({ diff --git a/src/core/server/http/__snapshots__/http_server.test.ts.snap b/src/core/server/http/__snapshots__/http_server.test.ts.snap index 8e868e803602f..d3ddb6e0cff69 100644 --- a/src/core/server/http/__snapshots__/http_server.test.ts.snap +++ b/src/core/server/http/__snapshots__/http_server.test.ts.snap @@ -10,12 +10,15 @@ Object { "maxBytes": 1024, }, "validate": Object { + "failAction": [Function], "options": Object { "abortEarly": false, }, }, }, "state": Object { + "isHttpOnly": true, + "isSameSite": false, "strictHeader": false, }, } diff --git a/src/core/server/http/base_path_proxy_server.ts b/src/core/server/http/base_path_proxy_server.ts index b0c2144d7189a..705445a46c83d 100644 --- a/src/core/server/http/base_path_proxy_server.ts +++ b/src/core/server/http/base_path_proxy_server.ts @@ -17,10 +17,10 @@ * under the License. */ -import { Server } from 'hapi-latest'; +import { ByteSizeValue } from '@kbn/config-schema'; +import { Server } from 'hapi'; import { Agent as HttpsAgent, ServerOptions as TlsOptions } from 'https'; import { sample } from 'lodash'; -import { ByteSizeValue } from '../config/schema'; import { DevConfig } from '../dev'; import { Logger } from '../logging'; import { HttpConfig } from './http_config'; @@ -66,7 +66,7 @@ export class BasePathProxyServer { // Register hapi plugin that adds proxying functionality. It can be configured // through the route configuration object (see { handler: { proxy: ... } }). - await this.server.register({ plugin: require('h2o2-latest') }); + await this.server.register({ plugin: require('h2o2') }); if (this.httpConfig.ssl.enabled) { const tlsOptions = serverOptions.tls as TlsOptions; diff --git a/src/core/server/http/http_config.ts b/src/core/server/http/http_config.ts index 67578ecc1559c..e681d9634abb5 100644 --- a/src/core/server/http/http_config.ts +++ b/src/core/server/http/http_config.ts @@ -17,8 +17,8 @@ * under the License. */ +import { ByteSizeValue, schema, TypeOf } from '@kbn/config-schema'; import { Env } from '../config'; -import { ByteSizeValue, schema, TypeOf } from '../config/schema'; import { SslConfig } from './ssl_config'; const validBasePathRegex = /(^$|^\/.*[^\/]$)/; diff --git a/src/core/server/http/http_server.test.ts b/src/core/server/http/http_server.test.ts index 704a6ddf97aba..c5f5bb1341249 100644 --- a/src/core/server/http/http_server.test.ts +++ b/src/core/server/http/http_server.test.ts @@ -26,8 +26,8 @@ jest.mock('fs', () => ({ import Chance from 'chance'; import supertest from 'supertest'; +import { ByteSizeValue } from '@kbn/config-schema'; import { HttpConfig, Router } from '.'; -import { ByteSizeValue } from '../config/schema'; import { logger } from '../logging/__mocks__'; import { HttpServer } from './http_server'; diff --git a/src/core/server/http/http_server.ts b/src/core/server/http/http_server.ts index c828ff4df5408..7b7e415415b30 100644 --- a/src/core/server/http/http_server.ts +++ b/src/core/server/http/http_server.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Server, ServerOptions } from 'hapi-latest'; +import { Server, ServerOptions } from 'hapi'; import { modifyUrl } from '../../utils'; import { Logger } from '../logging'; diff --git a/src/core/server/http/http_tools.test.ts b/src/core/server/http/http_tools.test.ts new file mode 100644 index 0000000000000..c062b71f3c521 --- /dev/null +++ b/src/core/server/http/http_tools.test.ts @@ -0,0 +1,59 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { Request, ResponseToolkit } from 'hapi'; +import Joi from 'joi'; +import { defaultValidationErrorHandler, HapiValidationError } from './http_tools'; + +const emptyOutput = { + statusCode: 400, + headers: {}, + payload: { + statusCode: 400, + error: '', + validation: { + source: '', + keys: [], + }, + }, +}; + +describe('defaultValidationErrorHandler', () => { + it('formats value validation errors correctly', () => { + expect.assertions(1); + const schema = Joi.array().items( + Joi.object({ + type: Joi.string().required(), + }).required() + ); + + const error = schema.validate([{}], { abortEarly: false }).error as HapiValidationError; + + // Emulate what Hapi v17 does by default + error.output = { ...emptyOutput }; + error.output.payload.validation.keys = ['0.type', '']; + + try { + defaultValidationErrorHandler({} as Request, {} as ResponseToolkit, error); + } catch (err) { + // Verify the empty string gets corrected to 'value' + expect(err.output.payload.validation.keys).toEqual(['0.type', 'value']); + } + }); +}); diff --git a/src/core/server/http/http_tools.ts b/src/core/server/http/http_tools.ts index 4f88588a552a3..faf7ba4e94542 100644 --- a/src/core/server/http/http_tools.ts +++ b/src/core/server/http/http_tools.ts @@ -18,8 +18,10 @@ */ import { readFileSync } from 'fs'; -import { Server, ServerOptions } from 'hapi-latest'; +import { Lifecycle, Request, ResponseToolkit, Server, ServerOptions, Util } from 'hapi'; +import Hoek from 'hoek'; import { ServerOptions as TLSOptions } from 'https'; +import { ValidationError } from 'joi'; import { HttpConfig } from './http_config'; /** @@ -39,6 +41,7 @@ export function getServerOptions(config: HttpConfig, { configureTLS = true } = { maxBytes: config.maxPayload.getValueInBytes(), }, validate: { + failAction: defaultValidationErrorHandler, options: { abortEarly: false, }, @@ -46,6 +49,8 @@ export function getServerOptions(config: HttpConfig, { configureTLS = true } = { }, state: { strictHeader: false, + isHttpOnly: true, + isSameSite: false, // necessary to allow using Kibana inside an iframe }, }; @@ -88,3 +93,55 @@ export function createServer(options: ServerOptions) { return server; } + +/** + * Hapi extends the ValidationError interface to add this output key with more data. + */ +export interface HapiValidationError extends ValidationError { + output: { + statusCode: number; + headers: Util.Dictionary; + payload: { + statusCode: number; + error: string; + message?: string; + validation: { + source: string; + keys: string[]; + }; + }; + }; +} + +/** + * Used to replicate Hapi v16 and below's validation responses. Should be used in the routes.validate.failAction key. + */ +export function defaultValidationErrorHandler( + request: Request, + h: ResponseToolkit, + err?: Error +): Lifecycle.ReturnValue { + // Newer versions of Joi don't format the key for missing params the same way. This shim + // provides backwards compatibility. Unfortunately, Joi doesn't export it's own Error class + // in JS so we have to rely on the `name` key before we can cast it. + // + // The Hapi code we're 'overwriting' can be found here: + // https://github.com/hapijs/hapi/blob/master/lib/validation.js#L102 + if (err && err.name === 'ValidationError' && err.hasOwnProperty('output')) { + const validationError: HapiValidationError = err as HapiValidationError; + const validationKeys: string[] = []; + + validationError.details.forEach(detail => { + if (detail.path.length > 0) { + validationKeys.push(Hoek.escapeHtml(detail.path.join('.'))); + } else { + // If no path, use the value sigil to signal the entire value had an issue. + validationKeys.push('value'); + } + }); + + validationError.output.payload.validation.keys = validationKeys; + } + + throw err; +} diff --git a/src/core/server/http/https_redirect_server.test.ts b/src/core/server/http/https_redirect_server.test.ts index 6d9443335a62b..a9fd8ec12e155 100644 --- a/src/core/server/http/https_redirect_server.test.ts +++ b/src/core/server/http/https_redirect_server.test.ts @@ -25,8 +25,8 @@ import Chance from 'chance'; import { Server } from 'http'; import supertest from 'supertest'; +import { ByteSizeValue } from '@kbn/config-schema'; import { HttpConfig } from '.'; -import { ByteSizeValue } from '../config/schema'; import { logger } from '../logging/__mocks__'; import { HttpsRedirectServer } from './https_redirect_server'; diff --git a/src/core/server/http/https_redirect_server.ts b/src/core/server/http/https_redirect_server.ts index b2664c5e24b55..789b3890c0112 100644 --- a/src/core/server/http/https_redirect_server.ts +++ b/src/core/server/http/https_redirect_server.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Request, ResponseToolkit, Server } from 'hapi-latest'; +import { Request, ResponseToolkit, Server } from 'hapi'; import { format as formatUrl } from 'url'; import { Logger } from '../logging'; diff --git a/src/core/server/http/router/request.ts b/src/core/server/http/router/request.ts index 87f8e5d866158..8ee07eac2cca3 100644 --- a/src/core/server/http/router/request.ts +++ b/src/core/server/http/router/request.ts @@ -17,8 +17,8 @@ * under the License. */ -import { Request } from 'hapi-latest'; -import { ObjectType, TypeOf } from '../../config/schema'; +import { ObjectType, TypeOf } from '@kbn/config-schema'; +import { Request } from 'hapi'; import { filterHeaders, Headers } from './headers'; import { RouteSchemas } from './route'; diff --git a/src/core/server/http/router/route.ts b/src/core/server/http/router/route.ts index a8647815c4ed1..64ed67e8f940b 100644 --- a/src/core/server/http/router/route.ts +++ b/src/core/server/http/router/route.ts @@ -17,7 +17,7 @@ * under the License. */ -import { ObjectType, Schema } from '../../config/schema'; +import { ObjectType, Schema } from '@kbn/config-schema'; export type RouteMethod = 'GET' | 'POST' | 'PUT' | 'DELETE'; export interface RouteConfig

{ diff --git a/src/core/server/http/router/router.ts b/src/core/server/http/router/router.ts index 89296e1f06125..37bfe053f8181 100644 --- a/src/core/server/http/router/router.ts +++ b/src/core/server/http/router/router.ts @@ -17,8 +17,8 @@ * under the License. */ -import { Request, ResponseObject, ResponseToolkit } from 'hapi-latest'; -import { ObjectType, schema, TypeOf } from '../../config/schema'; +import { ObjectType, schema, TypeOf } from '@kbn/config-schema'; +import { Request, ResponseObject, ResponseToolkit } from 'hapi'; import { KibanaRequest } from './request'; import { KibanaResponse, ResponseFactory, responseFactory } from './response'; diff --git a/src/core/server/http/ssl_config.ts b/src/core/server/http/ssl_config.ts index f7be7ab05d410..fb36cbe584724 100644 --- a/src/core/server/http/ssl_config.ts +++ b/src/core/server/http/ssl_config.ts @@ -17,8 +17,8 @@ * under the License. */ +import { schema, TypeOf } from '@kbn/config-schema'; import crypto from 'crypto'; -import { schema, TypeOf } from '../config/schema'; // `crypto` type definitions doesn't currently include `crypto.constants`, see // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/fa5baf1733f49cf26228a4e509914572c1b74adf/types/node/v6/index.d.ts#L3412 diff --git a/src/core/server/index.test.ts b/src/core/server/index.test.ts index d6bd19d36ce3c..7d604efcb98e8 100644 --- a/src/core/server/index.test.ts +++ b/src/core/server/index.test.ts @@ -22,6 +22,11 @@ jest.mock('./http/http_service', () => ({ HttpService: jest.fn(() => mockHttpService), })); +const mockPluginsService = { start: jest.fn(), stop: jest.fn() }; +jest.mock('./plugins/plugins_service', () => ({ + PluginsService: jest.fn(() => mockPluginsService), +})); + const mockLegacyService = { start: jest.fn(), stop: jest.fn() }; jest.mock('./legacy_compat/legacy_service', () => ({ LegacyService: jest.fn(() => mockLegacyService), @@ -45,6 +50,8 @@ afterEach(() => { mockConfigService.atPath.mockReset(); mockHttpService.start.mockReset(); mockHttpService.stop.mockReset(); + mockPluginsService.start.mockReset(); + mockPluginsService.stop.mockReset(); mockLegacyService.start.mockReset(); mockLegacyService.stop.mockReset(); }); @@ -56,11 +63,13 @@ test('starts services on "start"', async () => { const server = new Server(mockConfigService as any, logger, env); expect(mockHttpService.start).not.toHaveBeenCalled(); + expect(mockPluginsService.start).not.toHaveBeenCalled(); expect(mockLegacyService.start).not.toHaveBeenCalled(); await server.start(); expect(mockHttpService.start).toHaveBeenCalledTimes(1); + expect(mockPluginsService.start).toHaveBeenCalledTimes(1); expect(mockLegacyService.start).toHaveBeenCalledTimes(1); expect(mockLegacyService.start).toHaveBeenCalledWith(mockHttpServiceStartContract); }); @@ -112,10 +121,12 @@ test('stops services on "stop"', async () => { await server.start(); expect(mockHttpService.stop).not.toHaveBeenCalled(); + expect(mockPluginsService.stop).not.toHaveBeenCalled(); expect(mockLegacyService.stop).not.toHaveBeenCalled(); await server.stop(); expect(mockHttpService.stop).toHaveBeenCalledTimes(1); + expect(mockPluginsService.stop).toHaveBeenCalledTimes(1); expect(mockLegacyService.stop).toHaveBeenCalledTimes(1); }); diff --git a/src/core/server/index.ts b/src/core/server/index.ts index ac645b2280041..0c9518f87e010 100644 --- a/src/core/server/index.ts +++ b/src/core/server/index.ts @@ -17,6 +17,8 @@ * under the License. */ +import { PluginsModule } from './plugins'; + export { bootstrap } from './bootstrap'; import { first } from 'rxjs/operators'; @@ -27,6 +29,7 @@ import { Logger, LoggerFactory } from './logging'; export class Server { private readonly http: HttpModule; + private readonly plugins: PluginsModule; private readonly legacy: LegacyCompatModule; private readonly log: Logger; @@ -38,6 +41,7 @@ export class Server { this.log = logger.get('server'); this.http = new HttpModule(configService.atPath('server', HttpConfig), logger); + this.plugins = new PluginsModule(configService, logger, env); this.legacy = new LegacyCompatModule(configService, logger, env); } @@ -54,6 +58,7 @@ export class Server { httpServerInfo = await this.http.service.start(); } + await this.plugins.service.start(); await this.legacy.service.start(httpServerInfo); const unhandledConfigPaths = await this.configService.getUnusedPaths(); @@ -70,6 +75,7 @@ export class Server { this.log.debug('stopping server'); await this.legacy.service.stop(); + await this.plugins.service.stop(); await this.http.service.stop(); } } diff --git a/src/core/server/legacy_compat/__snapshots__/legacy_service.test.ts.snap b/src/core/server/legacy_compat/__snapshots__/legacy_service.test.ts.snap index ea64afb06caf7..1734a88912aec 100644 --- a/src/core/server/legacy_compat/__snapshots__/legacy_service.test.ts.snap +++ b/src/core/server/legacy_compat/__snapshots__/legacy_service.test.ts.snap @@ -6,6 +6,7 @@ Array [ Object { "basePath": true, "dev": true, + "open": false, "optimize": false, "quiet": true, "repl": false, @@ -59,6 +60,7 @@ Array [ Object { "basePath": false, "dev": true, + "open": false, "optimize": false, "quiet": false, "repl": false, diff --git a/src/core/server/legacy_compat/legacy_service.ts b/src/core/server/legacy_compat/legacy_service.ts index 092057874fa73..6531c51b161b0 100644 --- a/src/core/server/legacy_compat/legacy_service.ts +++ b/src/core/server/legacy_compat/legacy_service.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Server as HapiServer } from 'hapi-latest'; +import { Server as HapiServer } from 'hapi'; import { combineLatest, ConnectableObservable, EMPTY, Subscription } from 'rxjs'; import { first, map, mergeMap, publishReplay, tap } from 'rxjs/operators'; import { CoreService } from '../../types/core_service'; diff --git a/src/core/server/legacy_compat/logging/appenders/legacy_appender.ts b/src/core/server/legacy_compat/logging/appenders/legacy_appender.ts index a890d1620def8..011dfae8a5cef 100644 --- a/src/core/server/legacy_compat/logging/appenders/legacy_appender.ts +++ b/src/core/server/legacy_compat/logging/appenders/legacy_appender.ts @@ -17,7 +17,7 @@ * under the License. */ -import { schema } from '../../../config/schema'; +import { schema } from '@kbn/config-schema'; import { DisposableAppender } from '../../../logging/appenders/appenders'; import { LogRecord } from '../../../logging/log_record'; import { LegacyLoggingServer } from '../legacy_logging_server'; diff --git a/src/core/server/legacy_compat/logging/legacy_logging_server.test.ts b/src/core/server/legacy_compat/logging/legacy_logging_server.test.ts index ab74c250abb4d..70256392023f3 100644 --- a/src/core/server/legacy_compat/logging/legacy_logging_server.test.ts +++ b/src/core/server/legacy_compat/logging/legacy_logging_server.test.ts @@ -26,7 +26,7 @@ import { LegacyLoggingServer } from './legacy_logging_server'; test('correctly forwards log records.', () => { const loggingServer = new LegacyLoggingServer({ events: {} }); const onLogMock = jest.fn(); - loggingServer.on('log', onLogMock); + loggingServer.events.on('log', onLogMock); const timestamp = 1554433221100; const firstLogRecord = { diff --git a/src/core/server/legacy_compat/logging/legacy_logging_server.ts b/src/core/server/legacy_compat/logging/legacy_logging_server.ts index 5a31fb366a5ed..784983a3bb609 100644 --- a/src/core/server/legacy_compat/logging/legacy_logging_server.ts +++ b/src/core/server/legacy_compat/logging/legacy_logging_server.ts @@ -17,7 +17,8 @@ * under the License. */ -import { EventEmitter } from 'events'; +import { ServerExtType } from 'hapi'; +import Podium from 'podium'; // @ts-ignore: implicit any for JS file import { Config, transformDeprecations } from '../../../../server/config'; // @ts-ignore: implicit any for JS file @@ -25,12 +26,11 @@ import { setupLogging } from '../../../../server/logging'; import { LogRecord } from '../../logging/log_record'; interface PluginRegisterParams { - register: { + plugin: { register: ( server: LegacyLoggingServer, - options: PluginRegisterParams['options'], - cb: () => void - ) => void; + options: PluginRegisterParams['options'] + ) => Promise; }; options: Record; } @@ -41,12 +41,14 @@ interface PluginRegisterParams { * same as the rest of the records generated by the "legacy" Kibana. But to reduce * overhead of having full blown Hapi server instance we create our own "light" version. */ -export class LegacyLoggingServer extends EventEmitter { +export class LegacyLoggingServer { public connections = []; + // Emulates Hapi's usage of the podium event bus. + public events: Podium = new Podium(['log', 'request', 'response']); - constructor(legacyLoggingConfig: Readonly>) { - super(); + private onPostStopCallback?: () => void; + constructor(legacyLoggingConfig: Readonly>) { // We set `ops.interval` to max allowed number and `ops` filter to value // that doesn't exist to avoid logging of ops at all, if turned on it will be // logged by the "legacy" Kibana. @@ -64,12 +66,12 @@ export class LegacyLoggingServer extends EventEmitter { setupLogging(this, Config.withDefaultSchema(transformDeprecations(config))); } - public register({ register: plugin, options }: PluginRegisterParams, cb: () => void) { - plugin.register(this, options, cb); + public register({ plugin: { register }, options }: PluginRegisterParams): Promise { + return register(this, options); } public log({ level, context, message, error, timestamp, meta = {} }: LogRecord) { - this.emit('log', { + this.events.emit('log', { data: error || message, tags: [level.id.toLowerCase(), ...context.split('.'), ...(meta.tags || [])], timestamp: timestamp.getTime(), @@ -77,7 +79,18 @@ export class LegacyLoggingServer extends EventEmitter { } public stop() { - this.emit('stop'); + // Tell the plugin we're stopping. + if (this.onPostStopCallback !== undefined) { + this.onPostStopCallback(); + } + } + + public ext(eventName: ServerExtType, callback: () => void) { + // method is called by plugin that's being registered. + if (eventName === 'onPostStop') { + this.onPostStopCallback = callback; + } + // We don't care about any others the plugin resgisters } public expose() { diff --git a/src/core/server/logging/appenders/appenders.test.ts b/src/core/server/logging/appenders/appenders.test.ts index 2103f9d8187b2..dea4b117b7d40 100644 --- a/src/core/server/logging/appenders/appenders.test.ts +++ b/src/core/server/logging/appenders/appenders.test.ts @@ -19,7 +19,7 @@ const mockCreateLayout = jest.fn(); jest.mock('../layouts/layouts', () => { - const { schema } = require('../../config/schema'); + const { schema } = require('@kbn/config-schema'); return { Layouts: { configSchema: schema.object({ kind: schema.literal('mock') }), diff --git a/src/core/server/logging/appenders/appenders.ts b/src/core/server/logging/appenders/appenders.ts index 69ff6f5684548..5639899fde2b1 100644 --- a/src/core/server/logging/appenders/appenders.ts +++ b/src/core/server/logging/appenders/appenders.ts @@ -17,7 +17,7 @@ * under the License. */ -import { schema, TypeOf } from '../../config/schema'; +import { schema, TypeOf } from '@kbn/config-schema'; import { assertNever } from '../../../utils'; import { LegacyAppender } from '../../legacy_compat/logging/appenders/legacy_appender'; diff --git a/src/core/server/logging/appenders/console/console_appender.test.ts b/src/core/server/logging/appenders/console/console_appender.test.ts index fe5602a809699..9763ebe19ef29 100644 --- a/src/core/server/logging/appenders/console/console_appender.test.ts +++ b/src/core/server/logging/appenders/console/console_appender.test.ts @@ -18,7 +18,7 @@ */ jest.mock('../../layouts/layouts', () => { - const { schema } = require('../../../config/schema'); + const { schema } = require('@kbn/config-schema'); return { Layouts: { configSchema: schema.object({ diff --git a/src/core/server/logging/appenders/console/console_appender.ts b/src/core/server/logging/appenders/console/console_appender.ts index 63d78496bbaad..67d0ea4d1837a 100644 --- a/src/core/server/logging/appenders/console/console_appender.ts +++ b/src/core/server/logging/appenders/console/console_appender.ts @@ -17,7 +17,7 @@ * under the License. */ -import { schema } from '../../../config/schema'; +import { schema } from '@kbn/config-schema'; import { Layout, Layouts } from '../../layouts/layouts'; import { LogRecord } from '../../log_record'; diff --git a/src/core/server/logging/appenders/file/file_appender.test.ts b/src/core/server/logging/appenders/file/file_appender.test.ts index cc8f0196bff7c..1d9ef33995955 100644 --- a/src/core/server/logging/appenders/file/file_appender.test.ts +++ b/src/core/server/logging/appenders/file/file_appender.test.ts @@ -18,7 +18,7 @@ */ jest.mock('../../layouts/layouts', () => { - const { schema } = require('../../../config/schema'); + const { schema } = require('@kbn/config-schema'); return { Layouts: { configSchema: schema.object({ diff --git a/src/core/server/logging/appenders/file/file_appender.ts b/src/core/server/logging/appenders/file/file_appender.ts index ac8c18bc72c81..3aca59fb3f42c 100644 --- a/src/core/server/logging/appenders/file/file_appender.ts +++ b/src/core/server/logging/appenders/file/file_appender.ts @@ -17,8 +17,8 @@ * under the License. */ +import { schema } from '@kbn/config-schema'; import { createWriteStream, WriteStream } from 'fs'; -import { schema } from '../../../config/schema'; import { Layout, Layouts } from '../../layouts/layouts'; import { LogRecord } from '../../log_record'; diff --git a/src/core/server/logging/index.ts b/src/core/server/logging/index.ts index eb31691028e1c..51268cb646288 100644 --- a/src/core/server/logging/index.ts +++ b/src/core/server/logging/index.ts @@ -19,5 +19,7 @@ export { Logger } from './logger'; export { LoggerFactory } from './logger_factory'; +/** @internal */ export { LoggingConfig } from './logging_config'; +/** @internal */ export { LoggingService } from './logging_service'; diff --git a/src/core/server/logging/layouts/json_layout.ts b/src/core/server/logging/layouts/json_layout.ts index 7983cfc992284..1dcc3fc3ebcf6 100644 --- a/src/core/server/logging/layouts/json_layout.ts +++ b/src/core/server/logging/layouts/json_layout.ts @@ -17,7 +17,7 @@ * under the License. */ -import { schema, TypeOf } from '../../config/schema'; +import { schema, TypeOf } from '@kbn/config-schema'; import { LogRecord } from '../log_record'; import { Layout } from './layouts'; diff --git a/src/core/server/logging/layouts/layouts.ts b/src/core/server/logging/layouts/layouts.ts index 85726aaf60903..0e6a6360cab2e 100644 --- a/src/core/server/logging/layouts/layouts.ts +++ b/src/core/server/logging/layouts/layouts.ts @@ -17,7 +17,7 @@ * under the License. */ -import { schema } from '../../config/schema'; +import { schema } from '@kbn/config-schema'; import { assertNever } from '../../../utils'; import { LogRecord } from '../log_record'; diff --git a/src/core/server/logging/layouts/pattern_layout.ts b/src/core/server/logging/layouts/pattern_layout.ts index 5f21328e6c7db..c259a29dc6867 100644 --- a/src/core/server/logging/layouts/pattern_layout.ts +++ b/src/core/server/logging/layouts/pattern_layout.ts @@ -17,8 +17,8 @@ * under the License. */ +import { schema, TypeOf } from '@kbn/config-schema'; import chalk from 'chalk'; -import { schema, TypeOf } from '../../config/schema'; import { LogLevel } from '../log_level'; import { LogRecord } from '../log_record'; diff --git a/src/core/server/logging/logging_config.ts b/src/core/server/logging/logging_config.ts index b23d32f5e9b3c..64de8ed1de216 100644 --- a/src/core/server/logging/logging_config.ts +++ b/src/core/server/logging/logging_config.ts @@ -17,7 +17,7 @@ * under the License. */ -import { schema, TypeOf } from '../config/schema'; +import { schema, TypeOf } from '@kbn/config-schema'; import { AppenderConfigType, Appenders } from './appenders/appenders'; // We need this helper for the types to be correct diff --git a/src/core/server/logging/logging_service.ts b/src/core/server/logging/logging_service.ts index 966bd74a0df41..7934ed4afe76e 100644 --- a/src/core/server/logging/logging_service.ts +++ b/src/core/server/logging/logging_service.ts @@ -26,6 +26,7 @@ import { LoggerConfigType, LoggingConfig } from './logging_config'; /** * Service that is responsible for maintaining loggers and logger appenders. + * @internal */ export class LoggingService implements LoggerFactory { private config?: LoggingConfig; diff --git a/src/core/server/plugins/discovery/index.ts b/src/core/server/plugins/discovery/index.ts new file mode 100644 index 0000000000000..768112cf7f6fe --- /dev/null +++ b/src/core/server/plugins/discovery/index.ts @@ -0,0 +1,21 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { PluginDiscoveryErrorType } from './plugin_discovery_error'; +export { discover } from './plugins_discovery'; diff --git a/src/core/server/plugins/discovery/plugin_discovery.test.ts b/src/core/server/plugins/discovery/plugin_discovery.test.ts new file mode 100644 index 0000000000000..d1e4f22c495fc --- /dev/null +++ b/src/core/server/plugins/discovery/plugin_discovery.test.ts @@ -0,0 +1,159 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +const mockReaddir = jest.fn(); +const mockReadFile = jest.fn(); +const mockStat = jest.fn(); +jest.mock('fs', () => ({ + readdir: mockReaddir, + readFile: mockReadFile, + stat: mockStat, +})); + +import { resolve } from 'path'; +import { map, toArray } from 'rxjs/operators'; +import { logger } from '../../logging/__mocks__'; +import { discover } from './plugins_discovery'; + +const TEST_PATHS = { + scanDirs: { + nonEmpty: resolve('scan', 'non-empty'), + nonEmpty2: resolve('scan', 'non-empty-2'), + nonExistent: resolve('scan', 'non-existent'), + empty: resolve('scan', 'empty'), + }, + paths: { + existentDir: resolve('path', 'existent-dir'), + existentDir2: resolve('path', 'existent-dir-2'), + nonDir: resolve('path', 'non-dir'), + nonExistent: resolve('path', 'non-existent'), + }, +}; + +beforeEach(() => { + mockReaddir.mockImplementation((path, cb) => { + if (path === TEST_PATHS.scanDirs.nonEmpty) { + cb(null, ['1', '2-no-manifest', '3', '4-incomplete-manifest']); + } else if (path === TEST_PATHS.scanDirs.nonEmpty2) { + cb(null, ['5-invalid-manifest', '6', '7-non-dir', '8-incompatible-manifest']); + } else if (path === TEST_PATHS.scanDirs.nonExistent) { + cb(new Error('ENOENT')); + } else { + cb(null, []); + } + }); + + mockStat.mockImplementation((path, cb) => { + if (path.includes('non-existent')) { + cb(new Error('ENOENT')); + } else { + cb(null, { isDirectory: () => !path.includes('non-dir') }); + } + }); + + mockReadFile.mockImplementation((path, cb) => { + if (path.includes('no-manifest')) { + cb(new Error('ENOENT')); + } else if (path.includes('invalid-manifest')) { + cb(null, Buffer.from('not-json')); + } else if (path.includes('incomplete-manifest')) { + cb(null, Buffer.from(JSON.stringify({ version: '1' }))); + } else if (path.includes('incompatible-manifest')) { + cb(null, Buffer.from(JSON.stringify({ id: 'plugin', version: '1' }))); + } else { + cb(null, Buffer.from(JSON.stringify({ id: 'plugin', version: '1', kibanaVersion: '1.2.3' }))); + } + }); +}); + +afterEach(() => { + jest.clearAllMocks(); +}); + +test('properly scans folders and paths', async () => { + const { plugin$, error$ } = discover( + { + initialize: true, + scanDirs: Object.values(TEST_PATHS.scanDirs), + paths: Object.values(TEST_PATHS.paths), + }, + { + branch: 'master', + buildNum: 1, + buildSha: '', + version: '1.2.3', + }, + logger.get() + ); + + await expect(plugin$.pipe(toArray()).toPromise()).resolves.toEqual( + [ + resolve(TEST_PATHS.scanDirs.nonEmpty, '1'), + resolve(TEST_PATHS.scanDirs.nonEmpty, '3'), + resolve(TEST_PATHS.scanDirs.nonEmpty2, '6'), + resolve(TEST_PATHS.paths.existentDir), + resolve(TEST_PATHS.paths.existentDir2), + ].map(path => ({ + manifest: { + id: 'plugin', + version: '1', + kibanaVersion: '1.2.3', + optionalPlugins: [], + requiredPlugins: [], + ui: false, + }, + path, + })) + ); + + await expect( + error$ + .pipe( + map(error => error.toString()), + toArray() + ) + .toPromise() + ).resolves.toEqual([ + `Error: ENOENT (invalid-scan-dir, ${resolve(TEST_PATHS.scanDirs.nonExistent)})`, + `Error: ${resolve(TEST_PATHS.paths.nonDir)} is not a directory. (invalid-plugin-dir, ${resolve( + TEST_PATHS.paths.nonDir + )})`, + `Error: ENOENT (invalid-plugin-dir, ${resolve(TEST_PATHS.paths.nonExistent)})`, + `Error: ENOENT (missing-manifest, ${resolve( + TEST_PATHS.scanDirs.nonEmpty, + '2-no-manifest', + 'kibana.json' + )})`, + `Error: Plugin manifest must contain an "id" property. (invalid-manifest, ${resolve( + TEST_PATHS.scanDirs.nonEmpty, + '4-incomplete-manifest', + 'kibana.json' + )})`, + `Error: Unexpected token o in JSON at position 1 (invalid-manifest, ${resolve( + TEST_PATHS.scanDirs.nonEmpty2, + '5-invalid-manifest', + 'kibana.json' + )})`, + `Error: Plugin "plugin" is only compatible with Kibana version "1", but used Kibana version is "1.2.3". (incompatible-version, ${resolve( + TEST_PATHS.scanDirs.nonEmpty2, + '8-incompatible-manifest', + 'kibana.json' + )})`, + ]); +}); diff --git a/src/core/server/plugins/discovery/plugin_discovery_error.ts b/src/core/server/plugins/discovery/plugin_discovery_error.ts new file mode 100644 index 0000000000000..d513091ac4505 --- /dev/null +++ b/src/core/server/plugins/discovery/plugin_discovery_error.ts @@ -0,0 +1,65 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export enum PluginDiscoveryErrorType { + IncompatibleVersion = 'incompatible-version', + InvalidScanDirectory = 'invalid-scan-dir', + InvalidPluginDirectory = 'invalid-plugin-dir', + InvalidManifest = 'invalid-manifest', + MissingManifest = 'missing-manifest', +} + +export class PluginDiscoveryError extends Error { + public static incompatibleVersion(path: string, cause: Error) { + return new PluginDiscoveryError(PluginDiscoveryErrorType.IncompatibleVersion, path, cause); + } + + public static invalidScanDirectory(path: string, cause: Error) { + return new PluginDiscoveryError(PluginDiscoveryErrorType.InvalidScanDirectory, path, cause); + } + + public static invalidPluginDirectory(path: string, cause: Error) { + return new PluginDiscoveryError(PluginDiscoveryErrorType.InvalidPluginDirectory, path, cause); + } + + public static invalidManifest(path: string, cause: Error) { + return new PluginDiscoveryError(PluginDiscoveryErrorType.InvalidManifest, path, cause); + } + + public static missingManifest(path: string, cause: Error) { + return new PluginDiscoveryError(PluginDiscoveryErrorType.MissingManifest, path, cause); + } + + /** + * @param type Type of the discovery error (invalid directory, invalid manifest etc.) + * @param path Path at which discovery error occurred. + * @param cause "Raw" error object that caused discovery error. + */ + constructor( + public readonly type: PluginDiscoveryErrorType, + public readonly path: string, + public readonly cause: Error + ) { + super(`${cause.message} (${type}, ${path})`); + + // Set the prototype explicitly, see: + // https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work + Object.setPrototypeOf(this, PluginDiscoveryError.prototype); + } +} diff --git a/src/core/server/plugins/discovery/plugin_manifest_parser.test.ts b/src/core/server/plugins/discovery/plugin_manifest_parser.test.ts new file mode 100644 index 0000000000000..1f73855511c24 --- /dev/null +++ b/src/core/server/plugins/discovery/plugin_manifest_parser.test.ts @@ -0,0 +1,215 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { PluginDiscoveryErrorType } from './plugin_discovery_error'; + +const mockReadFile = jest.fn(); +jest.mock('fs', () => ({ readFile: mockReadFile })); + +import { resolve } from 'path'; +import { parseManifest } from './plugin_manifest_parser'; + +const pluginPath = resolve('path', 'existent-dir'); +const pluginManifestPath = resolve(pluginPath, 'kibana.json'); +const packageInfo = { + branch: 'master', + buildNum: 1, + buildSha: '', + version: '7.0.0-alpha1', +}; + +afterEach(() => { + jest.clearAllMocks(); +}); + +test('return error when manifest is empty', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from('')); + }); + + await expect(parseManifest(pluginPath, packageInfo)).rejects.toMatchObject({ + message: `Unexpected end of JSON input (invalid-manifest, ${pluginManifestPath})`, + type: PluginDiscoveryErrorType.InvalidManifest, + path: pluginManifestPath, + }); +}); + +test('return error when manifest content is null', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from('null')); + }); + + await expect(parseManifest(pluginPath, packageInfo)).rejects.toMatchObject({ + message: `Plugin manifest must contain a JSON encoded object. (invalid-manifest, ${pluginManifestPath})`, + type: PluginDiscoveryErrorType.InvalidManifest, + path: pluginManifestPath, + }); +}); + +test('return error when manifest content is not a valid JSON', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from('not-json')); + }); + + await expect(parseManifest(pluginPath, packageInfo)).rejects.toMatchObject({ + message: `Unexpected token o in JSON at position 1 (invalid-manifest, ${pluginManifestPath})`, + type: PluginDiscoveryErrorType.InvalidManifest, + path: pluginManifestPath, + }); +}); + +test('return error when plugin id is missing', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from(JSON.stringify({ version: 'some-version' }))); + }); + + await expect(parseManifest(pluginPath, packageInfo)).rejects.toMatchObject({ + message: `Plugin manifest must contain an "id" property. (invalid-manifest, ${pluginManifestPath})`, + type: PluginDiscoveryErrorType.InvalidManifest, + path: pluginManifestPath, + }); +}); + +test('return error when plugin version is missing', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from(JSON.stringify({ id: 'some-id' }))); + }); + + await expect(parseManifest(pluginPath, packageInfo)).rejects.toMatchObject({ + message: `Plugin manifest for "some-id" must contain a "version" property. (invalid-manifest, ${pluginManifestPath})`, + type: PluginDiscoveryErrorType.InvalidManifest, + path: pluginManifestPath, + }); +}); + +test('return error when plugin expected Kibana version is lower than actual version', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from(JSON.stringify({ id: 'some-id', version: '6.4.2' }))); + }); + + await expect(parseManifest(pluginPath, packageInfo)).rejects.toMatchObject({ + message: `Plugin "some-id" is only compatible with Kibana version "6.4.2", but used Kibana version is "7.0.0-alpha1". (incompatible-version, ${pluginManifestPath})`, + type: PluginDiscoveryErrorType.IncompatibleVersion, + path: pluginManifestPath, + }); +}); + +test('return error when plugin expected Kibana version is higher than actual version', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from(JSON.stringify({ id: 'some-id', version: '7.0.1' }))); + }); + + await expect(parseManifest(pluginPath, packageInfo)).rejects.toMatchObject({ + message: `Plugin "some-id" is only compatible with Kibana version "7.0.1", but used Kibana version is "7.0.0-alpha1". (incompatible-version, ${pluginManifestPath})`, + type: PluginDiscoveryErrorType.IncompatibleVersion, + path: pluginManifestPath, + }); +}); + +test('set defaults for all missing optional fields', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb(null, Buffer.from(JSON.stringify({ id: 'some-id', version: '7.0.0' }))); + }); + + await expect(parseManifest(pluginPath, packageInfo)).resolves.toEqual({ + id: 'some-id', + version: '7.0.0', + kibanaVersion: '7.0.0', + optionalPlugins: [], + requiredPlugins: [], + ui: false, + }); +}); + +test('return all set optional fields as they are in manifest', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb( + null, + Buffer.from( + JSON.stringify({ + id: 'some-id', + version: 'some-version', + kibanaVersion: '7.0.0', + requiredPlugins: ['some-required-plugin', 'some-required-plugin-2'], + optionalPlugins: ['some-optional-plugin'], + ui: true, + }) + ) + ); + }); + + await expect(parseManifest(pluginPath, packageInfo)).resolves.toEqual({ + id: 'some-id', + version: 'some-version', + kibanaVersion: '7.0.0', + optionalPlugins: ['some-optional-plugin'], + requiredPlugins: ['some-required-plugin', 'some-required-plugin-2'], + ui: true, + }); +}); + +test('return manifest when plugin expected Kibana version matches actual version', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb( + null, + Buffer.from( + JSON.stringify({ + id: 'some-id', + version: 'some-version', + kibanaVersion: '7.0.0-alpha2', + requiredPlugins: ['some-required-plugin'], + }) + ) + ); + }); + + await expect(parseManifest(pluginPath, packageInfo)).resolves.toEqual({ + id: 'some-id', + version: 'some-version', + kibanaVersion: '7.0.0-alpha2', + optionalPlugins: [], + requiredPlugins: ['some-required-plugin'], + ui: false, + }); +}); + +test('return manifest when plugin expected Kibana version is `kibana`', async () => { + mockReadFile.mockImplementation((path, cb) => { + cb( + null, + Buffer.from( + JSON.stringify({ + id: 'some-id', + version: 'some-version', + kibanaVersion: 'kibana', + requiredPlugins: ['some-required-plugin'], + }) + ) + ); + }); + + await expect(parseManifest(pluginPath, packageInfo)).resolves.toEqual({ + id: 'some-id', + version: 'some-version', + kibanaVersion: 'kibana', + optionalPlugins: [], + requiredPlugins: ['some-required-plugin'], + ui: false, + }); +}); diff --git a/src/core/server/plugins/discovery/plugin_manifest_parser.ts b/src/core/server/plugins/discovery/plugin_manifest_parser.ts new file mode 100644 index 0000000000000..4152d22fc5906 --- /dev/null +++ b/src/core/server/plugins/discovery/plugin_manifest_parser.ts @@ -0,0 +1,176 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { readFile } from 'fs'; +import { resolve } from 'path'; +import { promisify } from 'util'; +import { PackageInfo } from '../../config'; +import { PluginDiscoveryError } from './plugin_discovery_error'; + +const fsReadFileAsync = promisify(readFile); + +/** + * Describes the set of required and optional properties plugin can define in its + * mandatory JSON manifest file. + */ +export interface PluginManifest { + /** + * Identifier of the plugin. + */ + readonly id: string; + + /** + * Version of the plugin. + */ + readonly version: string; + + /** + * The version of Kibana the plugin is compatible with, defaults to "version". + */ + readonly kibanaVersion: string; + + /** + * An optional list of the other plugins that **must be** installed and enabled + * for this plugin to function properly. + */ + readonly requiredPlugins: ReadonlyArray; + + /** + * An optional list of the other plugins that if installed and enabled **may be** + * leveraged by this plugin for some additional functionality but otherwise are + * not required for this plugin to work properly. + */ + readonly optionalPlugins: ReadonlyArray; + + /** + * Specifies whether plugin includes some client/browser specific functionality + * that should be included into client bundle via `public/ui_plugin.js` file. + */ + readonly ui: boolean; +} + +/** + * Name of the JSON manifest file that should be located in the plugin directory. + */ +const MANIFEST_FILE_NAME = 'kibana.json'; + +/** + * The special "kibana" version can be used by the plugins to be always compatible. + */ +const ALWAYS_COMPATIBLE_VERSION = 'kibana'; + +/** + * Regular expression used to extract semantic version part from the plugin or + * kibana version, e.g. `1.2.3` ---> `1.2.3` and `7.0.0-alpha1` ---> `7.0.0`. + */ +const SEM_VER_REGEX = /\d+\.\d+\.\d+/; + +/** + * Tries to load and parse the plugin manifest file located at the provided plugin + * directory path and produces an error result if it fails to do so or plugin manifest + * isn't valid. + * @param pluginPath Path to the plugin directory where manifest should be loaded from. + * @param packageInfo Kibana package info. + */ +export async function parseManifest(pluginPath: string, packageInfo: PackageInfo) { + const manifestPath = resolve(pluginPath, MANIFEST_FILE_NAME); + + let manifestContent; + try { + manifestContent = await fsReadFileAsync(manifestPath); + } catch (err) { + throw PluginDiscoveryError.missingManifest(manifestPath, err); + } + + let manifest: Partial; + try { + manifest = JSON.parse(manifestContent.toString()); + } catch (err) { + throw PluginDiscoveryError.invalidManifest(manifestPath, err); + } + + if (!manifest || typeof manifest !== 'object') { + throw PluginDiscoveryError.invalidManifest( + manifestPath, + new Error('Plugin manifest must contain a JSON encoded object.') + ); + } + + if (!manifest.id || typeof manifest.id !== 'string') { + throw PluginDiscoveryError.invalidManifest( + manifestPath, + new Error('Plugin manifest must contain an "id" property.') + ); + } + + if (!manifest.version || typeof manifest.version !== 'string') { + throw PluginDiscoveryError.invalidManifest( + manifestPath, + new Error(`Plugin manifest for "${manifest.id}" must contain a "version" property.`) + ); + } + + const expectedKibanaVersion = + typeof manifest.kibanaVersion === 'string' && manifest.kibanaVersion + ? manifest.kibanaVersion + : manifest.version; + if (!isVersionCompatible(expectedKibanaVersion, packageInfo.version)) { + throw PluginDiscoveryError.incompatibleVersion( + manifestPath, + new Error( + `Plugin "${ + manifest.id + }" is only compatible with Kibana version "${expectedKibanaVersion}", but used Kibana version is "${ + packageInfo.version + }".` + ) + ); + } + + return { + id: manifest.id, + version: manifest.version, + kibanaVersion: expectedKibanaVersion, + requiredPlugins: Array.isArray(manifest.requiredPlugins) ? manifest.requiredPlugins : [], + optionalPlugins: Array.isArray(manifest.optionalPlugins) ? manifest.optionalPlugins : [], + ui: typeof manifest.ui === 'boolean' ? manifest.ui : false, + }; +} + +/** + * Checks whether plugin expected Kibana version is compatible with the used Kibana version. + * @param expectedKibanaVersion Kibana version expected by the plugin. + * @param actualKibanaVersion Used Kibana version. + */ +function isVersionCompatible(expectedKibanaVersion: string, actualKibanaVersion: string) { + if (expectedKibanaVersion === ALWAYS_COMPATIBLE_VERSION) { + return true; + } + + return extractSemVer(actualKibanaVersion) === extractSemVer(expectedKibanaVersion); +} + +/** + * Tries to extract semantic version part from the full version string. + * @param version + */ +function extractSemVer(version: string) { + const semVerMatch = version.match(SEM_VER_REGEX); + return semVerMatch === null ? version : semVerMatch[0]; +} diff --git a/src/core/server/plugins/discovery/plugins_discovery.ts b/src/core/server/plugins/discovery/plugins_discovery.ts new file mode 100644 index 0000000000000..7ecfaa38b3826 --- /dev/null +++ b/src/core/server/plugins/discovery/plugins_discovery.ts @@ -0,0 +1,156 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { readdir, stat } from 'fs'; +import { resolve } from 'path'; +import { bindNodeCallback, from, merge, Observable, throwError } from 'rxjs'; +import { catchError, map, mergeMap, shareReplay } from 'rxjs/operators'; +import { PackageInfo } from '../../config'; +import { Logger } from '../../logging'; +import { PluginsConfig } from '../plugins_config'; +import { PluginDiscoveryError } from './plugin_discovery_error'; +import { parseManifest, PluginManifest } from './plugin_manifest_parser'; + +const fsReadDir$ = bindNodeCallback(readdir); +const fsStat$ = bindNodeCallback(stat); + +interface DiscoveryResult { + plugin?: { path: string; manifest: PluginManifest }; + error?: PluginDiscoveryError; +} + +/** + * Tries to discover all possible plugins based on the provided plugin config. + * Discovery result consists of two separate streams, the one (`plugin$`) is + * for the successfully discovered plugins and the other one (`error$`) is for + * all the errors that occurred during discovery process. + * + * @param config Plugin config instance. + * @param packageInfo Kibana package info. + * @param log Plugin discovery logger instance. + */ +export function discover(config: PluginsConfig, packageInfo: PackageInfo, log: Logger) { + log.debug('Discovering plugins...'); + + const discoveryResults$ = merge( + processScanDirs$(config.scanDirs, log), + processPaths$(config.paths, log) + ).pipe( + mergeMap(pluginPathOrError => { + return typeof pluginPathOrError === 'string' + ? createPlugin$(pluginPathOrError, packageInfo, log) + : [pluginPathOrError]; + }), + shareReplay() + ); + + return { + plugin$: discoveryResults$.pipe( + mergeMap(entry => (entry.plugin !== undefined ? [entry.plugin] : [])) + ), + error$: discoveryResults$.pipe( + mergeMap(entry => (entry.error !== undefined ? [entry.error] : [])) + ), + }; +} + +/** + * Iterates over every entry in `scanDirs` and returns a merged stream of all + * sub-directories. If directory cannot be read or it's impossible to get stat + * for any of the nested entries then error is added into the stream instead. + * @param scanDirs List of the top-level directories to process. + * @param log Plugin discovery logger instance. + */ +function processScanDirs$(scanDirs: string[], log: Logger) { + return from(scanDirs).pipe( + mergeMap(dir => { + log.debug(`Scanning "${dir}" for plugin sub-directories...`); + + return fsReadDir$(dir).pipe( + mergeMap(subDirs => subDirs.map(subDir => resolve(dir, subDir))), + mergeMap(path => + fsStat$(path).pipe( + // Filter out non-directory entries from target directories, it's expected that + // these directories may contain files (e.g. `README.md` or `package.json`). + // We shouldn't silently ignore the entries we couldn't get stat for though. + mergeMap(pathStat => (pathStat.isDirectory() ? [path] : [])), + catchError(err => [wrapError(PluginDiscoveryError.invalidPluginDirectory(path, err))]) + ) + ), + catchError(err => [wrapError(PluginDiscoveryError.invalidScanDirectory(dir, err))]) + ); + }) + ); +} + +/** + * Iterates over every entry in `paths` and returns a stream of all paths that + * are directories. If path is not a directory or it's impossible to get stat + * for this path then error is added into the stream instead. + * @param paths List of paths to process. + * @param log Plugin discovery logger instance. + */ +function processPaths$(paths: string[], log: Logger) { + return from(paths).pipe( + mergeMap(path => { + log.debug(`Including "${path}" into the plugin path list.`); + + return fsStat$(path).pipe( + // Since every path is specifically provided we should treat non-directory + // entries as mistakes we should report of. + mergeMap(pathStat => { + return pathStat.isDirectory() + ? [path] + : throwError(new Error(`${path} is not a directory.`)); + }), + catchError(err => [wrapError(PluginDiscoveryError.invalidPluginDirectory(path, err))]) + ); + }) + ); +} + +/** + * Tries to load and parse the plugin manifest file located at the provided plugin + * directory path and produces an error result if it fails to do so or plugin manifest + * isn't valid. + * @param path Path to the plugin directory where manifest should be loaded from. + * @param packageInfo Kibana package info. + * @param log Plugin discovery logger instance. + */ +function createPlugin$( + path: string, + packageInfo: PackageInfo, + log: Logger +): Observable { + return from(parseManifest(path, packageInfo)).pipe( + map(manifest => { + log.debug(`Successfully discovered plugin "${manifest.id}" at "${path}"`); + return { plugin: { path, manifest } }; + }), + catchError(err => [wrapError(err)]) + ); +} + +/** + * Wraps `PluginDiscoveryError` into `DiscoveryResult` entry. + * @param error Instance of the `PluginDiscoveryError` error. + */ +function wrapError(error: PluginDiscoveryError): DiscoveryResult { + return { error }; +} diff --git a/src/core/server/plugins/index.ts b/src/core/server/plugins/index.ts new file mode 100644 index 0000000000000..6ed7870b86c6d --- /dev/null +++ b/src/core/server/plugins/index.ts @@ -0,0 +1,30 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { ConfigService, Env } from '../config'; +import { LoggerFactory } from '../logging'; +import { PluginsService } from './plugins_service'; + +export class PluginsModule { + public readonly service: PluginsService; + + constructor(private readonly configService: ConfigService, logger: LoggerFactory, env: Env) { + this.service = new PluginsService(env, logger, this.configService); + } +} diff --git a/src/core/server/plugins/plugins_config.ts b/src/core/server/plugins/plugins_config.ts new file mode 100644 index 0000000000000..ad86581653310 --- /dev/null +++ b/src/core/server/plugins/plugins_config.ts @@ -0,0 +1,58 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { schema, TypeOf } from '@kbn/config-schema'; + +const pluginsSchema = schema.object({ + initialize: schema.boolean({ defaultValue: true }), + scanDirs: schema.arrayOf(schema.string(), { + defaultValue: [], + }), + paths: schema.arrayOf(schema.string(), { + defaultValue: [], + }), +}); + +type PluginsConfigType = TypeOf; + +/** @internal */ +export class PluginsConfig { + public static schema = pluginsSchema; + + /** + * Indicates whether or not plugins should be initialized. + */ + public readonly initialize: boolean; + + /** + * Defines directories that we should scan for the plugin subdirectories. + */ + public readonly scanDirs: string[]; + + /** + * Defines direct paths to specific plugin directories that we should initialize. + */ + public readonly paths: string[]; + + constructor(config: PluginsConfigType) { + this.initialize = config.initialize; + this.scanDirs = config.scanDirs; + this.paths = config.paths; + } +} diff --git a/src/core/server/plugins/plugins_service.test.ts b/src/core/server/plugins/plugins_service.test.ts new file mode 100644 index 0000000000000..4d448226e16f9 --- /dev/null +++ b/src/core/server/plugins/plugins_service.test.ts @@ -0,0 +1,146 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +const mockPackage = new Proxy({ raw: {} as any }, { get: (obj, prop) => obj.raw[prop] }); +jest.mock('../../../utils/package_json', () => ({ pkg: mockPackage })); + +const mockDiscover = jest.fn(); +jest.mock('./discovery/plugins_discovery', () => ({ discover: mockDiscover })); + +import { BehaviorSubject, from } from 'rxjs'; + +import { Config, ConfigService, Env, ObjectToConfigAdapter } from '../config'; +import { getEnvOptions } from '../config/__mocks__/env'; +import { logger } from '../logging/__mocks__'; +import { PluginDiscoveryError } from './discovery/plugin_discovery_error'; +import { PluginsService } from './plugins_service'; + +let pluginsService: PluginsService; +let configService: ConfigService; +let env: Env; +beforeEach(() => { + mockPackage.raw = { + branch: 'feature-v1', + version: 'v1', + build: { + distributable: true, + number: 100, + sha: 'feature-v1-build-sha', + }, + }; + + env = Env.createDefault(getEnvOptions()); + + configService = new ConfigService( + new BehaviorSubject( + new ObjectToConfigAdapter({ + plugins: { + initialize: true, + scanDirs: ['one', 'two'], + paths: ['three', 'four'], + }, + }) + ), + env, + logger + ); + pluginsService = new PluginsService(env, logger, configService); +}); + +afterEach(() => { + jest.clearAllMocks(); +}); + +test('properly invokes `discover` on `start`.', async () => { + mockDiscover.mockReturnValue({ + error$: from([ + PluginDiscoveryError.invalidManifest('path-1', new Error('Invalid JSON')), + PluginDiscoveryError.missingManifest('path-2', new Error('No manifest')), + PluginDiscoveryError.invalidScanDirectory('dir-1', new Error('No dir')), + PluginDiscoveryError.incompatibleVersion('path-3', new Error('Incompatible version')), + ]), + + plugin$: from([ + { + path: 'path-4', + manifest: { + id: 'some-id', + version: 'some-version', + kibanaVersion: '7.0.0', + requiredPlugins: ['some-required-plugin', 'some-required-plugin-2'], + optionalPlugins: ['some-optional-plugin'], + ui: true, + }, + }, + { + path: 'path-5', + manifest: { + id: 'some-other-id', + version: 'some-other-version', + kibanaVersion: '7.0.0', + requiredPlugins: ['some-required-plugin'], + optionalPlugins: [], + ui: false, + }, + }, + ]), + }); + + await pluginsService.start(); + + expect(mockDiscover).toHaveBeenCalledTimes(1); + expect(mockDiscover).toHaveBeenCalledWith( + { initialize: true, paths: ['three', 'four'], scanDirs: ['one', 'two'] }, + { branch: 'feature-v1', buildNum: 100, buildSha: 'feature-v1-build-sha', version: 'v1' }, + expect.objectContaining({ + debug: expect.any(Function), + error: expect.any(Function), + info: expect.any(Function), + }) + ); + + expect(logger.mockCollect()).toMatchInlineSnapshot(` +Object { + "debug": Array [ + Array [ + "starting plugins service", + ], + Array [ + "Marking config path as handled: plugins", + ], + Array [ + "Discovered 2 plugins.", + ], + ], + "error": Array [ + Array [ + [Error: Invalid JSON (invalid-manifest, path-1)], + ], + Array [ + [Error: Incompatible version (incompatible-version, path-3)], + ], + ], + "fatal": Array [], + "info": Array [], + "log": Array [], + "trace": Array [], + "warn": Array [], +} +`); +}); diff --git a/src/core/server/plugins/plugins_service.ts b/src/core/server/plugins/plugins_service.ts new file mode 100644 index 0000000000000..602a801ccd300 --- /dev/null +++ b/src/core/server/plugins/plugins_service.ts @@ -0,0 +1,77 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { filter, first, map, tap, toArray } from 'rxjs/operators'; +import { CoreService } from '../../types/core_service'; +import { ConfigService, Env } from '../config'; +import { Logger, LoggerFactory } from '../logging'; +import { discover, PluginDiscoveryErrorType } from './discovery'; +import { PluginsConfig } from './plugins_config'; + +export class PluginsService implements CoreService { + private readonly log: Logger; + + constructor( + private readonly env: Env, + private readonly logger: LoggerFactory, + private readonly configService: ConfigService + ) { + this.log = logger.get('plugins', 'service'); + } + + public async start() { + this.log.debug('starting plugins service'); + + // At this stage we report only errors that can occur when new platform plugin + // manifest is present, otherwise we can't be sure that the plugin is for the new + // platform and let legacy platform to handle it. + const errorTypesToReport = [ + PluginDiscoveryErrorType.IncompatibleVersion, + PluginDiscoveryErrorType.InvalidManifest, + ]; + + const { error$, plugin$ } = await this.configService + .atPath('plugins', PluginsConfig) + .pipe( + first(), + map(config => + discover(config, this.env.packageInfo, this.logger.get('plugins', 'discovery')) + ) + ) + .toPromise(); + + await error$ + .pipe( + filter(error => errorTypesToReport.includes(error.type)), + tap(invalidManifestError => this.log.error(invalidManifestError)) + ) + .toPromise(); + + await plugin$ + .pipe( + toArray(), + tap(plugins => this.log.debug(`Discovered ${plugins.length} plugins.`)) + ) + .toPromise(); + } + + public async stop() { + this.log.debug('stopping plugins service'); + } +} diff --git a/src/core_plugins/console/api_server/es_6_0/ingest.js b/src/core_plugins/console/api_server/es_6_0/ingest.js index 2aaa41f9bd7ff..04f2f12e003ed 100644 --- a/src/core_plugins/console/api_server/es_6_0/ingest.js +++ b/src/core_plugins/console/api_server/es_6_0/ingest.js @@ -17,6 +17,15 @@ * under the License. */ +const commonPipelineParams = { + on_failure: [], + ignore_failure: { + __one_of: [ false, true ] + }, + if: '', + tag: '' +}; + // Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/append-processor.html const appendProcessorDefinition = { append: { @@ -25,7 +34,23 @@ const appendProcessorDefinition = { value: [] }, field: '', - value: [] + value: [], + ...commonPipelineParams + } +}; + +// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/bytes-processor.html +const bytesProcessorDefinition = { + bytes: { + __template: { + field: '' + }, + field: '', + target_field: '', + ignore_missing: { + __one_of: [ false, true ] + }, + ...commonPipelineParams } }; @@ -43,7 +68,8 @@ const convertProcessorDefinition = { target_field: '', ignore_missing: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams } }; @@ -58,7 +84,8 @@ const dateProcessorDefinition = { target_field: '@timestamp', formats: [], timezone: 'UTC', - locale: 'ENGLISH' + locale: 'ENGLISH', + ...commonPipelineParams } }; @@ -76,7 +103,45 @@ const dateIndexNameProcessorDefinition = { date_formats: [], timezone: 'UTC', locale: 'ENGLISH', - index_name_format: 'yyyy-MM-dd' + index_name_format: 'yyyy-MM-dd', + ...commonPipelineParams + } +}; + +// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/dissect-processor.html +const dissectProcessorDefinition = { + dissect: { + __template: { + field: '', + pattern: '' + }, + field: '', + pattern: '', + append_separator: '', + ignore_missing: { + __one_of: [ false, true ] + }, + ...commonPipelineParams + } +}; + +// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/dot-expand-processor.html +const dotExpanderProcessorDefinition = { + dot_expander: { + __template: { + field: '' + }, + field: '', + path: '', + ...commonPipelineParams + } +}; + +// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/drop-processor.html +const dropProcessorDefinition = { + drop: { + __template: {}, + ...commonPipelineParams } }; @@ -86,7 +151,8 @@ const failProcessorDefinition = { __template: { message: '' }, - message: '' + message: '', + ...commonPipelineParams } }; @@ -100,7 +166,8 @@ const foreachProcessorDefinition = { field: '', processor: { __scope_link: '_processor' - } + }, + ...commonPipelineParams } }; @@ -119,7 +186,8 @@ const grokProcessorDefinition = { }, ignore_missing: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams } }; @@ -133,7 +201,8 @@ const gsubProcessorDefinition = { }, field: '', pattern: '', - replacement: '' + replacement: '', + ...commonPipelineParams } }; @@ -145,7 +214,8 @@ const joinProcessorDefinition = { separator: '' }, field: '', - separator: '' + separator: '', + ...commonPipelineParams } }; @@ -159,7 +229,8 @@ const jsonProcessorDefinition = { target_field: '', add_to_root: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams } }; @@ -178,7 +249,8 @@ const kvProcessorDefinition = { include_keys: [], ignore_missing: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams } }; @@ -191,7 +263,19 @@ const lowercaseProcessorDefinition = { field: '', ignore_missing: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams + } +}; + +// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/pipeline-processor.html +const pipelineProcessorDefinition = { + pipeline: { + __template: { + name: '' + }, + name: '', + ...commonPipelineParams } }; @@ -201,7 +285,8 @@ const removeProcessorDefinition = { __template: { field: '' }, - field: '' + field: '', + ...commonPipelineParams } }; @@ -216,7 +301,8 @@ const renameProcessorDefinition = { target_field: '', ignore_missing: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams } }; @@ -227,8 +313,9 @@ const scriptProcessorDefinition = { lang: 'painless', file: '', id: '', - inline: '', - params: {} + source: '', + params: {}, + ...commonPipelineParams } }; @@ -243,7 +330,8 @@ const setProcessorDefinition = { value: '', override: { __one_of: [ true, false ] - } + }, + ...commonPipelineParams } }; @@ -258,7 +346,8 @@ const splitProcessorDefinition = { separator: '', ignore_missing: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams } }; @@ -269,7 +358,8 @@ const sortProcessorDefinition = { field: '' }, field: '', - order: 'asc' + order: 'asc', + ...commonPipelineParams } }; @@ -282,7 +372,8 @@ const trimProcessorDefinition = { field: '', ignore_missing: { __one_of: [ false, true ] - } + }, + ...commonPipelineParams } }; @@ -295,27 +386,21 @@ const uppercaseProcessorDefinition = { field: '', ignore_missing: { __one_of: [ false, true ] - } - } -}; - -// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/dot-expand-processor.html -const dotExpanderProcessorDefinition = { - dot_expander: { - __template: { - field: '' }, - field: '', - path: '' + ...commonPipelineParams } }; const processorDefinition = { __one_of: [ appendProcessorDefinition, + bytesProcessorDefinition, convertProcessorDefinition, dateProcessorDefinition, dateIndexNameProcessorDefinition, + dissectProcessorDefinition, + dotExpanderProcessorDefinition, + dropProcessorDefinition, failProcessorDefinition, foreachProcessorDefinition, grokProcessorDefinition, @@ -324,6 +409,7 @@ const processorDefinition = { jsonProcessorDefinition, kvProcessorDefinition, lowercaseProcessorDefinition, + pipelineProcessorDefinition, removeProcessorDefinition, renameProcessorDefinition, scriptProcessorDefinition, @@ -331,8 +417,7 @@ const processorDefinition = { splitProcessorDefinition, sortProcessorDefinition, trimProcessorDefinition, - uppercaseProcessorDefinition, - dotExpanderProcessorDefinition + uppercaseProcessorDefinition ] }; @@ -344,7 +429,6 @@ const pipelineDefinition = { version: 123, }; - export default function (api) { // Note: this isn't an actual API endpoint. It exists so the forEach processor's "processor" field diff --git a/src/core_plugins/console/api_server/server.js b/src/core_plugins/console/api_server/server.js index 6697dbe4d37a7..b9a42a457b90d 100644 --- a/src/core_plugins/console/api_server/server.js +++ b/src/core_plugins/console/api_server/server.js @@ -19,15 +19,19 @@ import _ from 'lodash'; -export function resolveApi(senseVersion, apis, reply) { +const KNOWN_APIS = ['es_6_0']; + +export function resolveApi(senseVersion, apis, h) { const result = {}; _.each(apis, function (name) { { - // for now we ignore sense_version. might add it in the api name later - const api = require('./' + name); - result[name] = api.asJson(); + if (KNOWN_APIS.includes(name)) { + // for now we ignore sense_version. might add it in the api name later + const api = require('./' + name); + result[name] = api.asJson(); + } } }); - return reply(result).type('application/json'); + return h.response(result).type('application/json'); } diff --git a/src/core_plugins/console/api_server/server.test.js b/src/core_plugins/console/api_server/server.test.js new file mode 100644 index 0000000000000..ea78611a6060e --- /dev/null +++ b/src/core_plugins/console/api_server/server.test.js @@ -0,0 +1,51 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { resolveApi } from './server'; + +describe('resolveApi', () => { + it('allows known APIs to be resolved', () => { + const mockReply = jest.fn((result) => ({ type: () => result })); + const result = resolveApi('Sense Version', ['es_6_0'], { response: mockReply }); + expect(result).toMatchObject({ + es_6_0: { + endpoints: expect.any(Object), + globals: expect.any(Object), + name: expect.any(String), + } + }); + }); + + it('does not resolve APIs that are not known', () => { + const mockReply = jest.fn((result) => ({ type: () => result })); + const result = resolveApi('Sense Version', ['unknown'], { response: mockReply }); + expect(result).toEqual({}); + }); + + it('handles request for apis that are known and unknown', () => { + const mockReply = jest.fn((result) => ({ type: () => result })); + const result = resolveApi('Sense Version', ['es_6_0'], { response: mockReply }); + expect(result).toMatchObject({ + es_6_0: { + endpoints: expect.any(Object), + globals: expect.any(Object), + name: expect.any(String), + } + }); + }); +}); diff --git a/src/core_plugins/console/api_server/spec/generated/ingest.delete_pipeline.json b/src/core_plugins/console/api_server/spec/generated/ingest.delete_pipeline.json index a1c628e1e5116..c56d3840b2000 100644 --- a/src/core_plugins/console/api_server/spec/generated/ingest.delete_pipeline.json +++ b/src/core_plugins/console/api_server/spec/generated/ingest.delete_pipeline.json @@ -10,6 +10,6 @@ "patterns": [ "_ingest/pipeline/{id}" ], - "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html" + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html" } } diff --git a/src/core_plugins/console/api_server/spec/generated/ingest.get_pipeline.json b/src/core_plugins/console/api_server/spec/generated/ingest.get_pipeline.json index cf3fb455d2ed3..cffcbb1261f90 100644 --- a/src/core_plugins/console/api_server/spec/generated/ingest.get_pipeline.json +++ b/src/core_plugins/console/api_server/spec/generated/ingest.get_pipeline.json @@ -10,6 +10,6 @@ "_ingest/pipeline", "_ingest/pipeline/{id}" ], - "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html" + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html" } } diff --git a/src/core_plugins/console/api_server/spec/generated/ingest.processor_grok.json b/src/core_plugins/console/api_server/spec/generated/ingest.processor_grok.json index 42c593a1b88b4..7c7011c1e7571 100644 --- a/src/core_plugins/console/api_server/spec/generated/ingest.processor_grok.json +++ b/src/core_plugins/console/api_server/spec/generated/ingest.processor_grok.json @@ -6,6 +6,6 @@ "patterns": [ "_ingest/processor/grok" ], - "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html" + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get" } } diff --git a/src/core_plugins/console/api_server/spec/generated/ingest.put_pipeline.json b/src/core_plugins/console/api_server/spec/generated/ingest.put_pipeline.json index 0e7f7cab9ad6a..037c7bbfc3a31 100644 --- a/src/core_plugins/console/api_server/spec/generated/ingest.put_pipeline.json +++ b/src/core_plugins/console/api_server/spec/generated/ingest.put_pipeline.json @@ -10,6 +10,6 @@ "patterns": [ "_ingest/pipeline/{id}" ], - "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html" + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html" } } diff --git a/src/core_plugins/console/api_server/spec/generated/ingest.simulate.json b/src/core_plugins/console/api_server/spec/generated/ingest.simulate.json index 2bb84486c4696..ac9d94b3f7df6 100644 --- a/src/core_plugins/console/api_server/spec/generated/ingest.simulate.json +++ b/src/core_plugins/console/api_server/spec/generated/ingest.simulate.json @@ -11,6 +11,6 @@ "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" ], - "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html" + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html" } } diff --git a/src/core_plugins/console/index.js b/src/core_plugins/console/index.js index 420f6db2b3dc5..ad3881f825004 100644 --- a/src/core_plugins/console/index.js +++ b/src/core_plugins/console/index.js @@ -113,14 +113,13 @@ export default function (kibana) { server.route({ path: '/api/console/api_server', method: ['GET', 'POST'], - handler: function (req, reply) { + handler: function (req, h) { const { sense_version: version, apis } = req.query; if (!apis) { - reply(Boom.badRequest('"apis" is a required param.')); - return; + throw Boom.badRequest('"apis" is a required param.'); } - return resolveApi(version, apis.split(','), reply); + return resolveApi(version, apis.split(','), h); } }); }, @@ -129,6 +128,7 @@ export default function (kibana) { apps: apps, hacks: ['plugins/console/hacks/register'], devTools: ['plugins/console/console'], + styleSheetPaths: `${__dirname}/public/index.scss`, injectDefaultVars(server) { return { diff --git a/src/core_plugins/console/public/_ace_overrides.scss b/src/core_plugins/console/public/_ace_overrides.scss new file mode 100644 index 0000000000000..f11979d18cca4 --- /dev/null +++ b/src/core_plugins/console/public/_ace_overrides.scss @@ -0,0 +1,66 @@ +.conApp, +.conHelp__example, +.conHistory__viewer { + + .ace-tm { + .ace_gutter { + background-color: $euiColorEmptyShade; + color: $euiColorMediumShade; + } + + .ace_gutter-active-line, + .ace_marker-layer .ace_active-line { + background-color: transparentize($euiColorLightShade, .3); + } + } + + .ace_snippet-marker { + width: 100%; + background-color: tintOrShade($euiColorLightShade, 50%, 0); + border: none; + } + + .ace_search { + z-index: $euiZLevel1 + 1; + } + + .ace_layer.ace_marker-layer { + overflow: visible; + } + + .ace_scroller { + border-left: $euiBorderThin; + } + + // SASSTODO: Coloring uses EUI code block variables. + // However, the naming does not currently line up (selector to variable). + // This is so that there is no drastic visual difference for the user. + // Eventually, we can update this to match all other editors. + + .ace_warning { + color: $euiColorDanger; + } + + .ace_method { + color: $euiCodeBlockStringColor; + } + + .ace_url, + .ace_start_triple_quote, + .ace_end_triple_quote { + color: $euiCodeBlockNumberColor; + } + + .ace_variable { + color: $euiCodeBlockTypeColor; + } + + .ace_string, + .ace_multi_string { + color: $euiCodeBlockRegexpColor; + } + + .ace_multi_string { + font-style: italic; + } +} diff --git a/src/core_plugins/console/public/_app.scss b/src/core_plugins/console/public/_app.scss new file mode 100644 index 0000000000000..16e3bb33caa59 --- /dev/null +++ b/src/core_plugins/console/public/_app.scss @@ -0,0 +1,64 @@ +.conApp { + display: flex; + flex: 1 1 auto; + position: relative; + padding: $euiSizeS; + background-color: $euiColorLightestShade; + // Make sure the editor actions don't create scrollbars on this container + // SASSTODO: Uncomment when tooltips are EUI-ified (inside portals) + // overflow: hidden; +} + +.conApp__editor { + // Default size of left side is half the large breakpoint + // but this is inline overridden by the resizer + width: map-get($euiBreakpoints, "l") / 2; + display: flex; + flex: 0 0 auto; + position: relative; +} + +.conApp__output { + display: flex; + flex: 1 1 1px; +} + +.conApp__editorContent, +.conApp__outputContent { + flex: 1 1 1px; +} + +.conApp__editorActions { + position: absolute; + z-index: $euiZLevel1; + top: 0; + // Adjust for possible scrollbars + right: $euiSize; + line-height: 1; +} + +.conApp__editorActionButton { + padding: 0 $euiSizeXS; + appearance: none; + border: none; + background: none; +} + +.conApp__editorActionButton--success { + color: $euiColorSuccess; +} + +.conApp__resizer { + @include kibana-resizer; +} + +// SASSTODO: This component seems to not be used anymore? +// Possibly replaced by the Ace version +.conApp__autoComplete { + position: absolute; + left: -1000px; + visibility: hidden; + /* by pass any other element in ace and resize bar, but not modal popups */ + z-index: $euiZLevel1 + 2; + margin-top: 22px; +} diff --git a/src/core_plugins/console/public/console.js b/src/core_plugins/console/public/console.js index d6096d136abd6..1b586162f4501 100644 --- a/src/core_plugins/console/public/console.js +++ b/src/core_plugins/console/public/console.js @@ -27,7 +27,6 @@ require('ui/modules').get('kibana', ['sense.ui.bootstrap']); require('ui/tooltip'); require('ui/autoload/styles'); -require('./css/sense.less'); require('./src/controllers/sense_controller'); require('./src/directives/sense_history'); require('./src/directives/sense_settings'); diff --git a/src/core_plugins/console/public/css/sense.less b/src/core_plugins/console/public/css/sense.less deleted file mode 100644 index 61b6fecefae8f..0000000000000 --- a/src/core_plugins/console/public/css/sense.less +++ /dev/null @@ -1,207 +0,0 @@ -@import (reference) "~ui/styles/variables"; - -nav.navbar .logo.hidden-sm { - display: block !important; -} - -sense-help-example, -sense-history-viewer, -#editor_output_container { - @import "./sense.light.less"; -} - -#editor_output_container { - display: flex; - flex: 1 1 auto; - position: relative; - padding: 10px; - font-size: 16px; - - .ace-tm .ace_gutter { - background: @white; - color: #A0A0A0; - } - - .ace-tm .ace_gutter-active-line { - background-color: #e6e6e8; - } - - .ace-tm .ace_marker-layer .ace_active-line { - background-color: #dbdcdd; - } - - .ace_snippet-marker { - background-color: #e8e8e8; - border: 0; - } -} - -#editor_container { - display: flex; - flex: 0 0 auto; - width: 468px; - position: relative; - - #autocomplete { - position: absolute; - left: -1000px; - } - - #editor_actions { - position: absolute; - } - - #editor { - flex: 1 1 1px; - } - - .ace_search { - z-index: 1006; - } -} - -#editor_resizer { - display: flex; - flex: 0 0 13px; - cursor: ew-resize; - background-color: @globalColorLightestGray; - align-items: center; - margin: -10px 0; - - &:hover { - background-color: lighten(@globalColorBlue, 50%); - } - - &.active { - background-color: @globalColorBlue; - } -} - -#output_container { - display: flex; - flex: 1 1 1px; - - #output { - flex: 1 1 1px; - } -} - -#editor_actions { - position: absolute; - top: 0; - right: 0; - line-height: 1; - padding: 1px 3px 0 0; - /* by pass any other element in ace and resize bar, but not modal popups */ - z-index: 1005; - - .editor_action { - padding: 2px 4px; - appearance: none; - border: none; - background: none; - } - - .fa-wrench { - color: rgb(51, 51, 51); - } - - .fa-play { - color: rgb(112, 186, 86); - } -} - -#autocomplete { - visibility: hidden; - position: absolute; - /* by pass any other element in ace and resize bar, but not modal popups */ - z-index: 1003; - margin-top: 22px; - /*font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;*/ - /*font-size: 12px;*/ - /*max-height: 100px;*/ - /*overflow-y: auto;*/ - /* prevent horizontal scrollbar */ - /*overflow-x: hidden;*/ -} - -.ui-state-focus { - margin: auto !important; -} - -sense-help-example { - display: block; - height: 11em; - margin: 1em 0; -} - -.history-body { - display: flex; - height: 300px; - - .history-reqs, - .history-viewer { - flex: 0 0 50%; - } - - .history-reqs { - overflow: auto; - margin: 0 25px 0 0; - } - - .history-req { - display: flex; - - &.selected { - background-color: #DCDCDC; - } - - .history-req-icon { - flex: 1 0 auto; - text-align: right; - .fa-chevron-right { - opacity: .25; - } - } - } -} - -.history-footer { - text-align: right; - padding-top: 10px; -} - -.ui-autocomplete { - z-index: 400 !important; -} - -.ace_editor { - line-height: normal; -} - -.ace_layer.ace_marker-layer { - overflow: visible; -} - -.ace_snippet-marker { - position: absolute; - width: 100% !important; -} - -// .ui-resizable-e { -// cursor: ew-resize; -// width: 13px; -// right: -14px; -// top: -1px; -// bottom: -2px; -// background-color: transparent; -// position: absolute; -// } -// -// .ui-resizable-e:hover { -// background-color: #DCDCDC; -// } - -.ui-resizable-e.active { - background-color: rgba(194, 193, 208, 100); -} diff --git a/src/core_plugins/console/public/css/sense.light.less b/src/core_plugins/console/public/css/sense.light.less deleted file mode 100644 index 966198d21a164..0000000000000 --- a/src/core_plugins/console/public/css/sense.light.less +++ /dev/null @@ -1,49 +0,0 @@ -.ace_method { - color: #E64A3A; -} - -.ace_url { - color: #40B0D3; -} - -.ace_variable { - color: #006E8A; -} - -.ace_string { - color: #166555; -} - -.ace_warning { - color: #E64A3A; -} - -.ace_scroller { - border-left: 1px solid @globalColorLightGray; -} - -.ace_multi_string { - color: #166555; - font-style: italic; -} - -.ace_start_triple_quote, .ace_end_triple_quote { - color: #40B0D3; -} - -.ace_snippet-marker { - background: rgba(194, 193, 208, 0.20); - border-top: dotted 1px rgba(194, 193, 208, 0.80); - border-bottom: dotted 1px rgba(194, 193, 208, 0.80); - margin-top: -1px; /* compensate for background */ -} - -.ui-menu { - background-color: white; - border: 1px solid #CCC; -} - -.ui-state-focus { - color: white; - background-color: #08C; -} diff --git a/src/core_plugins/console/public/index.html b/src/core_plugins/console/public/index.html index 31b02421a40d3..30ebcf70b33be 100644 --- a/src/core_plugins/console/public/index.html +++ b/src/core_plugins/console/public/index.html @@ -1,11 +1,11 @@ -

-
-
    -
    - +
    +
    +
      +
      + @@ -28,27 +28,36 @@ aria-labelledby="consoleRequestOptions" >
    • - +
    • - +
    • - +
    • -
      GET _search +
      GET _search { "query": { "match_all": {} } }
      -
      -
      -
      {}
      +
      +
      +
      {}
      diff --git a/src/core_plugins/console/public/index.scss b/src/core_plugins/console/public/index.scss new file mode 100644 index 0000000000000..6e3e8b0fcc9b8 --- /dev/null +++ b/src/core_plugins/console/public/index.scss @@ -0,0 +1,12 @@ +@import 'ui/public/styles/styling_constants'; + +// Prefix all styles with "con" to avoid conflicts. +// Examples +// conChart +// conChart__legend +// conChart__legend--small +// conChart__legend-isLoading + +@import './app'; +@import './ace_overrides'; +@import './src/directives/index'; diff --git a/src/core_plugins/console/public/src/autocomplete.js b/src/core_plugins/console/public/src/autocomplete.js index 3daf2a326b44b..8275813ea2b98 100644 --- a/src/core_plugins/console/public/src/autocomplete.js +++ b/src/core_plugins/console/public/src/autocomplete.js @@ -29,6 +29,7 @@ import { URL_PATH_END_MARKER } from './autocomplete/components'; import _ from 'lodash'; import ace from 'brace'; import 'brace/ext/language_tools'; +import { i18n } from '@kbn/i18n'; const AceRange = ace.acequire('ace/range').Range; @@ -738,7 +739,7 @@ export default function (editor) { context.autoCompleteSet = ['GET', 'PUT', 'POST', 'DELETE', 'HEAD'].map((m, i) => ({ name: m, score: -i, - meta: 'method' + meta: i18n.translate('console.autocomplete.addMethodMetaText', { defaultMessage: 'method' }), })); } diff --git a/src/core_plugins/console/public/src/controllers/sense_controller.js b/src/core_plugins/console/public/src/controllers/sense_controller.js index 760207eb91136..9f1c9be68f9cc 100644 --- a/src/core_plugins/console/public/src/controllers/sense_controller.js +++ b/src/core_plugins/console/public/src/controllers/sense_controller.js @@ -44,10 +44,10 @@ module.controller('SenseController', function SenseController(Private, $scope, $ let input; let output; $timeout(async () => { - output = initializeOutput($('#output')); - input = initializeInput($('#editor'), $('#editor_actions'), $('#copy_as_curl'), output, $scope.openDocumentation); + output = initializeOutput($('#ConAppOutput')); + input = initializeInput($('#ConAppEditor'), $('#ConAppEditorActions'), $('#ConCopyAsCurl'), output, $scope.openDocumentation); init(input, output, $location.search().load_from); - kbnUiAceKeyboardModeService.initialize($scope, $('#editor')); + kbnUiAceKeyboardModeService.initialize($scope, $('#ConAppEditor')); const session = input.getSession(); session.getSelection().on('changeCursor', () => { $scope.getDocumentation(); @@ -67,7 +67,8 @@ module.controller('SenseController', function SenseController(Private, $scope, $ if (endpoint && endpoint.documentation && endpoint.documentation.indexOf('http') !== -1) { - $scope.documentation = endpoint.documentation.replace('master', DOC_LINK_VERSION); + $scope.documentation = endpoint.documentation.replace('/master/', `/${DOC_LINK_VERSION}/`); + $scope.documentation = $scope.documentation.replace('/current/', `/${DOC_LINK_VERSION}/`); $scope.$apply(); } else { $scope.documentation = null; diff --git a/src/core_plugins/console/public/src/controllers/sense_top_nav_controller.js b/src/core_plugins/console/public/src/controllers/sense_top_nav_controller.js index 967a0d9817171..390d223501b28 100644 --- a/src/core_plugins/console/public/src/controllers/sense_top_nav_controller.js +++ b/src/core_plugins/console/public/src/controllers/sense_top_nav_controller.js @@ -20,7 +20,7 @@ import { KbnTopNavControllerProvider } from 'ui/kbn_top_nav/kbn_top_nav_controller'; import storage from '../storage'; -export function SenseTopNavController(Private) { +export function SenseTopNavController(Private, i18n) { const KbnTopNavController = Private(KbnTopNavControllerProvider); const controller = new KbnTopNavController([ @@ -32,19 +32,25 @@ export function SenseTopNavController(Private) { }, { key: 'history', - description: 'History', + description: i18n('console.topNav.historyTabDescription', { + defaultMessage: 'History', + }), template: ``, testId: 'consoleHistoryButton', }, { key: 'settings', - description: 'Settings', + description: i18n('console.topNav.settingsTabDescription', { + defaultMessage: 'Settings', + }), template: ``, testId: 'consoleSettingsButton', }, { key: 'help', - description: 'Help', + description: i18n('console.topNav.helpTabDescription', { + defaultMessage: 'Help', + }), template: ``, testId: 'consoleHelpButton', }, diff --git a/src/core_plugins/console/public/src/directives/_help.scss b/src/core_plugins/console/public/src/directives/_help.scss new file mode 100644 index 0000000000000..594bcfd1db311 --- /dev/null +++ b/src/core_plugins/console/public/src/directives/_help.scss @@ -0,0 +1,5 @@ +.conHelp__example { + display: block; + height: $euiSize * 8; // 8 lines of code + margin: $euiSize 0; +} diff --git a/src/core_plugins/console/public/src/directives/_history.scss b/src/core_plugins/console/public/src/directives/_history.scss new file mode 100644 index 0000000000000..982669b44656d --- /dev/null +++ b/src/core_plugins/console/public/src/directives/_history.scss @@ -0,0 +1,33 @@ +.conHistory__body { + display: flex; + height: $euiSizeXL * 10; +} + + +.conHistory__footer { + text-align: right; + padding-top: $euiSize; +} + +.conHistory__reqs, +.conHistory__viewer { + flex: 0 0 50%; +} + +.conHistory__reqs { + overflow: auto; + margin-right: $euiSizeL; +} + +.conHistory__req { + display: flex; + justify-content: space-between; + + &-selected { + background-color: $euiColorLightestShade; + } +} + +.conHistory__reqIcon { + color: $euiColorMediumShade; +} diff --git a/src/core_plugins/console/public/src/directives/_index.scss b/src/core_plugins/console/public/src/directives/_index.scss new file mode 100644 index 0000000000000..56bd7ed20bda4 --- /dev/null +++ b/src/core_plugins/console/public/src/directives/_index.scss @@ -0,0 +1,2 @@ +@import './help'; +@import './history'; diff --git a/src/core_plugins/console/public/src/directives/help.html b/src/core_plugins/console/public/src/directives/help.html index 51d7e4761c292..11cb5c254b9ac 100644 --- a/src/core_plugins/console/public/src/directives/help.html +++ b/src/core_plugins/console/public/src/directives/help.html @@ -1,39 +1,94 @@ -

      Help

      +

      -

      Request format

      +

      - You can type one or more requests in the white editor. Console understands requests in a compact format: - + +
      -

      Keyboard commands

      +

      Ctrl/Cmd + I
      -
      Auto indent current request
      +
      Ctrl/Cmd + /
      -
      Open documentation for current request
      +
      Ctrl + Space
      -
      Open Auto complete (even if not typing)
      +
      Ctrl/Cmd + Enter
      -
      Submit request
      +
      Ctrl/Cmd + Up/Down
      -
      Jump to the previous/next request start or end.
      +
      Ctrl/Cmd + Alt + L
      -
      Collapse/expand current scope.
      +
      Ctrl/Cmd + Option + 0
      -
      Collapse all scopes but the current one. Expand by adding a shift.
      +
      Down arrow
      -
      Switch focus to auto-complete menu. Use arrows to further select a term
      +
      Enter/Tab
      -
      Select the currently selected or the top most term in auto-complete menu
      +
      Esc
      -
      Close auto-complete menu
      +
      diff --git a/src/core_plugins/console/public/src/directives/history.html b/src/core_plugins/console/public/src/directives/history.html index 630ab2b264578..25d72ae009931 100644 --- a/src/core_plugins/console/public/src/directives/history.html +++ b/src/core_plugins/console/public/src/directives/history.html @@ -1,43 +1,53 @@ -

      History

      +

      -
      +
      • {{ history.describeReq(req) }} - +
      - +
      - Settings ng-model="settings.vals.wrapMode" aria-describedby="consoleFontSize" > - - Wrap long lines - + @@ -46,9 +52,9 @@

      Settings

      - Autocomplete - + i18n-id="console.settingsPage.autocompleteLabel" + i18n-default-message="Autocomplete" + >
      @@ -95,17 +107,17 @@

      Settings

      + i18n-id="console.settingsPage.cancelButtonLabel" + i18n-default-message="Cancel" + > + i18n-id="console.settingsPage.saveButtonLabel" + i18n-default-message="Save" + >
      diff --git a/src/core_plugins/console/public/src/directives/welcome.html b/src/core_plugins/console/public/src/directives/welcome.html index bad5efa578ca0..7fba7d21a9160 100644 --- a/src/core_plugins/console/public/src/directives/welcome.html +++ b/src/core_plugins/console/public/src/directives/welcome.html @@ -1,28 +1,66 @@
      -

      Welcome to Console

      +

      -

      Quick intro to the UI

      +

      + +

      -

      The Console UI is split into two panes: an editor pane (left) and a response pane (right). +

      -

      Console understands requests in a compact format, similar to cURL: +

      -

      While typing a request, Console will make suggestions which you can then accept by hitting Enter/Tab. - These suggestions are made based on the request structure as well as your indices and types. +

      -

      A few quick tips, while I have your attention

      +

      + + +

        -
      • Submit requests to ES using the green triangle button.
      • -
      • Use the wrench menu for other useful things.
      • -
      • You can paste requests in cURL format and they will be translated to the Console syntax.
      • -
      • You can resize the editor and output panes by dragging the separator between them.
      • -
      • Study the keyboard shortcuts under the Help button. Good stuff in there!
      • +
      • +
      • +
      • +
      • +
      diff --git a/src/core_plugins/console/public/src/input.js b/src/core_plugins/console/public/src/input.js index 3adddcd7b41f3..68b54ab9ecda1 100644 --- a/src/core_plugins/console/public/src/input.js +++ b/src/core_plugins/console/public/src/input.js @@ -173,7 +173,7 @@ export function initializeInput($el, $actionsEl, $copyAsCurlEl, output, openDocu if (mode === null || mode === 'application/json') { // assume json - auto pretty try { - value = utils.expandLiteralStrings(JSON.stringify(JSON.parse(value), null, 2)); + value = utils.expandLiteralStrings(value); } catch (e) { // nothing to do here diff --git a/src/core_plugins/console/public/src/input_resize.js b/src/core_plugins/console/public/src/input_resize.js index 1a79832400a2f..1afc952f699f4 100644 --- a/src/core_plugins/console/public/src/input_resize.js +++ b/src/core_plugins/console/public/src/input_resize.js @@ -37,7 +37,7 @@ export default function (input, output) { $left.width(editorWidth); } - const $resizer = $('#editor_resizer'); + const $resizer = $('#ConAppResizer'); $resizer .on('mousedown', function (event) { $resizer.addClass('active'); diff --git a/src/core_plugins/console/public/tests/src/editor.test.js b/src/core_plugins/console/public/tests/src/editor.test.js index 33420193c8e4e..ef1b1fb2dd65c 100644 --- a/src/core_plugins/console/public/tests/src/editor.test.js +++ b/src/core_plugins/console/public/tests/src/editor.test.js @@ -37,15 +37,15 @@ describe('Editor', () => { // Set up our document body document.body.innerHTML = `
      -
      -
      -
      +
      +
      +
      `; input = initializeInput( - $('#editor'), - $('#editor_actions'), - $('#copy_as_curl'), + $('#ConAppEditor'), + $('#ConAppEditorActions'), + $('#ConCopyAsCurl'), null ); input.$el.show(); diff --git a/src/core_plugins/console/public/tests/src/input_tokenization.test.js b/src/core_plugins/console/public/tests/src/input_tokenization.test.js index 0b92a4a3ede22..914bd4854e8c4 100644 --- a/src/core_plugins/console/public/tests/src/input_tokenization.test.js +++ b/src/core_plugins/console/public/tests/src/input_tokenization.test.js @@ -31,18 +31,18 @@ describe('Input Tokenization', () => { // Set up our document body document.body.innerHTML = `
      -
      -
      -
      +
      +
      +
      `; input = initializeInput( - $('#editor'), - $('#editor_actions'), - $('#copy_as_curl'), + $('#ConAppEditor'), + $('#ConAppEditorActions'), + $('#ConCopyAsCurl'), null ); - input = initializeInput($('#editor'), $('#editor_actions'), $('#copy_as_curl'), null); + input = initializeInput($('#ConAppEditor'), $('#ConAppEditorActions'), $('#ConCopyAsCurl'), null); input.$el.show(); input.autocomplete._test.removeChangeListener(); }); diff --git a/src/core_plugins/console/public/tests/src/integration.test.js b/src/core_plugins/console/public/tests/src/integration.test.js index 410e933dfafd3..cfb6e56bf5efa 100644 --- a/src/core_plugins/console/public/tests/src/integration.test.js +++ b/src/core_plugins/console/public/tests/src/integration.test.js @@ -33,12 +33,12 @@ describe('Integration', () => { beforeEach(() => { // Set up our document body document.body.innerHTML = - '
      '; + '
      '; input = initializeInput( - $('#editor'), - $('#editor_actions'), - $('#copy_as_curl'), + $('#ConAppEditor'), + $('#ConAppEditorActions'), + $('#ConCopyAsCurl'), null ); input.$el.show(); diff --git a/src/core_plugins/console/public/tests/src/output_tokenization.test.js b/src/core_plugins/console/public/tests/src/output_tokenization.test.js index 04b5cbdb0a6b0..36c081f5ef923 100644 --- a/src/core_plugins/console/public/tests/src/output_tokenization.test.js +++ b/src/core_plugins/console/public/tests/src/output_tokenization.test.js @@ -31,7 +31,7 @@ const tokenIterator = ace.acequire('ace/token_iterator'); describe('Output Tokenization', () => { beforeEach(() => { - output = initializeOutput($('#output')); + output = initializeOutput($('#ConAppOutput')); output.$el.show(); }); afterEach(() => { diff --git a/src/core_plugins/console/server/__tests__/elasticsearch_proxy_config.js b/src/core_plugins/console/server/__tests__/elasticsearch_proxy_config.js index 3a721bb18dfac..79821f6ff54e7 100644 --- a/src/core_plugins/console/server/__tests__/elasticsearch_proxy_config.js +++ b/src/core_plugins/console/server/__tests__/elasticsearch_proxy_config.js @@ -18,11 +18,15 @@ */ import expect from 'expect.js'; +import fs from 'fs'; +import { promisify } from 'bluebird'; import { getElasticsearchProxyConfig } from '../elasticsearch_proxy_config'; import https from 'https'; import http from 'http'; import sinon from 'sinon'; +const readFileAsync = promisify(fs.readFile, fs); + describe('plugins/console', function () { describe('#getElasticsearchProxyConfig', function () { @@ -118,22 +122,73 @@ describe('plugins/console', function () { expect(agent.options.ca).to.contain('test ca certificate\n'); }); - it(`doesn't set cert and key when certificate and key paths are specified`, function () { - setElasticsearchConfig('ssl.certificate', __dirname + '/fixtures/cert.crt'); - setElasticsearchConfig('ssl.key', __dirname + '/fixtures/cert.key'); - - const { agent } = getElasticsearchProxyConfig(server); - expect(agent.options.cert).to.be(undefined); - expect(agent.options.key).to.be(undefined); + describe('when alwaysPresentCertificate is false', () => { + it(`doesn't set cert and key when certificate and key paths are specified`, function () { + setElasticsearchConfig('ssl.alwaysPresentCertificate', false); + setElasticsearchConfig('ssl.certificate', __dirname + '/fixtures/cert.crt'); + setElasticsearchConfig('ssl.key', __dirname + '/fixtures/cert.key'); + + const { agent } = getElasticsearchProxyConfig(server); + expect(agent.options.cert).to.be(undefined); + expect(agent.options.key).to.be(undefined); + }); + + it(`doesn't set passphrase when certificate, key and keyPassphrase are specified`, function () { + setElasticsearchConfig('ssl.alwaysPresentCertificate', false); + setElasticsearchConfig('ssl.certificate', __dirname + '/fixtures/cert.crt'); + setElasticsearchConfig('ssl.key', __dirname + '/fixtures/cert.key'); + setElasticsearchConfig('ssl.keyPassphrase', 'secret'); + + const { agent } = getElasticsearchProxyConfig(server); + expect(agent.options.passphrase).to.be(undefined); + }); }); - it(`doesn't set passphrase when certificate, key and keyPassphrase are specified`, function () { - setElasticsearchConfig('ssl.certificate', __dirname + '/fixtures/cert.crt'); - setElasticsearchConfig('ssl.key', __dirname + '/fixtures/cert.key'); - setElasticsearchConfig('ssl.keyPassphrase', 'secret'); + describe('when alwaysPresentCertificate is true', () => { + it(`sets cert and key when certificate and key paths are specified`, async function () { + const certificatePath = __dirname + '/fixtures/cert.crt'; + const keyPath = __dirname + '/fixtures/cert.key'; + setElasticsearchConfig('ssl.alwaysPresentCertificate', true); + setElasticsearchConfig('ssl.certificate', certificatePath); + setElasticsearchConfig('ssl.key', keyPath); + + const { agent } = getElasticsearchProxyConfig(server); + expect(agent.options.cert).to.be(await readFileAsync(certificatePath, 'utf8')); + expect(agent.options.key).to.be(await readFileAsync(keyPath, 'utf8')); + }); + + it(`sets passphrase when certificate, key and keyPassphrase are specified`, function () { + setElasticsearchConfig('ssl.alwaysPresentCertificate', true); + setElasticsearchConfig('ssl.certificate', __dirname + '/fixtures/cert.crt'); + setElasticsearchConfig('ssl.key', __dirname + '/fixtures/cert.key'); + setElasticsearchConfig('ssl.keyPassphrase', 'secret'); + + const { agent } = getElasticsearchProxyConfig(server); + expect(agent.options.passphrase).to.be('secret'); + }); + + it(`doesn't set cert when only certificate path is specified`, async function () { + const certificatePath = __dirname + '/fixtures/cert.crt'; + setElasticsearchConfig('ssl.alwaysPresentCertificate', true); + setElasticsearchConfig('ssl.certificate', certificatePath); + setElasticsearchConfig('ssl.key', undefined); + + const { agent } = getElasticsearchProxyConfig(server); + expect(agent.options.cert).to.be(undefined); + expect(agent.options.key).to.be(undefined); + }); + + it(`doesn't set key when only key path is specified`, async function () { + const keyPath = __dirname + '/fixtures/cert.key'; + setElasticsearchConfig('ssl.alwaysPresentCertificate', true); + setElasticsearchConfig('ssl.certificate', undefined); + setElasticsearchConfig('ssl.key', keyPath); + + const { agent } = getElasticsearchProxyConfig(server); + expect(agent.options.cert).to.be(undefined); + expect(agent.options.key).to.be(undefined); + }); - const { agent } = getElasticsearchProxyConfig(server); - expect(agent.options.passphrase).to.be(undefined); }); }); }); diff --git a/src/core_plugins/console/server/__tests__/proxy_route/body.js b/src/core_plugins/console/server/__tests__/proxy_route/body.js index 28ad08d72ab6a..9dae2ec8047ff 100644 --- a/src/core_plugins/console/server/__tests__/proxy_route/body.js +++ b/src/core_plugins/console/server/__tests__/proxy_route/body.js @@ -36,8 +36,6 @@ describe('Console Proxy Route', () => { sandbox.stub(Wreck, 'request').callsFake(createWreckResponseStub(response)); const server = new Server(); - - server.connection({ port: 0 }); server.route(createProxyRoute({ baseUrl: 'http://localhost:9200' })); diff --git a/src/core_plugins/console/server/__tests__/proxy_route/headers.js b/src/core_plugins/console/server/__tests__/proxy_route/headers.js index 3bf32ce78871a..2d3ddf11e020f 100644 --- a/src/core_plugins/console/server/__tests__/proxy_route/headers.js +++ b/src/core_plugins/console/server/__tests__/proxy_route/headers.js @@ -38,8 +38,6 @@ describe('Console Proxy Route', () => { setup = () => { const server = new Server(); - - server.connection({ port: 0 }); server.route(createProxyRoute({ baseUrl: 'http://localhost:9200' })); diff --git a/src/core_plugins/console/server/__tests__/proxy_route/params.js b/src/core_plugins/console/server/__tests__/proxy_route/params.js index 2fb1370555946..4ceccc8855d6a 100644 --- a/src/core_plugins/console/server/__tests__/proxy_route/params.js +++ b/src/core_plugins/console/server/__tests__/proxy_route/params.js @@ -38,7 +38,6 @@ describe('Console Proxy Route', () => { setup = () => { const server = new Server(); - server.connection({ port: 0 }); teardowns.push(() => server.stop()); return { server }; }; @@ -126,7 +125,7 @@ describe('Console Proxy Route', () => { expect(args[0]).to.have.property('path', '/api/console/proxy'); expect(args[0]).to.have.property('method', 'post'); expect(args[0]).to.have.property('query').eql({ method: 'HEAD', path: '/index/type/id' }); - expect(args[1]).to.be('/index/type/id'); + expect(args[1]).to.be('/index/type/id?pretty'); }); it('sends the returned timeout, rejectUnauthorized, agent, and base headers to Wreck', async () => { diff --git a/src/core_plugins/console/server/__tests__/proxy_route/query_string.js b/src/core_plugins/console/server/__tests__/proxy_route/query_string.js index 9276ec3b5ef35..c5b44cf39713d 100644 --- a/src/core_plugins/console/server/__tests__/proxy_route/query_string.js +++ b/src/core_plugins/console/server/__tests__/proxy_route/query_string.js @@ -36,8 +36,6 @@ describe('Console Proxy Route', () => { request = async (method, path) => { const server = new Server(); - - server.connection({ port: 0 }); server.route(createProxyRoute({ baseUrl: 'http://localhost:9200' })); @@ -66,7 +64,7 @@ describe('Console Proxy Route', () => { await request('GET', 'http://evil.com/test'); sinon.assert.calledOnce(Wreck.request); const args = Wreck.request.getCall(0).args; - expect(args[1]).to.be('http://localhost:9200/http://evil.com/test'); + expect(args[1]).to.be('http://localhost:9200/http://evil.com/test?pretty'); }); }); describe('is missing', () => { @@ -87,14 +85,14 @@ describe('Console Proxy Route', () => { it('combines well with the base url', async () => { await request('GET', '/index/type/id'); sinon.assert.calledOnce(Wreck.request); - expect(Wreck.request.getCall(0).args[1]).to.be('http://localhost:9200/index/type/id'); + expect(Wreck.request.getCall(0).args[1]).to.be('http://localhost:9200/index/type/id?pretty'); }); }); describe(`doesn't start with a slash`, () => { it('combines well with the base url', async () => { await request('GET', 'index/type/id'); sinon.assert.calledOnce(Wreck.request); - expect(Wreck.request.getCall(0).args[1]).to.be('http://localhost:9200/index/type/id'); + expect(Wreck.request.getCall(0).args[1]).to.be('http://localhost:9200/index/type/id?pretty'); }); }); }); diff --git a/src/core_plugins/console/server/__tests__/proxy_route/stubs.js b/src/core_plugins/console/server/__tests__/proxy_route/stubs.js index 3318f7a4b2740..78efef84c9750 100644 --- a/src/core_plugins/console/server/__tests__/proxy_route/stubs.js +++ b/src/core_plugins/console/server/__tests__/proxy_route/stubs.js @@ -20,7 +20,7 @@ import { Readable } from 'stream'; export function createWreckResponseStub(response) { - return (...args) => { + return async () => { const resp = new Readable({ read() { if (response) { @@ -37,6 +37,6 @@ export function createWreckResponseStub(response) { 'content-length': String(response ? response.length : 0) }; - args.pop()(null, resp); + return resp; }; } diff --git a/src/core_plugins/console/server/elasticsearch_proxy_config.js b/src/core_plugins/console/server/elasticsearch_proxy_config.js index 86fb37eb86eb7..b1ece31d9e3d9 100644 --- a/src/core_plugins/console/server/elasticsearch_proxy_config.js +++ b/src/core_plugins/console/server/elasticsearch_proxy_config.js @@ -55,6 +55,16 @@ const createAgent = (server) => { agentOptions.ca = config.get('elasticsearch.ssl.certificateAuthorities').map(readFile); } + if ( + config.get('elasticsearch.ssl.alwaysPresentCertificate') && + config.get('elasticsearch.ssl.certificate') && + config.get('elasticsearch.ssl.key') + ) { + agentOptions.cert = readFile(config.get('elasticsearch.ssl.certificate')); + agentOptions.key = readFile(config.get('elasticsearch.ssl.key')); + agentOptions.passphrase = config.get('elasticsearch.ssl.keyPassphrase'); + } + return new https.Agent(agentOptions); }; diff --git a/src/core_plugins/console/server/proxy_route.js b/src/core_plugins/console/server/proxy_route.js index cdae847f0e702..a7062133dcd36 100644 --- a/src/core_plugins/console/server/proxy_route.js +++ b/src/core_plugins/console/server/proxy_route.js @@ -23,7 +23,16 @@ import Wreck from 'wreck'; import { trimLeft, trimRight } from 'lodash'; function resolveUri(base, path) { - return `${trimRight(base, '/')}/${trimLeft(path, '/')}`; + let pathToUse = `${trimRight(base, '/')}/${trimLeft(path, '/')}`; + const questionMarkIndex = pathToUse.indexOf('?'); + // no query string in pathToUse, append '?pretty' + if (questionMarkIndex === -1) { + pathToUse = `${pathToUse}?pretty`; + } else { + // pathToUse has query string, append '&pretty' + pathToUse = `${pathToUse}&pretty`; + } + return pathToUse; } function extendCommaList(obj, property, value) { @@ -37,7 +46,7 @@ function getProxyHeaders(req) { // see https://git.io/vytQ7 extendCommaList(headers, 'x-forwarded-for', req.info.remoteAddress); extendCommaList(headers, 'x-forwarded-port', req.info.remotePort); - extendCommaList(headers, 'x-forwarded-proto', req.connection.info.protocol); + extendCommaList(headers, 'x-forwarded-proto', req.server.info.protocol); extendCommaList(headers, 'x-forwarded-host', req.info.host); } @@ -73,21 +82,21 @@ export const createProxyRoute = ({ }, pre: [ - function filterPath(req, reply) { + function filterPath(req) { const { path } = req.query; - if (!pathFilters.some(re => re.test(path))) { - const err = Boom.forbidden(); - err.output.payload = `Error connecting to '${path}':\n\nUnable to send requests to that path.`; - err.output.headers['content-type'] = 'text/plain'; - reply(err); - } else { - reply(); + if (pathFilters.some(re => re.test(path))) { + return null; } + + const err = Boom.forbidden(); + err.output.payload = `Error connecting to '${path}':\n\nUnable to send requests to that path.`; + err.output.headers['content-type'] = 'text/plain'; + throw err; }, ], - handler(req, reply) { + handler: async (req, h) => { const { payload, query } = req; const { path, method } = query; const uri = resolveUri(baseUrl, path); @@ -110,23 +119,18 @@ export const createProxyRoute = ({ }, }; - Wreck.request(method, uri, wreckOptions, (err, esResponse) => { - if (err) { - return reply(err); - } - - if (method.toUpperCase() !== 'HEAD') { - reply(esResponse) - .code(esResponse.statusCode) - .header('warning', esResponse.headers.warning); - return; - } + const esResponse = await Wreck.request(method, uri, wreckOptions); - reply(`${esResponse.statusCode} - ${esResponse.statusMessage}`) + if (method.toUpperCase() !== 'HEAD') { + return h.response(esResponse) .code(esResponse.statusCode) - .type('text/plain') .header('warning', esResponse.headers.warning); - }); + } + + return h.response(`${esResponse.statusCode} - ${esResponse.statusMessage}`) + .code(esResponse.statusCode) + .type('text/plain') + .header('warning', esResponse.headers.warning); } } }); diff --git a/src/core_plugins/elasticsearch/index.js b/src/core_plugins/elasticsearch/index.js index 87af4ace6a668..7536a8d4813d4 100644 --- a/src/core_plugins/elasticsearch/index.js +++ b/src/core_plugins/elasticsearch/index.js @@ -35,33 +35,32 @@ export default function (kibana) { return new kibana.Plugin({ require: ['kibana'], config(Joi) { - const { array, boolean, number, object, string, ref } = Joi; - - const sslSchema = object({ - verificationMode: string().valid('none', 'certificate', 'full').default('full'), - certificateAuthorities: array().single().items(string()), - certificate: string(), - key: string(), - keyPassphrase: string() + const sslSchema = Joi.object({ + verificationMode: Joi.string().valid('none', 'certificate', 'full').default('full'), + certificateAuthorities: Joi.array().single().items(Joi.string()), + certificate: Joi.string(), + key: Joi.string(), + keyPassphrase: Joi.string(), + alwaysPresentCertificate: Joi.boolean().default(false), }).default(); - return object({ - enabled: boolean().default(true), - url: string().uri({ scheme: ['http', 'https'] }).default('http://localhost:9200'), - preserveHost: boolean().default(true), - username: string(), - password: string(), - shardTimeout: number().default(30000), - requestTimeout: number().default(30000), - requestHeadersWhitelist: array().items().single().default(DEFAULT_REQUEST_HEADERS), - customHeaders: object().default({}), - pingTimeout: number().default(ref('requestTimeout')), - startupTimeout: number().default(5000), - logQueries: boolean().default(false), + return Joi.object({ + enabled: Joi.boolean().default(true), + url: Joi.string().uri({ scheme: ['http', 'https'] }).default('http://localhost:9200'), + preserveHost: Joi.boolean().default(true), + username: Joi.string(), + password: Joi.string(), + shardTimeout: Joi.number().default(30000), + requestTimeout: Joi.number().default(30000), + requestHeadersWhitelist: Joi.array().items().single().default(DEFAULT_REQUEST_HEADERS), + customHeaders: Joi.object().default({}), + pingTimeout: Joi.number().default(Joi.ref('requestTimeout')), + startupTimeout: Joi.number().default(5000), + logQueries: Joi.boolean().default(false), ssl: sslSchema, apiVersion: Joi.string().default('master'), - healthCheck: object({ - delay: number().default(2500) + healthCheck: Joi.object({ + delay: Joi.number().default(2500) }).default(), }).default(); }, diff --git a/src/core_plugins/elasticsearch/lib/__tests__/create_clusters.js b/src/core_plugins/elasticsearch/lib/__tests__/create_clusters.js index ce9ebc739a651..c10e8e6ebae0e 100644 --- a/src/core_plugins/elasticsearch/lib/__tests__/create_clusters.js +++ b/src/core_plugins/elasticsearch/lib/__tests__/create_clusters.js @@ -36,7 +36,9 @@ describe('plugins/elasticsearch', function () { elasticsearch: {} }, expose: sinon.mock(), - on: sinon.stub(), + events: { + on: sinon.stub(), + } }; clusters = createClusters(server); @@ -86,7 +88,6 @@ describe('plugins/elasticsearch', function () { it('closes all clusters', async () => { const server = new Hapi.Server(); - server.connection({ port: 0 }); const clusters = createClusters(server); const cluster = clusters.create('name', { config: true }); expect(cluster).to.have.property('stub', true); diff --git a/src/core_plugins/elasticsearch/lib/__tests__/health_check.js b/src/core_plugins/elasticsearch/lib/__tests__/health_check.js index 50cbe34a8985a..bc3dae10b99c3 100644 --- a/src/core_plugins/elasticsearch/lib/__tests__/health_check.js +++ b/src/core_plugins/elasticsearch/lib/__tests__/health_check.js @@ -114,13 +114,10 @@ describe('plugins/elasticsearch', () => { sinon.assert.calledOnce(server.ext); sinon.assert.calledWithExactly(server.ext, sinon.match.string, sinon.match.func); - // call the server extension - const reply = sinon.stub(); const [, handler] = server.ext.firstCall.args; - handler({}, reply); + handler(); // this should be health.stop - // ensure that the handler called reply and unregistered the time - sinon.assert.calledOnce(reply); + // ensure that the handler unregistered the timer expect(getTimerCount()).to.be(0); }); diff --git a/src/core_plugins/elasticsearch/lib/cluster.js b/src/core_plugins/elasticsearch/lib/cluster.js index 52644e5a8b3e2..be6399257cd10 100644 --- a/src/core_plugins/elasticsearch/lib/cluster.js +++ b/src/core_plugins/elasticsearch/lib/cluster.js @@ -34,7 +34,10 @@ export class Cluster { this._clients = new Set(); this._client = this.createClient(); - this._noAuthClient = this.createClient({ auth: false }, { ignoreCertAndKey: true }); + this._noAuthClient = this.createClient( + { auth: false }, + { ignoreCertAndKey: !this.getSsl().alwaysPresentCertificate } + ); return this; } diff --git a/src/core_plugins/elasticsearch/lib/create_agent.js b/src/core_plugins/elasticsearch/lib/create_agent.js index 6bce56b27032b..f636c9edcc1b8 100644 --- a/src/core_plugins/elasticsearch/lib/create_agent.js +++ b/src/core_plugins/elasticsearch/lib/create_agent.js @@ -29,5 +29,6 @@ export default function (config) { if (!/^https/.test(target.protocol)) return new http.Agent(); - return new https.Agent(parseConfig(config, { ignoreCertAndKey: true }).ssl); + const ignoreCertAndKey = !get(config, 'ssl.alwaysPresentCertificate'); + return new https.Agent(parseConfig(config, { ignoreCertAndKey }).ssl); } diff --git a/src/core_plugins/elasticsearch/lib/create_clusters.js b/src/core_plugins/elasticsearch/lib/create_clusters.js index e5a5c60b91612..8847e46647848 100644 --- a/src/core_plugins/elasticsearch/lib/create_clusters.js +++ b/src/core_plugins/elasticsearch/lib/create_clusters.js @@ -22,7 +22,7 @@ import { Cluster } from './cluster'; export function createClusters(server) { const clusters = new Map(); - server.on('stop', () => { + server.events.on('stop', () => { for (const [name, cluster] of clusters) { cluster.close(); clusters.delete(name); diff --git a/src/core_plugins/elasticsearch/lib/create_proxy.js b/src/core_plugins/elasticsearch/lib/create_proxy.js index 64f5f94fe71b4..2ddfaa4c6c789 100644 --- a/src/core_plugins/elasticsearch/lib/create_proxy.js +++ b/src/core_plugins/elasticsearch/lib/create_proxy.js @@ -33,10 +33,9 @@ export function createProxy(server, method, path, config) { ['/elasticsearch', server.plugins.elasticsearch.getCluster('data')], ]); - const responseHandler = function (err, upstreamResponse, request, reply) { + const responseHandler = function (err, upstreamResponse) { if (err) { - reply(err); - return; + throw err; } if (upstreamResponse.headers.location) { @@ -44,7 +43,7 @@ export function createProxy(server, method, path, config) { upstreamResponse.headers.location = encodeURI(upstreamResponse.headers.location); } - reply(null, upstreamResponse); + return upstreamResponse; }; for (const [proxyPrefix, cluster] of proxies) { diff --git a/src/core_plugins/elasticsearch/lib/health_check.js b/src/core_plugins/elasticsearch/lib/health_check.js index 7395c305df76b..167cb3044b4a1 100644 --- a/src/core_plugins/elasticsearch/lib/health_check.js +++ b/src/core_plugins/elasticsearch/lib/health_check.js @@ -95,10 +95,7 @@ export default function (plugin, server) { return true; } - server.ext('onPreStop', (request, reply) => { - stopChecking(); - reply(); - }); + server.ext('onPreStop', stopChecking); return { waitUntilReady: waitUntilReady, @@ -107,5 +104,4 @@ export default function (plugin, server) { stop: stopChecking, isRunning: function () { return !!timeoutId; }, }; - } diff --git a/src/core_plugins/elasticsearch/lib/map_uri.js b/src/core_plugins/elasticsearch/lib/map_uri.js index 11c9b99c6da3b..8d127d6658a5b 100644 --- a/src/core_plugins/elasticsearch/lib/map_uri.js +++ b/src/core_plugins/elasticsearch/lib/map_uri.js @@ -27,7 +27,7 @@ export default function mapUri(cluster, proxyPrefix) { return trimRight(pathA, '/') + '/' + trimLeft(pathB, '/'); } - return function (request, done) { + return function (request) { const { protocol: esUrlProtocol, slashes: esUrlHasSlashes, @@ -60,6 +60,6 @@ export default function mapUri(cluster, proxyPrefix) { const filteredHeaders = filterHeaders(request.headers, cluster.getRequestHeadersWhitelist()); const mappedHeaders = setHeaders(filteredHeaders, cluster.getCustomHeaders()); const mappedUrl = formatUrl(mappedUrlComponents); - done(null, mappedUrl, mappedHeaders); + return { uri: mappedUrl, headers: mappedHeaders }; }; } diff --git a/src/core_plugins/input_control_vis/index.js b/src/core_plugins/input_control_vis/index.js index 8a172d0734e11..d664ad0135d56 100644 --- a/src/core_plugins/input_control_vis/index.js +++ b/src/core_plugins/input_control_vis/index.js @@ -22,7 +22,8 @@ export default function (kibana) { uiExports: { visTypes: [ 'plugins/input_control_vis/register_vis' - ] + ], + styleSheetPaths: `${__dirname}/public/index.scss`, } }); } diff --git a/src/core_plugins/input_control_vis/public/components/editor/__snapshots__/list_control_editor.test.js.snap b/src/core_plugins/input_control_vis/public/components/editor/__snapshots__/list_control_editor.test.js.snap index bae4d46bfbdca..e05bfac6fd803 100644 --- a/src/core_plugins/input_control_vis/public/components/editor/__snapshots__/list_control_editor.test.js.snap +++ b/src/core_plugins/input_control_vis/public/components/editor/__snapshots__/list_control_editor.test.js.snap @@ -19,14 +19,26 @@ exports[`renders dynamic options should display disabled dynamic options with to describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Allow multiple selection" + helpText={ + + } id="multiselect-0" key="multiselect" > + } onChange={[Function]} /> @@ -34,7 +46,13 @@ exports[`renders dynamic options should display disabled dynamic options with to describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Only available for \\"string\\" fields" + helpText={ + + } id="dynamicOptions-0" key="dynamicOptions" > @@ -42,7 +60,13 @@ exports[`renders dynamic options should display disabled dynamic options with to checked={true} data-test-subj="listControlDynamicOptionsSwitch" disabled={true} - label="Dynamic Options" + label={ + + } onChange={[Function]} /> @@ -50,10 +74,22 @@ exports[`renders dynamic options should display disabled dynamic options with to describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Number of options" + helpText={ + + } id="size-0" key="size" - label="Size" + label={ + + } > + } id="multiselect-0" key="multiselect" > + } onChange={[Function]} /> @@ -102,7 +150,13 @@ exports[`renders dynamic options should display dynamic options for string field describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Update options in response to user input" + helpText={ + + } id="dynamicOptions-0" key="dynamicOptions" > @@ -110,7 +164,13 @@ exports[`renders dynamic options should display dynamic options for string field checked={true} data-test-subj="listControlDynamicOptionsSwitch" disabled={false} - label="Dynamic Options" + label={ + + } onChange={[Function]} /> @@ -136,14 +196,26 @@ exports[`renders dynamic options should display size field when dynamic options describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Allow multiple selection" + helpText={ + + } id="multiselect-0" key="multiselect" > + } onChange={[Function]} /> @@ -151,7 +223,13 @@ exports[`renders dynamic options should display size field when dynamic options describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Update options in response to user input" + helpText={ + + } id="dynamicOptions-0" key="dynamicOptions" > @@ -159,7 +237,13 @@ exports[`renders dynamic options should display size field when dynamic options checked={false} data-test-subj="listControlDynamicOptionsSwitch" disabled={false} - label="Dynamic Options" + label={ + + } onChange={[Function]} /> @@ -167,10 +251,22 @@ exports[`renders dynamic options should display size field when dynamic options describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Number of options" + helpText={ + + } id="size-0" key="size" - label="Size" + label={ + + } > + } id="parentSelect-0" key="parentSelect" - label="Parent control" + label={ + + } > + } id="multiselect-0" key="multiselect" > + } onChange={[Function]} /> @@ -252,7 +372,13 @@ exports[`renders should display chaining input when parents are provided 1`] = ` describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Update options in response to user input" + helpText={ + + } id="dynamicOptions-0" key="dynamicOptions" > @@ -260,7 +386,13 @@ exports[`renders should display chaining input when parents are provided 1`] = ` checked={false} data-test-subj="listControlDynamicOptionsSwitch" disabled={false} - label="Dynamic Options" + label={ + + } onChange={[Function]} /> @@ -268,10 +400,22 @@ exports[`renders should display chaining input when parents are provided 1`] = ` describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - helpText="Number of options" + helpText={ + + } id="size-0" key="size" - label="Size" + label={ + + } > } @@ -51,7 +51,7 @@ exports[`renders OptionsTab 1`] = ` label={ } diff --git a/src/core_plugins/input_control_vis/public/components/editor/_control_editor.scss b/src/core_plugins/input_control_vis/public/components/editor/_control_editor.scss new file mode 100644 index 0000000000000..41a68eea7436b --- /dev/null +++ b/src/core_plugins/input_control_vis/public/components/editor/_control_editor.scss @@ -0,0 +1,4 @@ +.icvControlEditor__panel { + z-index: 1; + margin-bottom: $euiSize; +} diff --git a/src/core_plugins/input_control_vis/public/components/editor/_index.scss b/src/core_plugins/input_control_vis/public/components/editor/_index.scss new file mode 100644 index 0000000000000..9af8f8d6e8222 --- /dev/null +++ b/src/core_plugins/input_control_vis/public/components/editor/_index.scss @@ -0,0 +1 @@ +@import './control_editor'; diff --git a/src/core_plugins/input_control_vis/public/components/editor/control_editor.js b/src/core_plugins/input_control_vis/public/components/editor/control_editor.js index e16f4921541a4..12003624f0b3c 100644 --- a/src/core_plugins/input_control_vis/public/components/editor/control_editor.js +++ b/src/core_plugins/input_control_vis/public/components/editor/control_editor.js @@ -17,7 +17,6 @@ * under the License. */ -import './control_editor.less'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { RangeControlEditor } from './range_control_editor'; @@ -152,7 +151,7 @@ class ControlEditorUi extends Component { render() { return ( - + } > 0) { const parentCandidatesOptions = [ { value: '', text: '' }, @@ -112,14 +112,11 @@ class ListControlEditorUi extends Component { options.push( } + helpText={} key="parentSelect" > } > } checked={this.props.controlParams.options.multiselect} onChange={(evt) => { this.props.handleCheckboxOptionChange(this.props.controlIndex, 'multiselect', evt); @@ -157,14 +151,17 @@ class ListControlEditorUi extends Component { ); const dynamicOptionsHelpText = this.state.isStringField - ? intl.formatMessage({ - id: 'inputControl.editor.listControl.dynamicOptions.updateDescription', - defaultMessage: 'Update options in response to user input' - }) - : intl.formatMessage({ - id: 'inputControl.editor.listControl.dynamicOptions.stringFieldDescription', - defaultMessage: 'Only available for "string" fields' - }); + ? ( + + ) : ( + + ); options.push( } checked={this.props.controlParams.options.dynamicOptions} onChange={(evt) => { this.props.handleCheckboxOptionChange(this.props.controlIndex, 'dynamicOptions', evt); @@ -191,15 +185,9 @@ class ListControlEditorUi extends Component { options.push( } key="size" - helpText={intl.formatMessage({ - id: 'inputControl.editor.listControl.sizeDescription', - defaultMessage: 'Number of options' - })} + helpText={} > { size: 5, } }; - const component = shallowWithIntl( { { value: '1', text: 'fieldA' }, { value: '2', text: 'fieldB' } ]; - const component = shallowWithIntl( { size: 5, } }; - const component = shallowWithIntl( { size: 5, } }; - const component = shallowWithIntl( { size: 5, } }; - const component = shallowWithIntl( { }); test('handleCheckboxOptionChange - multiselect', async () => { - const component = mountWithIntl( { }); test('handleNumberOptionChange - size', async () => { - const component = mountWithIntl( { return false; }, 'unexpected input event')); }); + +test('field name change', async () => { + const component = shallowWithIntl( + {}} + parentCandidates={[]} + /> + ); + + const update = async () => { + // Ensure all promises resolve + await new Promise(resolve => process.nextTick(resolve)); + // Ensure the state changes are reflected + component.update(); + }; + + // ensure that after async loading is complete the DynamicOptionsSwitch is not disabled + expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=false]')).toHaveLength(0); + await update(); + expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=false]')).toHaveLength(1); + + component.setProps({ + controlParams: { + ...controlParams, + fieldName: 'numberField', + }, + }); + + // ensure that after async loading is complete the DynamicOptionsSwitch is disabled, because this is not a "string" field + expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=true]')).toHaveLength(0); + await update(); + expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=true]')).toHaveLength(1); + + component.setProps({ + controlParams + }); + + // ensure that after async loading is complete the DynamicOptionsSwitch is not disabled again, because we switched to original "string" field + expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=false]')).toHaveLength(0); + await update(); + expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=false]')).toHaveLength(1); +}); diff --git a/src/core_plugins/input_control_vis/public/components/editor/options_tab.js b/src/core_plugins/input_control_vis/public/components/editor/options_tab.js index da25916547ea4..46b0eae158d25 100644 --- a/src/core_plugins/input_control_vis/public/components/editor/options_tab.js +++ b/src/core_plugins/input_control_vis/public/components/editor/options_tab.js @@ -71,7 +71,7 @@ export class OptionsTab extends Component { > } checked={this.props.editorState.params.useTimeFilter} @@ -85,7 +85,7 @@ export class OptionsTab extends Component { > } checked={this.props.editorState.params.pinFilters} diff --git a/src/core_plugins/input_control_vis/public/components/vis/__snapshots__/input_control_vis.test.js.snap b/src/core_plugins/input_control_vis/public/components/vis/__snapshots__/input_control_vis.test.js.snap index 6950fbaf4dda3..bbc30723109ee 100644 --- a/src/core_plugins/input_control_vis/public/components/vis/__snapshots__/input_control_vis.test.js.snap +++ b/src/core_plugins/input_control_vis/public/components/vis/__snapshots__/input_control_vis.test.js.snap @@ -2,7 +2,7 @@ exports[`Apply and Cancel change btns enabled when there are changes 1`] = `
      +
      {this.renderControls()} diff --git a/src/core_plugins/input_control_vis/public/components/vis/range_control.js b/src/core_plugins/input_control_vis/public/components/vis/range_control.js index 6a7d6dc65c3ae..0fad0f0cb92d6 100644 --- a/src/core_plugins/input_control_vis/public/components/vis/range_control.js +++ b/src/core_plugins/input_control_vis/public/components/vis/range_control.js @@ -144,7 +144,7 @@ class RangeControlUi extends Component { error={this.state.errorMessage ? [this.state.errorMessage] : []} data-test-subj="rangeControlFormRow" > - + - + {}, + setField: () => {}, + fetch: async () => { + return { + aggregations: { + termsAgg: { + buckets: [ + { + key: 'Zurich Airport', + doc_count: 691, + }, + { + key: 'Xi an Xianyang International Airport', + doc_count: 526, + }, + ] + } + } + }; + } + }; +} + const mockKbnApi = { indexPatterns: { get: async () => { @@ -47,7 +72,8 @@ const mockKbnApi = { getGlobalFilters: () => { return []; } - } + }, + SearchSource: MockSearchSource, }; describe('hasValue', () => { @@ -77,3 +103,70 @@ describe('hasValue', () => { expect(listControl.hasValue()).toBe(true); }); }); + +describe('fetch', () => { + const controlParams = { + id: '1', + fieldName: 'myField', + options: {} + }; + const useTimeFilter = false; + + let listControl; + beforeEach(async () => { + listControl = await listControlFactory(controlParams, mockKbnApi, useTimeFilter); + }); + + test('should set selectOptions to results of terms aggregation', async () => { + await listControl.fetch(); + expect(listControl.selectOptions).toEqual([ + { + 'label': 'Xi an Xianyang International Airport', + 'value': 'Xi an Xianyang International Airport', + }, + { + 'label': 'Zurich Airport', + 'value': 'Zurich Airport', + } + ]); + }); +}); + +describe('fetch with ancestors', () => { + const controlParams = { + id: '1', + fieldName: 'myField', + options: {}, + }; + const useTimeFilter = false; + + + let listControl; + let parentControl; + beforeEach(async () => { + listControl = await listControlFactory(controlParams, mockKbnApi, useTimeFilter); + + const parentControlParams = { + id: 'parent', + fieldName: 'myField', + options: {}, + }; + parentControl = await listControlFactory(parentControlParams, mockKbnApi, useTimeFilter); + parentControl.clear(); + listControl.setAncestors([parentControl]); + }); + + describe('ancestor does not have value', () => { + + test('should disable control', async () => { + await listControl.fetch(); + expect(listControl.isEnabled()).toBe(false); + }); + + test('should reset lastAncestorValues', async () => { + listControl.lastAncestorValues = 'last ancestor value'; + await listControl.fetch(); + expect(listControl.lastAncestorValues).toBeUndefined(); + }); + }); +}); diff --git a/src/core_plugins/input_control_vis/public/control/range_control_factory.js b/src/core_plugins/input_control_vis/public/control/range_control_factory.js index 4e8cb18a82100..7e24bc883b167 100644 --- a/src/core_plugins/input_control_vis/public/control/range_control_factory.js +++ b/src/core_plugins/input_control_vis/public/control/range_control_factory.js @@ -65,7 +65,7 @@ class RangeControl extends Control { try { resp = await searchSource.fetch(); } catch(error) { - this.disable(i18n.translate('inputControl.rangeControl.unableToFetchTootip', { + this.disable(i18n.translate('inputControl.rangeControl.unableToFetchTooltip', { defaultMessage: 'Unable to fetch range min and max, error: {errorMessage}', values: { errorMessage: error.message } })); diff --git a/src/core_plugins/input_control_vis/public/images/icon-input-control.svg b/src/core_plugins/input_control_vis/public/images/icon-input-control.svg deleted file mode 100644 index 54e7ea826beb7..0000000000000 --- a/src/core_plugins/input_control_vis/public/images/icon-input-control.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/core_plugins/input_control_vis/public/index.scss b/src/core_plugins/input_control_vis/public/index.scss new file mode 100644 index 0000000000000..126227098b42d --- /dev/null +++ b/src/core_plugins/input_control_vis/public/index.scss @@ -0,0 +1,11 @@ +@import 'src/ui/public/styles/styling_constants'; + +// Prefix all styles with "icv" to avoid conflicts. +// Examples +// icvChart +// icvChart__legend +// icvChart__legend--small +// icvChart__legend-isLoading + +@import './components/editor/index'; +@import './components/vis/index'; diff --git a/src/core_plugins/input_control_vis/public/register_vis.js b/src/core_plugins/input_control_vis/public/register_vis.js index 889ad1f645593..859ed40d9ed1a 100644 --- a/src/core_plugins/input_control_vis/public/register_vis.js +++ b/src/core_plugins/input_control_vis/public/register_vis.js @@ -17,7 +17,6 @@ * under the License. */ -import './vis.less'; import { CATEGORY } from 'ui/vis/vis_category'; import { VisFactoryProvider } from 'ui/vis/vis_factory'; import { VisTypesRegistryProvider } from 'ui/registry/vis_types'; diff --git a/src/core_plugins/input_control_vis/public/vis.less b/src/core_plugins/input_control_vis/public/vis.less deleted file mode 100644 index febec4bf3ff36..0000000000000 --- a/src/core_plugins/input_control_vis/public/vis.less +++ /dev/null @@ -1,34 +0,0 @@ -@import (reference) "~ui/styles/mixins.less"; - -.inputControlVis { - width: 100%; - margin: 0 5px; - - .inputRangeContainer { - display: inline-block; - margin: 30px 0 0 0; - min-width: 150px; - } - - input.kuiTextInput { - width: 15%; - } - - input[type=number]::-webkit-inner-spin-button, - input[type=number]::-webkit-outer-spin-button { - -webkit-appearance: none; - margin: 0; - } - - // hide slider labels since they are displayed in inputs - .input-range__track { - .input-range__label-container { - display: none; - } - } - - // do not center min/max labels - otherwise the overflow slider sides - .input-range__label-container { - left: 0% !important; - } -} diff --git a/src/core_plugins/input_control_vis/public/vis_controller.js b/src/core_plugins/input_control_vis/public/vis_controller.js index 3a92c7e10b229..1327cd51a4ba1 100644 --- a/src/core_plugins/input_control_vis/public/vis_controller.js +++ b/src/core_plugins/input_control_vis/public/vis_controller.js @@ -147,10 +147,11 @@ class VisController { this.vis.API.queryFilter.addFilters(newFilters, this.vis.params.pinFilters); } - clearControls = () => { + clearControls = async () => { this.controls.forEach((control) => { control.clear(); }); + await this.updateNestedControls(); this.drawVis(); } diff --git a/src/core_plugins/inspector_views/index.js b/src/core_plugins/inspector_views/index.js index da2eb567bc947..2dc5c6b7a9832 100644 --- a/src/core_plugins/inspector_views/index.js +++ b/src/core_plugins/inspector_views/index.js @@ -21,8 +21,9 @@ export default function (kibana) { return new kibana.Plugin({ uiExports: { inspectorViews: [ - 'plugins/inspector_views/register_views' - ] + 'plugins/inspector_views/register_views', + ], + styleSheetPaths: `${__dirname}/public/index.scss`, } }); } diff --git a/src/core_plugins/inspector_views/public/data/__snapshots__/data_view.test.js.snap b/src/core_plugins/inspector_views/public/data/__snapshots__/data_view.test.js.snap index 86ba5ce7cd2bf..e191cee3f91a9 100644 --- a/src/core_plugins/inspector_views/public/data/__snapshots__/data_view.test.js.snap +++ b/src/core_plugins/inspector_views/public/data/__snapshots__/data_view.test.js.snap @@ -54,6 +54,7 @@ exports[`Inspector Data View component should render empty state 1`] = ` >

      The element did not provide any data.

      - -
      -
      @@ -179,9 +174,10 @@ exports[`Inspector Data View component should render loading state 1`] = `

      Gathering data diff --git a/src/core_plugins/inspector_views/public/data/_data_table.scss b/src/core_plugins/inspector_views/public/data/_data_table.scss new file mode 100644 index 0000000000000..4a7b5ea20704c --- /dev/null +++ b/src/core_plugins/inspector_views/public/data/_data_table.scss @@ -0,0 +1,8 @@ +.insDataTableFormat__filter { + opacity: 0; +} + +.insDataTableFormat__table tr:hover .insDataTableFormat__filter, +.insDataTableFormat__filter:focus { + opacity: 1; +} diff --git a/src/core_plugins/inspector_views/public/data/data_table.js b/src/core_plugins/inspector_views/public/data/data_table.js index 2a607d9cc9d50..2280171a0f01a 100644 --- a/src/core_plugins/inspector_views/public/data/data_table.js +++ b/src/core_plugins/inspector_views/public/data/data_table.js @@ -20,8 +20,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import './data_table.less'; - import { EuiButtonIcon, EuiFlexGroup, @@ -60,7 +58,7 @@ class DataTableFormat extends Component { iconType="plusInCircle" color="text" aria-label="Filter for value" - className="inspector-table__filter" + className="insDataTableFormat__filter" onClick={() => col.filter(value)} /> @@ -75,7 +73,7 @@ class DataTableFormat extends Component { iconType="minusInCircle" color="text" aria-label="Filter out value" - className="inspector-table__filter" + className="insDataTableFormat__filter" onClick={() => col.filterOut(value)} /> @@ -128,6 +126,7 @@ class DataTableFormat extends Component { - + { stat.description && } @@ -88,7 +88,6 @@ class RequestSelector extends Component { iconType="arrowDown" iconSide="right" size="s" - className="inspector-request-chooser__request-title" onClick={this.togglePopover} > {this.props.selectedRequest.name} @@ -103,9 +102,10 @@ class RequestSelector extends Component { closePopover={this.closePopover} panelPaddingSize="none" anchorPosition="downLeft" + repositionOnScroll > @@ -121,13 +121,12 @@ class RequestSelector extends Component { > - Request: + Request: {requests.length <= 1 && -

      +
      {selectedRequest.name}
      } diff --git a/src/core_plugins/inspector_views/public/requests/requests_inspector.less b/src/core_plugins/inspector_views/public/requests/requests_inspector.less deleted file mode 100644 index db8e57de67972..0000000000000 --- a/src/core_plugins/inspector_views/public/requests/requests_inspector.less +++ /dev/null @@ -1,27 +0,0 @@ -.requests-details__description { - padding: 16px; -} - -.requests-stats__icon { - margin-right: 8px; -} - -.inspector-request-chooser__menu-panel { - min-width: 300px; -} - -.inspector-request-chooser__request-title { - font-size: 1.2em; -} - -.inspector-request-chooser__single-request { - .inspector-request-chooser__request-title(); - height: 30px; // height of EuiEmptyButton small - padding: 0 8px; - display: flex; - align-items: center; -} - -.inspector-request-chooser__menu-spinner { - margin-left: 8px; -} diff --git a/src/core_plugins/inspector_views/public/requests/requests_view.js b/src/core_plugins/inspector_views/public/requests/requests_view.js index ba08b0ea6afba..c857244321491 100644 --- a/src/core_plugins/inspector_views/public/requests/requests_view.js +++ b/src/core_plugins/inspector_views/public/requests/requests_view.js @@ -32,8 +32,6 @@ import { RequestStatus } from 'ui/inspector/adapters'; import { RequestSelector } from './request_selector'; import { RequestDetails } from './request_details'; -import './requests_inspector.less'; - class RequestsViewComponent extends Component { constructor(props) { diff --git a/src/core_plugins/kbn_vislib_vis_types/public/area.js b/src/core_plugins/kbn_vislib_vis_types/public/area.js index 4fc5b79a5f542..22910838e4258 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/area.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/area.js @@ -22,14 +22,14 @@ import { Schemas } from 'ui/vis/editors/default/schemas'; import { CATEGORY } from 'ui/vis/vis_category'; import pointSeriesTemplate from './editors/point_series.html'; -export default function PointSeriesVisType(Private) { +export default function PointSeriesVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'area', - title: 'Area', + title: i18n('kbnVislibVisTypes.area.areaTitle', { defaultMessage: 'Area' }), icon: 'visArea', - description: 'Emphasize the quantity beneath a line chart', + description: i18n('kbnVislibVisTypes.area.areaDescription', { defaultMessage: 'Emphasize the quantity beneath a line chart' }), category: CATEGORY.BASIC, visConfig: { defaults: { @@ -140,7 +140,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'metric', - title: 'Y-Axis', + title: i18n('kbnVislibVisTypes.area.metricsTitle', { defaultMessage: 'Y-Axis' }), aggFilter: ['!geo_centroid', '!geo_bounds'], min: 1, defaults: [ @@ -150,7 +150,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'radius', - title: 'Dot Size', + title: i18n('kbnVislibVisTypes.area.radiusTitle', { defaultMessage: 'Dot Size' }), min: 0, max: 1, aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality'] @@ -158,7 +158,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'segment', - title: 'X-Axis', + title: i18n('kbnVislibVisTypes.area.segmentTitle', { defaultMessage: 'X-Axis' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] @@ -166,7 +166,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'group', - title: 'Split Series', + title: i18n('kbnVislibVisTypes.area.groupTitle', { defaultMessage: 'Split Series' }), min: 0, max: 3, aggFilter: ['!geohash_grid', '!filter'] @@ -174,7 +174,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'split', - title: 'Split Chart', + title: i18n('kbnVislibVisTypes.area.splitTitle', { defaultMessage: 'Split Chart' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.html b/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.html index 451d2d280e128..0d9c1334ef69c 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.html @@ -1,8 +1,11 @@
      - +
      - +
       
      - +
      @@ -51,27 +63,36 @@
      - +
      - +
      - +
      - +
        @@ -115,9 +139,11 @@ ng-class="{ 'fa-caret-down': showColorRange, 'fa-caret-right': !showColorRange }" class="fa fa-caret-right kuiSideBarCollapsibleTitle__caret" > - - Ranges - +
      @@ -126,10 +152,18 @@ @@ -171,17 +205,26 @@

      - Required: You must specify at least one range. +

      - Add Range -
      + class="kuiButton kuiButton--primary kuiButton--fullWidth" + i18n-id="kbnVislibVisTypes.controls.gaugeOptions.addRangeTitle" + i18n-default-message="Add Range" + >
      -
      Note: colors can be changed in the legend
      +
      @@ -203,32 +246,46 @@ }" class="fa fa-caret-right kuiSideBarCollapsibleTitle__caret" > - - Color Options - +
      - +
      -
      reset colors
      +
      - +
      @@ -255,9 +312,11 @@ }" class="fa fa-caret-right kuiSideBarCollapsibleTitle__caret" > - - Style - +
      @@ -265,17 +324,23 @@
      - +
      - +
      @@ -283,9 +348,12 @@
      - +
      - +
      diff --git a/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.js b/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.js index e6ccd228faa8b..7da9d16b7f74a 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/controls/gauge_options.js @@ -22,7 +22,7 @@ import gaugeOptionsTemplate from './gauge_options.html'; import _ from 'lodash'; const module = uiModules.get('kibana'); -module.directive('gaugeOptions', function () { +module.directive('gaugeOptions', function (i18n) { return { restrict: 'E', template: gaugeOptionsTemplate, @@ -107,6 +107,10 @@ module.directive('gaugeOptions', function () { $scope.customColors = true; }); + $scope.requiredText = i18n('kbnVislibVisTypes.controls.gaugeOptions.requiredText', { + defaultMessage: 'Required:' + }); + } }; }); diff --git a/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html b/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html index a427f32cdff7d..2f3e7ca882a2c 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html @@ -1,14 +1,17 @@
      - +
      - reset colors -
      + i18n-id="kbnVislibVisTypes.controls.heatmapOptions.resetColorsTitle" + i18n-default-message="reset colors" + >
      - +
      - +
      - +
      - +
      - - Custom Ranges - +
      @@ -163,21 +191,29 @@
      - + - +
      - + - +
      -

      - - Required: You must specify at least one range. -

      +

      + i18n-id="kbnVislibVisTypes.controls.heatmapOptions.addRangeButtonLabel" + i18n-default-message="Add Range" + >
      -
      Note: colors can be changed in the legend
      +
      @@ -198,9 +234,11 @@ }" class="kuiIcon fa-caret-right kuiSideBarCollapsibleTitle__caret" > - - Show Labels - +
      - +
      - +
      - +
      { $scope.customColors = true; }); + + $scope.requiredText = i18n('kbnVislibVisTypes.controls.heatmapOptions.requiredText', { + defaultMessage: 'Required:' + }); } }; }); diff --git a/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/category_axis.html b/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/category_axis.html index a7d28b2186d62..97c5c58166074 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/category_axis.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/category_axis.html @@ -1,25 +1,33 @@
      -
      - X-Axis -
      +
      - +
      - +
      - +
      - +
      - - Grid - +
      @@ -23,18 +25,24 @@
      - +
      - +
      diff --git a/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/series.html b/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/series.html index 74d3da4409c52..48c4e92d53265 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/series.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/controls/point_series/series.html @@ -1,8 +1,10 @@
      -
      - Metrics -
      +
      - +
      - +
      - +
      - +
      - +
      -
      - Y-Axes -
      +
      @@ -11,6 +12,7 @@ type="button" class="kuiButton kuiButton--basic kuiButton--small" ng-model="agg.params.row" + data-test-subj="splitBy-column" btn-radio="false"> Columns diff --git a/src/core_plugins/kbn_vislib_vis_types/public/controls/vislib_basic_options.html b/src/core_plugins/kbn_vislib_vis_types/public/controls/vislib_basic_options.html index 58bf2d36ac221..dcb8a800799cc 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/controls/vislib_basic_options.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/controls/vislib_basic_options.html @@ -1,8 +1,11 @@
      - +
      diff --git a/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html b/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html index f0c42c1a92f2c..9cce236e748fd 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html @@ -1,32 +1,43 @@
      -
      - Basic Settings -
      +
      - +
      - +
      - +
      -
      - Labels Settings -
      +
      - +
      - +
      - +
      - +
      -
      - Settings -
      +
      - +
      - +
      - +
      diff --git a/src/core_plugins/kbn_vislib_vis_types/public/gauge.js b/src/core_plugins/kbn_vislib_vis_types/public/gauge.js index 09b9262fcabcd..d89ffabfc5711 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/gauge.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/gauge.js @@ -23,15 +23,16 @@ import { CATEGORY } from 'ui/vis/vis_category'; import gaugeTemplate from './editors/gauge.html'; import { vislibColorMaps } from 'ui/vislib/components/color/colormaps'; -export default function GaugeVisType(Private) { +export default function GaugeVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'gauge', - title: 'Gauge', + title: i18n('kbnVislibVisTypes.gauge.gaugeTitle', { defaultMessage: 'Gauge' }), icon: 'visGauge', - description: `Gauges indicate the status of a metric. Use it to show how a metric's value relates - to reference threshold values.`, + description: i18n('kbnVislibVisTypes.gauge.gaugeDescription', { + defaultMessage: 'Gauges indicate the status of a metric. Use it to show how a metric\'s value relates to reference threshold values.' + }), category: CATEGORY.DATA, visConfig: { defaults: { @@ -84,14 +85,14 @@ export default function GaugeVisType(Private) { gaugeTypes: ['Arc', 'Circle'], gaugeColorMode: ['None', 'Labels', 'Background'], scales: ['linear', 'log', 'square root'], - colorSchemas: Object.keys(vislibColorMaps), + colorSchemas: Object.values(vislibColorMaps).map(value => ({ id: value.id, label: value.label })), }, optionsTemplate: gaugeTemplate, schemas: new Schemas([ { group: 'metrics', name: 'metric', - title: 'Metric', + title: i18n('kbnVislibVisTypes.gauge.metricTitle', { defaultMessage: 'Metric' }), min: 1, aggFilter: [ '!std_dev', '!geo_centroid', '!percentiles', '!percentile_ranks', @@ -103,7 +104,7 @@ export default function GaugeVisType(Private) { { group: 'buckets', name: 'group', - title: 'Split Group', + title: i18n('kbnVislibVisTypes.gauge.groupTitle', { defaultMessage: 'Split Group' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/kbn_vislib_vis_types/public/goal.js b/src/core_plugins/kbn_vislib_vis_types/public/goal.js index 1a52764387d31..78e6b9e17e61f 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/goal.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/goal.js @@ -23,14 +23,16 @@ import { CATEGORY } from 'ui/vis/vis_category'; import gaugeTemplate from './editors/gauge.html'; import { vislibColorMaps } from 'ui/vislib/components/color/colormaps'; -export default function GoalVisType(Private) { +export default function GoalVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'goal', - title: 'Goal', + title: i18n('kbnVislibVisTypes.goal.goalTitle', { defaultMessage: 'Goal' }), icon: 'visGoal', - description: 'A goal chart indicates how close you are to your final goal.', + description: i18n('kbnVislibVisTypes.goal.goalDescription', { + defaultMessage: 'A goal chart indicates how close you are to your final goal.' + }), category: CATEGORY.DATA, visConfig: { defaults: { @@ -79,14 +81,14 @@ export default function GoalVisType(Private) { gaugeTypes: ['Arc', 'Circle'], gaugeColorMode: ['None', 'Labels', 'Background'], scales: ['linear', 'log', 'square root'], - colorSchemas: Object.keys(vislibColorMaps), + colorSchemas: Object.values(vislibColorMaps).map(value => ({ id: value.id, label: value.label })), }, optionsTemplate: gaugeTemplate, schemas: new Schemas([ { group: 'metrics', name: 'metric', - title: 'Metric', + title: i18n('kbnVislibVisTypes.goal.metricTitle', { defaultMessage: 'Metric' }), min: 1, aggFilter: [ '!std_dev', '!geo_centroid', '!percentiles', '!percentile_ranks', @@ -98,7 +100,7 @@ export default function GoalVisType(Private) { { group: 'buckets', name: 'group', - title: 'Split Group', + title: i18n('kbnVislibVisTypes.goal.groupTitle', { defaultMessage: 'Split Group' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js b/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js index e124283a083e9..f8a5a64a26300 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js @@ -23,14 +23,14 @@ import { CATEGORY } from 'ui/vis/vis_category'; import heatmapTemplate from './editors/heatmap.html'; import { vislibColorMaps } from 'ui/vislib/components/color/colormaps'; -export default function HeatmapVisType(Private) { +export default function HeatmapVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'heatmap', - title: 'Heat Map', + title: i18n('kbnVislibVisTypes.heatmap.heatmapTitle', { defaultMessage: 'Heat Map' }), icon: 'visHeatmap', - description: 'Shade cells within a matrix', + description: i18n('kbnVislibVisTypes.heatmap.heatmapDescription', { defaultMessage: 'Shade cells within a matrix' }), category: CATEGORY.BASIC, visConfig: { defaults: { @@ -79,14 +79,14 @@ export default function HeatmapVisType(Private) { text: 'bottom', }], scales: ['linear', 'log', 'square root'], - colorSchemas: Object.keys(vislibColorMaps), + colorSchemas: Object.values(vislibColorMaps).map(value => ({ id: value.id, label: value.label })), }, optionsTemplate: heatmapTemplate, schemas: new Schemas([ { group: 'metrics', name: 'metric', - title: 'Value', + title: i18n('kbnVislibVisTypes.heatmap.metricTitle', { defaultMessage: 'Value' }), min: 1, max: 1, aggFilter: ['count', 'avg', 'median', 'sum', 'min', 'max', 'cardinality', 'std_dev', 'top_hits'], @@ -97,7 +97,7 @@ export default function HeatmapVisType(Private) { { group: 'buckets', name: 'segment', - title: 'X-Axis', + title: i18n('kbnVislibVisTypes.heatmap.segmentTitle', { defaultMessage: 'X-Axis' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] @@ -105,7 +105,7 @@ export default function HeatmapVisType(Private) { { group: 'buckets', name: 'group', - title: 'Y-Axis', + title: i18n('kbnVislibVisTypes.heatmap.groupTitle', { defaultMessage: 'Y-Axis' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] @@ -113,7 +113,7 @@ export default function HeatmapVisType(Private) { { group: 'buckets', name: 'split', - title: 'Split Chart', + title: i18n('kbnVislibVisTypes.heatmap.splitTitle', { defaultMessage: 'Split Chart' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/kbn_vislib_vis_types/public/histogram.js b/src/core_plugins/kbn_vislib_vis_types/public/histogram.js index 68a269ec1c423..5aa5ad8246bea 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/histogram.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/histogram.js @@ -22,14 +22,16 @@ import { Schemas } from 'ui/vis/editors/default/schemas'; import { CATEGORY } from 'ui/vis/vis_category'; import pointSeriesTemplate from './editors/point_series.html'; -export default function PointSeriesVisType(Private) { +export default function PointSeriesVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'histogram', - title: 'Vertical Bar', + title: i18n('kbnVislibVisTypes.histogram.histogramTitle', { defaultMessage: 'Vertical Bar' }), icon: 'visBarVertical', - description: 'Assign a continuous variable to each axis', + description: i18n('kbnVislibVisTypes.histogram.histogramDescription', + { defaultMessage: 'Assign a continuous variable to each axis' } + ), category: CATEGORY.BASIC, visConfig: { defaults: { @@ -141,7 +143,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'metric', - title: 'Y-Axis', + title: i18n('kbnVislibVisTypes.histogram.metricTitle', { defaultMessage: 'Y-Axis' }), min: 1, aggFilter: ['!geo_centroid', '!geo_bounds'], defaults: [ @@ -151,7 +153,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'radius', - title: 'Dot Size', + title: i18n('kbnVislibVisTypes.histogram.radiusTitle', { defaultMessage: 'Dot Size' }), min: 0, max: 1, aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality'] @@ -159,7 +161,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'segment', - title: 'X-Axis', + title: i18n('kbnVislibVisTypes.histogram.segmentTitle', { defaultMessage: 'X-Axis' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] @@ -167,7 +169,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'group', - title: 'Split Series', + title: i18n('kbnVislibVisTypes.histogram.groupTitle', { defaultMessage: 'Split Series' }), min: 0, max: 3, aggFilter: ['!geohash_grid', '!filter'] @@ -175,7 +177,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'split', - title: 'Split Chart', + title: i18n('kbnVislibVisTypes.histogram.splitTitle', { defaultMessage: 'Split Chart' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js b/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js index b679256924b2a..3bb14019b217c 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js @@ -22,14 +22,16 @@ import { Schemas } from 'ui/vis/editors/default/schemas'; import { CATEGORY } from 'ui/vis/vis_category'; import pointSeriesTemplate from './editors/point_series.html'; -export default function PointSeriesVisType(Private) { +export default function PointSeriesVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'horizontal_bar', - title: 'Horizontal Bar', + title: i18n('kbnVislibVisTypes.horizontalBar.horizontalBarTitle', { defaultMessage: 'Horizontal Bar' }), icon: 'visBarHorizontal', - description: 'Assign a continuous variable to each axis', + description: i18n('kbnVislibVisTypes.horizontalBar.horizontalBarDescription', + { defaultMessage: 'Assign a continuous variable to each axis' } + ), category: CATEGORY.BASIC, visConfig: { defaults: { @@ -143,7 +145,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'metric', - title: 'Y-Axis', + title: i18n('kbnVislibVisTypes.horizontalBar.metricTitle', { defaultMessage: 'Y-Axis' }), min: 1, aggFilter: ['!geo_centroid', '!geo_bounds'], defaults: [ @@ -153,7 +155,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'radius', - title: 'Dot Size', + title: i18n('kbnVislibVisTypes.horizontalBar.radiusTitle', { defaultMessage: 'Dot Size' }), min: 0, max: 1, aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality'] @@ -161,7 +163,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'segment', - title: 'X-Axis', + title: i18n('kbnVislibVisTypes.horizontalBar.segmentTitle', { defaultMessage: 'X-Axis' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] @@ -169,7 +171,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'group', - title: 'Split Series', + title: i18n('kbnVislibVisTypes.horizontalBar.groupTitle', { defaultMessage: 'Split Series' }), min: 0, max: 3, aggFilter: ['!geohash_grid', '!filter'] @@ -177,7 +179,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'split', - title: 'Split Chart', + title: i18n('kbnVislibVisTypes.horizontalBar.splitTitle', { defaultMessage: 'Split Chart' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-area.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-area.svg deleted file mode 100644 index b7469195dae17..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-area.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - icon-area - Created with Sketch. - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-donut.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-donut.svg deleted file mode 100644 index 8067fcc3e9359..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-donut.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-gauge.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-gauge.svg deleted file mode 100644 index 8bb387312a26f..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-gauge.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - icon-gauge - Created with Sketch. - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-goal.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-goal.svg deleted file mode 100644 index 6274d8e891798..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-goal.svg +++ /dev/null @@ -1,27 +0,0 @@ - - - - icon goal - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-heatmap.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-heatmap.svg deleted file mode 100644 index a480d4435f8b6..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-heatmap.svg +++ /dev/null @@ -1,27 +0,0 @@ - - - - Group 2 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-horizontal.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-horizontal.svg deleted file mode 100644 index bc779f9ab0c73..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-horizontal.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - icon-horizontal - Created with Sketch. - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-line.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-line.svg deleted file mode 100644 index c46e5f56e88c2..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-line.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - icon-line - Created with Sketch. - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-number.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-number.svg deleted file mode 100644 index 3168ce0d90aad..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-number.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - 42 - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-pie.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-pie.svg deleted file mode 100644 index a2ddb72d7a6bd..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-pie.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - icon-pie - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-tilemap.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-tilemap.svg deleted file mode 100644 index 0888ce38f05a2..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-tilemap.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - icon-tilemap - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-vertical.svg b/src/core_plugins/kbn_vislib_vis_types/public/images/icon-vertical.svg deleted file mode 100644 index 78bf5661942f5..0000000000000 --- a/src/core_plugins/kbn_vislib_vis_types/public/images/icon-vertical.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - icon-vertical - Created with Sketch. - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/kbn_vislib_vis_types/public/line.js b/src/core_plugins/kbn_vislib_vis_types/public/line.js index c6cae66982075..886439eb57244 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/line.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/line.js @@ -22,14 +22,14 @@ import { Schemas } from 'ui/vis/editors/default/schemas'; import { CATEGORY } from 'ui/vis/vis_category'; import pointSeriesTemplate from './editors/point_series.html'; -export default function PointSeriesVisType(Private) { +export default function PointSeriesVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'line', - title: 'Line', + title: i18n('kbnVislibVisTypes.line.lineTitle', { defaultMessage: 'Line' }), icon: 'visLine', - description: 'Emphasize trends', + description: i18n('kbnVislibVisTypes.line.lineDescription', { defaultMessage: 'Emphasize trends' }), category: CATEGORY.BASIC, visConfig: { defaults: { @@ -141,7 +141,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'metric', - title: 'Y-Axis', + title: i18n('kbnVislibVisTypes.line.metricTitle', { defaultMessage: 'Y-Axis' }), min: 1, aggFilter: ['!geo_centroid', '!geo_bounds'], defaults: [ @@ -151,7 +151,7 @@ export default function PointSeriesVisType(Private) { { group: 'metrics', name: 'radius', - title: 'Dot Size', + title: i18n('kbnVislibVisTypes.line.radiusTitle', { defaultMessage: 'Dot Size' }), min: 0, max: 1, aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality', 'top_hits'] @@ -159,7 +159,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'segment', - title: 'X-Axis', + title: i18n('kbnVislibVisTypes.line.segmentTitle', { defaultMessage: 'X-Axis' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] @@ -167,7 +167,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'group', - title: 'Split Series', + title: i18n('kbnVislibVisTypes.line.groupTitle', { defaultMessage: 'Split Series' }), min: 0, max: 3, aggFilter: ['!geohash_grid', '!filter'] @@ -175,7 +175,7 @@ export default function PointSeriesVisType(Private) { { group: 'buckets', name: 'split', - title: 'Split Chart', + title: i18n('kbnVislibVisTypes.line.splitTitle', { defaultMessage: 'Split Chart' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/kbn_vislib_vis_types/public/pie.js b/src/core_plugins/kbn_vislib_vis_types/public/pie.js index 665d065fa83c6..59f62deb0641e 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/pie.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/pie.js @@ -22,14 +22,14 @@ import { Schemas } from 'ui/vis/editors/default/schemas'; import { CATEGORY } from 'ui/vis/vis_category'; import pieTemplate from './editors/pie.html'; -export default function HistogramVisType(Private) { +export default function HistogramVisType(Private, i18n) { const VisFactory = Private(VisFactoryProvider); return VisFactory.createVislibVisualization({ name: 'pie', - title: 'Pie', + title: i18n('kbnVislibVisTypes.pie.pieTitle', { defaultMessage: 'Pie' }), icon: 'visPie', - description: 'Compare parts of a whole', + description: i18n('kbnVislibVisTypes.pie.pieDescription', { defaultMessage: 'Compare parts of a whole' }), category: CATEGORY.BASIC, visConfig: { defaults: { @@ -67,7 +67,7 @@ export default function HistogramVisType(Private) { { group: 'metrics', name: 'metric', - title: 'Slice Size', + title: i18n('kbnVislibVisTypes.pie.metricTitle', { defaultMessage: 'Slice Size' }), min: 1, max: 1, aggFilter: ['sum', 'count', 'cardinality', 'top_hits'], @@ -79,7 +79,7 @@ export default function HistogramVisType(Private) { group: 'buckets', name: 'segment', icon: 'fa fa-scissors', - title: 'Split Slices', + title: i18n('kbnVislibVisTypes.pie.segmentTitle', { defaultMessage: 'Split Slices' }), min: 0, max: Infinity, aggFilter: ['!geohash_grid', '!filter'] @@ -88,7 +88,7 @@ export default function HistogramVisType(Private) { group: 'buckets', name: 'split', icon: 'fa fa-th', - title: 'Split Chart', + title: i18n('kbnVislibVisTypes.pie.splitTitle', { defaultMessage: 'Split Chart' }), mustBeFirst: true, min: 0, max: 1, diff --git a/src/core_plugins/kibana/common/lib/get_space_id_for_beats_tutorial.js b/src/core_plugins/kibana/common/lib/get_space_id_for_beats_tutorial.js new file mode 100644 index 0000000000000..f7da589526003 --- /dev/null +++ b/src/core_plugins/kibana/common/lib/get_space_id_for_beats_tutorial.js @@ -0,0 +1,32 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * Returns valid configuration for a beat.yml file for adding the space id + * if there is an active space and that space is not the default one. + * + * @param {object} context - Context object generated from tutorial factory (see #22760) + */ +export function getSpaceIdForBeatsTutorial(context) { + if (!context || !context.spaceId || context.isInDefaultSpace) { + return ''; + } + + return ` space.id: "${context.spaceId}"`; +} diff --git a/src/core_plugins/kibana/common/tutorials/filebeat_instructions.js b/src/core_plugins/kibana/common/tutorials/filebeat_instructions.js index b96f1f6b1b7d0..e4c846531d174 100644 --- a/src/core_plugins/kibana/common/tutorials/filebeat_instructions.js +++ b/src/core_plugins/kibana/common/tutorials/filebeat_instructions.js @@ -20,8 +20,9 @@ import { i18n } from '@kbn/i18n'; import { INSTRUCTION_VARIANT } from './instruction_variant'; import { createTrycloudOption1, createTrycloudOption2 } from './onprem_cloud_instructions'; +import { getSpaceIdForBeatsTutorial } from '../lib/get_space_id_for_beats_tutorial'; -export const createFilebeatInstructions = () => ({ +export const createFilebeatInstructions = context => ({ INSTALL: { OSX: { title: i18n.translate('kbn.common.tutorials.filebeatInstructions.install.osxTitle', { @@ -158,7 +159,7 @@ export const createFilebeatInstructions = () => ({ defaultMessage: 'The `setup` command loads the Kibana dashboards. If the dashboards are already set up, omit this command.', }), commands: [ - 'PS C:\\Program Files\\Filebeat> filebeat.exe setup', + 'PS C:\\Program Files\\Filebeat> .\\filebeat.exe setup', 'PS C:\\Program Files\\Filebeat> Start-Service filebeat', ], }, @@ -181,6 +182,7 @@ export const createFilebeatInstructions = () => ({ ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.filebeatInstructions.config.osxTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -209,6 +211,7 @@ and {kibanaUrlTemplate} is the URL of Kibana.', ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.filebeatInstructions.config.debTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -237,6 +240,7 @@ and {kibanaUrlTemplate} is the URL of Kibana.', ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.filebeatInstructions.config.rpmTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -265,6 +269,7 @@ and {kibanaUrlTemplate} is the URL of Kibana.', ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.filebeatInstructions.config.windowsTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -484,8 +489,8 @@ export function filebeatStatusCheck(moduleName) { }; } -export function onPremInstructions(moduleName, platforms, geoipRequired, uaRequired) { - const FILEBEAT_INSTRUCTIONS = createFilebeatInstructions(); +export function onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context) { + const FILEBEAT_INSTRUCTIONS = createFilebeatInstructions(context); const variants = []; for (let i = 0; i < platforms.length; i++) { diff --git a/src/core_plugins/kibana/common/tutorials/functionbeat_instructions.js b/src/core_plugins/kibana/common/tutorials/functionbeat_instructions.js new file mode 100644 index 0000000000000..47e47ab3d8267 --- /dev/null +++ b/src/core_plugins/kibana/common/tutorials/functionbeat_instructions.js @@ -0,0 +1,466 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { i18n } from '@kbn/i18n'; +import { INSTRUCTION_VARIANT } from './instruction_variant'; +import { createTrycloudOption1, createTrycloudOption2 } from './onprem_cloud_instructions'; +import { getSpaceIdForBeatsTutorial } from '../lib/get_space_id_for_beats_tutorial'; + +export const createFunctionbeatInstructions = context => ({ + INSTALL: { + OSX: { + title: i18n.translate('kbn.common.tutorials.functionbeatInstructions.install.osxTitle', { + defaultMessage: 'Download and install Functionbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatInstructions.install.osxTextPre', { + defaultMessage: 'First time using Functionbeat? See the [Getting Started Guide]({link}).', + values: { link: '{config.docs.beats.functionbeat}/functionbeat-getting-started.html' }, + }), + commands: [ + 'curl -L -O https://artifacts.elastic.co/downloads/beats/functionbeat/functionbeat-{config.kibana.version}-darwin-x86_64.tar.gz', + 'tar xzvf functionbeat-{config.kibana.version}-darwin-x86_64.tar.gz', + 'cd functionbeat-{config.kibana.version}-darwin-x86_64/', + ], + }, + LINUX: { + title: i18n.translate('kbn.common.tutorials.functionbeatInstructions.install.linuxTitle', { + defaultMessage: 'Download and install Functionbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatInstructions.install.linuxTextPre', { + defaultMessage: 'First time using Functionbeat? See the [Getting Started Guide]({link}).', + values: { link: '{config.docs.beats.functionbeat}/functionbeat-getting-started.html' }, + }), + commands: [ + 'curl -L -O https://artifacts.elastic.co/downloads/beats/functionbeat/functionbeat-{config.kibana.version}-linux-x86_64.tar.gz', + 'tar xzvf functionbeat-{config.kibana.version}-linux-x86_64.tar.gz', + 'cd functionbeat-{config.kibana.version}-linux-x86_64/', + ], + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.functionbeatInstructions.install.windowsTitle', { + defaultMessage: 'Download and install Functionbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatInstructions.install.windowsTextPre', { + defaultMessage: 'First time using Functionbeat? See the [Getting Started Guide]({functionbeatLink}).\n\ + 1. Download the Functionbeat Windows zip file from the [Download]({elasticLink}) page.\n\ + 2. Extract the contents of the zip file into {folderPath}.\n\ + 3. Rename the {directoryName} directory to `Functionbeat`.\n\ + 4. Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select \ +**Run As Administrator**). If you are running Windows XP, you might need to download and install PowerShell.\n\ + 5. From the PowerShell prompt, go to the Functionbeat directory:', + values: { + directoryName: '`functionbeat-{config.kibana.version}-windows`', + folderPath: '`C:\\Program Files`', + functionbeatLink: '{config.docs.beats.functionbeat}/functionbeat-getting-started.html', + elasticLink: 'https://www.elastic.co/downloads/beats/functionbeat', + }, + }), + commands: [ + 'PS > cd C:\\Program Files\\Functionbeat', + ], + } + }, + DEPLOY: { + OSX_LINUX: { + title: i18n.translate('kbn.common.tutorials.functionbeatInstructions.deploy.osxTitle', { + defaultMessage: 'Deploy Functionbeat to AWS Lambda', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatInstructions.deploy.osxTextPre', { + defaultMessage: 'This installs Functionbeat as a Lambda function.\ +The `setup` command checks the Elasticsearch configuration and loads the \ +Kibana index pattern. It is normally safe to omit this command.', + }), + commands: [ + './functionbeat setup', + './functionbeat deploy fn_cloudwatch_logs', + ] + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.functionbeatInstructions.deploy.windowsTitle', { + defaultMessage: 'Deploy Functionbeat to AWS Lambda', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatInstructions.deploy.windowsTextPre', { + defaultMessage: 'This installs Functionbeat as a Lambda function.\ +The `setup` command checks the Elasticsearch configuration and loads the \ +Kibana index pattern. It is normally safe to omit this command.', + }), + commands: [ + 'PS C:\\Program Files\\Functionbeat> functionbeat.exe setup', + 'PS C:\\Program Files\\Functionbeat> functionbeat.exe deploy fn_cloudwatch_logs', + ], + }, + }, + CONFIG: { + OSX_LINUX: { + title: i18n.translate('kbn.common.tutorials.functionbeatInstructions.config.osxTitle', { + defaultMessage: 'Configure the Elastic cluster', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatInstructions.config.osxTextPre', { + defaultMessage: 'Modify {path} to set the connection information:', + values: { + path: '`functionbeat.yml`', + }, + }), + commands: [ + 'output.elasticsearch:', + ' hosts: [""]', + ' username: "elastic"', + ' password: ""', + 'setup.kibana:', + ' host: ""', + getSpaceIdForBeatsTutorial(context) + ], + textPost: i18n.translate('kbn.common.tutorials.functionbeatInstructions.config.osxTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ +and {kibanaUrlTemplate} is the URL of Kibana.', + values: { + passwordTemplate: '``', + esUrlTemplate: '``', + kibanaUrlTemplate: '``', + }, + }), + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.functionbeatInstructions.config.windowsTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatInstructions.config.windowsTextPre', { + defaultMessage: 'Modify {path} to set the connection information:', + values: { + path: '`C:\\Program Files\\Functionbeat\\functionbeat.yml`', + }, + }), + commands: [ + 'output.elasticsearch:', + ' hosts: [""]', + ' username: "elastic"', + ' password: ""', + 'setup.kibana:', + ' host: ""', + getSpaceIdForBeatsTutorial(context) + ], + textPost: i18n.translate('kbn.common.tutorials.functionbeatInstructions.config.windowsTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ +and {kibanaUrlTemplate} is the URL of Kibana.', + values: { + passwordTemplate: '``', + esUrlTemplate: '``', + kibanaUrlTemplate: '``', + }, + }), + } + } +}); + +export const createFunctionbeatCloudInstructions = () => ({ + CONFIG: { + OSX_LINUX: { + title: i18n.translate('kbn.common.tutorials.functionbeatCloudInstructions.config.osxTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatCloudInstructions.config.osxTextPre', { + defaultMessage: 'Modify {path} to set the connection information for Elastic Cloud:', + values: { + path: '`functionbeat.yml`', + }, + }), + commands: [ + 'cloud.id: "{config.cloud.id}"', + 'cloud.auth: "elastic:"' + ], + textPost: i18n.translate('kbn.common.tutorials.functionbeatCloudInstructions.config.osxTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user.', + values: { passwordTemplate: '``' }, + }), + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.functionbeatCloudInstructions.config.windowsTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.functionbeatCloudInstructions.config.windowsTextPre', { + defaultMessage: 'Modify {path} to set the connection information for Elastic Cloud:', + values: { + path: '`C:\\Program Files\\Functionbeat\\functionbeat.yml`', + }, + }), + commands: [ + 'cloud.id: "{config.cloud.id}"', + 'cloud.auth: "elastic:"' + ], + textPost: i18n.translate('kbn.common.tutorials.functionbeatCloudInstructions.config.windowsTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user.', + values: { passwordTemplate: '``' }, + }), + } + } +}); + +export function functionbeatEnableInstructions() { + const defaultTitle = i18n.translate('kbn.common.tutorials.functionbeatEnableOnPremInstructions.defaultTitle', { + defaultMessage: 'Configure the Cloudwatch log group', + }); + const defaultCommands = [ + 'functionbeat.provider.aws.functions:', + ' - name: fn_cloudwatch_logs', + ' enabled: true', + ' type: cloudwatch_logs', + ' triggers:', + ' - log_group_name: ', + 'functionbeat.provider.aws.deploy_bucket: ', + ]; + const defaultTextPost = i18n.translate('kbn.common.tutorials.functionbeatEnableOnPremInstructions.defaultTextPost', { + defaultMessage: 'Where `` is the name of the log group you want to ingest, \ +and `` is a valid S3 bucket name which will be used for staging the \ +Functionbeat deploy.' + }); + return { + OSX_LINUX: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.functionbeatEnableOnPremInstructionsOSXLinux.textPre', { + defaultMessage: 'Modify the settings in the `functionbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + }, + WINDOWS: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.functionbeatEnableOnPremInstructionsWindows.textPre', { + defaultMessage: 'Modify the settings in the {path} file.', + values: { + path: '`C:\\Program Files\\Functionbeat\\functionbeat.yml`', + } + }), + commands: defaultCommands, + textPost: defaultTextPost + } + }; +} + +export function functionbeatAWSInstructions() { + const defaultTitle = i18n.translate('kbn.common.tutorials.functionbeatAWSInstructions.title', { + defaultMessage: 'Set AWS credentials', + }); + const defaultPre = i18n.translate('kbn.common.tutorials.functionbeatAWSInstructions.textPre', { + defaultMessage: 'Set your AWS account credentials in the environment:', + }); + const defaultPost = i18n.translate('kbn.common.tutorials.functionbeatAWSInstructions.textPost', { + defaultMessage: 'Where `` and `` are your account credentials and \ +`us-east-1` is the desired region.', + }); + + return { + OSX_LINUX: { + title: defaultTitle, + textPre: defaultPre, + commands: [ + 'export AWS_ACCESS_KEY_ID=', + 'export AWS_SECRET_ACCESS_KEY=', + 'export AWS_DEFAULT_REGION=us-east-1', + ], + textPost: defaultPost, + }, + WINDOWS: { + title: defaultTitle, + textPre: defaultPre, + commands: [ + 'set AWS_ACCESS_KEY_ID=', + 'set AWS_SECRET_ACCESS_KEY=', + 'set AWS_DEFAULT_REGION=us-east-1', + ], + textPost: defaultPost, + }, + }; +} + + +export function functionbeatStatusCheck() { + return { + title: i18n.translate('kbn.common.tutorials.functionbeatStatusCheck.title', { + defaultMessage: 'Functionbeat status', + }), + text: i18n.translate('kbn.common.tutorials.functionbeatStatusCheck.text', { + defaultMessage: 'Check that data is received from Functionbeat', + }), + btnLabel: i18n.translate('kbn.common.tutorials.functionbeatStatusCheck.buttonLabel', { + defaultMessage: 'Check data', + }), + success: i18n.translate('kbn.common.tutorials.functionbeatStatusCheck.successText', { + defaultMessage: 'Data successfully received from Functionbeat', + }), + error: i18n.translate('kbn.common.tutorials.functionbeatStatusCheck.errorText', { + defaultMessage: 'No data has been received from Functionbeat yet', + }), + esHitsCheck: { + index: 'functionbeat-*', + query: { + match_all: {}, + }, + }, + }; +} + +export function onPremInstructions(platforms, geoipRequired, uaRequired, context) { + const FUNCTIONBEAT_INSTRUCTIONS = createFunctionbeatInstructions(context); + + return { + instructionSets: [ + { + title: i18n.translate('kbn.common.tutorials.functionbeat.premInstructions.gettingStarted.title', { + defaultMessage: 'Getting Started', + }), + instructionVariants: [ + { + id: INSTRUCTION_VARIANT.OSX, + instructions: [ + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.OSX, + functionbeatAWSInstructions().OSX_LINUX, + functionbeatEnableInstructions().OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.CONFIG.OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.OSX_LINUX, + ], + }, + { + id: INSTRUCTION_VARIANT.LINUX, + instructions: [ + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.LINUX, + functionbeatAWSInstructions().OSX_LINUX, + functionbeatEnableInstructions().OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.CONFIG.OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.OSX_LINUX, + ], + }, + { + id: INSTRUCTION_VARIANT.WINDOWS, + instructions: [ + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.WINDOWS, + functionbeatAWSInstructions().WINDOWS, + functionbeatEnableInstructions().WINDOWS, + FUNCTIONBEAT_INSTRUCTIONS.CONFIG.WINDOWS, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.WINDOWS, + ], + }, + ], + statusCheck: functionbeatStatusCheck(), + }, + ], + }; +} + +export function onPremCloudInstructions() { + const TRYCLOUD_OPTION1 = createTrycloudOption1(); + const TRYCLOUD_OPTION2 = createTrycloudOption2(); + const FUNCTIONBEAT_INSTRUCTIONS = createFunctionbeatInstructions(); + + return { + instructionSets: [ + { + title: i18n.translate('kbn.common.tutorials.functionbeat.premCloudInstructions.gettingStarted.title', { + defaultMessage: 'Getting Started', + }), + instructionVariants: [ + { + id: INSTRUCTION_VARIANT.OSX, + instructions: [ + TRYCLOUD_OPTION1, + TRYCLOUD_OPTION2, + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.OSX, + functionbeatAWSInstructions().OSX_LINUX, + functionbeatEnableInstructions().OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.CONFIG.OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.OSX_LINUX, + ], + }, + { + id: INSTRUCTION_VARIANT.LINUX, + instructions: [ + TRYCLOUD_OPTION1, + TRYCLOUD_OPTION2, + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.LINUX, + functionbeatAWSInstructions().OSX_LINUX, + functionbeatEnableInstructions().OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.CONFIG.OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.OSX_LINUX, + ], + }, + { + id: INSTRUCTION_VARIANT.WINDOWS, + instructions: [ + TRYCLOUD_OPTION1, + TRYCLOUD_OPTION2, + functionbeatAWSInstructions().WINDOWS, + functionbeatEnableInstructions().WINDOWS, + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.WINDOWS, + FUNCTIONBEAT_INSTRUCTIONS.CONFIG.WINDOWS, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.WINDOWS, + ], + }, + ], + statusCheck: functionbeatStatusCheck(), + }, + ], + }; +} + +export function cloudInstructions() { + const FUNCTIONBEAT_INSTRUCTIONS = createFunctionbeatInstructions(); + const FUNCTIONBEAT_CLOUD_INSTRUCTIONS = createFunctionbeatCloudInstructions(); + + return { + instructionSets: [ + { + title: i18n.translate('kbn.common.tutorials.functionbeat.cloudInstructions.gettingStarted.title', { + defaultMessage: 'Getting Started', + }), + instructionVariants: [ + { + id: INSTRUCTION_VARIANT.OSX, + instructions: [ + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.OSX, + functionbeatAWSInstructions().OSX_LINUX, + functionbeatEnableInstructions().OSX_LINUX, + FUNCTIONBEAT_CLOUD_INSTRUCTIONS.CONFIG.OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.OSX_LINUX, + ], + }, + { + id: INSTRUCTION_VARIANT.LINUX, + instructions: [ + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.LINUX, + functionbeatAWSInstructions().OSX_LINUX, + functionbeatEnableInstructions().OSX_LINUX, + FUNCTIONBEAT_CLOUD_INSTRUCTIONS.CONFIG.OSX_LINUX, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.OSX_LINUX, + ], + }, + { + id: INSTRUCTION_VARIANT.WINDOWS, + instructions: [ + FUNCTIONBEAT_INSTRUCTIONS.INSTALL.WINDOWS, + functionbeatAWSInstructions().WINDOWS, + functionbeatEnableInstructions().WINDOWS, + FUNCTIONBEAT_CLOUD_INSTRUCTIONS.CONFIG.WINDOWS, + FUNCTIONBEAT_INSTRUCTIONS.DEPLOY.WINDOWS, + ], + }, + ], + statusCheck: functionbeatStatusCheck(), + }, + ], + }; +} diff --git a/src/core_plugins/kibana/common/tutorials/heartbeat_instructions.js b/src/core_plugins/kibana/common/tutorials/heartbeat_instructions.js new file mode 100644 index 0000000000000..9107dd509067d --- /dev/null +++ b/src/core_plugins/kibana/common/tutorials/heartbeat_instructions.js @@ -0,0 +1,649 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { i18n } from '@kbn/i18n'; +import { INSTRUCTION_VARIANT } from './instruction_variant'; +import { createTrycloudOption1, createTrycloudOption2 } from './onprem_cloud_instructions'; +import { getSpaceIdForBeatsTutorial } from '../lib/get_space_id_for_beats_tutorial'; + +export const createHeartbeatInstructions = context => ({ + INSTALL: { + OSX: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.osxTitle', { + defaultMessage: 'Download and install Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.osxTextPre', { + defaultMessage: 'First time using Heartbeat? See the [Getting Started Guide]({link}).', + values: { link: '{config.docs.beats.heartbeat}/heartbeat-getting-started.html' }, + }), + commands: [ + 'curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-{config.kibana.version}-darwin-x86_64.tar.gz', + 'tar xzvf heartbeat-{config.kibana.version}-darwin-x86_64.tar.gz', + 'cd heartbeat-{config.kibana.version}-darwin-x86_64/', + ], + }, + DEB: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.debTitle', { + defaultMessage: 'Download and install Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.debTextPre', { + defaultMessage: 'First time using Heartbeat? See the [Getting Started Guide]({link}).', + values: { link: '{config.docs.beats.heartbeat}/heartbeat-getting-started.html' }, + }), + commands: [ + 'curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-{config.kibana.version}-amd64.deb', + 'sudo dpkg -i heartbeat-{config.kibana.version}-amd64.deb', + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.debTextPost', { + defaultMessage: 'Looking for the 32-bit packages? See the [Download page]({link}).', + values: { link: 'https://www.elastic.co/downloads/beats/heartbeat' }, + }), + }, + RPM: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.rpmTitle', { + defaultMessage: 'Download and install Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.rpmTextPre', { + defaultMessage: 'First time using Heartbeat? See the [Getting Started Guide]({link}).', + values: { link: '{config.docs.beats.heartbeat}/heartbeat-getting-started.html' }, + }), + commands: [ + 'curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-{config.kibana.version}-x86_64.rpm', + 'sudo rpm -vi heartbeat-{config.kibana.version}-x86_64.rpm', + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.debTextPost', { + defaultMessage: 'Looking for the 32-bit packages? See the [Download page]({link}).', + values: { link: 'https://www.elastic.co/downloads/beats/heartbeat' }, + }), + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.windowsTitle', { + defaultMessage: 'Download and install Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.install.windowsTextPre', { + defaultMessage: 'First time using Heartbeat? See the [Getting Started Guide]({heartbeatLink}).\n\ + 1. Download the Heartbeat Windows zip file from the [Download]({elasticLink}) page.\n\ + 2. Extract the contents of the zip file into {folderPath}.\n\ + 3. Rename the {directoryName} directory to `Heartbeat`.\n\ + 4. Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select \ +**Run As Administrator**). If you are running Windows XP, you might need to download and install PowerShell.\n\ + 5. From the PowerShell prompt, run the following commands to install Heartbeat as a Windows service.', + values: { + directoryName: '`heartbeat-{config.kibana.version}-windows`', + folderPath: '`C:\\Program Files`', + heartbeatLink: '{config.docs.beats.heartbeat}/heartbeat-getting-started.html', + elasticLink: 'https://www.elastic.co/downloads/beats/heartbeat', + }, + }), + commands: [ + 'PS > cd C:\\Program Files\\Heartbeat', + 'PS C:\\Program Files\\Heartbeat> .\\install-service-heartbeat.ps1', + ], + } + }, + START: { + OSX: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.osxTitle', { + defaultMessage: 'Start Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.osxTextPre', { + defaultMessage: 'The `setup` command loads the Kibana dashboards. If the dashboards are already set up, omit this command.', + }), + commands: [ + './heartbeat setup', + './heartbeat -e', + ] + }, + DEB: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.debTitle', { + defaultMessage: 'Start Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.debTextPre', { + defaultMessage: 'The `setup` command loads the Kibana dashboards. If the dashboards are already set up, omit this command.', + }), + commands: [ + 'sudo heartbeat setup', + 'sudo service heartbeat-elastic start', + ] + }, + RPM: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.rpmTitle', { + defaultMessage: 'Start Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.rpmTextPre', { + defaultMessage: 'The `setup` command loads the Kibana dashboards. If the dashboards are already set up, omit this command.', + }), + commands: [ + 'sudo heartbeat setup', + 'sudo service heartbeat-elastic start', + ], + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.windowsTitle', { + defaultMessage: 'Start Heartbeat', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.start.windowsTextPre', { + defaultMessage: 'The `setup` command loads the Kibana dashboards. If the dashboards are already set up, omit this command.', + }), + commands: [ + 'PS C:\\Program Files\\Heartbeat> .\\heartbeat.exe setup', + 'PS C:\\Program Files\\Heartbeat> Start-Service heartbeat', + ], + }, + }, + CONFIG: { + OSX: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.osxTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.osxTextPre', { + defaultMessage: 'Modify {path} to set the connection information:', + values: { + path: '`heartbeat.yml`', + }, + }), + commands: [ + 'output.elasticsearch:', + ' hosts: [""]', + ' username: "elastic"', + ' password: ""', + 'setup.kibana:', + ' host: ""', + getSpaceIdForBeatsTutorial(context) + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.osxTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ +and {kibanaUrlTemplate} is the URL of Kibana.', + values: { + passwordTemplate: '``', + esUrlTemplate: '``', + kibanaUrlTemplate: '``', + }, + }), + }, + DEB: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.debTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.debTextPre', { + defaultMessage: 'Modify {path} to set the connection information:', + values: { + path: '`/etc/heartbeat/heartbeat.yml`', + }, + }), + commands: [ + 'output.elasticsearch:', + ' hosts: [""]', + ' username: "elastic"', + ' password: ""', + 'setup.kibana:', + ' host: ""', + getSpaceIdForBeatsTutorial(context) + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.debTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ +and {kibanaUrlTemplate} is the URL of Kibana.', + values: { + passwordTemplate: '``', + esUrlTemplate: '``', + kibanaUrlTemplate: '``', + }, + }), + }, + RPM: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.rpmTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.rpmTextPre', { + defaultMessage: 'Modify {path} to set the connection information:', + values: { + path: '`/etc/heartbeat/heartbeat.yml`', + }, + }), + commands: [ + 'output.elasticsearch:', + ' hosts: [""]', + ' username: "elastic"', + ' password: ""', + 'setup.kibana:', + ' host: ""', + getSpaceIdForBeatsTutorial(context) + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.rpmTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ +and {kibanaUrlTemplate} is the URL of Kibana.', + values: { + passwordTemplate: '``', + esUrlTemplate: '``', + kibanaUrlTemplate: '``', + }, + }), + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.windowsTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.windowsTextPre', { + defaultMessage: 'Modify {path} to set the connection information:', + values: { + path: '`C:\\Program Files\\Heartbeat\\heartbeat.yml`', + }, + }), + commands: [ + 'output.elasticsearch:', + ' hosts: [""]', + ' username: "elastic"', + ' password: ""', + 'setup.kibana:', + ' host: ""', + getSpaceIdForBeatsTutorial(context) + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatInstructions.config.windowsTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ +and {kibanaUrlTemplate} is the URL of Kibana.', + values: { + passwordTemplate: '``', + esUrlTemplate: '``', + kibanaUrlTemplate: '``', + }, + }), + } + } +}); + +export const createHeartbeatCloudInstructions = () => ({ + CONFIG: { + OSX: { + title: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.osxTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.osxTextPre', { + defaultMessage: 'Modify {path} to set the connection information for Elastic Cloud:', + values: { + path: '`heartbeat.yml`', + }, + }), + commands: [ + 'cloud.id: "{config.cloud.id}"', + 'cloud.auth: "elastic:"' + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.osxTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user.', + values: { passwordTemplate: '``' }, + }), + }, + DEB: { + title: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.debTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.debTextPre', { + defaultMessage: 'Modify {path} to set the connection information for Elastic Cloud:', + values: { + path: '`/etc/heartbeat/heartbeat.yml`', + }, + }), + commands: [ + 'cloud.id: "{config.cloud.id}"', + 'cloud.auth: "elastic:"' + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.debTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user.', + values: { passwordTemplate: '``' }, + }), + }, + RPM: { + title: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.rpmTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.rpmTextPre', { + defaultMessage: 'Modify {path} to set the connection information for Elastic Cloud:', + values: { + path: '`/etc/heartbeat/heartbeat.yml`', + }, + }), + commands: [ + 'cloud.id: "{config.cloud.id}"', + 'cloud.auth: "elastic:"' + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.rpmTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user.', + values: { passwordTemplate: '``' }, + }), + }, + WINDOWS: { + title: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.windowsTitle', { + defaultMessage: 'Edit the configuration', + }), + textPre: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.windowsTextPre', { + defaultMessage: 'Modify {path} to set the connection information for Elastic Cloud:', + values: { + path: '`C:\\Program Files\\Heartbeat\\heartbeat.yml`', + }, + }), + commands: [ + 'cloud.id: "{config.cloud.id}"', + 'cloud.auth: "elastic:"' + ], + textPost: i18n.translate('kbn.common.tutorials.heartbeatCloudInstructions.config.windowsTextPost', { + defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user.', + values: { passwordTemplate: '``' }, + }), + } + } +}); + +export function heartbeatEnableInstructionsOnPrem() { + const defaultTitle = i18n.translate('kbn.common.tutorials.heartbeatEnableOnPremInstructions.defaultTitle', { + defaultMessage: 'Edit the configuration - Add monitors', + }); + const defaultCommands = [ + 'heartbeat.monitors:', + '- type: http', + ' urls: [""]', + ' schedule: "@every 10s"' + ]; + const defaultTextPost = i18n.translate('kbn.common.tutorials.heartbeatEnableOnPremInstructions.defaultTextPost', { + defaultMessage: 'Where {hostTemplate} is your monitored URL, For more details on how to configure Monitors in \ + Heartbeat, read the [Heartbeat configuration docs.]({configureLink})', + values: { + configureLink: '{config.docs.beats.heartbeat}/heartbeat-configuration.html', + hostTemplate: '``' + } + }); + return { + OSX: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableOnPremInstructions.osxTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + }, + DEB: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableOnPremInstructions.debTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + }, + RPM: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableOnPremInstructions.rpmTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + }, + WINDOWS: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableOnPremInstructions.windowsTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + } + }; +} + +export function heartbeatEnableInstructionsCloud() { + const defaultTitle = i18n.translate('kbn.common.tutorials.heartbeatEnableCloudInstructions.defaultTitle', { + defaultMessage: 'Edit the configuration - Add monitors', + }); + const defaultCommands = [ + 'heartbeat.monitors:', + '- type: http', + ' urls: ["http://elastic.co"]', + ' schedule: "@every 10s"' + ]; + const defaultTextPost = i18n.translate('kbn.common.tutorials.heartbeatEnableCloudInstructions.defaultTextPost', { + defaultMessage: 'For more details on how to configure Monitors in Heartbeat, read the [Heartbeat configuration docs.]({configureLink})', + values: { configureLink: '{config.docs.beats.heartbeat}/heartbeat-configuration.html' } + }); + return { + OSX: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableCloudInstructions.osxTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + }, + DEB: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableCloudInstructions.debTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + }, + RPM: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableCloudInstructions.rpmTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + }, + WINDOWS: { + title: defaultTitle, + textPre: i18n.translate('kbn.common.tutorials.heartbeatEnableCloudInstructions.windowsTextPre', { + defaultMessage: 'Edit the `heartbeat.monitors` setting in the `heartbeat.yml` file.', + }), + commands: defaultCommands, + textPost: defaultTextPost + } + }; +} + +export function heartbeatStatusCheck() { + return { + title: i18n.translate('kbn.common.tutorials.heartbeatStatusCheck.title', { + defaultMessage: 'Heartbeat status', + }), + text: i18n.translate('kbn.common.tutorials.heartbeatStatusCheck.text', { + defaultMessage: 'Check that data is received from Heartbeat', + }), + btnLabel: i18n.translate('kbn.common.tutorials.heartbeatStatusCheck.buttonLabel', { + defaultMessage: 'Check data', + }), + success: i18n.translate('kbn.common.tutorials.heartbeatStatusCheck.successText', { + defaultMessage: 'Data successfully received from Heartbeat', + }), + error: i18n.translate('kbn.common.tutorials.heartbeatStatusCheck.errorText', { + defaultMessage: 'No data has been received from Heartbeat yet', + }), + esHitsCheck: { + index: 'heartbeat-*', + query: { + match_all: {}, + }, + }, + }; +} + +export function onPremInstructions(platforms, geoipRequired, uaRequired, context) { + const HEARTBEAT_INSTRUCTIONS = createHeartbeatInstructions(context); + + return { + instructionSets: [ + { + title: i18n.translate('kbn.common.tutorials.heartbeat.premInstructions.gettingStarted.title', { + defaultMessage: 'Getting Started', + }), + instructionVariants: [ + { + id: INSTRUCTION_VARIANT.OSX, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.OSX, + HEARTBEAT_INSTRUCTIONS.CONFIG.OSX, + heartbeatEnableInstructionsOnPrem().OSX, + HEARTBEAT_INSTRUCTIONS.START.OSX, + ], + }, + { + id: INSTRUCTION_VARIANT.DEB, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.DEB, + HEARTBEAT_INSTRUCTIONS.CONFIG.DEB, + heartbeatEnableInstructionsOnPrem().DEB, + HEARTBEAT_INSTRUCTIONS.START.DEB, + ], + }, + { + id: INSTRUCTION_VARIANT.RPM, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.RPM, + HEARTBEAT_INSTRUCTIONS.CONFIG.RPM, + heartbeatEnableInstructionsOnPrem().RPM, + HEARTBEAT_INSTRUCTIONS.START.RPM, + ], + }, + { + id: INSTRUCTION_VARIANT.WINDOWS, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.WINDOWS, + HEARTBEAT_INSTRUCTIONS.CONFIG.WINDOWS, + heartbeatEnableInstructionsOnPrem().WINDOWS, + HEARTBEAT_INSTRUCTIONS.START.WINDOWS, + ], + }, + ], + statusCheck: heartbeatStatusCheck(), + }, + ], + }; +} + +export function onPremCloudInstructions() { + const TRYCLOUD_OPTION1 = createTrycloudOption1(); + const TRYCLOUD_OPTION2 = createTrycloudOption2(); + const HEARTBEAT_INSTRUCTIONS = createHeartbeatInstructions(); + + return { + instructionSets: [ + { + title: i18n.translate('kbn.common.tutorials.heartbeat.premCloudInstructions.gettingStarted.title', { + defaultMessage: 'Getting Started', + }), + instructionVariants: [ + { + id: INSTRUCTION_VARIANT.OSX, + instructions: [ + TRYCLOUD_OPTION1, + TRYCLOUD_OPTION2, + HEARTBEAT_INSTRUCTIONS.INSTALL.OSX, + HEARTBEAT_INSTRUCTIONS.CONFIG.OSX, + heartbeatEnableInstructionsCloud().OSX, + HEARTBEAT_INSTRUCTIONS.START.OSX, + ], + }, + { + id: INSTRUCTION_VARIANT.DEB, + instructions: [ + TRYCLOUD_OPTION1, + TRYCLOUD_OPTION2, + HEARTBEAT_INSTRUCTIONS.INSTALL.DEB, + HEARTBEAT_INSTRUCTIONS.CONFIG.DEB, + heartbeatEnableInstructionsCloud().DEB, + HEARTBEAT_INSTRUCTIONS.START.DEB, + ], + }, + { + id: INSTRUCTION_VARIANT.RPM, + instructions: [ + TRYCLOUD_OPTION1, + TRYCLOUD_OPTION2, + HEARTBEAT_INSTRUCTIONS.INSTALL.RPM, + HEARTBEAT_INSTRUCTIONS.CONFIG.RPM, + heartbeatEnableInstructionsCloud().RPM, + HEARTBEAT_INSTRUCTIONS.START.RPM, + ], + }, + { + id: INSTRUCTION_VARIANT.WINDOWS, + instructions: [ + TRYCLOUD_OPTION1, + TRYCLOUD_OPTION2, + HEARTBEAT_INSTRUCTIONS.INSTALL.WINDOWS, + HEARTBEAT_INSTRUCTIONS.CONFIG.WINDOWS, + heartbeatEnableInstructionsCloud().WINDOWS, + HEARTBEAT_INSTRUCTIONS.START.WINDOWS, + ], + }, + ], + statusCheck: heartbeatStatusCheck(), + }, + ], + }; +} + +export function cloudInstructions() { + const HEARTBEAT_INSTRUCTIONS = createHeartbeatInstructions(); + const HEARTBEAT_CLOUD_INSTRUCTIONS = createHeartbeatCloudInstructions(); + + return { + instructionSets: [ + { + title: i18n.translate('kbn.common.tutorials.heartbeat.cloudInstructions.gettingStarted.title', { + defaultMessage: 'Getting Started', + }), + instructionVariants: [ + { + id: INSTRUCTION_VARIANT.OSX, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.OSX, + HEARTBEAT_CLOUD_INSTRUCTIONS.CONFIG.OSX, + heartbeatEnableInstructionsCloud().OSX, + HEARTBEAT_INSTRUCTIONS.START.OSX, + ], + }, + { + id: INSTRUCTION_VARIANT.DEB, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.DEB, + HEARTBEAT_CLOUD_INSTRUCTIONS.CONFIG.DEB, + heartbeatEnableInstructionsCloud().DEB, + HEARTBEAT_INSTRUCTIONS.START.DEB, + ], + }, + { + id: INSTRUCTION_VARIANT.RPM, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.RPM, + HEARTBEAT_CLOUD_INSTRUCTIONS.CONFIG.RPM, + heartbeatEnableInstructionsCloud().RPM, + HEARTBEAT_INSTRUCTIONS.START.RPM, + ], + }, + { + id: INSTRUCTION_VARIANT.WINDOWS, + instructions: [ + HEARTBEAT_INSTRUCTIONS.INSTALL.WINDOWS, + HEARTBEAT_CLOUD_INSTRUCTIONS.CONFIG.WINDOWS, + heartbeatEnableInstructionsCloud().WINDOWS, + HEARTBEAT_INSTRUCTIONS.START.WINDOWS, + ], + }, + ], + statusCheck: heartbeatStatusCheck(), + }, + ], + }; +} diff --git a/src/core_plugins/kibana/common/tutorials/instruction_variant.js b/src/core_plugins/kibana/common/tutorials/instruction_variant.js index 529ca0e3e5800..10f0233abb742 100644 --- a/src/core_plugins/kibana/common/tutorials/instruction_variant.js +++ b/src/core_plugins/kibana/common/tutorials/instruction_variant.js @@ -31,6 +31,7 @@ export const INSTRUCTION_VARIANT = { JS: 'js', GO: 'go', JAVA: 'java', + LINUX: 'linux', }; const DISPLAY_MAP = { @@ -47,6 +48,7 @@ const DISPLAY_MAP = { [INSTRUCTION_VARIANT.JS]: 'RUM (JS)', [INSTRUCTION_VARIANT.GO]: 'Go', [INSTRUCTION_VARIANT.JAVA]: 'Java', + [INSTRUCTION_VARIANT.LINUX]: 'Linux', }; /** diff --git a/src/core_plugins/kibana/common/tutorials/metricbeat_instructions.js b/src/core_plugins/kibana/common/tutorials/metricbeat_instructions.js index b15d3aaab1e7e..93d88e9ee4b9e 100644 --- a/src/core_plugins/kibana/common/tutorials/metricbeat_instructions.js +++ b/src/core_plugins/kibana/common/tutorials/metricbeat_instructions.js @@ -20,8 +20,9 @@ import { i18n } from '@kbn/i18n'; import { INSTRUCTION_VARIANT } from './instruction_variant'; import { createTrycloudOption1, createTrycloudOption2 } from './onprem_cloud_instructions'; +import { getSpaceIdForBeatsTutorial } from '../lib/get_space_id_for_beats_tutorial'; -export const createMetricbeatInstructions = () => ({ +export const createMetricbeatInstructions = context => ({ INSTALL: { OSX: { title: i18n.translate('kbn.common.tutorials.metricbeatInstructions.install.osxTitle', { @@ -145,7 +146,7 @@ export const createMetricbeatInstructions = () => ({ defaultMessage: 'The `setup` command loads the Kibana dashboards. If the dashboards are already set up, omit this command.', }), commands: [ - 'PS C:\\Program Files\\Metricbeat> metricbeat.exe setup', + 'PS C:\\Program Files\\Metricbeat> .\\metricbeat.exe setup', 'PS C:\\Program Files\\Metricbeat> Start-Service metricbeat', ], }, @@ -168,6 +169,7 @@ export const createMetricbeatInstructions = () => ({ ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.metricbeatInstructions.config.osxTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -196,6 +198,7 @@ and {kibanaUrlTemplate} is the URL of Kibana.', ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.metricbeatInstructions.config.debTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -224,6 +227,7 @@ and {kibanaUrlTemplate} is the URL of Kibana.', ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.metricbeatInstructions.config.rpmTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -252,6 +256,7 @@ and {kibanaUrlTemplate} is the URL of Kibana.', ' password: ""', 'setup.kibana:', ' host: ""', + getSpaceIdForBeatsTutorial(context) ], textPost: i18n.translate('kbn.common.tutorials.metricbeatInstructions.config.windowsTextPost', { defaultMessage: 'Where {passwordTemplate} is the password of the `elastic` user, {esUrlTemplate} is the URL of Elasticsearch, \ @@ -444,8 +449,8 @@ export function metricbeatStatusCheck(moduleName) { }; } -export function onPremInstructions(moduleName) { - const METRICBEAT_INSTRUCTIONS = createMetricbeatInstructions(); +export function onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context) { + const METRICBEAT_INSTRUCTIONS = createMetricbeatInstructions(context); return { instructionSets: [ diff --git a/src/core_plugins/kibana/index.js b/src/core_plugins/kibana/index.js index 91bc29d6097f4..c7a44ac2b04bd 100644 --- a/src/core_plugins/kibana/index.js +++ b/src/core_plugins/kibana/index.js @@ -29,13 +29,15 @@ import { homeApi } from './server/routes/api/home'; import { managementApi } from './server/routes/api/management'; import { scriptsApi } from './server/routes/api/scripts'; import { registerSuggestionsApi } from './server/routes/api/suggestions'; +import { registerKqlTelemetryApi } from './server/routes/api/kql_telemetry'; +import { registerClustersRoute } from './server/routes/api/remote_info'; import { registerFieldFormats } from './server/field_formats/register'; import { registerTutorials } from './server/tutorials/register'; import * as systemApi from './server/lib/system_api'; import handleEsError from './server/lib/handle_es_error'; import mappings from './mappings.json'; import { getUiSettingDefaults } from './ui_setting_defaults'; - +import { makeKQLUsageCollector } from './server/lib/kql_usage_collector'; import { injectVars } from './inject_vars'; const mkdirp = Promise.promisify(mkdirpNode); @@ -76,6 +78,7 @@ export default function (kibana) { url: `${kbnBaseUrl}#/discover`, description: 'interactively explore your data', icon: 'plugins/kibana/assets/discover.svg', + euiIconType: 'discoverApp', }, { id: 'kibana:visualize', title: 'Visualize', @@ -83,6 +86,7 @@ export default function (kibana) { url: `${kbnBaseUrl}#/visualize`, description: 'design data visualizations', icon: 'plugins/kibana/assets/visualize.svg', + euiIconType: 'visualizeApp', }, { id: 'kibana:dashboard', title: 'Dashboard', @@ -96,13 +100,15 @@ export default function (kibana) { subUrlBase: `${kbnBaseUrl}#/dashboard`, description: 'compose visualizations for much win', icon: 'plugins/kibana/assets/dashboard.svg', + euiIconType: 'dashboardApp', }, { id: 'kibana:dev_tools', title: 'Dev Tools', order: 9001, url: '/app/kibana#/dev_tools', description: 'development tools', - icon: 'plugins/kibana/assets/wrench.svg' + icon: 'plugins/kibana/assets/wrench.svg', + euiIconType: 'devToolsApp', }, { id: 'kibana:management', title: 'Management', @@ -110,10 +116,17 @@ export default function (kibana) { url: `${kbnBaseUrl}#/management`, description: 'define index patterns, change config, and more', icon: 'plugins/kibana/assets/settings.svg', + euiIconType: 'managementApp', linkToLastSubUrl: false }, ], + savedObjectSchemas: { + 'kql-telemetry': { + isNamespaceAgnostic: true, + }, + }, + injectDefaultVars(server, options) { return { kbnIndex: options.index, @@ -151,8 +164,11 @@ export default function (kibana) { homeApi(server); managementApi(server); registerSuggestionsApi(server); + registerKqlTelemetryApi(server); registerFieldFormats(server); registerTutorials(server); + makeKQLUsageCollector(server); + registerClustersRoute(server); server.expose('systemApi', systemApi); server.expose('handleEsError', handleEsError); server.injectUiAppVars('kibana', () => injectVars(server)); diff --git a/src/core_plugins/kibana/mappings.json b/src/core_plugins/kibana/mappings.json index 471cee57da565..155742b15c8a7 100644 --- a/src/core_plugins/kibana/mappings.json +++ b/src/core_plugins/kibana/mappings.json @@ -21,6 +21,12 @@ }, "title": { "type": "text" + }, + "type": { + "type": "keyword" + }, + "typeMeta": { + "type": "keyword" } } }, @@ -167,5 +173,15 @@ "type": "keyword" } } + }, + "kql-telemetry": { + "properties": { + "optInCount": { + "type": "long" + }, + "optOutCount": { + "type": "long" + } + } } } diff --git a/src/core_plugins/kibana/public/context/_index.scss b/src/core_plugins/kibana/public/context/_index.scss new file mode 100644 index 0000000000000..b605bc3d6edea --- /dev/null +++ b/src/core_plugins/kibana/public/context/_index.scss @@ -0,0 +1,8 @@ +// Prefix all styles with "cxt" to avoid conflicts. +// Examples +// cxtChart +// cxtChart__legend +// cxtChart__legend--small +// cxtChart__legend-isLoading + +@import 'components/size_picker/index'; diff --git a/src/core_plugins/kibana/public/context/components/size_picker/_index.scss b/src/core_plugins/kibana/public/context/components/size_picker/_index.scss new file mode 100644 index 0000000000000..6a7ffa7201919 --- /dev/null +++ b/src/core_plugins/kibana/public/context/components/size_picker/_index.scss @@ -0,0 +1 @@ +@import './size_picker'; diff --git a/src/core_plugins/kibana/public/context/components/size_picker/_size_picker.scss b/src/core_plugins/kibana/public/context/components/size_picker/_size_picker.scss new file mode 100644 index 0000000000000..3e9b05a2872ca --- /dev/null +++ b/src/core_plugins/kibana/public/context/components/size_picker/_size_picker.scss @@ -0,0 +1,14 @@ +/** + * 1. Hide increment and decrement buttons for type="number" input. + */ +.cxtSizePicker { + appearance: textfield; + text-align: center; + width: $euiSize * 5; + + &::-webkit-outer-spin-button, + &::-webkit-inner-spin-button { + appearance: none; /* 1 */ + margin: 0; /* 1 */ + } +} diff --git a/src/core_plugins/kibana/public/context/components/size_picker/size_picker.html b/src/core_plugins/kibana/public/context/components/size_picker/size_picker.html index 6d1516279cb5d..d3bda3268310a 100644 --- a/src/core_plugins/kibana/public/context/components/size_picker/size_picker.html +++ b/src/core_plugins/kibana/public/context/components/size_picker/size_picker.html @@ -1,5 +1,5 @@ { - - describe('with query bar', () => { - let Private; - let getAppState; - let getDashboardContext; - beforeEach(() => { - Private = sinon.stub().returns({ - getFilters() { - return []; - } - }); - }); - - it('should return an empty must and must not when there are no filters or queries', () => { - getAppState = sinon.stub().returns({ - query: { - language: 'lucene', - query: null - } - }); - getDashboardContext = dashboardContextProvider(Private, getAppState); - const context = getDashboardContext(); - expect(context).to.eql({ - bool: { - must: [], - must_not: [] - } - }); - }); - - it('should add a valid query to must', () => { - getAppState = sinon.stub().returns({ - query: { - language: 'lucene', - query: '*' - } - }); - getDashboardContext = dashboardContextProvider(Private, getAppState); - const context = getDashboardContext(); - expect(context).to.eql({ - bool: { - must: [ - { - query_string: { - query: '*' - } - } - ], - must_not: [] - } - }); - }); - - }); - - describe('with filter bar', () => { - let Private; - let getAppState; - let getDashboardContext; - beforeEach(() => { - getAppState = sinon.stub().returns({ query: { language: 'something-else' } }); - }); - - afterEach(() => { - getAppState.resetHistory(); - }); - - it('should add a valid filter to must', () => { - Private = sinon.stub().returns({ - getFilters() { - return [ - { meta: { negate: false }, term: { foo: 'bar' } } - ]; - } - }); - getDashboardContext = dashboardContextProvider(Private, getAppState); - const context = getDashboardContext(); - expect(context).to.eql({ - bool: { - must: [{ term: { foo: 'bar' } }], - must_not: [] - } - }); - }); - - it('should add a valid filter to must_not', () => { - Private = sinon.stub().returns({ - getFilters() { - return [ - { meta: { negate: true }, term: { foo: 'bar' } } - ]; - } - }); - getDashboardContext = dashboardContextProvider(Private, getAppState); - const context = getDashboardContext(); - expect(context).to.eql({ - bool: { - must: [], - must_not: [{ term: { foo: 'bar' } }] - } - }); - }); - - it('should not add a disabled filter', () => { - Private = sinon.stub().returns({ - getFilters() { - return [ - { meta: { negate: true, disabled: true }, term: { foo: 'bar' } } - ]; - } - }); - getDashboardContext = dashboardContextProvider(Private, getAppState); - const context = getDashboardContext(); - expect(context).to.eql({ - bool: { - must: [], - must_not: [] - } - }); - }); - - }); - -}); - - diff --git a/src/core_plugins/kibana/public/dashboard/_hacks.scss b/src/core_plugins/kibana/public/dashboard/_hacks.scss index 3f4fbff4d5703..8257566a35a75 100644 --- a/src/core_plugins/kibana/public/dashboard/_hacks.scss +++ b/src/core_plugins/kibana/public/dashboard/_hacks.scss @@ -24,8 +24,8 @@ dashboard-listing { // Yes, this is a hack because bootstrap will be removed and everything must move to EUI theming // Can't reliably remove all/any of these because of embeddables -.tab-dashboard.theme-dark { - @import './../../../../../node_modules/@elastic/eui/src/themes/k6/k6_colors_dark'; +.theme-dark { + @import '@elastic/eui/src/themes/k6/k6_colors_dark'; // /src/ui/public/styles/bootstrap/scaffolding.less a { diff --git a/src/core_plugins/kibana/public/dashboard/_index.scss b/src/core_plugins/kibana/public/dashboard/_index.scss index 26d0c85e9f882..de00e0d670d22 100644 --- a/src/core_plugins/kibana/public/dashboard/_index.scss +++ b/src/core_plugins/kibana/public/dashboard/_index.scss @@ -14,16 +14,16 @@ // dshChart__legend-isLoading /** - * 1. Don't duplicate styles in dark mode - */ -.tab-dashboard.theme-light { /* 1 */ + * 1. Don't duplicate styles in dark mode + */ +.theme-light { /* 1 */ @import 'dashboard_app'; @import 'grid/index'; @import 'panel/index'; @import 'viewport/index'; } -// Imports outside of .tab-dashboard selector don't change between light/dark modes +// Imports outside of theme selector don't change between light/dark modes @import 'components/index'; // Must be outside of theme selector because it lives in a portal @@ -31,13 +31,18 @@ // DARK THEME // EUI global scope -- dark -@import './../../../../../node_modules/@elastic/eui/src/themes/k6/k6_colors_dark'; +@import '@elastic/eui/src/themes/k6/k6_colors_dark'; -.tab-dashboard.theme-dark { +.theme-dark { background-color: $euiColorEmptyShade; @import 'dashboard_app'; @import 'grid/index'; @import 'panel/index'; @import 'viewport/index'; + + // Vis imports -- will have some duplicate styling + // because they will be imported via ui/public as well + // (without .theme-[] prefix) + @import 'src/ui/public/vis/map/index'; } diff --git a/src/core_plugins/kibana/public/dashboard/dashboard_app.html b/src/core_plugins/kibana/public/dashboard/dashboard_app.html index 76326d2f26652..cc020f33e3dba 100644 --- a/src/core_plugins/kibana/public/dashboard/dashboard_app.html +++ b/src/core_plugins/kibana/public/dashboard/dashboard_app.html @@ -7,30 +7,30 @@
      -
      -
      - Dashboard +
      +
      +
      + Dashboard +
      +
      + {{ getDashTitle() }} +
      +
      -
      - {{ getDashTitle() }} -
      -
      - + >
      diff --git a/src/core_plugins/kibana/public/dashboard/dashboard_app.js b/src/core_plugins/kibana/public/dashboard/dashboard_app.js index a230249aca828..13f6c1006c956 100644 --- a/src/core_plugins/kibana/public/dashboard/dashboard_app.js +++ b/src/core_plugins/kibana/public/dashboard/dashboard_app.js @@ -46,7 +46,7 @@ import { DashboardSaveModal } from './top_nav/save_modal'; import { showAddPanel } from './top_nav/show_add_panel'; import { showOptionsPopover } from './top_nav/show_options_popover'; import { showShareContextMenu, ShareContextMenuExtensionsRegistryProvider } from 'ui/share'; -import { migrateLegacyQuery } from 'ui/utils/migrateLegacyQuery'; +import { migrateLegacyQuery } from 'ui/utils/migrate_legacy_query'; import * as filterActions from 'ui/doc_table/actions/filter'; import { FilterManagerProvider } from 'ui/filter_manager'; import { EmbeddableFactoriesRegistryProvider } from 'ui/embeddable/embeddable_factories_registry'; @@ -56,6 +56,7 @@ import { timefilter } from 'ui/timefilter'; import { getUnhashableStatesProvider } from 'ui/state_management/state_hashing'; import { DashboardViewportProvider } from './viewport/dashboard_viewport_provider'; +import { i18n } from '@kbn/i18n'; const app = uiModules.get('app/dashboard', [ 'elasticsearch', @@ -63,7 +64,6 @@ const app = uiModules.get('app/dashboard', [ 'react', 'kibana/courier', 'kibana/config', - 'kibana/typeahead', ]); app.directive('dashboardViewportProvider', function (reactDirective) { @@ -81,7 +81,17 @@ app.directive('dashboardApp', function ($injector) { return { restrict: 'E', controllerAs: 'dashboardApp', - controller: function ($scope, $rootScope, $route, $routeParams, $location, getAppState, dashboardConfig, localStorage) { + controller: function ( + $scope, + $rootScope, + $route, + $routeParams, + $location, + getAppState, + dashboardConfig, + localStorage, + breadcrumbState + ) { const filterManager = Private(FilterManagerProvider); const filterBar = Private(FilterBarQueryFilterProvider); const docTitle = Private(DocTitleProvider); @@ -169,6 +179,23 @@ app.directive('dashboardApp', function ($injector) { dashboardStateManager.getTitle(), dashboardStateManager.getViewMode(), dashboardStateManager.getIsDirty(timefilter)); + + // Push breadcrumbs to new header navigation + const updateBreadcrumbs = () => { + breadcrumbState.set([ + { + text: i18n.translate('kbn.dashboard.dashboardAppBreadcrumbsTitle', { + defaultMessage: 'Dashboard', + }), + href: $scope.landingPageUrl() + }, + { text: $scope.getDashTitle() } + ]); + }; + updateBreadcrumbs(); + dashboardStateManager.registerChangeListener(updateBreadcrumbs); + config.watch('k7design', (val) => $scope.showPluginBreadcrumbs = !val); + $scope.newDashboard = () => { kbnUrl.change(DashboardConstants.CREATE_NEW_DASHBOARD_URL, {}); }; $scope.saveState = () => dashboardStateManager.saveState(); $scope.getShouldShowEditHelp = () => ( diff --git a/src/core_plugins/kibana/public/dashboard/dashboard_context.js b/src/core_plugins/kibana/public/dashboard/dashboard_context.js deleted file mode 100644 index d3b4c64b327f5..0000000000000 --- a/src/core_plugins/kibana/public/dashboard/dashboard_context.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -// This file is used by Timelion and TSVB -import _ from 'lodash'; -import { FilterBarQueryFilterProvider } from 'ui/filter_bar/query_filter'; -import 'ui/state_management/app_state'; -import { luceneStringToDsl, migrateFilter } from 'ui/courier'; - -export function dashboardContextProvider(Private, getAppState) { - return () => { - const appState = getAppState(); - const queryFilter = Private(FilterBarQueryFilterProvider); - const bool = { must: [], must_not: [] }; - if (!appState) { return { bool: bool }; } - const filterBarFilters = queryFilter.getFilters(); - const queryBarQuery = appState.query; - - if (queryBarQuery.language === 'lucene') { - // Add the query bar filter, its handled differently. - const query = luceneStringToDsl(queryBarQuery.query); - if (query) { bool.must.push(query); } - } - - // Add each of the filter bar filters - _.each(filterBarFilters, function (filter) { - const esFilter = _.omit(filter, function (val, key) { - if (key === 'meta' || key[0] === '$') { return true; } - return false; - }); - - if (filter.meta.disabled) { return; } - if (filter.meta.negate) { - bool.must_not = bool.must_not || []; - if (esFilter.query || esFilter) { bool.must_not.push(migrateFilter(esFilter.query || esFilter)); } - } else { - bool.must = bool.must || []; - if (esFilter.query || esFilter) { bool.must.push(migrateFilter(esFilter.query || esFilter)); } - } - }); - - return { bool: bool }; - }; -} diff --git a/src/core_plugins/kibana/public/dashboard/dashboard_state_manager.js b/src/core_plugins/kibana/public/dashboard/dashboard_state_manager.js index 3b7c759967ec0..a9a9372318592 100644 --- a/src/core_plugins/kibana/public/dashboard/dashboard_state_manager.js +++ b/src/core_plugins/kibana/public/dashboard/dashboard_state_manager.js @@ -37,6 +37,7 @@ import { clearStagedFilters, updateFilters, updateQuery, + closeContextMenu, } from './actions'; import { stateMonitorFactory } from 'ui/state_management/state_monitor_factory'; import { createPanelState } from './panel'; @@ -101,6 +102,8 @@ export class DashboardStateManager { this.createStateMonitor(); + store.dispatch(closeContextMenu()); + // Always start out with all panels minimized when a dashboard is first loaded. store.dispatch(minimizePanel()); this._pushAppStateChangesToStore(); diff --git a/src/core_plugins/kibana/public/dashboard/grid/_dashboard_grid.scss b/src/core_plugins/kibana/public/dashboard/grid/_dashboard_grid.scss index 232d12f51bc8b..46479536aaff6 100644 --- a/src/core_plugins/kibana/public/dashboard/grid/_dashboard_grid.scss +++ b/src/core_plugins/kibana/public/dashboard/grid/_dashboard_grid.scss @@ -35,7 +35,7 @@ } /** - * .dshLayout-withMargins only affects the panel styles themselves, see ../panel + * .dshLayout-withoutMargins only affects the panel styles themselves, see ../panel */ /** @@ -53,14 +53,12 @@ width: 100% !important; /* 1 */ top: 0 !important; /* 1 */ left: 0 !important; /* 1 */ + + // Altered panel styles can be found in ../panel } // REACT-GRID -.react-grid-layout .dshPanel { - overflow: visible; -} - .react-grid-item { /** * Disable transitions from the library on each grid element. @@ -87,6 +85,7 @@ } &.react-draggable-dragging { + transition: box-shadow $euiAnimSpeedFast $euiAnimSlightResistance; @include euiBottomShadowLarge; border-radius: $euiBorderRadius; // keeps shadow within bounds } diff --git a/src/core_plugins/kibana/public/dashboard/grid/dashboard_grid.js b/src/core_plugins/kibana/public/dashboard/grid/dashboard_grid.js index 9e36600ec8526..ccb22b4e533cb 100644 --- a/src/core_plugins/kibana/public/dashboard/grid/dashboard_grid.js +++ b/src/core_plugins/kibana/public/dashboard/grid/dashboard_grid.js @@ -70,7 +70,7 @@ function ResponsiveGrid({ 'dshLayout--viewing': isViewMode, 'dshLayout--editing': !isViewMode, 'dshLayout-isMaximizedPanel': maximizedPanelId !== undefined, - 'dshLayout-withMargins': useMargins, + 'dshLayout-withoutMargins': !useMargins, }); const MARGINS = useMargins ? 8 : 0; diff --git a/src/core_plugins/kibana/public/dashboard/index.js b/src/core_plugins/kibana/public/dashboard/index.js index 6c9e3bb510fe6..3c302ec41bb67 100644 --- a/src/core_plugins/kibana/public/dashboard/index.js +++ b/src/core_plugins/kibana/public/dashboard/index.js @@ -34,6 +34,7 @@ import { recentlyAccessed } from 'ui/persisted_log'; import { SavedObjectRegistryProvider } from 'ui/saved_objects/saved_object_registry'; import { DashboardListing, EMPTY_FILTER } from './listing/dashboard_listing'; import { uiModules } from 'ui/modules'; +import { i18n } from '@kbn/i18n'; const app = uiModules.get('app/dashboard', [ 'ngRoute', @@ -50,7 +51,7 @@ uiRoutes }) .when(DashboardConstants.LANDING_PAGE_PATH, { template: dashboardListingTemplate, - controller($injector, $location, $scope, Private, config) { + controller($injector, $location, $scope, Private, config, breadcrumbState) { const services = Private(SavedObjectRegistryProvider).byLoaderPropertiesName; const dashboardConfig = $injector.get('dashboardConfig'); @@ -63,6 +64,11 @@ uiRoutes }; $scope.hideWriteControls = dashboardConfig.getHideWriteControls(); $scope.initialFilter = ($location.search()).filter || EMPTY_FILTER; + breadcrumbState.set([{ + text: i18n.translate('kbn.dashboard.dashboardBreadcrumbsTitle', { + defaultMessage: 'Dashboards', + }), + }]); }, resolve: { dash: function ($route, Private, redirectWhenMissing, kbnUrl) { diff --git a/src/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap b/src/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap index 45517f756370f..cd45b2ae64b10 100644 --- a/src/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap +++ b/src/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap @@ -15,6 +15,7 @@ exports[`after fetch hideWriteControls 1`] = ` >

      Dashboards @@ -273,6 +275,7 @@ exports[`after fetch renders table rows 1`] = ` >

      Dashboards @@ -426,6 +429,7 @@ exports[`after fetch renders warning when listingLimit is exceeded 1`] = ` >

      Dashboards diff --git a/src/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.js.snap b/src/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.js.snap index 1680ef4c5b1f2..a141793e52f0a 100644 --- a/src/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.js.snap +++ b/src/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.js.snap @@ -2,69 +2,66 @@ exports[`DashboardPanel matches snapshot 1`] = `
      + + my embeddable title +
      - - my embeddable title -
      -
      - -
      + + + +
      -
      +
      `; diff --git a/src/core_plugins/kibana/public/dashboard/panel/_dashboard_panel.scss b/src/core_plugins/kibana/public/dashboard/panel/_dashboard_panel.scss index 36130cd183747..6efb9d4f25b0d 100644 --- a/src/core_plugins/kibana/public/dashboard/panel/_dashboard_panel.scss +++ b/src/core_plugins/kibana/public/dashboard/panel/_dashboard_panel.scss @@ -12,7 +12,7 @@ flex: 1 1 100%; height: auto; z-index: 1; - background-color: inherit; + min-height: 0; // Absolute must for Firefox to scroll contents } // SASSTODO: Pretty sure this doesn't do anything since the flex-basis 100%, @@ -24,64 +24,48 @@ /** * 1. We want the doc-table-container to scroll only when embedded in a dashboard panel * 2. Fix overflow of vis's specifically for inside dashboard panels, lets the panel decide the overflow + * 3. Force a better looking scrollbar */ .doc-table-container { flex: 1 1 0; /* 1 */ overflow: auto; /* 1 */ } + .visualization { + @include euiScrollBar; /* 3 */ + } + .visualization .vis-container { overflow: visible; /* 2 */ } } -// CONTENT +.dshPanel--editing { + transition: all $euiAnimSpeedFast $euiAnimSlightResistance; -.dshPanel__panel { - background-color: $euiColorEmptyShade; - border: 1px solid $euiColorEmptyShade; - overflow: hidden; - - // maintain the 100% height of the panel - height: 100%; - flex: 1; - - // flex layout allows us to define the visualize element as "fill available space" - display: flex; - flex-direction: column; - justify-content: flex-start; -} - -.dshPanel__panel--editing { - // SASSTOD: Change this back $euiBorderColor, when EUI adds !default to borders - border-color: $euiColorLightShade; - - &:hover { + &:hover, + &:focus { border-color: $euiColorPrimary; + @include euiSlightShadowHover; } } -// Adjust borders/margin/etc... for spaced out panels -.dshLayout-withMargins { - .dshPanel__panel { - @include euiBottomShadowSmall; - // SASSTOD: Change this back $euiBorderColor, when EUI adds !default to borders - border-color: $euiColorLightShade; - border-radius: $euiBorderRadius; - } +// LAYOUT MODES - .dshPanel__panel--editing { - transition: all $euiAnimSpeedFast $euiAnimSlightResistance; +// Adjust borders/etc... for non-spaced out and expanded panels +.dshLayout-withoutMargins, +.dshDashboardGrid__item--expanded { + // Remove border color unless in editing mode + .dshPanel:not(.dshPanel--editing) { + border-color: transparent; + } - &:hover, - &:focus { - border-color: $euiColorPrimary; - @include euiSlightShadowHover; - } + .dshPanel { + box-shadow: none; + border-radius: 0; } } - // HEADER .dshPanel__header { @@ -91,12 +75,6 @@ display: flex; border: none; transition: background-color $euiAnimSpeedFast $euiAnimSlightResistance; - - // Add a rounded corner to stay within the bordered panel - .dshLayout-withMargins & { - border-top-left-radius: $euiBorderRadius - 1px; - border-top-right-radius: $euiBorderRadius - 1px; - } } .dshPanel__title { @@ -111,7 +89,7 @@ display: inline-block; } -.dshPanel__panel--editing:hover { +.dshPanel--editing:hover { .dshPanel__header { background-color: rgba($euiColorFullShade,.05) !important; cursor: move; diff --git a/src/core_plugins/kibana/public/dashboard/panel/dashboard_panel.js b/src/core_plugins/kibana/public/dashboard/panel/dashboard_panel.js index 6e09f64e85b41..684fe6c54a223 100644 --- a/src/core_plugins/kibana/public/dashboard/panel/dashboard_panel.js +++ b/src/core_plugins/kibana/public/dashboard/panel/dashboard_panel.js @@ -25,6 +25,10 @@ import _ from 'lodash'; import { PanelHeader } from './panel_header'; import { PanelError } from './panel_error'; +import { + EuiPanel, +} from '@elastic/eui'; + export class DashboardPanel extends React.Component { constructor(props) { super(props); @@ -125,28 +129,24 @@ export class DashboardPanel extends React.Component { render() { const { viewOnlyMode, panel } = this.props; - const classes = classNames('dshPanel__panel', this.props.className, { - 'dshPanel__panel--editing': !viewOnlyMode + const classes = classNames('dshPanel', this.props.className, { + 'dshPanel--editing': !viewOnlyMode }); return ( -
      -
      - - - {this.renderContent()} - -
      -
      + + + {this.renderContent()} + ); } } diff --git a/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_actions/get_edit_panel_action.tsx b/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_actions/get_edit_panel_action.tsx index 0b7bda9d1dfbf..88bc0001a9ac1 100644 --- a/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_actions/get_edit_panel_action.tsx +++ b/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_actions/get_edit_panel_action.tsx @@ -40,9 +40,9 @@ export function getEditPanelAction() { isDisabled: ({ embeddable }) => !embeddable || !embeddable.metadata || !embeddable.metadata.editUrl, isVisible: ({ containerState }) => containerState.viewMode === DashboardViewMode.EDIT, - onClick: ({ embeddable }) => { + getHref: ({ embeddable }) => { if (embeddable && embeddable.metadata.editUrl) { - window.location.href = embeddable.metadata.editUrl; + return embeddable.metadata.editUrl; } }, } diff --git a/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_options_menu.tsx b/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_options_menu.tsx index 300f3a346091b..983a235a719f2 100644 --- a/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_options_menu.tsx +++ b/src/core_plugins/kibana/public/dashboard/panel/panel_header/panel_options_menu.tsx @@ -61,6 +61,9 @@ export function PanelOptionsMenu({ closePopover={closeContextMenu} panelPaddingSize="none" anchorPosition="downRight" + data-test-subj={ + isPopoverOpen ? 'dashboardPanelContextMenuOpen' : 'dashboardPanelContextMenuClosed' + } withTitle > diff --git a/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/add_panel.test.js.snap b/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/add_panel.test.js.snap index 85684aecc461f..d976372dd2bf3 100644 --- a/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/add_panel.test.js.snap +++ b/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/add_panel.test.js.snap @@ -13,6 +13,7 @@ exports[`render 1`] = `

      Add Panels diff --git a/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap b/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap index 3d31ffb7957d5..80fb7a7ed275c 100644 --- a/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap +++ b/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap @@ -16,6 +16,7 @@ exports[`renders DashboardCloneModal 1`] = `

      Please enter a new name for your dashboard. diff --git a/src/core_plugins/kibana/public/dev_tools/_index.scss b/src/core_plugins/kibana/public/dev_tools/_index.scss new file mode 100644 index 0000000000000..563b140fd2ead --- /dev/null +++ b/src/core_plugins/kibana/public/dev_tools/_index.scss @@ -0,0 +1,18 @@ +// Prefix all styles with "dev" to avoid conflicts. +// Examples +// devChart +// devChart__legend +// devChart__legend--small +// devChart__legend-isLoading + +.devApp__container, +.devApp { + flex: 1 1 auto; + display: flex; + flex-direction: column; + + > * { + flex-shrink: 0; + } +} + diff --git a/src/core_plugins/kibana/public/dev_tools/directives/dev_tools_app.js b/src/core_plugins/kibana/public/dev_tools/directives/dev_tools_app.js index e53959ec5df6a..1f39cdf458216 100644 --- a/src/core_plugins/kibana/public/dev_tools/directives/dev_tools_app.js +++ b/src/core_plugins/kibana/public/dev_tools/directives/dev_tools_app.js @@ -20,7 +20,6 @@ import { uiModules } from 'ui/modules'; import { DevToolsRegistryProvider } from 'ui/registry/dev_tools'; import template from '../partials/dev_tools_app.html'; -import '../styles/dev_tools_app.less'; import 'ui/kbn_top_nav'; uiModules diff --git a/src/core_plugins/kibana/public/dev_tools/partials/dev_tools_app.html b/src/core_plugins/kibana/public/dev_tools/partials/dev_tools_app.html index 2d38a3c69164f..8fae6fd9efde9 100644 --- a/src/core_plugins/kibana/public/dev_tools/partials/dev_tools_app.html +++ b/src/core_plugins/kibana/public/dev_tools/partials/dev_tools_app.html @@ -1,4 +1,4 @@ -

      +
      @@ -29,5 +29,5 @@
      -
      +
      diff --git a/src/core_plugins/kibana/public/dev_tools/styles/dev_tools_app.less b/src/core_plugins/kibana/public/dev_tools/styles/dev_tools_app.less deleted file mode 100644 index 7612c226651aa..0000000000000 --- a/src/core_plugins/kibana/public/dev_tools/styles/dev_tools_app.less +++ /dev/null @@ -1,10 +0,0 @@ -@import (reference) "~ui/styles/mixins.less"; -@import (reference) "~ui/styles/variables.less"; - -.dev-tools__container { - .flex-parent; -} - -.dev-tools__app-container { - .flex-parent; -} diff --git a/src/core_plugins/kibana/public/discover/components/field_chooser/lib/field_calculator.js b/src/core_plugins/kibana/public/discover/components/field_chooser/lib/field_calculator.js index 3b81065186446..c9c29d2fc3542 100644 --- a/src/core_plugins/kibana/public/discover/components/field_chooser/lib/field_calculator.js +++ b/src/core_plugins/kibana/public/discover/components/field_chooser/lib/field_calculator.js @@ -59,8 +59,8 @@ function getFieldValueCounts(params) { if (params.hits.length - missing === 0) { return { - error: 'This field is present in your elasticsearch mapping' + - ' but not in any documents in the search results.' + + error: 'This field is present in your Elasticsearch mapping' + + ' but not in the ' + params.hits.length + ' documents shown in the doc table.' + ' You may still be able to visualize or search on it.' }; } diff --git a/src/core_plugins/kibana/public/discover/controllers/discover.js b/src/core_plugins/kibana/public/discover/controllers/discover.js index 14ffacf8773d5..bc483e0c110bc 100644 --- a/src/core_plugins/kibana/public/discover/controllers/discover.js +++ b/src/core_plugins/kibana/public/discover/controllers/discover.js @@ -46,7 +46,7 @@ import uiRoutes from 'ui/routes'; import { uiModules } from 'ui/modules'; import indexTemplate from '../index.html'; import { StateProvider } from 'ui/state_management/state'; -import { migrateLegacyQuery } from 'ui/utils/migrateLegacyQuery'; +import { migrateLegacyQuery } from 'ui/utils/migrate_legacy_query'; import { FilterManagerProvider } from 'ui/filter_manager'; import { SavedObjectsClientProvider } from 'ui/saved_objects'; import { visualizationLoader } from 'ui/visualize/loader/visualization_loader'; @@ -63,6 +63,7 @@ import { showOpenSearchPanel } from '../top_nav/show_open_search_panel'; import { tabifyAggResponse } from 'ui/agg_response/tabify'; import { showSaveModal } from 'ui/saved_objects/show_saved_object_save_modal'; import { SavedObjectSaveModal } from 'ui/saved_objects/components/saved_object_save_modal'; +import { i18n } from '@kbn/i18n'; const app = uiModules.get('apps/discover', [ 'kibana/notify', @@ -155,8 +156,8 @@ function discoverController( courier, kbnUrl, localStorage, + breadcrumbState ) { - const Vis = Private(VisProvider); const docTitle = Private(DocTitleProvider); const HitSortFn = Private(PluginsKibanaDiscoverHitSortFnProvider); @@ -278,17 +279,38 @@ function discoverController( .setField('highlightAll', true) .setField('version', true); + // Even when searching rollups, we want to use the default strategy so that we get back a + // document-like response. + $scope.searchSource.setPreferredSearchStrategyId('default'); + // searchSource which applies time range const timeRangeSearchSource = savedSearch.searchSource.create(); - timeRangeSearchSource.setField('filter', () => { - return timefilter.createFilter($scope.indexPattern); - }); + if(isDefaultTypeIndexPattern($scope.indexPattern)) { + timeRangeSearchSource.setField('filter', () => { + return timefilter.createFilter($scope.indexPattern); + }); + } $scope.searchSource.setParent(timeRangeSearchSource); const pageTitleSuffix = savedSearch.id && savedSearch.title ? `: ${savedSearch.title}` : ''; docTitle.change(`Discover${pageTitleSuffix}`); + const discoverBreadcrumbsTitle = i18n.translate('kbn.discover.discoverBreadcrumbsTitle', { + defaultMessage: 'Discover', + }); + + if (savedSearch.id && savedSearch.title) { + breadcrumbState.set([{ + text: discoverBreadcrumbsTitle, + href: '#/discover' + }, { text: savedSearch.title }]); + } else { + breadcrumbState.set([{ + text: discoverBreadcrumbsTitle, + }]); + } + let stateMonitor; const $state = $scope.state = new AppState(getStateDefaults()); @@ -387,7 +409,7 @@ function discoverController( $scope.opts = { // number of records to fetch, then paginate through sampleSize: config.get('discover:sampleSize'), - timefield: $scope.indexPattern.timeFieldName, + timefield: isDefaultTypeIndexPattern($scope.indexPattern) && $scope.indexPattern.timeFieldName, savedSearch: savedSearch, indexPatternList: $route.current.locals.ip.list, }; diff --git a/src/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap b/src/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap index 56d7135b157fa..633d996b45490 100644 --- a/src/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap +++ b/src/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap @@ -50,7 +50,7 @@ Array [ class="euiSpacer euiSpacer--xl" />

      Refine your query @@ -78,7 +78,7 @@ Array [ class="euiDescriptionList__title" >
      Find requests that contain the number 200, in any field @@ -102,7 +102,7 @@ Array [ class="euiDescriptionList__title" >
      Find 200 in the status field @@ -126,7 +126,7 @@ Array [ class="euiDescriptionList__title" >
      Find all status codes between 400-499 @@ -150,7 +150,7 @@ Array [ class="euiDescriptionList__title" >
      Find status codes 400-499 with the extension php @@ -174,7 +174,7 @@ Array [ class="euiDescriptionList__title" >
      Find status codes 400-499 with the extension php or html @@ -304,7 +304,7 @@ Array [ class="euiSpacer euiSpacer--xl" />

      Address shard failures @@ -423,7 +423,7 @@ Array [ class="euiSpacer euiSpacer--xl" />

      Expand your time range diff --git a/src/core_plugins/kibana/public/discover/index.html b/src/core_plugins/kibana/public/discover/index.html index 7a6fdbdbbff23..4735b852a96e0 100644 --- a/src/core_plugins/kibana/public/discover/index.html +++ b/src/core_plugins/kibana/public/discover/index.html @@ -26,11 +26,10 @@

      - + >

      diff --git a/src/core_plugins/kibana/public/discover/top_nav/__snapshots__/open_search_panel.test.js.snap b/src/core_plugins/kibana/public/discover/top_nav/__snapshots__/open_search_panel.test.js.snap index e35d7fc76868e..4ddf453c5a819 100644 --- a/src/core_plugins/kibana/public/discover/top_nav/__snapshots__/open_search_panel.test.js.snap +++ b/src/core_plugins/kibana/public/discover/top_nav/__snapshots__/open_search_panel.test.js.snap @@ -13,6 +13,7 @@ exports[`render 1`] = `

      Open Search diff --git a/src/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap b/src/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap index eeb15bf787751..77aa1b7018e8a 100644 --- a/src/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap +++ b/src/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap @@ -21,6 +21,7 @@ exports[`apmUiEnabled 1`] = ` >

      @@ -204,14 +206,10 @@ exports[`apmUiEnabled 1`] = ` margin="l" size="full" /> - @@ -239,7 +238,8 @@ exports[`apmUiEnabled 1`] = ` href="#/home/tutorial_directory/sampleData" style={ Object { - "marginLeft": 8, + "display": "block", + "textAlign": "center", } } type="button" @@ -259,6 +259,7 @@ exports[`apmUiEnabled 1`] = ` > @@ -278,7 +279,8 @@ exports[`apmUiEnabled 1`] = ` href="#/management/kibana/index" style={ Object { - "marginLeft": 8, + "display": "block", + "textAlign": "center", } } type="button" @@ -291,7 +293,7 @@ exports[`apmUiEnabled 1`] = ` - + `; @@ -316,6 +318,7 @@ exports[`isNewKibanaInstance 1`] = ` >

      @@ -463,14 +467,10 @@ exports[`isNewKibanaInstance 1`] = ` margin="l" size="full" /> - @@ -498,7 +499,8 @@ exports[`isNewKibanaInstance 1`] = ` href="#/home/tutorial_directory/sampleData" style={ Object { - "marginLeft": 8, + "display": "block", + "textAlign": "center", } } type="button" @@ -518,6 +520,7 @@ exports[`isNewKibanaInstance 1`] = ` > @@ -537,7 +540,8 @@ exports[`isNewKibanaInstance 1`] = ` href="#/management/kibana/index" style={ Object { - "marginLeft": 8, + "display": "block", + "textAlign": "center", } } type="button" @@ -550,11 +554,11 @@ exports[`isNewKibanaInstance 1`] = ` - + `; -exports[`render 1`] = ` +exports[`mlEnabled 1`] = `

      + + + + + } + icon={ + + } + layout="vertical" + textAlign="center" + title="APM" + titleElement="span" + /> + @@ -722,14 +764,312 @@ exports[`render 1`] = ` margin="l" size="full" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +`; + +exports[`render 1`] = ` + + + +

      + +

      + + +

      + +

      +
      + + + + + + + + + } + icon={ + + } + layout="vertical" + textAlign="center" + title="Logging" + titleElement="span" + /> + + + + + + } + icon={ + + } + layout="vertical" + textAlign="center" + title="Metrics" + titleElement="span" + /> + + + + + + } + icon={ + + } + layout="vertical" + textAlign="center" + title="Security analytics" + titleElement="span" + /> + + + + @@ -757,7 +1098,8 @@ exports[`render 1`] = ` href="#/home/tutorial_directory/sampleData" style={ Object { - "marginLeft": 8, + "display": "block", + "textAlign": "center", } } type="button" @@ -777,6 +1119,7 @@ exports[`render 1`] = ` > @@ -796,7 +1139,8 @@ exports[`render 1`] = ` href="#/management/kibana/index" style={ Object { - "marginLeft": 8, + "display": "block", + "textAlign": "center", } } type="button" @@ -809,6 +1153,6 @@ exports[`render 1`] = ` - + `; diff --git a/src/core_plugins/kibana/public/home/components/__snapshots__/home.test.js.snap b/src/core_plugins/kibana/public/home/components/__snapshots__/home.test.js.snap index 1781469eacfef..6e269053be21b 100644 --- a/src/core_plugins/kibana/public/home/components/__snapshots__/home.test.js.snap +++ b/src/core_plugins/kibana/public/home/components/__snapshots__/home.test.js.snap @@ -11,6 +11,7 @@ exports[`home directories should not render directory entry when showOnHomePage

      @@ -32,6 +33,7 @@ exports[`props iconType 1`] = `

      Great tutorial @@ -40,6 +42,7 @@ exports[`props iconType 1`] = `

      Great tutorial @@ -96,6 +100,7 @@ exports[`props iconUrl 1`] = `

      Great tutorial @@ -142,6 +148,7 @@ exports[`props isBeta 1`] = `

      Great tutorial @@ -188,6 +196,7 @@ exports[`render 1`] = `

      { +/* istanbul ignore next */ +const basePath = chrome.getBasePath(); + +const AddDataUi = ({ apmUiEnabled, isNewKibanaInstance, intl, mlEnabled }) => { const renderCards = () => { const apmTitle = intl.formatMessage({ @@ -61,7 +66,7 @@ const AddDataUi = ({ apmUiEnabled, isNewKibanaInstance, intl }) => { defaultMessage: 'Collect metrics from the operating system and services running on your servers.' }); const securityTitle = intl.formatMessage({ - id: 'kbn.home.addData.security.nameTitle', defaultMessage: 'Security Analytics' + id: 'kbn.home.addData.security.nameTitle', defaultMessage: 'Security analytics' }); const securityDescription = intl.formatMessage({ id: 'kbn.home.addData.security.nameDescription', @@ -189,17 +194,17 @@ const AddDataUi = ({ apmUiEnabled, isNewKibanaInstance, intl }) => { - + { + {mlEnabled !== false ? + + + + + + + + + + + : null + } { - - - - + ); }; AddDataUi.propTypes = { apmUiEnabled: PropTypes.bool.isRequired, + mlEnabled: PropTypes.bool.isRequired, isNewKibanaInstance: PropTypes.bool.isRequired, }; diff --git a/src/core_plugins/kibana/public/home/components/add_data.test.js b/src/core_plugins/kibana/public/home/components/add_data.test.js index 549990eb99ffa..d7c8e9daa99da 100644 --- a/src/core_plugins/kibana/public/home/components/add_data.test.js +++ b/src/core_plugins/kibana/public/home/components/add_data.test.js @@ -20,27 +20,52 @@ import React from 'react'; import { AddData } from './add_data'; import { shallowWithIntl } from 'test_utils/enzyme_helpers'; +import chrome from 'ui/chrome'; + +jest.mock( + 'ui/chrome', + () => ({ + getBasePath: jest.fn(() => 'path'), + }), + { virtual: true } +); test('render', () => { const component = shallowWithIntl(); + expect(component).toMatchSnapshot(); // eslint-disable-line + expect(chrome.getBasePath).toHaveBeenCalledTimes(1); +}); + +test('mlEnabled', () => { + const component = shallowWithIntl(); expect(component).toMatchSnapshot(); // eslint-disable-line + expect(chrome.getBasePath).toHaveBeenCalledTimes(1); }); test('apmUiEnabled', () => { const component = shallowWithIntl(); expect(component).toMatchSnapshot(); // eslint-disable-line + expect(chrome.getBasePath).toHaveBeenCalledTimes(1); }); test('isNewKibanaInstance', () => { const component = shallowWithIntl(); expect(component).toMatchSnapshot(); // eslint-disable-line + expect(chrome.getBasePath).toHaveBeenCalledTimes(1); }); diff --git a/src/core_plugins/kibana/public/home/components/home.js b/src/core_plugins/kibana/public/home/components/home.js index 4bcd66ca56a32..f3937933b6039 100644 --- a/src/core_plugins/kibana/public/home/components/home.js +++ b/src/core_plugins/kibana/public/home/components/home.js @@ -129,7 +129,7 @@ export class Home extends Component { }; renderNormal() { - const { apmUiEnabled, recentlyAccessed } = this.props; + const { apmUiEnabled, recentlyAccessed, mlEnabled } = this.props; let recentlyAccessedPanel; if (recentlyAccessed.length > 0) { @@ -148,6 +148,7 @@ export class Home extends Component { @@ -263,4 +264,5 @@ Home.propTypes = { find: PropTypes.func.isRequired, localStorage: PropTypes.object.isRequired, urlBasePath: PropTypes.string.isRequired, + mlEnabled: PropTypes.bool.isRequired, }; diff --git a/src/core_plugins/kibana/public/home/components/home.test.js b/src/core_plugins/kibana/public/home/components/home.test.js index 8c901f34be1ac..37558ddd5d18c 100644 --- a/src/core_plugins/kibana/public/home/components/home.test.js +++ b/src/core_plugins/kibana/public/home/components/home.test.js @@ -23,6 +23,15 @@ import { shallow } from 'enzyme'; import { Home } from './home'; import { FeatureCatalogueCategory } from 'ui/registry/feature_catalogue'; +jest.mock( + 'ui/chrome', + () => ({ + getBasePath: jest.fn(() => 'path'), + getInjected: jest.fn(() => ''), + }), + { virtual: true } +); + describe('home', () => { let defaultProps; @@ -31,6 +40,7 @@ describe('home', () => { recentlyAccessed: [], directories: [], apmUiEnabled: true, + mlEnabled: true, kibanaVersion: '99.2.1', addBasePath(url) { return `base_path/${url}`; diff --git a/src/core_plugins/kibana/public/home/components/home_app.js b/src/core_plugins/kibana/public/home/components/home_app.js index e27356b06196d..bb01836e64808 100644 --- a/src/core_plugins/kibana/public/home/components/home_app.js +++ b/src/core_plugins/kibana/public/home/components/home_app.js @@ -35,27 +35,21 @@ import { recentlyAccessedShape } from './recently_accessed'; import { I18nProvider } from '@kbn/i18n/react'; export function HomeApp({ - addBasePath, directories, recentlyAccessed, - getConfig, - setConfig, - clearIndexPatternsCache, }) { const isCloudEnabled = chrome.getInjected('isCloudEnabled', false); const apmUiEnabled = chrome.getInjected('apmUiEnabled', true); + const mlEnabled = chrome.getInjected('mlEnabled', false); const savedObjectsClient = chrome.getSavedObjectsClient(); const renderTutorialDirectory = (props) => { return ( ); }; @@ -63,7 +57,7 @@ export function HomeApp({ const renderTutorial = (props) => { return ( @@ -97,9 +91,10 @@ export function HomeApp({ path="/home" > { - const { - getConfig, - setConfig, - clearIndexPatternsCache, - } = this.props; - const targetSampleDataSet = this.state.sampleDataSets.find((sampleDataSet) => { return sampleDataSet.id === id; }); @@ -105,7 +99,7 @@ export class SampleDataSetCards extends React.Component { })); try { - await installSampleDataSet(id, targetSampleDataSet.defaultIndex, getConfig, setConfig, clearIndexPatternsCache); + await installSampleDataSet(id, targetSampleDataSet.defaultIndex); } catch (fetchError) { if (this._isMounted) { this.setState((prevState) => ({ @@ -121,15 +115,18 @@ export class SampleDataSetCards extends React.Component { return; } - this.setState((prevState) => ({ - processingStatus: { ...prevState.processingStatus, [id]: false }, - sampleDataSets: prevState.sampleDataSets.map(sampleDataSet => { - if (sampleDataSet.id === id) { - sampleDataSet.status = INSTALLED_STATUS; - } - return sampleDataSet; - }), - })); + if (this._isMounted) { + this.setState((prevState) => ({ + processingStatus: { ...prevState.processingStatus, [id]: false }, + sampleDataSets: prevState.sampleDataSets.map(sampleDataSet => { + if (sampleDataSet.id === id) { + sampleDataSet.status = INSTALLED_STATUS; + } + return sampleDataSet; + }), + })); + } + toastNotifications.addSuccess({ title: i18n.translate('kbn.home.sampleDataSet.installedLabel', { defaultMessage: '{name} installed', values: { name: targetSampleDataSet.name } } @@ -139,12 +136,6 @@ export class SampleDataSetCards extends React.Component { } uninstall = async (id) => { - const { - getConfig, - setConfig, - clearIndexPatternsCache, - } = this.props; - const targetSampleDataSet = this.state.sampleDataSets.find((sampleDataSet) => { return sampleDataSet.id === id; }); @@ -154,7 +145,7 @@ export class SampleDataSetCards extends React.Component { })); try { - await uninstallSampleDataSet(id, targetSampleDataSet.defaultIndex, getConfig, setConfig, clearIndexPatternsCache); + await uninstallSampleDataSet(id, targetSampleDataSet.defaultIndex); } catch (fetchError) { if (this._isMounted) { this.setState((prevState) => ({ @@ -170,15 +161,18 @@ export class SampleDataSetCards extends React.Component { return; } - this.setState((prevState) => ({ - processingStatus: { ...prevState.processingStatus, [id]: false }, - sampleDataSets: prevState.sampleDataSets.map(sampleDataSet => { - if (sampleDataSet.id === id) { - sampleDataSet.status = UNINSTALLED_STATUS; - } - return sampleDataSet; - }), - })); + if (this._isMounted) { + this.setState((prevState) => ({ + processingStatus: { ...prevState.processingStatus, [id]: false }, + sampleDataSets: prevState.sampleDataSets.map(sampleDataSet => { + if (sampleDataSet.id === id) { + sampleDataSet.status = UNINSTALLED_STATUS; + } + return sampleDataSet; + }), + })); + } + toastNotifications.addSuccess({ title: i18n.translate('kbn.home.sampleDataSet.uninstalledLabel', { defaultMessage: '{name} uninstalled', values: { name: targetSampleDataSet.name } } @@ -216,8 +210,5 @@ export class SampleDataSetCards extends React.Component { } SampleDataSetCards.propTypes = { - getConfig: PropTypes.func.isRequired, - setConfig: PropTypes.func.isRequired, - clearIndexPatternsCache: PropTypes.func.isRequired, addBasePath: PropTypes.func.isRequired, }; diff --git a/src/core_plugins/kibana/public/home/components/synopsis.js b/src/core_plugins/kibana/public/home/components/synopsis.js index ddcee7e3cfcf1..5f3f60118b820 100644 --- a/src/core_plugins/kibana/public/home/components/synopsis.js +++ b/src/core_plugins/kibana/public/home/components/synopsis.js @@ -46,6 +46,7 @@ export function Synopsis({ description, iconUrl, iconType, title, url, wrapInPan diff --git a/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/footer.test.js.snap b/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/footer.test.js.snap index e72aadd0bcae7..51af1e92a211f 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/footer.test.js.snap +++ b/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/footer.test.js.snap @@ -21,6 +21,7 @@ exports[`render 1`] = ` >

      Great tutorial @@ -115,6 +116,7 @@ exports[`props iconType 1`] = ` >

      Great tutorial @@ -167,6 +169,7 @@ exports[`props isBeta 1`] = ` >

      Great tutorial @@ -223,6 +226,7 @@ exports[`props previewUrl 1`] = ` >

      Great tutorial @@ -284,6 +288,7 @@ exports[`render 1`] = ` >

      Great tutorial diff --git a/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap b/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap index f5ae01470c77e..794af7b7c0931 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap +++ b/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap @@ -5,216 +5,84 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1 bulkCreate={[Function]} intl={ Object { - "formatDate": [MockFunction], - "formatHTMLMessage": [MockFunction], - "formatMessage": [MockFunction] { - "calls": Array [ - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.defaultButtonLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.defaultButtonLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "{savedObjectsLength} saved objects successfully added", - "id": "kbn.home.tutorial.savedObject.addedLabel", - }, - Object { - "savedObjectsLength": 1, - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.defaultButtonLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "Request failed, Error: {message}", - "id": "kbn.home.tutorial.savedObject.requestFailedErrorMessage", - }, - Object { - "message": "simulated bulkRequest error", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - ], - "results": Array [ - Object { - "isThrow": false, - "value": "Load Kibana objects", + "defaultFormats": Object { + "date": Object { + "full": Object { + "day": "numeric", + "month": "long", + "weekday": "long", + "year": "numeric", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", + "long": Object { + "day": "numeric", + "month": "long", + "year": "numeric", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + "medium": Object { + "day": "numeric", + "month": "short", + "year": "numeric", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + "short": Object { + "day": "numeric", + "month": "numeric", + "year": "2-digit", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", - }, - Object { - "isThrow": false, - "value": "Load Kibana objects", - }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", - }, - Object { - "isThrow": false, - "value": "Load Kibana objects", - }, - Object { - "isThrow": false, - "value": "{savedObjectsLength} saved objects successfully added", - }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", - }, - Object { - "isThrow": false, - "value": "Load Kibana objects", - }, - Object { - "isThrow": false, - "value": "Load Kibana objects", - }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", - }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + }, + "number": Object { + "currency": Object { + "style": "currency", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", + "percent": Object { + "style": "percent", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + }, + "time": Object { + "full": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", }, - Object { - "isThrow": false, - "value": "Request failed, Error: {message}", + "long": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", + "medium": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + "short": Object { + "hour": "numeric", + "minute": "numeric", }, - ], + }, + }, + "defaultLocale": "en", + "formatDate": [Function], + "formatHTMLMessage": [Function], + "formatMessage": [Function], + "formatNumber": [Function], + "formatPlural": [Function], + "formatRelative": [Function], + "formatTime": [Function], + "formats": Object {}, + "formatters": Object { + "getDateTimeFormat": [Function], + "getMessageFormat": [Function], + "getNumberFormat": [Function], + "getPluralFormat": [Function], + "getRelativeFormat": [Function], }, - "formatNumber": [MockFunction], - "formatPlural": [MockFunction], - "formatRelative": [MockFunction], - "formatTime": [MockFunction], - "now": [MockFunction], - "textComponent": "span", + "locale": "en", + "messages": Object {}, + "now": [Function], + "onError": [Function], + "textComponent": Symbol(react.fragment), + "timeZone": null, } } savedObjects={ @@ -249,6 +117,7 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1 >

      Imports index pattern, visualizations and pre-defined dashboards. @@ -279,7 +148,7 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1 color="warning" data-test-subj="loadSavedObjects_failed" size="m" - title="Request failed, Error: {message}" + title="Request failed, Error: simulated bulkRequest error" /> , "key": "installStep", @@ -323,6 +192,7 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1

      Imports index pattern, visualizations and pre-defined dashboards. @@ -413,7 +284,7 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1 color="warning" data-test-subj="loadSavedObjects_failed" size="m" - title="Request failed, Error: {message}" + title="Request failed, Error: simulated bulkRequest error" >

      - Request failed, Error: {message} + Request failed, Error: simulated bulkRequest error
      @@ -443,133 +314,84 @@ exports[`bulkCreate should display success message when bulkCreate is successful bulkCreate={[Function]} intl={ Object { - "formatDate": [MockFunction], - "formatHTMLMessage": [MockFunction], - "formatMessage": [MockFunction] { - "calls": Array [ - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.defaultButtonLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.defaultButtonLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - Array [ - Object { - "defaultMessage": "{savedObjectsLength} saved objects successfully added", - "id": "kbn.home.tutorial.savedObject.addedLabel", - }, - Object { - "savedObjectsLength": 1, - }, - ], - Array [ - Object { - "defaultMessage": "Imports index pattern, visualizations and pre-defined dashboards.", - "id": "kbn.home.tutorial.savedObject.installLabel", - }, - ], - Array [ - Object { - "defaultMessage": "Load Kibana objects", - "id": "kbn.home.tutorial.savedObject.loadTitle", - }, - ], - ], - "results": Array [ - Object { - "isThrow": false, - "value": "Load Kibana objects", + "defaultFormats": Object { + "date": Object { + "full": Object { + "day": "numeric", + "month": "long", + "weekday": "long", + "year": "numeric", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", + "long": Object { + "day": "numeric", + "month": "long", + "year": "numeric", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + "medium": Object { + "day": "numeric", + "month": "short", + "year": "numeric", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + "short": Object { + "day": "numeric", + "month": "numeric", + "year": "2-digit", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", - }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + }, + "number": Object { + "currency": Object { + "style": "currency", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", + "percent": Object { + "style": "percent", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + }, + "time": Object { + "full": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", }, - Object { - "isThrow": false, - "value": "{savedObjectsLength} saved objects successfully added", + "long": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", + "timeZoneName": "short", }, - Object { - "isThrow": false, - "value": "Imports index pattern, visualizations and pre-defined dashboards.", + "medium": Object { + "hour": "numeric", + "minute": "numeric", + "second": "numeric", }, - Object { - "isThrow": false, - "value": "Load Kibana objects", + "short": Object { + "hour": "numeric", + "minute": "numeric", }, - ], + }, }, - "formatNumber": [MockFunction], - "formatPlural": [MockFunction], - "formatRelative": [MockFunction], - "formatTime": [MockFunction], - "now": [MockFunction], - "textComponent": "span", + "defaultLocale": "en", + "formatDate": [Function], + "formatHTMLMessage": [Function], + "formatMessage": [Function], + "formatNumber": [Function], + "formatPlural": [Function], + "formatRelative": [Function], + "formatTime": [Function], + "formats": Object {}, + "formatters": Object { + "getDateTimeFormat": [Function], + "getMessageFormat": [Function], + "getNumberFormat": [Function], + "getPluralFormat": [Function], + "getRelativeFormat": [Function], + }, + "locale": "en", + "messages": Object {}, + "now": [Function], + "onError": [Function], + "textComponent": Symbol(react.fragment), + "timeZone": null, } } savedObjects={ @@ -604,6 +426,7 @@ exports[`bulkCreate should display success message when bulkCreate is successful >

      Imports index pattern, visualizations and pre-defined dashboards. @@ -634,7 +457,7 @@ exports[`bulkCreate should display success message when bulkCreate is successful color="success" data-test-subj="loadSavedObjects_success" size="m" - title="{savedObjectsLength} saved objects successfully added" + title="1 saved objects successfully added" /> , "key": "installStep", @@ -718,6 +541,7 @@ exports[`bulkCreate should display success message when bulkCreate is successful

      Imports index pattern, visualizations and pre-defined dashboards. @@ -808,7 +633,7 @@ exports[`bulkCreate should display success message when bulkCreate is successful color="success" data-test-subj="loadSavedObjects_success" size="m" - title="{savedObjectsLength} saved objects successfully added" + title="1 saved objects successfully added" >

      - {savedObjectsLength} saved objects successfully added + 1 saved objects successfully added
      @@ -856,6 +681,7 @@ exports[`renders 1`] = ` >

      Imports index pattern, visualizations and pre-defined dashboards. diff --git a/src/core_plugins/kibana/public/home/components/tutorial/instruction.js b/src/core_plugins/kibana/public/home/components/tutorial/instruction.js index b8cf63c171dbb..da3bf16238ace 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/instruction.js +++ b/src/core_plugins/kibana/public/home/components/tutorial/instruction.js @@ -67,7 +67,7 @@ export function Instruction({ commands, paramValues, textPost, textPre, replaceT size="s" onClick={copy} > - + )} diff --git a/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.js b/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.js index d3b5ea4744177..1675c2e19cb02 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.js +++ b/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.js @@ -97,7 +97,7 @@ class InstructionSetUi extends React.Component { case StatusCheckStates.HAS_DATA: message = this.props.statusCheckConfig.success ? this.props.statusCheckConfig.success - : this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.successLabel', + : this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.successLabel', defaultMessage: 'Success' }); color = 'success'; break; @@ -105,7 +105,7 @@ class InstructionSetUi extends React.Component { case StatusCheckStates.NO_DATA: message = this.props.statusCheckConfig.error ? this.props.statusCheckConfig.error - : this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.noDataLabel', + : this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.noDataLabel', defaultMessage: 'No data found' }); color = 'warning'; break; @@ -154,7 +154,7 @@ class InstructionSetUi extends React.Component { isLoading={statusCheckState === StatusCheckStates.FETCHING} > {statusCheckConfig.btnLabel || } @@ -168,7 +168,7 @@ class InstructionSetUi extends React.Component { ); return { - title: statusCheckConfig.title || this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.statusCheckTitle', + title: statusCheckConfig.title || this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.statusCheckTitle', defaultMessage: 'Status Check' }), status: this.getStepStatus(statusCheckState), @@ -221,7 +221,7 @@ class InstructionSetUi extends React.Component { 'fa-caret-right': !this.state.isParamFormVisible, 'fa-caret-down': this.state.isParamFormVisible }); - const ariaLabel = this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.toggleAriaLabel', + const ariaLabel = this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.toggleAriaLabel', defaultMessage: 'toggle command parameters visibility' }); paramsVisibilityToggle = ( @@ -234,7 +234,7 @@ class InstructionSetUi extends React.Component { diff --git a/src/core_plugins/kibana/public/home/components/tutorial/replace_template_strings.js b/src/core_plugins/kibana/public/home/components/tutorial/replace_template_strings.js index 66a210b9ca40f..da3c23ecf987c 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/replace_template_strings.js +++ b/src/core_plugins/kibana/public/home/components/tutorial/replace_template_strings.js @@ -52,7 +52,8 @@ export function replaceTemplateStrings(text, params = {}) { base_url: ELASTIC_WEBSITE_URL, beats: { filebeat: documentationLinks.filebeat.base, - metricbeat: documentationLinks.metricbeat.base + metricbeat: documentationLinks.metricbeat.base, + heartbeat: documentationLinks.heartbeat.base }, logstash: documentationLinks.logstash.base, version: DOC_LINK_VERSION diff --git a/src/core_plugins/kibana/public/home/components/tutorial/saved_objects_installer.js b/src/core_plugins/kibana/public/home/components/tutorial/saved_objects_installer.js index 69aaa716f3619..608f7d5d4612d 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/saved_objects_installer.js +++ b/src/core_plugins/kibana/public/home/components/tutorial/saved_objects_installer.js @@ -111,9 +111,9 @@ Click \'Confirm overwrite\' to import and overwrite existing objects. Any change const statusMsg = hasErrors ? this.props.intl.formatMessage( { id: 'kbn.home.tutorial.savedObject.unableToAddErrorMessage', - defaultMessage: 'Unable to add {errorsLength} of {savedObjectsLength} kibana objects, Error: ${errors[0].error.message}' + defaultMessage: 'Unable to add {errorsLength} of {savedObjectsLength} kibana objects, Error: {errorMessage}' }, - { errorsLength: errors.length, savedObjectsLength: this.props.savedObjects.length }) + { errorsLength: errors.length, savedObjectsLength: this.props.savedObjects.length, errorMessage: errors[0].error.message }) : this.props.intl.formatMessage( { id: 'kbn.home.tutorial.savedObject.addedLabel', defaultMessage: '{savedObjectsLength} saved objects successfully added' diff --git a/src/core_plugins/kibana/public/home/components/tutorial/tutorial.test.js b/src/core_plugins/kibana/public/home/components/tutorial/tutorial.test.js index cf6745cf9445a..76b57643724f6 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/tutorial.test.js +++ b/src/core_plugins/kibana/public/home/components/tutorial/tutorial.test.js @@ -18,7 +18,6 @@ */ import React from 'react'; -import { findTestSubject } from '@elastic/eui/lib/test'; import { shallowWithIntl, mountWithIntl } from 'test_utils/enzyme_helpers'; import { @@ -64,22 +63,22 @@ const replaceTemplateStrings = (text) => { }; describe('isCloudEnabled is false', () => { - test('should render ON_PREM instructions with instruction toggle', () => { + test('should render ON_PREM instructions with instruction toggle', async () => { const component = shallowWithIntl( {}} + bulkCreate={() => { }} />); - loadTutorialPromise.then(() => { - component.update(); - expect(component).toMatchSnapshot(); // eslint-disable-line - }); + await loadTutorialPromise; + + component.update(); + expect(component).toMatchSnapshot(); }); - test('should not render instruction toggle when ON_PREM_ELASTIC_CLOUD instructions are not provided', () => { + test('should not render instruction toggle when ON_PREM_ELASTIC_CLOUD instructions are not provided', async () => { const loadBasicTutorialPromise = Promise.resolve({ name: 'jest test tutorial', longDescription: 'tutorial used to drive jest tests', @@ -95,43 +94,41 @@ describe('isCloudEnabled is false', () => { getTutorial={getBasicTutorial} replaceTemplateStrings={replaceTemplateStrings} tutorialId={'my_testing_tutorial'} - bulkCreate={() => {}} + bulkCreate={() => { }} />); - loadBasicTutorialPromise.then(() => { - component.update(); - expect(component).toMatchSnapshot(); // eslint-disable-line - }); + await loadBasicTutorialPromise; + component.update(); + expect(component).toMatchSnapshot(); }); - test('should display ON_PREM_ELASTIC_CLOUD instructions when toggle is clicked', () => { + test('should display ON_PREM_ELASTIC_CLOUD instructions when toggle is clicked', async () => { const component = mountWithIntl( {}} + bulkCreate={() => { }} />); - loadTutorialPromise.then(() => { - component.update(); - findTestSubject(component, 'onPremElasticCloudBtn').simulate('click'); - expect(component.state('visibleInstructions')).toBe('onPremElasticCloud'); - }); + await loadTutorialPromise; + component.update(); + component.find('button#onPremElasticCloud').closest('div').find('input').simulate('change'); + component.update(); + expect(component.state('visibleInstructions')).toBe('onPremElasticCloud'); }); }); -test('should render ELASTIC_CLOUD instructions when isCloudEnabled is true', () => { +test('should render ELASTIC_CLOUD instructions when isCloudEnabled is true', async () => { const component = shallowWithIntl( {}} + bulkCreate={() => { }} />); - loadTutorialPromise.then(() => { - component.update(); - expect(component).toMatchSnapshot(); // eslint-disable-line - }); + await loadTutorialPromise; + component.update(); + expect(component).toMatchSnapshot(); // eslint-disable-line }); diff --git a/src/core_plugins/kibana/public/home/components/tutorial_directory.js b/src/core_plugins/kibana/public/home/components/tutorial_directory.js index af869c93aaf5a..63e0ca2d71a8b 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial_directory.js +++ b/src/core_plugins/kibana/public/home/components/tutorial_directory.js @@ -58,10 +58,10 @@ class TutorialDirectoryUi extends React.Component { name: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.tabs.metricsTitle', defaultMessage: 'Metrics' }), }, { id: 'security', - name: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.tabs.securityAnalyticsTitle', defaultMessage: 'Security Analytics' }), + name: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.tabs.securityAnalyticsTitle', defaultMessage: 'Security analytics' }), }, { id: SAMPLE_DATA_TAB_ID, - name: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.tabs.sampleDataTitle', defaultMessage: 'Sample Data' }), + name: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.tabs.sampleDataTitle', defaultMessage: 'Sample data' }), }]; let openTab = ALL_TAB_ID; @@ -148,9 +148,6 @@ class TutorialDirectoryUi extends React.Component { if (this.state.selectedTabId === SAMPLE_DATA_TAB_ID) { return ( ); @@ -222,9 +219,6 @@ TutorialDirectoryUi.propTypes = { addBasePath: PropTypes.func.isRequired, openTab: PropTypes.string, isCloudEnabled: PropTypes.bool.isRequired, - getConfig: PropTypes.func.isRequired, - setConfig: PropTypes.func.isRequired, - clearIndexPatternsCache: PropTypes.func.isRequired, }; export const TutorialDirectory = injectI18n(TutorialDirectoryUi); diff --git a/src/core_plugins/kibana/public/home/home_ng_wrapper.html b/src/core_plugins/kibana/public/home/home_ng_wrapper.html index e0baaefe64bc0..2a046a0549cb5 100644 --- a/src/core_plugins/kibana/public/home/home_ng_wrapper.html +++ b/src/core_plugins/kibana/public/home/home_ng_wrapper.html @@ -1,8 +1,4 @@ diff --git a/src/core_plugins/kibana/public/home/index.js b/src/core_plugins/kibana/public/home/index.js index d2855a8b8e9cf..663f357a8ba06 100644 --- a/src/core_plugins/kibana/public/home/index.js +++ b/src/core_plugins/kibana/public/home/index.js @@ -37,18 +37,11 @@ function getRoute() { return { template, controller($scope, config, indexPatterns, Private) { - $scope.addBasePath = chrome.addBasePath; $scope.directories = Private(FeatureCatalogueRegistryProvider).inTitleOrder; $scope.recentlyAccessed = recentlyAccessed.get().map(item => { item.link = chrome.addBasePath(item.link); return item; }); - $scope.getConfig = (...args) => config.get(...args); - $scope.setConfig = (...args) => config.set(...args); - $scope.clearIndexPatternsCache = () => { - const getter = indexPatterns.getIds; - getter.clearCache(); - }; } }; } diff --git a/src/core_plugins/kibana/public/home/kibana_services.js b/src/core_plugins/kibana/public/home/kibana_services.js new file mode 100644 index 0000000000000..fc06a61ae343d --- /dev/null +++ b/src/core_plugins/kibana/public/home/kibana_services.js @@ -0,0 +1,26 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { uiModules } from 'ui/modules'; + +export let indexPatternService; + +uiModules.get('kibana').run(($injector) => { + indexPatternService = $injector.get('indexPatterns'); +}); diff --git a/src/core_plugins/kibana/public/home/sample_data_client.js b/src/core_plugins/kibana/public/home/sample_data_client.js new file mode 100644 index 0000000000000..943eedb290f8c --- /dev/null +++ b/src/core_plugins/kibana/public/home/sample_data_client.js @@ -0,0 +1,53 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { kfetch } from 'ui/kfetch'; +import chrome from 'ui/chrome'; +import { indexPatternService } from './kibana_services'; + +const sampleDataUrl = '/api/sample_data'; + +function clearIndexPatternsCache() { + indexPatternService.getIds.clearCache(); +} + +export async function listSampleDataSets() { + return await kfetch({ method: 'GET', pathname: sampleDataUrl }); +} + +export async function installSampleDataSet(id, sampleDataDefaultIndex) { + await kfetch({ method: 'POST', pathname: `${sampleDataUrl}/${id}` }); + + if (chrome.getUiSettingsClient().isDefault('defaultIndex')) { + chrome.getUiSettingsClient().set('defaultIndex', sampleDataDefaultIndex); + } + + clearIndexPatternsCache(); +} + +export async function uninstallSampleDataSet(id, sampleDataDefaultIndex) { + await kfetch({ method: 'DELETE', pathname: `${sampleDataUrl}/${id}` }); + + if (!chrome.getUiSettingsClient().isDefault('defaultIndex') + && chrome.getUiSettingsClient().get('defaultIndex') === sampleDataDefaultIndex) { + chrome.getUiSettingsClient().set('defaultIndex', null); + } + + clearIndexPatternsCache(); +} diff --git a/src/core_plugins/kibana/public/home/sample_data_resources/ecommerce/dashboard.png b/src/core_plugins/kibana/public/home/sample_data_resources/ecommerce/dashboard.png new file mode 100644 index 0000000000000..9c833e92bee5a Binary files /dev/null and b/src/core_plugins/kibana/public/home/sample_data_resources/ecommerce/dashboard.png differ diff --git a/src/core_plugins/kibana/public/home/sample_data_sets.js b/src/core_plugins/kibana/public/home/sample_data_sets.js deleted file mode 100644 index 84823e1c01fca..0000000000000 --- a/src/core_plugins/kibana/public/home/sample_data_sets.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { kfetch } from 'ui/kfetch'; - -const sampleDataUrl = '/api/sample_data'; - -export async function listSampleDataSets() { - return await kfetch({ method: 'GET', pathname: sampleDataUrl }); -} - -export async function installSampleDataSet(id, defaultIndex, getConfig, setConfig, clearIndexPatternsCache) { - await kfetch({ method: 'POST', pathname: `${sampleDataUrl}/${id}` }); - - const existingDefaultIndex = await getConfig('defaultIndex'); - if (existingDefaultIndex === null) { - await setConfig('defaultIndex', defaultIndex); - } - - clearIndexPatternsCache(); -} - -export async function uninstallSampleDataSet(id, defaultIndex, getConfig, setConfig, clearIndexPatternsCache) { - await kfetch({ method: 'DELETE', pathname: `${sampleDataUrl}/${id}` }); - - const existingDefaultIndex = await getConfig('defaultIndex'); - if (existingDefaultIndex && existingDefaultIndex === defaultIndex) { - await setConfig('defaultIndex', null); - } - - clearIndexPatternsCache(); -} diff --git a/src/core_plugins/kibana/public/home/tutorial_resources/suricata_logs/screenshot.png b/src/core_plugins/kibana/public/home/tutorial_resources/suricata_logs/screenshot.png new file mode 100644 index 0000000000000..68193524d8748 Binary files /dev/null and b/src/core_plugins/kibana/public/home/tutorial_resources/suricata_logs/screenshot.png differ diff --git a/src/core_plugins/kibana/public/home/tutorial_resources/uptime_monitors/screenshot.png b/src/core_plugins/kibana/public/home/tutorial_resources/uptime_monitors/screenshot.png new file mode 100644 index 0000000000000..9983667c83ec2 Binary files /dev/null and b/src/core_plugins/kibana/public/home/tutorial_resources/uptime_monitors/screenshot.png differ diff --git a/src/core_plugins/kibana/public/index.scss b/src/core_plugins/kibana/public/index.scss index 36774e9ae9bc9..390694b0a52c2 100644 --- a/src/core_plugins/kibana/public/index.scss +++ b/src/core_plugins/kibana/public/index.scss @@ -1,5 +1,13 @@ @import 'ui/public/styles/styling_constants'; +@import 'ui/public/query_bar/index'; + +// Context styles +@import './context/index'; + +// Dev tools styles +@import './dev_tools/index'; + // Discover styles @import './discover/index'; @@ -10,10 +18,8 @@ @import './visualize/index'; @import 'ui/public/vis/index'; -// Also import Timelion in case of embedding chart into dashboard -// SASSTODO: Remove once the pipeline imports all compiled CSS files always -@import '../../timelion/public/directives/index'; -@import '../../timelion/public/vis/index'; +// Management styles +@import './management/index'; // Dashboard styles // MUST STAY AT THE BOTTOM BECAUSE OF DARK THEME IMPORTS diff --git a/src/core_plugins/kibana/public/kibana.js b/src/core_plugins/kibana/public/kibana.js index 7daafbf6411a9..ed88791241d13 100644 --- a/src/core_plugins/kibana/public/kibana.js +++ b/src/core_plugins/kibana/public/kibana.js @@ -37,6 +37,7 @@ import 'uiExports/fieldFormatEditors'; import 'uiExports/navbarExtensions'; import 'uiExports/contextMenuActions'; import 'uiExports/managementSections'; +import 'uiExports/indexManagement'; import 'uiExports/devTools'; import 'uiExports/docViews'; import 'uiExports/embeddableFactories'; diff --git a/src/core_plugins/kibana/public/management/_hacks.scss b/src/core_plugins/kibana/public/management/_hacks.scss new file mode 100644 index 0000000000000..7ee656ca90c64 --- /dev/null +++ b/src/core_plugins/kibana/public/management/_hacks.scss @@ -0,0 +1,46 @@ +// SASSTODO: figure out why this is needed +kbn-management-app, +kbn-management-landing, +kbn-management-indices, +kbn-management-indices-edit, +kbn-management-indices-create, +kbn-management-advanced, +kbn-management-objects, +kbn-management-objects-view { + display: block; +} + +// SASSTODO: Remove when Kibana has a proper background color +.tab-account, .tab-management { + background-color: $euiColorEmptyShade; +} + +// SASSTODO: Remove when Kibana has a proper background color +kbn-management-objects, kbn-management-app { + background: $euiColorLightestShade; + min-height: 100vh; +} + +.kbn-management-tab:first-letter { + text-transform: capitalize; +} + +// SASSTODO: Remove when this is replaced with EuiCode +kbn-management-objects-view { + .ace_editor { height: 300px; } +} + +// SASSTODO: These are some dragula settings. +.gu-handle { + cursor: move; + cursor: grab; + cursor: -moz-grab; + cursor: -webkit-grab; +} + +.gu-mirror, +.gu-mirror .gu-handle { + cursor: grabbing; + cursor: -moz-grabbing; + cursor: -webkit-grabbing; +} \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/_management_app.scss b/src/core_plugins/kibana/public/management/_management_app.scss new file mode 100644 index 0000000000000..8fbc3c27dec9d --- /dev/null +++ b/src/core_plugins/kibana/public/management/_management_app.scss @@ -0,0 +1,55 @@ +.mgtPanel { + margin-bottom: $euiSize; + background: $euiColorEmptyShade; +} + +// SASSTODO: Remove when this is replaced by the side nav +.mgtPanel__link { + @include euiFontSizeL; + + line-height: 2; // Give some buffer for when they wrap + + &.mgtPanel__link--disabled { + opacity: $euiColorDarkShade; + cursor: default; + + &:hover, &:visited { + color: $euiColorPrimary; + } + } +} + +// SASSTODO: Remove when this form is replaced by EUI +kbn-management-objects { + form { + margin-bottom: $euiSize; + } + .list-unstyled { + li { + border-bottom: $euiBorderThin; + padding: $euiSizeS; + } + } + .empty { + color: $euiColorDarkShade; + } + + .item { + padding: $euiSizeM; + + .item-title { + margin-left: $euiSizeL; + } + + .actions { + margin-top: $euiSizeXS; + } + } + + .header { + .title, .controls { + padding-right: 1em; + display: inline-block; + } + } +} \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/index.js b/src/core_plugins/kibana/public/management/index.js index e7e99e10cb836..a73a5485653d5 100644 --- a/src/core_plugins/kibana/public/management/index.js +++ b/src/core_plugins/kibana/public/management/index.js @@ -18,7 +18,6 @@ */ import './sections'; -import './styles/main.less'; import 'ui/filters/start_from'; import 'ui/field_editor'; import uiRoutes from 'ui/routes'; diff --git a/src/core_plugins/kibana/public/management/index.scss b/src/core_plugins/kibana/public/management/index.scss new file mode 100644 index 0000000000000..db0e0162832e2 --- /dev/null +++ b/src/core_plugins/kibana/public/management/index.scss @@ -0,0 +1,15 @@ +// This file is imported into src/core_plugings/kibana/publix/index.scss + +// Prefix all styles with "dsh" to avoid conflicts. +// Examples +// mgtChart +// mgtChart__legend +// mgtChart__legend--small +// mgtChart__legend-isLoading + +@import 'hacks'; + +// Core +@import 'management_app'; +@import 'sections/settings/advanced_settings'; +@import 'sections/indices/index'; diff --git a/src/core_plugins/kibana/public/management/landing.html b/src/core_plugins/kibana/public/management/landing.html index 60c01123ac97b..7e0d81e7177a4 100644 --- a/src/core_plugins/kibana/public/management/landing.html +++ b/src/core_plugins/kibana/public/management/landing.html @@ -11,12 +11,10 @@ ng-repeat="section in sections" class="page-row" > -

      +
      -
      +

      {{::section.display}}

      @@ -32,8 +30,8 @@

      > -
      +
      +
      + +
      + - -

      + `; exports[`CreateIndexPatternWizard renders index pattern step when there are indices 1`] = ` -
      -
      - +
      +
      + +
      + -
      + `; exports[`CreateIndexPatternWizard renders the empty state when there are no indices 1`] = ` -
      -
      - +
      +
      + +
      + -
      + `; exports[`CreateIndexPatternWizard renders time field step when step is set to 2 1`] = ` -
      -
      +
      +
      + +
      + - +`; + +exports[`CreateIndexPatternWizard renders when there are no indices but there are remote clusters 1`] = ` + +
      +
      + +
      + -
      + `; exports[`CreateIndexPatternWizard shows system indices even if there are no other indices if the include system indices is toggled 1`] = ` -
      -
      - +
      +
      + +
      + -
      + `; diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/create_index_pattern_wizard.test.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/create_index_pattern_wizard.test.js index 3963f9826871a..e95a5c7fa8448 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/create_index_pattern_wizard.test.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/create_index_pattern_wizard.test.js @@ -21,7 +21,15 @@ import React from 'react'; import { shallow } from 'enzyme'; import { CreateIndexPatternWizard } from '../create_index_pattern_wizard'; - +const mockIndexPatternCreationType = { + getIndexPatternType: () => 'default', + getIndexPatternName: () => 'name', + getIsBeta: () => false, + checkIndicesForErrors: () => false, + getShowSystemIndices: () => false, + renderPrompt: () => {}, + getIndexPatternMappings: () => { return {}; } +}; jest.mock('../components/step_index_pattern', () => ({ StepIndexPattern: 'StepIndexPattern' })); jest.mock('../components/step_time_field', () => ({ StepTimeField: 'StepTimeField' })); jest.mock('../components/header', () => ({ Header: 'Header' })); @@ -34,6 +42,9 @@ jest.mock('../lib/get_indices', () => ({ ]; }, })); +jest.mock('ui/chrome', () => ({ + addBasePath: () => { }, +})); const loadingDataDocUrl = ''; const initialQuery = ''; @@ -44,6 +55,7 @@ const services = { config: {}, changeUrl: () => {}, scopeApply: () => {}, + indexPatternCreationType: mockIndexPatternCreationType, }; describe('CreateIndexPatternWizard', () => { @@ -71,6 +83,26 @@ describe('CreateIndexPatternWizard', () => { component.setState({ isInitiallyLoadingIndices: false, allIndices: [], + remoteClustersExist: false + }); + + await component.update(); + expect(component).toMatchSnapshot(); + }); + + it('renders when there are no indices but there are remote clusters', async () => { + const component = shallow( + + ); + + component.setState({ + isInitiallyLoadingIndices: false, + allIndices: [], + remoteClustersExist: true }); await component.update(); @@ -154,6 +186,7 @@ describe('CreateIndexPatternWizard', () => { cache: { clear } }, changeUrl, + indexPatternCreationType: mockIndexPatternCreationType }} /> ); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/render.test.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/render.test.js index 9ef4a3e38ee9b..dd9ac07c5199e 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/render.test.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__jest__/render.test.js @@ -32,6 +32,7 @@ jest.mock('ui/chrome', () => ({ getUiSettingsClient: () => ({ get: () => '', }), + addBasePath: () => { }, })); const { renderCreateIndexPatternWizard, destroyCreateIndexPatternWizard } = require('../render'); @@ -52,6 +53,7 @@ describe('CreateIndexPatternWizardRender', () => { savedObjectsClient: {}, config: {}, changeUrl: () => {}, + indexPatternCreationType: {}, } ); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/empty_state/__jest__/__snapshots__/empty_state.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/empty_state/__jest__/__snapshots__/empty_state.test.js.snap index 8fae8c92fd817..d95632a2154c8 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/empty_state/__jest__/__snapshots__/empty_state.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/empty_state/__jest__/__snapshots__/empty_state.test.js.snap @@ -21,6 +21,7 @@ exports[`EmptyState should render normally 1`] = ` >

      -

      + + + +

      + + + +

      + Test prompt +
      + + +
      +`; + +exports[`Header should render normally 1`] = ` +
      + +

      + +

      +
      + - - } - onChange={[Function]} - /> + +

      + + + +

      +
      -

      @@ -101,6 +160,7 @@ exports[`Header should render without including system indices 1`] = ` >

      - - - } - onChange={[Function]} - /> - { expect(component).toMatchSnapshot(); }); + + it('should render a different name, prompt, and beta tag if provided', () => { + const component = shallow( +

      {}} + prompt={
      Test prompt
      } + indexPatternName="test index pattern" + isBeta={true} + /> + ); + + expect(component).toMatchSnapshot(); + }); }); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/header/header.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/header/header.js index 0c7ba277ff6ab..cefd6141e63f5 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/header/header.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/header/header.js @@ -17,9 +17,10 @@ * under the License. */ -import React from 'react'; +import React, { Fragment } from 'react'; import { + EuiBetaBadge, EuiSpacer, EuiTitle, EuiFlexGroup, @@ -32,19 +33,30 @@ import { import { FormattedMessage } from '@kbn/i18n/react'; export const Header = ({ + prompt, + indexPatternName, + showSystemIndices, isIncludingSystemIndices, onChangeIncludingSystemIndices, + isBeta, }) => (
      -

      + { isBeta ? ( + + {' '} + + + ) : null }

      -
      @@ -59,18 +71,30 @@ export const Header = ({

      - - } - id="checkboxShowSystemIndices" - checked={isIncludingSystemIndices} - onChange={onChangeIncludingSystemIndices} - /> - + { + showSystemIndices ? ( + + } + id="checkboxShowSystemIndices" + checked={isIncludingSystemIndices} + onChange={onChangeIncludingSystemIndices} + /> + + ) : null + }
      + { + prompt ? ( + + + {prompt} + + ) : null + }
      ); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/loading_state/__jest__/__snapshots__/loading_state.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/loading_state/__jest__/__snapshots__/loading_state.test.js.snap index 7f69067cba07d..81c25fbf46f70 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/loading_state/__jest__/__snapshots__/loading_state.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/loading_state/__jest__/__snapshots__/loading_state.test.js.snap @@ -21,6 +21,7 @@ exports[`LoadingState should render normally 1`] = ` > , |", ] } goToNextStep={[Function]} @@ -16,44 +16,6 @@ Object { onQueryChanged={[Function]} query="?" />, - "i18n": Array [ - Array [ - Object { - "defaultMessage": "An index pattern cannot contain spaces or the characters: {characterList}", - "id": "kbn.management.createIndexPattern.step.invalidCharactersErrorMessage", - }, - Object { - "characterList": "\\\\, /, ?, \\", <, >, |", - }, - ], - Array [ - Object { - "defaultMessage": "An index pattern cannot contain spaces or the characters: {characterList}", - "id": "kbn.management.createIndexPattern.step.invalidCharactersErrorMessage", - }, - Object { - "characterList": "\\\\, /, ?, \\", <, >, |", - }, - ], - Array [ - Object { - "defaultMessage": "An index pattern cannot contain spaces or the characters: {characterList}", - "id": "kbn.management.createIndexPattern.step.invalidCharactersErrorMessage", - }, - Object { - "characterList": "\\\\, /, ?, \\", <, >, |", - }, - ], - Array [ - Object { - "defaultMessage": "An index pattern cannot contain spaces or the characters: {characterList}", - "id": "kbn.management.createIndexPattern.step.invalidCharactersErrorMessage", - }, - Object { - "characterList": "\\\\, /, ?, \\", <, >, |", - }, - ], - ], } `; diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/__jest__/step_index_pattern.test.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/__jest__/step_index_pattern.test.js index 37df9762b54df..6c7deefcc0a45 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/__jest__/step_index_pattern.test.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/__jest__/step_index_pattern.test.js @@ -19,13 +19,18 @@ import React from 'react'; import { StepIndexPatternComponent } from '../step_index_pattern'; -import { shallowWithIntl, intl } from 'test_utils/enzyme_helpers'; +import { shallowWithIntl } from 'test_utils/enzyme_helpers'; import { Header } from '../components/header'; jest.mock('../../../lib/ensure_minimum_time', () => ({ ensureMinimumTime: async (promises) => Array.isArray(promises) ? await Promise.all(promises) : await promises })); - +const mockIndexPatternCreationType = { + getIndexPatternType: () => 'default', + getIndexPatternName: () => 'name', + checkIndicesForErrors: () => false, + getShowSystemIndices: () => false +}; // If we don't mock this, Jest fails with the error `TypeError: Cannot redefine property: prototype // at Function.defineProperties`. jest.mock('ui/index_patterns', () => ({ @@ -36,10 +41,11 @@ jest.mock('ui/chrome', () => ({ getUiSettingsClient: () => ({ get: () => '', }), + addBasePath: () => { }, })); jest.mock('../../../lib/get_indices', () => ({ - getIndices: (service, query) => { + getIndices: (service, indexPatternCreationType, query) => { if (query.startsWith('e')) { return [ { name: 'es' }, @@ -57,7 +63,7 @@ const esService = {}; const savedObjectsClient = { find: () => ({ savedObjects: [] }) }; -const goToNextStep = () => {}; +const goToNextStep = () => { }; const createComponent = props => { return shallowWithIntl( @@ -67,14 +73,13 @@ const createComponent = props => { esService={esService} savedObjectsClient={savedObjectsClient} goToNextStep={goToNextStep} + indexPatternCreationType={mockIndexPatternCreationType} {...props} /> ); }; describe('StepIndexPattern', () => { - afterEach(() => intl.formatMessage.mockClear()); - it('renders the loading state', () => { const component = createComponent(); component.setState({ isLoadingIndices: true }); @@ -103,7 +108,6 @@ describe('StepIndexPattern', () => { component.update(); expect({ component: component.find('[data-test-subj="createIndexPatternStep1Header"]'), - i18n: intl.formatMessage.mock.calls, }).toMatchSnapshot(); }); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/header/__jest__/__snapshots__/header.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/header/__jest__/__snapshots__/header.test.js.snap index 56622bbf677e7..95c6b2f5bafdc 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/header/__jest__/__snapshots__/header.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/header/__jest__/__snapshots__/header.test.js.snap @@ -4,6 +4,7 @@ exports[`Header should mark the input as invalid 1`] = `

      kibana + es + @@ -134,6 +142,10 @@ exports[`IndicesList should change per page 1`] = ` > kibana + @@ -258,6 +270,10 @@ exports[`IndicesList should highlight the query in the matches 1`] = ` bana + es + @@ -377,6 +397,10 @@ exports[`IndicesList should render normally 1`] = ` > kibana + es + @@ -496,6 +524,10 @@ exports[`IndicesList updating props should render all new indices 1`] = ` > kibana + es + kibana + es + kibana + es + kibana + es + kibana + es + diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/indices_list.test.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/indices_list.test.js index f4dfae32a6a32..b958dbbf58122 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/indices_list.test.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/indices_list.test.js @@ -22,8 +22,8 @@ import { IndicesList } from '../indices_list'; import { shallow } from 'enzyme'; const indices = [ - { name: 'kibana' }, - { name: 'es' } + { name: 'kibana', tags: [] }, + { name: 'es', tags: [] } ]; describe('IndicesList', () => { diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/indices_list.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/indices_list.js index c8a1f89b18458..df90abce00e48 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/indices_list.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/indices_list.js @@ -22,6 +22,7 @@ import PropTypes from 'prop-types'; import { PER_PAGE_INCREMENTS } from '../../../../constants'; import { + EuiBadge, EuiFlexGroup, EuiFlexItem, EuiSpacer, @@ -185,6 +186,13 @@ export class IndicesList extends Component { {this.highlightIndexName(index.name, queryWithoutWildcard)} + + {index.tags.map(tag => { + return ( + {tag.name} + ); + })} + ); }); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__jest__/__snapshots__/loading_indices.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__jest__/__snapshots__/loading_indices.test.js.snap index f5ffda2fa08c2..ddad76b12b74f 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__jest__/__snapshots__/loading_indices.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__jest__/__snapshots__/loading_indices.test.js.snap @@ -24,6 +24,7 @@ exports[`LoadingIndices should render normally 1`] = ` > diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.js index a403925f24dd1..772d7ec900ec1 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_index_pattern/components/status_message/status_message.js @@ -35,6 +35,7 @@ export const StatusMessage = ({ }, isIncludingSystemIndices, query, + showSystemIndicies, }) => { let statusIcon; let statusMessage; @@ -58,7 +59,7 @@ export const StatusMessage = ({ ); } - else if (!isIncludingSystemIndices) { + else if (!isIncludingSystemIndices && showSystemIndicies) { statusMessage = ( { - const { esService } = this.props; + const { esService, indexPatternCreationType } = this.props; const { existingIndexPatterns } = this.state; if (existingIndexPatterns.includes(query)) { @@ -104,7 +108,7 @@ export class StepIndexPatternComponent extends Component { this.setState({ isLoadingIndices: true, indexPatternExists: false }); if (query.endsWith('*')) { - const exactMatchedIndices = await ensureMinimumTime(getIndices(esService, query, MAX_SEARCH_SIZE)); + const exactMatchedIndices = await ensureMinimumTime(getIndices(esService, indexPatternCreationType, query, MAX_SEARCH_SIZE)); // If the search changed, discard this state if (query !== this.lastQuery) { return; @@ -117,8 +121,8 @@ export class StepIndexPatternComponent extends Component { partialMatchedIndices, exactMatchedIndices, ] = await ensureMinimumTime([ - getIndices(esService, `${query}*`, MAX_SEARCH_SIZE), - getIndices(esService, query, MAX_SEARCH_SIZE), + getIndices(esService, indexPatternCreationType, `${query}*`, MAX_SEARCH_SIZE), + getIndices(esService, indexPatternCreationType, query, MAX_SEARCH_SIZE), ]); // If the search changed, discard this state @@ -167,6 +171,7 @@ export class StepIndexPatternComponent extends Component { } renderStatusMessage(matchedIndices) { + const { indexPatternCreationType } = this.props; const { query, isLoadingIndices, indexPatternExists, isIncludingSystemIndices } = this.state; if (isLoadingIndices || indexPatternExists) { @@ -176,6 +181,7 @@ export class StepIndexPatternComponent extends Component { return ( @@ -213,44 +219,41 @@ export class StepIndexPatternComponent extends Component { } iconType="help" color="warning" - > -

      - -

      -
      + /> ); } renderHeader({ exactMatchedIndices: indices }) { - const { goToNextStep, intl } = this.props; - const { query, showingIndexPatternQueryErrors, indexPatternExists } = this.state; + const { goToNextStep, indexPatternCreationType, intl } = this.props; + const { query, showingIndexPatternQueryErrors, indexPatternExists, indexPatternName } = this.state; let containsErrors = false; const errors = []; - const characterList = ILLEGAL_CHARACTERS.slice(0, ILLEGAL_CHARACTERS.length - 1).join(', '); + const characterList = this.ILLEGAL_CHARACTERS.slice(0, this.ILLEGAL_CHARACTERS.length - 1).join(', '); + const checkIndices = indexPatternCreationType.checkIndicesForErrors(indices); if (!query || !query.length || query === '.' || query === '..') { // This is an error scenario but do not report an error containsErrors = true; - } - else if (containsIllegalCharacters(query, ILLEGAL_CHARACTERS)) { + } else if (containsIllegalCharacters(query, ILLEGAL_CHARACTERS)) { const errorMessage = intl.formatMessage( { id: 'kbn.management.createIndexPattern.step.invalidCharactersErrorMessage', - defaultMessage: 'An index pattern cannot contain spaces or the characters: {characterList}' + defaultMessage: 'A {indexPatternName} cannot contain spaces or the characters: {characterList}' }, - { characterList }); + { characterList, indexPatternName } + ); errors.push(errorMessage); containsErrors = true; + } else if (checkIndices) { + errors.push(...checkIndices); + containsErrors = true; } const isInputInvalid = showingIndexPatternQueryErrors && containsErrors && errors.length > 0; diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/__jest__/__snapshots__/step_time_field.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/__jest__/__snapshots__/step_time_field.test.js.snap index 78b941d09c129..98f052372b81e 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/__jest__/__snapshots__/step_time_field.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/__jest__/__snapshots__/step_time_field.test.js.snap @@ -43,6 +43,7 @@ exports[`StepTimeField should render a loading state when creating the index pat >
      ({ ActionButtons: 'ActionButtons jest.mock('../../../lib/extract_time_fields', () => ({ extractTimeFields: fields => fields, })); +jest.mock('ui/chrome', () => ({ + addBasePath: () => { }, +})); +const mockIndexPatternCreationType = { + getIndexPatternType: () => 'default', + getIndexPatternName: () => 'name' +}; const noop = () => {}; const indexPatternsService = { fieldsFetcher: { @@ -45,6 +52,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -58,6 +66,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -78,6 +87,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -100,6 +110,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -128,6 +139,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -151,6 +163,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -174,6 +187,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -189,6 +203,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); @@ -207,6 +222,7 @@ describe('StepTimeField', () => { indexPatternsService={indexPatternsService} goToPreviousStep={noop} createIndexPattern={noop} + indexPatternCreationType={mockIndexPatternCreationType} /> ); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.js index 9ad692baf0e94..3126dcf5430f6 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/advanced_options/advanced_options.js @@ -61,17 +61,15 @@ export const AdvancedOptionsComponent = ({ { isVisible ? - } + label={} + helpText={} >

      ki* , + "indexPatternName": undefined, } } /> diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/header/header.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/header/header.js index 1ccaf90f66484..67e8053eb6bbd 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/header/header.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/header/header.js @@ -29,6 +29,7 @@ import { FormattedMessage } from '@kbn/i18n/react'; export const Header = ({ indexPattern, + indexPatternName, }) => (
      @@ -43,8 +44,11 @@ export const Header = ({ {indexPattern} }} + defaultMessage="You've defined {indexPattern} as your {indexPatternName}. Now you can specify some settings before we create it." + values={{ + indexPattern: {indexPattern}, + indexPatternName, + }} />
      diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/time_field/__jest__/__snapshots__/time_field.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/time_field/__jest__/__snapshots__/time_field.test.js.snap index 03fee7dd7278d..1014cf86962de 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/time_field/__jest__/__snapshots__/time_field.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/components/step_time_field/components/time_field/__jest__/__snapshots__/time_field.test.js.snap @@ -260,6 +260,7 @@ exports[`TimeField should render something if hiding time field 1`] = `

      { const { indexPatternsService, indexPattern } = this.props; + const { getFetchForWildcardOptions } = this.props.indexPatternCreationType; this.setState({ isFetchingTimeFields: true }); - const fields = await ensureMinimumTime(indexPatternsService.fieldsFetcher.fetchForWildcard(indexPattern)); + const fields = await ensureMinimumTime( + indexPatternsService.fieldsFetcher.fetchForWildcard(indexPattern, getFetchForWildcardOptions()) + ); const timeFields = extractTimeFields(fields); this.setState({ timeFields, isFetchingTimeFields: false }); @@ -113,6 +124,7 @@ export class StepTimeFieldComponent extends Component { indexPatternId, isCreating, isFetchingTimeFields, + indexPatternName, } = this.state; if (isCreating) { @@ -156,8 +168,11 @@ export class StepTimeFieldComponent extends Component { return ( -

      - +
      + { - this.setState({ allIndices: [], isInitiallyLoadingIndices: true }); + catchAndWarn = async (asyncFn, errorValue, errorMsg) => { + try { + return await asyncFn; + } catch (errors) { + this.setState(prevState => ({ + toasts: prevState.toasts.concat([{ + title: errorMsg, + id: errorMsg, + color: 'warning', + iconType: 'alert', + }]) + })); + return errorValue; + } + }; + + fetchData = async () => { const { services } = this.props; - const allIndices = await ensureMinimumTime(getIndices(services.es, `*`, MAX_SEARCH_SIZE)); - this.setState({ allIndices, isInitiallyLoadingIndices: false }); + + this.setState({ + allIndices: [], + isInitiallyLoadingIndices: true, + remoteClustersExist: false + }); + + const indicesFailMsg = (); + + const clustersFailMsg = (); + + const [allIndices, remoteClusters] = await ensureMinimumTime([ + this.catchAndWarn(getIndices(services.es, this.indexPatternCreationType, `*`, MAX_SEARCH_SIZE), [], indicesFailMsg), + this.catchAndWarn(getRemoteClusters(services.$http), [], clustersFailMsg) + ]); + + this.setState({ + allIndices, + isInitiallyLoadingIndices: false, + remoteClustersExist: remoteClusters.length !== 0 + }); } createIndexPattern = async (timeFieldName, indexPatternId) => { @@ -74,6 +126,7 @@ export class CreateIndexPatternWizard extends Component { id: indexPatternId, title: indexPattern, timeFieldName, + ...this.indexPatternCreationType.getIndexPatternMappings() }); const createdId = await emptyPattern.create(); @@ -105,8 +158,12 @@ export class CreateIndexPatternWizard extends Component { return (
      ); } @@ -118,6 +175,7 @@ export class CreateIndexPatternWizard extends Component { isIncludingSystemIndices, step, indexPattern, + remoteClustersExist } = this.state; if (isInitiallyLoadingIndices) { @@ -125,8 +183,10 @@ export class CreateIndexPatternWizard extends Component { } const hasDataIndices = allIndices.some(({ name }) => !name.startsWith('.')); - if (!hasDataIndices && !isIncludingSystemIndices) { - return ; + if (!hasDataIndices && + !isIncludingSystemIndices && + !remoteClustersExist) { + return ; } if (step === 1) { @@ -138,6 +198,7 @@ export class CreateIndexPatternWizard extends Component { isIncludingSystemIndices={isIncludingSystemIndices} esService={services.es} savedObjectsClient={services.savedObjectsClient} + indexPatternCreationType={this.indexPatternCreationType} goToNextStep={this.goToTimeFieldStep} /> ); @@ -151,6 +212,7 @@ export class CreateIndexPatternWizard extends Component { indexPatternsService={services.indexPatterns} goToPreviousStep={this.goToIndexPatternStep} createIndexPattern={this.createIndexPattern} + indexPatternCreationType={this.indexPatternCreationType} /> ); } @@ -158,15 +220,28 @@ export class CreateIndexPatternWizard extends Component { return null; } + removeToast = (removedToast) => { + this.setState(prevState => ({ + toasts: prevState.toasts.filter(toast => toast.id !== removedToast.id), + })); + }; + render() { const header = this.renderHeader(); const content = this.renderContent(); return ( -
      - {header} - {content} -
      + +
      + {header} + {content} +
      + +
      ); } } diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/index.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/index.js index 2b5c3987af420..0fc80ee769b52 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/index.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/index.js @@ -21,6 +21,7 @@ import { SavedObjectsClientProvider } from 'ui/saved_objects'; import uiRoutes from 'ui/routes'; import angularTemplate from './angular_template.html'; import 'ui/index_patterns'; +import { IndexPatternCreationFactory } from 'ui/management/index_pattern_creation'; import { renderCreateIndexPatternWizard, destroyCreateIndexPatternWizard } from './render'; @@ -29,13 +30,18 @@ uiRoutes.when('/management/kibana/index', { controller: function ($scope, $injector) { // Wait for the directives to execute const kbnUrl = $injector.get('kbnUrl'); + const Private = $injector.get('Private'); $scope.$$postDigest(() => { const $routeParams = $injector.get('$routeParams'); + const indexPatternCreationProvider = Private(IndexPatternCreationFactory)($routeParams.type); + const indexPatternCreationType = indexPatternCreationProvider.getType(); const services = { config: $injector.get('config'), es: $injector.get('es'), indexPatterns: $injector.get('indexPatterns'), - savedObjectsClient: $injector.get('Private')(SavedObjectsClientProvider), + $http: $injector.get('$http'), + savedObjectsClient: Private(SavedObjectsClientProvider), + indexPatternCreationType, changeUrl: url => { $scope.$evalAsync(() => kbnUrl.changePath(url)); }, diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/__jest__/get_indices.test.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/__jest__/get_indices.test.js index f5dcccf6da50b..502111b457332 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/__jest__/get_indices.test.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/__jest__/get_indices.test.js @@ -21,6 +21,15 @@ import { getIndices } from '../get_indices'; import successfulResponse from './api/get_indices.success.json'; import errorResponse from './api/get_indices.error.json'; import exceptionResponse from './api/get_indices.exception.json'; +const mockIndexPatternCreationType = { + getIndexPatternType: () => 'default', + getIndexPatternName: () => 'name', + checkIndicesForErrors: () => false, + getShowSystemIndices: () => false, + renderPrompt: () => {}, + getIndexPatternMappings: () => { return {}; }, + getIndexTags: () => { return []; } +}; describe('getIndices', () => { it('should work in a basic case', async () => { @@ -28,20 +37,20 @@ describe('getIndices', () => { search: () => new Promise((resolve) => resolve(successfulResponse)) }; - const result = await getIndices(es, 'kibana', 1); + const result = await getIndices(es, mockIndexPatternCreationType, 'kibana', 1); expect(result.length).toBe(2); expect(result[0].name).toBe('1'); expect(result[1].name).toBe('2'); }); it('should ignore ccs query-all', async () => { - expect((await getIndices(null, '*:')).length).toBe(0); + expect((await getIndices(null, mockIndexPatternCreationType, '*:')).length).toBe(0); }); it('should ignore a single comma', async () => { - expect((await getIndices(null, ',')).length).toBe(0); - expect((await getIndices(null, ',*')).length).toBe(0); - expect((await getIndices(null, ',foobar')).length).toBe(0); + expect((await getIndices(null, mockIndexPatternCreationType, ',')).length).toBe(0); + expect((await getIndices(null, mockIndexPatternCreationType, ',*')).length).toBe(0); + expect((await getIndices(null, mockIndexPatternCreationType, ',foobar')).length).toBe(0); }); it('should trim the input', async () => { @@ -52,7 +61,7 @@ describe('getIndices', () => { }), }; - await getIndices(es, 'kibana ', 1); + await getIndices(es, mockIndexPatternCreationType, 'kibana ', 1); expect(index).toBe('kibana'); }); @@ -64,7 +73,7 @@ describe('getIndices', () => { }), }; - await getIndices(es, 'kibana', 10); + await getIndices(es, mockIndexPatternCreationType, 'kibana', 10); expect(limit).toBe(10); }); @@ -74,7 +83,7 @@ describe('getIndices', () => { search: () => new Promise((resolve) => resolve(errorResponse)) }; - const result = await getIndices(es, 'kibana', 1); + const result = await getIndices(es, mockIndexPatternCreationType, 'kibana', 1); expect(result.length).toBe(0); }); @@ -83,7 +92,7 @@ describe('getIndices', () => { search: () => { throw new Error('Fail'); } }; - await expect(getIndices(es, 'kibana', 1)).rejects.toThrow(); + await expect(getIndices(es, mockIndexPatternCreationType, 'kibana', 1)).rejects.toThrow(); }); it('should handle index_not_found_exception errors gracefully', async () => { @@ -91,12 +100,12 @@ describe('getIndices', () => { search: () => new Promise((resolve, reject) => reject(exceptionResponse)) }; - const result = await getIndices(es, 'kibana', 1); + const result = await getIndices(es, mockIndexPatternCreationType, 'kibana', 1); expect(result.length).toBe(0); }); it('should throw an exception if no limit is provided', async () => { - await expect(getIndices({}, 'kibana')).rejects.toThrow(); + await expect(getIndices({}, mockIndexPatternCreationType, 'kibana')).rejects.toThrow(); }); }); }); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/get_indices.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/get_indices.js index 7638daf1c5720..099f07a698cbf 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/get_indices.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/get_indices.js @@ -19,7 +19,7 @@ import { get, sortBy } from 'lodash'; -export async function getIndices(es, rawPattern, limit) { +export async function getIndices(es, indexPatternCreationType, rawPattern, limit) { const pattern = rawPattern.trim(); // Searching for `*:` fails for CCS environments. The search request @@ -57,7 +57,7 @@ export async function getIndices(es, rawPattern, limit) { size: limit, } } - } + }, } }; @@ -67,11 +67,18 @@ export async function getIndices(es, rawPattern, limit) { return []; } - return sortBy(response.aggregations.indices.buckets.map(bucket => { - return { - name: bucket.key - }; - }), 'name'); + return sortBy( + response.aggregations.indices.buckets.map(bucket => { + return bucket.key; + }) + .map((indexName) => { + return { + name: indexName, + tags: indexPatternCreationType.getIndexTags(indexName) + }; + }) + , 'name' + ); } catch (err) { const type = get(err, 'body.error.caused_by.type'); diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/get_remote_clusters.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/get_remote_clusters.js new file mode 100644 index 0000000000000..f1cbd48ac1116 --- /dev/null +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/get_remote_clusters.js @@ -0,0 +1,26 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import chrome from 'ui/chrome'; +const apiPrefix = chrome.addBasePath('/api/kibana'); + +export async function getRemoteClusters($http) { + const response = await $http.get(`${apiPrefix}/clusters`); + return response.data; +} diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/index.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/index.js index 0930eb82514e1..edbab7360b433 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/index.js +++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/lib/index.js @@ -28,3 +28,5 @@ export { getMatchedIndices } from './get_matched_indices'; export { containsIllegalCharacters } from './contains_illegal_characters'; export { extractTimeFields } from './extract_time_fields'; + +export { getRemoteClusters } from './get_remote_clusters'; diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.html b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.html index 47dcb7758d731..426a0600663e3 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.html +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.html @@ -3,9 +3,8 @@
      -

      - - - +

      + + + + + +   + + + {{tag.name}}

      +

      diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.js b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.js index 80b1f9895b622..6a436a456d41f 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.js +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_index_pattern.js @@ -27,6 +27,7 @@ import uiRoutes from 'ui/routes'; import { uiModules } from 'ui/modules'; import template from './edit_index_pattern.html'; import { FieldWildcardProvider } from 'ui/field_wildcard'; +import { IndexPatternListFactory } from 'ui/management/index_pattern_list'; import React from 'react'; import { render, unmountComponentAtNode } from 'react-dom'; import { SourceFiltersTable } from './source_filters_table'; @@ -54,7 +55,7 @@ function updateSourceFiltersTable($scope, $state) { filterFilter={$scope.fieldFilter} fieldWildcardMatcher={$scope.fieldWildcardMatcher} onAddOrRemoveFilter={() => { - $scope.editSections = $scope.editSectionsProvider($scope.indexPattern); + $scope.editSections = $scope.editSectionsProvider($scope.indexPattern, $scope.indexPatternListProvider); $scope.refreshFilters(); $scope.$apply(); }} @@ -96,7 +97,7 @@ function updateScriptedFieldsTable($scope, $state) { getRouteHref: (obj, route) => $scope.kbnUrl.getRouteHref(obj, route), }} onRemoveField={() => { - $scope.editSections = $scope.editSectionsProvider($scope.indexPattern); + $scope.editSections = $scope.editSectionsProvider($scope.indexPattern, $scope.indexPatternListProvider); $scope.refreshFilters(); }} /> @@ -135,6 +136,7 @@ function updateIndexedFieldsTable($scope, $state) { $scope.kbnUrl.redirectToRoute(obj, route); $scope.$apply(); }, + getFieldInfo: $scope.getFieldInfo, }} /> , @@ -184,11 +186,15 @@ uiModules.get('apps/management') $scope, $location, $route, config, indexPatterns, Private, AppState, docTitle, confirmModal) { const $state = $scope.state = new AppState(); const { fieldWildcardMatcher } = Private(FieldWildcardProvider); + const indexPatternListProvider = Private(IndexPatternListFactory)(); $scope.fieldWildcardMatcher = fieldWildcardMatcher; $scope.editSectionsProvider = Private(IndicesEditSectionsProvider); $scope.kbnUrl = Private(KbnUrlProvider); $scope.indexPattern = $route.current.locals.indexPattern; + $scope.indexPatternListProvider = indexPatternListProvider; + $scope.indexPattern.tags = indexPatternListProvider.getIndexPatternTags($scope.indexPattern); + $scope.getFieldInfo = indexPatternListProvider.getFieldInfo; docTitle.change($scope.indexPattern.title); const otherPatterns = _.filter($route.current.locals.indexPatterns, pattern => { @@ -196,7 +202,7 @@ uiModules.get('apps/management') }); $scope.$watch('indexPattern.fields', function () { - $scope.editSections = $scope.editSectionsProvider($scope.indexPattern); + $scope.editSections = $scope.editSectionsProvider($scope.indexPattern, indexPatternListProvider); $scope.refreshFilters(); $scope.fields = $scope.indexPattern.getNonScriptedFields(); updateIndexedFieldsTable($scope, $state); diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_sections.js b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_sections.js index 20a8e49c7eee2..c7f53096bfa6e 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_sections.js +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/edit_sections.js @@ -22,7 +22,7 @@ import { i18n } from '@kbn/i18n'; export function IndicesEditSectionsProvider() { - return function (indexPattern) { + return function (indexPattern, indexPatternListProvider) { const fieldCount = _.countBy(indexPattern.fields, function (field) { return (field.scripted) ? 'scripted' : 'indexed'; }); @@ -33,22 +33,28 @@ export function IndicesEditSectionsProvider() { sourceFilters: indexPattern.sourceFilters ? indexPattern.sourceFilters.length : 0, }); - return [ - { - title: i18n.translate('kbn.management.editIndexPattern.tabs.fieldsHeader', { defaultMessage: 'Fields' }), - index: 'indexedFields', - count: fieldCount.indexed - }, - { + const editSections = []; + + editSections.push({ + title: i18n.translate('kbn.management.editIndexPattern.tabs.fieldsHeader', { defaultMessage: 'Fields' }), + index: 'indexedFields', + count: fieldCount.indexed + }); + + if(indexPatternListProvider.areScriptedFieldsEnabled(indexPattern)) { + editSections.push({ title: i18n.translate('kbn.management.editIndexPattern.tabs.scriptedHeader', { defaultMessage: 'Scripted fields' }), index: 'scriptedFields', count: fieldCount.scripted - }, - { - title: i18n.translate('kbn.management.editIndexPattern.tabs.sourceHeader', { defaultMessage: 'Source filters' }), - index: 'sourceFilters', - count: fieldCount.sourceFilters - } - ]; + }); + } + + editSections.push({ + title: i18n.translate('kbn.management.editIndexPattern.tabs.sourceHeader', { defaultMessage: 'Source filters' }), + index: 'sourceFilters', + count: fieldCount.sourceFilters + }); + + return editSections; }; } diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/field_controls.html b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/field_controls.html index c5ab67cb37f2c..c14dcd3f3a8d5 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/field_controls.html +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/field_controls.html @@ -2,7 +2,7 @@ @@ -12,7 +12,7 @@ ng-if="field.scripted" ng-click="remove(field)" class="kuiButton kuiButton--danger kuiButton--small" - aria-label="{{'kbn.management.editIndexPattern.deleteFieldButton' | i18n: { defaultMessage: 'Delete' } }}" + aria-label="{{::'kbn.management.editIndexPattern.deleteFieldButton' | i18n: { defaultMessage: 'Delete' } }}" > diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/index_header/index_header.html b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/index_header/index_header.html index 1b3b4379ec85b..bf61f95d72abd 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/index_header/index_header.html +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/index_header/index_header.html @@ -18,8 +18,8 @@

      diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/__snapshots__/call_outs.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/__snapshots__/call_outs.test.js.snap index d9113e01a783b..b93efb429bed8 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/__snapshots__/call_outs.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/__snapshots__/call_outs.test.js.snap @@ -6,7 +6,13 @@ exports[`CallOuts should render normally 1`] = ` color="danger" iconType="cross" size="m" - title="Deprecation languages in use" + title={ + + } >

      - Painless + , } } diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/call_outs.test.js b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/call_outs.test.js index 0fba18be79cff..2553400cbdd32 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/call_outs.test.js +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/__jest__/call_outs.test.js @@ -18,14 +18,14 @@ */ import React from 'react'; -import { shallowWithIntl } from 'test_utils/enzyme_helpers'; +import { shallow } from 'enzyme'; -import { CallOutsComponent } from '../call_outs'; +import { CallOuts } from '../call_outs'; describe('CallOuts', () => { it('should render normally', async () => { - const component = shallowWithIntl( - @@ -35,8 +35,8 @@ describe('CallOuts', () => { }); it('should render without any call outs', async () => { - const component = shallowWithIntl( - diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.js b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.js index b4ddf87bede12..e4271ec4811f3 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.js +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.js @@ -25,12 +25,11 @@ import { EuiSpacer, } from '@elastic/eui'; -import { injectI18n, FormattedMessage } from '@kbn/i18n/react'; +import { FormattedMessage } from '@kbn/i18n/react'; -export const CallOutsComponent = ({ +export const CallOuts = ({ deprecatedLangsInUse, painlessDocLink, - intl }) => { if (!deprecatedLangsInUse.length) { return null; @@ -39,9 +38,10 @@ export const CallOutsComponent = ({ return (

      } color="danger" iconType="cross" > @@ -54,8 +54,12 @@ export const CallOutsComponent = ({ deprecatedLangsInUse: deprecatedLangsInUse.join(', '), link: ( - Painless - ) + + + ) }} />

      @@ -64,5 +68,3 @@ export const CallOutsComponent = ({
      ); }; - -export const CallOuts = injectI18n(CallOutsComponent); diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/header/__jest__/__snapshots__/header.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/header/__jest__/__snapshots__/header.test.js.snap index 63d31137b9405..67613125b7bb6 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/header/__jest__/__snapshots__/header.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/scripted_fields_table/components/header/__jest__/__snapshots__/header.test.js.snap @@ -16,6 +16,7 @@ exports[`Header should render normally 1`] = ` >

      -

      - - - +
      + + +
      + + + } + confirmButtonText={ + + } + onCancel={[Function]} + onConfirm={[Function]} + title={ + } - saveFilter={[Function]} /> - - - - , - "i18n": Array [ - Array [ - Object { - "defaultMessage": "Delete source filter '{value}'?", - "id": "kbn.management.editIndexPattern.source.deleteSourceFilterLabel", - }, - Object { - "value": "tim*", - }, - ], - Array [ - Object { - "defaultMessage": "Cancel", - "id": "kbn.management.editIndexPattern.source.deleteFilter.cancelButton", - }, - ], - Array [ - Object { - "defaultMessage": "Delete", - "id": "kbn.management.editIndexPattern.source.deleteFilter.deleteButton", - }, - ], - ], -} + + `; exports[`SourceFiltersTable should update a filter 1`] = ` diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/__jest__/source_filters_table.test.js b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/__jest__/source_filters_table.test.js index d6047cb66d4e2..c2cda7f41b74c 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/__jest__/source_filters_table.test.js +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/__jest__/source_filters_table.test.js @@ -18,9 +18,9 @@ */ import React from 'react'; -import { shallowWithIntl, intl } from 'test_utils/enzyme_helpers'; +import { shallow } from 'enzyme'; -import { SourceFiltersTableComponent } from '../source_filters_table'; +import { SourceFiltersTable } from '../source_filters_table'; jest.mock('@elastic/eui', () => ({ EuiButton: 'eui-button', @@ -57,11 +57,9 @@ const indexPattern = { describe('SourceFiltersTable', () => { - afterEach(() => intl.formatMessage.mockClear()); - it('should render normally', async () => { - const component = shallowWithIntl( - {}} /> @@ -71,8 +69,8 @@ describe('SourceFiltersTable', () => { }); it('should filter based on the query bar', async () => { - const component = shallowWithIntl( - {}} /> @@ -83,8 +81,8 @@ describe('SourceFiltersTable', () => { }); it('should should a loading indicator when saving', async () => { - const component = shallowWithIntl( - { }); it('should show a delete modal', async () => { - const component = shallowWithIntl( - { component.instance().startDeleteFilter({ value: 'tim*' }); component.update(); // We are not calling `.setState` directly so we need to re-render - expect({ - component, - i18n: intl.formatMessage.mock.calls, - }).toMatchSnapshot(); + expect(component).toMatchSnapshot(); }); it('should remove a filter', async () => { const save = jest.fn(); - const component = shallowWithIntl( - { it('should add a filter', async () => { const save = jest.fn(); - const component = shallowWithIntl( - { it('should update a filter', async () => { const save = jest.fn(); - const component = shallowWithIntl( - @@ -82,7 +82,7 @@ exports[`AddFilter should render normally 1`] = ` > diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/add_filter/add_filter.js b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/add_filter/add_filter.js index 223f40e1274f6..47084161a484a 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/add_filter/add_filter.js +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/add_filter/add_filter.js @@ -69,7 +69,7 @@ export class AddFilterComponent extends Component { isDisabled={filter.length === 0} onClick={this.onAddFilter} > - + diff --git a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/header/__jest__/__snapshots__/header.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/header/__jest__/__snapshots__/header.test.js.snap index 020b344832aa9..f3e0e3ae9496f 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/header/__jest__/__snapshots__/header.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/indices/edit_index_pattern/source_filters_table/components/header/__jest__/__snapshots__/header.test.js.snap @@ -4,6 +4,7 @@ exports[`Header should render normally 1`] = `

      } onCancel={this.hideDeleteConfirmationModal} onConfirm={this.deleteFilter} - cancelButtonText={intl.formatMessage({ - id: 'kbn.management.editIndexPattern.source.deleteFilter.cancelButton', defaultMessage: 'Cancel' })} - confirmButtonText={intl.formatMessage({ - id: 'kbn.management.editIndexPattern.source.deleteFilter.deleteButton', defaultMessage: 'Delete' })} + cancelButtonText={} + confirmButtonText={} defaultFocusedButton={EUI_MODAL_CONFIRM_BUTTON} /> @@ -204,5 +211,3 @@ export class SourceFiltersTableComponent extends Component { ); } } - -export const SourceFiltersTable = injectI18n(SourceFiltersTableComponent); diff --git a/src/core_plugins/kibana/public/management/sections/indices/index.html b/src/core_plugins/kibana/public/management/sections/indices/index.html index 51251c9af69d8..1c2c5faa6aea8 100644 --- a/src/core_plugins/kibana/public/management/sections/indices/index.html +++ b/src/core_plugins/kibana/public/management/sections/indices/index.html @@ -1,52 +1,13 @@ -

      @@ -78,14 +93,19 @@

      - - Proceed with caution! - +
      -
      - Modifying objects is for advanced users only. Object properties are not validated and invalid objects could cause errors, data loss, or worse. Unless someone with intimate knowledge of the code told you to be in here, you probably shouldn’t be. +
      @@ -143,20 +163,21 @@

      + i18n-id="kbn.management.objects.view.saveButtonLabel" + i18n-default-message="Save { title } Object" + i18n-values="{ title }" + > + i18n-id="kbn.management.objects.view.cancelButtonLabel" + i18n-default-message="Cancel" + >

      diff --git a/src/core_plugins/kibana/public/management/sections/objects/_view.js b/src/core_plugins/kibana/public/management/sections/objects/_view.js index 9c42073983529..86b2e0d5599c2 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/_view.js +++ b/src/core_plugins/kibana/public/management/sections/objects/_view.js @@ -38,7 +38,7 @@ uiRoutes }); uiModules.get('apps/management') - .directive('kbnManagementObjectsView', function (kbnIndex, confirmModal) { + .directive('kbnManagementObjectsView', function (kbnIndex, confirmModal, i18n) { return { restrict: 'E', controller: function ($scope, $injector, $routeParams, $location, $window, $rootScope, Private) { @@ -199,11 +199,17 @@ uiModules.get('apps/management') } const confirmModalOptions = { onConfirm: doDelete, - confirmButtonText: 'Delete', - title: 'Delete saved Kibana object?' + confirmButtonText: i18n('kbn.management.objects.confirmModalOptions.deleteButtonLabel', { + defaultMessage: 'Delete', + }), + title: i18n('kbn.management.objects.confirmModalOptions.modalTitle', { + defaultMessage: 'Delete saved Kibana object?' + }), }; confirmModal( - `You can't recover deleted objects`, + i18n('kbn.management.objects.confirmModalOptions.modalDescription', { + defaultMessage: 'You can\'t recover deleted objects', + }), confirmModalOptions ); }; diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/__jest__/__snapshots__/objects_table.test.js.snap b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/__jest__/__snapshots__/objects_table.test.js.snap index 36cfb413e146f..d714e7506990d 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/__jest__/__snapshots__/objects_table.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/__jest__/__snapshots__/objects_table.test.js.snap @@ -3,15 +3,37 @@ exports[`ObjectsTable delete should show a confirm modal 1`] = ` + } + confirmButtonText={ + + } defaultFocusedButton="confirm" onCancel={[Function]} onConfirm={[Function]} - title="Delete saved objects" + title={ + + } >

      - This action will delete the following saved objects: +

      + } + confirmButtonText={ + + } defaultFocusedButton="confirm" onCancel={[Function]} onConfirm={[Function]} - title="Export 4 objects" + title={ + + } >

      - Select which types to export. The number in parentheses indicates how many of this type are available to export. +

      -

      ({ Header: () => 'Header', @@ -43,15 +45,6 @@ jest.mock('ui/chrome', () => ({ addBasePath: () => '' })); -jest.mock('../../../../indices/create_index_pattern_wizard/lib/ensure_minimum_time', () => ({ - ensureMinimumTime: async promises => { - if (Array.isArray(promises)) { - return await Promise.all(promises); - } - return await promises; - }, -})); - jest.mock('../../../lib/retrieve_and_export_docs', () => ({ retrieveAndExportDocs: jest.fn(), })); @@ -79,6 +72,8 @@ jest.mock('../../../lib/get_relationships', () => ({ getRelationships: jest.fn(), })); +jest.mock('ui/notify', () => ({})); + const allSavedObjects = [ { id: '1', @@ -151,14 +146,27 @@ const defaultProps = { goInApp: () => {}, }; +let addDangerMock; + describe('ObjectsTable', () => { beforeEach(() => { defaultProps.savedObjectsClient.find.mockClear(); + // mock _.debounce to fire immediately with no internal timer + require('lodash').debounce = function (func) { + function debounced(...args) { + return func.apply(this, args); + } + return debounced; + }; + addDangerMock = jest.fn(); + require('ui/notify').toastNotifications = { + addDanger: addDangerMock, + }; }); it('should render normally', async () => { - const component = shallow( - @@ -172,6 +180,28 @@ describe('ObjectsTable', () => { expect(component).toMatchSnapshot(); }); + it('should add danger toast when find fails', async () => { + const savedObjectsClientWithFindError = { + find: () => { + throw new Error('Simulated find error'); + } + }; + const customizedProps = { ...defaultProps, savedObjectsClient: savedObjectsClientWithFindError }; + const component = shallowWithIntl( + + ); + + // Ensure all promises resolve + await new Promise(resolve => process.nextTick(resolve)); + // Ensure the state changes are reflected + component.update(); + + expect(addDangerMock).toHaveBeenCalled(); + }); + describe('export', () => { it('should export selected objects', async () => { const mockSelectedSavedObjects = [ @@ -194,8 +224,8 @@ describe('ObjectsTable', () => { const { retrieveAndExportDocs } = require('../../../lib/retrieve_and_export_docs'); - const component = shallow( - @@ -216,8 +246,8 @@ describe('ObjectsTable', () => { }); it('should allow the user to choose when exporting all', async () => { - const component = shallow( - ); @@ -236,8 +266,8 @@ describe('ObjectsTable', () => { it('should export all', async () => { const { scanAllTypes } = require('../../../lib/scan_all_types'); const { saveToFile } = require('../../../lib/save_to_file'); - const component = shallow( - ); @@ -259,8 +289,8 @@ describe('ObjectsTable', () => { describe('import', () => { it('should show the flyout', async () => { - const component = shallow( - ); @@ -273,12 +303,12 @@ describe('ObjectsTable', () => { component.instance().showImportFlyout(); component.update(); - expect(component.find('Flyout')).toMatchSnapshot(); + expect(component.find(Flyout)).toMatchSnapshot(); }); it('should hide the flyout', async () => { - const component = shallow( - ); @@ -291,7 +321,7 @@ describe('ObjectsTable', () => { component.instance().hideImportFlyout(); component.update(); - expect(component.find('Flyout').length).toBe(0); + expect(component.find(Flyout).length).toBe(0); }); }); @@ -299,8 +329,8 @@ describe('ObjectsTable', () => { it('should fetch relationships', async () => { const { getRelationships } = require('../../../lib/get_relationships'); - const component = shallow( - ); @@ -315,8 +345,8 @@ describe('ObjectsTable', () => { }); it('should show the flyout', async () => { - const component = shallow( - ); @@ -329,15 +359,15 @@ describe('ObjectsTable', () => { component.instance().onShowRelationships('1', 'search', 'MySearch'); component.update(); - expect(component.find('Relationships')).toMatchSnapshot(); + expect(component.find(Relationships)).toMatchSnapshot(); expect(component.state('relationshipId')).toBe('1'); expect(component.state('relationshipType')).toBe('search'); expect(component.state('relationshipTitle')).toBe('MySearch'); }); it('should hide the flyout', async () => { - const component = shallow( - ); @@ -350,7 +380,7 @@ describe('ObjectsTable', () => { component.instance().onHideRelationships(); component.update(); - expect(component.find('Relationships').length).toBe(0); + expect(component.find(Relationships).length).toBe(0); expect(component.state('relationshipId')).toBe(undefined); expect(component.state('relationshipType')).toBe(undefined); expect(component.state('relationshipTitle')).toBe(undefined); @@ -359,8 +389,8 @@ describe('ObjectsTable', () => { describe('delete', () => { it('should show a confirm modal', async () => { - const component = shallow( - ); @@ -403,8 +433,8 @@ describe('ObjectsTable', () => { delete: jest.fn(), }; - const component = shallow( - diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/__snapshots__/flyout.test.js.snap b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/__snapshots__/flyout.test.js.snap index 3464cbb2acba2..b9c44e519fbeb 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/__snapshots__/flyout.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/__snapshots__/flyout.test.js.snap @@ -14,9 +14,14 @@ exports[`Flyout conflicts should allow conflict resolution 1`] = ` >

      - Import saved objects +

      @@ -27,20 +32,34 @@ exports[`Flyout conflicts should allow conflict resolution 1`] = ` color="warning" iconType="help" size="m" - title="Index Pattern Conflicts" + title={ + + } >

      - The following saved objects use index patterns that do not exist. Please select the index patterns you'd like re-associated with them. You can - - - create a new index pattern - - - if necessary. + + + , + } + } + />

      @@ -123,7 +142,11 @@ exports[`Flyout conflicts should allow conflict resolution 1`] = ` size="s" type="button" > - Cancel + - Confirm all changes + @@ -153,7 +180,13 @@ exports[`Flyout conflicts should handle errors 1`] = ` color="danger" iconType="cross" size="m" - title="Sorry, there was an error" + title={ + + } >

      foobar @@ -175,9 +208,14 @@ exports[`Flyout should render import step 1`] = ` >

      - Import saved objects +

      @@ -187,11 +225,23 @@ exports[`Flyout should render import step 1`] = ` describedByIds={Array []} fullWidth={false} hasEmptyLabelSpace={false} - label="Please select a JSON file to import" + label={ + + } > + } onChange={[Function]} /> @@ -203,7 +253,13 @@ exports[`Flyout should render import step 1`] = ` + } name="overwriteAll" onChange={[Function]} /> @@ -231,7 +287,11 @@ exports[`Flyout should render import step 1`] = ` size="s" type="button" > - Cancel + - Import + diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/flyout.test.js b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/flyout.test.js index 68b7d46b18160..15ba70fa93b84 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/flyout.test.js +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/__jest__/flyout.test.js @@ -18,7 +18,7 @@ */ import React from 'react'; -import { shallow } from 'enzyme'; +import { shallowWithIntl } from 'test_utils/enzyme_helpers'; import { Flyout } from '../flyout'; @@ -50,6 +50,8 @@ jest.mock('../../../../../lib/resolve_saved_objects', () => ({ saveObjects: jest.fn(), })); +jest.mock('ui/notify', () => ({})); + const defaultProps = { close: jest.fn(), done: jest.fn(), @@ -66,7 +68,7 @@ const mockFile = { describe('Flyout', () => { it('should render import step', async () => { - const component = shallow(); + const component = shallowWithIntl(); // Ensure all promises resolve await new Promise(resolve => process.nextTick(resolve)); @@ -77,7 +79,7 @@ describe('Flyout', () => { }); it('should toggle the overwrite all control', async () => { - const component = shallow(); + const component = shallowWithIntl(); // Ensure all promises resolve await new Promise(resolve => process.nextTick(resolve)); @@ -90,7 +92,7 @@ describe('Flyout', () => { }); it('should allow picking a file', async () => { - const component = shallow(); + const component = shallowWithIntl(); // Ensure all promises resolve await new Promise(resolve => process.nextTick(resolve)); @@ -104,7 +106,7 @@ describe('Flyout', () => { it('should handle invalid files', async () => { const { importFile } = require('../../../../../lib/import_file'); - const component = shallow(); + const component = shallowWithIntl(); // Ensure all promises resolve await new Promise(resolve => process.nextTick(resolve)); @@ -183,7 +185,7 @@ describe('Flyout', () => { }); it('should figure out conflicts', async () => { - const component = shallow(); + const component = shallowWithIntl(); // Ensure all promises resolve await new Promise(resolve => process.nextTick(resolve)); @@ -226,7 +228,7 @@ describe('Flyout', () => { }); it('should allow conflict resolution', async () => { - const component = shallow(); + const component = shallowWithIntl(); // Ensure all promises resolve await new Promise(resolve => process.nextTick(resolve)); @@ -270,7 +272,7 @@ describe('Flyout', () => { }); it('should handle errors', async () => { - const component = shallow(); + const component = shallowWithIntl(); // Ensure all promises resolve await new Promise(resolve => process.nextTick(resolve)); diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/flyout.js b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/flyout.js index f70177c341039..6610b764589c3 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/flyout.js +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/flyout/flyout.js @@ -50,8 +50,9 @@ import { saveObjects, } from '../../../../lib/resolve_saved_objects'; import { INCLUDED_TYPES } from '../../objects_table'; +import { FormattedMessage, injectI18n } from '@kbn/i18n/react'; -export class Flyout extends Component { +class FlyoutUI extends Component { static propTypes = { close: PropTypes.func.isRequired, done: PropTypes.func.isRequired, @@ -102,7 +103,7 @@ export class Flyout extends Component { }; import = async () => { - const { services, indexPatterns } = this.props; + const { services, indexPatterns, intl } = this.props; const { file, isOverwriteAllChecked } = this.state; this.setState({ isLoading: true, error: undefined }); @@ -114,7 +115,10 @@ export class Flyout extends Component { } catch (e) { this.setState({ isLoading: false, - error: 'The file could not be processed.', + error: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.importFileErrorMessage', + defaultMessage: 'The file could not be processed.', + }), }); return; } @@ -122,7 +126,10 @@ export class Flyout extends Component { if (!Array.isArray(contents)) { this.setState({ isLoading: false, - error: 'Saved objects file format is invalid and cannot be imported.', + error: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.invalidFormatOfImportedFileErrorMessage', + defaultMessage: 'Saved objects file format is invalid and cannot be imported.', + }), }); return; } @@ -211,7 +218,7 @@ export class Flyout extends Component { failedImports } = this.state; - const { services, indexPatterns } = this.props; + const { services, indexPatterns, intl } = this.props; this.setState({ error: undefined, @@ -226,7 +233,12 @@ export class Flyout extends Component { const resolutions = this.resolutions; // Do not Promise.all these calls as the order matters - this.setState({ loadingMessage: 'Resolving conflicts...' }); + this.setState({ + loadingMessage: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.confirmImport.resolvingConflictsLoadingMessage', + defaultMessage: 'Resolving conflicts…', + }), + }); if (resolutions.length) { importCount += await resolveIndexPatternConflicts( resolutions, @@ -234,13 +246,21 @@ export class Flyout extends Component { isOverwriteAllChecked ); } - this.setState({ loadingMessage: 'Saving conflicts...' }); + this.setState({ + loadingMessage: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.confirmImport.savingConflictsLoadingMessage', + defaultMessage: 'Saving conflicts…', + }), + }); importCount += await saveObjects( conflictedSavedObjectsLinkedToSavedSearches, isOverwriteAllChecked ); this.setState({ - loadingMessage: 'Ensure saved searches are linked properly...', + loadingMessage: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.confirmImport.savedSearchAreLinkedProperlyLoadingMessage', + defaultMessage: 'Ensure saved searches are linked properly…', + }), }); importCount += await resolveSavedSearches( conflictedSearchDocs, @@ -249,7 +269,10 @@ export class Flyout extends Component { isOverwriteAllChecked ); this.setState({ - loadingMessage: 'Retrying failed objects...', + loadingMessage: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.confirmImport.retryingFailedObjectsLoadingMessage', + defaultMessage: 'Retrying failed objects…', + }), }); importCount += await saveObjects( failedImports.map(({ obj }) => obj), @@ -293,6 +316,7 @@ export class Flyout extends Component { renderConflicts() { const { conflicts } = this.state; + const { intl } = this.props; if (!conflicts) { return null; @@ -301,22 +325,40 @@ export class Flyout extends Component { const columns = [ { field: 'existingIndexPatternId', - name: 'ID', - description: `ID of the index pattern`, + name: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.renderConflicts.columnIdName', + defaultMessage: 'ID', + }), + description: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.renderConflicts.columnIdDescription', + defaultMessage: 'ID of the index pattern', + }), sortable: true, }, { field: 'list', - name: 'Count', - description: `How many affected objects`, + name: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.renderConflicts.columnCountName', + defaultMessage: 'Count', + }), + description: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.renderConflicts.columnCountDescription', + defaultMessage: 'How many affected objects', + }), render: list => { return {list.length}; }, }, { field: 'list', - name: 'Sample of affected objects', - description: `Sample of affected objects`, + name: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.renderConflicts.columnSampleOfAffectedObjectsName', + defaultMessage: 'Sample of affected objects', + }), + description: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.renderConflicts.columnSampleOfAffectedObjectsDescription', + defaultMessage: 'Sample of affected objects', + }), render: list => { return (
        @@ -327,7 +369,10 @@ export class Flyout extends Component { }, { field: 'existingIndexPatternId', - name: 'New index pattern', + name: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.flyout.renderConflicts.columnNewIndexPatternName', + defaultMessage: 'New index pattern', + }), render: id => { const options = this.state.indexPatterns.map(indexPattern => ({ text: indexPattern.get('title'), @@ -374,7 +419,9 @@ export class Flyout extends Component { return ( + )} color="danger" iconType="cross" > @@ -412,12 +459,18 @@ export class Flyout extends Component { if (failedImports.length && !this.hasConflicts) { return ( + )} color="warning" iconType="help" >

        - Failed to import {failedImports.length} of {importCount + failedImports.length} objects. +

        {failedImports.map(({ error }) => getField(error, 'body.message', error.message || '')).join(' ')} @@ -431,7 +484,12 @@ export class Flyout extends Component { return ( + )} color="primary" /> ); @@ -440,11 +498,22 @@ export class Flyout extends Component { return ( + )} color="success" iconType="check" > -

        Successfully imported {importCount} objects.

        +

        + +

        ); } @@ -455,16 +524,33 @@ export class Flyout extends Component { return ( - + + )} + > + )} onChange={this.setImportFile} /> + )} data-test-subj="importSavedObjectsOverwriteToggle" checked={isOverwriteAllChecked} onChange={this.changeOverwriteAll} @@ -488,7 +574,10 @@ export class Flyout extends Component { fill data-test-subj="importSavedObjectsDoneBtn" > - Done + ); } else if (this.hasConflicts) { @@ -500,7 +589,10 @@ export class Flyout extends Component { isLoading={isLoading} data-test-subj="importSavedObjectsConfirmBtn" > - Confirm all changes + ); } else { @@ -512,7 +604,10 @@ export class Flyout extends Component { isLoading={isLoading} data-test-subj="importSavedObjectsImportBtn" > - Import + ); } @@ -521,7 +616,10 @@ export class Flyout extends Component { - Cancel + {confirmButton} @@ -542,20 +640,32 @@ export class Flyout extends Component { + )} color="warning" iconType="help" >

        - The following saved objects use index patterns that do not exist. - Please select the index patterns you'd like re-associated with - them. You can{' '} - { - - create a new index pattern - - }{' '} - if necessary. + + + + ) + }} + />

        @@ -569,7 +679,12 @@ export class Flyout extends Component { -

        Import saved objects

        +

        + +

        {this.renderSubheader()}
        @@ -584,3 +699,5 @@ export class Flyout extends Component { ); } } + +export const Flyout = injectI18n(FlyoutUI); diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/__jest__/__snapshots__/header.test.js.snap b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/__jest__/__snapshots__/header.test.js.snap index 8404ebc156f4b..ccb4101cb16f0 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/__jest__/__snapshots__/header.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/__jest__/__snapshots__/header.test.js.snap @@ -17,9 +17,14 @@ exports[`Header should render normally 1`] = ` >

        - Saved Objects +

        @@ -49,10 +54,15 @@ exports[`Header should render normally 1`] = ` size="s" type="button" > - Export - 2 - - objects + - Import + - Refresh +
        @@ -94,13 +112,18 @@ exports[`Header should render normally 1`] = ` />

        - From here you can delete saved objects, such as saved searches. You can also edit the raw data of saved objects. Typically objects are only modified via their associated application, which is probably what you should use instead of this screen. +

        diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/header.js b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/header.js index 2ac10addbd4a2..a901af6413fe5 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/header.js +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/header/header.js @@ -29,6 +29,7 @@ import { EuiTextColor, EuiButtonEmpty, } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export const Header = ({ onExportAll, @@ -40,7 +41,12 @@ export const Header = ({ -

        Saved Objects

        +

        + +

        @@ -53,7 +59,13 @@ export const Header = ({ data-test-subj="exportAllObjects" onClick={onExportAll} > - Export {filteredCount} {filteredCount === 1 ? 'object' : 'objects'} + @@ -63,7 +75,10 @@ export const Header = ({ data-test-subj="importObjects" onClick={onImport} > - Import + @@ -72,7 +87,10 @@ export const Header = ({ iconType="refresh" onClick={onRefresh} > - Refresh +
        @@ -82,10 +100,13 @@ export const Header = ({

        - From here you can delete saved objects, such as saved searches. - You can also edit the raw data of saved objects. - Typically objects are only modified via their associated application, - which is probably what you should use instead of this screen. +

        diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/__snapshots__/relationships.test.js.snap b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/__snapshots__/relationships.test.js.snap index 9f76af78a1000..44b2bbdfe3384 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/__snapshots__/relationships.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/__snapshots__/relationships.test.js.snap @@ -14,6 +14,7 @@ exports[`Relationships should render dashboards normally 1`] = ` >

        + } >

        - Here are some visualizations used on this dashboard. You can - safely delete this dashboard and the visualizations will still - work properly. +

        @@ -65,8 +74,8 @@ exports[`Relationships should render dashboards normally 1`] = ` columns={ Array [ Object { - "name": "Type", "render": [Function], + "width": 24, }, Object { "field": "title", @@ -120,6 +129,7 @@ exports[`Relationships should render errors 1`] = ` >

        + } > foo @@ -164,6 +180,7 @@ exports[`Relationships should render index patterns normally 1`] = ` >

        - - - - -

        - Here are some saved searches that use this index pattern. If - you delete this index pattern, these saved searches will not - longer work properly. -

        -
        -
        - -
        - - - -

        - Here are some visualizations that use this index pattern. If - you delete this index pattern, these visualizations will not - longer work properly. -

        -
        -
        - -
        -
        +
        `; @@ -326,6 +221,7 @@ exports[`Relationships should render searches normally 1`] = ` >

        + } >

        - Here is the index pattern tied to this saved search. +

        @@ -375,8 +281,8 @@ exports[`Relationships should render searches normally 1`] = ` columns={ Array [ Object { - "name": "Type", "render": [Function], + "width": 24, }, Object { "field": "title", @@ -421,12 +327,20 @@ exports[`Relationships should render searches normally 1`] = ` + } >

        - Here are some visualizations that use this saved search. If - you delete this saved search, these visualizations will not - longer work properly. +

        @@ -434,8 +348,8 @@ exports[`Relationships should render searches normally 1`] = ` columns={ Array [ Object { - "name": "Type", "render": [Function], + "width": 24, }, Object { "field": "title", @@ -486,6 +400,7 @@ exports[`Relationships should render visualizations normally 1`] = ` >

        + } >

        - Here are some dashboards which contain this visualization. If - you delete this visualization, these dashboards will no longer - show them. +

        @@ -537,8 +460,8 @@ exports[`Relationships should render visualizations normally 1`] = ` columns={ Array [ Object { - "name": "Type", "render": [Function], + "width": 24, }, Object { "field": "title", diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/relationships.test.js b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/relationships.test.js index 6e1e591fa9a9b..9eb269ea46440 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/relationships.test.js +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/__jest__/relationships.test.js @@ -18,7 +18,7 @@ */ import React from 'react'; -import { shallow } from 'enzyme'; +import { shallowWithIntl } from 'test_utils/enzyme_helpers'; jest.mock('ui/errors', () => ({ SavedObjectNotFound: class SavedObjectNotFound extends Error { @@ -62,8 +62,8 @@ describe('Relationships', () => { close: jest.fn(), }; - const component = shallow( - ); @@ -102,8 +102,8 @@ describe('Relationships', () => { close: jest.fn(), }; - const component = shallow( - ); @@ -140,8 +140,8 @@ describe('Relationships', () => { close: jest.fn(), }; - const component = shallow( - ); @@ -178,8 +178,8 @@ describe('Relationships', () => { close: jest.fn(), }; - const component = shallow( - ); @@ -209,8 +209,8 @@ describe('Relationships', () => { close: jest.fn(), }; - const component = shallow( - ); diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/relationships.js b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/relationships.js index 708a260ebbd43..c73f77d2687c9 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/relationships.js +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/relationships/relationships.js @@ -34,9 +34,10 @@ import { EuiInMemoryTable, EuiToolTip } from '@elastic/eui'; +import { FormattedMessage, injectI18n } from '@kbn/i18n/react'; import { getSavedObjectIcon, getSavedObjectLabel } from '../../../../lib'; -export class Relationships extends Component { +class RelationshipsUI extends Component { static propTypes = { getRelationships: PropTypes.func.isRequired, id: PropTypes.string.isRequired, @@ -88,14 +89,19 @@ export class Relationships extends Component { } return ( - + + )} + color="danger" + > {error} ); } renderRelationships() { - const { getEditUrl, goInApp } = this.props; + const { getEditUrl, goInApp, intl } = this.props; const { relationships, isLoading, error } = this.state; if (error) { @@ -112,48 +118,78 @@ export class Relationships extends Component { if (list.length === 0) { items.push( - No {type} found. + ); } else { // let node; - let calloutTitle = 'Warning'; + let calloutTitle = (); let calloutColor = 'warning'; let calloutText; switch (this.props.type) { case 'dashboard': calloutColor = 'success'; - calloutTitle = 'Dashboard'; - calloutText = `Here are some visualizations used on this dashboard. You can - safely delete this dashboard and the visualizations will still - work properly.`; + calloutTitle = (); + calloutText = (); break; case 'search': if (type === 'visualizations') { - calloutText = `Here are some visualizations that use this saved search. If - you delete this saved search, these visualizations will not - longer work properly.`; + calloutText = (); } else { calloutColor = 'success'; - calloutTitle = 'Saved Search'; - calloutText = `Here is the index pattern tied to this saved search.`; + calloutTitle = (); + calloutText = (); } break; case 'visualization': - calloutText = `Here are some dashboards which contain this visualization. If - you delete this visualization, these dashboards will no longer - show them.`; + calloutText = (); break; case 'index-pattern': if (type === 'visualizations') { - calloutText = `Here are some visualizations that use this index pattern. If - you delete this index pattern, these visualizations will not - longer work properly.`; + calloutText = (); } else if (type === 'searches') { - calloutText = `Here are some saved searches that use this index pattern. If - you delete this index pattern, these saved searches will not - longer work properly.`; + calloutText = (); } break; } @@ -169,7 +205,7 @@ export class Relationships extends Component { items={list} columns={[ { - name: 'Type', + width: 24, render: () => ( ( @@ -193,11 +231,19 @@ export class Relationships extends Component { ), }, { - name: 'Actions', + name: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.relationships.columnActionsName', defaultMessage: 'Actions' + }), actions: [ { - name: 'In app', - description: 'View this saved object within Kibana', + name: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.relationships.columnActions.inAppName', + defaultMessage: 'In app' + }), + description: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.relationships.columnActions.inAppDescription', + defaultMessage: 'View this saved object within Kibana' + }), icon: 'eye', onClick: object => goInApp(object.id, type), }, @@ -240,3 +286,5 @@ export class Relationships extends Component { ); } } + +export const Relationships = injectI18n(RelationshipsUI); diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap index abd8ee272608f..d3ca955a95a54 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap @@ -3,6 +3,11 @@ exports[`Table should render normally 1`] = ` - Delete + , - Export + , ] } diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/table.test.js b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/table.test.js index 7a6d9f8296586..1228667a647f5 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/table.test.js +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/table.test.js @@ -18,7 +18,9 @@ */ import React from 'react'; -import { shallow } from 'enzyme'; +import { shallowWithIntl, mountWithIntl } from 'test_utils/enzyme_helpers'; +import { findTestSubject } from '@elastic/eui/lib/test'; +import { keyCodes } from '@elastic/eui/lib/services'; jest.mock('ui/errors', () => ({ SavedObjectNotFound: class SavedObjectNotFound extends Error { @@ -39,37 +41,62 @@ jest.mock('ui/chrome', () => ({ import { Table } from '../table'; +const defaultProps = { + selectedSavedObjects: [1], + selectionConfig: { + onSelectionChange: () => {}, + }, + filterOptions: [{ value: 2 }], + onDelete: () => {}, + onExport: () => {}, + getEditUrl: () => {}, + goInApp: () => {}, + pageIndex: 1, + pageSize: 2, + items: [3], + itemId: 'id', + totalItemCount: 3, + onQueryChange: () => {}, + onTableChange: () => {}, + isSearching: false, + onShowRelationships: () => {}, +}; + describe('Table', () => { it('should render normally', () => { - const props = { - selectedSavedObjects: [1], - selectionConfig: { - onSelectionChange: () => {}, - }, - filterOptions: [{ value: 2 }], - onDelete: () => {}, - onExport: () => {}, - getEditUrl: () => {}, - goInApp: () => {}, + const component = shallowWithIntl( + + ); - pageIndex: 1, - pageSize: 2, - items: [3], - itemId: 'id', - totalItemCount: 3, - onQueryChange: () => {}, - onTableChange: () => {}, - isSearching: false, + expect(component).toMatchSnapshot(); + }); - onShowRelationships: () => {}, + it('should handle query parse error', () => { + const onQueryChangeMock = jest.fn(); + const customizedProps = { + ...defaultProps, + onQueryChange: onQueryChangeMock }; - const component = shallow( -

      ); + const searchBar = findTestSubject(component, 'savedObjectSearchBar'); - expect(component).toMatchSnapshot(); + // Send invalid query + searchBar.simulate('keyup', { keyCode: keyCodes.ENTER, target: { value: '?' } }); + expect(onQueryChangeMock).toHaveBeenCalledTimes(0); + expect(component.state().isSearchTextValid).toBe(false); + + onQueryChangeMock.mockReset(); + + // Send valid query to ensure component can recover from invalid query + searchBar.simulate('keyup', { keyCode: keyCodes.ENTER, target: { value: 'I am valid' } }); + expect(onQueryChangeMock).toHaveBeenCalledTimes(1); + expect(component.state().isSearchTextValid).toBe(true); }); }); diff --git a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/table.js b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/table.js index f9a5dab7fef9b..09ba15cc16b4b 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/table.js +++ b/src/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/table.js @@ -27,11 +27,13 @@ import { EuiIcon, EuiLink, EuiSpacer, - EuiToolTip + EuiToolTip, + EuiFormErrorText } from '@elastic/eui'; import { getSavedObjectLabel, getSavedObjectIcon } from '../../../../lib'; +import { FormattedMessage, injectI18n } from '@kbn/i18n/react'; -export class Table extends PureComponent { +class TableUI extends PureComponent { static propTypes = { selectedSavedObjects: PropTypes.array.isRequired, selectionConfig: PropTypes.shape({ @@ -60,6 +62,27 @@ export class Table extends PureComponent { onShowRelationships: PropTypes.func.isRequired, }; + state = { + isSearchTextValid: true, + parseErrorMessage: null, + } + + onChange = ({ query, error }) => { + if (error) { + this.setState({ + isSearchTextValid: false, + parseErrorMessage: error.message, + }); + return; + } + + this.setState({ + isSearchTextValid: true, + parseErrorMessage: null, + }); + this.props.onQueryChange({ query }); + } + render() { const { pageIndex, @@ -73,11 +96,11 @@ export class Table extends PureComponent { onDelete, onExport, selectedSavedObjects, - onQueryChange, onTableChange, goInApp, getEditUrl, onShowRelationships, + intl, } = this.props; const pagination = { @@ -91,7 +114,7 @@ export class Table extends PureComponent { { type: 'field_value_selection', field: 'type', - name: 'Type', + name: intl.formatMessage({ id: 'kbn.management.objects.objectsTable.table.typeFilterName', defaultMessage: 'Type' }), multiSelect: 'or', options: filterOptions, }, @@ -108,10 +131,13 @@ export class Table extends PureComponent { const columns = [ { field: 'type', - name: 'Type', + name: intl.formatMessage({ id: 'kbn.management.objects.objectsTable.table.columnTypeName', defaultMessage: 'Type' }), width: '50px', align: 'center', - description: `Type of the saved object`, + description: + intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.table.columnTypeDescription', defaultMessage: 'Type of the saved object' + }), sortable: false, render: type => { return ( @@ -130,8 +156,11 @@ export class Table extends PureComponent { }, { field: 'title', - name: 'Title', - description: `Title of the saved object`, + name: intl.formatMessage({ id: 'kbn.management.objects.objectsTable.table.columnTitleName', defaultMessage: 'Title' }), + description: + intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.table.columnTitleDescription', defaultMessage: 'Title of the saved object' + }), dataType: 'string', sortable: false, render: (title, object) => ( @@ -139,20 +168,32 @@ export class Table extends PureComponent { ), }, { - name: 'Actions', + name: intl.formatMessage({ id: 'kbn.management.objects.objectsTable.table.columnActionsName', defaultMessage: 'Actions' }), actions: [ { - name: 'In app', + name: intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.table.columnActions.viewInAppActionName', defaultMessage: 'In app' + }), description: - 'View this saved object within Kibana', + intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.table.columnActions.viewInAppActionDescription', + defaultMessage: 'View this saved object within Kibana' + }), type: 'icon', icon: 'eye', onClick: object => goInApp(object.id, object.type), }, { - name: 'Relationships', + name: + intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.table.columnActions.viewRelationshipsActionName', + defaultMessage: 'Relationships' + }), description: - 'View the relationships this saved object has to other saved objects', + intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.table.columnActions.viewRelationshipsActionDescription', + defaultMessage: 'View the relationships this saved object has to other saved objects' + }), type: 'icon', icon: 'kqlSelector', onClick: object => @@ -162,11 +203,25 @@ export class Table extends PureComponent { }, ]; + let queryParseError; + if (!this.state.isSearchTextValid) { + const parseErrorMsg = intl.formatMessage({ + id: 'kbn.management.objects.objectsTable.searchBar.unableToParseQueryErrorMessage', + defaultMessage: 'Unable to parse query', + }); + queryParseError = ( + + {`${parseErrorMsg}. ${this.state.parseErrorMessage}`} + + ); + } + return ( - Delete + , - Export + , ]} /> + {queryParseError}
      { const { queryText, visibleTypes } = parseQuery(this.state.activeQuery); @@ -150,51 +157,68 @@ export class ObjectsTable extends Component { })); }; - fetchSavedObjects = async () => { - const { savedObjectsClient } = this.props; - const { activeQuery, page, perPage } = this.state; - - this.setState({ isSearching: true }); + fetchSavedObjects = () => { + this.setState({ + isSearching: true, + }, this.debouncedFetch); + } - const { queryText, visibleTypes } = parseQuery(activeQuery); + debouncedFetch = debounce(async () => { + const { savedObjectsClient } = this.props; + const { activeQuery: query, page, perPage } = this.state; + const { queryText, visibleTypes } = parseQuery(query); + const findOptions = { + search: queryText ? `${queryText}*` : undefined, + perPage, + page: page + 1, + fields: ['title', 'id'], + searchFields: ['title'], + type: INCLUDED_TYPES.filter( + type => !visibleTypes || visibleTypes.includes(type) + ), + }; + if (findOptions.type.length > 1) { + findOptions.sortField = 'type'; + } - let savedObjects = []; - let filteredItemCount = 0; + let resp; + try { + resp = await savedObjectsClient.find(findOptions); + } catch (error) { + if (this._isMounted) { + this.setState({ + isSearching: false, + }); + } + toastNotifications.addDanger({ + title: `Unable find saved objects`, + text: `${error}`, + }); + return; + } - const type = INCLUDED_TYPES.filter( - type => !visibleTypes || visibleTypes.includes(type) - ); + if (!this._isMounted) { + return; + } - // TODO: is there a good way to stop existing calls if the input changes? - await ensureMinimumTime( - (async () => { - const filteredSavedObjects = await savedObjectsClient.find({ - search: queryText ? `${queryText}*` : undefined, - perPage, - page: page + 1, - sortField: 'type', - fields: ['title', 'id'], - searchFields: ['title'], - type, - }); + this.setState(({ activeQuery }) => { + // ignore results for old requests + if (activeQuery.text !== query.text) { + return {}; + } - savedObjects = filteredSavedObjects.savedObjects.map(savedObject => ({ + return { + savedObjects: resp.savedObjects.map(savedObject => ({ title: savedObject.attributes.title, type: savedObject.type, id: savedObject.id, icon: getSavedObjectIcon(savedObject.type), - })); - - filteredItemCount = filteredSavedObjects.total; - })() - ); - - this.setState({ - savedObjects, - filteredItemCount, - isSearching: false, + })), + filteredItemCount: resp.total, + isSearching: false, + }; }); - }; + }, 300); refreshData = async () => { await Promise.all([this.fetchSavedObjects(), this.fetchCounts()]); @@ -383,6 +407,7 @@ export class ObjectsTable extends Component { isDeleting, selectedSavedObjects, } = this.state; + const { intl } = this.props; if (!isShowingDeleteConfirmModal) { return null; @@ -406,20 +431,47 @@ export class ObjectsTable extends Component { modal = ( + } onCancel={onCancel} onConfirm={onConfirm} - cancelButtonText="Cancel" - confirmButtonText={isDeleting ? 'Deleting...' : 'Delete'} + cancelButtonText={( + + )} + confirmButtonText={ + isDeleting + ? () + : () + } defaultFocusedButton={EUI_MODAL_CONFIRM_BUTTON} > -

      This action will delete the following saved objects:

      +

      + +

      ( )} onCancel={() => this.setState({ isShowingExportAllOptionsModal: false }) } onConfirm={this.onExportAll} - cancelButtonText="Cancel" - confirmButtonText="Export All" + cancelButtonText={( + + )} + confirmButtonText={( + + )} defaultFocusedButton={EUI_MODAL_CONFIRM_BUTTON} >

      - Select which types to export. The number in parentheses indicates - how many of this type are available to export. +

      - + {this.renderFlyout()} {this.renderRelationships()} {this.renderDeleteConfirmModal()} @@ -560,3 +634,5 @@ export class ObjectsTable extends Component { ); } } + +export const ObjectsTable = injectI18n(ObjectsTableUI); diff --git a/src/core_plugins/kibana/public/management/sections/objects/index.js b/src/core_plugins/kibana/public/management/sections/objects/index.js index b5deddc00e316..6cb8ef88aae7d 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/index.js +++ b/src/core_plugins/kibana/public/management/sections/objects/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { management } from 'ui/management'; import './_view'; import './_objects'; @@ -29,7 +30,9 @@ import { FeatureCatalogueRegistryProvider, FeatureCatalogueCategory } from 'ui/r uiModules.get('apps/management'); management.getSection('kibana').register('objects', { - display: 'Saved Objects', + display: i18n.translate('kbn.management.objects.savedObjectsSectionLabel', { + defaultMessage: 'Saved Objects', + }), order: 10, url: '#/management/kibana/objects' }); @@ -37,8 +40,12 @@ management.getSection('kibana').register('objects', { FeatureCatalogueRegistryProvider.register(() => { return { id: 'saved_objects', - title: 'Saved Objects', - description: 'Import, export, and manage your saved searches, visualizations, and dashboards.', + title: i18n.translate('kbn.management.objects.savedObjectsTitle', { + defaultMessage: 'Saved Objects', + }), + description: i18n.translate('kbn.management.objects.savedObjectsDescription', { + defaultMessage: 'Import, export, and manage your saved searches, visualizations, and dashboards.', + }), icon: 'savedObjectsApp', path: '/app/kibana#/management/kibana/objects', showOnHomePage: true, diff --git a/src/core_plugins/kibana/public/management/sections/objects/lib/resolve_saved_objects.js b/src/core_plugins/kibana/public/management/sections/objects/lib/resolve_saved_objects.js index bf2e91625c26c..952037a8b5374 100644 --- a/src/core_plugins/kibana/public/management/sections/objects/lib/resolve_saved_objects.js +++ b/src/core_plugins/kibana/public/management/sections/objects/lib/resolve_saved_objects.js @@ -18,6 +18,7 @@ */ import { SavedObjectNotFound } from 'ui/errors'; +import { i18n } from '@kbn/i18n'; async function getSavedObject(doc, services) { const service = services.find(service => service.type === doc._type); @@ -36,22 +37,43 @@ function addJsonFieldToIndexPattern(target, sourceString, fieldName, indexName) try { target[fieldName] = JSON.parse(sourceString); } catch (error) { - throw new Error(`Error encountered parsing ${fieldName} for index pattern ${indexName}: ${error.message}`); + throw new Error( + i18n.translate('kbn.management.objects.parsingFieldErrorMessage', { + defaultMessage: 'Error encountered parsing {fieldName} for index pattern {indexName}: {errorMessage}', + values: { + fieldName, + indexName, + errorMessage: error.message, + } + }), + ); } } } async function importIndexPattern(doc, indexPatterns, overwriteAll) { // TODO: consolidate this is the code in create_index_pattern_wizard.js const emptyPattern = await indexPatterns.get(); - const { title, timeFieldName, fields, fieldFormatMap, sourceFilters } = doc._source; + const { + title, + timeFieldName, + fields, + fieldFormatMap, + sourceFilters, + type, + typeMeta, + } = doc._source; const importedIndexPattern = { id: doc._id, title, - timeFieldName + timeFieldName, }; + if (type) { + importedIndexPattern.type = type; + } addJsonFieldToIndexPattern(importedIndexPattern, fields, 'fields', title); addJsonFieldToIndexPattern(importedIndexPattern, fieldFormatMap, 'fieldFormatMap', title); addJsonFieldToIndexPattern(importedIndexPattern, sourceFilters, 'sourceFilters', title); + addJsonFieldToIndexPattern(importedIndexPattern, typeMeta, 'typeMeta', title); Object.assign(emptyPattern, importedIndexPattern); const newId = await emptyPattern.create(true, !overwriteAll); @@ -118,14 +140,11 @@ export async function resolveIndexPatternConflicts( export async function saveObjects(objs, overwriteAll) { let importCount = 0; - await awaitEachItemInParallel( - objs, - async obj => { - if (await saveObject(obj, overwriteAll)) { - importCount++; - } + await awaitEachItemInParallel(objs, async obj => { + if (await saveObject(obj, overwriteAll)) { + importCount++; } - ); + }); return importCount; } @@ -133,12 +152,7 @@ export async function saveObject(obj, overwriteAll) { return await obj.save({ confirmOverwrite: !overwriteAll }); } -export async function resolveSavedSearches( - savedSearches, - services, - indexPatterns, - overwriteAll -) { +export async function resolveSavedSearches(savedSearches, services, indexPatterns, overwriteAll) { let importCount = 0; await awaitEachItemInParallel(savedSearches, async searchDoc => { const obj = await getSavedObject(searchDoc, services); @@ -153,12 +167,7 @@ export async function resolveSavedSearches( return importCount; } -export async function resolveSavedObjects( - savedObjects, - overwriteAll, - services, - indexPatterns -) { +export async function resolveSavedObjects(savedObjects, overwriteAll, services, indexPatterns) { const docTypes = groupByType(savedObjects); // Keep track of how many we actually import because the user @@ -166,19 +175,20 @@ export async function resolveSavedObjects( let importedObjectCount = 0; const failedImports = []; // Start with the index patterns since everything is dependent on them - await awaitEachItemInParallel( - docTypes.indexPatterns, - async indexPatternDoc => { - try { - const importedIndexPatternId = await importIndexPattern(indexPatternDoc, indexPatterns, overwriteAll); - if (importedIndexPatternId) { - importedObjectCount++; - } - } catch (error) { - failedImports.push({ indexPatternDoc, error }); + await awaitEachItemInParallel(docTypes.indexPatterns, async indexPatternDoc => { + try { + const importedIndexPatternId = await importIndexPattern( + indexPatternDoc, + indexPatterns, + overwriteAll + ); + if (importedIndexPatternId) { + importedObjectCount++; } + } catch (error) { + failedImports.push({ indexPatternDoc, error }); } - ); + }); // We want to do the same for saved searches, but we want to keep them separate because they need // to be applied _first_ because other saved objects can be dependent on those saved searches existing diff --git a/src/core_plugins/kibana/public/management/sections/settings/__snapshots__/advanced_settings.test.js.snap b/src/core_plugins/kibana/public/management/sections/settings/__snapshots__/advanced_settings.test.js.snap index 85abe0571d116..ba88292d8d61d 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/__snapshots__/advanced_settings.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/settings/__snapshots__/advanced_settings.test.js.snap @@ -1,36 +1,316 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AdvancedSettings should render normally 1`] = ` -
      - + - - - - - + + + + + + + + + + + + + - - - - - -
      - -
      +
      + + `; exports[`AdvancedSettings should render specific setting if given setting key 1`] = ` -
      - + - - - - - + + + + + + + + + + + + + - - - - - - - -
      + + + `; diff --git a/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.js b/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.js index 7ce4341f59ed8..400626f5ae287 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.js +++ b/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.js @@ -25,6 +25,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiSpacer, + EuiPage, Query, } from '@elastic/eui'; @@ -34,10 +35,16 @@ import { Form } from './components/form'; import { getAriaName, toEditableConfig, DEFAULT_CATEGORY } from './lib'; -import './advanced_settings.less'; -import { registerDefaultComponents, PAGE_TITLE_COMPONENT, PAGE_FOOTER_COMPONENT } from './components/default_component_registry'; +import { + registerDefaultComponents, + PAGE_TITLE_COMPONENT, + PAGE_SUBTITLE_COMPONENT, + PAGE_FOOTER_COMPONENT +} from './components/default_component_registry'; import { getSettingsComponent } from './components/component_registry'; +import { I18nProvider } from '@kbn/i18n/react'; + export class AdvancedSettings extends Component { static propTypes = { config: PropTypes.object.isRequired, @@ -145,36 +152,42 @@ export class AdvancedSettings extends Component { const { filteredSettings, query, footerQueryMatched } = this.state; const PageTitle = getSettingsComponent(PAGE_TITLE_COMPONENT); + const PageSubtitle = getSettingsComponent(PAGE_SUBTITLE_COMPONENT); const PageFooter = getSettingsComponent(PAGE_FOOTER_COMPONENT); return ( -
      - - - - - - + +
      + + + + + + + + + + + + + - - - - - - - -
      + +
      + + ); } } diff --git a/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.less b/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.less deleted file mode 100644 index 5201e5781595a..0000000000000 --- a/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.less +++ /dev/null @@ -1,30 +0,0 @@ -@import (reference) '~ui/styles/variables/colors'; - -.advancedSettings { - padding: 20px; - background: @globalColorLightestGray; - min-height: calc(~"100vh - 70px"); - - > div { - max-width: 1000px; - margin: 0 auto; - } - - .advancedSettings__field { - + * { - margin-top: 24px; - } - - &__wrapper { - width: 720px; - } - - &__actions { - padding-top: 30px; - } - - .euiFormHelpText { - padding-bottom: 0; - } - } -} diff --git a/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.scss b/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.scss new file mode 100644 index 0000000000000..fac9b0e22686c --- /dev/null +++ b/src/core_plugins/kibana/public/management/sections/settings/advanced_settings.scss @@ -0,0 +1,19 @@ +.mgtAdvancedSettings { + padding: $euiSizeL; + background: $euiColorLightestShade; + min-height: calc(100vh - 70px); + + .mgtAdvancedSettings__field { + + * { + margin-top: $euiSize; + } + + &Wrapper { + width: 640px; + } + + &Actions { + padding-top: $euiSizeM; + } + } +} diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/__snapshots__/call_outs.test.js.snap b/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/__snapshots__/call_outs.test.js.snap index 07d2370841f96..e333c95f663fb 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/__snapshots__/call_outs.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/__snapshots__/call_outs.test.js.snap @@ -6,10 +6,20 @@ exports[`CallOuts should render normally 1`] = ` color="warning" iconType="bolt" size="m" - title="Caution: You can break stuff here" + title={ + + } >

      - Be careful in here, these settings are for very advanced users only. Tweaks you make here can break large portions of Kibana. Some of these settings may be undocumented, unsupported or experimental. If a field has a default value, blanking the field will reset it to its default which may be unacceptable given other configuration directives. Deleting a custom setting will permanently remove it from Kibana's config. +

      diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/call_outs.js b/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/call_outs.js index db9735d12fff6..0016023475632 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/call_outs.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/call_outs/call_outs.js @@ -22,22 +22,31 @@ import React from 'react'; import { EuiCallOut, } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export const CallOuts = () => { return (
      + )} color="warning" iconType="bolt" >

      - Be careful in here, these settings are for very advanced users only. - Tweaks you make here can break large portions of Kibana. - Some of these settings may be undocumented, unsupported or experimental. - If a field has a default value, blanking the field will reset it to its default which may be - unacceptable given other configuration directives. - Deleting a custom setting will permanently remove it from Kibana's config. +

      diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/default_component_registry.js b/src/core_plugins/kibana/public/management/sections/settings/components/default_component_registry.js index 221f8c2f82bf8..41979d4bd66a6 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/default_component_registry.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/default_component_registry.js @@ -19,12 +19,15 @@ import { tryRegisterSettingsComponent } from './component_registry'; import { PageTitle } from './page_title'; +import { PageSubtitle } from './page_subtitle'; import { PageFooter } from './page_footer'; export const PAGE_TITLE_COMPONENT = 'advanced_settings_page_title'; +export const PAGE_SUBTITLE_COMPONENT = 'advanced_settings_page_subtitle'; export const PAGE_FOOTER_COMPONENT = 'advanced_settings_page_footer'; export function registerDefaultComponents() { tryRegisterSettingsComponent(PAGE_TITLE_COMPONENT, PageTitle); + tryRegisterSettingsComponent(PAGE_SUBTITLE_COMPONENT, PageSubtitle); tryRegisterSettingsComponent(PAGE_FOOTER_COMPONENT, PageFooter); } \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/field/__snapshots__/field.test.js.snap b/src/core_plugins/kibana/public/management/sections/settings/components/field/__snapshots__/field.test.js.snap index ef827f9ca78d3..8d8a93aad3a71 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/field/__snapshots__/field.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/settings/components/field/__snapshots__/field.test.js.snap @@ -3,7 +3,7 @@ exports[`Field for array setting should render as read only with help text if overridden 1`] = `
      - Default: - - default_value - + + default_value + , + } + } + /> @@ -69,7 +76,11 @@ exports[`Field for array setting should render as read only with help text if ov grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -99,7 +110,7 @@ exports[`Field for array setting should render as read only with help text if ov exports[`Field for array setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -177,7 +194,7 @@ exports[`Field for array setting should render custom setting icon if it is cust exports[`Field for array setting should render default value if there is no user value set 1`] = `
      - Default: - - default_value - + + default_value + , + } + } + /> @@ -321,7 +345,11 @@ exports[`Field for array setting should render user value if there is user value onClick={[Function]} type="button" > - Reset to default +     @@ -354,7 +382,7 @@ exports[`Field for array setting should render user value if there is user value exports[`Field for boolean setting should render as read only with help text if overridden 1`] = `
      - Default: - - true - + + true + , + } + } + /> @@ -420,7 +455,11 @@ exports[`Field for boolean setting should render as read only with help text if grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -448,7 +487,7 @@ exports[`Field for boolean setting should render as read only with help text if exports[`Field for boolean setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -524,7 +569,7 @@ exports[`Field for boolean setting should render custom setting icon if it is cu exports[`Field for boolean setting should render default value if there is no user value set 1`] = `
      - Default: - - true - + + true + , + } + } + /> @@ -666,7 +718,11 @@ exports[`Field for boolean setting should render user value if there is user val onClick={[Function]} type="button" > - Reset to default +     @@ -697,7 +753,7 @@ exports[`Field for boolean setting should render user value if there is user val exports[`Field for image setting should render as read only with help text if overridden 1`] = `
      - Default: - - null - + + null + , + } + } + /> @@ -763,7 +826,11 @@ exports[`Field for image setting should render as read only with help text if ov grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -790,7 +857,7 @@ exports[`Field for image setting should render as read only with help text if ov exports[`Field for image setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -866,7 +939,7 @@ exports[`Field for image setting should render custom setting icon if it is cust exports[`Field for image setting should render default value if there is no user value set 1`] = `
      - Default: - - null - + + null + , + } + } + /> @@ -1008,7 +1088,11 @@ exports[`Field for image setting should render user value if there is user value onClick={[Function]} type="button" > - Reset to default +     @@ -1020,7 +1104,11 @@ exports[`Field for image setting should render user value if there is user value onClick={[Function]} type="button" > - Change image + @@ -1049,7 +1137,7 @@ exports[`Field for image setting should render user value if there is user value exports[`Field for json setting should render as read only with help text if overridden 1`] = `
      - Default: - - {} - + + {} + , + } + } + /> @@ -1119,7 +1214,11 @@ exports[`Field for json setting should render as read only with help text if ove grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -1165,7 +1264,7 @@ exports[`Field for json setting should render as read only with help text if ove exports[`Field for json setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -1259,7 +1364,7 @@ exports[`Field for json setting should render custom setting icon if it is custo exports[`Field for json setting should render default value if there is no user value set 1`] = `
      - Default: - - {} - + + {} + , + } + } + /> @@ -1334,7 +1446,11 @@ exports[`Field for json setting should render default value if there is no user onClick={[Function]} type="button" > - Reset to default +     @@ -1383,7 +1499,7 @@ exports[`Field for json setting should render default value if there is no user exports[`Field for json setting should render user value if there is user value is set 1`] = `
      - Default: - - {} - + + {} + , + } + } + /> @@ -1458,7 +1581,11 @@ exports[`Field for json setting should render user value if there is user value onClick={[Function]} type="button" > - Reset to default +     @@ -1507,7 +1634,7 @@ exports[`Field for json setting should render user value if there is user value exports[`Field for markdown setting should render as read only with help text if overridden 1`] = `
      - Default: - - null - + + null + , + } + } + /> @@ -1573,7 +1707,11 @@ exports[`Field for markdown setting should render as read only with help text if grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -1619,7 +1757,7 @@ exports[`Field for markdown setting should render as read only with help text if exports[`Field for markdown setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -1713,7 +1857,7 @@ exports[`Field for markdown setting should render custom setting icon if it is c exports[`Field for markdown setting should render default value if there is no user value set 1`] = `
      - Default: - - null - + + null + , + } + } + /> @@ -1873,7 +2024,11 @@ exports[`Field for markdown setting should render user value if there is user va onClick={[Function]} type="button" > - Reset to default +     @@ -1922,7 +2077,7 @@ exports[`Field for markdown setting should render user value if there is user va exports[`Field for number setting should render as read only with help text if overridden 1`] = `
      - Default: - - 5 - + + 5 + , + } + } + /> @@ -1988,7 +2150,11 @@ exports[`Field for number setting should render as read only with help text if o grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -2018,7 +2184,7 @@ exports[`Field for number setting should render as read only with help text if o exports[`Field for number setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -2096,7 +2268,7 @@ exports[`Field for number setting should render custom setting icon if it is cus exports[`Field for number setting should render default value if there is no user value set 1`] = `
      - Default: - - 5 - + + 5 + , + } + } + /> @@ -2240,7 +2419,11 @@ exports[`Field for number setting should render user value if there is user valu onClick={[Function]} type="button" > - Reset to default +     @@ -2273,7 +2456,7 @@ exports[`Field for number setting should render user value if there is user valu exports[`Field for select setting should render as read only with help text if overridden 1`] = `
      - Default: - - orange - + + orange + , + } + } + /> @@ -2339,7 +2529,11 @@ exports[`Field for select setting should render as read only with help text if o grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -2386,7 +2580,7 @@ exports[`Field for select setting should render as read only with help text if o exports[`Field for select setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -2481,7 +2681,7 @@ exports[`Field for select setting should render custom setting icon if it is cus exports[`Field for select setting should render default value if there is no user value set 1`] = `
      - Default: - - orange - + + orange + , + } + } + /> @@ -2642,7 +2849,11 @@ exports[`Field for select setting should render user value if there is user valu onClick={[Function]} type="button" > - Reset to default +     @@ -2692,7 +2903,7 @@ exports[`Field for select setting should render user value if there is user valu exports[`Field for string setting should render as read only with help text if overridden 1`] = `
      - Default: - - null - + + null + , + } + } + /> @@ -2758,7 +2976,11 @@ exports[`Field for string setting should render as read only with help text if o grow={true} size="xs" > - This setting is overriden by the Kibana server and can not be changed. + } isInvalid={false} @@ -2788,7 +3010,7 @@ exports[`Field for string setting should render as read only with help text if o exports[`Field for string setting should render custom setting icon if it is custom 1`] = `
      + } type="asterisk" /> @@ -2866,7 +3094,7 @@ exports[`Field for string setting should render custom setting icon if it is cus exports[`Field for string setting should render default value if there is no user value set 1`] = `
      - Default: - - null - + + null + , + } + } + /> @@ -3010,7 +3245,11 @@ exports[`Field for string setting should render user value if there is user valu onClick={[Function]} type="button" > - Reset to default +     diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/field/field.js b/src/core_plugins/kibana/public/management/sections/settings/components/field/field.js index 074445a154e18..54b72c0d2fece 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/field/field.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/field/field.js @@ -49,7 +49,9 @@ import { import { isDefaultValue } from '../../lib'; -export class Field extends PureComponent { +import { FormattedMessage, injectI18n } from '@kbn/i18n/react'; + +class FieldUI extends PureComponent { static propTypes = { setting: PropTypes.object.isRequired, @@ -141,7 +143,11 @@ export class Field extends PureComponent { JSON.parse(newUnsavedValue); } catch (e) { isInvalid = true; - error = 'Invalid JSON syntax'; + error = ( + ); } break; default: @@ -208,12 +214,23 @@ export class Field extends PureComponent { const isInvalid = !!(maxSize && maxSize.length && base64Image.length > maxSize.length); this.setState({ isInvalid, - error: isInvalid ? `Image is too large, maximum size is ${maxSize.description}` : null, + error: isInvalid + ? this.props.intl.formattedMessage({ + id: 'kbn.management.settings.field.imageTooLargeErrorMessage', + defaultMessage: 'Image is too large, maximum size is {maxSizeDescription}' + }, { + maxSizeDescription: maxSize.description + }) : null, changeImage: true, unsavedValue: base64Image, }); } catch (err) { - toastNotifications.addDanger('Image could not be saved'); + toastNotifications.addDanger( + this.props.intl.formatMessage({ + id: 'kbn.management.settings.field.imageChangeErrorMessage', + defaultMessage: 'Image could not be saved' + }) + ); this.cancelChangeImage(); } } @@ -299,7 +316,13 @@ export class Field extends PureComponent { this.cancelChangeImage(); } } catch (e) { - toastNotifications.addDanger(`Unable to save ${name}`); + toastNotifications.addDanger( + this.props.intl.formatMessage({ + id: 'kbn.management.settings.field.saveFieldErrorMessage', + defaultMessage: 'Unable to save {name}' + }, + { name }) + ); } this.setLoading(false); } @@ -312,7 +335,13 @@ export class Field extends PureComponent { this.cancelChangeImage(); this.clearError(); } catch (e) { - toastNotifications.addDanger(`Unable to reset ${name}`); + toastNotifications.addDanger( + this.props.intl.formatMessage({ + id: 'kbn.management.settings.field.resetFieldErrorMessage', + defaultMessage: 'Unable to reset {name}' + }, + { name }) + ); } this.setLoading(false); } @@ -432,7 +461,10 @@ export class Field extends PureComponent { if (setting.isOverridden) { return ( - This setting is overriden by the Kibana server and can not be changed. + ); } @@ -457,7 +489,18 @@ export class Field extends PureComponent {

      {setting.displayName || setting.name} {setting.isCustom ? - + )} + /> : ''}

      ); @@ -499,18 +542,31 @@ export class Field extends PureComponent { {type === 'json' ? ( - Default: - = 500 ? 300 : null} - > - {this.getDisplayedDefaultValue(type, defVal)} - + = 500 ? 300 : null} + > + {this.getDisplayedDefaultValue(type, defVal)} + + ) + }} + /> ) : ( - Default: {this.getDisplayedDefaultValue(type, defVal)} + {this.getDisplayedDefaultValue(type, defVal)}), + }} + /> )} @@ -526,11 +582,20 @@ export class Field extends PureComponent { return ( - Reset to default +     @@ -546,11 +611,20 @@ export class Field extends PureComponent { return ( - Change image + ); @@ -560,33 +634,52 @@ export class Field extends PureComponent { const { ariaName, name } = setting; const { loading, isInvalid, changeImage, savedValue, unsavedValue } = this.state; const isDisabled = loading || setting.isOverridden; + const { intl } = this.props; if (savedValue === unsavedValue && !changeImage) { return; } return ( - + - Save + changeImage ? this.cancelChangeImage() : this.cancelEdit()} disabled={isDisabled} data-test-subj={`advancedSetting-cancelEditField-${name}`} > - Cancel + @@ -599,10 +692,10 @@ export class Field extends PureComponent { const { error, isInvalid } = this.state; return ( - + { describe(`for ${type} setting`, () => { it('should render default value if there is no user value set', async () => { - const component = shallow( - { }); it('should render as read only with help text if overridden', async () => { - const component = shallow( - { }); it('should render user value if there is user value is set', async () => { - const component = shallow( - { }); it('should render custom setting icon if it is custom', async () => { - const component = shallow( - { if(type === 'image') { describe(`for changing ${type} setting`, () => { - const component = mount( - { it('should be able to change value from existing value and save', async () => { const newUserValue = `${userValue}=`; - findTestSubject(component, `advancedSetting-changeImage-${setting.name}`).simulate('click'); await component.instance().onImageChange([newUserValue]); component.update(); findTestSubject(component, `advancedSetting-saveEditField-${setting.name}`).simulate('click'); @@ -268,8 +267,8 @@ describe('Field', () => { }); } else if(type === 'markdown' || type === 'json') { describe(`for changing ${type} setting`, () => { - const component = mount( - { }); } else { describe(`for changing ${type} setting`, () => { - const component = mount( - - No settings found - - (Clear search) - + + + , + } + } + /> `; @@ -34,6 +45,7 @@ exports[`Form should render normally 1`] = ` - Search terms are hiding - 9 - settings - - - (clear search) - - + + + + + , + "settingsCount": 9, + } + } + /> diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/form/form.js b/src/core_plugins/kibana/public/management/sections/settings/components/form/form.js index 8c282e4ce7394..da0b46fdf6c9c 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/form/form.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/form/form.js @@ -32,8 +32,9 @@ import { import { getCategoryName } from '../../lib'; import { Field } from '../field'; +import { FormattedMessage, injectI18n } from '@kbn/i18n/react'; -export class Form extends PureComponent { +class FormUI extends PureComponent { static propTypes = { settings: PropTypes.object.isRequired, @@ -52,11 +53,23 @@ export class Form extends PureComponent { return ( - Search terms are hiding {totalSettings - currentSettings} settings {( - - (clear search) - - )} + + + + + + ), + }} + /> ); @@ -100,7 +113,20 @@ export class Form extends PureComponent { if (this.props.showNoResultsMessage) { return ( - No settings found (Clear search) + + + + ), + }} + /> ); } @@ -130,3 +156,5 @@ export class Form extends PureComponent { ); } } + +export const Form = injectI18n(FormUI); diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/form/form.test.js b/src/core_plugins/kibana/public/management/sections/settings/components/form/form.test.js index fddaae79ec44e..eb0b51a6d9ed6 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/form/form.test.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/form/form.test.js @@ -18,7 +18,7 @@ */ import React from 'react'; -import { shallow } from 'enzyme'; +import { shallowWithIntl } from 'test_utils/enzyme_helpers'; import { Form } from './form'; @@ -75,8 +75,8 @@ const clearQuery = () => { }; describe('Form', () => { it('should render normally', async () => { - const component = shallow( - { }); it('should render no settings message when there are no settings', async () => { - const component = shallow( - { }); it('should not render no settings message when instructed not to', async () => { - const component = shallow( - { it('should render normally', () => { - expect(shallow()).toMatchSnapshot(); + expect(shallowWithIntl()).toMatchSnapshot(); }); }); \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/__snapshots__/page_subtitle.test.js.snap b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/__snapshots__/page_subtitle.test.js.snap new file mode 100644 index 0000000000000..24ec895459038 --- /dev/null +++ b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/__snapshots__/page_subtitle.test.js.snap @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`PageSubtitle should render normally 1`] = `""`; diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/index.js b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/index.js new file mode 100644 index 0000000000000..76b6293b4c267 --- /dev/null +++ b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/index.js @@ -0,0 +1,20 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { PageSubtitle } from './page_subtitle'; diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/page_subtitle.js b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/page_subtitle.js new file mode 100644 index 0000000000000..35485fdc7b492 --- /dev/null +++ b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/page_subtitle.js @@ -0,0 +1,20 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export const PageSubtitle = () => null; \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/page_subtitle.test.js b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/page_subtitle.test.js new file mode 100644 index 0000000000000..cb1e785ac3043 --- /dev/null +++ b/src/core_plugins/kibana/public/management/sections/settings/components/page_subtitle/page_subtitle.test.js @@ -0,0 +1,28 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import React from 'react'; +import { shallowWithIntl } from 'test_utils/enzyme_helpers'; + +import { PageSubtitle } from './page_subtitle'; + +describe('PageSubtitle', () => { + it('should render normally', () => { + expect(shallowWithIntl()).toMatchSnapshot(); + }); +}); \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/page_title/__snapshots__/page_title.test.js.snap b/src/core_plugins/kibana/public/management/sections/settings/components/page_title/__snapshots__/page_title.test.js.snap index f93bd34d9312e..11dd3b48d737c 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/page_title/__snapshots__/page_title.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/settings/components/page_title/__snapshots__/page_title.test.js.snap @@ -3,11 +3,16 @@ exports[`PageTitle should render normally 1`] = `

      - Settings +

      `; diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.js b/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.js index d76cb6bc52856..48407faea8cb3 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.js @@ -21,11 +21,17 @@ import React from 'react'; import { EuiText } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export const PageTitle = () => { return ( -

      Settings

      +

      + +

      ); }; \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.test.js b/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.test.js index 0b3edd71764bb..16fa30cd90c0e 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.test.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/page_title/page_title.test.js @@ -17,12 +17,12 @@ * under the License. */ import React from 'react'; -import { shallow } from 'enzyme'; +import { shallowWithIntl } from 'test_utils/enzyme_helpers'; import { PageTitle } from './page_title'; describe('PageTitle', () => { it('should render normally', () => { - expect(shallow()).toMatchSnapshot(); + expect(shallowWithIntl()).toMatchSnapshot(); }); }); \ No newline at end of file diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/search/__snapshots__/search.test.js.snap b/src/core_plugins/kibana/public/management/sections/settings/components/search/__snapshots__/search.test.js.snap index 230721cbaacf0..cdfc62c5134b8 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/search/__snapshots__/search.test.js.snap +++ b/src/core_plugins/kibana/public/management/sections/settings/components/search/__snapshots__/search.test.js.snap @@ -1,58 +1,61 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Search should render normally 1`] = ` - + + /> + `; diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/search/search.js b/src/core_plugins/kibana/public/management/sections/settings/components/search/search.js index 71275d4db5893..2006839877d5b 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/search/search.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/search/search.js @@ -17,16 +17,18 @@ * under the License. */ -import React, { PureComponent } from 'react'; +import React, { Fragment, PureComponent } from 'react'; import PropTypes from 'prop-types'; +import { injectI18n } from '@kbn/i18n/react'; import { EuiSearchBar, + EuiFormErrorText, } from '@elastic/eui'; import { getCategoryName } from '../../lib'; -export class Search extends PureComponent { +class SearchUI extends PureComponent { static propTypes = { categories: PropTypes.array.isRequired, @@ -45,32 +47,78 @@ export class Search extends PureComponent { }); } + state = { + isSearchTextValid: true, + parseErrorMessage: null, + } + + onChange = ({ query, error }) => { + if (error) { + this.setState({ + isSearchTextValid: false, + parseErrorMessage: error.message, + }); + return; + } + + this.setState({ + isSearchTextValid: true, + parseErrorMessage: null, + }); + this.props.onQueryChange({ query }); + } + render() { - const { query, onQueryChange } = this.props; + const { query, intl } = this.props; const box = { incremental: true, - 'aria-label': 'Search advanced settings' // hack until EuiSearchBar is fixed + 'data-test-subj': 'settingsSearchBar', + 'aria-label': intl.formatMessage({ + id: 'kbn.management.settings.searchBarAriaLabel', + defaultMessage: 'Search advanced settings', + }), // hack until EuiSearchBar is fixed + }; const filters = [ { type: 'field_value_selection', field: 'category', - name: 'Category', + name: intl.formatMessage({ + id: 'kbn.management.settings.categorySearchLabel', + defaultMessage: 'Category', + }), multiSelect: 'or', options: this.categories, } ]; - return ( - + let queryParseError; + if (!this.state.isSearchTextValid) { + const parseErrorMsg = intl.formatMessage({ + id: 'kbn.management.settings.searchBar.unableToParseQueryErrorMessage', + defaultMessage: 'Unable to parse query', + }); + queryParseError = ( + + {`${parseErrorMsg}. ${this.state.parseErrorMessage}`} + + ); + } + return ( + + + {queryParseError} + ); } } + +export const Search = injectI18n(SearchUI); diff --git a/src/core_plugins/kibana/public/management/sections/settings/components/search/search.test.js b/src/core_plugins/kibana/public/management/sections/settings/components/search/search.test.js index a4eadaaa3ed9a..40532605d807a 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/components/search/search.test.js +++ b/src/core_plugins/kibana/public/management/sections/settings/components/search/search.test.js @@ -18,7 +18,9 @@ */ import React from 'react'; -import { shallow, mount } from 'enzyme'; +import { shallowWithIntl, mountWithIntl } from 'test_utils/enzyme_helpers'; +import { findTestSubject } from '@elastic/eui/lib/test'; + import { Query } from '@elastic/eui'; import { Search } from './search'; @@ -29,8 +31,8 @@ const categories = ['general', 'dashboard', 'hiddenCategory', 'x-pack']; describe('Search', () => { it('should render normally', async () => { const onQueryChange = () => {}; - const component = shallow( - { //This test is brittle as it knows about implementation details // (EuiFieldSearch uses onKeyup instead of onChange to handle input) const onQueryChange = jest.fn(); - const component = mount( - ); - component.find('input').simulate('keyup', { target: { value: 'new filter' } }); + findTestSubject(component, 'settingsSearchBar').simulate('keyup', { target: { value: 'new filter' } }); expect(onQueryChange).toHaveBeenCalledTimes(1); }); + + it('should handle query parse error', async () => { + const onQueryChangeMock = jest.fn(); + const component = mountWithIntl( + + ); + + const searchBar = findTestSubject(component, 'settingsSearchBar'); + + // Send invalid query + searchBar.simulate('keyup', { target: { value: '?' } }); + expect(onQueryChangeMock).toHaveBeenCalledTimes(0); + expect(component.state().isSearchTextValid).toBe(false); + + onQueryChangeMock.mockReset(); + + // Send valid query to ensure component can recover from invalid query + searchBar.simulate('keyup', { target: { value: 'dateFormat' } }); + expect(onQueryChangeMock).toHaveBeenCalledTimes(1); + expect(component.state().isSearchTextValid).toBe(true); + }); }); diff --git a/src/core_plugins/kibana/public/management/sections/settings/index.js b/src/core_plugins/kibana/public/management/sections/settings/index.js index b619c2238b495..384aca303dbde 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/index.js +++ b/src/core_plugins/kibana/public/management/sections/settings/index.js @@ -26,6 +26,7 @@ import { FeatureCatalogueRegistryProvider, FeatureCatalogueCategory } from 'ui/r import React from 'react'; import { render, unmountComponentAtNode } from 'react-dom'; import { AdvancedSettings } from './advanced_settings'; +import { i18n } from '@kbn/i18n'; const REACT_ADVANCED_SETTINGS_DOM_ELEMENT_ID = 'reactAdvancedSettings'; @@ -75,7 +76,9 @@ uiModules.get('apps/management') }); management.getSection('kibana').register('settings', { - display: 'Advanced Settings', + display: i18n.translate('kbn.management.settings.sectionLabel', { + defaultMessage: 'Advanced Settings', + }), order: 20, url: '#/management/kibana/settings' }); diff --git a/src/core_plugins/kibana/public/management/sections/settings/lib/get_category_name.js b/src/core_plugins/kibana/public/management/sections/settings/lib/get_category_name.js index d41c4bce089ca..5dc9d8d4ee737 100644 --- a/src/core_plugins/kibana/public/management/sections/settings/lib/get_category_name.js +++ b/src/core_plugins/kibana/public/management/sections/settings/lib/get_category_name.js @@ -18,16 +18,33 @@ */ import { StringUtils } from 'ui/utils/string_utils'; +import { i18n } from '@kbn/i18n'; const names = { - general: 'General', - timelion: 'Timelion', - notifications: 'Notifications', - visualizations: 'Visualizations', - discover: 'Discover', - dashboard: 'Dashboard', - reporting: 'Reporting', - search: 'Search', + general: i18n.translate('kbn.management.settings.categoryNames.generalLabel', { + defaultMessage: 'General', + }), + timelion: i18n.translate('kbn.management.settings.categoryNames.timelionLabel', { + defaultMessage: 'Timelion', + }), + notifications: i18n.translate('kbn.management.settings.categoryNames.notificationsLabel', { + defaultMessage: 'Notifications', + }), + visualizations: i18n.translate('kbn.management.settings.categoryNames.visualizationsLabel', { + defaultMessage: 'Visualizations', + }), + discover: i18n.translate('kbn.management.settings.categoryNames.discoverLabel', { + defaultMessage: 'Discover', + }), + dashboard: i18n.translate('kbn.management.settings.categoryNames.dashboardLabel', { + defaultMessage: 'Dashboard', + }), + reporting: i18n.translate('kbn.management.settings.categoryNames.reportingLabel', { + defaultMessage: 'Reporting', + }), + search: i18n.translate('kbn.management.settings.categoryNames.searchLabel', { + defaultMessage: 'Search', + }), }; export function getCategoryName(category) { diff --git a/src/core_plugins/kibana/public/management/styles/main.less b/src/core_plugins/kibana/public/management/styles/main.less deleted file mode 100644 index 783cd1e9cb630..0000000000000 --- a/src/core_plugins/kibana/public/management/styles/main.less +++ /dev/null @@ -1,228 +0,0 @@ -@import (reference) "~ui/styles/theme"; -@import (reference) "~ui/styles/variables"; - -kbn-management-app, -kbn-management-landing, -kbn-management-indices, -kbn-management-indices-edit, -kbn-management-indices-create, -kbn-management-advanced, -kbn-management-objects, -kbn-management-objects-view { - display: block; -} - -.tab-account { - background-color: #FFFFFF; -} - -.tab-management { - background-color: #FFFFFF; -} - -.kbn-management-tab:first-letter { - text-transform: capitalize; -} - -kbn-management-objects { - background: @globalColorLightestGray; - min-height: 100vh; -} - -kbn-management-app { - li.current-page { - font-size: 1.5em; - margin: 0 10px; - } - - min-height: 100vh; -} - -kbn-management-landing { - .management-panel { - margin-bottom: 10px; - - } - - .management-panel__link { - font-size: 17px; - line-height: 32px; - - &.management-panel__link--disabled { - opacity: 0.5; - cursor: default; - - &:hover, &:visited { - color: @kibanaBlue2; - } - } - } - - /** - * 1. Set icon size. - * 2. Hack the panel title to move to the left a bit. - */ - .management-panel__heading-icon { - width: 20px; /* 1 */ - height: 20px; /* 1 */ - background-position: center; - background-repeat: no-repeat; - background-size: contain; /* 1 */ - margin-right: -3px; /* 2 */ - } - - .management-panel__heading-icon--security { - background-image: url("~ui/icons/security-gray.svg"); - } - - .management-panel__heading-icon--elasticsearch { - background-image: url("~ui/icons/elasticsearch-gray.svg"); - } - - .management-panel__heading-icon--kibana { - background-image: url("~ui/icons/kibana-gray.svg"); - } - - .management-panel__heading-icon--beats { - background-image: url("~ui/icons/beats-gray.svg"); - } - - .management-panel__heading-icon--logstash { - background-image: url("~ui/icons/logstash-gray.svg"); - } - -} - -kbn-management-objects { - form { - margin-bottom: @line-height-computed; - } - .list-unstyled { - li { - border-bottom: 1px solid; - border-bottom-color: @management-objects-list-border; - padding: 8px; - } - } - .empty { - color: @management-objects-empty-color; - } - - .item { - padding: 12px; - - .item-title { - margin-left: 30px; - } - - .actions { - margin-top: -6px; - } - } - - .header { - .title, .controls { - padding-right: 1em; - display: inline-block; - } - } -} - -.managementChangeIndexModal { - width: 800px; - overflow: auto; - max-height: 89vh; -} - -kbn-management-advanced { - // super specific rule to override bootstrap's equally specific rule - // https://github.com/twbs/bootstrap/blob/1f329f8f17aa989eabc6e94bdcab93e69ef0e463/less/tables.less#L35 - .table { - table-layout: fixed; - - tbody > tr > td { - vertical-align: middle; - } - } - - .advancedSettingsTableRowImage { - height: 3em; - width: auto; - } - - .advancedSettingsTableRowActionsCell { - max-width: 300px; - } -} - -kbn-management-objects-view { - .ace_editor { height: 300px; } -} - -.advanced-settings { - overflow-x: scroll; - - table { - width: 100%; - - tr.default td.value { - color: @management-advanced-table-default-color; - } - - td { - font-family: @font-family-monospace; - - &.actions { - width: 150px; - } - } - } -} - -.indices-settings { - i.active { - color: @management-indices-active-color; - } - - tr.field-settings { - .field-popularize { - margin-left: 5px; - display: none; - } - &:hover .field-popularize { - display: inline; - } - } -} - -kbn-management-indices { - .fields { - display: block; - table { - .table-striped() - } - - th:last-child, - td:last-child { - text-align: right; - } - } - - .indexed-fields { - th:first-child, - td:first-child { - width: 35%; - } - } - - .scripted-fields header { - margin: 5px 0; - text-align: right; - } - - p.text-center { - padding-top: 1em; - } -} - -@import "~ui/dragula/gu-dragula.less"; diff --git a/src/core_plugins/kibana/public/visualize/editor/editor.html b/src/core_plugins/kibana/public/visualize/editor/editor.html index cc05d1c48ff3e..c73805e4eb678 100644 --- a/src/core_plugins/kibana/public/visualize/editor/editor.html +++ b/src/core_plugins/kibana/public/visualize/editor/editor.html @@ -40,11 +40,10 @@ - + >
      diff --git a/src/core_plugins/kibana/public/visualize/editor/editor.js b/src/core_plugins/kibana/public/visualize/editor/editor.js index 489391c82705a..5e4ec07ff5e83 100644 --- a/src/core_plugins/kibana/public/visualize/editor/editor.js +++ b/src/core_plugins/kibana/public/visualize/editor/editor.js @@ -39,7 +39,7 @@ import { DashboardConstants } from '../../dashboard/dashboard_constants'; import { VisualizeConstants } from '../visualize_constants'; import { KibanaParsedUrl } from 'ui/url/kibana_parsed_url'; import { absoluteToParsedUrl } from 'ui/url/absolute_to_parsed_url'; -import { migrateLegacyQuery } from 'ui/utils/migrateLegacyQuery'; +import { migrateLegacyQuery } from 'ui/utils/migrate_legacy_query'; import { recentlyAccessed } from 'ui/persisted_log'; import { timefilter } from 'ui/timefilter'; import { getVisualizeLoader } from '../../../../../ui/public/visualize/loader'; @@ -212,13 +212,13 @@ function VisEditor( description: 'Open Inspector for visualization', testId: 'openInspectorButton', disableButton() { - return !vis.hasInspector(); + return !vis.hasInspector || !vis.hasInspector(); }, run() { vis.openInspector().bindToAngularScope($scope); }, tooltip() { - if (!vis.hasInspector()) { + if (!vis.hasInspector || !vis.hasInspector()) { return 'This visualization doesn\'t support any inspectors.'; } } @@ -416,13 +416,15 @@ function VisEditor( } }); return { id }; - }, (err) => { + }, (error) => { + // eslint-disable-next-line + console.error(error); toastNotifications.addDanger({ title: `Error on saving '${savedVis.title}'`, - text: err.message, + text: error.message, 'data-test-subj': 'saveVisualizationError', }); - return { error: err }; + return { error }; }); } diff --git a/src/core_plugins/kibana/public/visualize/embeddable/visualize_embeddable.js b/src/core_plugins/kibana/public/visualize/embeddable/visualize_embeddable.js index fbe4beda7e644..04d731dbd77b0 100644 --- a/src/core_plugins/kibana/public/visualize/embeddable/visualize_embeddable.js +++ b/src/core_plugins/kibana/public/visualize/embeddable/visualize_embeddable.js @@ -46,7 +46,10 @@ export class VisualizeEmbeddable extends Embeddable { }; getInspectorAdapters() { - return this.savedVisualization.vis.API.inspectorAdapters; + if (!this.handler) { + return undefined; + } + return this.handler.inspectorAdapters; } getEmbeddableState() { diff --git a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html index e593546a6b8b7..60d4622862e02 100644 --- a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html +++ b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html @@ -5,11 +5,14 @@
      - Visualize +
      + Visualize +
      diff --git a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js index e31a2cbfb57b7..a6f839a8481c1 100644 --- a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js +++ b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js @@ -22,6 +22,7 @@ import 'ui/pager_control'; import 'ui/pager'; import { uiModules } from 'ui/modules'; import { timefilter } from 'ui/timefilter'; +import { i18n } from '@kbn/i18n'; import { VisualizeListingTable } from './visualize_listing_table'; @@ -34,6 +35,7 @@ export function VisualizeListingController($injector) { const Notifier = $injector.get('Notifier'); const Private = $injector.get('Private'); const config = $injector.get('config'); + const breadcrumbState = $injector.get('breadcrumbState'); timefilter.disableAutoRefreshSelector(); timefilter.disableTimeRangeSelector(); @@ -58,4 +60,11 @@ export function VisualizeListingController($injector) { return visualizationService.delete(selectedIds) .catch(error => notify.error(error)); }; + + breadcrumbState.set([{ + text: i18n.translate('kbn.visualize.visualizeListingBreadcrumbsTitle', { + defaultMessage: 'Visualize', + }) + }]); + config.watch('k7design', (val) => this.showPluginBreadcrumbs = !val); } diff --git a/src/core_plugins/kibana/public/visualize/listing/visualize_listing_table.js b/src/core_plugins/kibana/public/visualize/listing/visualize_listing_table.js index 39af59f46e40e..e1765c58484f7 100644 --- a/src/core_plugins/kibana/public/visualize/listing/visualize_listing_table.js +++ b/src/core_plugins/kibana/public/visualize/listing/visualize_listing_table.js @@ -148,6 +148,7 @@ export class VisualizeListingTable extends Component { ); diff --git a/src/core_plugins/kibana/public/visualize/wizard/step_1.html b/src/core_plugins/kibana/public/visualize/wizard/step_1.html index 0f7e542990d91..ff13e9a755559 100644 --- a/src/core_plugins/kibana/public/visualize/wizard/step_1.html +++ b/src/core_plugins/kibana/public/visualize/wizard/step_1.html @@ -50,6 +50,7 @@

      tooltip="{{ getVisTypeTooltip(type) }}" tooltip-placement="{{ getVisTypeTooltipPosition($parent.$index) }}" aria-describedby="visDescription_{{ ::getVisTypeId(type) }}" + data-test-subj="visType-{{::type.name}}" >
      ({ + getUiSettingDefaults: () => ({ 'search:queryLanguage': { value: 'lucene' } }), +})); + +import { fetch } from './fetch'; + +let callCluster; + +function setupMockCallCluster(optCount, language) { + callCluster = jest.fn((method, params) => { + if ('id' in params && params.id === 'kql-telemetry:kql-telemetry') { + if (optCount === null) { + return Promise.resolve({ + _index: '.kibana_1', + _type: 'doc', + _id: 'kql-telemetry:kql-telemetry', + found: false, + }); + } else { + return Promise.resolve({ + _source: { + 'kql-telemetry': { + ...optCount, + }, + type: 'kql-telemetry', + updated_at: '2018-10-05T20:20:56.258Z', + }, + }); + } + } else if ('body' in params && params.body.query.term.type === 'config') { + if (language === 'missingConfigDoc') { + Promise.resolve({ + hits: { + hits: [], + }, + }); + } else { + return Promise.resolve({ + hits: { + hits: [ + { + _source: { + config: { + 'search:queryLanguage': language, + }, + }, + }, + ], + }, + }); + } + } + }); +} + +describe('makeKQLUsageCollector', () => { + describe('fetch method', () => { + it('should return opt in data from the .kibana/kql-telemetry doc', async () => { + setupMockCallCluster({ optInCount: 1 }, 'kuery'); + const fetchResponse = await fetch(callCluster); + expect(fetchResponse.optInCount).toBe(1); + expect(fetchResponse.optOutCount).toBe(0); + }); + + it('should return the default query language set in advanced settings', async () => { + setupMockCallCluster({ optInCount: 1 }, 'kuery'); + const fetchResponse = await fetch(callCluster); + expect(fetchResponse.defaultQueryLanguage).toBe('kuery'); + }); + + // Indicates the user has modified the setting at some point but the value is currently the default + it('should return the kibana default query language if the config value is null', async () => { + setupMockCallCluster({ optInCount: 1 }, null); + const fetchResponse = await fetch(callCluster); + expect(fetchResponse.defaultQueryLanguage).toBe('lucene'); + }); + + it('should indicate when the default language has never been modified by the user', async () => { + setupMockCallCluster({ optInCount: 1 }, undefined); + const fetchResponse = await fetch(callCluster); + expect(fetchResponse.defaultQueryLanguage).toBe('default-lucene'); + }); + + it('should default to 0 opt in counts if the .kibana/kql-telemetry doc does not exist', async () => { + setupMockCallCluster(null, 'kuery'); + const fetchResponse = await fetch(callCluster); + expect(fetchResponse.optInCount).toBe(0); + expect(fetchResponse.optOutCount).toBe(0); + }); + + it('should default to the kibana default language if the config document does not exist', async () => { + setupMockCallCluster(null, 'missingConfigDoc'); + const fetchResponse = await fetch(callCluster); + expect(fetchResponse.defaultQueryLanguage).toBe('default-lucene'); + }); + }); +}); diff --git a/src/core_plugins/kibana/server/lib/kql_usage_collector/index.js b/src/core_plugins/kibana/server/lib/kql_usage_collector/index.js new file mode 100644 index 0000000000000..ea2979834be3a --- /dev/null +++ b/src/core_plugins/kibana/server/lib/kql_usage_collector/index.js @@ -0,0 +1,20 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { makeKQLUsageCollector } from './make_kql_usage_collector'; diff --git a/src/core_plugins/kibana/server/lib/kql_usage_collector/make_kql_usage_collector.js b/src/core_plugins/kibana/server/lib/kql_usage_collector/make_kql_usage_collector.js new file mode 100644 index 0000000000000..3ceff0fee504a --- /dev/null +++ b/src/core_plugins/kibana/server/lib/kql_usage_collector/make_kql_usage_collector.js @@ -0,0 +1,29 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { fetch } from './fetch'; + +export function makeKQLUsageCollector(server) { + const kqlUsageCollector = server.usage.collectorSet.makeUsageCollector({ + type: 'kql', + fetch, + }); + + server.usage.collectorSet.register(kqlUsageCollector); +} diff --git a/src/core_plugins/kibana/server/lib/kql_usage_collector/make_kql_usage_collector.test.js b/src/core_plugins/kibana/server/lib/kql_usage_collector/make_kql_usage_collector.test.js new file mode 100644 index 0000000000000..7fd19fbcccc65 --- /dev/null +++ b/src/core_plugins/kibana/server/lib/kql_usage_collector/make_kql_usage_collector.test.js @@ -0,0 +1,48 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { makeKQLUsageCollector } from './make_kql_usage_collector'; + +describe('makeKQLUsageCollector', () => { + + let server; + let makeUsageCollectorStub; + let registerStub; + + beforeEach(() => { + makeUsageCollectorStub = jest.fn(); + registerStub = jest.fn(); + server = { + usage: { + collectorSet: { makeUsageCollector: makeUsageCollectorStub, register: registerStub }, + }, + }; + }); + + it('should call collectorSet.register', () => { + makeKQLUsageCollector(server); + expect(registerStub).toHaveBeenCalledTimes(1); + }); + + it('should call makeUsageCollector with type = kql', () => { + makeKQLUsageCollector(server); + expect(makeUsageCollectorStub).toHaveBeenCalledTimes(1); + expect(makeUsageCollectorStub.mock.calls[0][0].type).toBe('kql'); + }); +}); diff --git a/src/core_plugins/kibana/server/routes/api/export/index.js b/src/core_plugins/kibana/server/routes/api/export/index.js index 34f45e9a6b2da..a2469d8f5c5ae 100644 --- a/src/core_plugins/kibana/server/routes/api/export/index.js +++ b/src/core_plugins/kibana/server/routes/api/export/index.js @@ -36,18 +36,18 @@ export function exportApi(server) { tags: ['api'], }, method: ['GET'], - handler: (req, reply) => { + handler: async (req, h) => { const currentDate = moment.utc(); return exportDashboards(req) .then(resp => { const json = JSON.stringify(resp, null, ' '); const filename = `kibana-dashboards.${currentDate.format('YYYY-MM-DD-HH-mm-ss')}.json`; - reply(json) + return h.response(json) .header('Content-Disposition', `attachment; filename="${filename}"`) .header('Content-Type', 'application/json') .header('Content-Length', Buffer.byteLength(json, 'utf8')); }) - .catch(err => reply(Boom.boomify(err, { statusCode: 400 }))); + .catch(err => Boom.boomify(err, { statusCode: 400 })); } }); } diff --git a/src/core_plugins/kibana/server/routes/api/home/register_tutorials.js b/src/core_plugins/kibana/server/routes/api/home/register_tutorials.js index 89f1ff6213a14..861ed1c244d13 100644 --- a/src/core_plugins/kibana/server/routes/api/home/register_tutorials.js +++ b/src/core_plugins/kibana/server/routes/api/home/register_tutorials.js @@ -22,8 +22,8 @@ export function registerTutorials(server) { server.route({ path: '/api/kibana/home/tutorials', method: ['GET'], - handler: async function (req, reply) { - reply(server.getTutorials(req)); + handler: function (req) { + return server.getTutorials(req); } }); } diff --git a/src/core_plugins/kibana/server/routes/api/import/index.js b/src/core_plugins/kibana/server/routes/api/import/index.js index 945bd02059507..c7291798c6d65 100644 --- a/src/core_plugins/kibana/server/routes/api/import/index.js +++ b/src/core_plugins/kibana/server/routes/api/import/index.js @@ -39,10 +39,12 @@ export function importApi(server) { tags: ['api'], }, - handler: (req, reply) => { - return importDashboards(req) - .then((resp) => reply(resp)) - .catch(err => reply(Boom.boomify(err, { statusCode: 400 }))); + handler: async (req) => { + try { + return await importDashboards(req); + } catch (err) { + throw Boom.boomify(err, { statusCode: 400 }); + } } }); } diff --git a/src/core_plugins/kibana/server/routes/api/kql_telemetry/index.js b/src/core_plugins/kibana/server/routes/api/kql_telemetry/index.js new file mode 100644 index 0000000000000..04ce8e807ea20 --- /dev/null +++ b/src/core_plugins/kibana/server/routes/api/kql_telemetry/index.js @@ -0,0 +1,60 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import Joi from 'joi'; +import Boom from 'boom'; + +export function registerKqlTelemetryApi(server) { + server.route({ + path: '/api/kibana/kql_opt_in_telemetry', + method: 'POST', + config: { + validate: { + payload: Joi.object({ + opt_in: Joi.bool().required(), + }), + }, + tags: ['api'], + }, + handler: async function (request) { + const { savedObjects: { getSavedObjectsRepository } } = server; + const { callWithInternalUser } = server.plugins.elasticsearch.getCluster('admin'); + const internalRepository = getSavedObjectsRepository(callWithInternalUser); + + const { + payload: { opt_in: optIn }, + } = request; + + const counterName = optIn ? 'optInCount' : 'optOutCount'; + + try { + await internalRepository.incrementCounter( + 'kql-telemetry', + 'kql-telemetry', + counterName, + ); + } + catch (error) { + return new Boom('Something went wrong', { statusCode: error.status, data: { success: false } }); + } + + return { success: true }; + }, + }); +} diff --git a/src/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js b/src/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js index 34eca71cc2610..2525fbebd6968 100644 --- a/src/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js +++ b/src/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js @@ -38,20 +38,19 @@ export function registerRelationships(server) { }, }, - handler: async (req, reply) => { + handler: async (req) => { const type = req.params.type; const id = req.params.id; const size = req.query.size || 10; try { - const response = await findRelationships(type, id, size, req.getSavedObjectsClient()); - reply(response); + return await findRelationships(type, id, size, req.getSavedObjectsClient()); } catch (err) { if (isNotFoundError(err)) { - reply(Boom.boomify(new Error('Resource not found'), { statusCode: 404 })); - return; + throw Boom.boomify(new Error('Resource not found'), { statusCode: 404 }); } - reply(Boom.boomify(err, { statusCode: 500 })); + + throw Boom.boomify(err, { statusCode: 500 }); } }, }); diff --git a/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.js b/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.js index a085b9581c726..76cc66c05385c 100644 --- a/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.js +++ b/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.js @@ -45,13 +45,14 @@ export function registerScrollForExportRoute(server) { }, }, - handler: async (req, reply) => { + handler: async (req) => { const savedObjectsClient = req.getSavedObjectsClient(); const objects = await findAll(savedObjectsClient, { perPage: 1000, type: req.payload.typesToInclude }); - const response = objects.map(hit => { + + return objects.map(hit => { const type = hit.type; return { _id: hit.id, @@ -63,8 +64,6 @@ export function registerScrollForExportRoute(server) { _migrationVersion: hit.migrationVersion, }; }); - - reply(response); } }); } @@ -82,7 +81,7 @@ export function registerScrollForCountRoute(server) { }, }, - handler: async (req, reply) => { + handler: async (req) => { const savedObjectsClient = req.getSavedObjectsClient(); const findOptions = { type: req.payload.typesToInclude, @@ -108,7 +107,7 @@ export function registerScrollForCountRoute(server) { } } - reply(counts); + return counts; } }); } diff --git a/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.test.js b/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.test.js index d64519f7ddd01..ad6f2f9ebc4b9 100644 --- a/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.test.js +++ b/src/core_plugins/kibana/server/routes/api/management/saved_objects/scroll.test.js @@ -20,8 +20,15 @@ import Hapi from 'hapi'; import { registerScrollForExportRoute } from './scroll'; const createMockServer = () => { - const mockServer = new Hapi.Server({ debug: false }); - mockServer.connection({ port: 8080 }); + const mockServer = new Hapi.Server({ + debug: false, + port: 8080, + routes: { + validate: { + failAction: (r, h, err) => { throw err; } + } + } + }); return mockServer; }; diff --git a/src/core_plugins/kibana/server/routes/api/remote_info/call_with_request_factory.js b/src/core_plugins/kibana/server/routes/api/remote_info/call_with_request_factory.js new file mode 100644 index 0000000000000..dc70072ffd285 --- /dev/null +++ b/src/core_plugins/kibana/server/routes/api/remote_info/call_with_request_factory.js @@ -0,0 +1,37 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * 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 { once } from 'lodash'; + +const callWithRequest = once(server => { + const cluster = server.plugins.elasticsearch.getCluster('data'); + return cluster.callWithRequest; +}); + +export const callWithRequestFactory = (server, request) => { + return (...args) => { + return callWithRequest(server)(request, ...args); + }; +}; diff --git a/src/core_plugins/kibana/server/routes/api/remote_info/index.js b/src/core_plugins/kibana/server/routes/api/remote_info/index.js new file mode 100644 index 0000000000000..2d1e57d432550 --- /dev/null +++ b/src/core_plugins/kibana/server/routes/api/remote_info/index.js @@ -0,0 +1,51 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * 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 { callWithRequestFactory } from './call_with_request_factory'; +import handleEsError from '../../../lib/handle_es_error'; + +async function fetchRemoteClusters(callWithRequest) { + const options = { + method: 'GET', + path: '_remote/info' + }; + const remoteInfo = await callWithRequest('transport.request', options); + return Object.keys(remoteInfo); +} + +export function registerClustersRoute(server) { + server.route({ + path: '/api/kibana/clusters', + method: 'GET', + handler: async request => { + const callWithRequest = callWithRequestFactory(server, request); + try { + return await fetchRemoteClusters(callWithRequest); + } catch (error) { + throw handleEsError(error); + } + } + }); +} diff --git a/src/core_plugins/kibana/server/routes/api/scripts/register_languages.js b/src/core_plugins/kibana/server/routes/api/scripts/register_languages.js index f8520ea97b77a..6b27d24dda785 100644 --- a/src/core_plugins/kibana/server/routes/api/scripts/register_languages.js +++ b/src/core_plugins/kibana/server/routes/api/scripts/register_languages.js @@ -21,8 +21,8 @@ export function registerLanguages(server) { server.route({ path: '/api/kibana/scripts/languages', method: 'GET', - handler: function (request, reply) { - reply(['painless', 'expression']); + handler: function () { + return ['painless', 'expression']; } }); } diff --git a/src/core_plugins/kibana/server/routes/api/scroll_search/index.js b/src/core_plugins/kibana/server/routes/api/scroll_search/index.js index 48301ded0523e..734fce97d8765 100644 --- a/src/core_plugins/kibana/server/routes/api/scroll_search/index.js +++ b/src/core_plugins/kibana/server/routes/api/scroll_search/index.js @@ -23,7 +23,7 @@ export function scrollSearchApi(server) { server.route({ path: '/api/kibana/legacy_scroll_start', method: ['POST'], - handler: (req, reply) => { + handler: async (req) => { const { callWithRequest } = server.plugins.elasticsearch.getCluster('admin'); const { index, size, body } = req.payload; const params = { @@ -33,21 +33,26 @@ export function scrollSearchApi(server) { scroll: '1m', sort: '_doc', }; - return callWithRequest(req, 'search', params) - .then(reply) - .catch(error => reply(handleESError(error))); + + try { + return await callWithRequest(req, 'search', params); + } catch (err) { + throw handleESError(err); + } } }); server.route({ path: '/api/kibana/legacy_scroll_continue', method: ['POST'], - handler: (req, reply) => { + handler: async (req) => { const { callWithRequest } = server.plugins.elasticsearch.getCluster('admin'); const { scrollId } = req.payload; - return callWithRequest(req, 'scroll', { scrollId, scroll: '1m' }) - .then(reply) - .catch(error => reply(handleESError(error))); + try { + return await callWithRequest(req, 'scroll', { scrollId, scroll: '1m' }); + } catch (err) { + throw handleESError(err); + } } }); } diff --git a/src/core_plugins/kibana/server/routes/api/search/count/register_count.js b/src/core_plugins/kibana/server/routes/api/search/count/register_count.js index 3a1fd9ee62e77..c3b24c3133994 100644 --- a/src/core_plugins/kibana/server/routes/api/search/count/register_count.js +++ b/src/core_plugins/kibana/server/routes/api/search/count/register_count.js @@ -24,22 +24,20 @@ export default function registerCount(server) { server.route({ path: '/api/kibana/{id}/_count', method: ['POST', 'GET'], - handler: function (req, reply) { + handler: async function (req) { const { callWithRequest } = server.plugins.elasticsearch.getCluster('data'); const boundCallWithRequest = _.partial(callWithRequest, req); - boundCallWithRequest('count', { - allowNoIndices: false, - index: req.params.id - }) - .then( - function (res) { - reply({ count: res.count }); - }, - function (error) { - reply(handleESError(error)); - } - ); + try { + const res = await boundCallWithRequest('count', { + allowNoIndices: false, + index: req.params.id + }); + + return { count: res.count }; + } catch (err) { + throw handleESError(err); + } } }); } diff --git a/src/core_plugins/kibana/server/routes/api/suggestions/register_value_suggestions.js b/src/core_plugins/kibana/server/routes/api/suggestions/register_value_suggestions.js index e8be66959d666..54adefc540545 100644 --- a/src/core_plugins/kibana/server/routes/api/suggestions/register_value_suggestions.js +++ b/src/core_plugins/kibana/server/routes/api/suggestions/register_value_suggestions.js @@ -24,7 +24,7 @@ export function registerValueSuggestions(server) { server.route({ path: '/api/kibana/suggestions/values/{index}', method: ['POST'], - handler: async function (req, reply) { + handler: async function (req) { const { index } = req.params; const { field, query, boolFilter } = req.payload; const { callWithRequest } = server.plugins.elasticsearch.getCluster('data'); @@ -33,9 +33,9 @@ export function registerValueSuggestions(server) { const response = await callWithRequest(req, 'search', { index, body }); const buckets = get(response, 'aggregations.suggestions.buckets') || []; const suggestions = map(buckets, 'key'); - reply(suggestions); + return suggestions; } catch (error) { - reply(handleESError(error)); + throw handleESError(error); } } }); diff --git a/src/core_plugins/kibana/server/tutorials/aerospike_metrics/index.js b/src/core_plugins/kibana/server/tutorials/aerospike_metrics/index.js index f9b656a888e1c..0e05abf5aea71 100644 --- a/src/core_plugins/kibana/server/tutorials/aerospike_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/aerospike_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function aerospikeMetricsSpecProvider() { +export function aerospikeMetricsSpecProvider(server, context) { const moduleName = 'aerospike'; return { id: 'aerospikeMetrics', @@ -40,6 +40,7 @@ export function aerospikeMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-aerospike.html', }, }), + euiIconType: 'logoAerospike', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.aerospikeMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function aerospikeMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/apache_logs/index.js b/src/core_plugins/kibana/server/tutorials/apache_logs/index.js index f9c90abc54bf1..cce2343500d02 100644 --- a/src/core_plugins/kibana/server/tutorials/apache_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/apache_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function apacheLogsSpecProvider() { +export function apacheLogsSpecProvider(server, context) { const moduleName = 'apache2'; const geoipRequired = true; const uaRequired = true; @@ -59,7 +59,7 @@ export function apacheLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/apache_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/apache_metrics/index.js b/src/core_plugins/kibana/server/tutorials/apache_metrics/index.js index 9ea9c894d8977..d7d04589843bf 100644 --- a/src/core_plugins/kibana/server/tutorials/apache_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/apache_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function apacheMetricsSpecProvider() { +export function apacheMetricsSpecProvider(server, context) { const moduleName = 'apache'; return { id: 'apacheMetrics', @@ -56,7 +56,7 @@ export function apacheMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/apache_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/apm/apm_client_instructions.js b/src/core_plugins/kibana/server/tutorials/apm/apm_client_instructions.js index 138bebdc57998..396d5d4145ddc 100644 --- a/src/core_plugins/kibana/server/tutorials/apm/apm_client_instructions.js +++ b/src/core_plugins/kibana/server/tutorials/apm/apm_client_instructions.js @@ -361,7 +361,7 @@ export const createGoClientInstructions = () => [ textPre: i18n.translate('kbn.server.tutorials.apm.goClient.install.textPre', { defaultMessage: 'Install the APM agent packages for Go.', }), - commands: ['go get github.com/elastic/apm-agent-go'], + commands: ['go get go.elastic.co/apm'], }, { title: i18n.translate('kbn.server.tutorials.apm.goClient.configure.title', { @@ -384,19 +384,20 @@ file name, or the `ELASTIC_APM_SERVICE_NAME` environment variable.', })} export ELASTIC_APM_SERVICE_NAME= -# ${i18n.translate('kbn.server.tutorials.apm.goClient.configure.commands.setAmpServerUrlComment', { - defaultMessage: 'Set the APM Server URL. If unspecified, the agent will effectively be disabled.', +# ${i18n.translate('kbn.server.tutorials.apm.goClient.configure.commands.setCustomApmServerUrlComment', { + defaultMessage: 'Set custom APM Server URL (default: {defaultApmServerUrl})', + values: { defaultApmServerUrl: 'http://localhost:8200' }, })} export ELASTIC_APM_SERVER_URL= -# ${i18n.translate('kbn.server.tutorials.apm.goClient.configure.commands.setIfAmpServerRequiresTokenComment', { - defaultMessage: 'Set if APM Server requires a token.', +# ${i18n.translate('kbn.server.tutorials.apm.goClient.configure.commands.useIfApmRequiresTokenComment', { + defaultMessage: 'Use if APM Server requires a token', })} export ELASTIC_APM_SECRET_TOKEN= `.split('\n'), textPost: i18n.translate('kbn.server.tutorials.apm.goClient.configure.textPost', { - defaultMessage: 'See the [documentation]({documenationLink}) for advanced configuration.', - values: { documenationLink: '{config.docs.base_url}guide/en/apm/agent/go/current/configuration.html' }, + defaultMessage: 'See the [documentation]({documentationLink}) for advanced configuration.', + values: { documentationLink: '{config.docs.base_url}guide/en/apm/agent/go/current/configuration.html' }, }), }, { @@ -407,11 +408,11 @@ export ELASTIC_APM_SECRET_TOKEN= defaultMessage: 'Instrument your Go application by using one of the provided instrumentation modules or \ by using the tracer API directly.', }), - commands: ` + commands: `\ import ( "net/http" - "github.com/elastic/apm-agent-go/module/apmhttp" + "go.elastic.co/apm/module/apmhttp" ) func main() {curlyOpen} @@ -422,8 +423,7 @@ func main() {curlyOpen} `.split('\n'), textPost: i18n.translate('kbn.server.tutorials.apm.goClient.instrument.textPost', { defaultMessage: 'See the [documentation]({documentationLink}) for a detailed \ -guide to instrumenting Go source code.\n\n\ -**Warning: The Go agent is currently in Beta and not meant for production use.**', +guide to instrumenting Go source code.', values: { documentationLink: '{config.docs.base_url}guide/en/apm/agent/go/current/instrumenting-source.html' }, }), }, @@ -457,9 +457,9 @@ Do **not** add the agent as a dependency to your application.', -Delastic.apm.application_packages=org.example \\ -jar my-application.jar`.split('\n'), textPost: i18n.translate('kbn.server.tutorials.apm.javaClient.startApplication.textPost', { - defaultMessage: 'See the [documentation]({documenationLink}) for configuration options and advanced \ + defaultMessage: 'See the [documentation]({documentationLink}) for configuration options and advanced \ usage.\n\n**Warning: The Java agent is currently in Beta and not meant for production use.**', - values: { documenationLink: '{config.docs.base_url}guide/en/apm/agent/java/current/index.html' }, + values: { documentationLink: '{config.docs.base_url}guide/en/apm/agent/java/current/index.html' }, }), }, ]; diff --git a/src/core_plugins/kibana/server/tutorials/apm/apm_server_instructions.js b/src/core_plugins/kibana/server/tutorials/apm/apm_server_instructions.js index 2826aca5194db..5d037da91c4f0 100644 --- a/src/core_plugins/kibana/server/tutorials/apm/apm_server_instructions.js +++ b/src/core_plugins/kibana/server/tutorials/apm/apm_server_instructions.js @@ -44,6 +44,16 @@ const createStartServer = () => ({ }), }); +export function createStartServerUnixSysv() { + const START_SERVER = createStartServer(); + + return { + title: START_SERVER.title, + textPre: START_SERVER.textPre, + commands: ['service apm-server start'], + }; +} + export function createStartServerUnix() { const START_SERVER = createStartServer(); @@ -128,7 +138,7 @@ to allow the script to run. For example: {command}.', { title: START_SERVER.title, textPre: START_SERVER.textPre, - commands: ['apm-server.exe -e'], + commands: ['Start-Service apm-server'], }, ]; } diff --git a/src/core_plugins/kibana/server/tutorials/apm/on_prem.js b/src/core_plugins/kibana/server/tutorials/apm/on_prem.js index a75ce27384b21..8a3705edf0c76 100644 --- a/src/core_plugins/kibana/server/tutorials/apm/on_prem.js +++ b/src/core_plugins/kibana/server/tutorials/apm/on_prem.js @@ -22,6 +22,7 @@ import { INSTRUCTION_VARIANT } from '../../../common/tutorials/instruction_varia import { createWindowsServerInstructions, createEditConfig, + createStartServerUnixSysv, createStartServerUnix, createDownloadServerRpm, createDownloadServerDeb, @@ -41,6 +42,7 @@ import { export function onPremInstructions(apmIndexPattern) { const EDIT_CONFIG = createEditConfig(); const START_SERVER_UNIX = createStartServerUnix(); + const START_SERVER_UNIX_SYSV = createStartServerUnixSysv(); return { instructionSets: [ @@ -55,11 +57,11 @@ export function onPremInstructions(apmIndexPattern) { }, { id: INSTRUCTION_VARIANT.DEB, - instructions: [createDownloadServerDeb(), EDIT_CONFIG, START_SERVER_UNIX], + instructions: [createDownloadServerDeb(), EDIT_CONFIG, START_SERVER_UNIX_SYSV], }, { id: INSTRUCTION_VARIANT.RPM, - instructions: [createDownloadServerRpm(), EDIT_CONFIG, START_SERVER_UNIX], + instructions: [createDownloadServerRpm(), EDIT_CONFIG, START_SERVER_UNIX_SYSV], }, { id: INSTRUCTION_VARIANT.WINDOWS, @@ -77,10 +79,10 @@ export function onPremInstructions(apmIndexPattern) { defaultMessage: 'Check APM Server status', }), success: i18n.translate('kbn.server.tutorials.apm.apmServer.statusCheck.successMessage', { - defaultMessage: 'You have correctly setup APM-Server', + defaultMessage: 'You have correctly setup APM Server', }), error: i18n.translate('kbn.server.tutorials.apm.apmServer.statusCheck.errorMessage', { - defaultMessage: 'APM-Server has still not connected to Elasticsearch', + defaultMessage: 'APM Server has still not connected to Elasticsearch', }), esHitsCheck: { index: apmIndexPattern, @@ -101,6 +103,14 @@ export function onPremInstructions(apmIndexPattern) { defaultMessage: 'APM Agents', }), instructionVariants: [ + { + id: INSTRUCTION_VARIANT.JAVA, + instructions: createJavaClientInstructions(), + }, + { + id: INSTRUCTION_VARIANT.JS, + instructions: createJsClientInstructions(), + }, { id: INSTRUCTION_VARIANT.NODE, instructions: createNodeClientInstructions(), @@ -121,18 +131,10 @@ export function onPremInstructions(apmIndexPattern) { id: INSTRUCTION_VARIANT.RACK, instructions: createRackClientInstructions(), }, - { - id: INSTRUCTION_VARIANT.JS, - instructions: createJsClientInstructions(), - }, { id: INSTRUCTION_VARIANT.GO, instructions: createGoClientInstructions(), }, - { - id: INSTRUCTION_VARIANT.JAVA, - instructions: createJavaClientInstructions(), - }, ], statusCheck: { title: i18n.translate('kbn.server.tutorials.apm.apmAgents.statusCheck.title', { diff --git a/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js b/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js index aebcc62fc3211..22fe1ce2d7d8a 100644 --- a/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function cephMetricsSpecProvider() { +export function cephMetricsSpecProvider(server, context) { const moduleName = 'ceph'; return { id: 'cephMetrics', @@ -40,6 +40,7 @@ export function cephMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-ceph.html', }, }), + euiIconType: 'logoCeph', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.cephMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function cephMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/cloudwatch_logs/index.js b/src/core_plugins/kibana/server/tutorials/cloudwatch_logs/index.js new file mode 100644 index 0000000000000..b5b053e329d1a --- /dev/null +++ b/src/core_plugins/kibana/server/tutorials/cloudwatch_logs/index.js @@ -0,0 +1,57 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { i18n } from '@kbn/i18n'; +import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; +import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/functionbeat_instructions'; + +export function cloudwatchLogsSpecProvider(server, context) { + return { + id: 'cloudwatchLogs', + name: i18n.translate('kbn.server.tutorials.cloudwatchLogs.nameTitle', { + defaultMessage: 'Cloudwatch Logs', + }), + category: TUTORIAL_CATEGORY.LOGGING, + shortDescription: i18n.translate('kbn.server.tutorials.cloudwatchLogs.shortDescription', { + defaultMessage: 'Collect Cloudwatch logs with Functionbeat', + }), + longDescription: i18n.translate('kbn.server.tutorials.cloudwatchLogs.longDescription', { + defaultMessage: 'Collect Cloudwatch logs by deploying Functionbeat to run as \ + an AWS Lambda function. \ + [Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.functionbeat}/functionbeat-getting-started.html', + }, + }), + //euiIconType: 'functionbeatApp', + artifacts: { + dashboards: [ + // TODO + ], + exportedFields: { + documentationUrl: '{config.docs.beats.functionbeat}/exported-fields.html' + } + }, + completionTimeMinutes: 10, + //previewImagePath: '/plugins/kibana/home/tutorial_resources/uptime_monitors/screenshot.png', + onPrem: onPremInstructions(null, null, null, context), + elasticCloud: cloudInstructions(), + onPremElasticCloud: onPremCloudInstructions() + }; +} diff --git a/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js b/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js index c9cc9610e0860..5ec32a5b99894 100644 --- a/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function couchbaseMetricsSpecProvider() { +export function couchbaseMetricsSpecProvider(server, context) { const moduleName = 'couchbase'; return { id: 'couchbaseMetrics', @@ -40,6 +40,7 @@ export function couchbaseMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-couchbase.html', }, }), + euiIconType: 'logoCouchbase', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.couchbaseMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function couchbaseMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js b/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js index 6429390a48e55..289f8d2324155 100644 --- a/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function dockerMetricsSpecProvider() { +export function dockerMetricsSpecProvider(server, context) { const moduleName = 'docker'; return { id: 'dockerMetrics', @@ -56,7 +56,7 @@ export function dockerMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/docker_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js b/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js index 2222d9468808d..ba0b68e06913f 100644 --- a/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function dropwizardMetricsSpecProvider() { +export function dropwizardMetricsSpecProvider(server, context) { const moduleName = 'dropwizard'; return { id: 'dropwizardMetrics', @@ -40,6 +40,7 @@ export function dropwizardMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-dropwizard.html', }, }), + euiIconType: 'logoDropwizard', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.dropwizardMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function dropwizardMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js b/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js index 4dfcdbfbde5d9..55f2b3ea4ecb3 100644 --- a/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function elasticsearchLogsSpecProvider() { +export function elasticsearchLogsSpecProvider(server, context) { const moduleName = 'elasticsearch'; const geoipRequired = false; const uaRequired = false; @@ -57,7 +57,7 @@ export function elasticsearchLogsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/elasticsearch_metrics/index.js b/src/core_plugins/kibana/server/tutorials/elasticsearch_metrics/index.js index abbbe3f1429c9..8982eedce7069 100644 --- a/src/core_plugins/kibana/server/tutorials/elasticsearch_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/elasticsearch_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function elasticsearchMetricsSpecProvider() { +export function elasticsearchMetricsSpecProvider(server, context) { const moduleName = 'elasticsearch'; return { id: 'elasticsearchMetrics', @@ -54,7 +54,7 @@ export function elasticsearchMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/etcd_metrics/index.js b/src/core_plugins/kibana/server/tutorials/etcd_metrics/index.js index 2b704f57ab208..d781f9aadf6c9 100644 --- a/src/core_plugins/kibana/server/tutorials/etcd_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/etcd_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function etcdMetricsSpecProvider() { +export function etcdMetricsSpecProvider(server, context) { const moduleName = 'etcd'; return { id: 'etcdMetrics', @@ -40,6 +40,7 @@ export function etcdMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-etcd.html', }, }), + euiIconType: 'logoEtcd', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.etcdMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function etcdMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/golang_metrics/index.js b/src/core_plugins/kibana/server/tutorials/golang_metrics/index.js index 2714de14f494d..f1da6a6f4350b 100644 --- a/src/core_plugins/kibana/server/tutorials/golang_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/golang_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function golangMetricsSpecProvider() { +export function golangMetricsSpecProvider(server, context) { const moduleName = 'golang'; return { id: moduleName + 'Metrics', @@ -41,6 +41,7 @@ export function golangMetricsSpecProvider() { learnMoreLink: `{config.docs.beats.metricbeat}/metricbeat-module-${moduleName}.html`, }, }), + euiIconType: 'logoGolang', artifacts: { dashboards: [ { @@ -56,7 +57,7 @@ export function golangMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/haproxy_metrics/index.js b/src/core_plugins/kibana/server/tutorials/haproxy_metrics/index.js index f2d119b75e916..68da29c323f84 100644 --- a/src/core_plugins/kibana/server/tutorials/haproxy_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/haproxy_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function haproxyMetricsSpecProvider() { +export function haproxyMetricsSpecProvider(server, context) { const moduleName = 'haproxy'; return { id: 'haproxyMetrics', @@ -40,6 +40,7 @@ export function haproxyMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-haproxy.html', }, }), + euiIconType: 'logoHAproxy', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.haproxyMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function haproxyMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/iis_logs/index.js b/src/core_plugins/kibana/server/tutorials/iis_logs/index.js index 54ee34caa1765..549789aaa9076 100644 --- a/src/core_plugins/kibana/server/tutorials/iis_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/iis_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function iisLogsSpecProvider() { +export function iisLogsSpecProvider(server, context) { const moduleName = 'iis'; const geoipRequired = false; const uaRequired = false; @@ -42,7 +42,7 @@ export function iisLogsSpecProvider() { learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-iis.html', }, }), - //euiIconType: 'logoIIS', + // euiIconType: 'logoIIS', artifacts: { dashboards: [ { @@ -59,7 +59,7 @@ export function iisLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/iis_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/kafka_logs/index.js b/src/core_plugins/kibana/server/tutorials/kafka_logs/index.js index 4ac90a5e85e4a..a4dfebd204280 100644 --- a/src/core_plugins/kibana/server/tutorials/kafka_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/kafka_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function kafkaLogsSpecProvider() { +export function kafkaLogsSpecProvider(server, context) { const moduleName = 'kafka'; const geoipRequired = false; const uaRequired = false; @@ -42,7 +42,7 @@ export function kafkaLogsSpecProvider() { learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-kafka.html', }, }), - //euiIconType: 'logoKafka', + euiIconType: 'logoKafka', artifacts: { dashboards: [ { @@ -59,7 +59,7 @@ export function kafkaLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/kafka_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/kafka_metrics/index.js b/src/core_plugins/kibana/server/tutorials/kafka_metrics/index.js index c5f0403a93773..388155d4943d3 100644 --- a/src/core_plugins/kibana/server/tutorials/kafka_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/kafka_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function kafkaMetricsSpecProvider() { +export function kafkaMetricsSpecProvider(server, context) { const moduleName = 'kafka'; return { id: 'kafkaMetrics', @@ -40,6 +40,7 @@ export function kafkaMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-kafka.html', }, }), + euiIconType: 'logoKafka', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.kafkaMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function kafkaMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/kibana_metrics/index.js b/src/core_plugins/kibana/server/tutorials/kibana_metrics/index.js index 5e2a734372f1c..83953af8589ed 100644 --- a/src/core_plugins/kibana/server/tutorials/kibana_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/kibana_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function kibanaMetricsSpecProvider() { +export function kibanaMetricsSpecProvider(server, context) { const moduleName = 'kibana'; return { id: 'kibanaMetrics', @@ -54,7 +54,7 @@ export function kibanaMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/kubernetes_metrics/index.js b/src/core_plugins/kibana/server/tutorials/kubernetes_metrics/index.js index c4b483be10ec7..255f5821f0e66 100644 --- a/src/core_plugins/kibana/server/tutorials/kubernetes_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/kubernetes_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function kubernetesMetricsSpecProvider() { +export function kubernetesMetricsSpecProvider(server, context) { const moduleName = 'kubernetes'; return { id: 'kubernetesMetrics', @@ -56,7 +56,7 @@ export function kubernetesMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/kubernetes_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/logstash_logs/index.js b/src/core_plugins/kibana/server/tutorials/logstash_logs/index.js index ca11ee9470084..8bec45d94adfd 100644 --- a/src/core_plugins/kibana/server/tutorials/logstash_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/logstash_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function logstashLogsSpecProvider() { +export function logstashLogsSpecProvider(server, context) { const moduleName = 'logstash'; const geoipRequired = false; const uaRequired = false; @@ -59,7 +59,7 @@ export function logstashLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/logstash_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/logstash_metrics/index.js b/src/core_plugins/kibana/server/tutorials/logstash_metrics/index.js index 8689cad2fc966..1978ff0e063e8 100644 --- a/src/core_plugins/kibana/server/tutorials/logstash_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/logstash_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function logstashMetricsSpecProvider() { +export function logstashMetricsSpecProvider(server, context) { const moduleName = 'logstash'; return { id: moduleName + 'Metrics', @@ -31,7 +31,7 @@ export function logstashMetricsSpecProvider() { isBeta: true, category: TUTORIAL_CATEGORY.METRICS, shortDescription: i18n.translate('kbn.server.tutorials.logstashMetrics.shortDescription', { - defaultMessage: 'Fetch interal metrics from a Logstash server.', + defaultMessage: 'Fetch internal metrics from a Logstash server.', }), longDescription: i18n.translate('kbn.server.tutorials.logstashMetrics.longDescription', { defaultMessage: 'The `{moduleName}` Metricbeat module fetches internal metrics from a Logstash server. \ @@ -55,7 +55,7 @@ export function logstashMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/memcached_metrics/index.js b/src/core_plugins/kibana/server/tutorials/memcached_metrics/index.js index 28021ffebdbf7..4f6c13d356555 100644 --- a/src/core_plugins/kibana/server/tutorials/memcached_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/memcached_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function memcachedMetricsSpecProvider() { +export function memcachedMetricsSpecProvider(server, context) { const moduleName = 'memcached'; return { id: 'memcachedMetrics', @@ -40,6 +40,7 @@ export function memcachedMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-memcached.html', }, }), + euiIconType: 'logoMemcached', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.memcachedMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function memcachedMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/mongodb_metrics/index.js b/src/core_plugins/kibana/server/tutorials/mongodb_metrics/index.js index e3db5dd55a4f2..8058fbe37b711 100644 --- a/src/core_plugins/kibana/server/tutorials/mongodb_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/mongodb_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function mongodbMetricsSpecProvider() { +export function mongodbMetricsSpecProvider(server, context) { const moduleName = 'mongodb'; return { id: 'mongodbMetrics', @@ -39,7 +39,7 @@ export function mongodbMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-mongodb.html', }, }), - //euiIconType: 'logoMongoDB', + euiIconType: 'logoMongodb', artifacts: { dashboards: [ { @@ -56,7 +56,7 @@ export function mongodbMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/mongodb_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/munin_metrics/index.js b/src/core_plugins/kibana/server/tutorials/munin_metrics/index.js index ab21dc2b03bd4..e6e6489dc6fca 100644 --- a/src/core_plugins/kibana/server/tutorials/munin_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/munin_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function muninMetricsSpecProvider() { +export function muninMetricsSpecProvider(server, context) { const moduleName = 'munin'; return { id: 'muninMetrics', @@ -53,7 +53,7 @@ export function muninMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/mysql_logs/index.js b/src/core_plugins/kibana/server/tutorials/mysql_logs/index.js index bddc0d9659f49..9b06e4a1fafc4 100644 --- a/src/core_plugins/kibana/server/tutorials/mysql_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/mysql_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function mysqlLogsSpecProvider() { +export function mysqlLogsSpecProvider(server, context) { const moduleName = 'mysql'; const geoipRequired = false; const uaRequired = false; @@ -59,7 +59,7 @@ export function mysqlLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/mysql_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/mysql_metrics/index.js b/src/core_plugins/kibana/server/tutorials/mysql_metrics/index.js index 37bd452a7fad8..24614ab353e83 100644 --- a/src/core_plugins/kibana/server/tutorials/mysql_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/mysql_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function mysqlMetricsSpecProvider() { +export function mysqlMetricsSpecProvider(server, context) { const moduleName = 'mysql'; return { id: 'mysqlMetrics', @@ -56,7 +56,7 @@ export function mysqlMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/mysql_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/nginx_logs/index.js b/src/core_plugins/kibana/server/tutorials/nginx_logs/index.js index d540a3f9f2daa..03e7454b60b8c 100644 --- a/src/core_plugins/kibana/server/tutorials/nginx_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/nginx_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function nginxLogsSpecProvider() { +export function nginxLogsSpecProvider(server, context) { const moduleName = 'nginx'; const geoipRequired = true; const uaRequired = true; @@ -59,7 +59,7 @@ export function nginxLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/nginx_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/nginx_metrics/index.js b/src/core_plugins/kibana/server/tutorials/nginx_metrics/index.js index 38c54bf8ae2d6..1eb34a5413cc3 100644 --- a/src/core_plugins/kibana/server/tutorials/nginx_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/nginx_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function nginxMetricsSpecProvider() { +export function nginxMetricsSpecProvider(server, context) { const moduleName = 'nginx'; return { id: 'nginxMetrics', @@ -60,7 +60,7 @@ which must be enabled in your Nginx installation. \ }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/nginx_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/osquery_logs/index.js b/src/core_plugins/kibana/server/tutorials/osquery_logs/index.js index fab1fb78285ac..6ffb28784e127 100644 --- a/src/core_plugins/kibana/server/tutorials/osquery_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/osquery_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function osqueryLogsSpecProvider() { +export function osqueryLogsSpecProvider(server, context) { const moduleName = 'osquery'; const geoipRequired = false; const uaRequired = false; @@ -42,7 +42,7 @@ export function osqueryLogsSpecProvider() { learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-osquery.html', }, }), - //euiIconType: 'logoOsquery', + euiIconType: 'logoOsquery', artifacts: { dashboards: [ { @@ -59,7 +59,7 @@ export function osqueryLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/osquery_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/php_fpm_metrics/index.js b/src/core_plugins/kibana/server/tutorials/php_fpm_metrics/index.js index f024bcb62f852..ed35593467d37 100644 --- a/src/core_plugins/kibana/server/tutorials/php_fpm_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/php_fpm_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function phpfpmMetricsSpecProvider() { +export function phpfpmMetricsSpecProvider(server, context) { const moduleName = 'php_fpm'; return { id: 'phpfpmMetrics', @@ -40,7 +40,7 @@ export function phpfpmMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-php_fpm.html', }, }), - //euiIconType: 'logoPHPFPM', + euiIconType: 'logoPhp', artifacts: { dashboards: [ /*{ @@ -55,7 +55,7 @@ export function phpfpmMetricsSpecProvider() { }, completionTimeMinutes: 10, //previewImagePath: '/plugins/kibana/home/tutorial_resources/php_fpm_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/postgresql_logs/index.js b/src/core_plugins/kibana/server/tutorials/postgresql_logs/index.js index ff4c09d8ba2f0..df4239470cc27 100644 --- a/src/core_plugins/kibana/server/tutorials/postgresql_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/postgresql_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function postgresqlLogsSpecProvider() { +export function postgresqlLogsSpecProvider(server, context) { const moduleName = 'postgresql'; const geoipRequired = false; const uaRequired = false; @@ -42,7 +42,7 @@ export function postgresqlLogsSpecProvider() { learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-postgresql.html', }, }), - //euiIconType: 'logoPostgreSQL', + euiIconType: 'logoPostgres', artifacts: { dashboards: [ { @@ -59,7 +59,7 @@ export function postgresqlLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/postgresql_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/postgresql_metrics/index.js b/src/core_plugins/kibana/server/tutorials/postgresql_metrics/index.js index c646700c3d011..5c1edf4835ba8 100644 --- a/src/core_plugins/kibana/server/tutorials/postgresql_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/postgresql_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function postgresqlMetricsSpecProvider() { +export function postgresqlMetricsSpecProvider(server, context) { const moduleName = 'postgresql'; return { id: 'postgresqlMetrics', @@ -40,7 +40,7 @@ export function postgresqlMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-postgresql.html', }, }), - //euiIconType: 'logoPostgreSQL', + euiIconType: 'logoPostgres', artifacts: { dashboards: [ /* @@ -57,7 +57,7 @@ export function postgresqlMetricsSpecProvider() { }, completionTimeMinutes: 10, //previewImagePath: '/plugins/kibana/home/tutorial_resources/postgresql_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/prometheus_metrics/index.js b/src/core_plugins/kibana/server/tutorials/prometheus_metrics/index.js index 5bfad2d708706..02be5c4a7bee1 100644 --- a/src/core_plugins/kibana/server/tutorials/prometheus_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/prometheus_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function prometheusMetricsSpecProvider() { +export function prometheusMetricsSpecProvider(server, context) { const moduleName = 'prometheus'; return { id: moduleName + 'Metrics', @@ -41,6 +41,7 @@ export function prometheusMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-' + moduleName + '.html', }, }), + euiIconType: 'logoPrometheus', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.prometheusMetrics.artifacts.application.label', { @@ -54,7 +55,7 @@ export function prometheusMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/rabbitmq_metrics/index.js b/src/core_plugins/kibana/server/tutorials/rabbitmq_metrics/index.js index 0b343d3dd4abc..b76787260b4e9 100644 --- a/src/core_plugins/kibana/server/tutorials/rabbitmq_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/rabbitmq_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function rabbitmqMetricsSpecProvider() { +export function rabbitmqMetricsSpecProvider(server, context) { const moduleName = 'rabbitmq'; return { id: 'rabbitmqMetrics', @@ -39,7 +39,7 @@ export function rabbitmqMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-rabbitmq.html', }, }), - //euiIconType: 'logoRabbitMQ', + euiIconType: 'logoRabbitmq', isBeta: true, artifacts: { dashboards: [ @@ -57,7 +57,7 @@ export function rabbitmqMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/rabbitmq_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/redis_logs/index.js b/src/core_plugins/kibana/server/tutorials/redis_logs/index.js index 397181820d060..c142f62a8ea5c 100644 --- a/src/core_plugins/kibana/server/tutorials/redis_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/redis_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function redisLogsSpecProvider() { +export function redisLogsSpecProvider(server, context) { const moduleName = 'redis'; const geoipRequired = false; const uaRequired = false; @@ -65,7 +65,7 @@ Note that the `slowlog` fileset is experimental. \ }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/redis_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/redis_metrics/index.js b/src/core_plugins/kibana/server/tutorials/redis_metrics/index.js index e1d451a17fb32..928ced07ade26 100644 --- a/src/core_plugins/kibana/server/tutorials/redis_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/redis_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function redisMetricsSpecProvider() { +export function redisMetricsSpecProvider(server, context) { const moduleName = 'redis'; return { id: 'redisMetrics', @@ -56,7 +56,7 @@ export function redisMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/redis_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/register.js b/src/core_plugins/kibana/server/tutorials/register.js index cf23318f4f2e4..fd05018004657 100644 --- a/src/core_plugins/kibana/server/tutorials/register.js +++ b/src/core_plugins/kibana/server/tutorials/register.js @@ -37,6 +37,7 @@ import { postgresqlLogsSpecProvider } from './postgresql_logs'; import { rabbitmqMetricsSpecProvider } from './rabbitmq_metrics'; import { redisLogsSpecProvider } from './redis_logs'; import { redisMetricsSpecProvider } from './redis_metrics'; +import { suricataLogsSpecProvider } from './suricata_logs'; import { dockerMetricsSpecProvider } from './docker_metrics'; import { kubernetesMetricsSpecProvider } from './kubernetes_metrics'; import { uwsgiMetricsSpecProvider } from './uwsgi_metrics'; @@ -60,6 +61,8 @@ import { golangMetricsSpecProvider } from './golang_metrics'; import { logstashMetricsSpecProvider } from './logstash_metrics'; import { prometheusMetricsSpecProvider } from './prometheus_metrics'; import { zookeeperMetricsSpecProvider } from './zookeeper_metrics'; +import { uptimeMonitorsSpecProvider } from './uptime_monitors'; +import { cloudwatchLogsSpecProvider } from './cloudwatch_logs'; export function registerTutorials(server) { server.registerTutorial(systemLogsSpecProvider); @@ -82,6 +85,7 @@ export function registerTutorials(server) { server.registerTutorial(rabbitmqMetricsSpecProvider); server.registerTutorial(redisLogsSpecProvider); server.registerTutorial(redisMetricsSpecProvider); + server.registerTutorial(suricataLogsSpecProvider); server.registerTutorial(dockerMetricsSpecProvider); server.registerTutorial(kubernetesMetricsSpecProvider); server.registerTutorial(uwsgiMetricsSpecProvider); @@ -105,4 +109,6 @@ export function registerTutorials(server) { server.registerTutorial(logstashMetricsSpecProvider); server.registerTutorial(prometheusMetricsSpecProvider); server.registerTutorial(zookeeperMetricsSpecProvider); + server.registerTutorial(uptimeMonitorsSpecProvider); + server.registerTutorial(cloudwatchLogsSpecProvider); } diff --git a/src/core_plugins/kibana/server/tutorials/suricata_logs/index.js b/src/core_plugins/kibana/server/tutorials/suricata_logs/index.js new file mode 100644 index 0000000000000..57d030a2fc535 --- /dev/null +++ b/src/core_plugins/kibana/server/tutorials/suricata_logs/index.js @@ -0,0 +1,67 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { i18n } from '@kbn/i18n'; +import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; +import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; + +export function suricataLogsSpecProvider(server, context) { + const moduleName = 'suricata'; + const geoipRequired = false; + const uaRequired = false; + const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS']; + return { + id: 'suricataLogs', + name: i18n.translate('kbn.server.tutorials.suricataLogs.nameTitle', { + defaultMessage: 'Suricata logs', + }), + category: TUTORIAL_CATEGORY.SECURITY, + shortDescription: i18n.translate('kbn.server.tutorials.suricataLogs.shortDescription', { + defaultMessage: 'Collect the result logs created by Suricata IDS/IPS/NSM.', + }), + longDescription: i18n.translate('kbn.server.tutorials.suricataLogs.longDescription', { + defaultMessage: 'The `suricata` Filebeat module collects the logs from the \ +[Suricata Eve JSON output](https://suricata.readthedocs.io/en/latest/output/eve/eve-json-format.html). \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-suricata.html', + }, + }), + //euiIconType: 'logoSuricata', + artifacts: { + dashboards: [ + { + id: '69f5ae20-eb02-11e7-8f04-51231daa5b05', + linkLabel: i18n.translate('kbn.server.tutorials.suricataLogs.artifacts.dashboards.linkLabel', { + defaultMessage: 'Suricata logs dashboard', + }), + isOverview: true + } + ], + exportedFields: { + documentationUrl: '{config.docs.beats.filebeat}/exported-fields-suricata.html' + } + }, + completionTimeMinutes: 10, + previewImagePath: '/plugins/kibana/home/tutorial_resources/suricata_logs/screenshot.png', + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), + elasticCloud: cloudInstructions(moduleName, platforms), + onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) + }; +} diff --git a/src/core_plugins/kibana/server/tutorials/system_logs/index.js b/src/core_plugins/kibana/server/tutorials/system_logs/index.js index 74117526ac77c..54f295ecb44f8 100644 --- a/src/core_plugins/kibana/server/tutorials/system_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/system_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function systemLogsSpecProvider() { +export function systemLogsSpecProvider(server, context) { const moduleName = 'system'; const geoipRequired = true; const uaRequired = false; @@ -59,7 +59,7 @@ Unix/Linux based distributions. This module is not available on Windows. \ }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/system_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/system_metrics/index.js b/src/core_plugins/kibana/server/tutorials/system_metrics/index.js index 61669025d2f1f..a5fc1d7fd6333 100644 --- a/src/core_plugins/kibana/server/tutorials/system_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/system_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function systemMetricsSpecProvider() { +export function systemMetricsSpecProvider(server, context) { const moduleName = 'system'; return { id: 'systemMetrics', @@ -56,7 +56,7 @@ It collects system wide statistics and statistics per process and filesystem. \ }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/system_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/traefik_logs/index.js b/src/core_plugins/kibana/server/tutorials/traefik_logs/index.js index 7c7cdafd4fa25..5b90a2707b7a3 100644 --- a/src/core_plugins/kibana/server/tutorials/traefik_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/traefik_logs/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; -export function traefikLogsSpecProvider() { +export function traefikLogsSpecProvider(server, context) { const moduleName = 'traefik'; const geoipRequired = false; const uaRequired = false; @@ -59,7 +59,7 @@ export function traefikLogsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/traefik_logs/screenshot.png', - onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), + onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context), elasticCloud: cloudInstructions(moduleName, platforms), onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) }; diff --git a/src/core_plugins/kibana/server/tutorials/uptime_monitors/index.js b/src/core_plugins/kibana/server/tutorials/uptime_monitors/index.js new file mode 100644 index 0000000000000..504948a887703 --- /dev/null +++ b/src/core_plugins/kibana/server/tutorials/uptime_monitors/index.js @@ -0,0 +1,63 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { i18n } from '@kbn/i18n'; +import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; +import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/heartbeat_instructions'; + +export function uptimeMonitorsSpecProvider(server, context) { + return { + id: 'uptimeMonitors', + name: i18n.translate('kbn.server.tutorials.uptimeMonitors.nameTitle', { + defaultMessage: 'Uptime Monitors', + }), + category: TUTORIAL_CATEGORY.METRICS, + shortDescription: i18n.translate('kbn.server.tutorials.uptimeMonitors.shortDescription', { + defaultMessage: 'Monitor services for their availability', + }), + longDescription: i18n.translate('kbn.server.tutorials.uptimeMonitors.longDescription', { + defaultMessage: 'Monitor services for their availability with active probing. \ + Given a list of URLs, Heartbeat asks the simple question: Are you alive? \ + [Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.heartbeat}/heartbeat-getting-started.html', + }, + }), + euiIconType: 'heartbeatApp', + artifacts: { + dashboards: [ + { + id: 'f3e771c0-eb19-11e6-be20-559646f8b9ba', + linkLabel: i18n.translate('kbn.server.tutorials.uptimeMonitors.artifacts.dashboards.linkLabel', { + defaultMessage: 'Heartbeat dashboard', + }), + isOverview: true + } + ], + exportedFields: { + documentationUrl: '{config.docs.beats.heartbeat}/exported-fields.html' + } + }, + completionTimeMinutes: 10, + previewImagePath: '/plugins/kibana/home/tutorial_resources/uptime_monitors/screenshot.png', + onPrem: onPremInstructions(null, null, null, context), + elasticCloud: cloudInstructions(), + onPremElasticCloud: onPremCloudInstructions() + }; +} diff --git a/src/core_plugins/kibana/server/tutorials/uwsgi_metrics/index.js b/src/core_plugins/kibana/server/tutorials/uwsgi_metrics/index.js index 3769c3fa6f014..a55d7c237d987 100644 --- a/src/core_plugins/kibana/server/tutorials/uwsgi_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/uwsgi_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function uwsgiMetricsSpecProvider() { +export function uwsgiMetricsSpecProvider(server, context) { const moduleName = 'uwsgi'; return { id: 'uwsgiMetrics', @@ -57,7 +57,7 @@ export function uwsgiMetricsSpecProvider() { }, completionTimeMinutes: 10, previewImagePath: '/plugins/kibana/home/tutorial_resources/uwsgi_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/vsphere_metrics/index.js b/src/core_plugins/kibana/server/tutorials/vsphere_metrics/index.js index 7ef4e68768b22..035e4ef5983ff 100644 --- a/src/core_plugins/kibana/server/tutorials/vsphere_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/vsphere_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function vSphereMetricsSpecProvider() { +export function vSphereMetricsSpecProvider(server, context) { const moduleName = 'vsphere'; return { id: 'vsphereMetrics', @@ -54,7 +54,7 @@ export function vSphereMetricsSpecProvider() { }, completionTimeMinutes: 10, //previewImagePath: '/plugins/kibana/home/tutorial_resources/vsphere_metrics/screenshot.png', - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/windows_metrics/index.js b/src/core_plugins/kibana/server/tutorials/windows_metrics/index.js index 16543ef745b92..66d383af8a79c 100644 --- a/src/core_plugins/kibana/server/tutorials/windows_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/windows_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function windowsMetricsSpecProvider() { +export function windowsMetricsSpecProvider(server, context) { const moduleName = 'windows'; return { id: 'windowsMetrics', @@ -40,6 +40,7 @@ export function windowsMetricsSpecProvider() { learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-windows.html', }, }), + euiIconType: 'logoWindows', artifacts: { application: { label: i18n.translate('kbn.server.tutorials.windowsMetrics.artifacts.application.label', { @@ -53,7 +54,7 @@ export function windowsMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/server/tutorials/zookeeper_metrics/index.js b/src/core_plugins/kibana/server/tutorials/zookeeper_metrics/index.js index 1a5b78df196bf..f97bd485bbd2c 100644 --- a/src/core_plugins/kibana/server/tutorials/zookeeper_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/zookeeper_metrics/index.js @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; -export function zookeeperMetricsSpecProvider() { +export function zookeeperMetricsSpecProvider(server, context) { const moduleName = 'zookeeper'; return { id: moduleName + 'Metrics', @@ -31,7 +31,7 @@ export function zookeeperMetricsSpecProvider() { isBeta: true, category: TUTORIAL_CATEGORY.METRICS, shortDescription: i18n.translate('kbn.server.tutorials.zookeeperMetrics.shortDescription', { - defaultMessage: 'Fetch interal metrics from a Zookeeper server.', + defaultMessage: 'Fetch internal metrics from a Zookeeper server.', }), longDescription: i18n.translate('kbn.server.tutorials.zookeeperMetrics.longDescription', { defaultMessage: 'The `{moduleName}` Metricbeat module fetches internal metrics from a Zookeeper server. \ @@ -54,7 +54,7 @@ export function zookeeperMetricsSpecProvider() { } }, completionTimeMinutes: 10, - onPrem: onPremInstructions(moduleName), + onPrem: onPremInstructions(moduleName, null, null, null, context), elasticCloud: cloudInstructions(moduleName), onPremElasticCloud: onPremCloudInstructions(moduleName) }; diff --git a/src/core_plugins/kibana/ui_setting_defaults.js b/src/core_plugins/kibana/ui_setting_defaults.js index 8b2dcc2d2b4a6..f86477a89e46d 100644 --- a/src/core_plugins/kibana/ui_setting_defaults.js +++ b/src/core_plugins/kibana/ui_setting_defaults.js @@ -19,6 +19,7 @@ import moment from 'moment-timezone'; import numeralLanguages from '@elastic/numeral/languages'; +import { IS_KIBANA_RELEASE } from '../../utils'; export function getUiSettingDefaults() { const weekdays = moment.weekdays().slice(); @@ -44,6 +45,12 @@ export function getUiSettingDefaults() { description: `When set, * is allowed as the first character in a query clause. Currently only applies when experimental query features are enabled in the query bar. To disallow leading wildcards in basic lucene queries, use query:queryString:options`, }, + 'k7design': { + name: 'Use the new K7 UI design', + value: IS_KIBANA_RELEASE, + description: `When set, Kibana will use the new K7 design targeted for release in 7.0. At this time, not all features are + implemented.`, + }, 'search:queryLanguage': { name: 'Query language', value: 'lucene', @@ -527,5 +534,14 @@ export function getUiSettingDefaults() { `, category: ['accessibility'], }, + 'rollups:enableIndexPatterns': { + name: 'Enable rollup index patterns', + value: true, + description: ` + Enable the creation of index patterns which capture rollup indices, which in turn enable + visualizations based on rollup data. Refresh the page to apply the changes. + `, + category: ['rollups'], + }, }; } diff --git a/src/core_plugins/markdown_vis/index.js b/src/core_plugins/markdown_vis/index.js index 5a1b426ec1dee..0f5fb086d1157 100644 --- a/src/core_plugins/markdown_vis/index.js +++ b/src/core_plugins/markdown_vis/index.js @@ -24,7 +24,8 @@ export default function (kibana) { uiExports: { visTypes: [ 'plugins/markdown_vis/markdown_vis' - ] + ], + styleSheetPaths: `${__dirname}/public/index.scss`, } }); diff --git a/src/core_plugins/markdown_vis/public/_markdown_vis.scss b/src/core_plugins/markdown_vis/public/_markdown_vis.scss new file mode 100644 index 0000000000000..f9f4347096db1 --- /dev/null +++ b/src/core_plugins/markdown_vis/public/_markdown_vis.scss @@ -0,0 +1,8 @@ +.mkdVis { + padding: $euiSizeM; + width: 100%; +} + +#markdownVisInput { + resize: none; +} diff --git a/src/core_plugins/markdown_vis/public/images/icon-markdown.svg b/src/core_plugins/markdown_vis/public/images/icon-markdown.svg deleted file mode 100644 index 87cb0a58c1b12..0000000000000 --- a/src/core_plugins/markdown_vis/public/images/icon-markdown.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - icon-markdown update - Created with Sketch. - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/markdown_vis/public/index.scss b/src/core_plugins/markdown_vis/public/index.scss new file mode 100644 index 0000000000000..d52d2a6caec23 --- /dev/null +++ b/src/core_plugins/markdown_vis/public/index.scss @@ -0,0 +1,10 @@ +@import 'src/ui/public/styles/styling_constants'; + +// Prefix all styles with "mkd" to avoid conflicts. +// Examples +// mkdChart +// mkdChart__legend +// mkdChart__legend--small +// mkdChart__legend-isLoading + +@import './markdown_vis'; diff --git a/src/core_plugins/markdown_vis/public/markdown_vis.js b/src/core_plugins/markdown_vis/public/markdown_vis.js index 239832cd778af..6c762aa148636 100644 --- a/src/core_plugins/markdown_vis/public/markdown_vis.js +++ b/src/core_plugins/markdown_vis/public/markdown_vis.js @@ -17,7 +17,6 @@ * under the License. */ -import './markdown_vis.less'; import { MarkdownVisWrapper } from './markdown_vis_controller'; import { VisFactoryProvider } from 'ui/vis/vis_factory'; import { CATEGORY } from 'ui/vis/vis_category'; diff --git a/src/core_plugins/markdown_vis/public/markdown_vis.less b/src/core_plugins/markdown_vis/public/markdown_vis.less deleted file mode 100644 index e2bd489daa750..0000000000000 --- a/src/core_plugins/markdown_vis/public/markdown_vis.less +++ /dev/null @@ -1,8 +0,0 @@ -.markdown-vis { - padding: 1em; - width: 100%; -} - -#markdownVisInput { - resize: none; -} diff --git a/src/core_plugins/markdown_vis/public/markdown_vis_controller.js b/src/core_plugins/markdown_vis/public/markdown_vis_controller.js index a5fa633f6f2d6..2d22294fa5d25 100644 --- a/src/core_plugins/markdown_vis/public/markdown_vis_controller.js +++ b/src/core_plugins/markdown_vis/public/markdown_vis_controller.js @@ -54,7 +54,7 @@ class MarkdownVisComponent extends Component { render() { return (
      - - - 42 - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/metric_vis/public/index.scss b/src/core_plugins/metric_vis/public/index.scss new file mode 100644 index 0000000000000..0a497fa75bbf0 --- /dev/null +++ b/src/core_plugins/metric_vis/public/index.scss @@ -0,0 +1,10 @@ +@import 'src/ui/public/styles/styling_constants'; + +// Prefix all styles with "mtr" to avoid conflicts. +// Examples +// mtrChart +// mtrChart__legend +// mtrChart__legend--small +// mtrChart__legend-isLoading + +@import './metric_vis'; diff --git a/src/core_plugins/metric_vis/public/metric_vis.js b/src/core_plugins/metric_vis/public/metric_vis.js index 167a9b55f9e06..119f28296f904 100644 --- a/src/core_plugins/metric_vis/public/metric_vis.js +++ b/src/core_plugins/metric_vis/public/metric_vis.js @@ -17,7 +17,6 @@ * under the License. */ -import './metric_vis.less'; import './metric_vis_params'; import { VisFactoryProvider } from 'ui/vis/vis_factory'; import { CATEGORY } from 'ui/vis/vis_category'; @@ -32,16 +31,16 @@ import { MetricVisComponent } from './metric_vis_controller'; // register the provider with the visTypes registry VisTypesRegistryProvider.register(MetricVisProvider); -function MetricVisProvider(Private) { +function MetricVisProvider(Private, i18n) { const VisFactory = Private(VisFactoryProvider); // return the visType object, which kibana will use to display and configure new // Vis object of this type. return VisFactory.createReactVisualization({ name: 'metric', - title: 'Metric', + title: i18n('metricVis.metricTitle', { defaultMessage: 'Metric' }), icon: 'visMetric', - description: 'Display a calculation as a single number', + description: i18n('metricVis.metricDescription', { defaultMessage: 'Display a calculation as a single number' }), category: CATEGORY.DATA, visConfig: { component: MetricVisComponent, @@ -73,15 +72,28 @@ function MetricVisProvider(Private) { }, editorConfig: { collections: { - metricColorMode: ['None', 'Labels', 'Background'], - colorSchemas: Object.keys(vislibColorMaps), + metricColorMode: [ + { + id: 'None', + label: i18n('metricVis.colorModes.noneOptionLabel', { defaultMessage: 'None' }) + }, + { + id: 'Labels', + label: i18n('metricVis.colorModes.labelsOptionLabel', { defaultMessage: 'Labels' }) + }, + { + id: 'Background', + label: i18n('metricVis.colorModes.backgroundOptionLabel', { defaultMessage: 'Background' }) + } + ], + colorSchemas: Object.values(vislibColorMaps).map(value => ({ id: value.id, label: value.label })), }, optionsTemplate: '', schemas: new Schemas([ { group: 'metrics', name: 'metric', - title: 'Metric', + title: i18n('metricVis.schemas.metricTitle', { defaultMessage: 'Metric' }), min: 1, aggFilter: [ '!std_dev', '!geo_centroid', @@ -92,7 +104,7 @@ function MetricVisProvider(Private) { }, { group: 'buckets', name: 'group', - title: 'Split Group', + title: i18n('metricVis.schemas.splitGroupTitle', { defaultMessage: 'Split Group' }), min: 0, max: 1, aggFilter: ['!geohash_grid', '!filter'] diff --git a/src/core_plugins/metric_vis/public/metric_vis.less b/src/core_plugins/metric_vis/public/metric_vis.less deleted file mode 100644 index 3469729d4098c..0000000000000 --- a/src/core_plugins/metric_vis/public/metric_vis.less +++ /dev/null @@ -1,34 +0,0 @@ -@import (reference) "~ui/styles/mixins.less"; - -.metric-vis { - width: 100%; - display: flex; - flex-direction: row; - flex-wrap: wrap; - - .metric-value { - font-weight: bold; - .ellipsis(); - } - - .metric-container { - text-align: center; - margin: auto; - padding: 16px; - } - - .metric-container--light { - color: white; - } - - .metric-container--filterable { - cursor: pointer; - transition: transform 0.2s ease; - transform: translate(0, 0); - - &:hover, &:focus { - box-shadow: none; - transform: translate(0, -2px); - } - } -} diff --git a/src/core_plugins/metric_vis/public/metric_vis_controller.js b/src/core_plugins/metric_vis/public/metric_vis_controller.js index abd6d63cc8ec4..932b4f42a0cf1 100644 --- a/src/core_plugins/metric_vis/public/metric_vis_controller.js +++ b/src/core_plugins/metric_vis/public/metric_vis_controller.js @@ -180,7 +180,7 @@ export class MetricVisComponent extends Component { const metrics = this._processTableGroups(this.props.visData); metricsHtml = metrics.map(this._renderMetric); } - return (
      {metricsHtml}
      ); + return (
      {metricsHtml}
      ); } componentDidMount() { diff --git a/src/core_plugins/metric_vis/public/metric_vis_params.html b/src/core_plugins/metric_vis/public/metric_vis_params.html index 84db2d91e23f9..ae421468e40c6 100644 --- a/src/core_plugins/metric_vis/public/metric_vis_params.html +++ b/src/core_plugins/metric_vis/public/metric_vis_params.html @@ -1,8 +1,12 @@
      -

      @@ -89,14 +110,21 @@

      - Required: You must specify at least one range. + +

      - Add Range + class="kuiButton kuiButton--primary kuiButton--fullWidth" + i18n-id="metricVis.params.ranges.addRangeButtonLabel" + i18n-default-message="Add Range" + >
      @@ -107,7 +135,7 @@ kbn-accessible-click aria-expanded="{{!!showColorOptions}}" aria-controls="metricOptionsColors" - aria-label="Toggle color options" + aria-label="{{::'metricVis.params.color.toggleOptionsAriaLabel' | i18n: { defaultMessage: 'Toggle color options' } }}" class="kuiSideBarCollapsibleTitle__label" ng-click="showColorOptions = !showColorOptions" > @@ -119,44 +147,63 @@ }" class="fa fa-caret-right kuiSideBarCollapsibleTitle__caret" > - - Color Options +
      -
      -
      -
      @@ -195,7 +245,12 @@
      diff --git a/src/core_plugins/metric_vis/public/metric_vis_params.js b/src/core_plugins/metric_vis/public/metric_vis_params.js index 43adf503d72bd..76a709f5df24f 100644 --- a/src/core_plugins/metric_vis/public/metric_vis_params.js +++ b/src/core_plugins/metric_vis/public/metric_vis_params.js @@ -22,7 +22,7 @@ import metricVisParamsTemplate from './metric_vis_params.html'; import _ from 'lodash'; const module = uiModules.get('kibana'); -module.directive('metricVisParams', function () { +module.directive('metricVisParams', function (i18n) { return { restrict: 'E', template: metricVisParamsTemplate, @@ -80,6 +80,7 @@ module.directive('metricVisParams', function () { $scope.customColors = true; }); + $scope.editorState.requiredDescription = i18n('metricVis.params.ranges.warning.requiredDescription', { defaultMessage: 'Required:' }); } }; }); diff --git a/src/core_plugins/metrics/index.js b/src/core_plugins/metrics/index.js index 886d57e3dcbd8..2b989a5b6c6e7 100644 --- a/src/core_plugins/metrics/index.js +++ b/src/core_plugins/metrics/index.js @@ -27,7 +27,8 @@ export default function (kibana) { uiExports: { visTypes: [ 'plugins/metrics/kbn_vis_types' - ] + ], + styleSheetPaths: `${__dirname}/public/index.scss`, }, config(Joi) { diff --git a/src/core_plugins/metrics/public/_hacks.scss b/src/core_plugins/metrics/public/_hacks.scss new file mode 100644 index 0000000000000..06ae8d7abfbd5 --- /dev/null +++ b/src/core_plugins/metrics/public/_hacks.scss @@ -0,0 +1,128 @@ +// EUITODO: Create our own Markdown styles +.tvbMarkdown__content { + color: rgba(0,0,0,1); + + pre, code, tt { + border-radius: 0; + font: 1em/1.5em 'Andale Mono', 'Lucida Console', monospace; + } + + h1 { font-size: 30px; } + h2 { font-size: 26px; } + h3 { font-size: 22px; } + h4 { font-size: 18px; } + h5 { font-size: 16px; } + h6 { font-size: 16px; } + + h1, h2, h3, h4, h5, h6, b, strong { + margin:0 0 15px 0; + font-weight: bold; + } + em, i, dfn { + font-style: italic; + } + dfn { + font-weight:bold; + } + p, code, pre, kbd { + margin:0 0 15px 0; + } + blockquote { + margin:0 15px 15px 15px; + } + cite { + font-style: italic; + } + li ul, li ol { + margin:0 15px; + } + ul, ol { + margin:0 15px 15px 15px; + } + ul { + list-style-type:disc; + } + ol { + list-style-type:decimal; + } + ol ol { + list-style: upper-alpha; + } + ol ol ol { + list-style: lower-roman; + } + ol ol ol ol { + list-style: lower-alpha; + } + dl { + margin:0 0 15px 0; + } + dl dt { + font-weight:bold; + } + dd { + margin-left:1.5em; + } + table { + margin-bottom:1.4em; + width:100%; + } + th { + font-weight:bold; + } + th, td, caption { + padding:4px 15px 4px 5px; + } + tfoot { + font-style:italic; + } + sup, sub { + line-height:0; + } + abbr, acronym { + border-bottom: 1px dotted; + } + address { + margin:0 0 15px; + font-style:italic; + } + del { + text-decoration: line-through; + } + pre { + margin: 15px 0; + white-space: pre; + } + img { + max-width: 100%; + } + pre, code, tt { + background-color: rgba(0,0,0,0.1); + color: red; + code { + color: rgba(0,0,0,1); + background-color: transparent; + } + border: none; + } + + .tvbMarkdown.reversed & { + .table > thead > tr > th { + color: rgba(255,255,255,0.5); + border-bottom: 2px solid rgba(255,255,255,0.2); + } + .table > tbody > tr > td { + border-top: 1px solid rgba(255,255,255,0.2); + } + color: rgba(255,255,255,1); + pre, code, tt { + background-color: rgba(255,255,255,0.2); + color: #ffa5a8; + code { + color: rgba(255,255,255,1); + background-color: transparent; + } + border: none; + } + } +} diff --git a/src/core_plugins/metrics/public/_mixins.scss b/src/core_plugins/metrics/public/_mixins.scss new file mode 100644 index 0000000000000..0cc119601148b --- /dev/null +++ b/src/core_plugins/metrics/public/_mixins.scss @@ -0,0 +1,14 @@ +@import 'node_modules/@elastic/eui/src/components/form/variables'; +@import 'node_modules/@elastic/eui/src/components/form/mixins'; + +@mixin tvbEditor__repeatingRow { + background-color: $euiColorLightestShade; + padding: $euiSizeS; + margin-bottom: $euiSizeS; +} + +// SASSTODO: These need to be converted to EUI, +// but they have type errors +@mixin tvbEditor__input { + @include euiFormControlStyle($borderOnly: false, $includeStates: true, $includeSizes: false); +} diff --git a/src/core_plugins/metrics/public/_ui_sortable.scss b/src/core_plugins/metrics/public/_ui_sortable.scss new file mode 100644 index 0000000000000..5d66b42a0a9d1 --- /dev/null +++ b/src/core_plugins/metrics/public/_ui_sortable.scss @@ -0,0 +1,41 @@ +// react-anything-sortable overrides +// Scoped to just the TSVB editor + +.tvbEditor { + + .ui-sortable { + display: block; + position: relative; + overflow: visible; + user-select: none; + + &:before, + &:after { + content: " "; + display: table; + } + + &:after { + clear: both; + } + + .ui-sortable-item.ui-sortable-dragging { + position: absolute; + z-index: $euiZLevel2; + } + + .ui-sortable-placeholder { + display: none; + + &.visible { + display: block; + opacity: 0.5; + z-index: -1; + } + } + } + +} + + + diff --git a/src/core_plugins/metrics/public/_variables.scss b/src/core_plugins/metrics/public/_variables.scss new file mode 100644 index 0000000000000..7182e9b2b2f10 --- /dev/null +++ b/src/core_plugins/metrics/public/_variables.scss @@ -0,0 +1,11 @@ +$tvbLineColor: transparentize($euiColorFullShade,0.8); +$tvbLineColorReversed: transparentize($euiColorEmptyShade,0.6); + +$tvbTextColor: transparentize($euiColorFullShade,0.6); +$tvbTextColorReversed: transparentize($euiColorEmptyShade,0.4); + +$tvbValueColor: transparentize($euiColorFullShade,0.3); +$tvbValueColorReversed: transparentize($euiColorEmptyShade,0.2); + +$tvbHoverBackgroundColor: transparentize($euiColorFullShade,0.9); +$tvbHoverBackgroundColorReversed: transparentize($euiColorEmptyShade,0.9); diff --git a/src/core_plugins/metrics/public/components/_annotations_editor.scss b/src/core_plugins/metrics/public/components/_annotations_editor.scss new file mode 100644 index 0000000000000..3372367be273d --- /dev/null +++ b/src/core_plugins/metrics/public/components/_annotations_editor.scss @@ -0,0 +1,13 @@ +@import 'node_modules/@elastic/eui/src/components/panel/mixins'; + +.tvbAnnotationsEditor__container { + padding: $euiSize; + background-color: $euiColorLightestShade; +} + +@include euiPanel('tvbAnnotationsEditor'); + +.tvbAnnotationsEditor { + margin-bottom: $euiSize; + padding: $euiSizeS; +} diff --git a/src/core_plugins/metrics/public/components/_color_picker.scss b/src/core_plugins/metrics/public/components/_color_picker.scss new file mode 100644 index 0000000000000..cafe3a1cb59c6 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_color_picker.scss @@ -0,0 +1,44 @@ +// EUITODO: Convert to EuiColorPicker + +@import 'node_modules/@elastic/eui/src/components/color_picker/index'; + +.tvbColorPicker { + display: flex; + align-items: center; + position: relative; +} + +.tvbColorPicker__swatch-empty, +.tvbColorPicker__swatch { + @extend .euiColorPicker__swatch; +} + +.tvbColorPicker__swatch-empty { + background-color: transparent; + background-size: 22px 22px; + background-image: repeating-linear-gradient( + -45deg, + $euiColorDanger, + $euiColorDanger 2px, + transparent 2px, + transparent $euiSize + ); +} + +.tvbColorPicker__clear { + margin-left: $euiSizeXS; +} + +.tvbColorPicker__popover { + position: absolute; + top: $euiSizeL; + z-index: 2; +} + +.tvbColorPicker__cover { + position: fixed; + top: 0px; + right: 0px; + left: 0px; + bottom: 0px; +} diff --git a/src/core_plugins/metrics/public/components/_color_rules.scss b/src/core_plugins/metrics/public/components/_color_rules.scss new file mode 100644 index 0000000000000..16ad929ec8bed --- /dev/null +++ b/src/core_plugins/metrics/public/components/_color_rules.scss @@ -0,0 +1,3 @@ +.tvbColorRules__rule { + @include tvbEditor__repeatingRow; +} diff --git a/src/core_plugins/metrics/public/components/_custom_color_picker.scss b/src/core_plugins/metrics/public/components/_custom_color_picker.scss new file mode 100644 index 0000000000000..a4147a4ee2d91 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_custom_color_picker.scss @@ -0,0 +1,97 @@ +// EUITODO: Convert to EuiColorPicker +// with additional support for alpha, saturation, swatches + +// SASSTODO: This custom picker moved all styles from react-color inline styles +// to SASS, but it should be in EUI. +// Also, some pixel values were kept as is to match inline styles from react-color +.tvbColorPickerPopUp { + @include euiBottomShadowMedium(); + background-color: $euiColorEmptyShade; + border-radius: $euiBorderRadius; + box-sizing: initial; + width: 275px; + font-family: 'Menlo'; +} + +.tvbColorPickerPopUp__saturation { + width: 100%; + padding-bottom: 55%; + position: relative; + border-radius: $euiBorderRadius $euiBorderRadius 0 0; + overflow: hidden; +} + +.tvbColorPickerPopUp__body { + padding: $euiSize; +} + +.tvbColorPickerPopUp__controls { + display: flex; +} + +.tvbColorPickerPopUp__color { + width: $euiSizeXL; + + // The color indicator doesn't work, hiding it until it does + display: none; +} + +.tvbColorPickerPopUp__color-disableAlpha { + width: $euiSizeL; +} + +.tvbColorPickerPopUp__swatch { + margin-top: 6px; + width: $euiSize; + height: $euiSize; + border-radius: $euiSizeS; + position: relative; + overflow: hidden; +} + +.tvbColorPickerPopUp__swatch-disableAlpha { + width: 10px; + height: 10px; + margin: 0px; +} + +.tvbColorPickerPopUp__active { + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + border-radius: $euiSizeS; + box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); + z-index: 2; +} + +.tvbColorPickerPopUp__toggles { + flex: 1 +} + +.tvbColorPickerPopUp__hue { + height: 10px; + position: relative; + margin-bottom: $euiSizeS; +} + +.tvbColorPickerPopUp__hue-disableAlpha { + margin-bottom: 0px; +} + +.tvbColorPickerPopUp__alpha { + height: 10px; + position: relative; +} + +.tvbColorPickerPopUp__alpha-disableAlpha { + display: none; +} + +.tvbColorPickerPopUp__swatches { + display: flex; + flex-wrap: wrap; + justify-content: center; + margin-top: $euiSize; +} diff --git a/src/core_plugins/metrics/public/components/_error.scss b/src/core_plugins/metrics/public/components/_error.scss new file mode 100644 index 0000000000000..607863ccbf048 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_error.scss @@ -0,0 +1,33 @@ +// EUITODO: Convert to EuiCallout +.tvbError { + padding: $euiSize; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + + // Calculate colors similar to EuiCallout + $tempBackgroundColor: tintOrShade($euiColorDanger, 90%, 70%); + background-color: $tempBackgroundColor; + + .tvbError__title { + @include euiTitle("xs"); + color: makeHighContrastColor($euiColorDanger, $tempBackgroundColor); + } +} + +.tvbError__additional, +.tvbError__stack { + margin-top: $euiSizeS; +} + +// EUITODO: Convert to EuiCodeBlock +.tvbError__stack { + padding: $euiSizeS; + background: $euiCodeBlockBackgroundColor; + color: $euiCodeBlockColor; + line-height: $euiLineHeight; + font-family: $euiCodeFontFamily; + font-weight: $euiFontWeightRegular; + white-space: pre-wrap; +} diff --git a/src/core_plugins/metrics/public/components/_index.scss b/src/core_plugins/metrics/public/components/_index.scss new file mode 100644 index 0000000000000..3a10b07c23e2b --- /dev/null +++ b/src/core_plugins/metrics/public/components/_index.scss @@ -0,0 +1,16 @@ +@import './annotations_editor'; +@import './color_rules'; +@import './color_picker'; +@import './custom_color_picker'; +@import './error'; +@import './no_data'; +@import './markdown_editor'; +@import './series_editor'; +@import './vis_editor'; +@import './vis_editor_visualization'; +@import './vis_picker'; +@import './vis_with_splits'; + +@import './aggs/index'; +@import './panel_config/index'; +@import './vis_types/index'; diff --git a/src/core_plugins/metrics/public/components/_markdown_editor.scss b/src/core_plugins/metrics/public/components/_markdown_editor.scss new file mode 100644 index 0000000000000..57ffb26cf55ca --- /dev/null +++ b/src/core_plugins/metrics/public/components/_markdown_editor.scss @@ -0,0 +1,28 @@ +.tvbMarkdownEditor { + display: flex; + background-color: $euiColorEmptyShade; + height: 500px; +} + +.tvbMarkdownEditor__editor, +.tvbMarkdownEditor__variables { + width: 50%; + flex: 1 0 auto; +} + +.tvbMarkdownEditor__editor { + border-right: 2px solid $euiColorLightestShade; +} + +.tvbMarkdownEditor__variables { + padding: $euiSizeS; + overflow: auto; +} + +.tvbMarkdownEditor__noVariables { + display: block; + padding-bottom: $euiSizeXXL; + padding-top: $euiSizeXXL - $euiSizeL; + text-align: center; + border-bottom: $euiBorderThin; +} diff --git a/src/core_plugins/metrics/public/components/_no_data.scss b/src/core_plugins/metrics/public/components/_no_data.scss new file mode 100644 index 0000000000000..5993600445028 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_no_data.scss @@ -0,0 +1,17 @@ +// EUITODO: Convert to EuiCallout +.tvbNoData { + padding: $euiSize; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + + // Calculate colors similar to EuiCallout + $tempBackgroundColor: tintOrShade($euiColorPrimary, 90%, 70%); + background-color: $tempBackgroundColor; + + .tvbNoData__title { + @include euiTitle("xs"); + color: makeHighContrastColor($euiColorPrimary, $tempBackgroundColor); + } +} diff --git a/src/core_plugins/metrics/public/components/_series_editor.scss b/src/core_plugins/metrics/public/components/_series_editor.scss new file mode 100644 index 0000000000000..38d879414d326 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_series_editor.scss @@ -0,0 +1,23 @@ +@import 'node_modules/@elastic/eui/src/components/panel/mixins'; + +.tvbSeriesEditor__container { + padding: $euiSize; + background-color: $euiColorLightestShade; +} + +@include euiPanel('tvbSeriesEditor'); + +.tvbSeriesEditor { + margin-bottom: $euiSize; + padding: $euiSizeS; + + // When dragging a collapsed item, make sure the contents doesn't show + &.ui-sortable-dragging { + overflow: hidden; + } +} + +.tvbSeries__body { + margin-left: $euiSizeXL; + margin-top: $euiSizeS; +} diff --git a/src/core_plugins/metrics/public/components/_vis_editor.scss b/src/core_plugins/metrics/public/components/_vis_editor.scss new file mode 100644 index 0000000000000..d171e6874b2a6 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_vis_editor.scss @@ -0,0 +1,4 @@ +.tvbEditor { + flex: 1; + background: $euiColorLightestShade; +} diff --git a/src/core_plugins/metrics/public/components/_vis_editor_visualization.scss b/src/core_plugins/metrics/public/components/_vis_editor_visualization.scss new file mode 100644 index 0000000000000..0d8e15eb9be7f --- /dev/null +++ b/src/core_plugins/metrics/public/components/_vis_editor_visualization.scss @@ -0,0 +1,19 @@ +.tvbEditorVisualization { + position: relative; + display: flex; + flex-direction: column; + flex: 1 0 auto; + width: 100%; + height: $euiSizeL * 10; + line-height: normal; + background-color: $euiColorEmptyShade; + overflow: auto; +} + +.tvbEditorVisualization__apply { + padding: $euiSizeS; +} + +.tvbEditorVisualization__draghandle { + @include kibana-resizer($size: ($euiSizeM + 2px), $direction: vertical); +} diff --git a/src/core_plugins/metrics/public/components/_vis_picker.scss b/src/core_plugins/metrics/public/components/_vis_picker.scss new file mode 100644 index 0000000000000..94f8d6fac97d4 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_vis_picker.scss @@ -0,0 +1,4 @@ +.tvbVisPickerItem { + font-size: $euiFontSizeM; + font-weight: $euiFontWeightMedium; +} diff --git a/src/core_plugins/metrics/public/components/_vis_with_splits.scss b/src/core_plugins/metrics/public/components/_vis_with_splits.scss new file mode 100644 index 0000000000000..9244d9ed7c689 --- /dev/null +++ b/src/core_plugins/metrics/public/components/_vis_with_splits.scss @@ -0,0 +1,11 @@ +.tvbSplitVis { + display: flex; + flex: 1 0 auto; +} + +.tvbSplitVis__split { + display: flex; + flex: 1 0 0; + flex-direction: column; + overflow: hidden; +} diff --git a/src/core_plugins/metrics/public/components/add_delete_buttons.js b/src/core_plugins/metrics/public/components/add_delete_buttons.js index 004445d9c45ad..222ffa1af0f5e 100644 --- a/src/core_plugins/metrics/public/components/add_delete_buttons.js +++ b/src/core_plugins/metrics/public/components/add_delete_buttons.js @@ -19,7 +19,7 @@ import PropTypes from 'prop-types'; import React from 'react'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiButtonIcon, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; function AddDeleteButtons(props) { const { testSubj } = props; @@ -28,16 +28,17 @@ function AddDeleteButtons(props) { return null; } return ( - - - + + + + + ); }; const createAdd = () => { @@ -45,16 +46,16 @@ function AddDeleteButtons(props) { return null; } return ( - - - + + + + + ); }; const deleteBtn = createDelete(); @@ -62,24 +63,24 @@ function AddDeleteButtons(props) { let clone; if (props.onClone && !props.disableAdd) { clone = ( - - - + + + + + ); } return ( -
      + { clone } { addBtn } { deleteBtn } -
      + ); } @@ -98,7 +99,8 @@ AddDeleteButtons.propTypes = { disableDelete: PropTypes.bool, onClone: PropTypes.func, onAdd: PropTypes.func, - onDelete: PropTypes.func + onDelete: PropTypes.func, + responsive: PropTypes.bool, }; export default AddDeleteButtons; diff --git a/src/core_plugins/metrics/public/components/add_delete_buttons.test.js b/src/core_plugins/metrics/public/components/add_delete_buttons.test.js index d414149b6634c..de24bbff55846 100644 --- a/src/core_plugins/metrics/public/components/add_delete_buttons.test.js +++ b/src/core_plugins/metrics/public/components/add_delete_buttons.test.js @@ -29,7 +29,7 @@ describe('AddDeleteButtons', () => { const wrapper = shallow( ); - wrapper.find('button').at(0).simulate('click'); + wrapper.find('EuiButtonIcon').at(0).simulate('click'); expect(handleAdd.calledOnce).to.equal(true); }); @@ -38,7 +38,7 @@ describe('AddDeleteButtons', () => { const wrapper = shallow( ); - wrapper.find('button').at(1).simulate('click'); + wrapper.find('EuiButtonIcon').at(1).simulate('click'); expect(handleDelete.calledOnce).to.equal(true); }); @@ -47,7 +47,7 @@ describe('AddDeleteButtons', () => { const wrapper = shallow( ); - wrapper.find('button').at(0).simulate('click'); + wrapper.find('EuiButtonIcon').at(0).simulate('click'); expect(handleClone.calledOnce).to.equal(true); }); diff --git a/src/core_plugins/metrics/public/components/aggs/_agg_row.scss b/src/core_plugins/metrics/public/components/aggs/_agg_row.scss new file mode 100644 index 0000000000000..bb65a43dd8bed --- /dev/null +++ b/src/core_plugins/metrics/public/components/aggs/_agg_row.scss @@ -0,0 +1,23 @@ +.tvbAggRow { + @include tvbEditor__repeatingRow; +} + +.tvbAggRow--split { + padding-left: $euiSizeXL; +} + +.tvbAggRow__visibilityIcon { + margin-top: $euiSizeXS; +} + +.tvbAggRow__children { + padding-top: $euiSizeS - 2px; +} + +.tvbAggRow__unavailable { + margin-top: -$euiSizeXS; +} + +.tvbAgg__input { + @include euiFormControlStyle($borderOnly: false, $includeStates: true, $includeSizes: false); +} diff --git a/src/core_plugins/metrics/public/components/aggs/_index.scss b/src/core_plugins/metrics/public/components/aggs/_index.scss new file mode 100644 index 0000000000000..cf423d36ef486 --- /dev/null +++ b/src/core_plugins/metrics/public/components/aggs/_index.scss @@ -0,0 +1 @@ +@import './agg_row'; diff --git a/src/core_plugins/metrics/public/components/aggs/agg_row.js b/src/core_plugins/metrics/public/components/aggs/agg_row.js index 1e5fea49c9a60..756e7b7eb3fd0 100644 --- a/src/core_plugins/metrics/public/components/aggs/agg_row.js +++ b/src/core_plugins/metrics/public/components/aggs/agg_row.js @@ -21,47 +21,49 @@ import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; import AddDeleteButtons from '../add_delete_buttons'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiButtonIcon, EuiIcon, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; function AggRow(props) { - let iconClassName = 'fa fa-eye-slash'; - let iconRowClassName = 'vis_editor__agg_row-icon'; + let iconType = 'eyeClosed'; + let iconColor = 'subdued'; const last = _.last(props.siblings); if (last.id === props.model.id) { - iconClassName = 'fa fa-eye'; - iconRowClassName += ' last'; + iconType = 'eye'; + iconColor = 'text'; } let dragHandle; if (!props.disableDelete) { dragHandle = ( -
      - -
      - -
      + + + -
      + ); } return ( -
      -
      -
      - -
      - {props.children} - { dragHandle } - -
      +
      + + + + + + {props.children} + + {dragHandle} + + + +
      ); } diff --git a/src/core_plugins/metrics/public/components/aggs/agg_select.js b/src/core_plugins/metrics/public/components/aggs/agg_select.js index 91e3c9478b154..f447104cf591f 100644 --- a/src/core_plugins/metrics/public/components/aggs/agg_select.js +++ b/src/core_plugins/metrics/public/components/aggs/agg_select.js @@ -80,7 +80,7 @@ function filterByPanelType(panelType) { } function AggSelect(props) { - const { siblings, panelType, value } = props; + const { siblings, panelType, value, onChange, ...rest } = props; const selectedOption = allAggOptions.find(option => { return value === option.value; @@ -120,18 +120,19 @@ function AggSelect(props) { const handleChange = selectedOptions => { if (!selectedOptions || selectedOptions.length <= 0) return; - props.onChange(selectedOptions); + onChange(selectedOptions); }; return ( -
      +
      ); diff --git a/src/core_plugins/metrics/public/components/aggs/calculation.js b/src/core_plugins/metrics/public/components/aggs/calculation.js index 77bdb2aa25125..9a22596915b66 100644 --- a/src/core_plugins/metrics/public/components/aggs/calculation.js +++ b/src/core_plugins/metrics/public/components/aggs/calculation.js @@ -29,7 +29,15 @@ import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; import Vars from './vars'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, + EuiTextArea, + EuiFormRow, + EuiCode, +} from '@elastic/eui'; class CalculationAgg extends Component { @@ -61,40 +69,49 @@ class CalculationAgg extends Component { onDelete={this.props.onDelete} siblings={this.props.siblings} > -
      -
      -
      Aggregation
      + + + Aggregation -
      -
      Variables
      - -
      -
      - - + + + Variables + + + + + + Variables are keys on the params object, i.e. params.<name>. + To access the bucket interval (in milliseconds) use params._interval. +
      + } + > + -
      -
      -
      + + + ); } diff --git a/src/core_plugins/metrics/public/components/aggs/cumulative_sum.js b/src/core_plugins/metrics/public/components/aggs/cumulative_sum.js index 3ab487c3b6d96..5bb10f6982c56 100644 --- a/src/core_plugins/metrics/public/components/aggs/cumulative_sum.js +++ b/src/core_plugins/metrics/public/components/aggs/cumulative_sum.js @@ -24,9 +24,11 @@ import AggSelect from './agg_select'; import MetricSelect from './metric_select'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; +import { htmlIdGenerator, EuiFlexGroup, EuiFlexItem, EuiFormLabel, EuiFormRow } from '@elastic/eui'; function CumulativeSumAgg(props) { const { model, siblings } = props; + const htmlId = htmlIdGenerator(); const handleChange = createChangeHandler(props.onChange, model); const handleSelectChange = createSelectHandler(handleChange); return ( @@ -37,24 +39,31 @@ function CumulativeSumAgg(props) { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      -
      Metric
      - -
      + + + Aggregation + + + + + + + + ); diff --git a/src/core_plugins/metrics/public/components/aggs/derivative.js b/src/core_plugins/metrics/public/components/aggs/derivative.js index 73ce9a244aa22..65213afe36ac0 100644 --- a/src/core_plugins/metrics/public/components/aggs/derivative.js +++ b/src/core_plugins/metrics/public/components/aggs/derivative.js @@ -25,7 +25,14 @@ import AggRow from './agg_row'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, + EuiFieldText, + EuiFormRow, +} from '@elastic/eui'; export const DerivativeAgg = props => { const { siblings } = props; @@ -47,36 +54,47 @@ export const DerivativeAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      -
      Metric
      - -
      -
      - - -
      + + + Aggregation + + + + + + + + + + + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/field_select.js b/src/core_plugins/metrics/public/components/aggs/field_select.js index 175ae7126bc6a..9eef8f3f4e74f 100644 --- a/src/core_plugins/metrics/public/components/aggs/field_select.js +++ b/src/core_plugins/metrics/public/components/aggs/field_select.js @@ -25,12 +25,12 @@ import { import generateByTypeFilter from '../lib/generate_by_type_filter'; function FieldSelect(props) { - const { type, fields, indexPattern, value, onChange, disabled } = props; + const { type, fields, indexPattern, value, onChange, disabled, restrict, ...rest } = props; if (type === 'count') { return null; } const options = (fields[indexPattern] || []) - .filter(generateByTypeFilter(props.restrict)) + .filter(generateByTypeFilter(restrict)) .map(field => { return { label: field.name, value: field.name }; }); @@ -47,7 +47,8 @@ function FieldSelect(props) { options={options} selectedOptions={selectedOptions} onChange={onChange} - singleSelection={true} + singleSelection={{ asPlainText: true }} + {...rest} /> ); } diff --git a/src/core_plugins/metrics/public/components/aggs/filter_ratio.js b/src/core_plugins/metrics/public/components/aggs/filter_ratio.js index 6db2d61af9134..d0291ca958442 100644 --- a/src/core_plugins/metrics/public/components/aggs/filter_ratio.js +++ b/src/core_plugins/metrics/public/components/aggs/filter_ratio.js @@ -25,7 +25,15 @@ import AggRow from './agg_row'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, + EuiFieldText, + EuiSpacer, + EuiFormRow, +} from '@elastic/eui'; export const FilterRatioAgg = props => { const { @@ -58,59 +66,58 @@ export const FilterRatioAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      -
      -
      Aggregation
      - -
      -
      - - + + + Aggregation + + + + + + -
      -
      - - + + + + + -
      -
      -
      -
      -
      Metric Aggregation
      - -
      - { model.metric_agg !== 'count' ? ( -
      - + + + + + + + + + + + Metric Aggregation + + + + { model.metric_agg !== 'count' ? ( + + { value={model.field} onChange={handleSelectChange('field')} /> -
      ) : null } -
      -
      + + ) : null } + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/math.js b/src/core_plugins/metrics/public/components/aggs/math.js index d70617d1148d5..77b33b9a14069 100644 --- a/src/core_plugins/metrics/public/components/aggs/math.js +++ b/src/core_plugins/metrics/public/components/aggs/math.js @@ -28,6 +28,16 @@ import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; import Vars from './vars'; +import { + htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, + EuiTextArea, + EuiLink, + EuiFormRow, + EuiCode, +} from '@elastic/eui'; class MathAgg extends Component { componentWillMount() { @@ -42,6 +52,7 @@ class MathAgg extends Component { render() { const { siblings } = this.props; + const htmlId = htmlIdGenerator(); const defaults = { script: '' }; const model = { ...defaults, ...this.props.model }; @@ -58,60 +69,63 @@ class MathAgg extends Component { onDelete={this.props.onDelete} siblings={this.props.siblings} > -
      -
      -
      Aggregation
      + + + Aggregation -
      -
      Variables
      - -
      -
      - - -
      - This field uses basic math expressions (see{' '} - - TinyMath - ) - Variables are keys on the params object, - i.e. params.<name> To access all the data use - params._all.<name>.values for an array of the - values and params._all.<name>.timestamps - for an array of the timestamps. params._timestamp - is available for the current bucket's timestamp, - params._index is available for the current - bucket's index, and params._intervals - available for the interval in milliseconds. -
      -
      -
      -
      + fullWidth + value={model.script} + /> + + + ); } diff --git a/src/core_plugins/metrics/public/components/aggs/metric_select.js b/src/core_plugins/metrics/public/components/aggs/metric_select.js index fb12f085a6254..7bd7f42d3d4c8 100644 --- a/src/core_plugins/metrics/public/components/aggs/metric_select.js +++ b/src/core_plugins/metrics/public/components/aggs/metric_select.js @@ -59,11 +59,11 @@ export function filterRows(includeSiblings) { } function MetricSelect(props) { - const { restrict, metric, onChange, value, exclude, includeSiblings } = props; + const { additionalOptions, restrict, metric, metrics, onChange, value, exclude, includeSiblings, clearable, ...rest } = props; - const metrics = props.metrics.filter(createTypeFilter(restrict, exclude)); + const calculatedMetrics = metrics.filter(createTypeFilter(restrict, exclude)); - const siblings = calculateSiblings(metrics, metric); + const siblings = calculateSiblings(calculatedMetrics, metric); // Percentiles need to be handled differently because one percentile aggregation // could have multiple percentiles associated with it. So the user needs a way @@ -71,7 +71,7 @@ function MetricSelect(props) { const percentileOptions = siblings .filter(row => /^percentile/.test(row.type)) .reduce((acc, row) => { - const label = calculateLabel(row, metrics); + const label = calculateLabel(row, calculatedMetrics); row.percentiles.forEach(p => { if (p.value) { const value = /\./.test(p.value) ? p.value : `${p.value}.0`; @@ -85,10 +85,10 @@ function MetricSelect(props) { }, []); const options = siblings.filter(filterRows(includeSiblings)).map(row => { - const label = calculateLabel(row, metrics); + const label = calculateLabel(row, calculatedMetrics); return { value: row.id, label }; }); - const allOptions = [...options, ...props.additionalOptions, ...percentileOptions]; + const allOptions = [...options, ...additionalOptions, ...percentileOptions]; const selectedOption = allOptions.find(option => { return value === option.value; @@ -101,7 +101,9 @@ function MetricSelect(props) { options={allOptions} selectedOptions={selectedOptions} onChange={onChange} - singleSelection={true} + singleSelection={{ asPlainText: true }} + isClearable={clearable} + {...rest} /> ); } diff --git a/src/core_plugins/metrics/public/components/aggs/moving_average.js b/src/core_plugins/metrics/public/components/aggs/moving_average.js index 245037c8959f9..391f48a658a75 100644 --- a/src/core_plugins/metrics/public/components/aggs/moving_average.js +++ b/src/core_plugins/metrics/public/components/aggs/moving_average.js @@ -28,7 +28,14 @@ import createTextHandler from '../lib/create_text_handler'; import createNumberHandler from '../lib/create_number_handler'; import { htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, EuiComboBox, + EuiSpacer, + EuiFormRow, + EuiCode, + EuiTextArea, } from '@elastic/eui'; export const MovingAverageAgg = props => { @@ -71,91 +78,109 @@ export const MovingAverageAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      -
      -
      Aggregation
      - -
      -
      -
      Metric
      + + + Aggregation + + + + -
      -
      -
      -
      - + + + + + + + + + -
      -
      - + + + + + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + Should it be text or number? + */} -
      -
      - + + + + -
      -
      - + + + + + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + Should it be text or number? + */} -
      -
      -
      -
      - - -
      -
      -
      + + + + + + + + Key=Value space-delimited + } + > + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/percentile.js b/src/core_plugins/metrics/public/components/aggs/percentile.js index c9744a8c69340..7a1e89db80830 100644 --- a/src/core_plugins/metrics/public/components/aggs/percentile.js +++ b/src/core_plugins/metrics/public/components/aggs/percentile.js @@ -30,8 +30,15 @@ import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import { htmlIdGenerator, + EuiSpacer, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, EuiComboBox, + EuiFieldNumber, + EuiFormRow, } from '@elastic/eui'; + const newPercentile = (opts) => { return _.assign({ id: uuid.v1(), mode: 'line', shade: 0.2 }, opts); }; @@ -65,64 +72,74 @@ class Percentiles extends Component { if (model.mode === 'line') { optionsStyle.display = 'none'; } + const labelStyle = { marginBottom: 0 }; const htmlId = htmlIdGenerator(model.id); const selectedModeOption = modeOptions.find(option => { return model.mode === option.value; }); return ( -
      -
      - - -
      + + + + + + + + Mode: + + -
      - - - - -
      - -
      + + + + Fill to: + + + + + + + Shade (0 to 1): + + + + + + + + + + + ); } @@ -132,9 +149,9 @@ class Percentiles extends Component { const rows = model[name].map(this.renderRow); return ( -
      + { rows } -
      + ); } } @@ -166,6 +183,7 @@ class PercentileAgg extends Component { // eslint-disable-line react/no-multi-co const handleChange = createChangeHandler(this.props.onChange, model); const handleSelectChange = createSelectHandler(handleChange); const indexPattern = series.override_index_pattern && series.series_index_pattern || panel.index_pattern; + const htmlId = htmlIdGenerator(); return ( -
      -
      -
      -
      Aggregation
      - -
      -
      -
      Field
      + + + Aggregation + + + + -
      -
      - -
      + + + + + + + +
      ); } diff --git a/src/core_plugins/metrics/public/components/aggs/percentile_rank.js b/src/core_plugins/metrics/public/components/aggs/percentile_rank.js index 626f6105d5497..5dfefa6c37426 100644 --- a/src/core_plugins/metrics/public/components/aggs/percentile_rank.js +++ b/src/core_plugins/metrics/public/components/aggs/percentile_rank.js @@ -25,7 +25,14 @@ import AggRow from './agg_row'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, + EuiFieldText, + EuiFormRow, +} from '@elastic/eui'; export const PercentileRankAgg = props => { const { series, panel, fields } = props; @@ -47,36 +54,38 @@ export const PercentileRankAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      - - -
      -
      - - -
      + + + Aggregation + + + + + + + + + + + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/positive_only.js b/src/core_plugins/metrics/public/components/aggs/positive_only.js index cf04e6549cb0b..dedef18b71251 100644 --- a/src/core_plugins/metrics/public/components/aggs/positive_only.js +++ b/src/core_plugins/metrics/public/components/aggs/positive_only.js @@ -24,6 +24,7 @@ import MetricSelect from './metric_select'; import AggRow from './agg_row'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; +import { htmlIdGenerator, EuiFlexGroup, EuiFlexItem, EuiFormLabel, EuiFormRow } from '@elastic/eui'; export const PositiveOnlyAgg = props => { const { siblings } = props; @@ -31,6 +32,7 @@ export const PositiveOnlyAgg = props => { const defaults = { unit: '' }; const model = { ...defaults, ...props.model }; + const htmlId = htmlIdGenerator(); const handleChange = createChangeHandler(props.onChange, model); const handleSelectChange = createSelectHandler(handleChange); @@ -42,24 +44,31 @@ export const PositiveOnlyAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      -
      Metric
      - -
      + + + Aggregation + + + + + + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/serial_diff.js b/src/core_plugins/metrics/public/components/aggs/serial_diff.js index b4d2871b731a3..c1d86ce9e30de 100644 --- a/src/core_plugins/metrics/public/components/aggs/serial_diff.js +++ b/src/core_plugins/metrics/public/components/aggs/serial_diff.js @@ -25,7 +25,7 @@ import AggRow from './agg_row'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import createNumberHandler from '../lib/create_number_handler'; -import { htmlIdGenerator } from '@elastic/eui'; +import { htmlIdGenerator, EuiFlexGroup, EuiFlexItem, EuiFormLabel, EuiFormRow } from '@elastic/eui'; export const SerialDiffAgg = props => { const { siblings } = props; @@ -46,34 +46,45 @@ export const SerialDiffAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      -
      Metric
      - -
      -
      - - -
      + + + Aggregation + + + + + + + + + + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + Should it be text or number? + */} + + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/series_agg.js b/src/core_plugins/metrics/public/components/aggs/series_agg.js index ebcde12d33c57..6fd85372bf921 100644 --- a/src/core_plugins/metrics/public/components/aggs/series_agg.js +++ b/src/core_plugins/metrics/public/components/aggs/series_agg.js @@ -25,7 +25,12 @@ import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import { htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, EuiComboBox, + EuiTitle, + EuiFormRow, } from '@elastic/eui'; function SeriesAgg(props) { @@ -60,11 +65,9 @@ function SeriesAgg(props) { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      - Series Agg is not compatible with the table visualization. -
      -
      + + Series Agg is not compatible with the table visualization. + ); } @@ -77,25 +80,28 @@ function SeriesAgg(props) { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      - - -
      + + + Aggregation + + + + + + + + ); diff --git a/src/core_plugins/metrics/public/components/aggs/static.js b/src/core_plugins/metrics/public/components/aggs/static.js index bedcbd75a0b29..aa431685c229e 100644 --- a/src/core_plugins/metrics/public/components/aggs/static.js +++ b/src/core_plugins/metrics/public/components/aggs/static.js @@ -24,7 +24,14 @@ import AggRow from './agg_row'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, + EuiFieldNumber, + EuiFormRow, +} from '@elastic/eui'; export const Static = props => { const handleChange = createChangeHandler(props.onChange, props.model); @@ -48,32 +55,27 @@ export const Static = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      -
      -
      Aggregation
      - -
      -
      - - + + Aggregation + + + + + -
      -
      -
      + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/std_agg.js b/src/core_plugins/metrics/public/components/aggs/std_agg.js index 1e97dca5e8d4d..f61cea24b04f2 100644 --- a/src/core_plugins/metrics/public/components/aggs/std_agg.js +++ b/src/core_plugins/metrics/public/components/aggs/std_agg.js @@ -24,7 +24,7 @@ import FieldSelect from './field_select'; import AggRow from './agg_row'; import createChangeHandler from '../lib/create_change_handler'; import createSelectHandler from '../lib/create_select_handler'; -import { htmlIdGenerator } from '@elastic/eui'; +import { htmlIdGenerator, EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiFormLabel } from '@elastic/eui'; function StandardAgg(props) { const { model, panel, series, fields } = props; @@ -47,32 +47,39 @@ function StandardAgg(props) { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      - { - model.type !== 'count' - ? ( -
      - - -
      - ) : null - } + + + Aggregation + + + + { + model.type !== 'count' + ? ( + + + + + + ) : null + } + + ); diff --git a/src/core_plugins/metrics/public/components/aggs/std_deviation.js b/src/core_plugins/metrics/public/components/aggs/std_deviation.js index d8e4e96720c24..f7608c875d12e 100644 --- a/src/core_plugins/metrics/public/components/aggs/std_deviation.js +++ b/src/core_plugins/metrics/public/components/aggs/std_deviation.js @@ -27,7 +27,12 @@ import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; import { htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, EuiComboBox, + EuiFieldText, + EuiFormRow, } from '@elastic/eui'; export const StandardDeviationAgg = props => { @@ -63,46 +68,48 @@ export const StandardDeviationAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      - - -
      -
      - - -
      -
      - - -
      + + + Aggregation + + + + + + + + + + + + + + + + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/std_sibling.js b/src/core_plugins/metrics/public/components/aggs/std_sibling.js index 4e4fe2e9e9406..30232933ffc71 100644 --- a/src/core_plugins/metrics/public/components/aggs/std_sibling.js +++ b/src/core_plugins/metrics/public/components/aggs/std_sibling.js @@ -27,7 +27,12 @@ import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; import { htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFieldText, EuiComboBox, + EuiFormLabel, + EuiFormRow, } from '@elastic/eui'; export const StandardSiblingAgg = props => { @@ -43,15 +48,14 @@ export const StandardSiblingAgg = props => { const stdDev = {}; if (model.type === 'std_deviation_bucket') { stdDev.sigma = ( -
      - - -
      + + + + + ); const modeOptions = [ @@ -65,16 +69,16 @@ export const StandardSiblingAgg = props => { }); stdDev.mode = ( -
      - - -
      + + + + + ); } @@ -86,27 +90,34 @@ export const StandardSiblingAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      Aggregation
      - -
      -
      -
      Metric
      - -
      - { stdDev.sigma } - { stdDev.mode } + + + Aggregation + + + + + + + + { stdDev.sigma } + { stdDev.mode } + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/top_hit.js b/src/core_plugins/metrics/public/components/aggs/top_hit.js index bfda4f9780c72..06abcfad6039f 100644 --- a/src/core_plugins/metrics/public/components/aggs/top_hit.js +++ b/src/core_plugins/metrics/public/components/aggs/top_hit.js @@ -26,7 +26,12 @@ import createSelectHandler from '../lib/create_select_handler'; import createTextHandler from '../lib/create_text_handler'; import { htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormLabel, EuiComboBox, + EuiSpacer, + EuiFormRow, } from '@elastic/eui'; export const TopHitAgg = props => { @@ -72,23 +77,20 @@ export const TopHitAgg = props => { onDelete={props.onDelete} siblings={props.siblings} > -
      -
      -
      -
      Aggregation
      - -
      -
      - + + + Aggregation + + + + { value={model.field} onChange={handleSelectChange('field')} /> -
      -
      -
      -
      - + + + + + + + + + + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + Should it be text or number? + */} -
      -
      - + + + + -
      -
      - + + + + -
      -
      - + + + + -
      -
      -
      + + + ); }; diff --git a/src/core_plugins/metrics/public/components/aggs/unsupported_agg.js b/src/core_plugins/metrics/public/components/aggs/unsupported_agg.js index 15276f0d64ad9..3c24bc1b5266f 100644 --- a/src/core_plugins/metrics/public/components/aggs/unsupported_agg.js +++ b/src/core_plugins/metrics/public/components/aggs/unsupported_agg.js @@ -19,6 +19,8 @@ import AggRow from './agg_row'; import React from 'react'; +import { EuiCode, EuiTitle } from '@elastic/eui'; + export function UnsupportedAgg(props) { return ( -
      -

      - The {props.model.type} aggregation is no longer - supported. -

      -
      + + The {props.model.type} aggregation is no longer supported. +
      ); } diff --git a/src/core_plugins/metrics/public/components/aggs/vars.js b/src/core_plugins/metrics/public/components/aggs/vars.js index f80537ebd2048..1ace6b717aee8 100644 --- a/src/core_plugins/metrics/public/components/aggs/vars.js +++ b/src/core_plugins/metrics/public/components/aggs/vars.js @@ -23,6 +23,7 @@ import _ from 'lodash'; import AddDeleteButtons from '../add_delete_buttons'; import * as collectionActions from '../lib/collection_actions'; import MetricSelect from './metric_select'; +import { EuiFlexGroup, EuiFlexItem, EuiFieldText } from '@elastic/eui'; class CalculationVars extends Component { @@ -44,34 +45,36 @@ class CalculationVars extends Component { const handleAdd = collectionActions.handleAdd.bind(null, this.props); const handleDelete = collectionActions.handleDelete.bind(null, this.props, row); return ( -
      -
      - -
      -
      - -
      -
      - -
      -
      + + + + + + + + + + + + + ); } @@ -80,9 +83,9 @@ class CalculationVars extends Component { if (!model[name]) return (
      ); const rows = model[name].map(this.renderRow); return ( -
      + { rows } -
      + ); } diff --git a/src/core_plugins/metrics/public/components/annotations_editor.js b/src/core_plugins/metrics/public/components/annotations_editor.js index b7c97455c7b76..88c8f2062121b 100644 --- a/src/core_plugins/metrics/public/components/annotations_editor.js +++ b/src/core_plugins/metrics/public/components/annotations_editor.js @@ -30,6 +30,15 @@ import YesNo from './yes_no'; import { htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiFormLabel, + EuiSpacer, + EuiFieldText, + EuiTitle, + EuiButton, + EuiCode, EuiText, } from '@elastic/eui'; @@ -74,118 +83,133 @@ class AnnotationsEditor extends Component { const handleDelete = collectionActions.handleDelete .bind(null, this.props, model); return ( -
      -
      - -
      -
      -
      -
      - - -
      -
      - - -
      -
      -
      -
      - - -
      -
      - Ignore Global Filters - - -
      -
      - Ignore Panel Filters - - -
      -
      -
      -
      - -
      - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ignore global filters? + + -
      -
      -
      - - -
      -
      - - -
      -
      -
      -
      - -
      + + + Ignore panel filters? + + + + + + + + + + + + + + + + + + + + eg. {'{{field}}'} + } + fullWidth + > + + + + + + + + + + +
      ); } @@ -197,36 +221,26 @@ class AnnotationsEditor extends Component { const handleAdd = collectionActions.handleAdd .bind(null, this.props, newAnnotation); content = ( -
      - -

      Click the button below to create an annotation data source.

      - -
      -
      + +

      Click the button below to create an annotation data source.

      + Add data source +
      ); } else { const annotations = model.annotations.map(this.renderRow); content = ( -
      -
      - -
      +
      + + Data sources + + + { annotations }
      ); } return( -
      +
      { content }
      ); diff --git a/src/core_plugins/metrics/public/components/color_picker.js b/src/core_plugins/metrics/public/components/color_picker.js index 841b716e5cec2..3458556300079 100644 --- a/src/core_plugins/metrics/public/components/color_picker.js +++ b/src/core_plugins/metrics/public/components/color_picker.js @@ -22,7 +22,7 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; -import { EuiToolTip, } from '@elastic/eui'; +import { EuiIconTip, } from '@elastic/eui'; import Picker from './custom_color_picker'; class ColorPicker extends Component { @@ -66,7 +66,7 @@ class ColorPicker extends Component { return (
      - + - +
      @@ -145,25 +166,30 @@ class MarkdownEditor extends Component { {rows}
      + {rows.length === 0 && ( -
      No variables available for the selected data metrics.
      + + No variables available for the selected data metrics. + )} -
      - -

      - There is also a special variable named _all which you can use to access the entire tree. This is useful for - creating lists with data from a group by... -

      -
      -
      + + + +

      + There is also a special variable named _all which you can use to access the entire tree. This is useful for + creating lists with data from a group by... +

      +
      + + {`# All servers: - {{#each _all}} - - {{ label }} {{ last.formatted }} - {{/each}}`} + {{#each _all}} + - {{ label }} {{ last.formatted }} + {{/each}}`}

      @@ -174,8 +200,8 @@ class MarkdownEditor extends Component { MarkdownEditor.propTypes = { onChange: PropTypes.func, model: PropTypes.object, - visData: PropTypes.object, - dateFormat: PropTypes.string + dateFormat: PropTypes.string, + visData$: PropTypes.object, }; export default MarkdownEditor; diff --git a/src/core_plugins/metrics/public/components/no_data.js b/src/core_plugins/metrics/public/components/no_data.js index 331d3f3a5c36d..579d87076fe05 100644 --- a/src/core_plugins/metrics/public/components/no_data.js +++ b/src/core_plugins/metrics/public/components/no_data.js @@ -21,8 +21,8 @@ import React from 'react'; function NoDataComponent() { return ( -
      -
      No data to display for the selected metrics .
      +
      +
      No data to display for the selected metrics
      ); } diff --git a/src/core_plugins/metrics/public/components/panel_config.js b/src/core_plugins/metrics/public/components/panel_config.js index 59e3fb381b2df..91c9449276083 100644 --- a/src/core_plugins/metrics/public/components/panel_config.js +++ b/src/core_plugins/metrics/public/components/panel_config.js @@ -48,8 +48,8 @@ PanelConfig.propTypes = { fields: PropTypes.object, model: PropTypes.object, onChange: PropTypes.func, - visData: PropTypes.object, - dateFormat: PropTypes.string + dateFormat: PropTypes.string, + visData$: PropTypes.object, }; export default PanelConfig; diff --git a/src/core_plugins/metrics/public/components/panel_config/_index.scss b/src/core_plugins/metrics/public/components/panel_config/_index.scss new file mode 100644 index 0000000000000..b2c1b560dcdb1 --- /dev/null +++ b/src/core_plugins/metrics/public/components/panel_config/_index.scss @@ -0,0 +1 @@ +@import './panel_config'; diff --git a/src/core_plugins/metrics/public/components/panel_config/_panel_config.scss b/src/core_plugins/metrics/public/components/panel_config/_panel_config.scss new file mode 100644 index 0000000000000..886b64f6fe647 --- /dev/null +++ b/src/core_plugins/metrics/public/components/panel_config/_panel_config.scss @@ -0,0 +1,4 @@ +.tvbPanelConfig__container { + padding: $euiSize; + background-color: $euiColorLightestShade; +} diff --git a/src/core_plugins/metrics/public/components/panel_config/gauge.js b/src/core_plugins/metrics/public/components/panel_config/gauge.js index 043133992663d..f275f7d1fc9dc 100644 --- a/src/core_plugins/metrics/public/components/panel_config/gauge.js +++ b/src/core_plugins/metrics/public/components/panel_config/gauge.js @@ -30,6 +30,18 @@ import YesNo from '../yes_no'; import { htmlIdGenerator, EuiComboBox, + EuiTabs, + EuiTab, + EuiPanel, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiFormLabel, + EuiSpacer, + EuiFieldText, + EuiFieldNumber, + EuiTitle, + EuiHorizontalRule, } from '@elastic/eui'; class GaugePanelConfig extends Component { @@ -90,92 +102,137 @@ class GaugePanelConfig extends Component { ); } else { view = ( -
      - -
      - - -
      Ignore Global Filter
      - -
      -
      -
      Background Color
      - - - - - +
      + + Data + -
      -
      -
      Inner Color
      - - - - - -
      -
      -
      Color Rules
      -
      -
      + + + + + + + + + + + Ignore global filter? + + + + + + + + + + Style + + + + + + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + It accepts a null value, but is passed a empty string. + */} + + + + + + + + + + + + + + + + + + + + + + + + + Background color: + + + + + + Inner color: + + + + + + + + + Color rules + -
      +
      ); } return (
      -
      - - -
      + > + Panel options + + {view}
      ); @@ -218,7 +273,6 @@ GaugePanelConfig.propTypes = { fields: PropTypes.object, model: PropTypes.object, onChange: PropTypes.func, - visData: PropTypes.object, }; export default GaugePanelConfig; diff --git a/src/core_plugins/metrics/public/components/panel_config/markdown.js b/src/core_plugins/metrics/public/components/panel_config/markdown.js index 29d419b596696..e48e62fab76ea 100644 --- a/src/core_plugins/metrics/public/components/panel_config/markdown.js +++ b/src/core_plugins/metrics/public/components/panel_config/markdown.js @@ -32,6 +32,17 @@ import { KuiCodeEditor } from '@kbn/ui-framework/components'; import { htmlIdGenerator, EuiComboBox, + EuiTabs, + EuiTab, + EuiPanel, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiFormLabel, + EuiSpacer, + EuiFieldText, + EuiTitle, + EuiHorizontalRule, } from '@elastic/eui'; const lessC = less(window, { env: 'production' }); @@ -93,61 +104,91 @@ class MarkdownPanelConfig extends Component { ); } else { view = ( -
      - -
      -
      Background Color
      - - - -
      Ignore Global Filter
      - -
      -
      -
      Show Scrollbars
      - + + Data + + + - -
      - -
      -
      -
      -
      Custom CSS (supports Less)
      -
      -
      + + + + + + + + + + + Ignore global filter? + + + + + + + + + + Style + + + + + Background color: + + + + + + Show scrollbars? + + + + + + Vertical alignment: + + + + + + + + + Custom CSS (supports Less) + -
      +
      ); } return (
      -
      - - - -
      + > + Panel options + + {view}
      ); @@ -197,7 +235,6 @@ MarkdownPanelConfig.propTypes = { fields: PropTypes.object, model: PropTypes.object, onChange: PropTypes.func, - visData: PropTypes.object, dateFormat: PropTypes.string }; diff --git a/src/core_plugins/metrics/public/components/panel_config/metric.js b/src/core_plugins/metrics/public/components/panel_config/metric.js index b8b9709a1101e..eea7608670bff 100644 --- a/src/core_plugins/metrics/public/components/panel_config/metric.js +++ b/src/core_plugins/metrics/public/components/panel_config/metric.js @@ -25,7 +25,20 @@ import createTextHandler from '../lib/create_text_handler'; import ColorRules from '../color_rules'; import YesNo from '../yes_no'; import uuid from 'uuid'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiTabs, + EuiTab, + EuiPanel, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiFormLabel, + EuiSpacer, + EuiFieldText, + EuiTitle, + EuiHorizontalRule, +} from '@elastic/eui'; class MetricPanelConfig extends Component { @@ -67,61 +80,77 @@ class MetricPanelConfig extends Component { ); } else { view = ( -
      - -
      - - -
      Ignore Global Filter
      - + + Data + + + -
      -
      -
      Color Rules
      -
      -
      + + + + + + + + + + + Ignore global filter? + + + + + + + + + + Color rules + + -
      +
      ); } return (
      -
      - - -
      + data-test-subj="metricEditorPanelOptionsBtn" + > + Panel options + + {view}
      ); @@ -133,7 +162,6 @@ MetricPanelConfig.propTypes = { fields: PropTypes.object, model: PropTypes.object, onChange: PropTypes.func, - visData: PropTypes.object, }; export default MetricPanelConfig; diff --git a/src/core_plugins/metrics/public/components/panel_config/table.js b/src/core_plugins/metrics/public/components/panel_config/table.js index 58fcf43c7aaad..fbed539877417 100644 --- a/src/core_plugins/metrics/public/components/panel_config/table.js +++ b/src/core_plugins/metrics/public/components/panel_config/table.js @@ -26,7 +26,22 @@ import createTextHandler from '../lib/create_text_handler'; import createSelectHandler from '../lib/create_select_handler'; import uuid from 'uuid'; import YesNo from '../yes_no'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiTabs, + EuiTab, + EuiPanel, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiFormLabel, + EuiSpacer, + EuiFieldText, + EuiTitle, + EuiHorizontalRule, + EuiCode, + EuiText, +} from '@elastic/eui'; class TablePanelConfig extends Component { @@ -59,45 +74,63 @@ class TablePanelConfig extends Component { if (selectedTab === 'data') { view = (
      -
      -
      -
      +
      + +

      For the table visualization you need to define a field to group by using a terms aggregation.

      -
      -
      - -
      - -
      - - - - -
      -
      + + + + + + + + + + + + + + + + + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + Should it be number or string? + */} + + + + +
      + -
      - - + + Data + + -
      - -
      - - - - + This supports mustache templating. + {'{{key}}'} is set to the term. + + } + > + + + + + + -
      + + + + + + + + + + + Ignore global filter? + + + + +
      ); } return (
      -
      -
      + this.switchTab('data')} > Columns -
      -
      + this.switchTab('options')} > - Panel Options -
      -
      + Panel options + + {view}
      ); @@ -172,7 +227,6 @@ TablePanelConfig.propTypes = { fields: PropTypes.object, model: PropTypes.object, onChange: PropTypes.func, - visData: PropTypes.object, }; export default TablePanelConfig; diff --git a/src/core_plugins/metrics/public/components/panel_config/timeseries.js b/src/core_plugins/metrics/public/components/panel_config/timeseries.js index 85b09047b7d9f..25281b08ef943 100644 --- a/src/core_plugins/metrics/public/components/panel_config/timeseries.js +++ b/src/core_plugins/metrics/public/components/panel_config/timeseries.js @@ -29,6 +29,17 @@ import YesNo from '../yes_no'; import { htmlIdGenerator, EuiComboBox, + EuiTabs, + EuiTab, + EuiPanel, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiFormLabel, + EuiSpacer, + EuiFieldText, + EuiTitle, + EuiHorizontalRule, } from '@elastic/eui'; class TimeseriesPanelConfig extends Component { @@ -99,127 +110,165 @@ class TimeseriesPanelConfig extends Component { ); } else { view = ( -
      - -
      - - - - - -
      - -
      - -
      - -
      -
      -
      -
      Background Color
      - -
      Show Legend
      - - -
      - -
      -
      Display Grid
      - -
      -
      - - -
      Ignore Global Filter
      - + + Data + + + -
      + + + + + + + + + + + Ignore global filter? + + + + + + + + + + Style + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Background color: + + + + + + Show legend? + + + + + + Legend position + + + + + + Display grid + + + + + +
      ); } return (
      -
      - - - -
      + > + Annotations + + {view}
      ); @@ -232,7 +281,6 @@ TimeseriesPanelConfig.propTypes = { fields: PropTypes.object, model: PropTypes.object, onChange: PropTypes.func, - visData: PropTypes.object, }; export default TimeseriesPanelConfig; diff --git a/src/core_plugins/metrics/public/components/panel_config/top_n.js b/src/core_plugins/metrics/public/components/panel_config/top_n.js index 98b5155e2c0b5..4721f4f42d251 100644 --- a/src/core_plugins/metrics/public/components/panel_config/top_n.js +++ b/src/core_plugins/metrics/public/components/panel_config/top_n.js @@ -26,7 +26,21 @@ import ColorRules from '../color_rules'; import ColorPicker from '../color_picker'; import uuid from 'uuid'; import YesNo from '../yes_no'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiTabs, + EuiTab, + EuiPanel, + EuiFlexGroup, + EuiFlexItem, + EuiFormRow, + EuiFormLabel, + EuiSpacer, + EuiFieldText, + EuiTitle, + EuiHorizontalRule, + EuiCode, +} from '@elastic/eui'; class TopNPanelConfig extends Component { @@ -67,52 +81,85 @@ class TopNPanelConfig extends Component { ); } else { view = ( -
      -
      - - + + Data + + -
      - -
      -
      Background Color
      - - - -
      Ignore Global Filter
      - + This supports mustache templating. + {'{{key}}'} is set to the term. + + } + > + + + + + + -
      -
      -
      Color Rules
      -
      -
      + + + + + + + + + + + Ignore global filter? + + + + + + + + + + Style + + + + + Background color: + + + + + + + + + Color rules + -
      +
      ); } return (
      -
      - - -
      + > + Panel options + + {view}
      ); @@ -154,7 +199,6 @@ TopNPanelConfig.propTypes = { fields: PropTypes.object, model: PropTypes.object, onChange: PropTypes.func, - visData: PropTypes.object, }; export default TopNPanelConfig; diff --git a/src/core_plugins/metrics/public/components/series_config.js b/src/core_plugins/metrics/public/components/series_config.js index 3f734aae65ace..ba46b589f1a04 100644 --- a/src/core_plugins/metrics/public/components/series_config.js +++ b/src/core_plugins/metrics/public/components/series_config.js @@ -24,7 +24,17 @@ import createSelectHandler from './lib/create_select_handler'; import createTextHandler from './lib/create_text_handler'; import YesNo from './yes_no'; import { IndexPattern } from './index_pattern'; -import { htmlIdGenerator } from '@elastic/eui'; +import { + htmlIdGenerator, + EuiFlexGroup, + EuiFlexItem, + EuiFieldText, + EuiFormRow, + EuiCode, + EuiHorizontalRule, + EuiFormLabel, + EuiSpacer, +} from '@elastic/eui'; export const SeriesConfig = props => { const defaults = { offset_time: '', value_template: '' }; @@ -34,65 +44,81 @@ export const SeriesConfig = props => { const htmlId = htmlIdGenerator(); return ( -
      -
      -
      - - - + + + + + + + + + + + + + + - - eg.{'{{value}}/s'}} + fullWidth + > + + + + + -
      -
      -
      Override Index Pattern
      + label="Offset series time by (1m, 1h, 1w, 1d)" + > + + + + + + + + + + Override Index Pattern? + + + -
      -
      - - -
      -
      + + +
      ); }; diff --git a/src/core_plugins/metrics/public/components/series_editor.js b/src/core_plugins/metrics/public/components/series_editor.js index 69aaadc3b343e..c48efffb4f7ec 100644 --- a/src/core_plugins/metrics/public/components/series_editor.js +++ b/src/core_plugins/metrics/public/components/series_editor.js @@ -61,6 +61,7 @@ class SeriesEditor extends Component { const { fields, model, name, limit, colorPicker } = props; return ( = limit} disableDelete={model[name].length < 2} @@ -88,12 +89,12 @@ class SeriesEditor extends Component { this.props.onChange({ series }); }; return ( -
      +
      { series } diff --git a/src/core_plugins/metrics/public/components/splits/everything.js b/src/core_plugins/metrics/public/components/splits/everything.js index 73fc8cc185ae2..4eb7c5e031323 100644 --- a/src/core_plugins/metrics/public/components/splits/everything.js +++ b/src/core_plugins/metrics/public/components/splits/everything.js @@ -21,20 +21,23 @@ import createSelectHandler from '../lib/create_select_handler'; import GroupBySelect from './group_by_select'; import PropTypes from 'prop-types'; import React from 'react'; +import { htmlIdGenerator, EuiFlexGroup, EuiFlexItem, EuiFormRow } from '@elastic/eui'; function SplitByEverything(props) { const { onChange, model } = props; + const htmlId = htmlIdGenerator(); const handleSelectChange = createSelectHandler(onChange); return ( -
      -
      Group By
      -
      - -
      -
      + + + + + + + ); } diff --git a/src/core_plugins/metrics/public/components/splits/filter.js b/src/core_plugins/metrics/public/components/splits/filter.js index ab50c8f1ff1ac..05248577c758f 100644 --- a/src/core_plugins/metrics/public/components/splits/filter.js +++ b/src/core_plugins/metrics/public/components/splits/filter.js @@ -22,29 +22,34 @@ import createSelectHandler from '../lib/create_select_handler'; import GroupBySelect from './group_by_select'; import PropTypes from 'prop-types'; import React from 'react'; +import { htmlIdGenerator, EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiFieldText } from '@elastic/eui'; export const SplitByFilter = props => { const { onChange } = props; const defaults = { filter: '' }; const model = { ...defaults, ...props.model }; + const htmlId = htmlIdGenerator(); const handleTextChange = createTextHandler(onChange); const handleSelectChange = createSelectHandler(onChange); return ( -
      -
      Group By
      -
      - -
      -
      Query String
      - -
      + + + + + + + + + + + + ); }; diff --git a/src/core_plugins/metrics/public/components/splits/filter_items.js b/src/core_plugins/metrics/public/components/splits/filter_items.js index 9e439411cc705..c00b29897f8ab 100644 --- a/src/core_plugins/metrics/public/components/splits/filter_items.js +++ b/src/core_plugins/metrics/public/components/splits/filter_items.js @@ -24,6 +24,7 @@ import * as collectionActions from '../lib/collection_actions'; import AddDeleteButtons from '../add_delete_buttons'; import ColorPicker from '../color_picker'; import uuid from 'uuid'; +import { EuiFieldText, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; class FilterItems extends Component { constructor(props) { @@ -53,41 +54,42 @@ class FilterItems extends Component { const handleDelete = collectionActions.handleDelete .bind(null, this.props, model); return ( -
      -
      + + -
      -
      - + + -
      -
      - + + -
      -
      + + -
      -
      + + ); } @@ -96,7 +98,7 @@ class FilterItems extends Component { if (!model[name]) return (
      ); const rows = model[name].map(this.renderRow); return ( -
      +
      { rows }
      ); diff --git a/src/core_plugins/metrics/public/components/splits/filters.js b/src/core_plugins/metrics/public/components/splits/filters.js index 9f3d72b1c51df..9e86b232402d2 100644 --- a/src/core_plugins/metrics/public/components/splits/filters.js +++ b/src/core_plugins/metrics/public/components/splits/filters.js @@ -22,29 +22,30 @@ import GroupBySelect from './group_by_select'; import FilterItems from './filter_items'; import PropTypes from 'prop-types'; import React from 'react'; +import { htmlIdGenerator, EuiFlexGroup, EuiFlexItem, EuiFormRow } from '@elastic/eui'; + function SplitByFilters(props) { const { onChange, model } = props; + const htmlId = htmlIdGenerator(); const handleSelectChange = createSelectHandler(onChange); return( -
      -
      -
      Group By
      -
      - -
      -
      -
      -
      - -
      -
      +
      + + + + + + + + +
      ); } diff --git a/src/core_plugins/metrics/public/components/splits/group_by_select.js b/src/core_plugins/metrics/public/components/splits/group_by_select.js index 8f377f03fe82b..e0436a7047f2d 100644 --- a/src/core_plugins/metrics/public/components/splits/group_by_select.js +++ b/src/core_plugins/metrics/public/components/splits/group_by_select.js @@ -35,6 +35,7 @@ function GroupBySelect(props) { }); return ( { + const htmlId = htmlIdGenerator(); const handleTextChange = createTextHandler(props.onChange); const handleSelectChange = createSelectHandler(props.onChange); const { indexPattern } = props; @@ -47,52 +46,64 @@ export const SplitByTerms = props => { }); return ( -
      -
      Group By
      -
      - -
      -
      By
      -
      - -
      -
      Top
      - -
      Order By
      -
      - -
      -
      Direction
      -
      - -
      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      ); }; diff --git a/src/core_plugins/metrics/public/components/vis_editor.js b/src/core_plugins/metrics/public/components/vis_editor.js index 0c5f2e78a298d..b217446f81056 100644 --- a/src/core_plugins/metrics/public/components/vis_editor.js +++ b/src/core_plugins/metrics/public/components/vis_editor.js @@ -19,12 +19,17 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; +import * as Rx from 'rxjs'; +import { share } from 'rxjs/operators'; import VisEditorVisualization from './vis_editor_visualization'; import Visualization from './visualization'; import VisPicker from './vis_picker'; import PanelConfig from './panel_config'; import brushHandler from '../lib/create_brush_handler'; import { get } from 'lodash'; +import { extractIndexPatterns } from '../lib/extract_index_patterns'; +import { fetchFields } from '../lib/fetch_fields'; +import chrome from 'ui/chrome'; class VisEditor extends Component { constructor(props) { @@ -32,11 +37,19 @@ class VisEditor extends Component { const { vis } = props; this.appState = vis.API.getAppState(); const reversed = get(this.appState, 'options.darkTheme', false); - this.state = { model: props.vis.params, dirty: false, autoApply: true, reversed }; + this.state = { + model: props.vis.params, + dirty: false, + autoApply: true, + reversed, + visFields: {}, + }; this.onBrush = brushHandler(props.vis.API.timeFilter); this.handleUiState = this.handleUiState.bind(this, props.vis); this.handleAppStateChange = this.handleAppStateChange.bind(this); this.getConfig = (...args) => props.config.get(...args); + this.visDataSubject = new Rx.Subject(); + this.visData$ = this.visDataSubject.asObservable().pipe(share()); } handleUiState(vis, ...args) { @@ -60,29 +73,62 @@ class VisEditor extends Component { } } - render() { - const handleChange = (part) => { - const nextModel = { ...this.state.model, ...part }; + fetchIndexPatternFields = async () => { + const { params } = this.props.vis; + const { visFields } = this.state; + const indexPatterns = extractIndexPatterns(params, visFields); + const fields = await fetchFields(indexPatterns); + this.setState((previousState) => { + return { + visFields: { + ...previousState.visFields, + ...fields, + } + }; + }); + } - this.props.vis.params = nextModel; - if (this.state.autoApply) { - this.props.vis.updateState(); - } + setDefaultIndexPattern = async () => { + if (this.props.vis.params.index_pattern === '') { + // set the default index pattern if none is defined. + const savedObjectsClient = chrome.getSavedObjectsClient(); + const indexPattern = await savedObjectsClient.get('index-pattern', this.getConfig('defaultIndex')); + const defaultIndexPattern = indexPattern.attributes.title; + this.props.vis.params.index_pattern = defaultIndexPattern; + } + } - this.setState({ model: nextModel, dirty: !this.state.autoApply }); - }; + handleChange = async (partialModel) => { + const nextModel = { ...this.state.model, ...partialModel }; + this.props.vis.params = nextModel; + if (this.state.autoApply) { + this.props.vis.updateState(); + } + this.setState({ + model: nextModel, + dirty: !this.state.autoApply, + }); + this.fetchIndexPatternFields(); + } - const handleAutoApplyToggle = (part) => { - this.setState({ autoApply: part.target.checked }); - }; + handleCommit = () => { + this.props.vis.updateState(); + this.setState({ dirty: false }); + } - const handleCommit = () => { - this.props.vis.updateState(); - this.setState({ dirty: false }); - }; + handleAutoApplyToggle = (event) => { + this.setState({ autoApply: event.target.checked }); + } + onDataChange = (data) => { + this.visDataSubject.next(data); + } + + render() { if (!this.props.isEditorMode) { - if (!this.props.vis.params || !this.props.visData) return null; + if (!this.props.vis.params || !this.props.visData) { + return null; + } const reversed = this.state.reversed; return ( -
      - +
      +
      +
      -
      +
      @@ -141,7 +188,9 @@ class VisEditor extends Component { return null; } - componentDidMount() { + async componentDidMount() { + await this.setDefaultIndexPattern(); + await this.fetchIndexPatternFields(); this.props.renderComplete(); } diff --git a/src/core_plugins/metrics/public/components/vis_editor_visualization.js b/src/core_plugins/metrics/public/components/vis_editor_visualization.js index 6c87adec8eef6..278265769b772 100644 --- a/src/core_plugins/metrics/public/components/vis_editor_visualization.js +++ b/src/core_plugins/metrics/public/components/vis_editor_visualization.js @@ -19,9 +19,7 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; -import { keyCodes } from '@elastic/eui'; -import Toggle from 'react-toggle'; -import 'react-toggle/style.css'; +import { keyCodes, EuiFlexGroup, EuiFlexItem, EuiButton, EuiText, EuiSwitch } from '@elastic/eui'; import { getVisualizeLoader } from 'ui/visualize/loader/visualize_loader'; const MIN_CHART_HEIGHT = 250; @@ -39,6 +37,7 @@ class VisEditorVisualization extends Component { this.onSizeHandleKeyDown = this.onSizeHandleKeyDown.bind(this); this._visEl = React.createRef(); + this._subscription = null; } handleMouseDown() { @@ -67,6 +66,9 @@ class VisEditorVisualization extends Component { if (this._handler) { this._handler.destroy(); } + if(this._subscription) { + this._subscription.unsubscribe(); + } } onUpdate = () => { @@ -90,6 +92,10 @@ class VisEditorVisualization extends Component { appState: this.props.appState, }); + this._subscription = this._handler.data$.subscribe((data) => { + this.props.onDataChange(data); + }); + if (this._handlerUpdateHasAlreadyBeenTriggered) { this.onUpdate(); } @@ -134,47 +140,41 @@ class VisEditorVisualization extends Component { style.userSelect = 'none'; } - const applyButtonClassName = dirty ? 'thor__button-solid-default' : 'thor__button-outlined-grayLight'; let applyMessage = 'The latest changes have been applied.'; if (dirty) applyMessage = 'The changes to this visualization have not been applied.'; if (autoApply) applyMessage = 'The changes will be automatically applied.'; const applyButton = ( -
      - -
      - + + -
      -
      - -
      -
      - {applyMessage} -
      -
      + + + + +

      + {applyMessage} +

      +
      +
      + + {!autoApply && + + Apply changes + + } + ); return (
      -
      +
      {applyButton} + { label } + ); } VisPickerItem.propTypes = { - icon: PropTypes.string, label: PropTypes.string, onClick: PropTypes.func, type: PropTypes.string, @@ -61,13 +50,13 @@ function VisPicker(props) { }; const { model } = props; - const icons = [ - { type: 'timeseries', icon: 'fa-line-chart', label: 'Time Series' }, - { type: 'metric', icon: 'fa-superscript', label: 'Metric' }, - { type: 'top_n', icon: 'fa-bar-chart fa-rotate-90', label: 'Top N' }, - { type: 'gauge', icon: 'fa-circle-o-notch', label: 'Gauge' }, - { type: 'markdown', icon: 'fa-paragraph', label: 'Markdown' }, - { type: 'table', icon: 'fa-paragraph', label: 'Table' } + const tabs = [ + { type: 'timeseries', label: 'Time Series' }, + { type: 'metric', label: 'Metric' }, + { type: 'top_n', label: 'Top N' }, + { type: 'gauge', label: 'Gauge' }, + { type: 'markdown', label: 'Markdown' }, + { type: 'table', label: 'Table' } ].map(item => { return ( - { icons } -
      + + { tabs } + ); } diff --git a/src/core_plugins/metrics/public/components/vis_types/_index.scss b/src/core_plugins/metrics/public/components/vis_types/_index.scss new file mode 100644 index 0000000000000..a2918916c4c4a --- /dev/null +++ b/src/core_plugins/metrics/public/components/vis_types/_index.scss @@ -0,0 +1,3 @@ +@import './vis_types'; + +@import './markdown/markdown'; diff --git a/src/core_plugins/metrics/public/components/vis_types/_vis_types.scss b/src/core_plugins/metrics/public/components/vis_types/_vis_types.scss new file mode 100644 index 0000000000000..f4f9230b32dc2 --- /dev/null +++ b/src/core_plugins/metrics/public/components/vis_types/_vis_types.scss @@ -0,0 +1,6 @@ +.tvbVis { + display: flex; + flex-direction: column; + flex: 1 1 100%; + padding: $euiSizeS; +} diff --git a/src/core_plugins/metrics/public/components/vis_types/gauge/series.js b/src/core_plugins/metrics/public/components/vis_types/gauge/series.js index b2b702304699c..6c95520995fd3 100644 --- a/src/core_plugins/metrics/public/components/vis_types/gauge/series.js +++ b/src/core_plugins/metrics/public/components/vis_types/gauge/series.js @@ -24,7 +24,7 @@ import AddDeleteButtons from '../../add_delete_buttons'; import { SeriesConfig } from '../../series_config'; import Sortable from 'react-anything-sortable'; import Split from '../../split'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiTabs, EuiTab, EuiFlexGroup, EuiFlexItem, EuiFieldText, EuiButtonIcon } from '@elastic/eui'; import createAggRowRender from '../../lib/create_agg_row_render'; import createTextHandler from '../../lib/create_text_handler'; import { createUpDownHandler } from '../../lib/sort_keyhandler'; @@ -48,15 +48,11 @@ function GaugeSeries(props) { const handleChange = createTextHandler(onChange); const aggs = model.metrics.map(createAggRowRender(props)); - let caretClassName = 'fa fa-caret-down'; - if (!visible) caretClassName = 'fa fa-caret-right'; + let caretIcon = 'arrowDown'; + if (!visible) caretIcon = 'arrowRight'; let body = null; if (visible) { - let metricsClassName = 'kbnTabs__tab'; - let optionsClassname = 'kbnTabs__tab'; - if (selectedTab === 'metrics') metricsClassName += '-active'; - if (selectedTab === 'options') optionsClassname += '-active'; let seriesBody; if (selectedTab === 'metrics') { const handleSort = (data) => { @@ -70,19 +66,17 @@ function GaugeSeries(props) { dynamic={true} direction="vertical" onSort={handleSort} - sortHandle="vis_editor__agg_sort" + sortHandle="tvbAggRow__sortHandle" > { aggs } -
      -
      - -
      +
      +
      ); @@ -96,24 +90,22 @@ function GaugeSeries(props) { ); } body = ( -
      -
      - - -
      + > + Options + + {seriesBody}
      ); @@ -131,45 +123,54 @@ function GaugeSeries(props) { let dragHandle; if (!props.disableDelete) { dragHandle = ( - - - + + + + + ); } return (
      -
      -
      - + /> + + + { colorPicker } -
      - -
      - { dragHandle } +
      + + + + + + { dragHandle } + + -
      -
      + + + { body }
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/gauge/vis.js b/src/core_plugins/metrics/public/components/vis_types/gauge/vis.js index 1330737a6111f..55c861e1fcee4 100644 --- a/src/core_plugins/metrics/public/components/vis_types/gauge/vis.js +++ b/src/core_plugins/metrics/public/components/vis_types/gauge/vis.js @@ -83,7 +83,7 @@ function GaugeVisualization(props) { const style = { backgroundColor: panelBackgroundColor }; return ( -
      +
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/markdown/_markdown.scss b/src/core_plugins/metrics/public/components/vis_types/markdown/_markdown.scss new file mode 100644 index 0000000000000..d6dc376911ef9 --- /dev/null +++ b/src/core_plugins/metrics/public/components/vis_types/markdown/_markdown.scss @@ -0,0 +1,30 @@ +.tvbMarkdown { + display: flex; + flex-direction: column; + flex: 1 0 auto; + position: relative; +} + +.tvbMarkdown__content { + display: flex; + flex-direction: column; + flex: 1 0 auto; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + overflow: hidden; + + &.middle { + justify-content: center; + } + &.bottom { + justify-content: flex-end; + } + &.scrolling { + overflow: auto; + } +} + + diff --git a/src/core_plugins/metrics/public/components/vis_types/markdown/series.js b/src/core_plugins/metrics/public/components/vis_types/markdown/series.js index 738dddc84f768..7889f433a8d4a 100644 --- a/src/core_plugins/metrics/public/components/vis_types/markdown/series.js +++ b/src/core_plugins/metrics/public/components/vis_types/markdown/series.js @@ -25,6 +25,7 @@ import Sortable from 'react-anything-sortable'; import Split from '../../split'; import createAggRowRender from '../../lib/create_agg_row_render'; import createTextHandler from '../../lib/create_text_handler'; +import { EuiTabs, EuiTab, EuiFlexGroup, EuiFlexItem, EuiFieldText, EuiButtonIcon } from '@elastic/eui'; function MarkdownSeries(props) { const { @@ -45,15 +46,11 @@ function MarkdownSeries(props) { const handleChange = createTextHandler(onChange); const aggs = model.metrics.map(createAggRowRender(props)); - let caretClassName = 'fa fa-caret-down'; - if (!visible) caretClassName = 'fa fa-caret-right'; + let caretIcon = 'arrowDown'; + if (!visible) caretIcon = 'arrowRight'; let body = null; if (visible) { - let metricsClassName = 'kbnTabs__tab'; - let optionsClassname = 'kbnTabs__tab'; - if (selectedTab === 'metrics') metricsClassName += '-active'; - if (selectedTab === 'options') optionsClassname += '-active'; let seriesBody; if (selectedTab === 'metrics') { const handleSort = (data) => { @@ -67,19 +64,17 @@ function MarkdownSeries(props) { dynamic={true} direction="vertical" onSort={handleSort} - sortHandle="vis_editor__agg_sort" + sortHandle="tvbAggRow__sortHandle" > { aggs } -
      -
      - -
      +
      +
      ); @@ -93,24 +88,22 @@ function MarkdownSeries(props) { ); } body = ( -
      -
      - - -
      + > + Options + + {seriesBody}
      ); @@ -118,47 +111,55 @@ function MarkdownSeries(props) { return (
      -
      -
      - -
      - - -
      + /> + + + + + + + + + + + -
      -
      + + + { body }
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/markdown/vis.js b/src/core_plugins/metrics/public/components/vis_types/markdown/vis.js index b4ceb0313e5a8..1ebf9e0b9649a 100644 --- a/src/core_plugins/metrics/public/components/vis_types/markdown/vis.js +++ b/src/core_plugins/metrics/public/components/vis_types/markdown/vis.js @@ -47,8 +47,8 @@ function MarkdownVisualization(props) { ...variables } ); - let className = 'thorMarkdown'; - let contentClassName = `thorMarkdown__content ${model.markdown_vertical_align}`; + let className = 'tvbMarkdown'; + let contentClassName = `tvbMarkdown__content ${model.markdown_vertical_align}`; if (model.markdown_scrollbars) contentClassName += ' scrolling'; if (reversed) className += ' reversed'; const markdownError = markdownSource instanceof Error ? markdownSource : null; @@ -63,7 +63,7 @@ function MarkdownVisualization(props) { ); } return ( -
      +
      {markdown}
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/metric/series.js b/src/core_plugins/metrics/public/components/vis_types/metric/series.js index ae72cfc2d1ba5..77b39ca3c9390 100644 --- a/src/core_plugins/metrics/public/components/vis_types/metric/series.js +++ b/src/core_plugins/metrics/public/components/vis_types/metric/series.js @@ -24,7 +24,7 @@ import AddDeleteButtons from '../../add_delete_buttons'; import { SeriesConfig } from '../../series_config'; import Sortable from 'react-anything-sortable'; import Split from '../../split'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiTabs, EuiTab, EuiFlexGroup, EuiFlexItem, EuiFieldText, EuiButtonIcon } from '@elastic/eui'; import createAggRowRender from '../../lib/create_agg_row_render'; import createTextHandler from '../../lib/create_text_handler'; import { createUpDownHandler } from '../../lib/sort_keyhandler'; @@ -48,15 +48,11 @@ function MetricSeries(props) { const handleChange = createTextHandler(onChange); const aggs = model.metrics.map(createAggRowRender(props)); - let caretClassName = 'fa fa-caret-down'; - if (!visible) caretClassName = 'fa fa-caret-right'; + let caretIcon = 'arrowDown'; + if (!visible) caretIcon = 'arrowRight'; let body = null; if (visible) { - let metricsClassName = 'kbnTabs__tab'; - let optionsClassname = 'kbnTabs__tab'; - if (selectedTab === 'metrics') metricsClassName += '-active'; - if (selectedTab === 'options') optionsClassname += '-active'; let seriesBody; if (selectedTab === 'metrics') { const handleSort = (data) => { @@ -70,19 +66,17 @@ function MetricSeries(props) { dynamic={true} direction="vertical" onSort={handleSort} - sortHandle="vis_editor__agg_sort" + sortHandle="tvbAggRow__sortHandle" > { aggs } -
      -
      - -
      +
      +
      ); @@ -96,24 +90,22 @@ function MetricSeries(props) { ); } body = ( -
      -
      - - -
      + > + Options + + {seriesBody}
      ); @@ -122,57 +114,65 @@ function MetricSeries(props) { let colorPicker; if (props.colorPicker) { colorPicker = ( - + + + ); } let dragHandle; if (!props.disableDelete) { dragHandle = ( - - - + + + + + ); } return (
      -
      -
      - - { colorPicker } -
      - -
      - { dragHandle } + /> + + + { colorPicker } + + + + + + { dragHandle } + + -
      -
      + + + { body }
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/metric/vis.js b/src/core_plugins/metrics/public/components/vis_types/metric/vis.js index a81f7c4ecb107..f7d2607e6ce15 100644 --- a/src/core_plugins/metrics/public/components/vis_types/metric/vis.js +++ b/src/core_plugins/metrics/public/components/vis_types/metric/vis.js @@ -74,8 +74,10 @@ function MetricVisualization(props) { params.reversed = color(panelBackgroundColor).luminosity() < 0.45; } const style = { backgroundColor: panelBackgroundColor }; + params.backgroundColor = panelBackgroundColor; + return ( -
      +
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/table/config.js b/src/core_plugins/metrics/public/components/vis_types/table/config.js index 67ed6e00205bf..324bc89d4dc86 100644 --- a/src/core_plugins/metrics/public/components/vis_types/table/config.js +++ b/src/core_plugins/metrics/public/components/vis_types/table/config.js @@ -29,6 +29,15 @@ import ColorRules from '../../color_rules'; import { htmlIdGenerator, EuiComboBox, + EuiFlexGroup, + EuiFlexItem, + EuiFieldText, + EuiFormRow, + EuiCode, + EuiHorizontalRule, + EuiFormLabel, + EuiSpacer, + EuiTitle, } from '@elastic/eui'; class TableSeriesConfig extends Component { @@ -65,67 +74,102 @@ class TableSeriesConfig extends Component { }); return ( -
      -
      -
      +
      + + + - - -
      -
      - - + + eg.{'{{value}}/s'}} + fullWidth + > + + + + + + + + + + - + label="Filter" + fullWidth + > + + + + + Show trend arrows? + -
      -
      -
      + + + + + + + + -
      - -
      + + + + -
      -
      -
      - -
      -
      + + + + + + + Color rules + + +
      ); } diff --git a/src/core_plugins/metrics/public/components/vis_types/table/series.js b/src/core_plugins/metrics/public/components/vis_types/table/series.js index f44df0306f9f5..8802f1436d960 100644 --- a/src/core_plugins/metrics/public/components/vis_types/table/series.js +++ b/src/core_plugins/metrics/public/components/vis_types/table/series.js @@ -22,7 +22,7 @@ import PropTypes from 'prop-types'; import AddDeleteButtons from '../../add_delete_buttons'; import SeriesConfig from './config'; import Sortable from 'react-anything-sortable'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiTabs, EuiTab, EuiFlexGroup, EuiFlexItem, EuiFieldText, EuiButtonIcon } from '@elastic/eui'; import createTextHandler from '../../lib/create_text_handler'; import createAggRowRender from '../../lib/create_agg_row_render'; import { createUpDownHandler } from '../../lib/sort_keyhandler'; @@ -42,15 +42,11 @@ function TopNSeries(props) { const handleChange = createTextHandler(onChange); const aggs = model.metrics.map(createAggRowRender(props)); - let caretClassName = 'fa fa-caret-down'; - if (!visible) caretClassName = 'fa fa-caret-right'; + let caretIcon = 'arrowDown'; + if (!visible) caretIcon = 'arrowRight'; let body = null; if (visible) { - let metricsClassName = 'kbnTabs__tab'; - let optionsClassname = 'kbnTabs__tab'; - if (selectedTab === 'metrics') metricsClassName += '-active'; - if (selectedTab === 'options') optionsClassname += '-active'; let seriesBody; if (selectedTab === 'metrics') { const handleSort = (data) => { @@ -64,7 +60,7 @@ function TopNSeries(props) { dynamic={true} direction="vertical" onSort={handleSort} - sortHandle="vis_editor__agg_sort" + sortHandle="tvbAggRow__sortHandle" > { aggs } @@ -81,22 +77,22 @@ function TopNSeries(props) { ); } body = ( -
      -
      -
      + + props.switchTab('metrics')} > Metrics -
      -
      + props.switchTab('options')} > Options -
      -
      + + {seriesBody}
      ); @@ -105,40 +101,50 @@ function TopNSeries(props) { let dragHandle; if (!props.disableDelete) { dragHandle = ( - - - + + + + + ); } return (
      -
      -
      - -
      - -
      - { dragHandle } + + + + + + + + + + { dragHandle } + + -
      -
      + + + { body }
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/table/vis.js b/src/core_plugins/metrics/public/components/vis_types/table/vis.js index f65d738db43de..223bb7193bc17 100644 --- a/src/core_plugins/metrics/public/components/vis_types/table/vis.js +++ b/src/core_plugins/metrics/public/components/vis_types/table/vis.js @@ -23,7 +23,7 @@ import PropTypes from 'prop-types'; import tickFormatter from '../../lib/tick_formatter'; import calculateLabel from '../../../../common/calculate_label'; import { isSortable } from './is_sortable'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiIcon } from '@elastic/eui'; import replaceVars from '../../lib/replace_vars'; function getColor(rules, colorKey, value) { @@ -62,24 +62,24 @@ class TableVis extends Component { const value = formatter(item.last); let trend; if (column.trend_arrows) { - const trendClass = item.slope > 0 ? 'fa-long-arrow-up' : 'fa-long-arrow-down'; + const trendIcon = item.slope > 0 ? 'sortUp' : 'sortDown'; trend = ( - - + +   ); } const style = { color: getColor(column.color_rules, 'text', item.last) }; return ( - - { value } + + { value } {trend} ); }); return ( - {rowDisplay} + {rowDisplay} {columns} ); @@ -109,12 +109,12 @@ class TableVis extends Component { if (isSortable(metric)) { let sortIcon; if (sort.column === item.id) { - sortIcon = sort.order === 'asc' ? 'sort-asc' : 'sort-desc'; + sortIcon = sort.order === 'asc' ? 'sortUp' : 'sortDown'; } else { - sortIcon = 'sort'; + sortIcon = 'empty'; } sortComponent = ( - + ); } let headerContent = ( @@ -122,13 +122,12 @@ class TableVis extends Component { ); if (!isSortable(metric)) { headerContent = ( - {headerContent} + {headerContent} ); } return ( + ); const handleSortClick = () => { let order; @@ -158,7 +157,7 @@ class TableVis extends Component { }; return ( - {label} {sortComponent} + {label} {sortComponent} { columns } ); @@ -184,7 +183,6 @@ class TableVis extends Component { rows = ( {message} @@ -193,7 +191,7 @@ class TableVis extends Component { ); } return( -
      +
      {header} diff --git a/src/core_plugins/metrics/public/components/vis_types/timeseries/config.js b/src/core_plugins/metrics/public/components/vis_types/timeseries/config.js index da8b2e5b55a17..b615bfae2e3cc 100644 --- a/src/core_plugins/metrics/public/components/vis_types/timeseries/config.js +++ b/src/core_plugins/metrics/public/components/vis_types/timeseries/config.js @@ -27,6 +27,15 @@ import { IndexPattern } from '../../index_pattern'; import { htmlIdGenerator, EuiComboBox, + EuiFlexGroup, + EuiFlexItem, + EuiFieldText, + EuiFormRow, + EuiCode, + EuiHorizontalRule, + EuiFieldNumber, + EuiFormLabel, + EuiSpacer, } from '@elastic/eui'; function TimeseriesConfig(props) { @@ -84,252 +93,311 @@ function TimeseriesConfig(props) { let type; if (model.chart_type === 'line') { type = ( -
      - -
      - + + -
      - -
      - + + + + + + + + + + + + + + + + + + + + + + + + + Steps + + -
      - - - - - - -
      Steps
      - -
      + + ); } if (model.chart_type === 'bar') { type = ( -
      - -
      - + + -
      - -
      - + + + + + -
      - - - - -
      + label="Stacked" + > + + + + + + + + + + + + + + ); } const disableSeparateYaxis = model.separate_axis ? false : true; return ( -
      -
      -
      +
      + + + - - + + -
      - { type } -
      - - eg.{'{{value}}/s'}} + fullWidth + > + + + + + + + + + + + + + + { type } + + + + + + -
      Hide in Legend
      + label="Offset series time by (1m, 1h, 1w, 1d)" + > + +
      +
      + + Hide in legend + - -
      + + + -
      -
      -
      -
      Separate Axis
      + + + + + + + + + Separate axis? + - - + + - - + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + It accepts a null value, but is passed a empty string. + */} + + + + + - -
      + label="Axis max" + > + {/* + EUITODO: The following input couldn't be converted to EUI because of type mis-match. + It accepts a null value, but is passed a empty string. + */} + + + + + -
      -
      -
      -
      Override Index Pattern
      + + + + + + + + + Override Index Pattern? + + + -
      -
      - - -
      -
      + + +
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/timeseries/series.js b/src/core_plugins/metrics/public/components/vis_types/timeseries/series.js index b82f8dace2b70..23a349aaac39e 100644 --- a/src/core_plugins/metrics/public/components/vis_types/timeseries/series.js +++ b/src/core_plugins/metrics/public/components/vis_types/timeseries/series.js @@ -23,7 +23,7 @@ import ColorPicker from '../../color_picker'; import AddDeleteButtons from '../../add_delete_buttons'; import SeriesConfig from './config'; import Sortable from 'react-anything-sortable'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiTabs, EuiTab, EuiFlexGroup, EuiFlexItem, EuiFieldText, EuiButtonIcon } from '@elastic/eui'; import Split from '../../split'; import createAggRowRender from '../../lib/create_agg_row_render'; import createTextHandler from '../../lib/create_text_handler'; @@ -48,15 +48,11 @@ function TimeseriesSeries(props) { const handleChange = createTextHandler(onChange); const aggs = model.metrics.map(createAggRowRender(props)); - let caretClassName = 'fa fa-caret-down'; - if (!visible) caretClassName = 'fa fa-caret-right'; + let caretIcon = 'arrowDown'; + if (!visible) caretIcon = 'arrowRight'; let body = null; if (visible) { - let metricsClassName = 'kbnTabs__tab'; - let optionsClassname = 'kbnTabs__tab'; - if (selectedTab === 'metrics') metricsClassName += '-active'; - if (selectedTab === 'options') optionsClassname += '-active'; let seriesBody; if (selectedTab === 'metrics') { const handleSort = (data) => { @@ -70,19 +66,17 @@ function TimeseriesSeries(props) { dynamic={true} direction="vertical" onSort={handleSort} - sortHandle="vis_editor__agg_sort" + sortHandle="tvbAggRow__sortHandle" > { aggs } -
      -
      - -
      +
      +
      ); @@ -96,24 +90,22 @@ function TimeseriesSeries(props) { ); } body = ( -
      -
      - - -
      + > + Options + + {seriesBody}
      ); @@ -131,45 +123,53 @@ function TimeseriesSeries(props) { let dragHandle; if (!props.disableDelete) { dragHandle = ( - - - + + + + + ); } return (
      -
      -
      - + /> + + + { colorPicker } -
      - -
      - { dragHandle } +
      + + + + + + { dragHandle } + + -
      -
      + + + { body }
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/timeseries/vis.js b/src/core_plugins/metrics/public/components/vis_types/timeseries/vis.js index 7e40d1fe5b2c5..1550522f4bf60 100644 --- a/src/core_plugins/metrics/public/components/vis_types/timeseries/vis.js +++ b/src/core_plugins/metrics/public/components/vis_types/timeseries/vis.js @@ -201,7 +201,7 @@ class TimeseriesVisualization extends Component { params.reversed = color(panelBackgroundColor || backgroundColor).luminosity() < 0.45; } return ( -
      +
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/top_n/series.js b/src/core_plugins/metrics/public/components/vis_types/top_n/series.js index 5daa0d442eb53..fa112a41e39c8 100644 --- a/src/core_plugins/metrics/public/components/vis_types/top_n/series.js +++ b/src/core_plugins/metrics/public/components/vis_types/top_n/series.js @@ -24,7 +24,7 @@ import AddDeleteButtons from '../../add_delete_buttons'; import { SeriesConfig } from '../../series_config'; import Sortable from 'react-anything-sortable'; import Split from '../../split'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, EuiTabs, EuiTab, EuiFlexGroup, EuiFlexItem, EuiFieldText, EuiButtonIcon } from '@elastic/eui'; import createTextHandler from '../../lib/create_text_handler'; import createAggRowRender from '../../lib/create_agg_row_render'; import { createUpDownHandler } from '../../lib/sort_keyhandler'; @@ -46,15 +46,11 @@ function TopNSeries(props) { const handleChange = createTextHandler(onChange); const aggs = model.metrics.map(createAggRowRender(props)); - let caretClassName = 'fa fa-caret-down'; - if (!visible) caretClassName = 'fa fa-caret-right'; + let caretIcon = 'arrowDown'; + if (!visible) caretIcon = 'arrowRight'; let body = null; if (visible) { - let metricsClassName = 'kbnTabs__tab'; - let optionsClassname = 'kbnTabs__tab'; - if (selectedTab === 'metrics') metricsClassName += '-active'; - if (selectedTab === 'options') optionsClassname += '-active'; let seriesBody; if (selectedTab === 'metrics') { const handleSort = (data) => { @@ -68,19 +64,17 @@ function TopNSeries(props) { dynamic={true} direction="vertical" onSort={handleSort} - sortHandle="vis_editor__agg_sort" + sortHandle="tvbAggRow__sortHandle" > { aggs } -
      -
      - -
      +
      +
      ); @@ -94,24 +88,22 @@ function TopNSeries(props) { ); } body = ( -
      -
      - - -
      + > + Options + + {seriesBody}
      ); @@ -129,45 +121,53 @@ function TopNSeries(props) { let dragHandle; if (!props.disableDelete) { dragHandle = ( - - - + + + + + ); } return (
      -
      -
      - + /> + + + { colorPicker } -
      - -
      - { dragHandle } +
      + + + + + + { dragHandle } + + -
      -
      + + + { body }
      ); diff --git a/src/core_plugins/metrics/public/components/vis_types/top_n/vis.js b/src/core_plugins/metrics/public/components/vis_types/top_n/vis.js index 2023b884e3bb1..b2a4db7307200 100644 --- a/src/core_plugins/metrics/public/components/vis_types/top_n/vis.js +++ b/src/core_plugins/metrics/public/components/vis_types/top_n/vis.js @@ -93,7 +93,7 @@ function TopNVisualization(props) { } const style = { backgroundColor: panelBackgroundColor }; return ( -
      +
      ); diff --git a/src/core_plugins/metrics/public/components/vis_with_splits.js b/src/core_plugins/metrics/public/components/vis_with_splits.js index 18b0bca7c8869..8dcf56dba4207 100644 --- a/src/core_plugins/metrics/public/components/vis_with_splits.js +++ b/src/core_plugins/metrics/public/components/vis_with_splits.js @@ -65,22 +65,20 @@ export function visWithSplits(WrappedComponent) { } }; return ( -
      -
      - -
      +
      +
      ); }); return ( -
      {rows}
      +
      {rows}
      ); } SplitVisComponent.displayName = `SplitVisComponent(${getDisplayName(WrappedComponent)})`; diff --git a/src/core_plugins/metrics/public/components/visualization.js b/src/core_plugins/metrics/public/components/visualization.js index fc2536f9432bb..b72e1b047558c 100644 --- a/src/core_plugins/metrics/public/components/visualization.js +++ b/src/core_plugins/metrics/public/components/visualization.js @@ -79,10 +79,6 @@ function Visualization(props) { return
      ; } -Visualization.defaultProps = { - className: 'thor__visualization' -}; - Visualization.propTypes = { backgroundColor: PropTypes.string, className: PropTypes.string, @@ -97,4 +93,8 @@ Visualization.propTypes = { getConfig: PropTypes.func }; +Visualization.defaultProps = { + className: 'tvbVis' +}; + export default Visualization; diff --git a/src/core_plugins/metrics/public/components/yes_no.js b/src/core_plugins/metrics/public/components/yes_no.js index f76d7b96b4223..7a79ac6ca988c 100644 --- a/src/core_plugins/metrics/public/components/yes_no.js +++ b/src/core_plugins/metrics/public/components/yes_no.js @@ -20,6 +20,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; +import { EuiRadio, htmlIdGenerator } from '@elastic/eui'; function YesNo(props) { const { name, value } = props; @@ -30,29 +31,31 @@ function YesNo(props) { props.onChange(parts); }; }; + const htmlId = htmlIdGenerator(); const inputName = name + _.uniqueId(); return ( -
      - - +
      + + +   + +
      ); } diff --git a/src/core_plugins/metrics/public/components/yes_no.test.js b/src/core_plugins/metrics/public/components/yes_no.test.js index 38ab90b61de07..e931ba5ce0775 100644 --- a/src/core_plugins/metrics/public/components/yes_no.test.js +++ b/src/core_plugins/metrics/public/components/yes_no.test.js @@ -29,7 +29,7 @@ describe('YesNo', () => { const wrapper = shallow( ); - wrapper.find('input').first().simulate('change'); + wrapper.find('EuiRadio').first().simulate('change'); expect(handleChange.calledOnce).to.equal(true); expect(handleChange.firstCall.args[0]).to.eql({ test: 1 @@ -41,7 +41,7 @@ describe('YesNo', () => { const wrapper = shallow( ); - wrapper.find('input').last().simulate('change'); + wrapper.find('EuiRadio').last().simulate('change'); expect(handleChange.calledOnce).to.equal(true); expect(handleChange.firstCall.args[0]).to.eql({ test: 0 diff --git a/src/core_plugins/metrics/public/images/icon-visualbuilder.svg b/src/core_plugins/metrics/public/images/icon-visualbuilder.svg deleted file mode 100644 index 669d368748fc2..0000000000000 --- a/src/core_plugins/metrics/public/images/icon-visualbuilder.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - icon-hammer - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/metrics/public/index.scss b/src/core_plugins/metrics/public/index.scss new file mode 100644 index 0000000000000..e989e05913813 --- /dev/null +++ b/src/core_plugins/metrics/public/index.scss @@ -0,0 +1,23 @@ +@import 'src/ui/public/styles/styling_constants'; + +// Prefix all styles with "tvb" to avoid conflicts. +// Examples +// tvbChart +// tvbChart__legend +// tvbChart__legend--small +// tvbChart__legend-isLoading + +@import './variables'; +@import './mixins'; + +// Hacks (mostly todo's) +@import './hacks'; + +// Library overrides +@import './ui_sortable'; + +// Components +@import './components/index'; + +// Visualizations +@import './visualizations/components/index'; diff --git a/src/core_plugins/metrics/public/kbn_vis_types/editor_controller.js b/src/core_plugins/metrics/public/kbn_vis_types/editor_controller.js index 442ae4399dcbd..83e2c4916b049 100644 --- a/src/core_plugins/metrics/public/kbn_vis_types/editor_controller.js +++ b/src/core_plugins/metrics/public/kbn_vis_types/editor_controller.js @@ -18,48 +18,27 @@ */ import React from 'react'; -import chrome from 'ui/chrome'; import { render, unmountComponentAtNode } from 'react-dom'; -import { FetchFieldsProvider } from '../lib/fetch_fields'; -import { extractIndexPatterns } from '../lib/extract_index_patterns'; function ReactEditorControllerProvider(Private, config) { - const fetchFields = Private(FetchFieldsProvider); - const savedObjectsClient = chrome.getSavedObjectsClient(); - class ReactEditorController { constructor(el, savedObj) { this.el = el; this.savedObj = savedObj; this.vis = savedObj.vis; - this.vis.fields = {}; } - render(params) { - return new Promise((resolve) => { - Promise.resolve().then(() => { - if (this.vis.params.index_pattern === '') { - return savedObjectsClient.get('index-pattern', config.get('defaultIndex')).then((indexPattern) => { - this.vis.params.index_pattern = indexPattern.attributes.title; - }); - } - }).then(() => { - const indexPatterns = extractIndexPatterns(this.vis); - fetchFields(indexPatterns).then(fields => { - this.vis.fields = { ...fields, ...this.vis.fields }; - const Component = this.vis.type.editorConfig.component; - render(, this.el); - }); - }); - }); + async render(params) { + const Component = this.vis.type.editorConfig.component; + render( {}} + isEditorMode={true} + appState={params.appState} + />, this.el); } resize() { diff --git a/src/core_plugins/metrics/public/kbn_vis_types/index.js b/src/core_plugins/metrics/public/kbn_vis_types/index.js index 5f2e340fefad3..ea82789cf61b7 100644 --- a/src/core_plugins/metrics/public/kbn_vis_types/index.js +++ b/src/core_plugins/metrics/public/kbn_vis_types/index.js @@ -17,8 +17,6 @@ * under the License. */ -import '../visualizations/less/main.less'; -import '../less/main.less'; import { MetricsRequestHandlerProvider } from './request_handler'; import { ReactEditorControllerProvider } from './editor_controller'; import { VisFactoryProvider } from 'ui/vis/vis_factory'; @@ -40,7 +38,6 @@ export default function MetricsVisProvider(Private) { description: 'Build time-series using a visual pipeline interface', category: CATEGORY.TIME, icon: 'visVisualBuilder', - stage: 'experimental', feedbackMessage: defaultFeedbackMessage, visConfig: { defaults: { diff --git a/src/core_plugins/metrics/public/kbn_vis_types/request_handler.js b/src/core_plugins/metrics/public/kbn_vis_types/request_handler.js index 5889c5a7d7af9..51bce4c094fbe 100644 --- a/src/core_plugins/metrics/public/kbn_vis_types/request_handler.js +++ b/src/core_plugins/metrics/public/kbn_vis_types/request_handler.js @@ -18,20 +18,20 @@ */ import { validateInterval } from '../lib/validate_interval'; -import { dashboardContextProvider } from 'plugins/kibana/dashboard/dashboard_context'; import { timezoneProvider } from 'ui/vis/lib/timezone'; import { timefilter } from 'ui/timefilter'; +import { BuildESQueryProvider } from 'ui/courier'; const MetricsRequestHandlerProvider = function (Private, Notifier, config, $http) { - const dashboardContext = Private(dashboardContextProvider); const notify = new Notifier({ location: 'Metrics' }); + const buildEsQuery = Private(BuildESQueryProvider); return { name: 'metrics', - handler: function (vis, { uiState, timeRange }) { + handler: function ({ aggs, uiState, timeRange, filters, query, visParams }) { const timezone = Private(timezoneProvider)(); return new Promise((resolve) => { - const panel = vis.params; + const panel = visParams; const uiStateObj = uiState.get(panel.type, {}); const parsedTimeRange = timefilter.calculateBounds(timeRange); const scaledDataFormat = config.get('dateFormat:scaled'); @@ -39,7 +39,7 @@ const MetricsRequestHandlerProvider = function (Private, Notifier, config, $http if (panel && panel.id) { const params = { timerange: { timezone, ...parsedTimeRange }, - filters: [dashboardContext()], + filters: [buildEsQuery(aggs.indexPattern, [query], filters)], panels: [panel], state: uiStateObj }; diff --git a/src/core_plugins/metrics/public/less/color_picker.less b/src/core_plugins/metrics/public/less/color_picker.less deleted file mode 100644 index ee715d9597a46..0000000000000 --- a/src/core_plugins/metrics/public/less/color_picker.less +++ /dev/null @@ -1,89 +0,0 @@ -.color_picker { - background-color: #fff; - border-radius: 2px; - box-shadow: 0 0 2px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.3); - box-sizing: initial; - width: 275px; - font-family: 'Menlo'; -} - -.color_picker__saturation { - width: 100%; - padding-bottom: 55%; - position: relative; - border-radius: 2px 2px 0 0; - overflow: hidden; -} - -.color_picker__body { - padding: 16px 16px 12px; -} - -.color_picker__controls { - display: flex; -} - -.color_picker__color { - width: 32px; -} - -.color_picker__color-disable_alpha { - width: 22px; -} - -.color_picker__swatch { - margin-top: 6px; - width: 16px; - height: 16px; - border-radius: 8px; - position: relative; - overflow: hidden; -} - -.color_picker__swatch-disable_alpha { - width: 10px; - height: 10px; - margin: 0px; -} - -.color_picker__active { - position: absolute; - top: 0px; - left: 0px; - right: 0px; - bottom: 0px; - border-radius: 8px; - box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); - z-index: 2; -} - -.color_picker__toggles { - flex: 1 -} - -.color_picker__hue { - height: 10px; - position: relative; - margin-bottom: 8px; -} - -.color_picker__hue-disable_alpha { - margin-bottom: 0px; -} - -.color_picker__alpha { - height: 10px; - position: relative; -} - -.color_picker__alpha-disable_alpha { - display: none; -} - -.color_picker__swatches { - display: flex; - flex-wrap: wrap; - justify-content: center; - margin-top: 10px; -} - diff --git a/src/core_plugins/metrics/public/less/color_rules.less b/src/core_plugins/metrics/public/less/color_rules.less deleted file mode 100644 index efe34ca3c1424..0000000000000 --- a/src/core_plugins/metrics/public/less/color_rules.less +++ /dev/null @@ -1,35 +0,0 @@ -.color_rules { - flex: 1 0 auto; -} - -.color_rules__rule { - background-color: @grayLightest; - padding: 10px; - margin-bottom: 5px; - display: flex; - align-items: center; - flex: 1 0 auto; -} - -.color_rules__item { - flex: 1 0 auto; - margin-right: 10px; -} - -.color_rules__label { - font-weight: normal; - margin: 0 10px; -} - -.color_rules__input { - padding: 6px 10px; - border-radius: 4px; - border: 1px solid @grayLight; - flex: 1 0 auto; - margin-right: 10px; -} - -.color_rules__secondary { - display: flex; - align-items: center; -} diff --git a/src/core_plugins/metrics/public/less/editor.less b/src/core_plugins/metrics/public/less/editor.less deleted file mode 100644 index 91ed752b23bd9..0000000000000 --- a/src/core_plugins/metrics/public/less/editor.less +++ /dev/null @@ -1,607 +0,0 @@ -@borderRadius: 4px; - -.vis_editor { - flex: 1; -} -.vis_editor_container { - background: @pageColor; -} - -// general styles -.vis_editor__title { - display: flex; - flex-grow: 1; - align-items: center; - font-size: 20px; - margin-bottom: 20px; - - i.fa { - color: @grayLighter; - margin: 0 10px; - } - - i.fa-pencil { - &:hover { - color: @gray; - } - } - - i.fa-check-square { - color: @esGreen; - &:hover { - color: darken(@esGreen, 10%); - } - } - - input { - padding: 0 10px; - border-radius: 4px; - border: 1px solid @grayLighter; - flex-grow: 1; - } -} -.vis_editor__container { - padding: 10px; - background-color: @white; - display: flex; - flex-direction: column; - flex: 1 1 auto; -} -.vis_editor__label { - display: block; - font-size: 1em; - font-weight: normal; - color: @gray; - margin: 0 10px; - flex-shrink: 0; - &:first-child { - margin: 0 10px 0 0; - } -} - -.vis_editor__note { - .vis_editor__label; - font-style: italic; -} -.vis_editor__input { - padding: 8px 10px; - border-radius: @borderRadius; - border: 1px solid @grayLight; - font-size: 1.1em; -} -.vis_editor__input-grows { - .vis_editor__input; - flex-grow: 1; -} -.vis_editor__input-grows-100 { - .vis_editor__input-grows; - width: 100%; -} -.vis_editor__input-number { - .vis_editor__input; - width: 60px; -} -.vis_editor__row { - display: flex; - align-items: center; -} -.vis_editor__item { - flex-grow: 1; -} -.vis_editor__row_item { - flex-grow: 1; - margin-right: 10px; -} -.vis_editor__subhead { - font-size: 12px; - color: @gray; - margin: 5px 0; -} -.vis_editor__subhead-main { - font-size: 18px; - color: @gray; - margin: 10px 10px 5px; -} -.vis_editor__note { - font-size: 14px; - color: @gray; - margin: 5px 0 10px 0; -} - -// color_picker.js -.vis_editor__color_picker { - display: flex; - align-items: center; - position: relative; -} -.vis_editor__color_picker-swatch { - border: 1px solid @grayDark; - width: 20px; - height: 20px; - border-radius: 4px; -} -.vis_editor__color_picker-swatch-empty { - .vis_editor__color_picker-swatch; - background-color: transparent; - background-size: 20px 20px; - background-image: repeating-linear-gradient( - -45deg, - #c00, - #c00 2px, - transparent 2px, - transparent 16px - ); -} -.vis_editor__color_picker-clear { - margin-left: 5px; - color: #c00; -} -.vis_editor__color_picker-popover { - position: absolute; - top: 20px; - z-index: 2; -} -.vis_editor__color_picker-cover { - position: fixed; - top: 0px; - right: 0px; - left: 0px; - bottom: 0px; -} - -// data_format_picker -.vis_editor__data_format_picker-container { - display: flex; - align-items: center; - flex-grow: 1; -} -.vis_editor__data_format_picker-custom_row { - display: flex; - align-items: center; - > .vis_editor__label { - margin-left: 10px; - } -} - -// index_pattern.js -.vis_editor__index_pattern-fields { - margin-right: 10px; - flex-grow: 1; -} - -// series.js -// mainRow == .vis_editor__container -.vis_editor__series { - background-color: @white; - padding: 10px; - border-top: 2px solid @lineColor; - &:first-child { - border-top: none; - } -} -.vis_editor__series-row { - .vis_editor__container; - padding: 0 10px 10px; - display: flex; - flex-direction: column; - flex: 1 1 auto; -} -.vis_editor__series-details { - .vis_editor__row; - flex-grow: 1; - > * { - margin-right: 10px; - } - > .vis_editor__sort { - cursor: move; - margin-right: 0px; - } -} - -.vis_editor__series-visibility-toggle { - appearance: none; - background: none; - border: none; -} - -// series_config.js -.vis_editor__series_config-subhead { - .vis_editor__subhead; - margin: 10px 0 5px; -} - -// series_editor.js -.vis_editor__series_editor-container { - margin-bottom: 20px; -} - -//split.js -.vis_editor__split-container { - .vis_editor__row; - flex-grow: 1; -} -.vis_editor__split-filter { - .vis_editor__input; - flex-grow: 1; -} -.vis_editor__split-selects { - .vis_editor__item; -} -.vis_editor__split-aggs { - flex-grow: 1; -} -.vis_editor__split-term_count { - .vis_editor__input; - width: 60px; -} - -// vis_picker.js -.vis_editor__vis_picker-container { - display: flex; - align-items: center; -} - -.vis_editor__vis_picker-item { - appearance: none; - background: none; - border: none; - justify-content: center; - display: flex; - align-items: center; - font-size: 18px; - padding: 5px 0; - margin: 0 10px; - &:hover { - border-bottom: 2px solid @grayDarker; - } - &.selected { - border-bottom: 2px solid @grayDarker; - } -} -.vis_editor__vis_picker-icon { - display: none; - margin-right: 5px; - color: @grayDark; - &:hover, - &.selected { - color: @grayDarker; - } -} -.vis_editor__vis_picker-label { - font-size: 18px; - color: @grayDark; - &:hover, - &.selected { - color: @grayDarker; - } -} - -.vis_editor__vis_picker-controls { - flex: 1 0 auto; - text-align: right; - margin-right: 10px; -} - -// visualization.js -.vis_editor__visualization { - position: relative; - display: flex; - flex-direction: column; - flex: 1 0 auto; - width: 100%; - height: 250px; - line-height: normal; - background-color: @white; - overflow: auto; -} - -.vis_editor__visualization-draghandle { - text-align: center; - color: @grayLight; - cursor: row-resize; - width: 100%; - display: block; - appearance: none; - background: none; - border: none; - &:hover { - color: @gray; - } - &:focus { - color: @esBlue; - box-shadow: none; - } -} - -.vis_editor__visualization-title { - color: @gray; - font-weight: 500; - overflow: hidden; - white-space: nowrap; - font-size: 16px; - margin-bottom: 10px; -} - -// aggs/agg_row -.vis_editor__agg_row-icon { - margin-right: 10px; - color: @gray; - &.last { - color: @grayDark; - } -} - -.vis_editor__series_row { - display: flex; - background-color: @grayLightest; - margin-bottom: 2px; - padding: 10px; - align-items: center; - .vis_editor__note, - .vis_editor__label { - margin-bottom: 5px; - font-size: 12px; - } -} - -.vis_editor__agg_row { - .vis_editor__series_row; -} - -.vis_editor__series_row-item { - display: flex; - flex-grow: 1; -} - -.vis_editor__agg_row-item { - .vis_editor__series_row-item; - margin-bottom: 10px; -} - -// aggs/std_deviation.js -.vis_editor__std_deviation-field { - .vis_editor__row_item; - flex-grow: 2; -} -.vis_editor__std_deviation-sigma_item { - margin-right: 10px; -} -.vis_editor__std_deviation-sigma { - .vis_editor__input; - width: 50px; -} - -.vis_editor__percentile_rank_value { - margin-right: 10px; -} - -// aggs/std_sibling.js -.vis_editor__std_sibling-metric { - .vis_editor__row_item; - flex-grow: 2; -} - -// aggs/vis_config -.vis_editor__vis_config-row { - .vis_editor__row; - margin: 10px 0; -} - -// aggs/series_config -.vis_editor__series_config-container { - background-color: @grayLightest; - padding: 10px; -} - -.vis_editor__series_config-row { - .vis_editor__row; - padding: 5px 0; - font-size: 12px; -} - -.vis_editor__percentiles, -.vis_editor__variables { - .vis_editor__row_item; - margin: 10px 0; -} -.vis_editor__calc_vars { - // background-color: @white; - // padding: 10px; - margin-right: 10px; - margin-bottom: 2px; -} - -.vis_editor__percentiles-row, -.vis_editor__calc_vars-row { - display: flex; - margin-bottom: 10px; - align-items: center; - &:last-child { - margin-bottom: 0; - } -} - -.vis_editor__calc_vars-name { - margin-right: 10px; -} - -.vis_editor__calc_vars-var { - flex-grow: 1; - margin-right: 10px; -} - -.vis_editor__percentiles-content { - display: flex; - align-items: center; - flex-grow: 1; - margin-right: 10px; -} - -.vis_editor__markdown { - display: flex; - background-color: @white; - min-height: 500px; -} - -.vis_editor__markdown-editor { - border: 2px solid @lineColor; - width: 50%; - flex: 1 0 auto; -} - -.vis_editor__markdown-variables { - padding: 10px; - flex: 1 0 auto; - max-height: 500px; - overflow: auto; - width: 50%; - .table a { - text-decoration: none; - } - pre { - border-radius: 0; - border: none; - } -} - -.vis_editor__no-markdown-variables { - margin-top: 60px; - margin-bottom: 10px; - padding-bottom: 60px; - text-align: center; - font-weight: bold; - border-bottom: 1px solid #d9d9d9; -} - -.vis_editor__markdown-code-desc { - margin-bottom: 10px; -} - -.vis_editor__ace-editor { - border: 2px solid @lineColor; -} - -.vis_editor__split-filters { - flex-grow: 1; - display: flex; - padding: 10px 20px; - flex-direction: column; -} - -.vis_editor__split-filter-row { - display: flex; - flex-grow: 1; - margin-bottom: 10px; - align-items: center; - &:last-child { - margin-bottom: 0; - } -} - -.vis_editor__split-filter-item { - flex-grow: 1; - margin-right: 10px; -} - -.vis_editor__split-filter-color { - margin-right: 10px; -} - -.vis_editor__annotations-color, -.vis_editor__annotations-controls { - flex-shrink: 0; -} - -.vis_editor__annotations-row { - display: flex; - padding: 10px; - background-color: @lineColor; - margin-bottom: 2px; -} - -.vis_editor__annotations-missing { - padding: 30px 10px; - font-size: 16px; - p { - font-size: 16px; - } - text-align: center; -} - -.vis_editor__annotations-content { - margin: 0 10px; - flex-grow: 1; - .vis_editor__row { - margin-bottom: 10px; - } - .vis_editor__row-item { - flex-grow: 1; - margin-left: 10px; - &:first-child { - margin-left: 0; - } - .vis_editor__label { - margin-bottom: 4px; - } - } - .vis_editor__row-item-small { - .vis_editor__row-item; - flex-grow: 0; - } -} - -.vis_editor__icon_select-option { - margin: 0 5px; -} -.vis_editor__icon_select-value { - margin: 0 5px 0 0; -} - -.vis_editor__agg_select-heading { - color: @black; - cursor: default; -} - -.vis_editor__agg_select-note { - margin-left: 10px; - color: @gray; - font-size: 0.9em; -} - -.vis_editor__dirty_controls { - padding: 8px 6px; - background-color: @grayLightest; - display: flex; - align-content: center; -} - -.vis_editor__dirty_controls-button { - flex: 0 0 auto; -} - -.vis_editor__dirty_controls-message { - flex: 1 0 auto; - color: @grayLight; - padding: 4px 10px 0; -} - -.vis_editor__dirty_controls-message-dirty { - flex: 1 0 auto; - color: @gray; - padding: 4px 10px 0; -} - -.vis_editor__dirty_controls-toggle-label { - padding: 4px 10px 0; - flex: 0 0 auto; - color: @gray; - font-weight: normal; -} - -.vis_editor__dirty_controls-toggle { - flex: 0 0 auto; -} - -.vis_editor__table-pivot-fields { - border-bottom: 2px solid @lineColor; -} diff --git a/src/core_plugins/metrics/public/less/error.less b/src/core_plugins/metrics/public/less/error.less deleted file mode 100644 index 9b899956a18c0..0000000000000 --- a/src/core_plugins/metrics/public/less/error.less +++ /dev/null @@ -1,50 +0,0 @@ -.metrics_issue { - display: flex; - flex-direction: column; - flex: 1 0 auto; - background-color: #b3ccd5; - color: #0079a5; - justify-content: center; - padding: 20px; -} - -.metrics_issue__title { - text-align: center; - font-size: 18px; - font-weight: bold; -} - -.metrics_error { - display: flex; - flex-direction: column; - flex: 1 0 auto; - background-color: #ffd9d9; - color: #c00; - justify-content: center; - padding: 20px; -} - -.metrics_error__title { - text-align: center; - font-size: 18px; - font-weight: bold; -} - -.metrics_error__additional { - margin-top: 10px; - padding: 0 20px; -} - -.metrics_error__reason { - text-align: center; -} - -.metrics_error__stack { - margin-top: 10px; - color: #fff; - border: 10px solid #fff; - background-color: #000; - font-family: "Courier New", Courier, monospace; - white-space: pre; - padding: 10px; -} diff --git a/src/core_plugins/metrics/public/less/kbn_tabs.less b/src/core_plugins/metrics/public/less/kbn_tabs.less deleted file mode 100644 index fed92633c3a3f..0000000000000 --- a/src/core_plugins/metrics/public/less/kbn_tabs.less +++ /dev/null @@ -1,31 +0,0 @@ -.kbnTabs { - display: flex; -} - -.kbnTabs__tab { - appearance: none; - background: none; - border: none; - margin: 0px 10px; - padding: 5px 0px; - color: @grayDark; - font-size: 18px; -} - -.kbnTabs__tab-active { - .kbnTabs__tab; - color: @grayDarker; - border-bottom: 2px solid @grayDarker; -} - -.kbnTabs__tab:hover { - .kbnTabs__tab-active; -} - -.kbnTabs.sm { - .kbnTabs__tab-active, - .kbnTabs__tab { - font-size: 14px; - padding: 2px 0; - } -} diff --git a/src/core_plugins/metrics/public/less/main.less b/src/core_plugins/metrics/public/less/main.less deleted file mode 100644 index 913d307c4d00e..0000000000000 --- a/src/core_plugins/metrics/public/less/main.less +++ /dev/null @@ -1,41 +0,0 @@ -@black: black; -@grayDarkest: #222; -@grayDarker: #333; -@grayDark: #666; -@gray: #999; -@grayLight: #CCC; -@grayLighter: #DDD; -@grayLightest: #EEE; -@white: white; - -@background: #FFF; -@navBarBackground: #DDD; -@lineColor: #EEE; -@textColor: #999; -@disabledColor: #CCC; -@valueColor: #666; -@topNavColor: #E4E4E4; -@pageColor: #F6F6F6; - -@kibanaGray: #95a5a6; -@esBlue: #0079a5; -@esRed: #d76051; -@esYellow: #fbce47; -@esGreen: #80c383; -@esPink: #e8488b; -@esPurple: #9980b2; - -@esAltGreen: #8ac336; -@esCyan: #59c6c5; - -@import './misc.less'; -@import './editor.less'; -@import './kbn_tabs.less'; -@import './color_rules.less'; -@import './markdown.less'; -@import './sortable.less'; -@import './color_picker.less'; -@import './error.less'; -@import './split_vis.less'; - - diff --git a/src/core_plugins/metrics/public/less/markdown.less b/src/core_plugins/metrics/public/less/markdown.less deleted file mode 100644 index b995f2a177477..0000000000000 --- a/src/core_plugins/metrics/public/less/markdown.less +++ /dev/null @@ -1,60 +0,0 @@ -.thorMarkdown { - display: flex; - flex-direction: column; - flex: 1 0 auto; - position: relative; -} - -.thorMarkdown__content { - display: flex; - flex-direction: column; - flex: 1 0 auto; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - overflow: hidden; - @import './type.less'; - color: rgba(0,0,0,1); - pre, code, tt { - background-color: rgba(0,0,0,0.1); - color: red; - code { - color: rgba(0,0,0,1); - background-color: transparent; - } - border: none; - } - &.middle { - justify-content: center; - } - &.bottom { - justify-content: flex-end; - } - &.scrolling { - overflow: auto; - } -} - -.thorMarkdown.reversed { - .thorMarkdown__content { - .table > thead > tr > th { - color: rgba(255,255,255,0.5); - border-bottom: 2px solid rgba(255,255,255,0.2); - } - .table > tbody > tr > td { - border-top: 1px solid rgba(255,255,255,0.2); - } - color: rgba(255,255,255,1); - pre, code, tt { - background-color: rgba(255,255,255,0.2); - color: #ffa5a8; - code { - color: rgba(255,255,255,1); - background-color: transparent; - } - border: none; - } - } -} diff --git a/src/core_plugins/metrics/public/less/misc.less b/src/core_plugins/metrics/public/less/misc.less deleted file mode 100644 index 2ed8bd72ee6f0..0000000000000 --- a/src/core_plugins/metrics/public/less/misc.less +++ /dev/null @@ -1,118 +0,0 @@ -.thor__input { - padding: 7px 10px; - border-radius: 4px; - border: 1px solid @grayLighter; - &:focus { - outline: none; - box-shadow: 0 0 2px @grayLight; - } -} - -.thor__yes_no { - label { - font-weight: normal; - margin-right: 10px; - input { margin-right: 5px; } - } -} - -.thor__button { - display: inline-block; - vertical-align: middle; - text-align: center; - cursor: pointer; - white-space: nowrap; - border: 1px solid transparent; - background-color: transparent; - padding: 4px 8px; - border-radius: 4px; - margin: 0 0 0 10px; - &.sm { - padding: 2px 6px; - font-size: 0.8em; - margin-left: 5px; - } - &.md { - padding: 3px 7px; - font-size: 0.9em; - margin-left: 5px; - } -} - -.create-buttons(@name; @color) { - .thor__button-outlined-@{name} { - .thor__button; - border-color: @color; - color: @color !important; - &:hover { - border-color: darken(@color, 10%); - color: darken(@color, 10%) !important; - } - } - .thor__button-solid-@{name} { - .thor__button; - background-color: @color; - color: @white !important; - &:hover { - background-color: darken(@color, 10%); - color: @white !important; - } - } -} - - -.create-buttons(gray, @kibanaGray); -.create-buttons(grayLight, @grayLight); -.create-buttons(default, @esBlue); -.create-buttons(primary, @esGreen); -.create-buttons(danger, @esRed); - -.pui-tooltip { font-size: 12px !important; } - -.add_delete__buttons { - > * { - margin-left: 5px; - } - .disabled { - color: @gray; - border-color: @gray; - } -} - -/** - * 1. The absolute positioning broke reports and was fighting with display: flex, - * setting the flex-basis to 100% fixed the issue the abs positioning was trying to fix - */ -.dashboard__visualization { - display: flex; - flex-direction: column; - flex: 1 1 100%; /* 1 */ - padding: 10px; -} - -.dashboard__visualization-title { - color: rgba(0,0,0,0.6); - font-weight: 500; - overflow: hidden; - white-space: nowrap; - font-size: 16px; - margin-bottom: 10px; - flex: 0 0 auto; - &.reversed { - color: rgba(255,255,255,0.8); - } -} - -.tsvb-table__value { - font-size: 1.1em; - text-align: right; -} - -.tsvb-table__trend { - margin-left: 5px; -} - -.tsvb-table__columnName { - text-align: right; -} - diff --git a/src/core_plugins/metrics/public/less/sortable.less b/src/core_plugins/metrics/public/less/sortable.less deleted file mode 100644 index b1b043ca0207f..0000000000000 --- a/src/core_plugins/metrics/public/less/sortable.less +++ /dev/null @@ -1,38 +0,0 @@ -.ui-sortable { - display: block; - position: relative; - overflow: visible; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; -} - -.ui-sortable:before, -.ui-sortable:after{ - content: " "; - display: table; -} - -.ui-sortable:after{ - clear: both; -} - -.ui-sortable .ui-sortable-item { -} - -.ui-sortable .ui-sortable-item.ui-sortable-dragging { - position: absolute; - z-index: 1688; -} - -.ui-sortable .ui-sortable-placeholder { - display: none; -} - -.ui-sortable .ui-sortable-placeholder.visible { - display: block; - opacity: 0.5; - z-index: -1; -} - - diff --git a/src/core_plugins/metrics/public/less/split_vis.less b/src/core_plugins/metrics/public/less/split_vis.less deleted file mode 100644 index a43e02f8a203b..0000000000000 --- a/src/core_plugins/metrics/public/less/split_vis.less +++ /dev/null @@ -1,16 +0,0 @@ -.splitVis { - display: flex; - flex: 1 0 auto; -} - -.splitVis_split { - display: flex; - flex: 1 0 0; - flex-direction: column; - overflow: hidden; -} - -.splitVis_visualization { - position: relative; - flex: 1 0 auto; -} diff --git a/src/core_plugins/metrics/public/less/type.less b/src/core_plugins/metrics/public/less/type.less deleted file mode 100644 index 0dc3da0a3e429..0000000000000 --- a/src/core_plugins/metrics/public/less/type.less +++ /dev/null @@ -1,94 +0,0 @@ -pre, code, tt { - border-radius: 0; - font: 1em/1.5em 'Andale Mono', 'Lucida Console', monospace; -} -h1 { font-size: 30px; } -h2 { font-size: 26px; } -h3 { font-size: 22px; } -h4 { font-size: 18px; } -h5 { font-size: 16px; } -h6 { font-size: 16px; } - -h1, h2, h3, h4, h5, h6, b, strong { - margin:0 0 15px 0; - font-weight: bold; -} -em, i, dfn { - font-style: italic; -} -dfn { - font-weight:bold; -} -p, code, pre, kbd { - margin:0 0 15px 0; -} -blockquote { - margin:0 15px 15px 15px; -} -cite { - font-style: italic; -} -li ul, li ol { - margin:0 15px; -} -ul, ol { - margin:0 15px 15px 15px; -} -ul { - list-style-type:disc; -} -ol { - list-style-type:decimal; -} -ol ol { - list-style: upper-alpha; -} -ol ol ol { - list-style: lower-roman; -} -ol ol ol ol { - list-style: lower-alpha; -} -dl { - margin:0 0 15px 0; -} -dl dt { - font-weight:bold; -} -dd { - margin-left:1.5em; -} -table { - margin-bottom:1.4em; - width:100%; -} -th { - font-weight:bold; -} -th, td, caption { - padding:4px 15px 4px 5px; -} -tfoot { - font-style:italic; -} -sup, sub { - line-height:0; -} -abbr, acronym { - border-bottom: 1px dotted; -} -address { - margin:0 0 15px; - font-style:italic; -} -del { - text-decoration: line-through; -} -pre { - margin: 15px 0; - white-space: pre; -} -img { - max-width: 100%; -} - diff --git a/src/core_plugins/metrics/public/lib/__tests__/extract_index_pattern.js b/src/core_plugins/metrics/public/lib/__tests__/extract_index_pattern.js index 8d085140b1761..b9d1e8e6b5a58 100644 --- a/src/core_plugins/metrics/public/lib/__tests__/extract_index_pattern.js +++ b/src/core_plugins/metrics/public/lib/__tests__/extract_index_pattern.js @@ -20,35 +20,34 @@ import { extractIndexPatterns } from '../extract_index_patterns'; import { expect } from 'chai'; describe('extractIndexPatterns(vis)', () => { - let vis; + let visParams; + let visFields; beforeEach(() => { - vis = { - fields: { - '*': [] - }, - params: { - index_pattern: '*', - series: [ - { - override_index_pattern: 1, - series_index_pattern: 'example-1-*' - }, - { - override_index_pattern: 1, - series_index_pattern: 'example-2-*' - } - ], - annotations: [ - { index_pattern: 'notes-*' }, - { index_pattern: 'example-1-*' } - ] - } + visFields = { + '*': [] + }; + visParams = { + index_pattern: '*', + series: [ + { + override_index_pattern: 1, + series_index_pattern: 'example-1-*' + }, + { + override_index_pattern: 1, + series_index_pattern: 'example-2-*' + } + ], + annotations: [ + { index_pattern: 'notes-*' }, + { index_pattern: 'example-1-*' } + ] }; }); it('should return index patterns', () => { - vis.fields = {}; - expect(extractIndexPatterns(vis)).to.eql([ + visFields = {}; + expect(extractIndexPatterns(visParams, visFields)).to.eql([ '*', 'example-1-*', 'example-2-*', @@ -56,8 +55,8 @@ describe('extractIndexPatterns(vis)', () => { ]); }); - it('should return index patterns that do not exist in vis.fields', () => { - expect(extractIndexPatterns(vis)).to.eql([ + it('should return index patterns that do not exist in visFields', () => { + expect(extractIndexPatterns(visParams, visFields)).to.eql([ 'example-1-*', 'example-2-*', 'notes-*' diff --git a/src/core_plugins/metrics/public/lib/extract_index_patterns.js b/src/core_plugins/metrics/public/lib/extract_index_patterns.js index c7e4f555955e0..7f800f0349236 100644 --- a/src/core_plugins/metrics/public/lib/extract_index_patterns.js +++ b/src/core_plugins/metrics/public/lib/extract_index_patterns.js @@ -18,24 +18,24 @@ */ import { uniq } from 'lodash'; -export function extractIndexPatterns(vis) { +export function extractIndexPatterns(params, fetchedFields) { const patternsToFetch = []; - if (!vis.fields[vis.params.index_pattern]) { - patternsToFetch.push(vis.params.index_pattern); + if (!fetchedFields[params.index_pattern]) { + patternsToFetch.push(params.index_pattern); } - vis.params.series.forEach(series => { + params.series.forEach(series => { const indexPattern = series.series_index_pattern; - if (series.override_index_pattern && !vis.fields[indexPattern]) { + if (series.override_index_pattern && !fetchedFields[indexPattern]) { patternsToFetch.push(indexPattern); } }); - if (vis.params.annotations) { - vis.params.annotations.forEach(item => { + if (params.annotations) { + params.annotations.forEach(item => { const indexPattern = item.index_pattern; - if (indexPattern && !vis.fields[indexPattern]) { + if (indexPattern && !fetchedFields[indexPattern]) { patternsToFetch.push(indexPattern); } }); diff --git a/src/core_plugins/metrics/public/lib/fetch_fields.js b/src/core_plugins/metrics/public/lib/fetch_fields.js index 5fc68f14378eb..9a2c2d1c78e12 100644 --- a/src/core_plugins/metrics/public/lib/fetch_fields.js +++ b/src/core_plugins/metrics/public/lib/fetch_fields.js @@ -16,36 +16,34 @@ * specific language governing permissions and limitations * under the License. */ +import { kfetch } from 'ui/kfetch'; +import { toastNotifications } from 'ui/notify'; -const FetchFieldsProvider = (Notifier, $http) => { - const notify = new Notifier({ location: 'Metrics' }); - return (indexPatterns = ['*']) => { - if (!Array.isArray(indexPatterns)) indexPatterns = [indexPatterns]; - return new Promise((resolve, reject) => { - const fields = {}; - - Promise.all(indexPatterns.map(pattern => { - const httpResult = $http.get(`../api/metrics/fields?index=${pattern}`) - .then(resp => resp.data) - .catch(resp => { throw resp.data; }); - - return httpResult - .then(resp => { - if (resp.length && pattern) { - fields[pattern] = resp; - } - }) - .catch(resp => { - const err = new Error(resp.message); - err.stack = resp.stack; - notify.error(err); - reject(err); - }); - })).then(() => { - resolve(fields); +async function fetchFields(indexPatterns = ['*']) { + const patterns = Array.isArray(indexPatterns) ? indexPatterns : [indexPatterns]; + try { + const indexFields = await Promise.all(patterns.map((pattern) => { + return kfetch({ + method: 'GET', + pathname: '/api/metrics/fields', + query: { + index: pattern, + } }); + })); + const fields = patterns.reduce((cumulatedFields, currentPattern, index) => { + return { + ...cumulatedFields, + [currentPattern]: indexFields[index] + }; + }, {}); + return fields; + } catch(error) { + toastNotifications.addDanger({ + title: 'Unable to load index_pattern fields', + text: error.message, }); - }; -}; + } +} -export { FetchFieldsProvider }; +export { fetchFields }; diff --git a/src/core_plugins/metrics/public/visualizations/components/_annotation.scss b/src/core_plugins/metrics/public/visualizations/components/_annotation.scss new file mode 100644 index 0000000000000..bc502035a0d78 --- /dev/null +++ b/src/core_plugins/metrics/public/visualizations/components/_annotation.scss @@ -0,0 +1,30 @@ +.tvbVisAnnotation { + position: absolute; + z-index: 90; // Specific to not overlap chart tooltip + display: flex; + flex-direction: column; + align-items: center; +} + +.tvbVisAnnotation__line { + flex: 1 0 auto; + width: 2px; +} + +.tvbVisAnnotation__icon { + flex: 0 0 auto; + width: $euiSizeM; + text-align: center; +} + +.tvbVisAnnotation__tooltip { + @include euiBottomShadow($color: $euiColorFullShade); + @include euiFontSizeXS; + padding: $euiSizeS; + animation-duration: .0s; + animation-delay: .0; +} + +.tvbVisAnnotation__timestamp { + color: $euiColorLightShade; +} diff --git a/src/core_plugins/metrics/public/visualizations/components/_gauge.scss b/src/core_plugins/metrics/public/visualizations/components/_gauge.scss new file mode 100644 index 0000000000000..08ce3f991acf2 --- /dev/null +++ b/src/core_plugins/metrics/public/visualizations/components/_gauge.scss @@ -0,0 +1,74 @@ +/** + * 1. Text is scaled using a matrix so all font sizes and related metrics + * are being calcuated from a percentage of the base font size of 100% (14px). + */ + +.tvbVisHalfGauge, +.tvbVisCircleGauge { + font-size: 100%; /* 1 */ + display: flex; + flex-direction: column; + flex: 1 0 auto; +} + +.tvbVisHalfGauge__metrics, +.tvbVisCircleGauge__metrics { + position: absolute; + width: 100px; + height: 100px; + text-align: center; + padding: $euiSizeS; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.tvbVisHalfGauge__metrics { + height: 70px; + padding: 0px $euiSizeM $euiSizeS; + justify-content: flex-end; +} + +.tvbVisGauge__label { + color: $tvbTextColor; + font-size: 0.5em; /* 1 */ + line-height: 1em; /* 1 */ + text-align: center; + padding: 0 $euiSizeS $euiSizeXS; + + .tvbVisGauge--reversed & { + color: $tvbTextColorReversed; + } +} + +.tvbVisGauge__value { + color: $tvbValueColor; + font-size: .9em; /* 1 */ + line-height: 1em; /* 1 */ + text-align: center; + + .tvbVisGauge--reversed & { + color: $tvbValueColorReversed; + } +} + +.tvbVisGauge__additionalLabel { + @include euiTextTruncate; + font-size: 0.4em; /* 1 */ + line-height: 1.2em; /* 1 */ + width: 100%; + padding: 2px $euiSizeXS; + color: $tvbValueColor; + + .tvbVisGauge--reversed & { + color: $tvbValueColorReversed; + } +} + +.tvbVisGauge__resize { + position: relative; + display: flex; + flex-direction: column; + flex: 1 0 auto; +} diff --git a/src/core_plugins/metrics/public/visualizations/components/_index.scss b/src/core_plugins/metrics/public/visualizations/components/_index.scss new file mode 100644 index 0000000000000..c5ce0ff8c8513 --- /dev/null +++ b/src/core_plugins/metrics/public/visualizations/components/_index.scss @@ -0,0 +1,6 @@ +@import './annotation'; +@import './gauge'; +@import './metric'; +@import './legend'; +@import './timeseries_chart'; +@import './top_n'; diff --git a/src/core_plugins/metrics/public/visualizations/components/_legend.scss b/src/core_plugins/metrics/public/visualizations/components/_legend.scss new file mode 100644 index 0000000000000..e6a18e7c9ac11 --- /dev/null +++ b/src/core_plugins/metrics/public/visualizations/components/_legend.scss @@ -0,0 +1,91 @@ +// LEGEND + +.tvbLegend { + @include euiFontSizeXS; + display: flex; + width: 200px; + padding: $euiSizeXS 0; + overflow: auto; +} + +.tvbLegend__toggle { + align-self: flex-start; + color: $tvbValueColor; + + .tvbVisTimeSeries--reversed & { + color: $tvbValueColorReversed; + } +} + +.tvbLegend__series { + flex-grow: 1; +} + +.tvbLegend__item { + cursor: pointer; + padding: $euiSizeXS; + border-bottom: 1px solid $tvbLineColor; + display: flex; + max-width: 170px; + + &.disabled { + opacity: 0.5; + } + + &:first-child { + border-top: 1px solid $tvbLineColor; + } + + .tvbVisTimeSeries--reversed & { + border-color: $tvbLineColorReversed; + } +} + +.tvbLegend__button { + text-align: left; + display: flex; + width: 100%; +} + +.tvbLegend__itemLabel { + flex-grow: 1; + @include euiTextTruncate; + + span { + color: $euiTextColor; + margin-left: $euiSizeXS; + + .tvbVisTimeSeries--reversed & { + color: $tvbTextColorReversed; + } + } +} + +.tvbLegend__itemValue { + color: $tvbValueColor; + margin-left: $euiSizeXS; + + .tvbVisTimeSeries--reversed & { + color: $tvbValueColorReversed; + } +} + +.tvbLegend--horizontal { + width: auto; + display: flex; + + .tvbLegend__series { + display: flex; + flex-wrap: wrap; + } + + .tvbLegend__item { + max-width: inherit; + margin-right: $euiSizeM; + border: none; + } + + .tvbLegend__itemLabel { + flex: 0 1 auto; + } +} diff --git a/src/core_plugins/metrics/public/visualizations/components/_metric.scss b/src/core_plugins/metrics/public/visualizations/components/_metric.scss new file mode 100644 index 0000000000000..839f97243151c --- /dev/null +++ b/src/core_plugins/metrics/public/visualizations/components/_metric.scss @@ -0,0 +1,103 @@ +@mixin tvbVisMetricReversedColor { + // Some hacking in the CSS to provide the correct text color + // depending on dark/light theme and/or background color provided + // An easier way would be to provide if the theme is dark in the JS, + // but it wasn't passed down. + .tab-dashboard.theme-dark .tvbVisMetric--noBackground &, + .tvbVisMetric--reversed & { + @content; + } +} + +/** + * 1. Text is scaled using a matrix so all font sizes and related metrics + * are being calcuated from a percentage of the base font size of 100% (14px). + */ + +.tvbVisMetric { + font-size: 100%; /* 1 */ + position: relative; + display: flex; + flex-direction: column; + flex: 1 0 auto; +} + +.tvbVisMetric__resize { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + overflow: hidden; + display: flex; +} + +.tvbVisMetric__label--primary { + color: $tvbTextColor; + text-align: center; + font-size: 0.5em; /* 1 */ + margin-bottom: 0.25em; /* 1 */ + line-height: 1em; /* 1 */ + + @include tvbVisMetricReversedColor { + color: $tvbTextColorReversed; + } +} + +.tvbVisMetric__value--primary { + color: $tvbValueColor; + text-align: center; + font-size: 1em; /* 1 */ + font-weight: $euiFontWeightBold; + line-height: 1em; /* 1 */ + + @include tvbVisMetricReversedColor { + color: $tvbValueColorReversed; + } +} + +.tvbVisMetric__secondary { + display: flex; + justify-content: center; + align-items: center; + margin-top: 0.05em; /* 1 */ +} + +.tvbVisMetric__label--secondary { + font-size: 0.35em; /* 1 */ + margin-right: 0.3em; /* 1 */ + color: $tvbTextColor; + line-height: 1em; /* 1 */ + + @include tvbVisMetricReversedColor { + color: $tvbTextColorReversed; + } +} + +.tvbVisMetric__value--secondary { + font-size: 0.35em; /* 1 */ + color: $tvbValueColor; + line-height: 1em; /* 1 */ + + @include tvbVisMetricReversedColor { + color: $tvbValueColorReversed; + } +} + +.tvbVisMetric__inner { + position: absolute; + padding: $euiSizeXS $euiSizeS $euiSizeS; +} + +.tvbVisMetric__label--additional { + @include euiTextTruncate; + font-size: 0.25em; /* 1 */ + padding: $euiSizeXS/2 0 0 0; + text-align: center; + color: $tvbValueColor; + line-height: 1.2; // Ensure the descenders don't get cut off + + @include tvbVisMetricReversedColor { + color: $tvbValueColorReversed; + } +} diff --git a/src/core_plugins/metrics/public/visualizations/components/_timeseries_chart.scss b/src/core_plugins/metrics/public/visualizations/components/_timeseries_chart.scss new file mode 100644 index 0000000000000..6f644eb88bdfb --- /dev/null +++ b/src/core_plugins/metrics/public/visualizations/components/_timeseries_chart.scss @@ -0,0 +1,116 @@ +.tvbVisTimeSeries { + position: relative; + display: flex; + flex-direction: column; + flex: 1 0 auto; +} + +.tvbVisTimeSeries__content { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: flex; + flex: 1 0 auto; + // TODO: Remove once tooltips are portaled + overflow: hidden; // Ensures the tooltip doesn't cause scrollbars +} + +.tvbVisTimeSeries__visualization { + cursor: crosshair; + display: flex; + flex-direction: column; + flex: 1 0 auto; + position: relative; + + > .tvbVisTimeSeries__container { + min-width: 1px; + width: 100%; + height: 100%; + } +} + +.tvbVisTimeSeries__container { + position: relative; + display: flex; + flex-direction: column; + flex: 1 0 auto; +} + +.tvbVisTimeSeries__axisLabel { + @include euiFontSizeXS; + color: $tvbTextColor; + text-align: center; + min-height: 1.2em; + + &.tvbVisTimeSeries__axisLabel--reversed { + color: $tvbTextColorReversed; + } +} + +// TOOLTIP + +// EUITODO: Use EuiTooltip or somehow portal the current one +.tvbTooltip__container { + pointer-events: none; + position: absolute; + z-index: $euiZLevel9; + display: flex; + align-items: center; + padding: 0 $euiSizeS; + transform: translate(0, -50%); +} + +.tvbTooltip__container--right { + flex-direction: row-reverse; +} + +.tvbTooltip { + background-color: tintOrShade($euiColorFullShade, 25%, 90%); + @include euiBottomShadow($color: $euiColorFullShade); + @include euiFontSizeXS; + padding: $euiSizeS; + border-radius: $euiBorderRadius; + color: $euiColorGhost; + max-width: 320px; +} + +.tvbTooltip__caret { + $temp-arrowSize: $euiSizeM; + width: $temp-arrowSize; + height: $temp-arrowSize; + color: tintOrShade($euiColorFullShade, 25%, 90%); + border-radius: 2px; + background-color: tintOrShade($euiColorFullShade, 25%, 90%); + transform-origin: center; + transform: rotateZ(45deg); + + .tvbTooltip__container--left & { + margin-right: (($temp-arrowSize/2) + 1px) * -1; + } + + .tvbTooltip__container--right & { + margin-left: (($temp-arrowSize/2) + 1px) * -1; + } +} + +.tvbTooltip__item { + display: flex; +} + +.tvbTooltip__label { + flex-grow: 1; + margin-left: $euiSizeXS; + margin-right: $euiSizeXS; +} + +.tvbTooltip__icon, +.tvbTooltip__value { + flex-shrink: 0; +} + +.tvbTooltip__timestamp { + color: $euiColorLightShade; + white-space: nowrap; +} diff --git a/src/core_plugins/metrics/public/visualizations/components/_top_n.scss b/src/core_plugins/metrics/public/visualizations/components/_top_n.scss new file mode 100644 index 0000000000000..bdfe2955da042 --- /dev/null +++ b/src/core_plugins/metrics/public/visualizations/components/_top_n.scss @@ -0,0 +1,50 @@ + + +.tvbVisTopN { + position: relative; + overflow: auto; + display: flex; + flex-direction: column; + + tr:hover td { + background-color: $tvbHoverBackgroundColor; + } +} + +.tvbVisTopN__value { + text-align: right; + white-space: nowrap; + line-height: 0; + vertical-align: middle; + color: $tvbValueColor; + padding: $euiSizeXS; + padding-bottom: 0; +} + +.tvbVisTopN__label { + color: $tvbTextColor; + padding: $euiSizeXS 0; +} + +.tvbVisTopN__bar { + padding: $euiSizeXS $euiSizeM; + vertical-align: middle; +} + +.tvbVisTopN__innerBar { + min-height: $euiSize; +} + +.tvbVisTopN--reversed { + tr:hover td { + background-color: $tvbHoverBackgroundColorReversed; + } + + .tvbVisTopN__label { + color: $tvbTextColorReversed; + } + + .tvbVisTopN__value { + color: $tvbValueColorReversed; + } +} diff --git a/src/core_plugins/metrics/public/visualizations/components/annotation.js b/src/core_plugins/metrics/public/visualizations/components/annotation.js index 09ccf8197dc58..4071f92e91ff2 100644 --- a/src/core_plugins/metrics/public/visualizations/components/annotation.js +++ b/src/core_plugins/metrics/public/visualizations/components/annotation.js @@ -21,49 +21,32 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import moment from 'moment'; import reactcss from 'reactcss'; +import { EuiToolTip } from '@elastic/eui'; class Annotation extends Component { constructor(props) { super(props); - this.state = { - showTooltip: false - }; - this.handleMouseOut = this.handleMouseOut.bind(this); - this.handleMouseOver = this.handleMouseOver.bind(this); } renderTooltip() { - if (!this.state.showTooltip) return null; const [ timestamp, messageSource ] = this.props.series; - const reversed = this.props.reversed ? '-reversed' : ''; const messages = messageSource.map((message, i) => { return (
      { message }
      ); }); return ( -
      -
      -
      { moment(timestamp).format('lll') }
      - { messages } -
      -
      +
      +
      { moment(timestamp).format('lll') }
      + { messages }
      ); } - handleMouseOver() { - this.setState({ showTooltip: true }); - } - - handleMouseOut() { - this.setState({ showTooltip: false }); - } - render() { const { color, plot, icon, series } = this.props; const offset = plot.pointOffset({ x: series[0], y: 0 }); @@ -82,18 +65,11 @@ class Annotation extends Component { } }); return( -
      -
      -
      - - { tooltip } -
      +
      +
      + + +
      ); } diff --git a/src/core_plugins/metrics/public/visualizations/components/flot_chart.js b/src/core_plugins/metrics/public/visualizations/components/flot_chart.js index dfbc2f473af90..8e1ea8c9ae2a4 100644 --- a/src/core_plugins/metrics/public/visualizations/components/flot_chart.js +++ b/src/core_plugins/metrics/public/visualizations/components/flot_chart.js @@ -297,11 +297,11 @@ class FlotChart extends Component { this.resize = el} - className="rhythm_chart__timeseries-container" + className="tvbVisTimeSeries__container" >
      this.target = el} - className="rhythm_chart__timeseries-container" + className="tvbVisTimeSeries__container" /> ); diff --git a/src/core_plugins/metrics/public/visualizations/components/gauge.js b/src/core_plugins/metrics/public/visualizations/components/gauge.js index 0fab821bb698e..bf90fe7897df6 100644 --- a/src/core_plugins/metrics/public/visualizations/components/gauge.js +++ b/src/core_plugins/metrics/public/visualizations/components/gauge.js @@ -110,7 +110,7 @@ class Gauge extends Component { let additionalLabel; if (this.props.additionalLabel) { additionalLabel = ( -
      +
      {this.props.additionalLabel}
      ); @@ -118,17 +118,17 @@ class Gauge extends Component { if (type === 'half') { metrics = (
      this.inner = el} style={styles.inner} >
      { title }
      { formatter(value) } @@ -139,18 +139,18 @@ class Gauge extends Component { } else { metrics = (
      this.inner = el} style={styles.inner} >
      { formatter(value) }
      { title }
      @@ -158,13 +158,13 @@ class Gauge extends Component {
      ); } - let className = type === 'half' ? 'thorHalfGauge' : 'thorCircleGauge'; - if (this.props.reversed) className = `reversed ${className}`; + let className = type === 'half' ? 'tvbVisHalfGauge' : 'tvbVisCircleGauge'; + if (this.props.reversed) className = `${className} tvbVisGauge--reversed`; return (
      this.resize = el} - className={`${className}__resize`} + className={`tvbVisGauge__resize`} > { metrics } diff --git a/src/core_plugins/metrics/public/visualizations/components/horizontal_legend.js b/src/core_plugins/metrics/public/visualizations/components/horizontal_legend.js index 2a76c928d0073..8f9dccadbe60d 100644 --- a/src/core_plugins/metrics/public/visualizations/components/horizontal_legend.js +++ b/src/core_plugins/metrics/public/visualizations/components/horizontal_legend.js @@ -21,34 +21,36 @@ import PropTypes from 'prop-types'; import React from 'react'; import createLegendSeries from '../lib/create_legend_series'; import reactcss from 'reactcss'; -import { htmlIdGenerator } from '@elastic/eui'; +import { htmlIdGenerator, EuiButtonIcon } from '@elastic/eui'; function HorizontalLegend(props) { const rows = props.series.map(createLegendSeries(props)); const htmlId = htmlIdGenerator(); const styles = reactcss({ - hideLegned: { + hideLegend: { legend: { display: 'none' } } - }, { hideLegned: !props.showLegend }); - let legendControlClass = 'fa fa-chevron-down'; + }, { hideLegend: !props.showLegend }); + + let legendToggleIcon = 'arrowDown'; if (!props.showLegend) { - legendControlClass = 'fa fa-chevron-up'; + legendToggleIcon = 'arrowUp'; } return ( -
      -
      -
      -
      +
      + +
      { rows }
      diff --git a/src/core_plugins/metrics/public/visualizations/components/metric.js b/src/core_plugins/metrics/public/visualizations/components/metric.js index f4876fab4dbb9..f21de4e69e547 100644 --- a/src/core_plugins/metrics/public/visualizations/components/metric.js +++ b/src/core_plugins/metrics/public/visualizations/components/metric.js @@ -82,41 +82,21 @@ class Metric extends Component { left: this.state.left || 0, transform: `matrix(${scale}, 0, 0, ${scale}, ${translateX}, ${translateY})` }, - primary_text: { - color: 'rgba(0,0,0,0.5)' - }, - primary_value: { - color: '#000' - }, - secondary_text: { - color: 'rgba(0,0,0,0.5)' - }, - secondary_value: { - color: '#000' - } + primary_value: {}, + secondary_value: {} }, reversed: { - primary_text: { - color: 'rgba(255,255,255,0.7)' - }, - primary_value: { - color: '#FFF' - }, - secondary_text: { - color: 'rgba(255,255,255,0.7)' - }, - secondary_value: { - color: '#FFF' - } - + primary_value: {}, + secondary_value: {} } }, this.props); if (this.props.backgroundColor) styles.container.backgroundColor = this.props.backgroundColor; if (metric && metric.color) styles.primary_value.color = metric.color; + let primaryLabel; if (metric && metric.label) { - primaryLabel = (
      { metric.label }
      ); + primaryLabel = (
      { metric.label }
      ); } let secondarySnippet; @@ -126,12 +106,12 @@ class Metric extends Component { if (secondary.color) styles.secondary_value.color = secondary.color; let secondaryLabel; if (secondary.label) { - secondaryLabel = (
      { secondary.label }
      ); + secondaryLabel = (
      { secondary.label }
      ); } secondarySnippet = ( -
      +
      { secondaryLabel } -
      { secondaryValue }
      +
      { secondaryValue }
      ); } @@ -139,25 +119,33 @@ class Metric extends Component { let additionalLabel; if (this.props.additionalLabel) { additionalLabel = ( -
      +
      {this.props.additionalLabel}
      ); } + let className = 'tvbVisMetric'; + if (!styles.container.backgroundColor) { + className += ' tvbVisMetric--noBackground'; + } + if (this.props.reversed) { + className += ' tvbVisMetric--reversed'; + } + return ( -
      +
      this.resize = el} - className="rhythm_metric__resize" + className="tvbVisMetric__resize" > -
      this.inner = el} className="rhythm_metric__inner" style={styles.inner}> -
      +
      this.inner = el} className="tvbVisMetric__inner" style={styles.inner}> +
      { primaryLabel }
      { primaryValue }
      diff --git a/src/core_plugins/metrics/public/visualizations/components/timeseries.js b/src/core_plugins/metrics/public/visualizations/components/timeseries.js index 03fb9414e4045..aaad5bd158a19 100644 --- a/src/core_plugins/metrics/public/visualizations/components/timeseries.js +++ b/src/core_plugins/metrics/public/visualizations/components/timeseries.js @@ -125,9 +125,9 @@ class Timeseries extends Component { } render() { - let className = 'rhythm_chart'; + let className = 'tvbVisTimeSeries'; if (this.props.reversed) { - className += ' reversed'; + className += ' tvbVisTimeSeries--reversed'; } const styles = reactcss({ bottomLegend: { @@ -138,8 +138,8 @@ class Timeseries extends Component { }, { bottomLegend: this.props.legendPosition === 'bottom' }); return (
      -
      -
      +
      +
      v); const value = item.datapoint[2] ? item.datapoint[1] - item.datapoint[2] : item.datapoint[1]; tooltip = ( -
      - -
      -
      -
      - -
      -
      { item.series.label }
      -
      { formatter(value) }
      +
      + +
      +
      + +
      { item.series.label }
      +
      { formatter(value) }
      -
      { moment(item.datapoint[0]).format(this.props.dateFormat) }
      +
      { moment(item.datapoint[0]).format(this.props.dateFormat) }
      -
      ); } @@ -228,13 +181,13 @@ class TimeseriesChart extends Component { }; const annotations = this.state.annotations.map(this.renderAnnotations); - let axisLabelClass = 'rhythm_chart__axis-label'; + let axisLabelClass = 'tvbVisTimeSeries__axisLabel'; if (this.props.reversed) { - axisLabelClass += ' reversed'; + axisLabelClass += ' tvbVisTimeSeries__axisLabel--reversed'; } return ( -
      this.container = el} className="rhythm_chart__timeseries-container"> +
      this.container = el} className="tvbVisTimeSeries__container"> { tooltip } { annotations } diff --git a/src/core_plugins/metrics/public/visualizations/components/top_n.js b/src/core_plugins/metrics/public/visualizations/components/top_n.js index 88dd043a07f97..f0c6745051ab4 100644 --- a/src/core_plugins/metrics/public/visualizations/components/top_n.js +++ b/src/core_plugins/metrics/public/visualizations/components/top_n.js @@ -59,14 +59,14 @@ class TopN extends Component { onClick={this.handleClick({ lastValue, ...item })} style={styles.row} > -
      - + - + ); }; @@ -80,14 +80,14 @@ class TopN extends Component { }, 0); const rows = this.props.series.map(this.renderRow(maxValue)); - let className = 'rhythm_top_n'; + let className = 'tvbVisTopN'; if (this.props.reversed) { - className += ' reversed'; + className += ' tvbVisTopN--reversed'; } return (
      -
      { item.label } + { item.label }
      { value }{ value }
      +
      { rows } diff --git a/src/core_plugins/metrics/public/visualizations/components/vertical_legend.js b/src/core_plugins/metrics/public/visualizations/components/vertical_legend.js index 6b527c132f397..d2183bfbca34f 100644 --- a/src/core_plugins/metrics/public/visualizations/components/vertical_legend.js +++ b/src/core_plugins/metrics/public/visualizations/components/vertical_legend.js @@ -21,7 +21,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import createLegendSeries from '../lib/create_legend_series'; import reactcss from 'reactcss'; -import { htmlIdGenerator } from '@elastic/eui'; +import { htmlIdGenerator, EuiButtonIcon } from '@elastic/eui'; function VerticalLegend(props) { const rows = props.series.map(createLegendSeries(props)); @@ -38,27 +38,30 @@ function VerticalLegend(props) { control: { order: '2' } }, hideLegend: { - legend: { width: 12 }, + legend: { width: 24 }, series: { display: 'none' }, } }, { hideLegend, leftLegend }); - const openClass = leftLegend ? 'fa-chevron-right' : 'fa-chevron-left'; - const closeClass = leftLegend ? 'fa-chevron-left' : 'fa-chevron-right'; - const legendControlClass = hideLegend ? `fa ${openClass}` : `fa ${closeClass}`; + const openIcon = leftLegend ? 'arrowRight' : 'arrowLeft'; + const closeIcon = leftLegend ? 'arrowLeft' : 'arrowRight'; + const legendToggleIcon = hideLegend ? `${openIcon}` : `${closeIcon}`; return ( -
      -
      -
      -
      +
      + + +
      { rows }
      diff --git a/src/core_plugins/metrics/public/visualizations/less/includes/chart.less b/src/core_plugins/metrics/public/visualizations/less/includes/chart.less deleted file mode 100644 index 2c270e315a54c..0000000000000 --- a/src/core_plugins/metrics/public/visualizations/less/includes/chart.less +++ /dev/null @@ -1,215 +0,0 @@ -.rhythm_chart { - position: relative; - display: flex; - flex-direction: column; - flex: 1 0 auto; -} - -.rhythm_chart__title { - color: @textColor; - margin: 0 0 10px; -} - -.rhythm_chart__content { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - display: flex; - flex: 1 0 auto; -} - -.rhythm_chart__visualization { - cursor: crosshair; - display: flex; - flex-direction: column; - flex: 1 0 auto; - position: relative; - & > div { - min-width: 1px; - width: 100%; - height: 100%; - } -} - -.rhythm_chart__legend-control { - padding: 6px 2px 0 0; - color: @textColor; - font-size: 12px; - - button { - background: none; - border: none; - appearance: none; - padding: 0; - } -} - -.rhythm_chart__legend-series { - flex-grow: 1; -} - -.rhythm_chart__legend { - display: flex; - font-size: 11px; - width: 200px; - padding: 5px 0; - overflow: auto; -} - -.rhythm_chart__legend_button { - text-align: left; - appearance: none; - background: none; - border: none; - display: flex; - width: 100%; - max-width: 170px; -} - -.rhythm_chart__legend_item { - text-align: left; - cursor: pointer; - &.disabled { - opacity: 0.5; - } - padding: 5px; - border-bottom: 1px solid @lineColor; - &:first-child { - border-top: 1px solid @lineColor; - } - display: flex; - max-width: 170px; -} - -.rhythm_chart__legend_label { - flex-grow: 1; - overflow: hidden; - white-space: nowrap; - span { - color: @textColor; - margin-left: 5px; - } -} - -.rhythm_chart__legend_value { - color: @valueColor; - margin-left: 3px; -} - -.rhythm_chart.reversed { - .rhythm_chart__title { color: @textColorReversed; } - .rhythm_chart__legend-control { color: @textColorReversed; } - .rhythm_chart__legend_item { - border-bottom: 1px solid @lineColorReversed; - &:first-child { border-top: 1px solid @lineColorReversed; } - } - .rhythm_chart__legend_label { span { color: @textColorReversed; } } - .rhythm_chart__legend_value { color: @valueColorReversed; } -} - -.rhythm_chart__legend-horizontal, -.rhythm_chart.reversed .rhythm_chart__legend-horizontal { - width: auto; - display: flex; - .rhythm_chart__legend-control { - padding: 5px 5px 0 0; - } - .rhythm_chart__legend-series { - display: flex; - flex-wrap: wrap; - } - .rhythm_chart__legend_label { - flex: 0 1 auto; - } - .rhythm_chart__legend_item { - max-width: inherit; - font-size: 12px; - display: flex; - margin-right: 10px; - border-bottom: none; - &:first-child { border-top: none; } - } -} - -.rhythm_chart__timeseries-container { - position: relative; - display: flex; - flex-direction: column; - flex: 1 0 auto; -} - -.rhythm_chart__axis-label { - font-size: 0.8em; - color: rgba(0,0,0,0.4); - text-align: center; - min-height: 1.2em; - &.reversed { - color: rgba(255,255,255,0.6); - } -} - -.annotation { - position: absolute; - display: flex; - flex-direction: column; - z-index: 90; - align-items: center; -} -.annotation__line { - flex: 1 0 auto; - width: 2px; -} -.annotation__icon { - position: relative; - flex: 0 0 auto; - width: 12px; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; -} -.annotation__tooltip { - position: absolute; - bottom: 20px; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; -} -.annotation__message, -.annotation__timestamp { - font-size: 12px; -} -.annotation__caret { - width: 0; - height: 0; - border-left: 5px solid transparent; - border-right: 5px solid transparent; - border-top: 5px solid rgba(0,0,0,0.7); -} -.annotation__caret-reversed { - .annotation__caret; - border-top: none; - border-bottom: 5px solid rgba(0,0,0,0.7); -} -.annotation__tooltip-body { - border-radius: 4px; - padding: 4px; - white-space: nowrap; - color: white; - background-color: rgba(0,0,0,0.7); -} -.annotation__tooltip-body-reversed { - .annotation__tooltip-body; - color: black; - background-color: rgba(255,255,255,0.7); -} -.annotation__timestamp { - color: rgba(255,255,255,0.7); - -} -.annotation__timestamp-reversed { - color: rgba(0,0,0,0.7); -} diff --git a/src/core_plugins/metrics/public/visualizations/less/includes/colors.less b/src/core_plugins/metrics/public/visualizations/less/includes/colors.less deleted file mode 100644 index 3c0c04b60a608..0000000000000 --- a/src/core_plugins/metrics/public/visualizations/less/includes/colors.less +++ /dev/null @@ -1,32 +0,0 @@ -@black: black; -@grayDarkest: #222; -@grayDarker: #333; -@grayDark: #666; -@gray: #999; -@grayLight: #CCC; -@grayLighter: #DDD; -@grayLightest: #EEE; -@white: white; - -@background: @white; -@navBarBackground: @grayLighter; -@inputBorder: @grayLighter; -@lineColor: rgba(0,0,0,0.2); -@lineColorReversed: rgba(255,255,255,0.4); -@textColor: rgba(0,0,0,0.4); -@textColorReversed: rgba(255,255,255,0.6); -@disabledColor: @grayLight; -@valueColor: rgba(0,0,0,0.7); -@valueColorReversed: rgba(255,255,255,0.8); - -@esBlue: #0079a5; -@esRed: #d76051; -@esYellow: #fbce47; -@esGreen: #80c383; -@esPink: #e8488b; -@esPurple: #9980b2; -@esAltGreen: #8ac336; -@esCyan: #59c6c5; - - - diff --git a/src/core_plugins/metrics/public/visualizations/less/includes/gauge.less b/src/core_plugins/metrics/public/visualizations/less/includes/gauge.less deleted file mode 100644 index 8db61e6b84dd2..0000000000000 --- a/src/core_plugins/metrics/public/visualizations/less/includes/gauge.less +++ /dev/null @@ -1,122 +0,0 @@ -.thorCircleGauge { - font-size: 100%; - display: flex; - flex-direction: column; - flex: 1 0 auto; - circle { - opacity: 1; - stroke-opacity: 1; - &:hover { - opacity: 1; - stroke-opacity: 1; - } - } -} - -.thorCircleGauge__metrics { - position: absolute; - width: 100px; - height: 100px; - text-align: center; - display: flex; - padding: 10px; - flex-direction: column; - align-items: center; - justify-content: center; -} - -.thorCircleGauge__label { - font-size: 8px; - line-height: 1; - text-align: center; - color: rgba(0,0,0,0.4); - padding: 0 8px 4px; -} -.thorCircleGauge__value { - font-size: 12px; - line-height: 1; - text-align: center; - color: @black; -} - -.thorGauge_additionalLabel { - font-size: 8px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - width: 100%; - padding: 0 5px; -} - -.thorCircleGauge__resize { - position: relative; - display: flex; - flex-direction: column; - flex: 1 0 auto; -} - -.thorCircleGauge.reversed { - .thorCircleGauge__label { - color: rgba(255,255,255,0.6); - } - .thorCircleGauge__value { - color: @white; - } -} - -.thorHalfGauge { - font-size: 100%; - display: flex; - flex-direction: column; - flex: 1 0 auto; - circle { - opacity: 1; - stroke-opacity: 1; - &:hover { - opacity: 1; - stroke-opacity: 1; - } - } -} - -.thorHalfGauge__metrics { - position: absolute; - width: 100px; - height: 70px; - text-align: center; - display: flex; - padding: 0px 11px 10px; - flex-direction: column; - align-items: center; - justify-content: flex-end; -} - -.thorHalfGauge__label { - font-size: 8px; - line-height: 1; - text-align: center; - color: rgba(0,0,0,0.4); - padding: 0 8px 4px; -} -.thorHalfGauge__value { - font-size: 13px; - line-height: 1; - text-align: center; - color: @black; -} - -.thorHalfGauge__resize { - position: relative; - display: flex; - rowDirection: column; - flex: 1 0 auto; -} - -.thorHalfGauge.reversed { - .thorHalfGauge__label { - color: rgba(255,255,255,0.6); - } - .thorHalfGauge__value { - color: @white; - } -} diff --git a/src/core_plugins/metrics/public/visualizations/less/includes/metric.less b/src/core_plugins/metrics/public/visualizations/less/includes/metric.less deleted file mode 100644 index 41457614b443f..0000000000000 --- a/src/core_plugins/metrics/public/visualizations/less/includes/metric.less +++ /dev/null @@ -1,70 +0,0 @@ -.rhythm_metric { - font-size: 100%; - position: relative; - display: flex; - flex-direction: column; - flex: 1 0 auto; -} - -.rhythm_metric__resize { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - overflow: hidden; - display: flex; -} - -.rhythm_metric__primary { -} - -.rhythm_metric__primary-label { - text-align: center; - color: @textColor; - font-size: 0.5em; - margin-bottom: 0.25em; - line-height: 1em; -} - -.rhythm_metric__primary-value { - text-align: center; - color: @valueColor; - font-size: 1em; - font-weight: bold; - line-height: 1em; -} - -.rhythm_metric__secondary { - display: flex; - justify-content: center; - align-items: center; - margin-top: 0.05em; -} - -.rhythm_metric__secondary-label { - font-size: 0.35em; - margin-right: 0.3em; - color: @textColor; - line-height: 1em; -} - -.rhythm_metric__secondary-value { - font-size: 0.35em; - color: @valueColor; - line-height: 1em; -} - -.rhythm_metric__inner { - position: absolute; - padding: 0.25em 0.5em 0.5em; -} - -.rhythm_metric__additionalLabel { - font-size: 0.25em; - overflow: hidden; - text-overflow: ellipsis; - padding: 2px 0 0 0; - white-space: nowrap; - text-align: center; -} diff --git a/src/core_plugins/metrics/public/visualizations/less/includes/top_n.less b/src/core_plugins/metrics/public/visualizations/less/includes/top_n.less deleted file mode 100644 index b64ac07c78f16..0000000000000 --- a/src/core_plugins/metrics/public/visualizations/less/includes/top_n.less +++ /dev/null @@ -1,41 +0,0 @@ -.rhythm_top_n { - position: relative; - overflow: auto; - display: flex; - flex-direction: column; - - tr:hover { td { background-color: rgba(0,0,0,0.1) } } -} - -.rhythm_top_n__labels, -.rhythm_top_n__value { - text-align: right; - white-space: nowrap; - line-height: 0; - vertical-align: middle; -} - -.rhythm_top_n__label { - color: @textColor; - padding: 4px 0; -} - -.rhythm_top_n__value { - color: @valueColor; - padding: 4px 4px 4px 0; -} - -.rhythm_top_n__bar { - padding: 4px 10px; - vertical-align: middle; -} - -.rhythm_top_n__inner-bar { - min-height: 16px; -} - -.rhythm_top_n.reversed { - tr:hover { td { background-color: rgba(255,255,255,0.1) } } - .rhythm_top_n__label { color: @textColorReversed; } - .rhythm_top_n__value { color: @valueColorReversed; } -} diff --git a/src/core_plugins/metrics/public/visualizations/less/main.less b/src/core_plugins/metrics/public/visualizations/less/main.less deleted file mode 100644 index b04b21908d8fc..0000000000000 --- a/src/core_plugins/metrics/public/visualizations/less/main.less +++ /dev/null @@ -1,5 +0,0 @@ -@import './includes/colors.less'; -@import './includes/chart.less'; -@import './includes/metric.less'; -@import './includes/top_n.less'; -@import './includes/gauge.less'; diff --git a/src/core_plugins/metrics/public/visualizations/lib/create_legend_series.js b/src/core_plugins/metrics/public/visualizations/lib/create_legend_series.js index eb4a9aab38b0d..59025a7a306f2 100644 --- a/src/core_plugins/metrics/public/visualizations/lib/create_legend_series.js +++ b/src/core_plugins/metrics/public/visualizations/lib/create_legend_series.js @@ -19,7 +19,9 @@ import React from 'react'; import _ from 'lodash'; -export default props => (row, i) => { +import { EuiIcon } from '@elastic/eui'; + +export default props => (row) => { function tickFormatter(value) { if (_.isFunction(props.tickFormatter)) return props.tickFormatter(value); @@ -28,7 +30,7 @@ export default props => (row, i) => { const formatter = row.tickFormatter || tickFormatter; const value = formatter(props.seriesValues[row.id]); - const classes = ['rhythm_chart__legend_item']; + const classes = ['tvbLegend__item']; const key = row.id; if (!_.includes(props.seriesFilter, row.id)) classes.push('disabled'); if (row.label == null || row.legend === false) return (
      ); @@ -40,13 +42,13 @@ export default props => (row, i) => { >
      ); diff --git a/src/core_plugins/metrics/server/lib/get_index_pattern_service.js b/src/core_plugins/metrics/server/lib/get_index_pattern_service.js index c8f9d173b3cab..e0bf9cbb2d616 100644 --- a/src/core_plugins/metrics/server/lib/get_index_pattern_service.js +++ b/src/core_plugins/metrics/server/lib/get_index_pattern_service.js @@ -20,11 +20,11 @@ import { IndexPatternsService } from '../../../../server/index_patterns/service'; export const getIndexPatternService = { assign: 'indexPatternsService', - method(req, reply) { + method(req) { const dataCluster = req.server.plugins.elasticsearch.getCluster('data'); const callDataCluster = (...args) => { return dataCluster.callWithRequest(req, ...args); }; - reply(new IndexPatternsService(callDataCluster)); + return new IndexPatternsService(callDataCluster); } }; diff --git a/src/core_plugins/metrics/server/routes/fields.js b/src/core_plugins/metrics/server/routes/fields.js index 1b3472c4c576f..762d551217ee3 100644 --- a/src/core_plugins/metrics/server/routes/fields.js +++ b/src/core_plugins/metrics/server/routes/fields.js @@ -27,15 +27,17 @@ export default (server) => { }, path: '/api/metrics/fields', method: 'GET', - handler: (req, reply) => { - getFields(req) - .then(reply) - .catch((err) => { - if (err.isBoom && err.status === 401) return reply(err); - reply([]); - }); + handler: async (req) => { + try { + return await getFields(req); + } catch (err) { + if (err.isBoom && err.status === 401) { + return err; + } + + return []; + } } }); }; - diff --git a/src/core_plugins/metrics/server/routes/vis.js b/src/core_plugins/metrics/server/routes/vis.js index 1c6428233eee8..9af52211f17aa 100644 --- a/src/core_plugins/metrics/server/routes/vis.js +++ b/src/core_plugins/metrics/server/routes/vis.js @@ -24,13 +24,16 @@ export default (server) => { server.route({ path: '/api/metrics/vis/data', method: 'POST', - handler: (req, reply) => { - getVisData(req) - .then(reply) - .catch(err => { - if (err.isBoom && err.status === 401) return reply(err); - reply(Boom.boomify(err, { statusCode: 500 })); - }); + handler: async (req) => { + try { + return await getVisData(req); + } catch(err) { + if (err.isBoom && err.status === 401) { + return err; + } + + throw Boom.boomify(err, { statusCode: 500 }); + } } }); diff --git a/src/core_plugins/region_map/index.js b/src/core_plugins/region_map/index.js index 6092cc91ac6b3..9083ad9e92ae0 100644 --- a/src/core_plugins/region_map/index.js +++ b/src/core_plugins/region_map/index.js @@ -21,7 +21,8 @@ export default function (kibana) { return new kibana.Plugin({ uiExports: { - visTypes: ['plugins/region_map/region_map_vis'] + visTypes: ['plugins/region_map/region_map_vis'], + styleSheetPaths: `${__dirname}/public/index.scss`, } }); diff --git a/src/core_plugins/region_map/public/_region_map.scss b/src/core_plugins/region_map/public/_region_map.scss new file mode 100644 index 0000000000000..51cbf2f419aaf --- /dev/null +++ b/src/core_plugins/region_map/public/_region_map.scss @@ -0,0 +1,3 @@ +.rgmEMSLink { + font-size: $euiFontSizeXS; +} diff --git a/src/core_plugins/region_map/public/choropleth_layer.js b/src/core_plugins/region_map/public/choropleth_layer.js index 79171e58a4e4d..140acb1122a19 100644 --- a/src/core_plugins/region_map/public/choropleth_layer.js +++ b/src/core_plugins/region_map/public/choropleth_layer.js @@ -21,6 +21,7 @@ import $ from 'jquery'; import L from 'leaflet'; import _ from 'lodash'; import d3 from 'd3'; +import { i18n } from '@kbn/i18n'; import { KibanaMapLayer } from 'ui/vis/map/kibana_map_layer'; import { truncatedColorMaps } from 'ui/vislib/components/color/truncated_colormaps'; import * as topojson from 'topojson-client'; @@ -73,7 +74,7 @@ export default class ChoroplethLayer extends KibanaMapLayer { this._metrics = null; this._joinField = null; - this._colorRamp = truncatedColorMaps[Object.keys(truncatedColorMaps)[0]]; + this._colorRamp = truncatedColorMaps[Object.keys(truncatedColorMaps)[0]].value; this._lineWeight = 1; this._tooltipFormatter = () => ''; this._attribution = attribution; @@ -123,7 +124,10 @@ export default class ChoroplethLayer extends KibanaMapLayer { featureCollection = topojson.feature(data, features);//conversion to geojson } else { //should never happen - throw new Error('Unrecognized format ' + formatType); + throw new Error(i18n.translate('regionMap.choroplethLayer.unrecognizedFormatErrorMessage', { + defaultMessage: 'Unrecognized format {formatType}', + values: { formatType }, + })); } this._sortedFeatures = featureCollection.features.slice(); this._sortFeatures(); @@ -143,15 +147,23 @@ export default class ChoroplethLayer extends KibanaMapLayer { let errorMessage; if (e.status === 404) { - errorMessage = `Server responding with '404' when attempting to fetch ${geojsonUrl}. - Make sure the file exists at that location.`; + errorMessage = i18n.translate('regionMap.choroplethLayer.downloadingVectorData404ErrorMessage', { + defaultMessage: 'Server responding with \'404\' when attempting to fetch {geojsonUrl}. \ +Make sure the file exists at that location.', + values: { geojsonUrl }, + }); } else { - errorMessage = `Cannot download ${geojsonUrl} file. Please ensure the -CORS configuration of the server permits requests from the Kibana application on this host.`; + errorMessage = i18n.translate('regionMap.choroplethLayer.downloadingVectorDataErrorMessage', { + defaultMessage: 'Cannot download {geojsonUrl} file. Please ensure the \ +CORS configuration of the server permits requests from the Kibana application on this host.', + values: { geojsonUrl }, + }); } toastNotifications.addDanger({ - title: 'Error downloading vector data', + title: i18n.translate('regionMap.choroplethLayer.downloadingVectorDataErrorMessageTitle', { + defaultMessage: 'Error downloading vector data', + }), text: errorMessage, }); @@ -323,7 +335,7 @@ CORS configuration of the server permits requests from the Kibana application on } const titleText = this._metricsAgg.makeLabel(); - const $title = $('
      ').addClass('tilemap-legend-title').text(titleText); + const $title = $('
      ').addClass('visMapLegend__title').text(titleText); jqueryDiv.append($title); this._legendColors.forEach((color) => { diff --git a/src/core_plugins/region_map/public/images/icon-vector-map.svg b/src/core_plugins/region_map/public/images/icon-vector-map.svg deleted file mode 100644 index 2eabb777ea55c..0000000000000 --- a/src/core_plugins/region_map/public/images/icon-vector-map.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/core_plugins/region_map/public/index.scss b/src/core_plugins/region_map/public/index.scss new file mode 100644 index 0000000000000..d78c9330e2e79 --- /dev/null +++ b/src/core_plugins/region_map/public/index.scss @@ -0,0 +1,10 @@ +@import 'src/ui/public/styles/styling_constants'; + +// Prefix all styles with "rgm" to avoid conflicts. +// Examples +// rgmChart +// rgmChart__legend +// rgmChart__legend--small +// rgmChart__legend-isLoading + +@import './region_map'; diff --git a/src/core_plugins/region_map/public/region_map.less b/src/core_plugins/region_map/public/region_map.less deleted file mode 100644 index 0b4bb68528e69..0000000000000 --- a/src/core_plugins/region_map/public/region_map.less +++ /dev/null @@ -1,14 +0,0 @@ -.region-map-vis { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - -} - -region_map-vis-params { - .ems-hotlink { - font-size: 10px; - } -} diff --git a/src/core_plugins/region_map/public/region_map_vis.js b/src/core_plugins/region_map/public/region_map_vis.js index 2fde449c6bb8b..24bf400f69df5 100644 --- a/src/core_plugins/region_map/public/region_map_vis.js +++ b/src/core_plugins/region_map/public/region_map_vis.js @@ -17,7 +17,6 @@ * under the License. */ -import './region_map.less'; import './region_map_vis_params'; import { VisFactoryProvider } from 'ui/vis/vis_factory'; import { CATEGORY } from 'ui/vis/vis_category'; @@ -28,7 +27,7 @@ import { mapToLayerWithId } from './util'; import { RegionMapsVisualizationProvider } from './region_map_visualization'; import { Status } from 'ui/vis/update_status'; -VisTypesRegistryProvider.register(function RegionMapProvider(Private, regionmapsConfig, config) { +VisTypesRegistryProvider.register(function RegionMapProvider(Private, regionmapsConfig, config, i18n) { const VisFactory = Private(VisFactoryProvider); const RegionMapsVisualization = Private(RegionMapsVisualizationProvider); @@ -38,9 +37,9 @@ VisTypesRegistryProvider.register(function RegionMapProvider(Private, regionmaps return VisFactory.createBaseVisualization({ name: 'region_map', - title: 'Region Map', - description: 'Show metrics on a thematic map. Use one of the provided base maps, or add your own. ' + - 'Darker colors represent higher values.', + title: i18n('regionMap.mapVis.regionMapTitle', { defaultMessage: 'Region Map' }), + description: i18n('regionMap.mapVis.regionMapDescription', { defaultMessage: 'Show metrics on a thematic map. Use one of the \ +provided base maps, or add your own. Darker colors represent higher values.' }), category: CATEGORY.MAP, icon: 'visMapRegion', visConfig: { @@ -66,25 +65,26 @@ VisTypesRegistryProvider.register(function RegionMapProvider(Private, regionmaps collections: { legendPositions: [{ value: 'bottomleft', - text: 'bottom left', + text: i18n('regionMap.mapVis.regionMapEditorConfig.bottomLeftText', { defaultMessage: 'bottom left' }), }, { value: 'bottomright', - text: 'bottom right', + text: i18n('regionMap.mapVis.regionMapEditorConfig.bottomRightText', { defaultMessage: 'bottom right' }), }, { value: 'topleft', - text: 'top left', + text: i18n('regionMap.mapVis.regionMapEditorConfig.topLeftText', { defaultMessage: 'top left' }), }, { value: 'topright', - text: 'top right', + text: i18n('regionMap.mapVis.regionMapEditorConfig.topRightText', { defaultMessage: 'top right' }), }], - colorSchemas: Object.keys(truncatedColorMaps), - vectorLayers: vectorLayers + colorSchemas: Object.values(truncatedColorMaps).map(value => ({ id: value.id, label: value.label })), + vectorLayers: vectorLayers, + tmsLayers: [] }, schemas: new Schemas([ { group: 'metrics', name: 'metric', - title: 'Value', + title: i18n('regionMap.mapVis.regionMapEditorConfig.schemas.metricTitle', { defaultMessage: 'Value' }), min: 1, max: 1, aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality', 'top_hits', @@ -97,7 +97,7 @@ VisTypesRegistryProvider.register(function RegionMapProvider(Private, regionmaps group: 'buckets', name: 'segment', icon: 'fa fa-globe', - title: 'shape field', + title: i18n('regionMap.mapVis.regionMapEditorConfig.schemas.segmentTitle', { defaultMessage: 'shape field' }), min: 1, max: 1, aggFilter: ['terms'] diff --git a/src/core_plugins/region_map/public/region_map_vis_params.html b/src/core_plugins/region_map/public/region_map_vis_params.html index 997050e3f8c5d..0ec64a45c4750 100644 --- a/src/core_plugins/region_map/public/region_map_vis_params.html +++ b/src/core_plugins/region_map/public/region_map_vis_params.html @@ -1,15 +1,20 @@
      -
      - Layer Settings -
      +
      - +
      - + +
      - +
       
      - +
       
      @@ -79,25 +110,35 @@
      -
      Style settings
      +
      - +
      - +
      - + \ No newline at end of file diff --git a/src/core_plugins/region_map/public/region_map_visualization.js b/src/core_plugins/region_map/public/region_map_visualization.js index fd2be9aef49dc..3d1ccf1b22ee2 100644 --- a/src/core_plugins/region_map/public/region_map_visualization.js +++ b/src/core_plugins/region_map/public/region_map_visualization.js @@ -26,7 +26,7 @@ import AggResponsePointSeriesTooltipFormatterProvider from './tooltip_formatter' import 'ui/vis/map/service_settings'; import { toastNotifications } from 'ui/notify'; -export function RegionMapsVisualizationProvider(Private, config) { +export function RegionMapsVisualizationProvider(Private, config, i18n) { const tooltipFormatter = Private(AggResponsePointSeriesTooltipFormatterProvider); const BaseMapsVisualization = Private(BaseMapsVisualizationProvider); @@ -101,7 +101,7 @@ export function RegionMapsVisualizationProvider(Private, config) { this._vis.params.showAllShapes ); this._choroplethLayer.setJoinField(visParams.selectedJoinField.name); - this._choroplethLayer.setColorRamp(truncatedColorMaps[visParams.colorSchema]); + this._choroplethLayer.setColorRamp(truncatedColorMaps[visParams.colorSchema].value); this._choroplethLayer.setLineWeight(visParams.outlineWeight); this._setTooltipFormatter(); @@ -161,8 +161,19 @@ export function RegionMapsVisualizationProvider(Private, config) { const shouldShowWarning = this._vis.params.isDisplayWarning && config.get('visualization:regionmap:showWarnings'); if (event.mismatches.length > 0 && shouldShowWarning) { toastNotifications.addWarning({ - title: `Unable to show ${event.mismatches.length} ${event.mismatches.length > 1 ? 'results' : 'result'} on map`, - text: `Ensure that each of these term matches a shape on that shape's join field: ${event.mismatches.join(', ')}`, + title: i18n('regionMap.visualization.unableToShowMismatchesWarningTitle', { + defaultMessage: 'Unable to show {mismatchesLength} {oneMismatch, plural, one {result} other {results}} on map', + values: { + mismatchesLength: event.mismatches.length, + oneMismatch: event.mismatches.length > 1 ? 0 : 1, + }, + }), + text: i18n('regionMap.visualization.unableToShowMismatchesWarningText', { + defaultMessage: 'Ensure that each of these term matches a shape on that shape\'s join field: {mismatches}', + values: { + mismatches: event.mismatches.join(', '), + }, + }), }); } }); diff --git a/src/core_plugins/status_page/public/components/__snapshots__/server_status.test.js.snap b/src/core_plugins/status_page/public/components/__snapshots__/server_status.test.js.snap index 86534c14c7cd1..109846d3bd9d9 100644 --- a/src/core_plugins/status_page/public/components/__snapshots__/server_status.test.js.snap +++ b/src/core_plugins/status_page/public/components/__snapshots__/server_status.test.js.snap @@ -21,6 +21,7 @@ exports[`render 1`] = ` >

      My Computer diff --git a/src/core_plugins/status_page/public/components/status_table.js b/src/core_plugins/status_page/public/components/status_table.js index 74ca4a9182dac..4aea9ac01c989 100644 --- a/src/core_plugins/status_page/public/components/status_table.js +++ b/src/core_plugins/status_page/public/components/status_table.js @@ -38,7 +38,7 @@ class StatusTable extends Component { static columns = [{ field: 'state', name: '', - render: state => , + render: state => , width: '32px' }, { field: 'id', diff --git a/src/core_plugins/table_vis/index.js b/src/core_plugins/table_vis/index.js index 8aeea4c64a389..3e0cfd1ff555f 100644 --- a/src/core_plugins/table_vis/index.js +++ b/src/core_plugins/table_vis/index.js @@ -23,7 +23,8 @@ export default function (kibana) { uiExports: { visTypes: [ 'plugins/table_vis/table_vis' - ] + ], + styleSheetPaths: `${__dirname}/public/index.scss`, } }); diff --git a/src/core_plugins/table_vis/public/__tests__/_legacy_response_handler.js b/src/core_plugins/table_vis/public/__tests__/_legacy_response_handler.js new file mode 100644 index 0000000000000..07fc069de53d3 --- /dev/null +++ b/src/core_plugins/table_vis/public/__tests__/_legacy_response_handler.js @@ -0,0 +1,154 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import expect from 'expect.js'; +import sinon from 'sinon'; +import ngMock from 'ng_mock'; +import { AggConfig } from '../../../../ui/public/vis/agg_config'; +import AggConfigResult from '../../../../ui/public/vis/agg_config_result'; +import { VisProvider } from '../../../../ui/public/vis'; +import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern'; +import { splitRowsOnColumn, splitTable, legacyTableResponseHandler } from '../legacy_response_handler'; + +const rows = [ + { 'col-0-2': 'A', 'col-1-3': 100, 'col-2-1': 'Jim' }, + { 'col-0-2': 'A', 'col-1-3': 0, 'col-2-1': 'Dwight' }, + { 'col-0-2': 'B', 'col-1-3': 24, 'col-2-1': 'Angela' }, + { 'col-0-2': 'C', 'col-1-3': 1, 'col-2-1': 'Angela' }, + { 'col-0-2': 'C', 'col-1-3': 7, 'col-2-1': 'Angela' }, + { 'col-0-2': 'C', 'col-1-3': -30, 'col-2-1': 'Jim' }, +]; + +describe('Table Vis Legacy Response Handler', () => { + + let Vis; + let indexPattern; + let columns; + let mockAggConfig; + let mockSplitAggConfig; + + beforeEach(ngMock.module('kibana')); + beforeEach(ngMock.inject(function (Private) { + Vis = Private(VisProvider); + indexPattern = Private(FixturesStubbedLogstashIndexPatternProvider); + const vis = new Vis(indexPattern, { type: 'table', aggs: [] }); + + mockAggConfig = new AggConfig(vis.aggs, { type: 'terms', schema: 'metric' }); + mockSplitAggConfig = new AggConfig(vis.aggs, { type: 'terms', schema: 'split' }); + + sinon.stub(mockSplitAggConfig, 'fieldFormatter').returns(val => val); + sinon.stub(mockSplitAggConfig, 'makeLabel').returns('some label'); + + columns = [ + { id: 'col-0-2', name: 'Team', aggConfig: mockSplitAggConfig }, + { id: 'col-1-3', name: 'Score', aggConfig: mockAggConfig }, + { id: 'col-2-1', name: 'Leader', aggConfig: mockAggConfig }, + ]; + })); + + describe('#splitRowsOnColumn', () => { + it('should be a function', () => { + expect(typeof splitRowsOnColumn).to.be('function'); + }); + + it('.results should return an array with each unique value for the column id', () => { + const expected = ['A', 'B', 'C']; + const actual = splitRowsOnColumn(rows, 'col-0-2'); + expect(actual.results).to.eql(expected); + }); + + it('.results should preserve types in case a result is not a string', () => { + const expected = [0, 1, 7, 24, 100, -30]; + const actual = splitRowsOnColumn(rows, 'col-1-3'); + expect(actual.results).to.eql(expected); + actual.results.forEach(result => expect(typeof result).to.eql('number')); + }); + + it('.rowsGroupedByResult should return an object with rows grouped by value for the column id', () => { + const expected = { + A: [ + { 'col-1-3': 100, 'col-2-1': 'Jim' }, + { 'col-1-3': 0, 'col-2-1': 'Dwight' }, + ], + B: [ + { 'col-1-3': 24, 'col-2-1': 'Angela' }, + ], + C: [ + { 'col-1-3': 1, 'col-2-1': 'Angela' }, + { 'col-1-3': 7, 'col-2-1': 'Angela' }, + { 'col-1-3': -30, 'col-2-1': 'Jim' }, + ], + }; + const actual = splitRowsOnColumn(rows, 'col-0-2'); + expect(actual.rowsGroupedByResult).to.eql(expected); + }); + }); + + describe('#splitTable', () => { + it('should be a function', () => { + expect(typeof splitTable).to.be('function'); + }); + + it('should return an array of objects with the expected keys', () => { + const expected = ['$parent', 'aggConfig', 'title', 'key', 'tables']; + const actual = splitTable(columns, rows, null); + expect(Object.keys(actual[0])).to.eql(expected); + }); + + it('should return a reference to the parent AggConfigResult', () => { + const actual = splitTable(columns, rows, null); + expect(actual[0].$parent).to.be.a(AggConfigResult); + }); + + it('should return the correct split values', () => { + const expected = ['A', 'B', 'C']; + const actual = splitTable(columns, rows, null); + expect(actual.map(i => i.key)).to.eql(expected); + }); + + it('should return the correct titles', () => { + const expected = ['A: some label', 'B: some label', 'C: some label']; + const actual = splitTable(columns, rows, null); + expect(actual.map(i => i.title)).to.eql(expected); + }); + + it('should return nested split tables with the correct number of entries', () => { + const expected = [2, 1, 3]; + const actual = splitTable(columns, rows, null); + expect(actual.map(i => i.tables[0].rows.length)).to.eql(expected); + }); + + it('should return nested split tables with rows of the correct type', () => { + const actual = splitTable(columns, rows, null); + expect(actual[0].tables[0].rows[0][0]).to.be.a(AggConfigResult); + }); + }); + + describe('#legacyTableResponseHandler', () => { + it('should be a function', () => { + expect(typeof legacyTableResponseHandler).to.be('function'); + }); + + it('should return the correct number of tables', async () => { + const actual = await legacyTableResponseHandler({ columns, rows }); + expect(actual.tables).to.have.length(3); + }); + }); + +}); diff --git a/src/core_plugins/table_vis/public/__tests__/index.js b/src/core_plugins/table_vis/public/__tests__/index.js index aa5320faf8806..2508ba5764be8 100644 --- a/src/core_plugins/table_vis/public/__tests__/index.js +++ b/src/core_plugins/table_vis/public/__tests__/index.js @@ -18,5 +18,7 @@ */ import './_table_vis_controller'; +import './_legacy_response_handler'; + describe('Table Vis', function () { }); diff --git a/src/core_plugins/table_vis/public/_table_vis.scss b/src/core_plugins/table_vis/public/_table_vis.scss new file mode 100644 index 0000000000000..d84ae7b81e408 --- /dev/null +++ b/src/core_plugins/table_vis/public/_table_vis.scss @@ -0,0 +1,30 @@ +// SASSTODO: Update naming to BEM +// This chart is actively being re-written to React and EUI +// Putting off renaming to avoid conflicts +.table-vis { + display: flex; + flex-direction: column; + flex: 1 0 100%; +} + +.table-vis-error { + display: flex; + flex-direction: column; + justify-content: center; + flex: 1 0 100%; + text-align: center; +} + +.table-vis-container { + kbn-agg-table-group > .table > tbody > tr > td { + border-top: 0px; + } + + .pagination-other-pages { + justify-content: flex-end; + } + + .pagination-size { + display: none; + } +} diff --git a/src/core_plugins/table_vis/public/images/icon-table.svg b/src/core_plugins/table_vis/public/images/icon-table.svg deleted file mode 100644 index bc903cb561f50..0000000000000 --- a/src/core_plugins/table_vis/public/images/icon-table.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - icon-table - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/table_vis/public/index.scss b/src/core_plugins/table_vis/public/index.scss new file mode 100644 index 0000000000000..9f67ab1ea40e5 --- /dev/null +++ b/src/core_plugins/table_vis/public/index.scss @@ -0,0 +1,10 @@ +@import 'src/ui/public/styles/styling_constants'; + +// Prefix all styles with "tbv" to avoid conflicts. +// Examples +// tbvChart +// tbvChart__legend +// tbvChart__legend--small +// tbvChart__legend-isLoading + +@import './table_vis'; diff --git a/src/core_plugins/table_vis/public/legacy_response_handler.js b/src/core_plugins/table_vis/public/legacy_response_handler.js new file mode 100644 index 0000000000000..74ca19df1d1fd --- /dev/null +++ b/src/core_plugins/table_vis/public/legacy_response_handler.js @@ -0,0 +1,105 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { get, findLastIndex } from 'lodash'; +import AggConfigResult from 'ui/vis/agg_config_result'; + +/** + * Takes an array of tabified rows and splits them by column value: + * + * const rows = [ + * { col-1: 'foo', col-2: 'X' }, + * { col-1: 'bar', col-2: 50 }, + * { col-1: 'baz', col-2: 'X' }, + * ]; + * const splitRows = splitRowsOnColumn(rows, 'col-2'); + * splitRows.results; // ['X', 50]; + * splitRows.rowsGroupedByResult; // { X: [{ col-1: 'foo' }, { col-1: 'baz' }], 50: [{ col-1: 'bar' }] } + */ +export function splitRowsOnColumn(rows, columnId) { + const resultsMap = {}; // Used to preserve types, since object keys are always converted to strings. + return { + rowsGroupedByResult: rows.reduce((acc, row) => { + const { [columnId]: splitValue, ...rest } = row; + resultsMap[splitValue] = splitValue; + acc[splitValue] = [...(acc[splitValue] || []), rest]; + return acc; + }, {}), + results: Object.values(resultsMap), + }; +} + +export function splitTable(columns, rows, $parent) { + const splitColumn = columns.find(column => get(column, 'aggConfig.schema.name') === 'split'); + + if (!splitColumn) { + return [{ + $parent, + columns: columns.map(column => ({ title: column.name, ...column })), + rows: rows.map((row, rowIndex) => { + return columns.map(column => { + const aggConfigResult = new AggConfigResult(column.aggConfig, $parent, row[column.id], row[column.id]); + aggConfigResult.rawData = { + table: { columns, rows }, + column: columns.findIndex(c => c.id === column.id), + row: rowIndex, + }; + return aggConfigResult; + }); + }) + }]; + } + + const splitColumnIndex = columns.findIndex(column => column.id === splitColumn.id); + const splitRows = splitRowsOnColumn(rows, splitColumn.id); + + // Check if there are buckets after the first metric. + const firstMetricsColumnIndex = columns.findIndex(column => get(column, 'aggConfig.type.type') === 'metrics'); + const lastBucketsColumnIndex = findLastIndex(columns, column => get(column, 'aggConfig.type.type') === 'buckets'); + const metricsAtAllLevels = firstMetricsColumnIndex < lastBucketsColumnIndex; + + // Calculate metrics:bucket ratio. + const numberOfMetrics = columns.filter(column => get(column, 'aggConfig.type.type') === 'metrics').length; + const numberOfBuckets = columns.filter(column => get(column, 'aggConfig.type.type') === 'buckets').length; + const metricsPerBucket = numberOfMetrics / numberOfBuckets; + + const filteredColumns = columns + .filter((column, i) => { + const isSplitColumn = i === splitColumnIndex; + const isSplitMetric = metricsAtAllLevels && i > splitColumnIndex && i <= splitColumnIndex + metricsPerBucket; + return !isSplitColumn && !isSplitMetric; + }) + .map(column => ({ title: column.name, ...column })); + + return splitRows.results.map(splitValue => { + const $newParent = new AggConfigResult(splitColumn.aggConfig, $parent, splitValue, splitValue); + return { + $parent: $newParent, + aggConfig: splitColumn.aggConfig, + title: `${splitColumn.aggConfig.fieldFormatter()(splitValue)}: ${splitColumn.aggConfig.makeLabel()}`, + key: splitValue, + // Recurse with filtered data to continue the search for additional split columns. + tables: splitTable(filteredColumns, splitRows.rowsGroupedByResult[splitValue], $newParent), + }; + }); +} + +export async function legacyTableResponseHandler(table) { + return { tables: splitTable(table.columns, table.rows, null) }; +} diff --git a/src/core_plugins/table_vis/public/table_vis.html b/src/core_plugins/table_vis/public/table_vis.html index 24cef37caaeb6..c225d34f441bc 100644 --- a/src/core_plugins/table_vis/public/table_vis.html +++ b/src/core_plugins/table_vis/public/table_vis.html @@ -1,7 +1,10 @@

      -

      No results found

      +

      diff --git a/src/core_plugins/table_vis/public/table_vis.js b/src/core_plugins/table_vis/public/table_vis.js index eb49e7d624a6a..0cd14d43253d3 100644 --- a/src/core_plugins/table_vis/public/table_vis.js +++ b/src/core_plugins/table_vis/public/table_vis.js @@ -17,7 +17,7 @@ * under the License. */ -import './table_vis.less'; +import { i18n } from '@kbn/i18n'; import './table_vis_controller'; import './table_vis_params'; import 'ui/agg_table'; @@ -27,6 +27,8 @@ import { CATEGORY } from 'ui/vis/vis_category'; import { Schemas } from 'ui/vis/editors/default/schemas'; import tableVisTemplate from './table_vis.html'; import { VisTypesRegistryProvider } from 'ui/registry/vis_types'; +import { legacyTableResponseHandler } from './legacy_response_handler'; + // we need to load the css ourselves // we also need to load the controller and used by the template @@ -50,9 +52,13 @@ function TableVisTypeProvider(Private) { return VisFactory.createAngularVisualization({ type: 'table', name: 'table', - title: 'Data Table', + title: i18n.translate('tableVis.tableVisTitle', { + defaultMessage: 'Data Table', + }), icon: 'visTable', - description: 'Display values in a table', + description: i18n.translate('tableVis.tableVisDescription', { + defaultMessage: 'Display values in a table', + }), category: CATEGORY.DATA, visConfig: { defaults: { @@ -74,7 +80,9 @@ function TableVisTypeProvider(Private) { { group: 'metrics', name: 'metric', - title: 'Metric', + title: i18n.translate('tableVis.tableVisEditorConfig.schemas.metricTitle', { + defaultMessage: 'Metric', + }), aggFilter: ['!geo_centroid', '!geo_bounds'], min: 1, defaults: [ @@ -84,18 +92,22 @@ function TableVisTypeProvider(Private) { { group: 'buckets', name: 'bucket', - title: 'Split Rows', + title: i18n.translate('tableVis.tableVisEditorConfig.schemas.bucketTitle', { + defaultMessage: 'Split Rows', + }), aggFilter: ['!filter'] }, { group: 'buckets', name: 'split', - title: 'Split Table', + title: i18n.translate('tableVis.tableVisEditorConfig.schemas.splitTitle', { + defaultMessage: 'Split Table', + }), aggFilter: ['!filter'] } ]) }, - responseHandler: 'legacy', + responseHandler: legacyTableResponseHandler, responseHandlerConfig: { asAggConfigResults: true }, diff --git a/src/core_plugins/table_vis/public/table_vis.less b/src/core_plugins/table_vis/public/table_vis.less deleted file mode 100644 index f9bb4e9052d08..0000000000000 --- a/src/core_plugins/table_vis/public/table_vis.less +++ /dev/null @@ -1,27 +0,0 @@ -.table-vis { - display: flex; - flex-direction: column; - flex: 1 0 100%; -} - - .table-vis-error { - display: flex; - flex-direction: column; - justify-content: center; - flex: 1 0 100%; - text-align: center; - } - - .table-vis-container { - kbn-agg-table-group > .table > tbody > tr > td { - border-top: 0px; - } - - .pagination-other-pages { - justify-content: flex-end; - } - - .pagination-size { - display: none; - } - } diff --git a/src/core_plugins/table_vis/public/table_vis_params.html b/src/core_plugins/table_vis/public/table_vis_params.html index b2a1529a96a0a..6e93a05e0027c 100644 --- a/src/core_plugins/table_vis/public/table_vis_params.html +++ b/src/core_plugins/table_vis/public/table_vis_params.html @@ -1,40 +1,60 @@
      - +
      - +
      - +
      - -
      + +
      - px + px
      - px + px
      @@ -42,7 +42,7 @@
      diff --git a/src/core_plugins/tagcloud/public/tag_cloud_vis_params.js b/src/core_plugins/tagcloud/public/tag_cloud_vis_params.js index 179e5c6bf7b3b..9f0fd8088c051 100644 --- a/src/core_plugins/tagcloud/public/tag_cloud_vis_params.js +++ b/src/core_plugins/tagcloud/public/tag_cloud_vis_params.js @@ -31,7 +31,7 @@ uiModules.get('kibana/table_vis') template: tagCloudVisParamsTemplate, link: function ($scope, $element) { const sliderContainer = $element[0]; - const slider = sliderContainer.querySelector('.tag-cloud-fontsize-slider'); + const slider = sliderContainer.querySelector('.tgcFontSizeSlider'); $scope.config = $scope.vis.type.editorConfig; noUiSlider.create(slider, { start: [$scope.editorState.params.minFontSize, $scope.editorState.params.maxFontSize], diff --git a/src/core_plugins/tagcloud/public/tag_cloud_visualization.js b/src/core_plugins/tagcloud/public/tag_cloud_visualization.js index 251673ca30cae..15f545e955150 100644 --- a/src/core_plugins/tagcloud/public/tag_cloud_visualization.js +++ b/src/core_plugins/tagcloud/public/tag_cloud_visualization.js @@ -23,7 +23,7 @@ import { take } from 'rxjs/operators'; import { render, unmountComponentAtNode } from 'react-dom'; import React from 'react'; - +import { I18nProvider } from '@kbn/i18n/react'; import { Label } from './label'; import { FeedbackMessage } from './feedback_message'; @@ -35,7 +35,7 @@ export class TagCloudVisualization { this._containerNode = node; const cloudContainer = document.createElement('div'); - cloudContainer.classList.add('tagcloud-vis'); + cloudContainer.classList.add('tgcVis'); cloudContainer.setAttribute('data-test-subj', 'tagCloudVisualization'); this._containerNode.appendChild(cloudContainer); @@ -57,7 +57,7 @@ export class TagCloudVisualization { this._feedbackNode = document.createElement('div'); this._containerNode.appendChild(this._feedbackNode); this._feedbackMessage = React.createRef(); - render(, this._feedbackNode); + render(, this._feedbackNode); this._labelNode = document.createElement('div'); this._containerNode.appendChild(this._labelNode); diff --git a/src/core_plugins/tests_bundle/index.js b/src/core_plugins/tests_bundle/index.js index b78995ecfe649..6434001ad3a22 100644 --- a/src/core_plugins/tests_bundle/index.js +++ b/src/core_plugins/tests_bundle/index.js @@ -70,6 +70,7 @@ export default (kibana) => { } testGlobs.push(`${plugin.publicDir}/**/__tests__/**/*.js`); + testGlobs.push(`${plugin.publicDir}/**/*.css`); }); } else { // add the modules from all of the apps @@ -79,6 +80,7 @@ export default (kibana) => { for (const plugin of plugins) { testGlobs.push(`${plugin.publicDir}/**/__tests__/**/*.js`); + testGlobs.push(`${plugin.publicDir}/**/*.css`); } } diff --git a/src/core_plugins/tile_map/index.js b/src/core_plugins/tile_map/index.js index f7768f94f901b..9634e1573f53c 100644 --- a/src/core_plugins/tile_map/index.js +++ b/src/core_plugins/tile_map/index.js @@ -21,7 +21,8 @@ export default function (kibana) { return new kibana.Plugin({ uiExports: { - visTypes: ['plugins/tile_map/tile_map_vis'] + visTypes: ['plugins/tile_map/tile_map_vis'], + styleSheetPaths: `${__dirname}/public/index.scss`, } }); } diff --git a/src/core_plugins/tile_map/public/_tile_map.scss b/src/core_plugins/tile_map/public/_tile_map.scss new file mode 100644 index 0000000000000..5e4b20f79fedf --- /dev/null +++ b/src/core_plugins/tile_map/public/_tile_map.scss @@ -0,0 +1,15 @@ +// SASSTODO: Does this selector exist today? +.tilemap { + margin-bottom: 6px; + border: $euiBorderThin; + position: relative; +} + +/** +* 1. Visualizations have some padding by default but tilemaps look nice flush against the edge to maximize viewing +* space. +*/ +// SASSTODO: Does this selector exist today? +.tile_map { + padding: 0; /* 1. */ +} diff --git a/src/core_plugins/tile_map/public/base_maps_visualization.js b/src/core_plugins/tile_map/public/base_maps_visualization.js index c812061d9d9e1..d17ee05247dbe 100644 --- a/src/core_plugins/tile_map/public/base_maps_visualization.js +++ b/src/core_plugins/tile_map/public/base_maps_visualization.js @@ -27,7 +27,7 @@ import { toastNotifications } from 'ui/notify'; const MINZOOM = 0; const MAXZOOM = 22;//increase this to 22. Better for WMS -export function BaseMapsVisualizationProvider(serviceSettings) { +export function BaseMapsVisualizationProvider(serviceSettings, i18n) { /** * Abstract base class for a visualization consisting of a map with a single baselayer. @@ -195,7 +195,9 @@ export function BaseMapsVisualizationProvider(serviceSettings) { } async _updateData() { - throw new Error('Child should implement this method to respond to data-update'); + throw new Error(i18n('tileMap.baseMapsVisualization.childShouldImplementMethodErrorMessage', { + defaultMessage: 'Child should implement this method to respond to data-update', + })); } _hasESResponseChanged(data) { diff --git a/src/core_plugins/tile_map/public/coordinate_maps_visualization.js b/src/core_plugins/tile_map/public/coordinate_maps_visualization.js index 7018db87c89d2..fef5d5cbfab97 100644 --- a/src/core_plugins/tile_map/public/coordinate_maps_visualization.js +++ b/src/core_plugins/tile_map/public/coordinate_maps_visualization.js @@ -18,10 +18,10 @@ */ import _ from 'lodash'; +import { i18n } from '@kbn/i18n'; import { GeohashLayer } from './geohash_layer'; import { BaseMapsVisualizationProvider } from './base_maps_visualization'; import { AggConfig } from 'ui/vis/agg_config'; -import './styles/_tilemap.less'; import { TileMapTooltipFormatterProvider } from './editors/_tooltip_formatter'; import { toastNotifications } from 'ui/notify'; @@ -220,7 +220,9 @@ export function CoordinateMapsVisualizationProvider(Notifier, Private) { esResp = await searchSource.fetch(); } catch(error) { toastNotifications.addDanger({ - title: `Unable to get bounds`, + title: i18n.translate('tileMap.coordinateMapsVisualization.unableToGetBoundErrorTitle', { + defaultMessage: 'Unable to get bounds', + }), text: `${error.message}`, }); return; diff --git a/src/core_plugins/tile_map/public/editors/_tooltip_formatter.js b/src/core_plugins/tile_map/public/editors/_tooltip_formatter.js index 4cc73a518f44d..105bc510d8b2e 100644 --- a/src/core_plugins/tile_map/public/editors/_tooltip_formatter.js +++ b/src/core_plugins/tile_map/public/editors/_tooltip_formatter.js @@ -19,7 +19,7 @@ import $ from 'jquery'; -export function TileMapTooltipFormatterProvider($compile, $rootScope) { +export function TileMapTooltipFormatterProvider($compile, $rootScope, i18n) { const $tooltipScope = $rootScope.$new(); const $el = $('
      ').html(require('./_tooltip.html')); @@ -37,11 +37,11 @@ export function TileMapTooltipFormatterProvider($compile, $rootScope) { value: metricAgg.fieldFormatter()(feature.properties.value) }, { - label: 'Latitude', + label: i18n('tileMap.tooltipFormatter.latitudeLabel', { defaultMessage: 'Latitude' }), value: feature.geometry.coordinates[1] }, { - label: 'Longitude', + label: i18n('tileMap.tooltipFormatter.longitudeLabel', { defaultMessage: 'Longitude' }), value: feature.geometry.coordinates[0] } ]; diff --git a/src/core_plugins/tile_map/public/editors/tile_map_vis_params.html b/src/core_plugins/tile_map/public/editors/tile_map_vis_params.html index 9afc714e43e5c..8e810eab3bd8d 100644 --- a/src/core_plugins/tile_map/public/editors/tile_map_vis_params.html +++ b/src/core_plugins/tile_map/public/editors/tile_map_vis_params.html @@ -1,7 +1,11 @@
      - +
      - +
      - +
       
      diff --git a/src/core_plugins/tile_map/public/editors/wms_options.html b/src/core_plugins/tile_map/public/editors/wms_options.html index 49f01466a73e2..a0d9b008e3b9e 100644 --- a/src/core_plugins/tile_map/public/editors/wms_options.html +++ b/src/core_plugins/tile_map/public/editors/wms_options.html @@ -3,16 +3,21 @@
      -
      - Base Layer Settings -
      +
      - +
       
      -
      -
      -

      WMS is an OGC standard for map image services. For more information, go here.

      +
      +
      +

      +
      -
      +
      -
      +
      -
      +
      -
      +
      -
      +
      -

      * if this parameter is incorrect, maps will fail to load.

      +

      diff --git a/src/core_plugins/tile_map/public/editors/wms_options.js b/src/core_plugins/tile_map/public/editors/wms_options.js index 067b7efffb721..47c379b255e10 100644 --- a/src/core_plugins/tile_map/public/editors/wms_options.js +++ b/src/core_plugins/tile_map/public/editors/wms_options.js @@ -21,7 +21,7 @@ import { uiModules } from 'ui/modules'; import wmsOptionsTemplate from './wms_options.html'; const module = uiModules.get('kibana'); -module.directive('wmsOptions', function (serviceSettings) { +module.directive('wmsOptions', function (serviceSettings, i18n) { return { restrict: 'E', template: wmsOptionsTemplate, @@ -31,6 +31,7 @@ module.directive('wmsOptions', function (serviceSettings) { collections: '=', }, link: function ($scope) { + $scope.wmsLinkText = i18n('tileMap.wmsOptions.wmsLinkText', { defaultMessage: 'here' }); new Promise((resolve, reject) => { diff --git a/src/core_plugins/tile_map/public/geohash_layer.js b/src/core_plugins/tile_map/public/geohash_layer.js index 7fa4c1ab51331..570255e51c441 100644 --- a/src/core_plugins/tile_map/public/geohash_layer.js +++ b/src/core_plugins/tile_map/public/geohash_layer.js @@ -19,6 +19,7 @@ import L from 'leaflet'; import _ from 'lodash'; +import { i18n } from '@kbn/i18n'; import { KibanaMapLayer } from 'ui/vis/map/kibana_map_layer'; import { HeatmapMarkers } from './markers/heatmap'; @@ -83,7 +84,12 @@ export class GeohashLayer extends KibanaMapLayer { }, this._zoom, this._featureCollectionMetaData.max); break; default: - throw new Error(`${this._geohashOptions.mapType} mapType not recognized`); + throw new Error(i18n.translate('tileMap.geohashLayer.mapTitle', { + defaultMessage: '{mapType} mapType not recognized', + values: { + mapType: this._geohashOptions.mapType, + }, + })); } diff --git a/src/core_plugins/tile_map/public/images/icon-tilemap.svg b/src/core_plugins/tile_map/public/images/icon-tilemap.svg deleted file mode 100644 index 0888ce38f05a2..0000000000000 --- a/src/core_plugins/tile_map/public/images/icon-tilemap.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - icon-tilemap - Created with Sketch. - - - - - - - - - - - \ No newline at end of file diff --git a/src/core_plugins/tile_map/public/index.scss b/src/core_plugins/tile_map/public/index.scss new file mode 100644 index 0000000000000..81b89ac3a8149 --- /dev/null +++ b/src/core_plugins/tile_map/public/index.scss @@ -0,0 +1,10 @@ +@import 'src/ui/public/styles/styling_constants'; + +// Prefix all styles with "tlm" to avoid conflicts. +// Examples +// tlmChart +// tlmChart__legend +// tlmChart__legend--small +// tlmChart__legend-isLoading + +@import './tile_map'; diff --git a/src/core_plugins/tile_map/public/markers/scaled_circles.js b/src/core_plugins/tile_map/public/markers/scaled_circles.js index 197f8ab5ebc2c..aeb802365a13a 100644 --- a/src/core_plugins/tile_map/public/markers/scaled_circles.js +++ b/src/core_plugins/tile_map/public/markers/scaled_circles.js @@ -99,7 +99,7 @@ export class ScaledCirclesMarkers extends EventEmitter { } const titleText = this.getLabel(); - const $title = $('
      ').addClass('tilemap-legend-title').text(titleText); + const $title = $('
      ').addClass('visMapLegend__title').text(titleText); jqueryDiv.append($title); this._legendColors.forEach((color) => { @@ -214,7 +214,7 @@ export class ScaledCirclesMarkers extends EventEmitter { function makeLegendColors(colorRampKey) { - const colorRamp = truncatedColorMaps[colorRampKey]; + const colorRamp = _.get(truncatedColorMaps[colorRampKey], 'value'); return colorUtil.getLegendColors(colorRamp); } diff --git a/src/core_plugins/tile_map/public/styles/_tilemap.less b/src/core_plugins/tile_map/public/styles/_tilemap.less deleted file mode 100644 index 2d3b9465fa91b..0000000000000 --- a/src/core_plugins/tile_map/public/styles/_tilemap.less +++ /dev/null @@ -1,294 +0,0 @@ -@import (reference) "~ui/styles/variables"; - -/* _tilemap */ - -.tilemap { - margin-bottom: 6px; - border: 1px solid; - border-color: @tilemap-border; - position: relative; -} - -/** - * 1. Visualizations have some padding by default but tilemaps look nice flush against the edge to maximize viewing - * space. - */ -.tile_map { - padding: 0; /* 1. */ -} - -/* leaflet Dom Util div for map label */ - -.tilemap-legend { - padding: 5px 7px 5px 7px; - margin: 0; - font: 11px/13px Arial, Helvetica, sans-serif; - background: @tilemap-legend-base-bg; - background: @tilemap-legend-bg; - box-shadow: 0 0 12px rgba(0,0,0,0.3); - border-radius: 5px; - text-align: left; - line-height: 15px; - color: @tilemap-color; -} - -.tilemap-legend-title { - font-weight: bold; -} - -.tilemap-legend i { - width: 10px; - height: 10px; - float: left; - margin: 2px 4px 0 0; - opacity: 1; - border-radius: 50%; - border-width: 1px; - border-style: solid; - border-color: @tilemap-legend-i-border; - background: @tilemap-legend-i-bg; -} - -/* top left needs some more styles */ -.leaflet-top.leaflet-left .tilemap-legend-wrapper { - position: absolute; - left: 50px; - white-space: nowrap; -} - -.leaflet-top.leaflet-left .tilemap-legend-wrapper span { - padding-right: 20px; -} - -/* leaflet Dom Util div for map legend */ - -.tilemap-info { - padding: 3px 7px 3px 7px; - margin: 0; - font-size: 12px; - background: @tilemap-info-base-bg; - background: fade(@tilemap-info-bg, 92%); - box-shadow: 0 0 12px rgba(0,0,0,0.3); - border-radius: 5px; -} - -.tilemap-info h2 { - font-size: 12px !important; - margin: 0 !important; - padding: 0; - color: @tilemap-info-header-color; -} - -.leaflet-bar { - border: none !important; - box-shadow: 0 1px 5px rgba(0,0,0,0.65) !important; -} - -.leaflet-control-fit { - text-align: center; - background: @tilemap-leaflet-control-bg; - width: 26px; - height: 26px; - outline: 1px @tilemap-leaflet-control-outline; -} - -/* over-rides leaflet popup styles to look like kibana tooltip */ - -.leaflet-container { - background: @tilemap-leaflet-container-bg !important; - outline: 0 !important; - - //the heatmap layer plugin logs an error to the console when the map is in a 0-sized container - min-width: 1px !important; - min-height: 1px !important; -} - -.leaflet-popup-content-wrapper { - margin: 0; - padding: 0; -} - -.leaflet-popup { - margin-bottom: 16px !important; - pointer-events: none; -} - -.leaflet-popup-content-wrapper { - background: @tooltip-bg !important; - color: @tooltip-color !important; - border-radius: 4px !important; - padding: 0 !important; -} - -.leaflet-popup-content { - margin: 0 !important; - line-height: 24px !important; - font-size: @font-size-base; - font-weight: normal; - word-wrap: break-word; - overflow: hidden; - pointer-events: none; - - > :last-child { - margin-bottom: @tooltip-space; - } - - > * { - margin: @tooltip-space @tooltip-space 0; - } - - table { - td,th { - padding: @tooltip-space-tight; - - &.row-bucket { - word-break: break-all; - } - } - } -} - -.leaflet-popup-tip-container, .leaflet-popup-close-button { - display: none !important; -} - -.leaflet-control-layers-expanded { - padding: 0; - margin: 0; - font: 12px/13px Arial, Helvetica, sans-serif; - line-height: 14px !important; -} - -.leaflet-control-layers-expanded label { - font-weight: normal !important; - margin: 0 !important; - padding: 0 !important; -} - -.leaflet-draw-tooltip { - display: none; -} - -.leaflet-control-attribution { - background-color: @tilemap-leaflet-footer-bg !important; - color: @tilemap-leaflet-footer-color !important; - - p { - display: inline; - } -} - -.leaflet-left { - .leaflet-control { - a, - a:hover { - color: @tilemap-leaflet-control-color; - } - } - - .leaflet-draw-actions a { - background-color: @tilemap-leaflet-control-draw-action-bg; - } -} - -/* filter to desaturate mapquest tiles */ - -img.leaflet-tile { - filter: @tilemap-filter; -} - -img.leaflet-tile.filters-off { - filter: none; -} - -// SASSTODO: Make sure these colors convert to theme variables -.tab-dashboard.theme-dark { - @tilemap-border: @gray13; - @tilemap-legend-base-bg: @gray3; - @tilemap-legend-bg: fade(@tilemap-legend-base-bg, 100%); - @tilemap-color: @gray12; - @tilemap-legend-i-border: @gray9; - @tilemap-legend-i-bg: @gray10; - @tilemap-info-base-bg: @white; - @tilemap-info-bg: fade(@tilemap-info-base-bg, 92%); - @tilemap-info-header-color: @gray4; - @tilemap-leaflet-control-bg: @white; - @tilemap-leaflet-control-outline: @black; - @tilemap-leaflet-control-color: @black; - @tilemap-leaflet-control-draw-action-bg: @gray11; - @tilemap-leaflet-container-bg: @body-bg; - @tilemap-leaflet-popup-border: @gray9; - @tilemap-leaflet-footer-bg: fade(@gray3, 80%); - @tilemap-leaflet-footer-color: @gray12; - @tilemap-filter: invert(1) brightness(1.75) grayscale(1) contrast(1); - - .tilemap { - border-color: @tilemap-border; - } - - .tilemap-legend { - background: @tilemap-legend-base-bg; - background: @tilemap-legend-bg; - color: @tilemap-color; - } - - .tilemap-legend i { - border-color: @tilemap-legend-i-border; - background: @tilemap-legend-i-bg; - } - - .tilemap-info { - background: @tilemap-info-base-bg; - background: fade(@tilemap-info-bg, 92%); - } - - .tilemap-info h2 { - color: @tilemap-info-header-color; - } - - .leaflet-control-fit { - background: @tilemap-leaflet-control-bg; - outline: 1px @tilemap-leaflet-control-outline; - } - - .leaflet-container { - background: @tilemap-leaflet-container-bg !important; - } - - .leaflet-popup-content-wrapper { - background: fadeout(@gray4, 7%) !important; - color: @gray14 !important; - } - - .leaflet-popup-content { - table { - thead tr { - border-bottom-color: @tilemap-leaflet-popup-border; - } - - tbody tr { - border-top-color: @tilemap-leaflet-popup-border; - } - } - } - - img.leaflet-tile { - filter: @tilemap-filter; - } - - .leaflet-control-attribution { - background-color: @tilemap-leaflet-footer-bg !important; - color: @tilemap-leaflet-footer-color !important; - } - - .leaflet-left { - .leaflet-control, - .leaflet-draw-actions { - a, - a:hover { - color: @white; - background-color: @gray7; - } - } - } -} diff --git a/src/core_plugins/tile_map/public/tile_map_vis.js b/src/core_plugins/tile_map/public/tile_map_vis.js index 736939e1dd787..1a3349c879ab2 100644 --- a/src/core_plugins/tile_map/public/tile_map_vis.js +++ b/src/core_plugins/tile_map/public/tile_map_vis.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import 'plugins/kbn_vislib_vis_types/controls/vislib_basic_options'; import './editors/tile_map_vis_params'; import { supports } from 'ui/utils/supports'; @@ -36,9 +37,13 @@ VisTypesRegistryProvider.register(function TileMapVisType(Private, getAppState, return VisFactory.createBaseVisualization({ name: 'tile_map', - title: 'Coordinate Map', + title: i18n.translate('tileMap.vis.mapTitle', { + defaultMessage: 'Coordinate Map', + }), icon: 'visMapCoordinate', - description: 'Plot latitude and longitude coordinates on a map', + description: i18n.translate('tileMap.vis.mapDescription', { + defaultMessage: 'Plot latitude and longitude coordinates on a map', + }), category: CATEGORY.MAP, visConfig: { canDesaturate: !!supports.cssFilters, @@ -60,19 +65,27 @@ VisTypesRegistryProvider.register(function TileMapVisType(Private, getAppState, visualization: CoordinateMapsVisualization, editorConfig: { collections: { - colorSchemas: Object.keys(truncatedColorMaps), + colorSchemas: Object.values(truncatedColorMaps).map(value => ({ id: value.id, label: value.label })), legendPositions: [{ value: 'bottomleft', - text: 'bottom left', + text: i18n.translate('tileMap.vis.map.editorConfig.legendPositions.bottomLeftText', { + defaultMessage: 'bottom left', + }), }, { value: 'bottomright', - text: 'bottom right', + text: i18n.translate('tileMap.vis.map.editorConfig.legendPositions.bottomRightText', { + defaultMessage: 'bottom right', + }), }, { value: 'topleft', - text: 'top left', + text: i18n.translate('tileMap.vis.map.editorConfig.legendPositions.topLeftText', { + defaultMessage: 'top left', + }), }, { value: 'topright', - text: 'top right', + text: i18n.translate('tileMap.vis.map.editorConfig.legendPositions.topRightText', { + defaultMessage: 'top right', + }), }], mapTypes: [ 'Scaled Circle Markers', @@ -87,7 +100,9 @@ VisTypesRegistryProvider.register(function TileMapVisType(Private, getAppState, { group: 'metrics', name: 'metric', - title: 'Value', + title: i18n.translate('tileMap.vis.map.editorConfig.schemas.metricTitle', { + defaultMessage: 'Value', + }), min: 1, max: 1, aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality', 'top_hits'], @@ -98,7 +113,9 @@ VisTypesRegistryProvider.register(function TileMapVisType(Private, getAppState, { group: 'buckets', name: 'segment', - title: 'Geo Coordinates', + title: i18n.translate('tileMap.vis.map.editorConfig.schemas.geoCoordinatesTitle', { + defaultMessage: 'Geo Coordinates', + }), aggFilter: 'geohash_grid', min: 1, max: 1 diff --git a/src/core_plugins/timelion/index.js b/src/core_plugins/timelion/index.js index d9d8267b92d1a..3a1284eaacf90 100644 --- a/src/core_plugins/timelion/index.js +++ b/src/core_plugins/timelion/index.js @@ -26,9 +26,10 @@ export default function (kibana) { order: -1000, description: 'Time series expressions for everything', icon: 'plugins/timelion/icon.svg', + euiIconType: 'timelionApp', main: 'plugins/timelion/app', - styleSheetPath: `${__dirname}/public/index.scss`, }, + styleSheetPaths: `${__dirname}/public/index.scss`, hacks: [ 'plugins/timelion/lib/panel_registry', 'plugins/timelion/panels/timechart/timechart' @@ -102,7 +103,8 @@ export default function (kibana) { description: `[experimental] Your API key from www.quandl.com`, category: ['timelion'], } - } + }, + translations: [], }, init: require('./init.js'), }); diff --git a/src/core_plugins/timelion/init.js b/src/core_plugins/timelion/init.js index 67c1c1f1e7a1a..eecebfb81fdf0 100644 --- a/src/core_plugins/timelion/init.js +++ b/src/core_plugins/timelion/init.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import _ from 'lodash'; import processFunctionDefinition from './server/lib/process_function_definition'; @@ -33,7 +34,15 @@ export default function (server) { } function getFunction(name) { - if (!functions[name]) throw new Error ('No such function: ' + name); + if (!functions[name]) { + throw new Error( + i18n.translate('timelion.noFunctionErrorMessage', { + defaultMessage: 'No such function: {name}', + values: { name }, + }) + ); + } + return functions[name]; } diff --git a/src/core_plugins/timelion/public/app.js b/src/core_plugins/timelion/public/app.js index bfc4047294cc6..036b53ad826c2 100644 --- a/src/core_plugins/timelion/public/app.js +++ b/src/core_plugins/timelion/public/app.js @@ -91,6 +91,7 @@ app.controller('timelion', function ( kbnUrl, Notifier, Private, + i18n, ) { // Keeping this at app scope allows us to keep the current page when the user @@ -114,22 +115,30 @@ app.controller('timelion', function ( $scope.topNavMenu = [{ key: 'new', - description: 'New Sheet', + description: i18n('timelion.topNavMenu.newDescription', { + defaultMessage: 'New Sheet', + }), run: function () { kbnUrl.change('/'); }, testId: 'timelionNewButton', }, { key: 'add', - description: 'Add a chart', + description: i18n('timelion.topNavMenu.addDescription', { + defaultMessage: 'Add a chart', + }), run: function () { $scope.newCell(); }, testId: 'timelionAddChartButton', }, { key: 'save', - description: 'Save Sheet', + description: i18n('timelion.topNavMenu.saveDescription', { + defaultMessage: 'Save Sheet', + }), template: require('plugins/timelion/partials/save_sheet.html'), testId: 'timelionSaveButton', }, { key: 'delete', - description: 'Delete current sheet', + description: i18n('timelion.topNavMenu.deleteDescription', { + defaultMessage: 'Delete current sheet', + }), disableButton: function () { return !savedSheet.id; }, @@ -137,32 +146,55 @@ app.controller('timelion', function ( const title = savedSheet.title; function doDelete() { savedSheet.delete().then(() => { - toastNotifications.addSuccess(`Deleted '${title}'`); + toastNotifications.addSuccess(i18n( + 'timelion.topNavMenu.delete.modal.successNotificationText', + { + defaultMessage: `Deleted '{title}'`, + values: { title }, + } + )); kbnUrl.change('/'); }).catch(error => fatalError(error, location)); } const confirmModalOptions = { onConfirm: doDelete, - confirmButtonText: 'Delete', - title: `Delete Timelion sheet '${title}'?` + confirmButtonText: i18n('timelion.topNavMenu.delete.modal.confirmButtonLabel', { + defaultMessage: 'Delete', + }), + title: i18n('timelion.topNavMenu.delete.modalTitle', { + defaultMessage: `Delete Timelion sheet '{title}'?`, + values: { title } + }), }; - confirmModal(`You can't recover deleted sheets.`, confirmModalOptions); + + confirmModal( + i18n('timelion.topNavMenu.delete.modal.warningText', { + defaultMessage: `You can't recover deleted sheets.`, + }), + confirmModalOptions + ); }, testId: 'timelionDeleteButton', }, { key: 'open', - description: 'Open Sheet', + description: i18n('timelion.topNavMenu.openDescription', { + defaultMessage: 'Open Sheet', + }), template: require('plugins/timelion/partials/load_sheet.html'), testId: 'timelionOpenButton', }, { key: 'options', - description: 'Options', + description: i18n('timelion.topNavMenu.optionsDescription', { + defaultMessage: 'Options', + }), template: require('plugins/timelion/partials/sheet_options.html'), testId: 'timelionOptionsButton', }, { key: 'help', - description: 'Help', + description: i18n('timelion.topNavMenu.helpDescription', { + defaultMessage: 'Help', + }), template: '', testId: 'timelionDocsButton', }]; @@ -289,7 +321,13 @@ app.controller('timelion', function ( savedSheet.timelion_rows = $scope.state.rows; savedSheet.save().then(function (id) { if (id) { - toastNotifications.addSuccess(`Saved sheet '${savedSheet.title}'`); + toastNotifications.addSuccess( + i18n('timelion.saveSheet.successNotificationText', { + defaultMessage: `Saved sheet '{title}'`, + values: { title: savedSheet.title }, + }) + ); + if (savedSheet.id !== $routeParams.id) { kbnUrl.change('/{{id}}', { id: savedSheet.id }); } @@ -307,7 +345,12 @@ app.controller('timelion', function ( savedExpression.visState.title = title; savedExpression.save().then(function (id) { if (id) { - toastNotifications.addSuccess(`Saved expression '${savedExpression.title}'`); + toastNotifications.addSuccess( + i18n('timelion.saveExpression.successNotificationText', { + defaultMessage: `Saved expression '{title}'`, + values: { title: savedExpression.title }, + }), + ); } }); }); diff --git a/src/core_plugins/timelion/public/directives/cells/cells.html b/src/core_plugins/timelion/public/directives/cells/cells.html index 6f74580fe3513..6be1b089d2deb 100644 --- a/src/core_plugins/timelion/public/directives/cells/cells.html +++ b/src/core_plugins/timelion/public/directives/cells/cells.html @@ -21,18 +21,18 @@ diff --git a/src/core_plugins/timelion/public/directives/chart/chart.js b/src/core_plugins/timelion/public/directives/chart/chart.js index 98269414a8b46..a7ca4c113b56a 100644 --- a/src/core_plugins/timelion/public/directives/chart/chart.js +++ b/src/core_plugins/timelion/public/directives/chart/chart.js @@ -16,12 +16,11 @@ * specific language governing permissions and limitations * under the License. */ - import panelRegistryProvider from '../../lib/panel_registry'; require('ui/modules') .get('apps/timelion', []) - .directive('chart', function (Private) { + .directive('chart', function (Private, i18n) { return { restrict: 'A', scope: { @@ -46,7 +45,12 @@ require('ui/modules') const panelSchema = panelRegistry.byName[seriesList.render.type]; if (!panelSchema) { - $elem.text('No such panel type: ' + seriesList.render.type); + $elem.text( + i18n('timelion.chart.seriesList.noSchemaWarning', { + defaultMessage: 'No such panel type: {renderType}', + values: { renderType: seriesList.render.type }, + }) + ); return; } diff --git a/src/core_plugins/timelion/public/directives/fullscreen/fullscreen.html b/src/core_plugins/timelion/public/directives/fullscreen/fullscreen.html index 9aabde9ea019e..325c7eabb2b03 100644 --- a/src/core_plugins/timelion/public/directives/fullscreen/fullscreen.html +++ b/src/core_plugins/timelion/public/directives/fullscreen/fullscreen.html @@ -4,9 +4,9 @@ diff --git a/src/core_plugins/timelion/public/directives/timelion_expression_input.html b/src/core_plugins/timelion/public/directives/timelion_expression_input.html index c05da60022bbb..d2c740400fb3e 100644 --- a/src/core_plugins/timelion/public/directives/timelion_expression_input.html +++ b/src/core_plugins/timelion/public/directives/timelion_expression_input.html @@ -13,7 +13,7 @@ role="textbox" rows="{{ rows }}" class="timExpressionInput kuiTextArea fullWidth" - placeholder="Try a query with .es(*)" + placeholder="{{ ::'timelion.expressionInputPlaceholder' | i18n: { defaultMessage: 'Try a query with {esQuery}', values: { esQuery: '.es(*)' } } }}" ng-model="sheet" ng-focus="onFocusInput()" ng-keydown="onKeyDownInput($event)" @@ -22,7 +22,7 @@ ng-mousedown="onMouseDownInput()" ng-mouseup="onMouseUpInput()" ng-click="onClickExpression()" - aria-label="Timelion expression" + aria-label="{{ ::'timelion.expressionInputAriaLabel' | i18n: { defaultMessage: 'Timelion expression' } }}" aria-multiline="false" aria-autocomplete="list" aria-controls="timelionSuggestionList" diff --git a/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/arg_value_suggestions.js b/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/arg_value_suggestions.js index 1874ab1487b53..81d459f70a5e1 100644 --- a/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/arg_value_suggestions.js +++ b/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/arg_value_suggestions.js @@ -67,14 +67,16 @@ export function ArgValueSuggestionsProvider(Private, indexPatterns) { const search = partial ? `${partial}*` : '*'; const resp = await savedObjectsClient.find({ type: 'index-pattern', - fields: ['title'], + fields: ['title', 'type'], search: `${search}`, search_fields: ['title'], perPage: 25 }); - return resp.savedObjects.map(savedObject => { - return { name: savedObject.attributes.title }; - }); + return resp.savedObjects + .filter(savedObject => !savedObject.get('type')) + .map(savedObject => { + return { name: savedObject.attributes.title }; + }); }, metric: async function (partial, functionArgs) { if (!partial || !partial.includes(':')) { diff --git a/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/timelion_expression_suggestions.html b/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/timelion_expression_suggestions.html index 62cede14bb7f0..ddb9f21615aee 100644 --- a/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/timelion_expression_suggestions.html +++ b/src/core_plugins/timelion/public/directives/timelion_expression_suggestions/timelion_expression_suggestions.html @@ -26,14 +26,27 @@

      .{{suggestion.name}}() - {{suggestion.help}} - {{suggestion.chainable ? '(Chainable)' : '(Data Source)'}} + +

      - Arguments: + {{arg.name}}=({{arg.types.join(' | ')}}) , @@ -43,9 +56,21 @@

      - - - + + + diff --git a/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.html b/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.html index 8f2456d5e6f2e..cf136b00c9157 100644 --- a/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.html +++ b/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.html @@ -1,21 +1,36 @@
      -

      Welcome to Timelion!

      +

      +

      - Timelion is the clawing, gnashing, zebra killing, pluggable time - series interface for everything. If your datastore can - produce a time series, then you have all of the awesome power of - Timelion at your disposal. Timelion lets you compare, combine, and - combobulate datasets across multiple datasources with one - easy-to-master expression syntax. This tutorial focuses on - Elasticsearch, but you'll quickly discover that what you learn here - applies to any datasource Timelion supports. -

      -

      - Ready to get started? Click Next. Want to skip the - tutorial and view the docs? - Jump to the function reference. + + .

      @@ -24,7 +39,7 @@

      Welcome to Timelion!

      ng-click="opts.dontShowHelp()" class="kuiButton kuiButton--hollow" > - Don't show this again + {{translations.dontShowHelpButtonLabel}} @@ -32,7 +47,7 @@

      Welcome to Timelion!

      ng-click="setPage(page+1)" class="kuiButton kuiButton--primary" > - Next + {{translations.nextButtonLabel}}
      @@ -40,20 +55,28 @@

      Welcome to Timelion!

      -

      First time configuration

      -

      - If you're using Logstash, you don't need to configure anything to - start exploring your log data with Timelion. To search other - indices, go to Management / Kibana / Advanced Settings - and configure the timelion:es.default_index - and timelion:es.timefield settings to match your - indices. -

      -

      - You'll also see some other Timelion settings. For now, you don't need - to worry about them. Later, you'll see that you can set most of - them on the fly if you need to. -

      +

      +

      +

      @@ -61,74 +84,139 @@

      First time configuration

      ng-click="setPage(page-1)" class="kuiButton kuiButton--primary" > - Previous + {{translations.previousButtonLabel}} - - Could not validate Elasticsearch settings: - {{es.invalidReason}}. Check your Advanced Settings - and try again. ({{es.invalidCount}}) - + + i18n-id="timelion.help.configuration.notValid.validateButtonLabel" + i18n-default-message="Validate Config" + >
      -

      Good news, Elasticsearch is configured correctly!

      +

      - We validated your default index and your timefield and everything - looks ok. We found data from {{es.stats.min}} to - {{es.stats.max}}. You're probably all set. If this - doesn't look right, see First time - configuration for information about configuring the Elasticsearch - datasource. -

      -

      - You should already see one chart, but you might need to make a - couple adjustments before you see any interesting data: + + +

      +

      • - Intervals +

        - The interval selector at the right of the input bar lets you - control the sampling frequency. It's currently set to - {{state.interval}}. + - You're all set! + - - Set it to auto to let Timelion choose an - appropriate interval. - - If Timelion thinks your combination of time range and interval - will produce too many data points, it throws an error. You can - adjust that limit by configuring timelion:max_buckets - in Management/Kibana/Advanced Settings. + +

      • - Time range -

        - Use the timepicker in the - Kibana toolbar to select the time period that contains the - data you want to visualize. Make sure you select a time - period that includes all or part of the time range shown - above. -

        + +

      -

      - Now, you should see a line chart that displays a count of your - data points over time. -

      +

      @@ -136,7 +224,7 @@

      Good news, Elasticsearch is configured correctly!

      ng-click="setPage(page-1)" class="kuiButton kuiButton--primary" > - Previous + {{translations.previousButtonLabel}} @@ -144,7 +232,7 @@

      Good news, Elasticsearch is configured correctly!

      ng-click="setPage(page+1)" class="kuiButton kuiButton--primary" > - Next + {{translations.nextButtonLabel}}
      @@ -152,60 +240,131 @@

      Good news, Elasticsearch is configured correctly!

      -

      Querying the Elasticsearch datasource

      +

      +

      - Now that we've validated that you have a working Elasticsearch - datasource, you can start submitting queries. For starters, - enter .es(*) in the input bar and hit enter. -

      -

      - This says hey Elasticsearch, find everything in my default - index. If you want to find a subset, you could enter something - like .es(html) to count events that match html, - or .es('user:bob AND bytes:>100') to find events - that contain bob in the user field and have a - bytes field that is greater than 100. Note that this query - is enclosed in single quotes—that's because it contains - spaces. You can enter any + - Lucene query string - - as the first argument to the .es() function. + href="https://www.elastic.co/guide/en/elasticsearch/reference/5.1/query-dsl-query-string-query.html#query-string-syntax" + target="_blank" + rel="noopener noreferrer" + i18n-id="timelion.help.querying.luceneQueryLinkText" + i18n-default-message="Lucene query string" + i18n-context="Part of composite text + timelion.help.querying.paragraph2Part1 + + timelion.help.querying.luceneQueryLinkText + + timelion.help.querying.paragraph2Part2" + > +

      -

      Passing arguments

      +

      +

      +

      - Timelion has a number of shortcuts that make it easy to do common - things. One is that for simple arguments that don't contain spaces or - special characters, you don't need to use quotes. Many functions also - have defaults. For example, .es() and .es(*) - do the same thing. Arguments also have names, so you don't have to - specify them in a specific order. For example, you can enter - .es(index='logstash-*', q='*') to tell the - Elasticsearch datasource use * as the q (query) for the - logstash-* index. -

      -

      Beyond count

      -

      - Counting events is all well and good, but the Elasticsearch datasource - also supports any + - Elasticsearch metric aggregation - - that returns a single value. Some of the most useful are - min, max, avg, sum, - and cardinality. Let's say you want a unique count of the - src_ip field. Simply use the cardinality - metric: .es(*, metric='cardinality:src_ip'). To get the - average of the bytes field, you can use the - avg metric: .es(metric='avg:bytes'). + href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics.html" + target="_blank" + rel="noopener noreferrer" + i18n-id="timelion.help.querying.countMetricAggregationLinkText" + i18n-default-message="Elasticsearch metric aggregation" + i18n-context="Part of composite text + timelion.help.querying.countTextPart1 + + timelion.help.querying.countMetricAggregationLinkText + + timelion.help.querying.countTextPart2" + > +

      @@ -214,7 +373,7 @@

      Beyond count

      ng-click="setPage(page-1)" class="kuiButton kuiButton--primary" > - Previous + {{translations.previousButtonLabel}} @@ -222,7 +381,7 @@

      Beyond count

      ng-click="setPage(page+1)" class="kuiButton kuiButton--primary" > - Next + {{translations.nextButtonLabel}}
      @@ -230,60 +389,95 @@

      Beyond count

      -

      Expressing yourself with expressions

      -

      - Every expression starts with a datasource function. From there, you - can append new functions to the datasource to transform and augment - it. -

      -

      - By the way, from here on out you probably know more about your data - than we do. Feel free to replace the sample queries with something - more meaningful! -

      -

      - We're going to experiment, so click Add in the Kibana - toolbar to add another chart or three. Then, select a chart, copy - one of the following expressions, paste it into the input bar, - and hit enter. Rinse, repeat to try out the other expressions. -

      +

      +

      +

      +

      Argument NameAccepted TypesInformation
      {{arg.name}}
      - + - + - + - +
      .es(*), .es(US)Double the fun. Two expressions on the same - chart.
      .es(*).color(#f66), .es(US).bars(1) - Custom styling. Colorizes the first series red - and uses 1 pixel wide bars for the second series. -
      .es(*).color(#f66).lines(fill=3), .es(US).bars(1).points(radius=3, weight=1) - Named arguments. Forget trying to remember what - order you need to specify arguments in, use named arguments to make - the expressions easier to read and write. -
      (.es(*), .es(GB)).points() - Grouped expressions. You can also chain groups - of expressions to functions. Here, both series are shown as - points instead of lines. -

      - Timelion provides additional view transformation functions you can use - to customize the appearance of your charts. For the complete list, see - the Function reference. + + .

      @@ -292,7 +486,7 @@

      Expressing yourself with expressions

      ng-click="setPage(page-1)" class="kuiButton kuiButton--primary" > - Previous + {{translations.previousButtonLabel}} @@ -300,50 +494,93 @@

      Expressing yourself with expressions

      ng-click="setPage(page+1)" class="kuiButton kuiButton--primary" > - Next + {{translations.nextButtonLabel}}
      -

      Transforming your data: the real fun begins!

      -

      - Now that you've mastered the basics, it's time to unleash the power of - Timelion. Let's figure out what percentage some subset of our data - represents of the whole, over time. For example, what percentage of - our web traffic comes from the US? -

      +

      +

      +

      +

      +

      +

      - First, we need to find all events that contain US: - .es('US'). -

      -

      - Next, we want to calculate the ratio of US events to the whole. To - divide 'US' by everything, we can use the - divide function: .es('US').divide(.es()). -

      -

      - Not bad, but this gives us a number between 0 and 1. To convert it - to a percentage, simply multiply by 100: - .es('US').divide(.es()).multiply(100). -

      -

      - Now we know what percentage of our traffic comes from the US, and - can see how it has changed over time! - Timelion has a number of built-in arithmetic functions, such as - sum, subtract, multiply, and - divide. Many of these can take a series or a number. - There are also other useful data transformation functions, such as - movingaverage, abs, and - derivative. -

      -

      Now that you're familiar with the syntax, refer to the - Function reference to see - how to use all of the available Timelion functions. You can view - the reference at any time by clicking Docs - in the Kibana toolbar. To get back to this tutorial, click the - Tutorial link at the top of the reference. + + +

      @@ -352,7 +589,7 @@

      Transforming your data: the real fun begins!

      ng-click="setPage(page-1)" class="kuiButton kuiButton--primary" > - Previous + {{translations.previousButtonLabel}} @@ -361,29 +598,34 @@

      Transforming your data: the real fun begins!

      ng-click="opts.dontShowHelp()" class="kuiButton kuiButton--hollow" > - Don't show this again + {{translations.dontShowHelpButtonLabel}}
      -

      - Help -

      +

      - +
      - Click any function for more information. Just getting started? + - Check out the tutorial - . + >.
      @@ -409,9 +651,21 @@

      ng-show="function.args.length > (function.chainable ? 1: 0)" > - Argument Name - Accepted Types - Information + + +
      - - This function does not accept any arguments. - Well that's simple, isn't it? - +

      @@ -436,26 +690,50 @@

      - +
      -
      General editing
      +
      +
      Ctrl/Cmd + Enter
      -
      Submit request
      +
      -
      When auto-complete is visible
      -
      Down arrow
      -
      Switch focus to auto-complete menu. Use arrows to further select a term
      +
      + +
      +
      +
      Enter/Tab
      -
      Select the currently selected or the top most term in auto-complete menu
      +
      Esc
      -
      Close auto-complete menu
      +
      diff --git a/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.js b/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.js index e970bca3b49b5..f9a44fc03b6d2 100644 --- a/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.js +++ b/src/core_plugins/timelion/public/directives/timelion_help/timelion_help.js @@ -24,7 +24,7 @@ import moment from 'moment'; const app = uiModules.get('apps/timelion', []); -app.directive('timelionHelp', function ($http) { +app.directive('timelionHelp', function ($http, i18n) { return { restrict: 'E', template, @@ -38,6 +38,52 @@ app.directive('timelionHelp', function ($http) { $scope.es = { invalidCount: 0 }; + + $scope.translations = { + nextButtonLabel: i18n('timelion.help.nextPageButtonLabel', { + defaultMessage: 'Next', + }), + previousButtonLabel: i18n('timelion.help.previousPageButtonLabel', { + defaultMessage: 'Previous', + }), + dontShowHelpButtonLabel: i18n('timelion.help.dontShowHelpButtonLabel', { + defaultMessage: `Don't show this again`, + }), + strongNextText: i18n('timelion.help.welcome.content.strongNextText', { + defaultMessage: 'Next', + }), + emphasizedEverythingText: i18n('timelion.help.welcome.content.emphasizedEverythingText', { + defaultMessage: 'everything', + }), + notValidAdvancedSettingsPath: i18n('timelion.help.configuration.notValid.advancedSettingsPathText', { + defaultMessage: 'Management / Kibana / Advanced Settings' + }), + validAdvancedSettingsPath: i18n('timelion.help.configuration.valid.advancedSettingsPathText', { + defaultMessage: 'Management/Kibana/Advanced Settings', + }), + esAsteriskQueryDescription: i18n('timelion.help.querying.esAsteriskQueryDescriptionText', { + defaultMessage: 'hey Elasticsearch, find everything in my default index', + }), + esIndexQueryDescription: i18n('timelion.help.querying.esIndexQueryDescriptionText', { + defaultMessage: 'use * as the q (query) for the logstash-* index', + }), + strongAddText: i18n('timelion.help.expressions.strongAddText', { + defaultMessage: 'Add', + }), + twoExpressionsDescriptionTitle: i18n('timelion.help.expressions.examples.twoExpressionsDescriptionTitle', { + defaultMessage: 'Double the fun.', + }), + customStylingDescriptionTitle: i18n('timelion.help.expressions.examples.customStylingDescriptionTitle', { + defaultMessage: 'Custom styling.', + }), + namedArgumentsDescriptionTitle: i18n('timelion.help.expressions.examples.namedArgumentsDescriptionTitle', { + defaultMessage: 'Named arguments.', + }), + groupedExpressionsDescriptionTitle: i18n('timelion.help.expressions.examples.groupedExpressionsDescriptionTitle', { + defaultMessage: 'Grouped expressions.', + }), + }; + getFunctions(); checkElasticsearch(); } @@ -73,7 +119,7 @@ app.directive('timelionHelp', function ($http) { } catch (e) { if (_.get(resp, 'data.resp.message')) return _.get(resp, 'data.resp.message'); if (_.get(resp, 'data.resp.output.payload.message')) return _.get(resp, 'data.resp.output.payload.message'); - return 'Unknown error'; + return i18n('timelion.help.unknownErrorMessage', { defaultMessage: 'Unknown error' }); } }()); } diff --git a/src/core_plugins/timelion/public/directives/timelion_interval/timelion_interval.html b/src/core_plugins/timelion/public/directives/timelion_interval/timelion_interval.html index fcac264341dee..fcc1c1f531c9e 100644 --- a/src/core_plugins/timelion/public/directives/timelion_interval/timelion_interval.html +++ b/src/core_plugins/timelion/public/directives/timelion_interval/timelion_interval.html @@ -1,13 +1,13 @@ Save entire Timelion sheet

      ng-disabled="!opts.savedSheet.title" type="submit" class="kuiButton kuiButton--primary kuiVerticalRhythmSmall" - > - Save - + i18n-id="timelion.topNavMenu.save.saveEntireSheet.submitButtonLabel" + i18n-default-message="Save" + >

      - + {{opts.state.sheet[opts.state.selected]}}
      - - + +
      - +
      diff --git a/src/core_plugins/timelion/public/partials/sheet_options.html b/src/core_plugins/timelion/public/partials/sheet_options.html index 3331e54129cd2..e3a9ae21c89cd 100644 --- a/src/core_plugins/timelion/public/partials/sheet_options.html +++ b/src/core_plugins/timelion/public/partials/sheet_options.html @@ -1,11 +1,17 @@
      -

      - Sheet options -

      +

      - +
      - + -
      - - diff --git a/src/ui/public/query_bar/directive/query_bar.js b/src/ui/public/query_bar/directive/query_bar.js deleted file mode 100644 index 7179c1294afe6..0000000000000 --- a/src/ui/public/query_bar/directive/query_bar.js +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { compact } from 'lodash'; -import { uiModules } from '../../modules'; -import { callAfterBindingsWorkaround } from '../../compat'; -import template from './query_bar.html'; -import suggestionTemplate from './suggestion.html'; -import { getAutocompleteProvider } from '../../autocomplete_providers'; -import './suggestion.less'; -import '../../directives/match_pairs'; -import './query_popover'; -import { getFromLegacyIndexPattern } from '../../index_patterns/static_utils'; - -const module = uiModules.get('kibana'); - -module.directive('queryBar', function () { - - return { - restrict: 'E', - template: template, - scope: { - query: '=', - appName: '=?', - onSubmit: '&', - disableAutoFocus: '=', - indexPatterns: '=' - }, - controllerAs: 'queryBar', - bindToController: true, - - controller: callAfterBindingsWorkaround(function ($scope, $element, $http, $timeout, config, PersistedLog, indexPatterns, debounce) { - this.appName = this.appName || 'global'; - this.focusedTypeaheadItemID = ''; - - this.getIndexPatterns = () => { - if (compact(this.indexPatterns).length) return Promise.resolve(this.indexPatterns); - return Promise.all([indexPatterns.getDefault()]); - }; - - this.submit = () => { - if (this.localQuery.query) { - this.persistedLog.add(this.localQuery.query); - } - this.onSubmit({ $query: this.localQuery }); - this.suggestions = []; - }; - - this.selectLanguage = (language) => { - this.localQuery.language = language; - this.localQuery.query = ''; - this.submit(); - }; - - this.suggestionTemplate = suggestionTemplate; - - this.handleKeyDown = (event) => { - if (['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) { - this.updateSuggestions(); - } - }; - - this.updateSuggestions = debounce(async () => { - const suggestions = await this.getSuggestions(); - if (!this._isScopeDestroyed) { - $scope.$apply(() => this.suggestions = suggestions); - } - }, 100); - - this.getSuggestions = async () => { - const { localQuery: { query, language } } = this; - const recentSearchSuggestions = this.getRecentSearchSuggestions(query); - - const autocompleteProvider = getAutocompleteProvider(language); - if (!autocompleteProvider) return recentSearchSuggestions; - - const legacyIndexPatterns = await this.getIndexPatterns(); - const indexPatterns = getFromLegacyIndexPattern(legacyIndexPatterns); - const getAutocompleteSuggestions = autocompleteProvider({ config, indexPatterns }); - - const { selectionStart, selectionEnd } = $element.find('input')[0]; - const suggestions = await getAutocompleteSuggestions({ query, selectionStart, selectionEnd }); - return [...suggestions, ...recentSearchSuggestions]; - }; - - // TODO: Figure out a better way to set selection - this.onSuggestionSelect = ({ type, text, start, end }) => { - const { query } = this.localQuery; - const inputEl = $element.find('input')[0]; - const { selectionStart, selectionEnd } = inputEl; - const value = query.substr(0, selectionStart) + query.substr(selectionEnd); - - this.localQuery.query = inputEl.value = value.substr(0, start) + text + value.substr(end); - inputEl.setSelectionRange(start + text.length, start + text.length); - - if (type === 'recentSearch') { - this.submit(); - } else { - this.updateSuggestions(); - } - }; - - this.getRecentSearchSuggestions = (query) => { - if (!this.persistedLog) return []; - const recentSearches = this.persistedLog.get(); - const matchingRecentSearches = recentSearches.filter(search => search.includes(query)); - return matchingRecentSearches.map(recentSearch => { - const text = recentSearch; - const start = 0; - const end = query.length; - return { type: 'recentSearch', text, start, end }; - }); - }; - - $scope.$watch('queryBar.localQuery.language', (language) => { - if (!language) return; - this.persistedLog = new PersistedLog(`typeahead:${this.appName}-${language}`, { - maxLength: config.get('history:limit'), - filterDuplicates: true - }); - this.updateSuggestions(); - }); - - $scope.$watch('queryBar.query', (newQuery) => { - this.localQuery = { - ...newQuery - }; - }, true); - - $scope.$watch('queryBar.indexPatterns', () => { - this.updateSuggestions(); - }); - - $scope.$on('$destroy', () => { - this.updateSuggestions.cancel(); - this._isScopeDestroyed = true; - }); - }) - }; -}); diff --git a/src/ui/public/query_bar/directive/query_popover.js b/src/ui/public/query_bar/directive/query_popover.js deleted file mode 100644 index 6c8cdd69ad571..0000000000000 --- a/src/ui/public/query_bar/directive/query_popover.js +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import { uiModules } from '../../modules'; -import { documentationLinks } from '../../documentation_links/documentation_links'; -import { - EuiPopover, - EuiButtonEmpty, - EuiForm, - EuiFormRow, - EuiSwitch, - EuiLink, - EuiText, - EuiSpacer, - EuiHorizontalRule, - EuiPopoverTitle, -} from '@elastic/eui'; - -const luceneQuerySyntaxDocs = documentationLinks.query.luceneQuerySyntax; -const kueryQuerySyntaxDocs = documentationLinks.query.kueryQuerySyntax; - -const module = uiModules.get('app/kibana', ['react']); -module.directive('queryPopover', function (localStorage) { - - return { - restrict: 'E', - scope: { - language: '<', - onSelectLanguage: '&', - }, - link: function ($scope, $element) { - $scope.isPopoverOpen = false; - - function togglePopover() { - $scope.$evalAsync(() => { - $scope.isPopoverOpen = !$scope.isPopoverOpen; - }); - } - - function closePopover() { - $scope.$evalAsync(() => { - $scope.isPopoverOpen = false; - }); - } - - function onSwitchChange() { - $scope.$evalAsync(() => { - const newLanguage = $scope.language === 'lucene' ? 'kuery' : 'lucene'; - localStorage.set('kibana.userQueryLanguage', newLanguage); - $scope.onSelectLanguage({ $language: newLanguage }); - }); - } - - function render() { - const button = ( - - Options - - ); - - const popover = ( - - Syntax options -
      - -

      - Our experimental autocomplete and simple syntax features can help you create your queries. Just start - typing and you’ll see matches related to your data. - - See docs {( - - here - - )}. -

      -
      - - - - - - - - - - - - -

      - Not ready yet? Find our lucene docs {( - - here - - )}. -

      -
      -
      -
      - ); - - ReactDOM.render(popover, $element[0]); - } - - $scope.$watch('isPopoverOpen', render); - $scope.$watch('language', render); - } - }; - -}); - - diff --git a/src/ui/public/query_bar/directive/suggestion.html b/src/ui/public/query_bar/directive/suggestion.html deleted file mode 100644 index a68ea51767b88..0000000000000 --- a/src/ui/public/query_bar/directive/suggestion.html +++ /dev/null @@ -1,23 +0,0 @@ -
      -
      -
      -
      - -
      -
      - -
      -
      - -
      -
      - -
      -
      - -
      -
      -
      -
      {{item.text}}
      -
      -
      diff --git a/src/ui/public/query_bar/directive/suggestion.less b/src/ui/public/query_bar/directive/suggestion.less deleted file mode 100644 index 6af1af218b358..0000000000000 --- a/src/ui/public/query_bar/directive/suggestion.less +++ /dev/null @@ -1,155 +0,0 @@ -@import (reference) "~ui/styles/variables"; - -.suggestionItem { - display: flex; - align-items: stretch; - flex-grow: 1; - align-items: center; - font-size: 13px; - white-space: nowrap; -} - -.suggestionItem__text, .suggestionItem__type, .suggestionItem__description { - flex-grow: 1; - flex-basis: 0%; - display: flex; - flex-direction: column; -} - -.suggestionItem__type { - flex-grow: 0; - flex-basis: auto; - width: 32px; - height: 32px; - text-align: center; - overflow: hidden; - padding: 4px; -} - -&.suggestionItem--field { - .suggestionItem__type { - background-color: tint(@globalColorOrange, 90%); - color: @globalColorOrange; - } -} - -&.suggestionItem--value { - .suggestionItem__type { - background-color: tint(@globalColorTeal, 90%); - color: @globalColorTeal; - } - - .suggestionItem__text { - width: auto; - } -} - -&.suggestionItem--operator { - .suggestionItem__type { - background-color: tint(@globalColorBlue, 90%); - color: @globalColorBlue; - } -} - -&.suggestionItem--conjunction { - .suggestionItem__type { - background-color: tint(@globalColorPurple, 90%); - color: @globalColorPurple; - } -} - -&.suggestionItem--recentSearch { - .suggestionItem__type { - background-color: @globalColorLightGray; - color: @globalColorMediumGray; - } - - .suggestionItem__text { - width: auto; - } -} - -.suggestionItem__text { - flex-grow: 0; /* 2 */ - flex-basis: auto; /* 2 */ - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin-right: 32px; - width: 250px; - overflow: hidden; - text-overflow: ellipsis; - padding: 4px 8px; - color: #111; -} - -.suggestionItem__description { - color: @globalColorDarkGray; - overflow: hidden; - text-overflow: ellipsis; -} - -.suggestionItem__callout { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - background: @globalColorLightestGray; - color: #000; - padding: 0 4px; - display: inline-block; -} - -.suggestionTypeahead { - .typeahead { - .typeahead-items { - max-height: 60vh; - overflow-y: auto; - - .typeahead-item { - padding: 0; - border-bottom: none; - line-height: normal; - - &:hover { - cursor: pointer; - } - - &.active { - background-color: @globalColorLightestGray; - - .suggestionItem__callout { - background: #fff; - } - - .suggestionItem__text { - color: #000; - } - - .suggestionItem__type { - color: #000; - } - - .suggestionItem--field { - .suggestionItem__type { - background-color: tint(@globalColorOrange, 80%); - } - } - - .suggestionItem--value { - .suggestionItem__type { - background-color: tint(@globalColorTeal, 80%); - } - } - - .suggestionItem--operator { - .suggestionItem__type { - background-color: tint(@globalColorBlue, 80%); - } - } - - .suggestionItem--conjunction { - .suggestionItem__type { - background-color: tint(@globalColorPurple, 80%); - } - } - } - } - } - } -} diff --git a/src/ui/public/query_bar/index.js b/src/ui/public/query_bar/index.js deleted file mode 100644 index 23566906b6487..0000000000000 --- a/src/ui/public/query_bar/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import './directive/query_bar'; diff --git a/src/ui/public/query_bar/index.ts b/src/ui/public/query_bar/index.ts new file mode 100644 index 0000000000000..6b41af67783b4 --- /dev/null +++ b/src/ui/public/query_bar/index.ts @@ -0,0 +1,20 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { QueryBar } from './components'; diff --git a/src/ui/public/query_bar/lib/match_pairs.ts b/src/ui/public/query_bar/lib/match_pairs.ts new file mode 100644 index 0000000000000..d5cfb4f99c9d5 --- /dev/null +++ b/src/ui/public/query_bar/lib/match_pairs.ts @@ -0,0 +1,146 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * This helper automatically handles matching pairs. + * Specifically, it does the following: + * + * 1. If the key is a closer, and the character in front of the cursor is the + * same, simply move the cursor forward. + * 2. If the key is an opener, insert the opener at the beginning of the + * selection, and the closer at the end of the selection, and move the + * selection forward. + * 3. If the backspace is hit, and the characters before and after the cursor + * are a pair, remove both characters and move the cursor backward. + */ + +const pairs = ['()', '[]', '{}', `''`, '""']; +const openers = pairs.map(pair => pair[0]); +const closers = pairs.map(pair => pair[1]); + +interface MatchPairsOptions { + value: string; + selectionStart: number; + selectionEnd: number; + key: string; + metaKey: boolean; + updateQuery: (query: string, selectionStart: number, selectionEnd: number) => void; + preventDefault: () => void; +} + +export function matchPairs({ + value, + selectionStart, + selectionEnd, + key, + metaKey, + updateQuery, + preventDefault, +}: MatchPairsOptions) { + if (shouldMoveCursorForward(key, value, selectionStart, selectionEnd)) { + preventDefault(); + updateQuery(value, selectionStart + 1, selectionEnd + 1); + } else if (shouldInsertMatchingCloser(key, value, selectionStart, selectionEnd)) { + preventDefault(); + const newValue = + value.substr(0, selectionStart) + + key + + value.substring(selectionStart, selectionEnd) + + closers[openers.indexOf(key)] + + value.substr(selectionEnd); + updateQuery(newValue, selectionStart + 1, selectionEnd + 1); + } else if (shouldRemovePair(key, metaKey, value, selectionStart, selectionEnd)) { + preventDefault(); + const newValue = value.substr(0, selectionEnd - 1) + value.substr(selectionEnd + 1); + updateQuery(newValue, selectionStart - 1, selectionEnd - 1); + } +} + +function shouldMoveCursorForward( + key: string, + value: string, + selectionStart: number, + selectionEnd: number +) { + if (!closers.includes(key)) { + return false; + } + + // Never move selection forward for multi-character selections + if (selectionStart !== selectionEnd) { + return false; + } + + // Move selection forward if the key is the same as the closer in front of the selection + return value.charAt(selectionEnd) === key; +} + +function shouldInsertMatchingCloser( + key: string, + value: string, + selectionStart: number, + selectionEnd: number +) { + if (!openers.includes(key)) { + return false; + } + + // Always insert for multi-character selections + if (selectionStart !== selectionEnd) { + return true; + } + + const precedingCharacter = value.charAt(selectionStart - 1); + const followingCharacter = value.charAt(selectionStart + 1); + + // Don't insert if the preceding character is a backslash + if (precedingCharacter === '\\') { + return false; + } + + // Don't insert if it's a quote and the either of the preceding/following characters is alphanumeric + return !( + ['"', `'`].includes(key) && + (isAlphanumeric(precedingCharacter) || isAlphanumeric(followingCharacter)) + ); +} + +function shouldRemovePair( + key: string, + metaKey: boolean, + value: string, + selectionStart: number, + selectionEnd: number +) { + if (key !== 'Backspace' || metaKey) { + return false; + } + + // Never remove for multi-character selections + if (selectionStart !== selectionEnd) { + return false; + } + + // Remove if the preceding/following characters are a pair + return pairs.includes(value.substr(selectionEnd - 1, 2)); +} + +function isAlphanumeric(value = '') { + return value.match(/[a-zA-Z0-9_]/); +} diff --git a/src/ui/public/registry/_registry.d.ts b/src/ui/public/registry/_registry.d.ts new file mode 100644 index 0000000000000..425ab45036519 --- /dev/null +++ b/src/ui/public/registry/_registry.d.ts @@ -0,0 +1,31 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { IndexedArray, IndexedArrayConfig } from '../indexed_array'; + +interface UIRegistry extends IndexedArray { + register(privateModule: T): UIRegistry; +} + +interface UIRegistrySpec extends IndexedArrayConfig { + name: string; + filter?(item: T): boolean; +} + +declare function uiRegistry(spec: UIRegistrySpec): UIRegistry; diff --git a/src/ui/public/registry/chrome_header_nav_controls.ts b/src/ui/public/registry/chrome_header_nav_controls.ts new file mode 100644 index 0000000000000..5207113db6899 --- /dev/null +++ b/src/ui/public/registry/chrome_header_nav_controls.ts @@ -0,0 +1,37 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { NavControl } from '../chrome/directives/header_global_nav'; +import { IndexedArray } from '../indexed_array'; +import { uiRegistry, UIRegistry } from './_registry'; + +interface BySideDictionary { + // this key should be from NavControlSide + [side: string]: IndexedArray; +} + +export interface ChromeHeaderNavControlsRegistry extends UIRegistry { + bySide: BySideDictionary; +} + +export const chromeHeaderNavControlsRegistry: ChromeHeaderNavControlsRegistry = uiRegistry({ + name: 'chromeHeaderNavControls', + order: ['order'], + group: ['side'], +}) as ChromeHeaderNavControlsRegistry; diff --git a/src/ui/public/registry/chrome_nav_controls.js b/src/ui/public/registry/chrome_nav_controls.js index 85072a09ab656..b6c935b9cc333 100644 --- a/src/ui/public/registry/chrome_nav_controls.js +++ b/src/ui/public/registry/chrome_nav_controls.js @@ -23,4 +23,3 @@ export const chromeNavControlsRegistry = uiRegistry({ name: 'chromeNavControls', order: ['order'] }); - diff --git a/src/ui/public/registry/feature_catalogue.d.ts b/src/ui/public/registry/feature_catalogue.d.ts new file mode 100644 index 0000000000000..f45e30f3778d6 --- /dev/null +++ b/src/ui/public/registry/feature_catalogue.d.ts @@ -0,0 +1,40 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export enum FeatureCatalogueCategory { + ADMIN = 'admin', + DATA = 'data', + OTHER = 'other', +} + +interface FeatureCatalogueObject { + id: string; + title: string; + description: string; + icon: string; + path: string; + showOnHomePage: boolean; + category: FeatureCatalogueCategory; +} + +type FeatureCatalogueRegistryFunction = () => FeatureCatalogueObject; + +export const FeatureCatalogueRegistryProvider: { + register: (fn: FeatureCatalogueRegistryFunction) => void; +}; diff --git a/src/ui/public/routes/index.d.ts b/src/ui/public/routes/index.d.ts new file mode 100644 index 0000000000000..9e1a3bbd534ee --- /dev/null +++ b/src/ui/public/routes/index.d.ts @@ -0,0 +1,23 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { uiRoutes, UIRoutes } from 'ui/routes/routes'; + +export default uiRoutes; +export { UIRoutes }; diff --git a/src/ui/public/routes/route_manager.d.ts b/src/ui/public/routes/route_manager.d.ts new file mode 100644 index 0000000000000..e872027cd1a69 --- /dev/null +++ b/src/ui/public/routes/route_manager.d.ts @@ -0,0 +1,38 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * WARNING: these types are incomplete + */ + +interface RouteConfiguration { + controller?: string | ((...args: any[]) => void); + redirectTo?: string; + reloadOnSearch?: boolean; + resolve?: object; + template?: string; +} + +interface RouteManager { + when(path: string, routeConfiguration: RouteConfiguration): RouteManager; + otherwise(routeConfiguration: RouteConfiguration): RouteManager; + defaults(path: string | RegExp, defaults: RouteConfiguration): RouteManager; +} + +export default RouteManager; diff --git a/src/ui/public/routes/routes.d.ts b/src/ui/public/routes/routes.d.ts new file mode 100644 index 0000000000000..1a0a89612bf1d --- /dev/null +++ b/src/ui/public/routes/routes.d.ts @@ -0,0 +1,27 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import RouteManager from 'ui/routes/route_manager'; + +interface DefaultRouteManager extends RouteManager { + enable(): void; +} + +export const uiRoutes: DefaultRouteManager; +export type UIRoutes = DefaultRouteManager; diff --git a/src/ui/public/share/components/__snapshots__/share_context_menu.test.js.snap b/src/ui/public/share/components/__snapshots__/share_context_menu.test.js.snap index 815661b15213b..cd291871ae71a 100644 --- a/src/ui/public/share/components/__snapshots__/share_context_menu.test.js.snap +++ b/src/ui/public/share/components/__snapshots__/share_context_menu.test.js.snap @@ -50,12 +50,14 @@ exports[`should render context menu panel when there are more than one panel 1`] "icon": "console", "name": "Embed code", "panel": 2, + "sortOrder": 0, }, Object { "data-test-subj": "sharePanel-Permalinks", "icon": "link", "name": "Permalinks", "panel": 1, + "sortOrder": 0, }, ], "title": "Share this dashboard", diff --git a/src/ui/public/share/components/share_context_menu.tsx b/src/ui/public/share/components/share_context_menu.tsx index 74b221509b6ff..3093fe33ae2b6 100644 --- a/src/ui/public/share/components/share_context_menu.tsx +++ b/src/ui/public/share/components/share_context_menu.tsx @@ -20,10 +20,10 @@ import React, { Component } from 'react'; import './share_panel_content.less'; -import { EuiContextMenuPanelDescriptor, EuiContextMenuPanelItemDescriptor } from '@elastic/eui'; +import { EuiContextMenuPanelDescriptor } from '@elastic/eui'; import { EuiContextMenu } from '@elastic/eui'; -import { ShareAction, ShareActionProvider } from 'ui/share/share_action'; +import { ShareAction, ShareActionProvider, ShareContextMenuPanelItem } from 'ui/share/share_action'; import { UrlPanelContent } from './url_panel_content'; interface Props { @@ -51,7 +51,7 @@ export class ShareContextMenu extends Component { private getPanels = () => { const panels: EuiContextMenuPanelDescriptor[] = []; - const menuItems: EuiContextMenuPanelItemDescriptor[] = []; + const menuItems: ShareContextMenuPanelItem[] = []; const permalinkPanel = { id: panels.length + 1, @@ -68,6 +68,7 @@ export class ShareContextMenu extends Component { name: 'Permalinks', icon: 'link', panel: permalinkPanel.id, + sortOrder: 0, }); panels.push(permalinkPanel); @@ -89,6 +90,7 @@ export class ShareContextMenu extends Component { name: 'Embed code', icon: 'console', panel: embedPanel.id, + sortOrder: 0, }); } @@ -132,10 +134,23 @@ export class ShareContextMenu extends Component { items: menuItems .map(menuItem => { menuItem['data-test-subj'] = `sharePanel-${menuItem.name.replace(' ', '')}`; + if (!menuItem.sortOrder) { + menuItem.sortOrder = 0; + } return menuItem; }) + // Sorts ascending on sort order first and then ascending on name .sort((a, b) => { - return a.name.toLowerCase().localeCompare(b.name.toLowerCase()); + if (a.sortOrder > b.sortOrder) { + return 1; + } + if (a.sortOrder < b.sortOrder) { + return -1; + } + if (a.name.toLowerCase().localeCompare(b.name.toLowerCase()) > 0) { + return 1; + } + return -1; }), }; panels.push(topLevelMenuPanel); diff --git a/src/ui/public/share/components/url_panel_content.tsx b/src/ui/public/share/components/url_panel_content.tsx index 932ea0887ccac..e31fa49d80429 100644 --- a/src/ui/public/share/components/url_panel_content.tsx +++ b/src/ui/public/share/components/url_panel_content.tsx @@ -20,7 +20,6 @@ // TODO: Remove once typescript definitions are in EUI declare module '@elastic/eui' { export const EuiCopy: React.SFC; - export const EuiForm: React.SFC; } import React, { Component } from 'react'; diff --git a/src/ui/public/share/share_action.ts b/src/ui/public/share/share_action.ts index abd5c56d57770..963143e72caa8 100644 --- a/src/ui/public/share/share_action.ts +++ b/src/ui/public/share/share_action.ts @@ -47,8 +47,12 @@ export interface ShareActionProps { onClose: () => void; } +export interface ShareContextMenuPanelItem extends EuiContextMenuPanelItemDescriptor { + sortOrder: number; +} + export interface ShareAction { - shareMenuItem: EuiContextMenuPanelItemDescriptor; + shareMenuItem: ShareContextMenuPanelItem; panel: EuiContextMenuPanelDescriptor; } diff --git a/src/ui/public/state_management/app_state.d.ts b/src/ui/public/state_management/app_state.d.ts index 314583746fca1..3a1dbc8d9d70e 100644 --- a/src/ui/public/state_management/app_state.d.ts +++ b/src/ui/public/state_management/app_state.d.ts @@ -16,5 +16,6 @@ * specific language governing permissions and limitations * under the License. */ +import { State } from './state'; -export type AppState = any; +export type AppState = State; diff --git a/src/ui/public/state_management/global_state.d.ts b/src/ui/public/state_management/global_state.d.ts new file mode 100644 index 0000000000000..66a85d88956c7 --- /dev/null +++ b/src/ui/public/state_management/global_state.d.ts @@ -0,0 +1,22 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { State } from './state'; + +export type GlobalState = State; diff --git a/src/ui/public/state_management/state.d.ts b/src/ui/public/state_management/state.d.ts new file mode 100644 index 0000000000000..39e4e672d0203 --- /dev/null +++ b/src/ui/public/state_management/state.d.ts @@ -0,0 +1,26 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export interface State { + [key: string]: any; + translateHashToRison: ( + stateHashOrRison: string | string[] | undefined + ) => string | string[] | undefined; + getQueryParamName: () => string; +} diff --git a/src/ui/public/state_management/state_hashing/get_unhashable_states_provider.js b/src/ui/public/state_management/state_hashing/get_unhashable_states_provider.js deleted file mode 100644 index 693da1b990c45..0000000000000 --- a/src/ui/public/state_management/state_hashing/get_unhashable_states_provider.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export function getUnhashableStatesProvider(getAppState, globalState) { - return function getUnhashableStates() { - return [getAppState(), globalState].filter(Boolean); - }; -} diff --git a/src/ui/public/state_management/state_hashing/get_unhashable_states_provider.ts b/src/ui/public/state_management/state_hashing/get_unhashable_states_provider.ts new file mode 100644 index 0000000000000..6c43947640ed3 --- /dev/null +++ b/src/ui/public/state_management/state_hashing/get_unhashable_states_provider.ts @@ -0,0 +1,28 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { AppState } from '../app_state'; +import { GlobalState } from '../global_state'; +import { State } from '../state'; + +export function getUnhashableStatesProvider(getAppState: () => AppState, globalState: GlobalState) { + return function getUnhashableStates(): State[] { + return [getAppState(), globalState].filter(Boolean); + }; +} diff --git a/src/ui/public/state_management/state_hashing/unhash_query_string.js b/src/ui/public/state_management/state_hashing/unhash_query_string.js deleted file mode 100644 index be1f9c94a3c5a..0000000000000 --- a/src/ui/public/state_management/state_hashing/unhash_query_string.js +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { mapValues } from 'lodash'; - -export function unhashQueryString(parsedQueryString, states) { - return mapValues(parsedQueryString, (val, key) => { - const state = states.find(s => key === s.getQueryParamName()); - return state ? state.translateHashToRison(val) : val; - }); -} diff --git a/src/ui/public/state_management/state_hashing/unhash_query_string.ts b/src/ui/public/state_management/state_hashing/unhash_query_string.ts new file mode 100644 index 0000000000000..242b840282f39 --- /dev/null +++ b/src/ui/public/state_management/state_hashing/unhash_query_string.ts @@ -0,0 +1,37 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { mapValues } from 'lodash'; +import { ParsedUrlQuery } from 'querystring'; +import { State } from '../state'; + +/** + * Takes in a parsed url query and state objects, finding the state objects that match the query parameters and expanding + * the hashed state. For example, a url query string like '?_a=@12353&_g=@19028df' will become + * '?_a=[expanded app state here]&_g=[expanded global state here]. This is used when storeStateInSessionStorage is turned on. + */ +export function unhashQueryString( + parsedQueryString: ParsedUrlQuery, + states: State[] +): ParsedUrlQuery { + return mapValues(parsedQueryString, (val, key) => { + const state = states.find(s => key === s.getQueryParamName()); + return state ? state.translateHashToRison(val) : val; + }); +} diff --git a/src/ui/public/state_management/state_monitor_factory.js b/src/ui/public/state_management/state_monitor_factory.js deleted file mode 100644 index b09195a1dd3b7..0000000000000 --- a/src/ui/public/state_management/state_monitor_factory.js +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { cloneDeep, isEqual, set, isPlainObject } from 'lodash'; - -export const stateMonitorFactory = { - create: (state, customInitialState) => stateMonitor(state, customInitialState) -}; - -function stateMonitor(state, customInitialState) { - let destroyed = false; - let ignoredProps = []; - let changeHandlers = []; - let initialState; - - setInitialState(customInitialState); - - function setInitialState(customInitialState) { - // state.toJSON returns a reference, clone so we can mutate it safely - initialState = cloneDeep(customInitialState) || cloneDeep(state.toJSON()); - } - - function removeIgnoredProps(state) { - ignoredProps.forEach(path => { - set(state, path, true); - }); - return state; - } - - function getStatus() { - // state.toJSON returns a reference, clone so we can mutate it safely - const currentState = removeIgnoredProps(cloneDeep(state.toJSON())); - const isClean = isEqual(currentState, initialState); - - return { - clean: isClean, - dirty: !isClean, - }; - } - - function dispatchChange(type = null, keys = []) { - const status = getStatus(); - changeHandlers.forEach(changeHandler => { - changeHandler(status, type, keys); - }); - } - - function dispatchFetch(keys) { - dispatchChange('fetch_with_changes', keys); - } - - function dispatchSave(keys) { - dispatchChange('save_with_changes', keys); - } - - function dispatchReset(keys) { - dispatchChange('reset_with_changes', keys); - } - - return { - setInitialState(customInitialState) { - if (!isPlainObject(customInitialState)) throw new TypeError('The default state must be an object'); - - // check the current status - const previousStatus = getStatus(); - - // update the initialState and apply ignoredProps - setInitialState(customInitialState); - removeIgnoredProps(initialState); - - // fire the change handler if the status has changed - if (!isEqual(previousStatus, getStatus())) dispatchChange(); - }, - - ignoreProps(props) { - ignoredProps = ignoredProps.concat(props); - removeIgnoredProps(initialState); - return this; - }, - - onChange(callback) { - if (destroyed) throw new Error('Monitor has been destroyed'); - if (typeof callback !== 'function') throw new Error('onChange handler must be a function'); - - changeHandlers.push(callback); - - // Listen for state events. - state.on('fetch_with_changes', dispatchFetch); - state.on('save_with_changes', dispatchSave); - state.on('reset_with_changes', dispatchReset); - - // if the state is already dirty, fire the change handler immediately - const status = getStatus(); - if (status.dirty) dispatchChange(); - - return this; - }, - - destroy() { - destroyed = true; - changeHandlers = undefined; - state.off('fetch_with_changes', dispatchFetch); - state.off('save_with_changes', dispatchSave); - state.off('reset_with_changes', dispatchReset); - } - }; -} diff --git a/src/ui/public/state_management/state_monitor_factory.ts b/src/ui/public/state_management/state_monitor_factory.ts new file mode 100644 index 0000000000000..2ed138d24bf14 --- /dev/null +++ b/src/ui/public/state_management/state_monitor_factory.ts @@ -0,0 +1,143 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { cloneDeep, isEqual, isPlainObject, set } from 'lodash'; +import { State } from './state'; + +export const stateMonitorFactory = { + create: (state: State, customInitialState: State) => stateMonitor(state, customInitialState), +}; + +interface StateStatus { + clean: boolean; + dirty: boolean; +} + +type ChangeHandlerFn = (status: StateStatus, type: string | null, keys: string[]) => void; + +function stateMonitor(state: State, customInitialState: State) { + let destroyed = false; + let ignoredProps: string[] = []; + let changeHandlers: ChangeHandlerFn[] | undefined = []; + let initialState: State; + + setInitialState(customInitialState); + + function setInitialState(innerCustomInitialState: State) { + // state.toJSON returns a reference, clone so we can mutate it safely + initialState = cloneDeep(innerCustomInitialState) || cloneDeep(state.toJSON()); + } + + function removeIgnoredProps(innerState: State) { + ignoredProps.forEach(path => { + set(innerState, path, true); + }); + return innerState; + } + + function getStatus(): StateStatus { + // state.toJSON returns a reference, clone so we can mutate it safely + const currentState = removeIgnoredProps(cloneDeep(state.toJSON())); + const isClean = isEqual(currentState, initialState); + + return { + clean: isClean, + dirty: !isClean, + }; + } + + function dispatchChange(type: string | null = null, keys: string[] = []) { + const status = getStatus(); + if (!changeHandlers) { + throw new Error('Change handlers is undefined, this object has been destroyed'); + } + changeHandlers.forEach(changeHandler => { + changeHandler(status, type, keys); + }); + } + + function dispatchFetch(keys: string[]) { + dispatchChange('fetch_with_changes', keys); + } + + function dispatchSave(keys: string[]) { + dispatchChange('save_with_changes', keys); + } + + function dispatchReset(keys: string[]) { + dispatchChange('reset_with_changes', keys); + } + + return { + setInitialState(innerCustomInitialState: State) { + if (!isPlainObject(innerCustomInitialState)) { + throw new TypeError('The default state must be an object'); + } + + // check the current status + const previousStatus = getStatus(); + + // update the initialState and apply ignoredProps + setInitialState(innerCustomInitialState); + removeIgnoredProps(initialState); + + // fire the change handler if the status has changed + if (!isEqual(previousStatus, getStatus())) { + dispatchChange(); + } + }, + + ignoreProps(props: string[]) { + ignoredProps = ignoredProps.concat(props); + removeIgnoredProps(initialState); + return this; + }, + + onChange(callback: ChangeHandlerFn) { + if (destroyed || !changeHandlers) { + throw new Error('Monitor has been destroyed'); + } + if (typeof callback !== 'function') { + throw new Error('onChange handler must be a function'); + } + + changeHandlers.push(callback); + + // Listen for state events. + state.on('fetch_with_changes', dispatchFetch); + state.on('save_with_changes', dispatchSave); + state.on('reset_with_changes', dispatchReset); + + // if the state is already dirty, fire the change handler immediately + const status = getStatus(); + if (status.dirty) { + dispatchChange(); + } + + return this; + }, + + destroy() { + destroyed = true; + changeHandlers = undefined; + state.off('fetch_with_changes', dispatchFetch); + state.off('save_with_changes', dispatchSave); + state.off('reset_with_changes', dispatchReset); + }, + }; +} diff --git a/src/ui/public/storage/directive.js b/src/ui/public/storage/directive.js new file mode 100644 index 0000000000000..a5bb2ee3b6b0b --- /dev/null +++ b/src/ui/public/storage/directive.js @@ -0,0 +1,32 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + +import { uiModules } from '../modules'; +import { Storage } from './storage'; + +const createService = function (type) { + return function ($window) { + return new Storage($window[type]); + }; +}; + +uiModules.get('kibana/storage') + .service('localStorage', createService('localStorage')) + .service('sessionStorage', createService('sessionStorage')); diff --git a/src/ui/public/storage/index.js b/src/ui/public/storage/index.js deleted file mode 100644 index d2a214ea3d30a..0000000000000 --- a/src/ui/public/storage/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export { Storage } from './storage'; diff --git a/src/ui/public/storage/index.ts b/src/ui/public/storage/index.ts new file mode 100644 index 0000000000000..17bbb61b2b8d5 --- /dev/null +++ b/src/ui/public/storage/index.ts @@ -0,0 +1,22 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import './directive'; + +export { Storage } from './storage'; diff --git a/src/ui/public/storage/storage.js b/src/ui/public/storage/storage.js deleted file mode 100644 index aea032be4fd6b..0000000000000 --- a/src/ui/public/storage/storage.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { uiModules } from '../modules'; -import angular from 'angular'; - -export function Storage(store) { - const self = this; - self.store = store; - - self.get = function (key) { - try { - return JSON.parse(self.store.getItem(key)); - } catch (e) { - return null; - } - }; - - self.set = function (key, value) { - try { - return self.store.setItem(key, angular.toJson(value)); - } catch (e) { - return false; - } - }; - - self.remove = function (key) { - return self.store.removeItem(key); - }; - - self.clear = function () { - return self.store.clear(); - }; -} - -const createService = function (type) { - return function ($window) { - return new Storage($window[type]); - }; -}; - -uiModules.get('kibana/storage') - .service('localStorage', createService('localStorage')) - .service('sessionStorage', createService('sessionStorage')); diff --git a/src/ui/public/storage/storage.ts b/src/ui/public/storage/storage.ts new file mode 100644 index 0000000000000..703886c1e034c --- /dev/null +++ b/src/ui/public/storage/storage.ts @@ -0,0 +1,66 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import angular from 'angular'; + +// This is really silly, but I wasn't prepared to rename the kibana Storage class everywhere it is used +// and this is the only way I could figure out how to use the type definition for a built in object +// in a file that creates a type with the same name as that built in object. +import { WebStorage } from './web_storage'; + +export class Storage { + public store: WebStorage; + + constructor(store: WebStorage) { + this.store = store; + } + + public get = (key: string) => { + if (!this.store) { + return null; + } + + const storageItem = this.store.getItem(key); + if (storageItem === null) { + return null; + } + + try { + return JSON.parse(storageItem); + } catch (error) { + return null; + } + }; + + public set = (key: string, value: any) => { + try { + return this.store.setItem(key, angular.toJson(value)); + } catch (e) { + return false; + } + }; + + public remove = (key: string) => { + return this.store.removeItem(key); + }; + + public clear = () => { + return this.store.clear(); + }; +} diff --git a/src/ui/public/storage/web_storage.ts b/src/ui/public/storage/web_storage.ts new file mode 100644 index 0000000000000..d5f775431143d --- /dev/null +++ b/src/ui/public/storage/web_storage.ts @@ -0,0 +1,20 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export type WebStorage = Storage; diff --git a/src/ui/public/styles/_mixins.scss b/src/ui/public/styles/_mixins.scss index b0141997b2d32..0621c22a9f8eb 100644 --- a/src/ui/public/styles/_mixins.scss +++ b/src/ui/public/styles/_mixins.scss @@ -8,7 +8,7 @@ } } -// EUI TODO: Add this +// EUITODO: Add this @mixin kibanaCircleLogo() { display: inline-block; @include size($euiSizeXXL * 2); @@ -23,3 +23,33 @@ } } +@mixin kibana-resizer($size: ($euiSizeM + 2px), $direction: horizontal) { + display: flex; + flex: 0 0 $size; + background-color: $euiColorLightestShade; + align-items: center; + justify-content: center; + margin: 0; + user-select: none; + + @if ($direction == horizontal) { + cursor: ew-resize; + width: $size; + } @else if ($direction == vertical) { + cursor: ns-resize; + height: $size; + width: 100%; + } @else { + @warn("Direction unknown for kibana-resizer"); + } + + &:hover { + background-color: tintOrShade($euiColorPrimary, 80%, 60%); + } + + &:focus, + &.active { + background-color: $euiColorPrimary; + color: $euiColorEmptyShade; + } +} diff --git a/src/ui/public/styles/local_search.less b/src/ui/public/styles/local_search.less index a9720be338cf9..43098e683768a 100644 --- a/src/ui/public/styles/local_search.less +++ b/src/ui/public/styles/local_search.less @@ -3,6 +3,7 @@ * won't overlap if the user increases their default browser font size * This is sized for the 'Uses lucene query syntax' link */ -.kuiLocalSearchInput { +.kuiLocalSearchInput, +.kuiLocalSearchAssistedInput__input { padding-right: 6em; /* 1 */ } diff --git a/src/ui/public/styles/variables/for-theme.less b/src/ui/public/styles/variables/for-theme.less index bc84a60b533f7..935e8851db9af 100644 --- a/src/ui/public/styles/variables/for-theme.less +++ b/src/ui/public/styles/variables/for-theme.less @@ -1,4 +1,3 @@ -@tilemap-leaflet-footer-bg: red; @font-size-smaller: ceil((@font-size-base * 0.75)); @input-border-width: 1px; @@ -217,37 +216,6 @@ // Legend ====================================================================== @legend-item-color: #666; - -// Tilemap ===================================================================== -@tilemap-border: #ddd; -@tilemap-legend-base-bg: @white; -@tilemap-legend-bg: fade(@tilemap-legend-base-bg, 8%); -@tilemap-color: #666; - -@tilemap-legend-i-border: #999; -@tilemap-legend-i-bg: #aaa; - - -@tilemap-info-base-bg: @white; -@tilemap-info-bg: fade(@tilemap-info-base-bg, 92%); -@tilemap-info-header-color: #444; - -@tilemap-leaflet-control-bg: @white; -@tilemap-leaflet-control-outline: @black; -@tilemap-leaflet-control-color: @black; - -@tilemap-leaflet-control-draw-action-bg: #ddd; - -@tilemap-leaflet-container-bg: @white; - -@tilemap-leaflet-popup-border: @gray; - -@tilemap-leaflet-footer-bg: fade(#fff, 30%); -@tilemap-leaflet-footer-color: #333; - -@tilemap-filter: brightness(1.03) grayscale(0.83) contrast(1.07); - - // Tooltip ===================================================================== @tooltip-space: 8px; @tooltip-space-tight: @tooltip-space / 2; diff --git a/src/ui/public/time_buckets/calc_auto_interval.js b/src/ui/public/time_buckets/calc_auto_interval.js deleted file mode 100644 index 4ed5d9cd22f16..0000000000000 --- a/src/ui/public/time_buckets/calc_auto_interval.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import moment from 'moment'; -const { duration: d } = moment; - -// these are the rounding rules used by roundInterval() - -const roundingRules = [ - [ d(500, 'ms'), d(100, 'ms') ], - [ d(5, 'second'), d(1, 'second') ], - [ d(7.5, 'second'), d(5, 'second') ], - [ d(15, 'second'), d(10, 'second') ], - [ d(45, 'second'), d(30, 'second') ], - [ d(3, 'minute'), d(1, 'minute') ], - [ d(9, 'minute'), d(5, 'minute') ], - [ d(20, 'minute'), d(10, 'minute') ], - [ d(45, 'minute'), d(30, 'minute') ], - [ d(2, 'hour'), d(1, 'hour') ], - [ d(6, 'hour'), d(3, 'hour') ], - [ d(24, 'hour'), d(12, 'hour') ], - [ d(1, 'week'), d(1, 'd') ], - [ d(3, 'week'), d(1, 'week') ], - [ d(1, 'year'), d(1, 'month') ], - [ Infinity, d(1, 'year') ] -]; - -const revRoundingRules = roundingRules.slice(0).reverse(); - -function find(rules, check, last) { - function pick(buckets, duration) { - const target = duration / buckets; - let lastResp; - - for (let i = 0; i < rules.length; i++) { - const rule = rules[i]; - const resp = check(rule[0], rule[1], target); - - if (resp == null) { - if (!last) continue; - if (lastResp) return lastResp; - break; - } - - if (!last) return resp; - lastResp = resp; - } - - // fallback to just a number of milliseconds, ensure ms is >= 1 - const ms = Math.max(Math.floor(target), 1); - return moment.duration(ms, 'ms'); - } - - return function (buckets, duration) { - const interval = pick(buckets, duration); - if (interval) return moment.duration(interval._data); - }; -} - -export const calcAutoInterval = { - near: find(revRoundingRules, function near(bound, interval, target) { - if (bound > target) return interval; - }, true), - - lessThan: find(revRoundingRules, function (bound, interval, target) { - if (interval < target) return interval; - }), - - atLeast: find(revRoundingRules, function atLeast(bound, interval, target) { - if (interval <= target) return interval; - }), -}; diff --git a/src/ui/public/time_buckets/calc_auto_interval.test.ts b/src/ui/public/time_buckets/calc_auto_interval.test.ts new file mode 100644 index 0000000000000..7c95da6a74dd3 --- /dev/null +++ b/src/ui/public/time_buckets/calc_auto_interval.test.ts @@ -0,0 +1,136 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import moment from 'moment'; + +import { calcAutoIntervalLessThan, calcAutoIntervalNear } from './calc_auto_interval'; + +describe('calcAutoIntervalNear', () => { + test('1h/0 buckets = 0ms buckets', () => { + const interval = calcAutoIntervalNear(0, Number(moment.duration(1, 'h'))); + expect(interval.asMilliseconds()).toBe(0); + }); + + test('undefined/100 buckets = 0ms buckets', () => { + const interval = calcAutoIntervalNear(0, undefined as any); + expect(interval.asMilliseconds()).toBe(0); + }); + + test('1ms/100 buckets = 1ms buckets', () => { + const interval = calcAutoIntervalNear(100, Number(moment.duration(1, 'ms'))); + expect(interval.asMilliseconds()).toBe(1); + }); + + test('200ms/100 buckets = 2ms buckets', () => { + const interval = calcAutoIntervalNear(100, Number(moment.duration(200, 'ms'))); + expect(interval.asMilliseconds()).toBe(2); + }); + + test('1s/1000 buckets = 1ms buckets', () => { + const interval = calcAutoIntervalNear(1000, Number(moment.duration(1, 's'))); + expect(interval.asMilliseconds()).toBe(1); + }); + + test('1000h/1000 buckets = 1h buckets', () => { + const interval = calcAutoIntervalNear(1000, Number(moment.duration(1000, 'hours'))); + expect(interval.asHours()).toBe(1); + }); + + test('1h/100 buckets = 30s buckets', () => { + const interval = calcAutoIntervalNear(100, Number(moment.duration(1, 'hours'))); + expect(interval.asSeconds()).toBe(30); + }); + + test('1d/25 buckets = 1h buckets', () => { + const interval = calcAutoIntervalNear(25, Number(moment.duration(1, 'day'))); + expect(interval.asHours()).toBe(1); + }); + + test('1y/1000 buckets = 12h buckets', () => { + const interval = calcAutoIntervalNear(1000, Number(moment.duration(1, 'year'))); + expect(interval.asHours()).toBe(12); + }); + + test('1y/10000 buckets = 1h buckets', () => { + const interval = calcAutoIntervalNear(10000, Number(moment.duration(1, 'year'))); + expect(interval.asHours()).toBe(1); + }); + + test('1y/100000 buckets = 5m buckets', () => { + const interval = calcAutoIntervalNear(100000, Number(moment.duration(1, 'year'))); + expect(interval.asMinutes()).toBe(5); + }); +}); + +describe('calcAutoIntervalLessThan', () => { + test('1h/0 buckets = 0ms buckets', () => { + const interval = calcAutoIntervalLessThan(0, Number(moment.duration(1, 'h'))); + expect(interval.asMilliseconds()).toBe(0); + }); + + test('undefined/100 buckets = 0ms buckets', () => { + const interval = calcAutoIntervalLessThan(0, undefined as any); + expect(interval.asMilliseconds()).toBe(0); + }); + + test('1ms/100 buckets = 1ms buckets', () => { + const interval = calcAutoIntervalLessThan(100, Number(moment.duration(1, 'ms'))); + expect(interval.asMilliseconds()).toBe(1); + }); + + test('200ms/100 buckets = 2ms buckets', () => { + const interval = calcAutoIntervalLessThan(100, Number(moment.duration(200, 'ms'))); + expect(interval.asMilliseconds()).toBe(2); + }); + + test('1s/1000 buckets = 1ms buckets', () => { + const interval = calcAutoIntervalLessThan(1000, Number(moment.duration(1, 's'))); + expect(interval.asMilliseconds()).toBe(1); + }); + + test('1000h/1000 buckets = 1h buckets', () => { + const interval = calcAutoIntervalLessThan(1000, Number(moment.duration(1000, 'hours'))); + expect(interval.asHours()).toBe(1); + }); + + test('1h/100 buckets = 30s buckets', () => { + const interval = calcAutoIntervalLessThan(100, Number(moment.duration(1, 'hours'))); + expect(interval.asSeconds()).toBe(30); + }); + + test('1d/25 buckets = 30m buckets', () => { + const interval = calcAutoIntervalLessThan(25, Number(moment.duration(1, 'day'))); + expect(interval.asMinutes()).toBe(30); + }); + + test('1y/1000 buckets = 3h buckets', () => { + const interval = calcAutoIntervalLessThan(1000, Number(moment.duration(1, 'year'))); + expect(interval.asHours()).toBe(3); + }); + + test('1y/10000 buckets = 30m buckets', () => { + const interval = calcAutoIntervalLessThan(10000, Number(moment.duration(1, 'year'))); + expect(interval.asMinutes()).toBe(30); + }); + + test('1y/100000 buckets = 5m buckets', () => { + const interval = calcAutoIntervalLessThan(100000, Number(moment.duration(1, 'year'))); + expect(interval.asMinutes()).toBe(5); + }); +}); diff --git a/src/ui/public/time_buckets/calc_auto_interval.ts b/src/ui/public/time_buckets/calc_auto_interval.ts new file mode 100644 index 0000000000000..c3478772669c4 --- /dev/null +++ b/src/ui/public/time_buckets/calc_auto_interval.ts @@ -0,0 +1,145 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import moment from 'moment'; + +const boundsDescending = [ + { + bound: Infinity, + interval: Number(moment.duration(1, 'year')), + }, + { + bound: Number(moment.duration(1, 'year')), + interval: Number(moment.duration(1, 'month')), + }, + { + bound: Number(moment.duration(3, 'week')), + interval: Number(moment.duration(1, 'week')), + }, + { + bound: Number(moment.duration(1, 'week')), + interval: Number(moment.duration(1, 'd')), + }, + { + bound: Number(moment.duration(24, 'hour')), + interval: Number(moment.duration(12, 'hour')), + }, + { + bound: Number(moment.duration(6, 'hour')), + interval: Number(moment.duration(3, 'hour')), + }, + { + bound: Number(moment.duration(2, 'hour')), + interval: Number(moment.duration(1, 'hour')), + }, + { + bound: Number(moment.duration(45, 'minute')), + interval: Number(moment.duration(30, 'minute')), + }, + { + bound: Number(moment.duration(20, 'minute')), + interval: Number(moment.duration(10, 'minute')), + }, + { + bound: Number(moment.duration(9, 'minute')), + interval: Number(moment.duration(5, 'minute')), + }, + { + bound: Number(moment.duration(3, 'minute')), + interval: Number(moment.duration(1, 'minute')), + }, + { + bound: Number(moment.duration(45, 'second')), + interval: Number(moment.duration(30, 'second')), + }, + { + bound: Number(moment.duration(15, 'second')), + interval: Number(moment.duration(10, 'second')), + }, + { + bound: Number(moment.duration(7.5, 'second')), + interval: Number(moment.duration(5, 'second')), + }, + { + bound: Number(moment.duration(5, 'second')), + interval: Number(moment.duration(1, 'second')), + }, + { + bound: Number(moment.duration(500, 'ms')), + interval: Number(moment.duration(100, 'ms')), + }, +]; + +function getPerBucketMs(count: number, duration: number) { + const ms = duration / count; + return isFinite(ms) ? ms : NaN; +} + +function normalizeMinimumInterval(targetMs: number) { + const value = isNaN(targetMs) ? 0 : Math.max(Math.floor(targetMs), 1); + return moment.duration(value); +} + +/** + * Using some simple rules we pick a "pretty" interval that will + * produce around the number of buckets desired given a time range. + * + * @param targetBucketCount desired number of buckets + * @param duration time range the agg covers + */ +export function calcAutoIntervalNear(targetBucketCount: number, duration: number) { + const targetPerBucketMs = getPerBucketMs(targetBucketCount, duration); + + // Find the first bound which is smaller than our target. + const lowerBoundIndex = boundsDescending.findIndex(({ bound }) => { + const boundMs = Number(bound); + return boundMs <= targetPerBucketMs; + }); + + // The bound immediately preceeding that lower bound contains the + // interval most closely matching our target. + if (lowerBoundIndex !== -1) { + const nearestInterval = boundsDescending[lowerBoundIndex - 1].interval; + return moment.duration(nearestInterval); + } + + // If the target is smaller than any of our bounds, then we'll use it for the interval as-is. + return normalizeMinimumInterval(targetPerBucketMs); +} + +/** + * Pick a "pretty" interval that produces no more than the maxBucketCount + * for the given time range. + * + * @param maxBucketCount maximum number of buckets to create + * @param duration amount of time covered by the agg + */ +export function calcAutoIntervalLessThan(maxBucketCount: number, duration: number) { + const maxPerBucketMs = getPerBucketMs(maxBucketCount, duration); + + for (const { interval } of boundsDescending) { + // Find the highest interval which meets our per bucket limitation. + if (interval <= maxPerBucketMs) { + return moment.duration(interval); + } + } + + // If the max is smaller than any of our intervals, then we'll use it for the interval as-is. + return normalizeMinimumInterval(maxPerBucketMs); +} diff --git a/src/ui/public/time_buckets/calc_es_interval.js b/src/ui/public/time_buckets/calc_es_interval.js index 6b15e1fb1f540..ff591bcff0660 100644 --- a/src/ui/public/time_buckets/calc_es_interval.js +++ b/src/ui/public/time_buckets/calc_es_interval.js @@ -18,6 +18,7 @@ */ import dateMath from '@kbn/datemath'; +import { parseEsInterval } from 'ui/utils/parse_es_interval'; const unitsDesc = dateMath.unitsDesc; const largeMax = unitsDesc.indexOf('M'); @@ -30,7 +31,7 @@ const largeMax = unitsDesc.indexOf('M'); * @param {moment.duration} duration * @return {object} */ -export function calcEsInterval(duration) { +export function convertDurationToNormalizedEsInterval(duration) { for (let i = 0; i < unitsDesc.length; i++) { const unit = unitsDesc[i]; const val = duration.as(unit); @@ -59,3 +60,12 @@ export function calcEsInterval(duration) { expression: ms + 'ms' }; } + +export function convertIntervalToEsInterval(interval) { + const { value, unit } = parseEsInterval(interval); + return { + value, + unit, + expression: interval, + }; +} diff --git a/src/ui/public/time_buckets/time_buckets.js b/src/ui/public/time_buckets/time_buckets.js index b49a6651c3afe..a828b856b1dbd 100644 --- a/src/ui/public/time_buckets/time_buckets.js +++ b/src/ui/public/time_buckets/time_buckets.js @@ -21,8 +21,11 @@ import _ from 'lodash'; import moment from 'moment'; import chrome from '../chrome'; import { parseInterval } from '../utils/parse_interval'; -import { calcAutoInterval } from './calc_auto_interval'; -import { calcEsInterval } from './calc_es_interval'; +import { calcAutoIntervalLessThan, calcAutoIntervalNear } from './calc_auto_interval'; +import { + convertDurationToNormalizedEsInterval, + convertIntervalToEsInterval, +} from './calc_es_interval'; import { fieldFormats } from '../registry/field_formats'; const config = chrome.getUiSettingsClient(); @@ -152,6 +155,10 @@ TimeBuckets.prototype.getDuration = function () { * @param {object|string|moment.duration} input - see desc */ TimeBuckets.prototype.setInterval = function (input) { + // Preserve the original units because they're lost when the interval is converted to a + // moment duration object. + this.originalInterval = input; + let interval = input; // selection object -> val @@ -215,16 +222,22 @@ TimeBuckets.prototype.setInterval = function (input) { * * @return {[type]} [description] */ -TimeBuckets.prototype.getInterval = function () { +TimeBuckets.prototype.getInterval = function (useNormalizedEsInterval = true) { const self = this; const duration = self.getDuration(); - return decorateInterval(maybeScaleInterval(readInterval())); + const parsedInterval = readInterval(); + + if(useNormalizedEsInterval) { + return decorateInterval(maybeScaleInterval(parsedInterval)); + } else { + return decorateInterval(parsedInterval); + } // either pull the interval from state or calculate the auto-interval function readInterval() { const interval = self._i; if (moment.isDuration(interval)) return interval; - return calcAutoInterval.near(config.get('histogram:barTarget'), duration); + return calcAutoIntervalNear(config.get('histogram:barTarget'), Number(duration)); } // check to see if the interval should be scaled, and scale it if so @@ -236,7 +249,7 @@ TimeBuckets.prototype.getInterval = function () { let scaled; if (approxLen > maxLength) { - scaled = calcAutoInterval.lessThan(maxLength, duration); + scaled = calcAutoIntervalLessThan(maxLength, Number(duration)); } else { return interval; } @@ -253,7 +266,9 @@ TimeBuckets.prototype.getInterval = function () { // append some TimeBuckets specific props to the interval function decorateInterval(interval) { - const esInterval = calcEsInterval(interval); + const esInterval = useNormalizedEsInterval + ? convertDurationToNormalizedEsInterval(interval) + : convertIntervalToEsInterval(self.originalInterval); interval.esValue = esInterval.value; interval.esUnit = esInterval.unit; interval.expression = esInterval.expression; @@ -341,12 +356,12 @@ TimeBuckets.__cached__ = function (self) { function cachedGetter(prop) { return { - value: function cachedGetter() { + value: function cachedGetter(...rest) { if (cache.hasOwnProperty(prop)) { return cache[prop]; } - return cache[prop] = self[prop](); + return cache[prop] = self[prop](...rest); } }; } diff --git a/src/ui/public/timefilter/timefilter.test.js b/src/ui/public/timefilter/timefilter.test.js index a7b3cb38d1239..7071a6c7f7a70 100644 --- a/src/ui/public/timefilter/timefilter.test.js +++ b/src/ui/public/timefilter/timefilter.test.js @@ -19,10 +19,11 @@ jest.mock('ui/chrome', () => ({ + getBasePath: () => `/some/base/path`, getUiSettingsClient: () => { return { get: (key) => { - switch(key) { + switch (key) { case 'timepicker:timeDefaults': return { from: 'now-15m', to: 'now', mode: 'quick' }; case 'timepicker:refreshIntervalDefaults': @@ -107,7 +108,7 @@ describe('setRefreshInterval', () => { let update; let fetch; - beforeEach(() => { + beforeEach(() => { update = sinon.spy(); fetch = sinon.spy(); timefilter.setRefreshInterval({ @@ -191,7 +192,7 @@ describe('setRefreshInterval', () => { describe('isTimeRangeSelectorEnabled', () => { let update; - beforeEach(() => { + beforeEach(() => { update = sinon.spy(); timefilter.on('enabledUpdated', update); }); @@ -212,7 +213,7 @@ describe('isTimeRangeSelectorEnabled', () => { describe('isAutoRefreshSelectorEnabled', () => { let update; - beforeEach(() => { + beforeEach(() => { update = sinon.spy(); timefilter.on('enabledUpdated', update); }); diff --git a/src/ui/public/typeahead/__tests__/typeahead.js b/src/ui/public/typeahead/__tests__/typeahead.js deleted file mode 100644 index 3b9e49aa077e7..0000000000000 --- a/src/ui/public/typeahead/__tests__/typeahead.js +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import expect from 'expect.js'; -import sinon from 'sinon'; -import ngMock from 'ng_mock'; -import '../typeahead'; -import { comboBoxKeyCodes } from '@elastic/eui'; -const { UP, DOWN, ENTER, TAB, ESCAPE } = comboBoxKeyCodes; - -describe('Typeahead directive', function () { - let $compile; - let scope; - let element; - - beforeEach(ngMock.module('kibana')); - - beforeEach(ngMock.inject(function (_$compile_, _$rootScope_) { - $compile = _$compile_; - scope = _$rootScope_.$new(); - const html = ` - - - - `; - element = $compile(html)(scope); - scope.items = ['foo', 'bar', 'baz']; - scope.onSelect = sinon.spy(); - scope.$digest(); - })); - - describe('before focus', function () { - it('should be hidden', function () { - scope.$digest(); - expect(element.find('.typeahead-popover').hasClass('ng-hide')).to.be(true); - }); - }); - - describe('after focus', function () { - beforeEach(function () { - element.find('input').triggerHandler('focus'); - scope.$digest(); - }); - - it('should still be hidden', function () { - expect(element.find('.typeahead-popover').hasClass('ng-hide')).to.be(true); - }); - - it('should show when a key is pressed unless there are no items', function () { - element.find('.typeahead').triggerHandler({ - type: 'keypress', - keyCode: 'A'.charCodeAt(0) - }); - - scope.$digest(); - - expect(element.find('.typeahead-popover').hasClass('ng-hide')).to.be(false); - - scope.items = []; - scope.$digest(); - - expect(element.find('.typeahead-popover').hasClass('ng-hide')).to.be(true); - }); - - it('should hide when escape is pressed', function () { - element.find('.typeahead').triggerHandler({ - type: 'keydown', - keyCode: ESCAPE - }); - - scope.$digest(); - - expect(element.find('.typeahead-popover').hasClass('ng-hide')).to.be(true); - }); - - it('should select the next option on arrow down', function () { - let expectedActiveIndex = -1; - for (let i = 0; i < scope.items.length + 1; i++) { - expectedActiveIndex++; - if (expectedActiveIndex > scope.items.length - 1) expectedActiveIndex = 0; - - element.find('.typeahead').triggerHandler({ - type: 'keydown', - keyCode: DOWN - }); - - scope.$digest(); - - expect(element.find('.typeahead-item.active').length).to.be(1); - expect(element.find('.typeahead-item').eq(expectedActiveIndex).hasClass('active')).to.be(true); - } - }); - - it('should select the previous option on arrow up', function () { - let expectedActiveIndex = scope.items.length; - for (let i = 0; i < scope.items.length + 1; i++) { - expectedActiveIndex--; - if (expectedActiveIndex < 0) expectedActiveIndex = scope.items.length - 1; - - element.find('.typeahead').triggerHandler({ - type: 'keydown', - keyCode: UP - }); - - scope.$digest(); - - expect(element.find('.typeahead-item.active').length).to.be(1); - expect(element.find('.typeahead-item').eq(expectedActiveIndex).hasClass('active')).to.be(true); - } - }); - - it('should fire the onSelect handler with the selected item on enter', function () { - const typeaheadEl = element.find('.typeahead'); - - typeaheadEl.triggerHandler({ - type: 'keydown', - keyCode: DOWN - }); - - typeaheadEl.triggerHandler({ - type: 'keydown', - keyCode: ENTER - }); - - scope.$digest(); - - sinon.assert.calledOnce(scope.onSelect); - sinon.assert.calledWith(scope.onSelect, scope.items[0]); - }); - - it('should fire the onSelect handler with the selected item on tab', function () { - const typeaheadEl = element.find('.typeahead'); - - typeaheadEl.triggerHandler({ - type: 'keydown', - keyCode: DOWN - }); - - typeaheadEl.triggerHandler({ - type: 'keydown', - keyCode: TAB - }); - - scope.$digest(); - - sinon.assert.calledOnce(scope.onSelect); - sinon.assert.calledWith(scope.onSelect, scope.items[0]); - }); - - it('should select the option on hover', function () { - const hoverIndex = 0; - element.find('.typeahead-item').eq(hoverIndex).triggerHandler('mouseenter'); - - scope.$digest(); - - expect(element.find('.typeahead-item.active').length).to.be(1); - expect(element.find('.typeahead-item').eq(hoverIndex).hasClass('active')).to.be(true); - }); - - it('should fire the onSelect handler with the selected item on click', function () { - const clickIndex = 1; - const clickEl = element.find('.typeahead-item').eq(clickIndex); - clickEl.triggerHandler('mouseenter'); - clickEl.triggerHandler('click'); - - scope.$digest(); - - sinon.assert.calledOnce(scope.onSelect); - sinon.assert.calledWith(scope.onSelect, scope.items[clickIndex]); - }); - - it('should update the list when the items change', function () { - scope.items = ['qux']; - scope.$digest(); - expect(expect(element.find('.typeahead-item').length).to.be(scope.items.length)); - }); - - it('should default to showing the item itself in the list', function () { - scope.items.forEach((item, i) => { - expect(element.find('kbn-typeahead-item').eq(i).html()).to.be(item); - }); - }); - - it('should use a custom template if specified to show the item in the list', function () { - scope.items = [{ - label: 'foo', - value: 1 - }]; - scope.itemTemplate = '
      {{item.label}}
      '; - scope.$digest(); - expect(element.find('.label').html()).to.be(scope.items[0].label); - }); - }); -}); diff --git a/src/ui/public/typeahead/index.js b/src/ui/public/typeahead/index.js deleted file mode 100644 index 2237c60b66ef1..0000000000000 --- a/src/ui/public/typeahead/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import './typeahead'; diff --git a/src/ui/public/typeahead/typeahead.html b/src/ui/public/typeahead/typeahead.html deleted file mode 100644 index 39b1fa2b802a5..0000000000000 --- a/src/ui/public/typeahead/typeahead.html +++ /dev/null @@ -1,40 +0,0 @@ -
      - -
      -
      -
      - - -
      -
      -
      -
      diff --git a/src/ui/public/typeahead/typeahead.js b/src/ui/public/typeahead/typeahead.js deleted file mode 100644 index e2f173fee35ff..0000000000000 --- a/src/ui/public/typeahead/typeahead.js +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import template from './typeahead.html'; -import { uiModules } from '../modules'; -import { comboBoxKeyCodes } from '@elastic/eui'; -import '../directives/scroll_bottom'; -import './typeahead.less'; -import './typeahead_input'; -import './typeahead_item'; - -const { UP, DOWN, ENTER, TAB, ESCAPE } = comboBoxKeyCodes; -const typeahead = uiModules.get('kibana/typeahead'); - -typeahead.directive('kbnTypeahead', function () { - return { - template, - transclude: true, - restrict: 'E', - scope: { - items: '=', - itemTemplate: '=', - onSelect: '&', - onFocusChange: '&' - }, - bindToController: true, - controllerAs: 'typeahead', - controller: function ($scope, $element) { - this.isHidden = true; - this.selectedIndex = null; - this.elementID = $element.attr('id'); - - this.submit = () => { - const item = this.items[this.selectedIndex]; - this.onSelect({ item }); - this.selectedIndex = null; - }; - - this.selectPrevious = () => { - if (this.selectedIndex !== null && this.selectedIndex > 0) { - this.selectedIndex--; - } else { - this.selectedIndex = this.items.length - 1; - } - this.scrollSelectedIntoView(); - }; - - this.selectNext = () => { - if (this.selectedIndex !== null && this.selectedIndex < this.items.length - 1) { - this.selectedIndex++; - } else { - this.selectedIndex = 0; - } - this.scrollSelectedIntoView(); - }; - - this.scrollSelectedIntoView = () => { - const parent = $element.find('.typeahead-items')[0]; - const child = $element.find('.typeahead-item').eq(this.selectedIndex)[0]; - parent.scrollTop = Math.min(parent.scrollTop, child.offsetTop); - parent.scrollTop = Math.max(parent.scrollTop, child.offsetTop + child.offsetHeight - parent.offsetHeight); - }; - - this.isVisible = () => { - // Blur fires before click. If we only checked isFocused, then click events would never fire. - const isFocusedOrMousedOver = this.isFocused || this.isMousedOver; - return !this.isHidden && this.items && this.items.length > 0 && isFocusedOrMousedOver; - }; - - this.resetLimit = () => { - this.limit = 50; - }; - - this.increaseLimit = () => { - this.limit += 50; - }; - - this.onKeyDown = (event) => { - const { keyCode } = event; - - if (keyCode === ESCAPE) this.isHidden = true; - - if ([TAB, ENTER].includes(keyCode) && !this.hidden && this.selectedIndex !== null) { - event.preventDefault(); - this.submit(); - } else if (keyCode === UP && this.items.length > 0) { - event.preventDefault(); - this.isHidden = false; - this.selectPrevious(); - } else if (keyCode === DOWN && this.items.length > 0) { - event.preventDefault(); - this.isHidden = false; - this.selectNext(); - } else { - this.selectedIndex = null; - } - }; - - this.onKeyPress = () => { - this.isHidden = false; - }; - - this.onItemClick = () => { - this.submit(); - $scope.$broadcast('focus'); - $scope.$evalAsync(() => this.isHidden = false); - }; - - this.onFocus = () => { - this.isFocused = true; - this.isHidden = true; - this.resetLimit(); - }; - - this.onBlur = () => { - this.isFocused = false; - }; - - this.onMouseEnter = () => { - this.isMousedOver = true; - }; - - this.onMouseLeave = () => { - this.isMousedOver = false; - }; - - $scope.$watch('typeahead.selectedIndex', (newIndex) => { - this.onFocusChange({ $focusedItemID: newIndex !== null ? `${this.elementID}-typeahead-item-${newIndex}` : '' }); - }); - } - }; -}); diff --git a/src/ui/public/typeahead/typeahead.less b/src/ui/public/typeahead/typeahead.less deleted file mode 100644 index 94bd5ca32b15e..0000000000000 --- a/src/ui/public/typeahead/typeahead.less +++ /dev/null @@ -1,55 +0,0 @@ -@import (reference) "~ui/styles/variables"; -@import (reference) "~ui/styles/mixins"; - -.typeahead { - position: relative; - - .typeahead-popover { - border: 1px solid; - border-color: @typeahead-item-border; - color: @typeahead-item-color; - background-color: @typeahead-item-bg; - position: absolute; - top: 32px; - z-index: @zindex-typeahead; - box-shadow: 0px 4px 8px rgba(0,0,0,.1); - width: 100%; - border-radius: 4px; - - .typeahead-items { - max-height: 500px; - overflow-y: auto; - } - - .typeahead-item { - height: 32px; - line-height: 32px; - white-space: nowrap; - font-size: 12px; - vertical-align: middle; - } - - .typeahead-item:last-child { - border-bottom: 0px; - border-radius: 0 0 4px 4px; - } - - .typeahead-item:first-child { - border-bottom: 0px; - border-radius: 4px 4px 0 0; - } - - .typeahead-item.active { - background-color: @globalColorLightestGray; - } - } -} - -.inline-form .typeahead.visible .input-group { - > :first-child { - .border-bottom-radius(0); - } - > :last-child { - .border-bottom-radius(0); - } -} diff --git a/src/ui/public/typeahead/typeahead_input.js b/src/ui/public/typeahead/typeahead_input.js deleted file mode 100644 index b273426af2c42..0000000000000 --- a/src/ui/public/typeahead/typeahead_input.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { uiModules } from '../modules'; -const typeahead = uiModules.get('kibana/typeahead'); - -typeahead.directive('kbnTypeaheadInput', function () { - return { - restrict: 'A', - require: '^kbnTypeahead', - link: function ($scope, $el, $attr, typeahead) { - // disable browser autocomplete - $el.attr('autocomplete', 'off'); - - $el.on('focus', () => { - // For some reason if we don't have the $evalAsync in here, then blur events happen outside the angular lifecycle - $scope.$evalAsync(() => typeahead.onFocus()); - }); - - $el.on('blur', () => { - $scope.$evalAsync(() => typeahead.onBlur()); - }); - - $scope.$on('focus', () => { - $el.focus(); - }); - - $scope.$on('$destroy', () => { - $el.off(); - }); - } - }; -}); diff --git a/src/ui/public/typeahead/typeahead_item.js b/src/ui/public/typeahead/typeahead_item.js deleted file mode 100644 index c613aa3b9bd38..0000000000000 --- a/src/ui/public/typeahead/typeahead_item.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { uiModules } from '../modules'; -const typeahead = uiModules.get('kibana/typeahead'); - -typeahead.directive('kbnTypeaheadItem', function ($compile) { - return { - restrict: 'E', - scope: { - item: '=', - template: '=' - }, - link: (scope, element) => { - element.html(scope.template || '{{item}}'); - $compile(element.contents())(scope); - } - }; -}); diff --git a/src/ui/public/utils/__tests__/brush_event.test.js b/src/ui/public/utils/__tests__/brush_event.test.js index 4f6c221b8650a..701586bad9255 100644 --- a/src/ui/public/utils/__tests__/brush_event.test.js +++ b/src/ui/public/utils/__tests__/brush_event.test.js @@ -19,10 +19,11 @@ jest.mock('ui/chrome', () => ({ + getBasePath: () => `/some/base/path`, getUiSettingsClient: () => { return { get: (key) => { - switch(key) { + switch (key) { case 'timepicker:timeDefaults': return { from: 'now-15m', to: 'now', mode: 'quick' }; case 'timepicker:refreshIntervalDefaults': diff --git a/src/ui/public/utils/__tests__/cidr_mask.js b/src/ui/public/utils/__tests__/cidr_mask.js deleted file mode 100644 index bd2bbea23860e..0000000000000 --- a/src/ui/public/utils/__tests__/cidr_mask.js +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import expect from 'expect.js'; -import { CidrMask } from '../cidr_mask'; - -describe('CidrMask', function () { - it('should throw errors with invalid CIDR masks', function () { - expect(function () { - new CidrMask(); - }).to.throwError(); - - expect(function () { - new CidrMask(''); - }).to.throwError(); - - expect(function () { - new CidrMask('hello, world'); - }).to.throwError(); - - expect(function () { - new CidrMask('0.0.0.0'); - }).to.throwError(); - - expect(function () { - new CidrMask('0.0.0.0/0'); - }).to.throwError(); - - expect(function () { - new CidrMask('0.0.0.0/33'); - }).to.throwError(); - - expect(function () { - new CidrMask('256.0.0.0/32'); - }).to.throwError(); - - expect(function () { - new CidrMask('0.0.0.0/32/32'); - }).to.throwError(); - - expect(function () { - new CidrMask('1.2.3/1'); - }).to.throwError(); - }); - - it('should correctly grab IP address and prefix length', function () { - let mask = new CidrMask('0.0.0.0/1'); - expect(mask.initialAddress.toString()).to.be('0.0.0.0'); - expect(mask.prefixLength).to.be(1); - - mask = new CidrMask('128.0.0.1/31'); - expect(mask.initialAddress.toString()).to.be('128.0.0.1'); - expect(mask.prefixLength).to.be(31); - }); - - it('should calculate a range of IP addresses', function () { - let mask = new CidrMask('0.0.0.0/1'); - let range = mask.getRange(); - expect(range.from.toString()).to.be('0.0.0.0'); - expect(range.to.toString()).to.be('127.255.255.255'); - - mask = new CidrMask('1.2.3.4/2'); - range = mask.getRange(); - expect(range.from.toString()).to.be('0.0.0.0'); - expect(range.to.toString()).to.be('63.255.255.255'); - - mask = new CidrMask('67.129.65.201/27'); - range = mask.getRange(); - expect(range.from.toString()).to.be('67.129.65.192'); - expect(range.to.toString()).to.be('67.129.65.223'); - }); - - it('toString()', function () { - let mask = new CidrMask('.../1'); - expect(mask.toString()).to.be('0.0.0.0/1'); - - mask = new CidrMask('128.0.0.1/31'); - expect(mask.toString()).to.be('128.0.0.1/31'); - }); -}); diff --git a/src/ui/public/utils/__tests__/cidr_mask.ts b/src/ui/public/utils/__tests__/cidr_mask.ts new file mode 100644 index 0000000000000..5375552d0ad05 --- /dev/null +++ b/src/ui/public/utils/__tests__/cidr_mask.ts @@ -0,0 +1,82 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +// @ts-ignore +import expect from 'expect.js'; +import { CidrMask } from '../cidr_mask'; + +describe('CidrMask', () => { + it('should throw errors with invalid CIDR masks', () => { + expect( + () => + // @ts-ignore + new CidrMask() + ).to.throwError(); + + expect(() => new CidrMask('')).to.throwError(); + + expect(() => new CidrMask('hello, world')).to.throwError(); + + expect(() => new CidrMask('0.0.0.0')).to.throwError(); + + expect(() => new CidrMask('0.0.0.0/0')).to.throwError(); + + expect(() => new CidrMask('0.0.0.0/33')).to.throwError(); + + expect(() => new CidrMask('256.0.0.0/32')).to.throwError(); + + expect(() => new CidrMask('0.0.0.0/32/32')).to.throwError(); + + expect(() => new CidrMask('1.2.3/1')).to.throwError(); + }); + + it('should correctly grab IP address and prefix length', () => { + let mask = new CidrMask('0.0.0.0/1'); + expect(mask.initialAddress.toString()).to.be('0.0.0.0'); + expect(mask.prefixLength).to.be(1); + + mask = new CidrMask('128.0.0.1/31'); + expect(mask.initialAddress.toString()).to.be('128.0.0.1'); + expect(mask.prefixLength).to.be(31); + }); + + it('should calculate a range of IP addresses', () => { + let mask = new CidrMask('0.0.0.0/1'); + let range = mask.getRange(); + expect(range.from.toString()).to.be('0.0.0.0'); + expect(range.to.toString()).to.be('127.255.255.255'); + + mask = new CidrMask('1.2.3.4/2'); + range = mask.getRange(); + expect(range.from.toString()).to.be('0.0.0.0'); + expect(range.to.toString()).to.be('63.255.255.255'); + + mask = new CidrMask('67.129.65.201/27'); + range = mask.getRange(); + expect(range.from.toString()).to.be('67.129.65.192'); + expect(range.to.toString()).to.be('67.129.65.223'); + }); + + it('toString()', () => { + let mask = new CidrMask('.../1'); + expect(mask.toString()).to.be('0.0.0.0/1'); + + mask = new CidrMask('128.0.0.1/31'); + expect(mask.toString()).to.be('128.0.0.1/31'); + }); +}); diff --git a/src/ui/public/utils/__tests__/ipv4_address.js b/src/ui/public/utils/__tests__/ipv4_address.js deleted file mode 100644 index 9fe29b5f70860..0000000000000 --- a/src/ui/public/utils/__tests__/ipv4_address.js +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import Ipv4Address from '../ipv4_address'; -import expect from 'expect.js'; - -describe('Ipv4Address', function () { - it('should throw errors with invalid IP addresses', function () { - expect(function () { - new Ipv4Address(); - }).to.throwError(); - - expect(function () { - new Ipv4Address(''); - }).to.throwError(); - - expect(function () { - new Ipv4Address('hello, world'); - }).to.throwError(); - - expect(function () { - new Ipv4Address('0.0.0'); - }).to.throwError(); - - expect(function () { - new Ipv4Address('256.0.0.0'); - }).to.throwError(); - - expect(function () { - new Ipv4Address('-1.0.0.0'); - }).to.throwError(); - - expect(function () { - new Ipv4Address(Number.MAX_SAFE_INTEGER); - }).to.throwError(); - }); - - it('should allow creation with an integer or string', function () { - expect(new Ipv4Address(2116932386).toString()).to.be(new Ipv4Address('126.45.211.34').toString()); - }); - - it('should correctly calculate the decimal representation of an IP address', function () { - let ipAddress = new Ipv4Address('0.0.0.0'); - expect(ipAddress.valueOf()).to.be(0); - - ipAddress = new Ipv4Address('0.0.0.1'); - expect(ipAddress.valueOf()).to.be(1); - - ipAddress = new Ipv4Address('126.45.211.34'); - expect(ipAddress.valueOf()).to.be(2116932386); - }); - - it('toString()', function () { - let ipAddress = new Ipv4Address('0.000.00000.1'); - expect(ipAddress.toString()).to.be('0.0.0.1'); - - ipAddress = new Ipv4Address('123.123.123.123'); - expect(ipAddress.toString()).to.be('123.123.123.123'); - }); -}); diff --git a/src/ui/public/utils/__tests__/ipv4_address.ts b/src/ui/public/utils/__tests__/ipv4_address.ts new file mode 100644 index 0000000000000..5e967da189e87 --- /dev/null +++ b/src/ui/public/utils/__tests__/ipv4_address.ts @@ -0,0 +1,65 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +// @ts-ignore +import expect from 'expect.js'; +import Ipv4Address from '../ipv4_address'; + +describe('Ipv4Address', () => { + it('should throw errors with invalid IP addresses', () => { + // @ts-ignore + expect(() => new Ipv4Address()).to.throwError(); + + expect(() => new Ipv4Address('')).to.throwError(); + + expect(() => new Ipv4Address('hello, world')).to.throwError(); + + expect(() => new Ipv4Address('0.0.0')).to.throwError(); + + expect(() => new Ipv4Address('256.0.0.0')).to.throwError(); + + expect(() => new Ipv4Address('-1.0.0.0')).to.throwError(); + + expect(() => new Ipv4Address(Number.MAX_SAFE_INTEGER)).to.throwError(); + }); + + it('should allow creation with an integer or string', () => { + expect(new Ipv4Address(2116932386).toString()).to.be( + new Ipv4Address('126.45.211.34').toString() + ); + }); + + it('should correctly calculate the decimal representation of an IP address', () => { + let ipAddress = new Ipv4Address('0.0.0.0'); + expect(ipAddress.valueOf()).to.be(0); + + ipAddress = new Ipv4Address('0.0.0.1'); + expect(ipAddress.valueOf()).to.be(1); + + ipAddress = new Ipv4Address('126.45.211.34'); + expect(ipAddress.valueOf()).to.be(2116932386); + }); + + it('toString()', () => { + let ipAddress = new Ipv4Address('0.000.00000.1'); + expect(ipAddress.toString()).to.be('0.0.0.1'); + + ipAddress = new Ipv4Address('123.123.123.123'); + expect(ipAddress.toString()).to.be('123.123.123.123'); + }); +}); diff --git a/src/ui/public/utils/base_object.js b/src/ui/public/utils/base_object.js deleted file mode 100644 index 1964caaeedd91..0000000000000 --- a/src/ui/public/utils/base_object.js +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import _ from 'lodash'; -import rison from 'rison-node'; -import angular from 'angular'; - -export function BaseObject(attributes) { - // Set the attributes or default to an empty object - _.assign(this, attributes); -} - -/** - * Returns the attributes for the object - * @returns {object} - */ -BaseObject.prototype.toObject = function () { - // return just the data. - return _.omit(this, function (value, key) { - return key.charAt(0) === '$' || key.charAt(0) === '_' || _.isFunction(value); - }); -}; - -/** - * Serialize the model to RISON - * @returns {string} - */ -BaseObject.prototype.toRISON = function () { - // Use Angular to remove the private vars, and JSON.stringify to serialize - return rison.encode(JSON.parse(angular.toJson(this))); -}; - -/** - * Serialize the model to JSON - * @returns {object} - */ -BaseObject.prototype.toJSON = function () { - return this.toObject(); -}; diff --git a/src/ui/public/utils/base_object.ts b/src/ui/public/utils/base_object.ts new file mode 100644 index 0000000000000..63c7ebf6de5bb --- /dev/null +++ b/src/ui/public/utils/base_object.ts @@ -0,0 +1,47 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import angular from 'angular'; +import _ from 'lodash'; +// @ts-ignore -- awaiting https://github.com/w33ble/rison-node/issues/1 +import rison from 'rison-node'; + +export class BaseObject { + // Set the attributes or default to an empty object + constructor(attributes: Record = {}) { + // Set the attributes or default to an empty object + _.assign(this, attributes); + } + + public toObject() { + // return just the data. + return _.omit(this, (value: any, key: string) => { + return key.charAt(0) === '$' || key.charAt(0) === '_' || _.isFunction(value); + }); + } + + public toRISON() { + // Use Angular to remove the private vars, and JSON.stringify to serialize + return rison.encode(JSON.parse(angular.toJson(this))); + } + + public toJSON() { + return this.toObject(); + } +} diff --git a/src/ui/public/utils/cidr_mask.js b/src/ui/public/utils/cidr_mask.js deleted file mode 100644 index 24408e0fc85fc..0000000000000 --- a/src/ui/public/utils/cidr_mask.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import Ipv4Address from './ipv4_address'; -const NUM_BITS = 32; - -function throwError(mask) { - throw Error('Invalid CIDR mask: ' + mask); -} - -export function CidrMask(mask) { - const splits = mask.split('\/'); - if (splits.length !== 2) throwError(mask); - this.initialAddress = new Ipv4Address(splits[0]); - this.prefixLength = Number(splits[1]); - if (this.prefixLength < 1 || this.prefixLength > NUM_BITS) throwError(mask); -} - -CidrMask.prototype.getRange = function () { - const variableBits = NUM_BITS - this.prefixLength; - const fromAddress = this.initialAddress.valueOf() >> variableBits << variableBits >>> 0; // >>> 0 coerces to unsigned - const numAddresses = Math.pow(2, variableBits); - return { - from: new Ipv4Address(fromAddress).toString(), - to: new Ipv4Address(fromAddress + numAddresses - 1).toString() - }; -}; - -CidrMask.prototype.toString = function () { - return this.initialAddress.toString() + '/' + this.prefixLength; -}; - diff --git a/src/ui/public/utils/cidr_mask.ts b/src/ui/public/utils/cidr_mask.ts new file mode 100644 index 0000000000000..531b5ae5412be --- /dev/null +++ b/src/ui/public/utils/cidr_mask.ts @@ -0,0 +1,57 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import Ipv4Address from './ipv4_address'; +const NUM_BITS = 32; + +function throwError(mask: string) { + throw Error('Invalid CIDR mask: ' + mask); +} + +export class CidrMask { + public readonly initialAddress: Ipv4Address; + public readonly prefixLength: number; + + constructor(mask: string) { + const splits = mask.split('/'); + if (splits.length !== 2) { + throwError(mask); + } + this.initialAddress = new Ipv4Address(splits[0]); + this.prefixLength = Number(splits[1]); + if (this.prefixLength < 1 || this.prefixLength > NUM_BITS) { + throwError(mask); + } + } + + public getRange() { + const variableBits = NUM_BITS - this.prefixLength; + // tslint:disable-next-line:no-bitwise + const fromAddress = ((this.initialAddress.valueOf() >> variableBits) << variableBits) >>> 0; // >>> 0 coerces to unsigned + const numAddresses = Math.pow(2, variableBits); + return { + from: new Ipv4Address(fromAddress).toString(), + to: new Ipv4Address(fromAddress + numAddresses - 1).toString(), + }; + } + + public toString() { + return this.initialAddress.toString() + '/' + this.prefixLength; + } +} diff --git a/src/ui/public/utils/collection.js b/src/ui/public/utils/collection.js deleted file mode 100644 index c3fda1648001d..0000000000000 --- a/src/ui/public/utils/collection.js +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import _ from 'lodash'; - -/** - * move an obj either up or down in the collection by - * injecting it either before/after the prev/next obj that - * satisfied the qualifier - * - * or, just from one index to another... - * - * @param {array} objs - the list to move the object within - * @param {number|any} obj - the object that should be moved, or the index that the object is currently at - * @param {number|boolean} below - the index to move the object to, or whether it should be moved up or down - * @param {function} qualifier - a lodash-y callback, object = _.where, string = _.pluck - * @return {array} - the objs argument - */ -export function move(objs, obj, below, qualifier) { - const origI = _.isNumber(obj) ? obj : objs.indexOf(obj); - if (origI === -1) return objs; - - if (_.isNumber(below)) { - // move to a specific index - objs.splice(below, 0, objs.splice(origI, 1)[0]); - return objs; - } - - below = !!below; - qualifier = _.callback(qualifier); - - const above = !below; - const finder = below ? _.findIndex : _.findLastIndex; - - // find the index of the next/previous obj that meets the qualifications - const targetI = finder(objs, function (otherAgg, otherI) { - if (below && otherI <= origI) return; - if (above && otherI >= origI) return; - return !!qualifier(otherAgg, otherI); - }); - - if (targetI === -1) return objs; - - // place the obj at it's new index - objs.splice(targetI, 0, objs.splice(origI, 1)[0]); -} - -/** - * Like _.groupBy, but allows specifying multiple groups for a - * single object. - * - * organizeBy([{ a: [1, 2, 3] }, { b: true, a: [1, 4] }], 'a') - * // Object {1: Array[2], 2: Array[1], 3: Array[1], 4: Array[1]} - * - * _.groupBy([{ a: [1, 2, 3] }, { b: true, a: [1, 4] }], 'a') - * // Object {'1,2,3': Array[1], '1,4': Array[1]} - * - * @param {array} collection - the list of values to organize - * @param {Function} callback - either a property name, or a callback. - * @return {object} - */ -export function organizeBy(collection, callback) { - const buckets = {}; - const prop = typeof callback === 'function' ? false : callback; - - function add(key, obj) { - if (!buckets[key]) buckets[key] = []; - buckets[key].push(obj); - } - - _.each(collection, function (obj) { - const keys = prop === false ? callback(obj) : obj[prop]; - - if (!Array.isArray(keys)) { - add(keys, obj); - return; - } - - let length = keys.length; - while (length-- > 0) { - add(keys[length], obj); - } - }); - - return buckets; -} - -/** - * Efficient and safe version of [].push(dest, source); - * - * @param {Array} source - the array to pull values from - * @param {Array} dest - the array to push values into - * @return {Array} dest - */ -export function pushAll(source, dest) { - const start = dest.length; - const adding = source.length; - - // allocate - http://goo.gl/e2i0S0 - dest.length = start + adding; - - // fill sparse positions - let i = -1; - while (++i < adding) dest[start + i] = source[i]; - - return dest; -} \ No newline at end of file diff --git a/src/ui/public/utils/collection.ts b/src/ui/public/utils/collection.ts new file mode 100644 index 0000000000000..61a7388575c93 --- /dev/null +++ b/src/ui/public/utils/collection.ts @@ -0,0 +1,141 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import _ from 'lodash'; + +/** + * move an obj either up or down in the collection by + * injecting it either before/after the prev/next obj that + * satisfied the qualifier + * + * or, just from one index to another... + * + * @param {array} objs - the list to move the object within + * @param {number|any} obj - the object that should be moved, or the index that the object is currently at + * @param {number|boolean} below - the index to move the object to, or whether it should be moved up or down + * @param {function} qualifier - a lodash-y callback, object = _.where, string = _.pluck + * @return {array} - the objs argument + */ +export function move( + objs: object[], + obj: object | number, + below: number | boolean, + qualifier: (object: object, index: number) => any +): object[] { + const origI = _.isNumber(obj) ? obj : objs.indexOf(obj); + if (origI === -1) { + return objs; + } + + if (_.isNumber(below)) { + // move to a specific index + objs.splice(below, 0, objs.splice(origI, 1)[0]); + return objs; + } + + below = !!below; + qualifier = _.callback(qualifier); + + const above = !below; + const finder = below ? _.findIndex : _.findLastIndex; + + // find the index of the next/previous obj that meets the qualifications + const targetI = finder(objs, (otherAgg, otherI) => { + if (below && otherI <= origI) { + return; + } + if (above && otherI >= origI) { + return; + } + return !!qualifier(otherAgg, otherI); + }); + + if (targetI === -1) { + return objs; + } + + // place the obj at it's new index + objs.splice(targetI, 0, objs.splice(origI, 1)[0]); + return objs; +} + +/** + * Like _.groupBy, but allows specifying multiple groups for a + * single object. + * + * organizeBy([{ a: [1, 2, 3] }, { b: true, a: [1, 4] }], 'a') + * // Object {1: Array[2], 2: Array[1], 3: Array[1], 4: Array[1]} + * + * _.groupBy([{ a: [1, 2, 3] }, { b: true, a: [1, 4] }], 'a') + * // Object {'1,2,3': Array[1], '1,4': Array[1]} + * + * @param {array} collection - the list of values to organize + * @param {Function} callback - either a property name, or a callback. + * @return {object} + */ +export function organizeBy(collection: object[], callback: (obj: object) => string | string) { + const buckets: { [key: string]: object[] } = {}; + const prop = typeof callback === 'function' ? false : callback; + + function add(key: string, obj: object) { + if (!buckets[key]) { + buckets[key] = []; + } + buckets[key].push(obj); + } + + _.each(collection, (obj: object) => { + const keys = prop === false ? callback(obj) : obj[prop]; + + if (!Array.isArray(keys)) { + add(keys, obj); + return; + } + + let length = keys.length; + while (length-- > 0) { + add(keys[length], obj); + } + }); + + return buckets; +} + +/** + * Efficient and safe version of [].push(dest, source); + * + * @param {Array} source - the array to pull values from + * @param {Array} dest - the array to push values into + * @return {Array} dest + */ +export function pushAll(source: any[], dest: any[]): any[] { + const start = dest.length; + const adding = source.length; + + // allocate - http://goo.gl/e2i0S0 + dest.length = start + adding; + + // fill sparse positions + let i = -1; + while (++i < adding) { + dest[start + i] = source[i]; + } + + return dest; +} diff --git a/src/ui/public/utils/find_by_param.js b/src/ui/public/utils/find_by_param.js deleted file mode 100644 index 403960fbcb43b..0000000000000 --- a/src/ui/public/utils/find_by_param.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import _ from 'lodash'; - -// given an object or array of objects, return the value of the passed param -// if the param is missing, return undefined -export function findByParam(values, param) { - if (Array.isArray(values)) { // point series chart - const index = _.findIndex(values, param); - if (index === -1) return; - return values[index][param]; - } - return values[param]; // pie chart -} diff --git a/src/ui/public/utils/find_by_param.ts b/src/ui/public/utils/find_by_param.ts new file mode 100644 index 0000000000000..de32fc955a8cd --- /dev/null +++ b/src/ui/public/utils/find_by_param.ts @@ -0,0 +1,38 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import _ from 'lodash'; + +interface AnyObject { + [key: string]: any; +} + +// given an object or array of objects, return the value of the passed param +// if the param is missing, return undefined +export function findByParam(values: AnyObject | AnyObject[], param: string) { + if (Array.isArray(values)) { + // point series chart + const index = _.findIndex(values, param); + if (index === -1) { + return; + } + return values[index][param]; + } + return values[param]; // pie chart +} diff --git a/src/ui/public/utils/ipv4_address.js b/src/ui/public/utils/ipv4_address.js deleted file mode 100644 index 950f3534758ec..0000000000000 --- a/src/ui/public/utils/ipv4_address.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -const NUM_BYTES = 4; -const BYTE_SIZE = 256; - -function throwError(ipAddress) { - throw Error('Invalid IPv4 address: ' + ipAddress); -} - -function isIntegerInRange(integer, min, max) { - return !isNaN(integer) - && integer >= min - && integer < max - && integer % 1 === 0; -} - -// eslint-disable-next-line @elastic/kibana-custom/no-default-export -export default function Ipv4Address(ipAddress) { - this.value = ipAddress; - - if (typeof ipAddress === 'string') { - this.value = 0; - - const bytes = ipAddress.split('.'); - if (bytes.length !== NUM_BYTES) throwError(ipAddress); - - for (let i = 0; i < bytes.length; i++) { - const byte = Number(bytes[i]); - if (!isIntegerInRange(byte, 0, BYTE_SIZE)) throwError(ipAddress); - this.value += Math.pow(BYTE_SIZE, NUM_BYTES - 1 - i) * byte; - } - } - - if (!isIntegerInRange(this.value, 0, Math.pow(BYTE_SIZE, NUM_BYTES))) throwError(ipAddress); -} - -Ipv4Address.prototype.toString = function () { - let value = this.value; - const bytes = []; - for (let i = 0; i < NUM_BYTES; i++) { - bytes.unshift(value % 256); - value = Math.floor(value / 256); - } - return bytes.join('.'); -}; - -Ipv4Address.prototype.valueOf = function () { - return this.value; -}; \ No newline at end of file diff --git a/src/ui/public/utils/ipv4_address.ts b/src/ui/public/utils/ipv4_address.ts new file mode 100644 index 0000000000000..b8bf3917c471d --- /dev/null +++ b/src/ui/public/utils/ipv4_address.ts @@ -0,0 +1,76 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +const NUM_BYTES = 4; +const BYTE_SIZE = 256; + +function throwError(ipAddress: string | number) { + throw Error('Invalid IPv4 address: ' + ipAddress); +} + +function isIntegerInRange(integer: number, min: number, max: number) { + return ( + !isNaN(integer as number) && integer >= min && integer < max && (integer as number) % 1 === 0 + ); +} + +// eslint-disable-next-line @elastic/kibana-custom/no-default-export +// tslint:disable:no-default-export +export default class Ipv4Address { + private value: number; + + constructor(ipAddress: string | number) { + if (typeof ipAddress === 'string') { + this.value = 0; + + const bytes = ipAddress.split('.'); + if (bytes.length !== NUM_BYTES) { + throwError(ipAddress); + } + + for (let i = 0; i < bytes.length; i++) { + const byte = Number(bytes[i]); + if (!isIntegerInRange(byte, 0, BYTE_SIZE)) { + throwError(ipAddress); + } + this.value += Math.pow(BYTE_SIZE, NUM_BYTES - 1 - i) * byte; + } + } else { + this.value = ipAddress; + } + + if (!isIntegerInRange(this.value, 0, Math.pow(BYTE_SIZE, NUM_BYTES))) { + throwError(ipAddress); + } + } + + public toString() { + let value = this.value; + const bytes = []; + for (let i = 0; i < NUM_BYTES; i++) { + bytes.unshift(value % 256); + value = Math.floor(value / 256); + } + return bytes.join('.'); + } + + public valueOf() { + return this.value; + } +} diff --git a/src/ui/public/utils/key_map.js b/src/ui/public/utils/key_map.js deleted file mode 100644 index 75c0c39adddce..0000000000000 --- a/src/ui/public/utils/key_map.js +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export const keyMap = { - 8: 'backspace', - 9: 'tab', - 13: 'enter', - 16: 'shift', - 17: 'ctrl', - 18: 'alt', - 19: 'pause', - 20: 'capsLock', - 27: 'escape', - 32: 'space', - 33: 'pageUp', - 34: 'pageDown', - 35: 'end', - 36: 'home', - 37: 'left', - 38: 'up', - 39: 'right', - 40: 'down', - 45: 'insert', - 46: 'delete', - 48: '0', - 49: '1', - 50: '2', - 51: '3', - 52: '4', - 53: '5', - 54: '6', - 55: '7', - 56: '8', - 57: '9', - 65: 'a', - 66: 'b', - 67: 'c', - 68: 'd', - 69: 'e', - 70: 'f', - 71: 'g', - 72: 'h', - 73: 'i', - 74: 'j', - 75: 'k', - 76: 'l', - 77: 'm', - 78: 'n', - 79: 'o', - 80: 'p', - 81: 'q', - 82: 'r', - 83: 's', - 84: 't', - 85: 'u', - 86: 'v', - 87: 'w', - 88: 'x', - 89: 'y', - 90: 'z', - 91: 'leftWindowKey', - 92: 'rightWindowKey', - 93: 'selectKey', - 96: '0', - 97: '1', - 98: '2', - 99: '3', - 100: '4', - 101: '5', - 102: '6', - 103: '7', - 104: '8', - 105: '9', - 106: 'multiply', - 107: 'add', - 109: 'subtract', - 110: 'period', - 111: 'divide', - 112: 'f1', - 113: 'f2', - 114: 'f3', - 115: 'f4', - 116: 'f5', - 117: 'f6', - 118: 'f7', - 119: 'f8', - 120: 'f9', - 121: 'f10', - 122: 'f11', - 123: 'f12', - 144: 'numLock', - 145: 'scrollLock', - 186: 'semiColon', - 187: 'equalSign', - 188: 'comma', - 189: 'dash', - 190: 'period', - 191: 'forwardSlash', - 192: 'graveAccent', - 219: 'openBracket', - 220: 'backSlash', - 221: 'closeBracket', - 222: 'singleQuote', - 224: 'meta' -}; diff --git a/src/ui/public/utils/key_map.ts b/src/ui/public/utils/key_map.ts new file mode 100644 index 0000000000000..aac3c6b2db3e0 --- /dev/null +++ b/src/ui/public/utils/key_map.ts @@ -0,0 +1,121 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export const keyMap: { [key: number]: string } = { + 8: 'backspace', + 9: 'tab', + 13: 'enter', + 16: 'shift', + 17: 'ctrl', + 18: 'alt', + 19: 'pause', + 20: 'capsLock', + 27: 'escape', + 32: 'space', + 33: 'pageUp', + 34: 'pageDown', + 35: 'end', + 36: 'home', + 37: 'left', + 38: 'up', + 39: 'right', + 40: 'down', + 45: 'insert', + 46: 'delete', + 48: '0', + 49: '1', + 50: '2', + 51: '3', + 52: '4', + 53: '5', + 54: '6', + 55: '7', + 56: '8', + 57: '9', + 65: 'a', + 66: 'b', + 67: 'c', + 68: 'd', + 69: 'e', + 70: 'f', + 71: 'g', + 72: 'h', + 73: 'i', + 74: 'j', + 75: 'k', + 76: 'l', + 77: 'm', + 78: 'n', + 79: 'o', + 80: 'p', + 81: 'q', + 82: 'r', + 83: 's', + 84: 't', + 85: 'u', + 86: 'v', + 87: 'w', + 88: 'x', + 89: 'y', + 90: 'z', + 91: 'leftWindowKey', + 92: 'rightWindowKey', + 93: 'selectKey', + 96: '0', + 97: '1', + 98: '2', + 99: '3', + 100: '4', + 101: '5', + 102: '6', + 103: '7', + 104: '8', + 105: '9', + 106: 'multiply', + 107: 'add', + 109: 'subtract', + 110: 'period', + 111: 'divide', + 112: 'f1', + 113: 'f2', + 114: 'f3', + 115: 'f4', + 116: 'f5', + 117: 'f6', + 118: 'f7', + 119: 'f8', + 120: 'f9', + 121: 'f10', + 122: 'f11', + 123: 'f12', + 144: 'numLock', + 145: 'scrollLock', + 186: 'semiColon', + 187: 'equalSign', + 188: 'comma', + 189: 'dash', + 190: 'period', + 191: 'forwardSlash', + 192: 'graveAccent', + 219: 'openBracket', + 220: 'backSlash', + 221: 'closeBracket', + 222: 'singleQuote', + 224: 'meta', +}; diff --git a/src/ui/public/utils/migrateLegacyQuery.js b/src/ui/public/utils/migrateLegacyQuery.js deleted file mode 100644 index 9d09a3159e0a2..0000000000000 --- a/src/ui/public/utils/migrateLegacyQuery.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { has } from 'lodash'; - -/** - * Creates a standardized query object from old queries that were either strings or pure ES query DSL - * - * @param query - a legacy query, what used to be stored in SearchSource's query property - * @return Object - */ -export function migrateLegacyQuery(query) { - - // Lucene was the only option before, so language-less queries are all lucene - if (!has(query, 'language')) { - return { query: query, language: 'lucene' }; - } - - return query; -} diff --git a/src/ui/public/utils/migrate_legacy_query.ts b/src/ui/public/utils/migrate_legacy_query.ts new file mode 100644 index 0000000000000..4beccb38b2b9d --- /dev/null +++ b/src/ui/public/utils/migrate_legacy_query.ts @@ -0,0 +1,35 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { has } from 'lodash'; + +/** + * Creates a standardized query object from old queries that were either strings or pure ES query DSL + * + * @param query - a legacy query, what used to be stored in SearchSource's query property + * @return Object + */ +export function migrateLegacyQuery(query: object): object { + // Lucene was the only option before, so language-less queries are all lucene + if (!has(query, 'language')) { + return { query, language: 'lucene' }; + } + + return query; +} diff --git a/src/ui/public/utils/numeric.js b/src/ui/public/utils/numeric.js deleted file mode 100644 index fefc72687f295..0000000000000 --- a/src/ui/public/utils/numeric.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import _ from 'lodash'; - -export function isNumeric(v) { - return !_.isNaN(v) && (typeof v === 'number' || (!Array.isArray(v) && !_.isNaN(parseFloat(v)))); -} diff --git a/src/ui/public/utils/numeric.ts b/src/ui/public/utils/numeric.ts new file mode 100644 index 0000000000000..1342498cf5dc3 --- /dev/null +++ b/src/ui/public/utils/numeric.ts @@ -0,0 +1,24 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import _ from 'lodash'; + +export function isNumeric(v: any): boolean { + return !_.isNaN(v) && (typeof v === 'number' || (!Array.isArray(v) && !_.isNaN(parseFloat(v)))); +} diff --git a/src/ui/public/utils/parse_es_interval.test.ts b/src/ui/public/utils/parse_es_interval.test.ts deleted file mode 100644 index 05b29a5fb69e7..0000000000000 --- a/src/ui/public/utils/parse_es_interval.test.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { parseEsInterval } from './parse_es_interval'; - -describe('parseEsInterval', () => { - it('should correctly parse an interval containing unit and single value', () => { - expect(parseEsInterval('1ms')).toEqual({ value: 1, unit: 'ms', type: 'fixed' }); - expect(parseEsInterval('1s')).toEqual({ value: 1, unit: 's', type: 'fixed' }); - expect(parseEsInterval('1m')).toEqual({ value: 1, unit: 'm', type: 'calendar' }); - expect(parseEsInterval('1h')).toEqual({ value: 1, unit: 'h', type: 'calendar' }); - expect(parseEsInterval('1d')).toEqual({ value: 1, unit: 'd', type: 'calendar' }); - expect(parseEsInterval('1w')).toEqual({ value: 1, unit: 'w', type: 'calendar' }); - expect(parseEsInterval('1M')).toEqual({ value: 1, unit: 'M', type: 'calendar' }); - expect(parseEsInterval('1y')).toEqual({ value: 1, unit: 'y', type: 'calendar' }); - }); - - it('should correctly parse an interval containing unit and multiple value', () => { - expect(parseEsInterval('250ms')).toEqual({ value: 250, unit: 'ms', type: 'fixed' }); - expect(parseEsInterval('90s')).toEqual({ value: 90, unit: 's', type: 'fixed' }); - expect(parseEsInterval('60m')).toEqual({ value: 60, unit: 'm', type: 'fixed' }); - expect(parseEsInterval('12h')).toEqual({ value: 12, unit: 'h', type: 'fixed' }); - expect(parseEsInterval('7d')).toEqual({ value: 7, unit: 'd', type: 'fixed' }); - }); - - it('should throw an error for intervals containing calendar unit and multiple value', () => { - expect(() => parseEsInterval('4w')).toThrowError(); - expect(() => parseEsInterval('12M')).toThrowError(); - expect(() => parseEsInterval('10y')).toThrowError(); - }); - - it('should throw an error for invalid interval formats', () => { - expect(() => parseEsInterval('1')).toThrowError(); - expect(() => parseEsInterval('h')).toThrowError(); - expect(() => parseEsInterval('0m')).toThrowError(); - expect(() => parseEsInterval('0.5h')).toThrowError(); - }); -}); diff --git a/src/ui/public/utils/parse_es_interval.ts b/src/ui/public/utils/parse_es_interval.ts deleted file mode 100644 index 984f7e278d4fb..0000000000000 --- a/src/ui/public/utils/parse_es_interval.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import dateMath from '@kbn/datemath'; - -const ES_INTERVAL_STRING_REGEX = new RegExp( - '^([1-9][0-9]*)\\s*(' + dateMath.units.join('|') + ')$' -); - -/** - * Extracts interval properties from an ES interval string. Disallows unrecognized interval formats - * and fractional values. Converts some intervals from "calendar" to "fixed" when the number of - * units is larger than 1, and throws an error for others. - * - * Conversion rules: - * - * | Interval | Single unit type | Multiple units type | - * | -------- | ---------------- | ------------------- | - * | ms | fixed | fixed | - * | s | fixed | fixed | - * | m | fixed | fixed | - * | h | calendar | fixed | - * | d | calendar | fixed | - * | w | calendar | N/A - disallowed | - * | M | calendar | N/A - disallowed | - * | y | calendar | N/A - disallowed | - * - */ -export function parseEsInterval(interval: string): { value: number; unit: string; type: string } { - const matches = String(interval) - .trim() - .match(ES_INTERVAL_STRING_REGEX); - - if (!matches) { - throw Error(`Invalid interval format: ${interval}`); - } - - const value = matches && parseFloat(matches[1]); - const unit = matches && matches[2]; - const type = unit && dateMath.unitsMap[unit].type; - - if (type === 'calendar' && value !== 1) { - throw Error(`Invalid calendar interval: ${interval}, value must be 1`); - } - - return { - value, - unit, - type: (type === 'mixed' && value === 1) || type === 'calendar' ? 'calendar' : 'fixed', - }; -} diff --git a/src/ui/public/utils/parse_es_interval/index.ts b/src/ui/public/utils/parse_es_interval/index.ts new file mode 100644 index 0000000000000..152037138072f --- /dev/null +++ b/src/ui/public/utils/parse_es_interval/index.ts @@ -0,0 +1,22 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export { parseEsInterval, ParsedInterval } from './parse_es_interval'; +export { InvalidEsCalendarIntervalError } from './invalid_es_calendar_interval_error'; +export { InvalidEsIntervalFormatError } from './invalid_es_interval_format_error'; diff --git a/src/ui/public/utils/parse_es_interval/invalid_es_calendar_interval_error.ts b/src/ui/public/utils/parse_es_interval/invalid_es_calendar_interval_error.ts new file mode 100644 index 0000000000000..cf4844944e5df --- /dev/null +++ b/src/ui/public/utils/parse_es_interval/invalid_es_calendar_interval_error.ts @@ -0,0 +1,52 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { Unit } from '@kbn/datemath'; +import { i18n } from '@kbn/i18n'; + +export class InvalidEsCalendarIntervalError extends Error { + constructor( + public readonly interval: string, + public readonly value: number, + public readonly unit: Unit, + public readonly type: string + ) { + super( + i18n.translate('common.ui.parseEsInterval.invalidEsCalendarIntervalErrorMessage', { + defaultMessage: 'Invalid calendar interval: {interval}, value must be 1', + values: { interval }, + }) + ); + + this.name = 'InvalidEsCalendarIntervalError'; + this.value = value; + this.unit = unit; + this.type = type; + + // captureStackTrace is only available in the V8 engine, so any browser using + // a different JS engine won't have access to this method. + if (Error.captureStackTrace) { + Error.captureStackTrace(this, InvalidEsCalendarIntervalError); + } + + // Babel doesn't support traditional `extends` syntax for built-in classes. + // https://babeljs.io/docs/en/caveats/#classes + Object.setPrototypeOf(this, InvalidEsCalendarIntervalError.prototype); + } +} diff --git a/src/ui/public/utils/parse_es_interval/invalid_es_interval_format_error.ts b/src/ui/public/utils/parse_es_interval/invalid_es_interval_format_error.ts new file mode 100644 index 0000000000000..ac6b85f447b29 --- /dev/null +++ b/src/ui/public/utils/parse_es_interval/invalid_es_interval_format_error.ts @@ -0,0 +1,43 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { i18n } from '@kbn/i18n'; + +export class InvalidEsIntervalFormatError extends Error { + constructor(public readonly interval: string) { + super( + i18n.translate('common.ui.parseEsInterval.invalidEsIntervalFormatErrorMessage', { + defaultMessage: 'Invalid interval format: {interval}', + values: { interval }, + }) + ); + + this.name = 'InvalidEsIntervalFormatError'; + + // captureStackTrace is only available in the V8 engine, so any browser using + // a different JS engine won't have access to this method. + if (Error.captureStackTrace) { + Error.captureStackTrace(this, InvalidEsIntervalFormatError); + } + + // Babel doesn't support traditional `extends` syntax for built-in classes. + // https://babeljs.io/docs/en/caveats/#classes + Object.setPrototypeOf(this, InvalidEsIntervalFormatError.prototype); + } +} diff --git a/src/ui/public/utils/parse_es_interval/parse_es_interval.test.ts b/src/ui/public/utils/parse_es_interval/parse_es_interval.test.ts new file mode 100644 index 0000000000000..c18ff4c7acead --- /dev/null +++ b/src/ui/public/utils/parse_es_interval/parse_es_interval.test.ts @@ -0,0 +1,69 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { InvalidEsCalendarIntervalError } from './invalid_es_calendar_interval_error'; +import { InvalidEsIntervalFormatError } from './invalid_es_interval_format_error'; +import { parseEsInterval } from './parse_es_interval'; + +describe('parseEsInterval', () => { + it('should correctly parse an interval containing unit and single value', () => { + expect(parseEsInterval('1ms')).toEqual({ value: 1, unit: 'ms', type: 'fixed' }); + expect(parseEsInterval('1s')).toEqual({ value: 1, unit: 's', type: 'fixed' }); + expect(parseEsInterval('1m')).toEqual({ value: 1, unit: 'm', type: 'calendar' }); + expect(parseEsInterval('1h')).toEqual({ value: 1, unit: 'h', type: 'calendar' }); + expect(parseEsInterval('1d')).toEqual({ value: 1, unit: 'd', type: 'calendar' }); + expect(parseEsInterval('1w')).toEqual({ value: 1, unit: 'w', type: 'calendar' }); + expect(parseEsInterval('1M')).toEqual({ value: 1, unit: 'M', type: 'calendar' }); + expect(parseEsInterval('1y')).toEqual({ value: 1, unit: 'y', type: 'calendar' }); + }); + + it('should correctly parse an interval containing unit and multiple value', () => { + expect(parseEsInterval('250ms')).toEqual({ value: 250, unit: 'ms', type: 'fixed' }); + expect(parseEsInterval('90s')).toEqual({ value: 90, unit: 's', type: 'fixed' }); + expect(parseEsInterval('60m')).toEqual({ value: 60, unit: 'm', type: 'fixed' }); + expect(parseEsInterval('12h')).toEqual({ value: 12, unit: 'h', type: 'fixed' }); + expect(parseEsInterval('7d')).toEqual({ value: 7, unit: 'd', type: 'fixed' }); + }); + + it('should throw a InvalidEsCalendarIntervalError for intervals containing calendar unit and multiple value', () => { + const intervals = ['4w', '12M', '10y']; + expect.assertions(intervals.length); + + intervals.forEach(interval => { + try { + parseEsInterval(interval); + } catch (error) { + expect(error instanceof InvalidEsCalendarIntervalError).toBe(true); + } + }); + }); + + it('should throw a InvalidEsIntervalFormatError for invalid interval formats', () => { + const intervals = ['1', 'h', '0m', '0.5h']; + expect.assertions(intervals.length); + + intervals.forEach(interval => { + try { + parseEsInterval(interval); + } catch (error) { + expect(error instanceof InvalidEsIntervalFormatError).toBe(true); + } + }); + }); +}); diff --git a/src/ui/public/utils/parse_es_interval/parse_es_interval.ts b/src/ui/public/utils/parse_es_interval/parse_es_interval.ts new file mode 100644 index 0000000000000..657ba5f93ac0b --- /dev/null +++ b/src/ui/public/utils/parse_es_interval/parse_es_interval.ts @@ -0,0 +1,75 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import dateMath, { Unit } from '@kbn/datemath'; + +import { InvalidEsCalendarIntervalError } from './invalid_es_calendar_interval_error'; +import { InvalidEsIntervalFormatError } from './invalid_es_interval_format_error'; + +const ES_INTERVAL_STRING_REGEX = new RegExp( + '^([1-9][0-9]*)\\s*(' + dateMath.units.join('|') + ')$' +); + +export type ParsedInterval = ReturnType; + +/** + * Extracts interval properties from an ES interval string. Disallows unrecognized interval formats + * and fractional values. Converts some intervals from "calendar" to "fixed" when the number of + * units is larger than 1, and throws an error for others. + * + * Conversion rules: + * + * | Interval | Single unit type | Multiple units type | + * | -------- | ---------------- | ------------------- | + * | ms | fixed | fixed | + * | s | fixed | fixed | + * | m | calendar | fixed | + * | h | calendar | fixed | + * | d | calendar | fixed | + * | w | calendar | N/A - disallowed | + * | M | calendar | N/A - disallowed | + * | y | calendar | N/A - disallowed | + * + */ +export function parseEsInterval(interval: string) { + const matches = String(interval) + .trim() + .match(ES_INTERVAL_STRING_REGEX); + + if (!matches) { + throw new InvalidEsIntervalFormatError(interval); + } + + const value = parseFloat(matches[1]); + const unit = matches[2] as Unit; + const type = dateMath.unitsMap[unit].type; + + if (type === 'calendar' && value !== 1) { + throw new InvalidEsCalendarIntervalError(interval, value, unit, type); + } + + return { + value, + unit, + type: + (type === 'mixed' && value === 1) || type === 'calendar' + ? ('calendar' as 'calendar') + : ('fixed' as 'fixed'), + }; +} diff --git a/src/ui/public/utils/sort_prefix_first.js b/src/ui/public/utils/sort_prefix_first.js deleted file mode 100644 index 4ed30fa21f393..0000000000000 --- a/src/ui/public/utils/sort_prefix_first.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { partition } from 'lodash'; - -export function sortPrefixFirst(array, prefix, property) { - if (!prefix) return array; - const lowerCasePrefix = ('' + prefix).toLowerCase(); - - const partitions = partition(array, entry => { - const value = ('' + (property ? entry[property] : entry)).toLowerCase(); - return value.startsWith(lowerCasePrefix); - }); - return [ ...partitions[0], ...partitions[1] ]; -} diff --git a/src/ui/public/utils/sort_prefix_first.ts b/src/ui/public/utils/sort_prefix_first.ts new file mode 100644 index 0000000000000..4d1a8d7f39866 --- /dev/null +++ b/src/ui/public/utils/sort_prefix_first.ts @@ -0,0 +1,33 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { partition } from 'lodash'; + +export function sortPrefixFirst(array: any[], prefix?: string | number, property?: string): any[] { + if (!prefix) { + return array; + } + const lowerCasePrefix = ('' + prefix).toLowerCase(); + + const partitions = partition(array, entry => { + const value = ('' + (property ? entry[property] : entry)).toLowerCase(); + return value.startsWith(lowerCasePrefix); + }); + return [...partitions[0], ...partitions[1]]; +} diff --git a/src/ui/public/utils/string_utils.js b/src/ui/public/utils/string_utils.js deleted file mode 100644 index 9d194b6e89bf1..0000000000000 --- a/src/ui/public/utils/string_utils.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export class StringUtils { - - /** - * Returns a version of the string with the first letter capitalized. - * @param str {string} - * @returns {string} - */ - static upperFirst(str) { - return str ? str.charAt(0).toUpperCase() + str.slice(1) : ''; - } -} diff --git a/src/ui/public/utils/string_utils.ts b/src/ui/public/utils/string_utils.ts new file mode 100644 index 0000000000000..22a57aeb07933 --- /dev/null +++ b/src/ui/public/utils/string_utils.ts @@ -0,0 +1,29 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export class StringUtils { + /** + * Returns a version of the string with the first letter capitalized. + * @param str {string} + * @returns {string} + */ + public static upperFirst(str: string): string { + return str ? str.charAt(0).toUpperCase() + str.slice(1) : ''; + } +} diff --git a/src/ui/public/utils/subscribe_with_scope.test.ts b/src/ui/public/utils/subscribe_with_scope.test.ts new file mode 100644 index 0000000000000..c65fa26d7fe17 --- /dev/null +++ b/src/ui/public/utils/subscribe_with_scope.test.ts @@ -0,0 +1,154 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +const mockFatalError = jest.fn(); +jest.mock('ui/notify/fatal_error', () => ({ + fatalError: mockFatalError, +})); + +import * as Rx from 'rxjs'; +import { subscribeWithScope } from './subscribe_with_scope'; + +let $rootScope: Scope; + +class Scope { + public $$phase?: string; + public $root = $rootScope; + public $apply = jest.fn((fn: () => void) => fn()); +} + +$rootScope = new Scope(); + +afterEach(() => { + jest.clearAllMocks(); +}); + +it('subscribes to the passed observable, returns subscription', () => { + const $scope = new Scope(); + + const unsubSpy = jest.fn(); + const subSpy = jest.fn(() => unsubSpy); + const observable = new Rx.Observable(subSpy); + + const subscription = subscribeWithScope($scope as any, observable); + expect(subSpy).toHaveBeenCalledTimes(1); + expect(unsubSpy).not.toHaveBeenCalled(); + + subscription.unsubscribe(); + + expect(subSpy).toHaveBeenCalledTimes(1); + expect(unsubSpy).toHaveBeenCalledTimes(1); +}); + +it('calls observer.next() if already in a digest cycle, wraps in $scope.$apply if not', () => { + const subject = new Rx.Subject(); + const nextSpy = jest.fn(); + const $scope = new Scope(); + + subscribeWithScope($scope as any, subject, { next: nextSpy }); + + subject.next(); + expect($scope.$apply).toHaveBeenCalledTimes(1); + expect(nextSpy).toHaveBeenCalledTimes(1); + + jest.clearAllMocks(); + + $rootScope.$$phase = '$digest'; + subject.next(); + expect($scope.$apply).not.toHaveBeenCalled(); + expect(nextSpy).toHaveBeenCalledTimes(1); +}); + +it('reports fatalError if observer.next() throws', () => { + const $scope = new Scope(); + subscribeWithScope($scope as any, Rx.of(undefined), { + next() { + throw new Error('foo bar'); + }, + }); + + expect(mockFatalError.mock.calls).toMatchInlineSnapshot(` +Array [ + Array [ + [Error: foo bar], + ], +] +`); +}); + +it('reports fatal error if observer.error is not defined and observable errors', () => { + const $scope = new Scope(); + const error = new Error('foo'); + error.stack = `${error.message}\n---stack trace ---`; + subscribeWithScope($scope as any, Rx.throwError(error)); + + expect(mockFatalError.mock.calls).toMatchInlineSnapshot(` +Array [ + Array [ + [Error: Uncaught error in subscribeWithScope(): foo +---stack trace ---], + ], +] +`); +}); + +it('reports fatal error if observer.error throws', () => { + const $scope = new Scope(); + subscribeWithScope($scope as any, Rx.throwError(new Error('foo')), { + error: () => { + throw new Error('foo'); + }, + }); + + expect(mockFatalError.mock.calls).toMatchInlineSnapshot(` +Array [ + Array [ + [Error: foo], + ], +] +`); +}); + +it('does not report fatal error if observer.error handles the error', () => { + const $scope = new Scope(); + subscribeWithScope($scope as any, Rx.throwError(new Error('foo')), { + error: () => { + // noop, swallow error + }, + }); + + expect(mockFatalError.mock.calls).toEqual([]); +}); + +it('reports fatal error if observer.complete throws', () => { + const $scope = new Scope(); + subscribeWithScope($scope as any, Rx.EMPTY, { + complete: () => { + throw new Error('foo'); + }, + }); + + expect(mockFatalError.mock.calls).toMatchInlineSnapshot(` +Array [ + Array [ + [Error: foo], + ], +] +`); +}); diff --git a/src/ui/public/utils/subscribe_with_scope.ts b/src/ui/public/utils/subscribe_with_scope.ts new file mode 100644 index 0000000000000..b179c07cbcd1b --- /dev/null +++ b/src/ui/public/utils/subscribe_with_scope.ts @@ -0,0 +1,76 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { IScope } from 'angular'; +import * as Rx from 'rxjs'; +import { fatalError } from 'ui/notify/fatal_error'; + +function callInDigest($scope: IScope, fn: (...args: T) => void, ...args: T) { + try { + // this is terrible, but necessary to synchronously deliver subscription values + // to angular scopes. This is required by some APIs, like the `config` service, + // and beneficial for root level directives where additional digest cycles make + // kibana sluggish to load. + // + // If you copy this code elsewhere you better have a good reason :) + if ($scope.$root.$$phase) { + fn(...args); + } else { + $scope.$apply(() => fn(...args)); + } + } catch (error) { + fatalError(error); + } +} + +/** + * Subscribe to an observable at a $scope, ensuring that the digest cycle + * is run for subscriber hooks and routing errors to fatalError if not handled. + */ +export function subscribeWithScope( + $scope: IScope, + observable: Rx.Observable, + observer?: Rx.PartialObserver +) { + return observable.subscribe({ + next(value) { + if (observer && observer.next) { + callInDigest($scope, observer.next, value); + } + }, + error(error) { + callInDigest($scope, () => { + if (observer && observer.error) { + observer.error(error); + } else { + throw new Error( + `Uncaught error in subscribeWithScope(): ${ + error ? error.stack || error.message : error + }` + ); + } + }); + }, + complete() { + if (observer && observer.complete) { + callInDigest($scope, observer.complete); + } + }, + }); +} diff --git a/src/ui/public/vis/__tests__/_vis.js b/src/ui/public/vis/__tests__/_vis.js index a5765b8b8fe94..f40e88ec99a7b 100644 --- a/src/ui/public/vis/__tests__/_vis.js +++ b/src/ui/public/vis/__tests__/_vis.js @@ -24,8 +24,6 @@ import expect from 'expect.js'; import { VisProvider } from '..'; import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern'; import { VisTypesRegistryProvider } from '../../registry/vis_types'; -import { DataAdapter, RequestAdapter } from '../../inspector/adapters'; -import { Inspector } from '../../inspector/inspector'; describe('Vis Class', function () { let indexPattern; @@ -118,145 +116,6 @@ describe('Vis Class', function () { }); }); - describe('inspector', () => { - - describe('hasInspector()', () => { - it('should forward to inspectors hasInspector', () => { - const vis = new Vis(indexPattern, state({ - inspectorAdapters: { - data: true, - requests: true, - } - })); - sinon.spy(Inspector, 'isAvailable'); - vis.hasInspector(); - expect(Inspector.isAvailable.calledOnce).to.be(true); - const adapters = Inspector.isAvailable.lastCall.args[0]; - expect(adapters.data).to.be.a(DataAdapter); - expect(adapters.requests).to.be.a(RequestAdapter); - }); - - it('should return hasInspectors result', () => { - const vis = new Vis(indexPattern, state({})); - const stub = sinon.stub(Inspector, 'isAvailable'); - stub.returns(true); - expect(vis.hasInspector()).to.be(true); - stub.returns(false); - expect(vis.hasInspector()).to.be(false); - }); - - afterEach(() => { - Inspector.isAvailable.restore(); - }); - }); - - describe('openInspector()', () => { - - beforeEach(() => { - sinon.stub(Inspector, 'open'); - }); - - it('should call openInspector with all attached inspectors', () => { - const Foodapter = class {}; - const vis = new Vis(indexPattern, state({ - inspectorAdapters: { - data: true, - custom: { - foo: Foodapter - } - } - })); - vis.openInspector(); - expect(Inspector.open.calledOnce).to.be(true); - const adapters = Inspector.open.lastCall.args[0]; - expect(adapters).to.be(vis.API.inspectorAdapters); - }); - - it('should pass the vis title to the openInspector call', () => { - const vis = new Vis(indexPattern, { ...state(), title: 'beautifulVis' }); - vis.openInspector(); - expect(Inspector.open.calledOnce).to.be(true); - const params = Inspector.open.lastCall.args[1]; - expect(params.title).to.be('beautifulVis'); - }); - - afterEach(() => { - Inspector.open.restore(); - }); - }); - - describe('inspectorAdapters', () => { - - it('should register none for none requestHandler', () => { - const vis = new Vis(indexPattern, state({ requestHandler: 'none' })); - expect(vis.API.inspectorAdapters).to.eql({}); - }); - - it('should attach data and request handler for courier', () => { - const vis = new Vis(indexPattern, state({ requestHandler: 'courier' })); - expect(vis.API.inspectorAdapters.data).to.be.a(DataAdapter); - expect(vis.API.inspectorAdapters.requests).to.be.a(RequestAdapter); - }); - - it('should allow enabling data adapter manually', () => { - const vis = new Vis(indexPattern, state({ - requestHandler: 'none', - inspectorAdapters: { - data: true, - } - })); - expect(vis.API.inspectorAdapters.data).to.be.a(DataAdapter); - }); - - it('should allow enabling requests adapter manually', () => { - const vis = new Vis(indexPattern, state({ - requestHandler: 'none', - inspectorAdapters: { - requests: true, - } - })); - expect(vis.API.inspectorAdapters.requests).to.be.a(RequestAdapter); - }); - - it('should allow adding custom inspector adapters via the custom key', () => { - const Foodapter = class {}; - const Bardapter = class {}; - const vis = new Vis(indexPattern, state({ - requestHandler: 'none', - inspectorAdapters: { - custom: { - foo: Foodapter, - bar: Bardapter, - } - } - })); - expect(vis.API.inspectorAdapters.foo).to.be.a(Foodapter); - expect(vis.API.inspectorAdapters.bar).to.be.a(Bardapter); - }); - - it('should not share adapter instances between vis instances', () => { - const Foodapter = class {}; - const visState = state({ - inspectorAdapters: { - data: true, - custom: { - foo: Foodapter - } - } - }); - const vis1 = new Vis(indexPattern, visState); - const vis2 = new Vis(indexPattern, visState); - expect(vis1.API.inspectorAdapters.foo).to.be.a(Foodapter); - expect(vis2.API.inspectorAdapters.foo).to.be.a(Foodapter); - expect(vis1.API.inspectorAdapters.foo).not.to.be(vis2.API.inspectorAdapters.foo); - expect(vis1.API.inspectorAdapters.data).to.be.a(DataAdapter); - expect(vis2.API.inspectorAdapters.data).to.be.a(DataAdapter); - expect(vis1.API.inspectorAdapters.data).not.to.be(vis2.API.inspectorAdapters.data); - }); - }); - - }); - describe('vis addFilter method', () => { let aggConfig; let data; diff --git a/src/ui/public/vis/_index.scss b/src/ui/public/vis/_index.scss index 92d0edf345f0b..df72751181ac7 100644 --- a/src/ui/public/vis/_index.scss +++ b/src/ui/public/vis/_index.scss @@ -1,2 +1,3 @@ @import './editors/components/index'; @import './editors/default/index'; +@import './map/index'; diff --git a/src/ui/public/vis/agg_config.js b/src/ui/public/vis/agg_config.js index 881a3457905a8..6832d3d694fdc 100644 --- a/src/ui/public/vis/agg_config.js +++ b/src/ui/public/vis/agg_config.js @@ -26,6 +26,7 @@ import _ from 'lodash'; import { fieldFormats } from '../registry/field_formats'; +import { i18n } from '@kbn/i18n'; class AggConfig { @@ -265,8 +266,11 @@ class AggConfig { } if (!this.type) return ''; - let pre = percentageMode ? 'Percentage of ' : ''; - return pre += this.type.makeLabel(this); + return percentageMode ? + i18n.translate('common.ui.vis.aggConfig.percentageOfLabel', { + defaultMessage: 'Percentage of {label}', + values: { label: this.type.makeLabel(this) }, + }) : `${this.type.makeLabel(this)}`; } getIndexPattern() { diff --git a/src/ui/public/vis/default_feedback_message.js b/src/ui/public/vis/default_feedback_message.js index 90e309b161b28..f840ba961b9c3 100644 --- a/src/ui/public/vis/default_feedback_message.js +++ b/src/ui/public/vis/default_feedback_message.js @@ -17,5 +17,11 @@ * under the License. */ -export const defaultFeedbackMessage = `Have feedback? Please create an issue in -GitHub.`; +import { i18n } from '@kbn/i18n'; + +export const defaultFeedbackMessage = i18n.translate('common.ui.vis.defaultFeedbackMessage', + { + defaultMessage: 'Have feedback? Please create an issue in {link}.', + values: { link: 'GitHub' } + } +); diff --git a/src/ui/public/vis/editors/default/_default.scss b/src/ui/public/vis/editors/default/_default.scss index 18015462121b5..b1de3b8343e21 100644 --- a/src/ui/public/vis/editors/default/_default.scss +++ b/src/ui/public/vis/editors/default/_default.scss @@ -77,23 +77,7 @@ */ .visEditor__resizer { - display: flex; - flex: 0 0 $vis-editor-resizer-width; - width: $vis-editor-resizer-width; - cursor: ew-resize; - background-color: $euiColorLightestShade; - align-items: center; - margin: 0; - user-select: none; - - &:hover { - background-color: tintOrShade($euiColorPrimary, 80%, 60%); - } - - &.active { - background-color: $euiColorPrimary; - color: $euiColorEmptyShade; - } + @include kibana-resizer($vis-editor-resizer-width); @include euiBreakpoint('xs', 's', 'm') { display: none; @@ -117,7 +101,8 @@ } .visualize { - @include flex-parent(); + display: flex; + flex-direction: column; flex: 1 1 100%; } diff --git a/src/ui/public/vis/editors/default/advanced_toggle.html b/src/ui/public/vis/editors/default/advanced_toggle.html index d5d7a7ea24057..cd4ca036906c5 100644 --- a/src/ui/public/vis/editors/default/advanced_toggle.html +++ b/src/ui/public/vis/editors/default/advanced_toggle.html @@ -1,6 +1,10 @@ diff --git a/src/ui/public/vis/editors/default/agg.html b/src/ui/public/vis/editors/default/agg.html index baba3554a9c3b..a303a19aeaab7 100644 --- a/src/ui/public/vis/editors/default/agg.html +++ b/src/ui/public/vis/editors/default/agg.html @@ -3,7 +3,7 @@
      diff --git a/src/ui/public/vis/editors/default/agg_group.html b/src/ui/public/vis/editors/default/agg_group.html index a1718f72b351e..69320f91105e5 100644 --- a/src/ui/public/vis/editors/default/agg_group.html +++ b/src/ui/public/vis/editors/default/agg_group.html @@ -1,6 +1,6 @@

      + + + { + if (bucket.sample && bucket.y > 0) { + history.replace({ + ...location, + search: fromQuery({ + ...toQuery(location.search), + transactionId: bucket.sample.transactionId, + traceId: bucket.sample.traceId + }) + }); + } + }} + formatX={timeFormatter} + formatYShort={this.formatYShort} + formatYLong={this.formatYLong} + verticalLineHover={(bucket: IChartPoint) => + bucket.y > 0 && !bucket.sample + } + backgroundHover={(bucket: IChartPoint) => + bucket.y > 0 && bucket.sample + } + tooltipHeader={(bucket: IChartPoint) => + `${timeFormatter(bucket.x0, { withUnit: false })} - ${timeFormatter( + bucket.x, + { withUnit: false } + )} ${unit}` + } + tooltipFooter={(bucket: IChartPoint) => + !bucket.sample && 'No sample available for this bucket' + } + /> +
      + ); + } +} + +function unitShort(type: string | undefined) { + return type === 'request' ? 'req.' : 'trans.'; +} + +function unitLong(type: string | undefined, count: number) { + const suffix = count > 1 ? 's' : ''; + + return type === 'request' ? `request${suffix}` : `transaction${suffix}`; +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Distribution/view.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Distribution/view.js deleted file mode 100644 index 3e01ddf7cfedb..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Distribution/view.js +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import d3 from 'd3'; -import Histogram from '../../../shared/charts/Histogram'; -import { toQuery, fromQuery, history } from '../../../../utils/url'; -import { HeaderSmall } from '../../../shared/UIComponents'; -import EmptyMessage from '../../../shared/EmptyMessage'; -import { getTimeFormatter, timeUnit } from '../../../../utils/formatters'; -import SamplingTooltip from './SamplingTooltip'; - -export function getFormattedBuckets(buckets, bucketSize) { - if (!buckets) { - return null; - } - - return buckets.map(({ sampled, count, key, transactionId }) => { - return { - sampled, - transactionId, - x0: key, - x: key + bucketSize, - y: count, - style: count > 0 && sampled ? { cursor: 'pointer' } : {} - }; - }); -} - -class Distribution extends Component { - formatYShort = t => { - return `${t} ${unitShort(this.props.urlParams.transactionType)}`; - }; - - formatYLong = t => { - return `${t} ${unitLong(this.props.urlParams.transactionType, t)}`; - }; - - render() { - const { location, distribution } = this.props; - - const buckets = getFormattedBuckets( - distribution.buckets, - distribution.bucketSize - ); - - const isEmpty = distribution.totalHits === 0; - const xMax = d3.max(buckets, d => d.x); - const timeFormatter = getTimeFormatter(xMax); - const unit = timeUnit(xMax); - - if (isEmpty) { - return ; - } - - const bucketIndex = buckets.findIndex( - bucket => bucket.transactionId === this.props.urlParams.transactionId - ); - - return ( -
      - - Response time distribution - - - { - if (bucket.sampled && bucket.y > 0) { - history.replace({ - ...location, - search: fromQuery({ - ...toQuery(location.search), - transactionId: bucket.transactionId - }) - }); - } - }} - formatX={timeFormatter} - formatYShort={this.formatYShort} - formatYLong={this.formatYLong} - verticalLineHover={bucket => bucket.y > 0 && !bucket.sampled} - backgroundHover={bucket => bucket.y > 0 && bucket.sampled} - tooltipHeader={bucket => - `${timeFormatter(bucket.x0, false)} - ${timeFormatter( - bucket.x, - false - )} ${unit}` - } - tooltipFooter={bucket => - !bucket.sampled && 'No sample available for this bucket' - } - /> -
      - ); - } -} - -function unitShort(type) { - return type === 'request' ? 'req.' : 'trans.'; -} - -function unitLong(type, count) { - const suffix = count > 1 ? 's' : ''; - - return type === 'request' ? `request${suffix}` : `transaction${suffix}`; -} - -Distribution.propTypes = { - urlParams: PropTypes.object.isRequired, - location: PropTypes.object.isRequired, - distribution: PropTypes.object -}; - -export default Distribution; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/ActionMenu.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/ActionMenu.tsx new file mode 100644 index 0000000000000..bce2ba669644a --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/ActionMenu.tsx @@ -0,0 +1,153 @@ +/* + * 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 { + EuiButton, + EuiContextMenuItem, + EuiContextMenuPanel, + EuiPopover +} from '@elastic/eui'; +import React from 'react'; +import { + PROCESSOR_EVENT, + TRACE_ID, + TRANSACTION_ID +} from 'x-pack/plugins/apm/common/constants'; +import { KibanaLink } from 'x-pack/plugins/apm/public/utils/url'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; + +function getDiscoverQuery(transactionId: string, traceId?: string) { + let query = `${PROCESSOR_EVENT}:"transaction" AND ${TRANSACTION_ID}:"${transactionId}"`; + if (traceId) { + query += ` AND ${TRACE_ID}:"${traceId}"`; + } + return { + _a: { + interval: 'auto', + query: { + language: 'lucene', + query + } + } + }; +} + +function getInfraMetricsQuery(transaction: Transaction) { + const plus5 = new Date(transaction['@timestamp']); + const minus5 = new Date(transaction['@timestamp']); + + plus5.setMinutes(plus5.getMinutes() + 5); + minus5.setMinutes(minus5.getMinutes() - 5); + + return { + from: minus5.getTime(), + to: plus5.getTime() + }; +} + +function ActionMenuButton({ onClick }: { onClick: () => void }) { + return ( + + Actions + + ); +} + +interface ActionMenuProps { + readonly transaction: Transaction; +} + +interface ActionMenuState { + readonly isOpen: boolean; +} + +export const DiscoverTransactionLink: React.SFC = ({ + transaction, + children +}) => { + const traceId = + transaction.version === 'v2' ? transaction.trace.id : undefined; + return ( + + ); +}; + +export class ActionMenu extends React.Component< + ActionMenuProps, + ActionMenuState +> { + public state = { + isOpen: false + }; + + public toggle = () => { + this.setState(state => ({ isOpen: !state.isOpen })); + }; + + public close = () => { + this.setState({ isOpen: false }); + }; + + public getInfraActions(transaction: Transaction) { + const { system } = transaction.context; + + if (!system || !system.hostname) { + return []; + } + + return [ + + + View host metrics (beta) + + , + + + View host logs (beta) + + + ]; + } + + public render() { + const { transaction } = this.props; + + const items = [ + + + View sample document + + , + ...this.getInfraActions(transaction) + ]; + + return ( + } + isOpen={this.state.isOpen} + closePopover={this.close} + anchorPosition="downRight" + panelPaddingSize="none" + > + + + ); + } +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/Span.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/Span.js deleted file mode 100644 index 1266e6eea0c46..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/Span.js +++ /dev/null @@ -1,164 +0,0 @@ -/* - * 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 React from 'react'; -import styled from 'styled-components'; -import { get } from 'lodash'; -import PropTypes from 'prop-types'; -import { toQuery, fromQuery, history } from '../../../../../utils/url'; -import SpanDetails from './SpanDetails'; -import Modal from '../../../../shared/Modal'; - -import { - unit, - units, - colors, - px, - fontFamilyCode, - fontSizes -} from '../../../../../style/variables'; -import { - SPAN_DURATION, - SPAN_START, - SPAN_ID, - SPAN_NAME -} from '../../../../../../common/constants'; - -const SpanBar = styled.div` - position: relative; - height: ${unit}px; -`; -const SpanLabel = styled.div` - white-space: nowrap; - position: relative; - direction: rtl; - text-align: left; - margin: ${px(units.quarter)} 0 0; - font-family: ${fontFamilyCode}; - font-size: ${fontSizes.small}; -`; - -const Container = styled.div` - position: relative; - display: block; - user-select: none; - padding: ${px(units.half)} ${props => px(props.timelineMargins.right)} - ${px(units.eighth)} ${props => px(props.timelineMargins.left)}; - border-top: 1px solid ${colors.gray4}; - background-color: ${props => (props.isSelected ? colors.gray5 : 'initial')}; - cursor: pointer; - &:hover { - background-color: ${colors.gray5}; - } -`; - -function getLocationPath(location) { - return location.href.split('?')[0]; -} - -class Span extends React.Component { - componentDidMount() { - this.locationPath = getLocationPath(window.location); - } - - onClose = () => { - // Hack: If the modal is open, and the user clicks the back button, the url changes, the modal will be destroyed, - // and the onClose handler will fire, causing it to change the url again. We want to avoid the url changing the second time. - // Therefore we - const currentLocationPath = getLocationPath(window.location); - const didNavigate = this.locationPath !== currentLocationPath; - if (!didNavigate) { - this.resetSpanId(); - } - }; - - resetSpanId = () => { - const { location } = this.props; - const { spanId, ...currentQuery } = toQuery(location.search); - - if (spanId === 'null') { - return; - } - - history.replace({ - ...location, - search: fromQuery({ - ...currentQuery, - spanId: null - }) - }); - }; - - render() { - const { - timelineMargins, - totalDuration, - span, - spanTypeLabel, - color, - isSelected, - transactionId, - location - } = this.props; - - const width = (get({ span }, SPAN_DURATION) / totalDuration) * 100; - const left = (get({ span }, SPAN_START) / totalDuration) * 100; - - const spanId = get({ span }, SPAN_ID); - const spanName = get({ span }, SPAN_NAME); - - return ( - { - history.replace({ - ...location, - search: fromQuery({ - ...toQuery(location.search), - spanId - }) - }); - }} - timelineMargins={timelineMargins} - isSelected={isSelected} - > - - - ‎ - {spanName} - ‎ - - - - - - - ); - } -} - -Span.propTypes = { - location: PropTypes.object.isRequired, - totalDuration: PropTypes.number.isRequired -}; - -export default Span; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/SpanDetails/index.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/SpanDetails/index.js deleted file mode 100644 index 3ef67277a68c7..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/SpanDetails/index.js +++ /dev/null @@ -1,205 +0,0 @@ -/* - * 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 React from 'react'; -import styled from 'styled-components'; -import numeral from '@elastic/numeral'; -import { get } from 'lodash'; -import PropTypes from 'prop-types'; -import Stacktrace from '../../../../../shared/Stacktrace'; -import DiscoverButton from '../../../../../shared/DiscoverButton'; -import { asMillis } from '../../../../../../utils/formatters'; -import { Indicator } from '../../../../../shared/charts/Legend'; -import { - SPAN_DURATION, - SPAN_NAME, - SERVICE_LANGUAGE_NAME -} from '../../../../../../../common/constants'; -import { - unit, - units, - px, - colors, - borderRadius, - fontFamilyCode, - fontSizes, - truncate -} from '../../../../../../style/variables'; -import TooltipOverlay, { - fieldNameHelper -} from '../../../../../shared/TooltipOverlay'; - -import SyntaxHighlighter, { - registerLanguage -} from 'react-syntax-highlighter/dist/light'; -import { xcode } from 'react-syntax-highlighter/dist/styles'; - -import sql from 'react-syntax-highlighter/dist/languages/sql'; -import { HeaderXSmall } from '../../../../../shared/UIComponents'; - -registerLanguage('sql', sql); - -const DetailsWrapper = styled.div` - display: flex; - justify-content: space-between; - align-items: flex-end; - border-bottom: 1px solid ${colors.gray4}; - padding: ${px(unit)} 0; - position: relative; -`; - -const DetailsElement = styled.div` - min-width: 0; - max-width: 50%; - line-height: 1.5; -`; - -const DetailsHeader = styled.div` - font-size: ${fontSizes.small}; - color: ${colors.gray3}; - - span { - cursor: help; - } -`; - -const DetailsText = styled.div` - font-size: ${fontSizes.large}; -`; - -const SpanName = styled.div` - ${truncate('100%')}; -`; - -const LegendIndicator = styled(Indicator)` - display: inline-block; -`; - -const StackTraceContainer = styled.div` - margin-top: ${px(unit)}; -`; - -const DatabaseStatement = styled.div` - margin-top: ${px(unit)}; - padding: ${px(units.half)} ${px(unit)}; - background: ${colors.yellow}; - border-radius: ${borderRadius}; - border: 1px solid ${colors.gray4}; - font-family: ${fontFamilyCode}; -`; - -function SpanDetails({ span, spanTypeLabel, spanTypeColor, totalDuration }) { - const spanDocId = get(span, 'docId'); - const spanDuration = get({ span }, SPAN_DURATION); - const relativeDuration = spanDuration / totalDuration; - const spanName = get({ span }, SPAN_NAME); - const stackframes = span.stacktrace; - const codeLanguage = get(span, SERVICE_LANGUAGE_NAME); - const dbContext = get(span, 'context.db'); - - const discoverQuery = { - _a: { - interval: 'auto', - query: { - language: 'lucene', - query: `_id:${spanDocId}` - }, - sort: { '@timestamp': 'desc' } - } - }; - - return ( -
      - - - - - Name - - - - - {spanName || 'N/A'} - - - - - - - Type - - - - - {spanTypeLabel} - - - - - - Duration - - - {asMillis(spanDuration)} - - - % of total time - {numeral(relativeDuration).format('0.00%')} - - - - {`View span in Discover`} - - - - - - - - - -
      - ); -} - -function DatabaseContext({ dbContext }) { - if (!dbContext || !dbContext.statement) { - return null; - } - - if (dbContext.type !== 'sql') { - return {dbContext.statement}; - } - - return ( -
      - DB Statement - - - {dbContext.statement} - - -
      - ); -} - -SpanDetails.propTypes = { - span: PropTypes.object.isRequired, - totalDuration: PropTypes.number.isRequired -}; - -export default SpanDetails; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/TimelineHeader.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/TimelineHeader.js deleted file mode 100644 index 4abea517a7a8f..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/TimelineHeader.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 React from 'react'; -import styled from 'styled-components'; -import Legend from '../../../../shared/charts/Legend'; -import { - fontSizes, - colors, - unit, - units, - px, - truncate -} from '../../../../../style/variables'; - -import TooltipOverlay from '../../../../shared/TooltipOverlay'; - -const TimelineHeaderContainer = styled.div` - display: flex; - justify-content: space-between; - padding: ${px(unit * 1.5)} ${px(units.plus)} 0 ${px(units.plus)}; - line-height: 1.5; -`; - -const Heading = styled.div` - font-size: ${fontSizes.large}; - color: ${colors.gray2}; - ${truncate('90%')}; -`; - -const Legends = styled.div` - display: flex; - - div { - margin-right: ${px(unit)}; - &:last-child { - margin-right: 0; - } - } -`; - -export default function TimelineHeader({ legends, transactionName }) { - return ( - - - {transactionName || 'N/A'} - - - {legends.map(({ color, label }) => ( - - ))} - - - ); -} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/index.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/index.js deleted file mode 100644 index 4ecae0f2067cb..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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 { connect } from 'react-redux'; -import Spans from './view'; -import { getUrlParams } from '../../../../../store/urlParams'; - -function mapStateToProps(state = {}) { - return { - urlParams: getUrlParams(state), - location: state.location - }; -} - -const mapDispatchToProps = {}; -export default connect( - mapStateToProps, - mapDispatchToProps -)(Spans); diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/view.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/view.js deleted file mode 100644 index 9d7d283043101..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/Spans/view.js +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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 React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; -import styled from 'styled-components'; -import { get, uniq, first, zipObject, difference, isEmpty } from 'lodash'; -import Span from './Span'; -import TimelineHeader from './TimelineHeader'; -import { SPAN_ID } from '../../../../../../common/constants'; -import { colors } from '../../../../../style/variables'; -import { StickyContainer } from 'react-sticky'; -import Timeline from '../../../../shared/charts/Timeline'; -import EmptyMessage from '../../../../shared/EmptyMessage'; -import { getFeatureDocs } from '../../../../../utils/documentation'; -import { ExternalLink } from '../../../../../utils/url'; -import { SpansRequest } from '../../../../../store/reactReduxRequest/spans'; - -const Container = styled.div` - transition: 0.1s padding ease; - position: relative; - overflow: hidden; -`; - -const DroppedSpansContainer = styled.div` - border-top: 1px solid #ddd; - height: 43px; - line-height: 43px; - text-align: center; - color: ${colors.gray2}; -`; - -const TIMELINE_HEADER_HEIGHT = 100; -const TIMELINE_MARGINS = { - top: TIMELINE_HEADER_HEIGHT, - left: 50, - right: 50, - bottom: 0 -}; - -class Spans extends PureComponent { - render() { - const { - agentName, - urlParams, - location, - droppedSpans, - agentMarks - } = this.props; - return ( - { - if (isEmpty(spans.data.spans)) { - return ( - - ); - } - - const spanTypes = uniq( - spans.data.spanTypes.map(({ type }) => getPrimaryType(type)) - ); - - const getSpanColor = getColorByType(spanTypes); - - const totalDuration = spans.data.duration; - const spanContainerHeight = 58; - const timelineHeight = spanContainerHeight * spans.data.spans.length; - - return ( -
      - - - ({ - label: getSpanLabel(type), - color: getSpanColor(type) - }))} - transactionName={urlParams.transactionName} - /> - } - agentMarks={agentMarks} - duration={totalDuration} - height={timelineHeight} - margins={TIMELINE_MARGINS} - /> -
      - {spans.data.spans.map(span => ( - - ))} -
      -
      -
      - - {droppedSpans > 0 && ( - - {droppedSpans} spans dropped due to limit of{' '} - {spans.data.spans.length}.{' '} - - - )} -
      - ); - }} - /> - ); - } -} - -function DroppedSpansDocsLink({ agentName }) { - const docs = getFeatureDocs('dropped-spans', agentName); - - if (!docs || !docs.url) { - return null; - } - - return ( - - Learn more in the documentation. - - ); -} - -function getColorByType(types) { - const assignedColors = { - app: colors.apmBlue, - cache: colors.apmGreen, - components: colors.apmGreen, - ext: colors.apmPurple, - xhr: colors.apmPurple, - template: colors.apmRed2, - resource: colors.apmRed2, - custom: colors.apmTan, - db: colors.apmOrange, - 'hard-navigation': colors.apmYellow - }; - - const unknownTypes = difference(types, Object.keys(assignedColors)); - const unassignedColors = zipObject(unknownTypes, [ - colors.apmYellow, - colors.apmRed, - colors.apmBrown, - colors.apmPink - ]); - - return type => assignedColors[type] || unassignedColors[type]; -} - -function getSpanLabel(type) { - switch (type) { - case 'db': - return 'DB'; - case 'hard-navigation': - return 'Navigation timing'; - default: - return type; - } -} - -function getPrimaryType(type) { - return first(type.split('.')); -} - -Spans.propTypes = { - agentMarks: PropTypes.array, - agentName: PropTypes.string.isRequired, - droppedSpans: PropTypes.number.isRequired, - location: PropTypes.object.isRequired, - urlParams: PropTypes.object.isRequired -}; - -export default Spans; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/StickyTransactionProperties.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/StickyTransactionProperties.js deleted file mode 100644 index 55cedaedec4f8..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/StickyTransactionProperties.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 React from 'react'; -import PropTypes from 'prop-types'; -import { get } from 'lodash'; -import { StickyProperties } from '../../../shared/StickyProperties'; -import { - TRANSACTION_DURATION, - TRANSACTION_RESULT, - USER_ID, - REQUEST_URL_FULL -} from '../../../../../common/constants'; -import { asTime } from '../../../../utils/formatters'; - -export default function StickyTransactionProperties({ transaction }) { - const timestamp = get(transaction, '@timestamp'); - const url = get(transaction, REQUEST_URL_FULL, 'N/A'); - const duration = get(transaction, TRANSACTION_DURATION); - const stickyProperties = [ - { - label: 'Timestamp', - fieldName: '@timestamp', - val: timestamp - }, - { - fieldName: REQUEST_URL_FULL, - label: 'URL', - val: url, - truncated: true - }, - { - label: 'Duration', - fieldName: TRANSACTION_DURATION, - val: duration ? asTime(duration) : 'N/A' - }, - { - label: 'Result', - fieldName: TRANSACTION_RESULT, - val: get(transaction, TRANSACTION_RESULT, 'N/A') - }, - { - label: 'User ID', - fieldName: USER_ID, - val: get(transaction, USER_ID, 'N/A') - } - ]; - - return ; -} - -StickyTransactionProperties.propTypes = { - transaction: PropTypes.object.isRequired -}; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/StickyTransactionProperties.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/StickyTransactionProperties.tsx new file mode 100644 index 0000000000000..a057c2eabc476 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/StickyTransactionProperties.tsx @@ -0,0 +1,77 @@ +/* + * 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 { get } from 'lodash'; +import React from 'react'; +import { + REQUEST_URL_FULL, + TRANSACTION_DURATION, + TRANSACTION_RESULT, + USER_ID +} from '../../../../../common/constants'; +import { Transaction } from '../../../../../typings/Transaction'; +import { asPercent, asTime } from '../../../../utils/formatters'; +// @ts-ignore +import { + IStickyProperty, + StickyProperties +} from '../../../shared/StickyProperties'; + +interface Props { + transaction: Transaction; + totalDuration?: number; +} + +export function StickyTransactionProperties({ + transaction, + totalDuration +}: Props) { + const timestamp = transaction['@timestamp']; + const url = get(transaction, REQUEST_URL_FULL, 'N/A'); + const duration = transaction.transaction.duration.us; + const stickyProperties: IStickyProperty[] = [ + { + label: 'Timestamp', + fieldName: '@timestamp', + val: timestamp, + truncated: true, + width: '50%' + }, + { + fieldName: REQUEST_URL_FULL, + label: 'URL', + val: url, + truncated: true, + width: '50%' + }, + { + label: 'Duration', + fieldName: TRANSACTION_DURATION, + val: asTime(duration), + width: '25%' + }, + { + label: '% of trace', + val: asPercent(duration, totalDuration, 'N/A'), + width: '25%' + }, + { + label: 'Result', + fieldName: TRANSACTION_RESULT, + val: get(transaction, TRANSACTION_RESULT, 'N/A'), + width: '25%' + }, + { + label: 'User ID', + fieldName: USER_ID, + val: get(transaction, USER_ID, 'N/A'), + truncated: true, + width: '25%' + } + ]; + + return ; +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/TransactionPropertiesTable.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/TransactionPropertiesTable.tsx new file mode 100644 index 0000000000000..db186e532aea3 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/TransactionPropertiesTable.tsx @@ -0,0 +1,107 @@ +/* + * 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 { + EuiSpacer, + // @ts-ignore + EuiTab, + // @ts-ignore + EuiTabs +} from '@elastic/eui'; +import { capitalize, first, get } from 'lodash'; +import React from 'react'; +import styled from 'styled-components'; +import { Transaction } from '../../../../../typings/Transaction'; +import { IUrlParams } from '../../../../store/urlParams'; +import { px, units } from '../../../../style/variables'; +import { fromQuery, history, toQuery } from '../../../../utils/url'; +import { + getPropertyTabNames, + PropertiesTable +} from '../../../shared/PropertiesTable'; +import { WaterfallContainer } from './WaterfallContainer'; +import { IWaterfall } from './WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers'; + +const TableContainer = styled.div` + padding: ${px(units.plus)} ${px(units.plus)} 0; +`; + +// Ensure the selected tab exists or use the first +function getCurrentTab(tabs: string[] = [], selectedTab?: string) { + return selectedTab && tabs.includes(selectedTab) ? selectedTab : first(tabs); +} + +const TIMELINE_TAB = 'timeline'; + +function getTabs(transactionData: Transaction) { + const dynamicProps = Object.keys(transactionData.context || {}); + return [TIMELINE_TAB, ...getPropertyTabNames(dynamicProps)]; +} + +interface TransactionPropertiesTableProps { + location: any; + transaction: Transaction; + urlParams: IUrlParams; + waterfall: IWaterfall; +} + +export function TransactionPropertiesTable({ + location, + transaction, + urlParams, + waterfall +}: TransactionPropertiesTableProps) { + const tabs = getTabs(transaction); + const currentTab = getCurrentTab(tabs, urlParams.detailTab); + const agentName = transaction.context.service.agent.name; + + return ( +
      + + {tabs.map(key => { + return ( + { + history.replace({ + ...location, + search: fromQuery({ + ...toQuery(location.search), + detailTab: key + }) + }); + }} + isSelected={currentTab === key} + key={key} + > + {capitalize(key)} + + ); + })} + + + + + {currentTab === TIMELINE_TAB && ( + + )} + + {currentTab !== TIMELINE_TAB && ( + + + + )} +
      + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/TransactionPropertiesTableForFlyout.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/TransactionPropertiesTableForFlyout.tsx new file mode 100644 index 0000000000000..25632040ae325 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/TransactionPropertiesTableForFlyout.tsx @@ -0,0 +1,78 @@ +/* + * 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. + */ + +// @ts-ignore +import { EuiSpacer, EuiTab, EuiTabs } from '@elastic/eui'; +import { capitalize, first, get } from 'lodash'; +import React from 'react'; +import { Transaction } from '../../../../../typings/Transaction'; +import { IUrlParams } from '../../../../store/urlParams'; +// @ts-ignore +import { fromQuery, history, toQuery } from '../../../../utils/url'; +import { + getPropertyTabNames, + PropertiesTable +} from '../../../shared/PropertiesTable'; +// @ts-ignore +import { Tab } from '../../../shared/UIComponents'; + +// Ensure the selected tab exists or use the first +function getCurrentTab(tabs: string[] = [], selectedTab?: string) { + return selectedTab && tabs.includes(selectedTab) ? selectedTab : first(tabs); +} + +function getTabs(transactionData: Transaction) { + const dynamicProps = Object.keys(transactionData.context || {}); + return getPropertyTabNames(dynamicProps); +} + +interface Props { + location: any; + transaction: Transaction; + urlParams: IUrlParams; +} + +export const TransactionPropertiesTableForFlyout: React.SFC = ({ + location, + transaction, + urlParams +}) => { + const tabs = getTabs(transaction); + const currentTab = getCurrentTab(tabs, urlParams.flyoutDetailTab); + const agentName = transaction.context.service.agent.name; + + return ( +
      + + {tabs.map(key => { + return ( + { + history.replace({ + ...location, + search: fromQuery({ + ...toQuery(location.search), + flyoutDetailTab: key + }) + }); + }} + isSelected={currentTab === key} + key={key} + > + {capitalize(key)} + + ); + })} + + + +
      + ); +}; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/ServiceLegends.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/ServiceLegends.tsx new file mode 100644 index 0000000000000..a909fcc20dfb9 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/ServiceLegends.tsx @@ -0,0 +1,41 @@ +/* + * 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 { EuiTitle } from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; +import { px, unit } from '../../../../../style/variables'; +// @ts-ignore +import Legend from '../../../../shared/charts/Legend'; +import { IServiceColors } from './Waterfall/waterfall_helpers/waterfall_helpers'; + +const Legends = styled.div` + display: flex; + + > * { + margin-right: ${px(unit)}; + &:last-child { + margin-right: 0; + } + } +`; + +interface Props { + serviceColors: IServiceColors; +} + +export function ServiceLegends({ serviceColors }: Props) { + return ( + + + Services + + {Object.entries(serviceColors).map(([label, color]) => ( + + ))} + + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/FlyoutTopLevelProperties.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/FlyoutTopLevelProperties.tsx new file mode 100644 index 0000000000000..dc26045151f17 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/FlyoutTopLevelProperties.tsx @@ -0,0 +1,53 @@ +/* + * 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 React from 'react'; +import { + SERVICE_NAME, + TRANSACTION_NAME +} from 'x-pack/plugins/apm/common/constants'; +import { StickyProperties } from 'x-pack/plugins/apm/public/components/shared/StickyProperties'; +import { TransactionLink } from 'x-pack/plugins/apm/public/components/shared/TransactionLink'; +import { KibanaLink } from 'x-pack/plugins/apm/public/utils/url'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; + +interface Props { + transaction?: Transaction; +} + +export function FlyoutTopLevelProperties({ transaction }: Props) { + if (!transaction) { + return null; + } + + const stickyProperties = [ + { + label: 'Service', + fieldName: SERVICE_NAME, + val: ( + + {transaction.context.service.name} + + ), + width: '50%' + }, + { + label: 'Transaction', + fieldName: TRANSACTION_NAME, + val: ( + + {transaction.transaction.name} + + ), + width: '50%' + } + ]; + + return ; +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/DatabaseContext.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/DatabaseContext.tsx new file mode 100644 index 0000000000000..93266464ecdf5 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/DatabaseContext.tsx @@ -0,0 +1,79 @@ +/* + * 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 React, { Fragment } from 'react'; +import styled from 'styled-components'; +import { + borderRadius, + colors, + fontFamilyCode, + px, + unit, + units +} from '../../../../../../../style/variables'; + +import SyntaxHighlighter, { + registerLanguage + // @ts-ignore +} from 'react-syntax-highlighter/dist/light'; + +// @ts-ignore +import { xcode } from 'react-syntax-highlighter/dist/styles'; + +// @ts-ignore +import sql from 'react-syntax-highlighter/dist/languages/sql'; + +import { EuiTitle } from '@elastic/eui'; +import { DbContext } from '../../../../../../../../typings/Span'; + +registerLanguage('sql', sql); + +const DatabaseStatement = styled.div` + margin-top: ${px(unit)}; + padding: ${px(units.half)} ${px(unit)}; + background: ${colors.yellow}; + border-radius: ${borderRadius}; + border: 1px solid ${colors.gray4}; + font-family: ${fontFamilyCode}; +`; + +interface Props { + dbContext?: DbContext; +} + +export function DatabaseContext({ dbContext }: Props) { + if (!dbContext || !dbContext.statement) { + return null; + } + + if (dbContext.type !== 'sql') { + return {dbContext.statement}; + } + + return ( + + +

      Database statement

      +
      + + + {dbContext.statement} + + +
      + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/StickySpanProperties.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/StickySpanProperties.tsx new file mode 100644 index 0000000000000..8ac9c0b7e0b65 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/StickySpanProperties.tsx @@ -0,0 +1,75 @@ +/* + * 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 { first } from 'lodash'; +import React from 'react'; +import { + SPAN_DURATION, + SPAN_NAME, + SPAN_TYPE +} from 'x-pack/plugins/apm/common/constants'; +import { Span } from '../../../../../../../../typings/Span'; +import { asMillis, asPercent } from '../../../../../../../utils/formatters'; +import { StickyProperties } from '../../../../../../shared/StickyProperties'; + +function getSpanLabel(type: string) { + switch (type) { + case 'db': + return 'DB'; + case 'hard-navigation': + return 'Navigation timing'; + default: + return type; + } +} + +function getPrimaryType(type: string) { + return first(type.split('.')); +} + +interface Props { + span: Span; + totalDuration?: number; +} + +export function StickySpanProperties({ span, totalDuration }: Props) { + if (!totalDuration) { + return null; + } + + const spanName = span.span.name; + const spanDuration = span.span.duration.us; + const spanTypeLabel = getSpanLabel(getPrimaryType(span.span.type)); + const stickyProperties = [ + { + label: 'Name', + fieldName: SPAN_NAME, + val: spanName || 'N/A', + truncated: true, + width: '50%' + }, + { + fieldName: SPAN_TYPE, + label: 'Type', + val: spanTypeLabel, + truncated: true, + widht: '50%' + }, + { + fieldName: SPAN_DURATION, + label: 'Duration', + val: asMillis(spanDuration), + width: '50%' + }, + { + label: '% of transaction', + val: asPercent(spanDuration, totalDuration), + width: '50%' + } + ]; + + return ; +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/index.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/index.tsx new file mode 100644 index 0000000000000..7f8b02856aa25 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/SpanFlyout/index.tsx @@ -0,0 +1,110 @@ +/* + * 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 { + EuiFlexGroup, + EuiFlexItem, + EuiFlyout, + EuiFlyoutBody, + EuiFlyoutHeader, + EuiHorizontalRule, + EuiPortal, + EuiTitle +} from '@elastic/eui'; +import { get } from 'lodash'; +import React from 'react'; +import styled from 'styled-components'; + +// @ts-ignore +import { + SERVICE_LANGUAGE_NAME, + SPAN_HEX_ID, + SPAN_ID +} from '../../../../../../../../common/constants'; +import { px, unit } from '../../../../../../../style/variables'; + +// @ts-ignore +import Stacktrace from '../../../../../../shared/Stacktrace'; + +import { DatabaseContext } from './DatabaseContext'; +import { StickySpanProperties } from './StickySpanProperties'; + +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { Span } from '../../../../../../../../typings/Span'; +import { DiscoverButton } from '../../../../../../shared/DiscoverButton'; +import { FlyoutTopLevelProperties } from '../FlyoutTopLevelProperties'; + +const StackTraceContainer = styled.div` + margin-top: ${px(unit)}; +`; + +function getDiscoverQuery(span: Span) { + return { + _a: { + interval: 'auto', + query: { + language: 'lucene', + query: + span.version === 'v2' + ? `${SPAN_HEX_ID}:"${span.span.hex_id}"` + : `${SPAN_ID}:"${span.span.id}"` + } + } + }; +} + +interface Props { + span?: Span; + parentTransaction?: Transaction; + totalDuration?: number; + onClose: () => void; +} + +export function SpanFlyout({ + span, + parentTransaction, + totalDuration, + onClose +}: Props) { + if (!span) { + return null; + } + const stackframes = span.span.stacktrace; + const codeLanguage: string = get(span, SERVICE_LANGUAGE_NAME); + const dbContext = span.context.db; + + return ( + + + + + + +

      Span details

      +
      +
      + + + + {`View span in Discover`} + + +
      +
      + + + + + + + + + + +
      +
      + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/TransactionFlyout/index.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/TransactionFlyout/index.tsx new file mode 100644 index 0000000000000..e3d380ae9fb35 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/TransactionFlyout/index.tsx @@ -0,0 +1,144 @@ +/* + * 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 { + EuiButtonEmpty, + EuiCallOut, + EuiFlexGroup, + EuiFlexItem, + EuiFlyout, + EuiFlyoutBody, + EuiFlyoutHeader, + EuiHorizontalRule, + EuiLink, + EuiPortal, + EuiTitle +} from '@elastic/eui'; +import { get } from 'lodash'; +import React from 'react'; +import styled from 'styled-components'; +import { IUrlParams } from 'x-pack/plugins/apm/public/store/urlParams'; +import { APM_AGENT_DROPPED_SPANS_DOCS } from 'x-pack/plugins/apm/public/utils/documentation/agents'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { DiscoverTransactionLink } from '../../../ActionMenu'; +import { StickyTransactionProperties } from '../../../StickyTransactionProperties'; +import { TransactionPropertiesTableForFlyout } from '../../../TransactionPropertiesTableForFlyout'; +import { FlyoutTopLevelProperties } from '../FlyoutTopLevelProperties'; +import { IWaterfall } from '../waterfall_helpers/waterfall_helpers'; + +interface Props { + onClose: () => void; + transaction?: Transaction; + location: any; // TODO: import location type from react router or history types? + urlParams: IUrlParams; + waterfall: IWaterfall; +} + +const ResponsiveFlyout = styled(EuiFlyout)` + width: 100%; + + @media (min-width: 800px) { + width: 90%; + } + + @media (min-width: 1000px) { + width: 70%; + } + + @media (min-width: 1400px) { + width: 50%; + } + + @media (min-width: 2000px) { + width: 35%; + } +`; + +function DroppedSpansWarning({ + transactionDoc +}: { + transactionDoc: Transaction; +}) { + const dropped: number = get( + transactionDoc, + 'transaction.span_count.dropped.total', + 0 + ); + + if (dropped === 0) { + return null; + } + + const url = + APM_AGENT_DROPPED_SPANS_DOCS[transactionDoc.context.service.agent.name]; + + const docsLink = url ? ( + + Learn more. + + ) : null; + + return ( + + + The APM agent that reported this transaction dropped {dropped} spans or + more based on its configuration. {docsLink} + + + + ); +} + +export function TransactionFlyout({ + transaction: transactionDoc, + onClose, + location, + urlParams, + waterfall +}: Props) { + if (!transactionDoc) { + return null; + } + + return ( + + + + + + +

      Transaction details

      +
      +
      + + + + + View transaction in Discover + + + +
      +
      + + + + + + + + +
      +
      + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/WaterfallItem.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/WaterfallItem.tsx new file mode 100644 index 0000000000000..b917db2c25685 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/WaterfallItem.tsx @@ -0,0 +1,146 @@ +/* + * 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 React from 'react'; +import styled from 'styled-components'; + +import { EuiIcon } from '@elastic/eui'; +import { + colors, + fontFamily, + fontFamilyCode, + fontSize, + fontSizes, + px, + unit, + units +} from '../../../../../../style/variables'; +import { IWaterfallItem } from './waterfall_helpers/waterfall_helpers'; + +interface ItemBarProps { + type: 'transaction' | 'span'; + left: number; + width: number; + color: string; +} + +const ItemBar = styled('div')` + box-sizing: border-box; + position: relative; + height: ${px(unit)}; + min-width: 2px; + background-color: ${props => props.color}; +`; + +// Note: "direction: rtl;" is here to prevent text from running off of +// the right edge and instead pushing it to the left. For an example of +// how this works, see here: https://codepen.io/sqren/pen/JrXNjY +const SpanLabel = styled.div` + white-space: nowrap; + position: relative; + direction: rtl; + text-align: left; + margin: ${px(units.quarter)} 0 0; + font-family: ${fontFamilyCode}; + font-size: ${fontSizes.small}; +`; + +const TransactionLabel = styled(SpanLabel)` + font-weight: 600; + font-family: ${fontFamily}; + font-size: ${fontSize}; +`; + +interface IContainerProps { + item: IWaterfallItem; + timelineMargins: ITimelineMargins; + isSelected: boolean; +} + +const Container = styled('div')` + position: relative; + display: block; + user-select: none; + padding: ${px(units.half)} ${props => px(props.timelineMargins.right)} + ${props => px(props.item.docType === 'span' ? units.half : units.quarter)} + ${props => px(props.timelineMargins.left)}; + border-top: 1px solid ${colors.gray4}; + background-color: ${props => (props.isSelected ? colors.gray5 : 'initial')}; + cursor: pointer; + &:hover { + background-color: ${colors.gray5}; + } +`; + +interface ITimelineMargins { + right: number; + left: number; + top: number; + bottom: number; +} + +interface IWaterfallItemProps { + timelineMargins: ITimelineMargins; + totalDuration?: number; + item: IWaterfallItem; + color: string; + isSelected: boolean; + onClick: () => any; +} + +function Prefix({ item }: { item: IWaterfallItem }) { + if (item.docType !== 'transaction') { + return null; + } + + return ( + + {' '} + + ); +} + +export function WaterfallItem({ + timelineMargins, + totalDuration, + item, + color, + isSelected, + onClick +}: IWaterfallItemProps) { + if (!totalDuration) { + return null; + } + + const width = (item.duration / totalDuration) * 100; + const left = ((item.offset + item.skew) / totalDuration) * 100; + const Label = item.docType === 'transaction' ? TransactionLabel : SpanLabel; + + // Note: the appears *after* the item name in the DOM order + // because this label is styled with "direction: rtl;" so that the name + // itself doesn't flow outside the box to the right. + return ( + + + + + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/index.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/index.tsx new file mode 100644 index 0000000000000..57d293cfb55ef --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/index.tsx @@ -0,0 +1,159 @@ +/* + * 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 React, { Component } from 'react'; +// @ts-ignore +import { StickyContainer } from 'react-sticky'; +import styled from 'styled-components'; + +import { IUrlParams } from '../../../../../../store/urlParams'; + +// @ts-ignore +import { fromQuery, history, toQuery } from '../../../../../../utils/url'; +// @ts-ignore +import Timeline from '../../../../../shared/charts/Timeline'; +import { AgentMark } from '../get_agent_marks'; +import { SpanFlyout } from './SpanFlyout'; +import { TransactionFlyout } from './TransactionFlyout'; +import { + IServiceColors, + IWaterfall, + IWaterfallItem +} from './waterfall_helpers/waterfall_helpers'; +import { WaterfallItem } from './WaterfallItem'; + +const Container = styled.div` + transition: 0.1s padding ease; + position: relative; + overflow: hidden; +`; + +const TIMELINE_MARGINS = { + top: 40, + left: 50, + right: 50, + bottom: 0 +}; + +interface Props { + agentMarks: AgentMark[]; + urlParams: IUrlParams; + waterfall: IWaterfall; + location: any; + serviceColors: IServiceColors; +} + +export class Waterfall extends Component { + public onOpenFlyout = (item: IWaterfallItem) => { + this.setQueryParams({ + flyoutDetailTab: undefined, + waterfallItemId: String(item.id) + }); + }; + + public onCloseFlyout = () => { + this.setQueryParams({ + flyoutDetailTab: undefined, + waterfallItemId: undefined + }); + }; + + public getWaterfallItem = (item: IWaterfallItem) => { + const { serviceColors, waterfall, urlParams }: Props = this.props; + + return ( + this.onOpenFlyout(item)} + /> + ); + }; + + public getFlyOut = () => { + const { waterfall, location, urlParams } = this.props; + + const currentItem = + urlParams.waterfallItemId && + waterfall.itemsById[urlParams.waterfallItemId]; + + if (!currentItem) { + return null; + } + + switch (currentItem.docType) { + case 'span': + const parentTransaction = waterfall.getTransactionById( + currentItem.parentId + ); + + return ( + + ); + case 'transaction': + return ( + + ); + default: + return null; + } + }; + + public render() { + const { waterfall } = this.props; + const itemContainerHeight = 58; // TODO: This is a nasty way to calculate the height of the svg element. A better approach should be found + const waterfallHeight = itemContainerHeight * waterfall.items.length; + + return ( + + + +
      + {waterfall.items.map(this.getWaterfallItem)} +
      +
      + + {this.getFlyOut()} +
      + ); + } + + private setQueryParams(params: Partial) { + const { location } = this.props; + history.replace({ + ...location, + search: fromQuery({ + ...toQuery(location.search), + ...params + }) + }); + } +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/__snapshots__/waterfall_helpers.test.ts.snap b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/__snapshots__/waterfall_helpers.test.ts.snap new file mode 100644 index 0000000000000..9fd18e285d0d4 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/__snapshots__/waterfall_helpers.test.ts.snap @@ -0,0 +1,89 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`waterfall_helpers getWaterfallItems should order items correctly 1`] = ` +Array [ + Object { + "childIds": Array [ + "b2", + "b", + ], + "docType": "transaction", + "duration": 9480, + "id": "a", + "name": "APIRestController#products", + "offset": 0, + "serviceName": "opbeans-java", + "skew": 0, + "timestamp": 1536763736366000, + "transaction": Object {}, + }, + Object { + "childIds": Array [], + "docType": "span", + "duration": 4694, + "id": "b2", + "name": "GET [0:0:0:0:0:0:0:1]", + "offset": 1000, + "parentId": "a", + "serviceName": "opbeans-java", + "skew": 0, + "span": Object { + "transaction": Object { + "id": "a", + }, + }, + "timestamp": 1536763736367000, + }, + Object { + "childIds": Array [ + "c", + ], + "docType": "span", + "duration": 4694, + "id": "b", + "name": "GET [0:0:0:0:0:0:0:1]", + "offset": 2000, + "parentId": "a", + "serviceName": "opbeans-java", + "skew": 0, + "span": Object { + "transaction": Object { + "id": "a", + }, + }, + "timestamp": 1536763736368000, + }, + Object { + "childIds": Array [ + "d", + ], + "docType": "transaction", + "duration": 3581, + "id": "c", + "name": "APIRestController#productsRemote", + "offset": 3000, + "parentId": "b", + "serviceName": "opbeans-java", + "skew": 0, + "timestamp": 1536763736369000, + "transaction": Object {}, + }, + Object { + "childIds": Array [], + "docType": "span", + "duration": 210, + "id": "d", + "name": "SELECT", + "offset": 5000, + "parentId": "c", + "serviceName": "opbeans-java", + "skew": 0, + "span": Object { + "transaction": Object { + "id": "c", + }, + }, + "timestamp": 1536763736371000, + }, +] +`; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/mock_responses/spans.json b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/mock_responses/spans.json new file mode 100644 index 0000000000000..e12fe757ef1ee --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/mock_responses/spans.json @@ -0,0 +1,47 @@ +[ + { + "@timestamp": "2018-09-12T15:16:05.351Z", + "processor": { + "name": "transaction", + "event": "span" + }, + "span": { + "parent_id": "e070bc3c732087f8", + "trace_id": "7d4d29bea37e48ac8ba1f962d5eb8a41", + "name": "SELECT", + "type": "db.h2.sql", + "start": { + "us": 9249 + }, + "duration": { + "us": 1380 + }, + "hex_id": "8143a38f3367fd97" + }, + "transaction": { + "id": "e070bc3c732087f8" + }, + "context": { + "db": { + "statement": "select order0_.id as col_0_0_, order0_.created_at as col_1_0_, customer1_.full_name as col_2_0_ from orders order0_ left outer join customers customer1_ on order0_.customer_id=customer1_.id", + "type": "sql", + "user": "SA" + }, + "service": { + "name": "opbeans-java", + "agent": { + "version": "0.7.0-SNAPSHOT", + "name": "java" + } + } + }, + "beat": { + "version": "7.0.0-alpha1", + "name": "361022bff072", + "hostname": "361022bff072" + }, + "host": { + "name": "361022bff072" + } + } +] diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/mock_responses/transaction.json b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/mock_responses/transaction.json new file mode 100644 index 0000000000000..401b8473ec3fc --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/mock_responses/transaction.json @@ -0,0 +1,93 @@ +{ + "@timestamp": "2018-09-12T15:16:05.341Z", + "processor": { + "name": "transaction", + "event": "transaction" + }, + "transaction": { + "duration": { + "us": 9069543 + }, + "type": "request", + "result": "HTTP 2xx", + "trace_id": "7d4d29bea37e48ac8ba1f962d5eb8a41", + "sampled": true, + "span_count": { + "started": 1, + "dropped": { + "total": 0 + } + }, + "id": "e070bc3c732087f8", + "name": "APIRestController#orders" + }, + "context": { + "request": { + "url": { + "full": "http://localhost:8080/api/orders", + "hostname": "localhost", + "port": "8080", + "pathname": "/api/orders", + "protocol": "http" + }, + "socket": { + "encrypted": false, + "remote_address": "0:0:0:0:0:0:0:1" + }, + "http_version": "1.1", + "method": "GET", + "headers": { + "accept-encoding": "gzip, deflate", + "host": "localhost:8080", + "connection": "keep-alive", + "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/70.0.3508.0 Safari/537.36", + "accept": "*/*", + "referer": "http://localhost:8080/orders" + } + }, + "response": { + "finished": true, + "headers_sent": true, + "status_code": 200, + "headers": { + "Transfer-Encoding": "chunked", + "Date": "Wed, 12 Sep 2018 15:16:07 GMT", + "Content-Type": "application/json;charset=UTF-8" + } + }, + "system": { + "architecture": "x86_64", + "platform": "Srens-MacBook-Pro.local", + "ip": "172.18.0.1", + "hostname": "Mac OS X" + }, + "process": { + "ppid": 10060, + "title": "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java", + "pid": 10069 + }, + "service": { + "language": { + "version": "10.0.2", + "name": "Java" + }, + "runtime": { + "name": "Java", + "version": "10.0.2" + }, + "name": "opbeans-java", + "agent": { + "name": "java", + "version": "0.7.0-SNAPSHOT" + } + } + }, + "beat": { + "version": "7.0.0-alpha1", + "name": "361022bff072", + "hostname": "361022bff072" + }, + "host": { + "name": "361022bff072" + } +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.test.ts b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.test.ts new file mode 100644 index 0000000000000..00e4709e261c0 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.test.ts @@ -0,0 +1,177 @@ +/* + * 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 { groupBy } from 'lodash'; +import { Span } from 'x-pack/plugins/apm/typings/Span'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { + getClockSkew, + getWaterfallItems, + IWaterfallItem +} from './waterfall_helpers'; + +describe('waterfall_helpers', () => { + describe('getWaterfallItems', () => { + it('should order items correctly', () => { + const items: IWaterfallItem[] = [ + { + id: 'd', + parentId: 'c', + serviceName: 'opbeans-java', + name: 'SELECT', + duration: 210, + timestamp: 1536763736371000, + offset: 0, + skew: 0, + docType: 'span', + span: { + transaction: { + id: 'c' + } + } as Span + }, + { + id: 'b', + parentId: 'a', + serviceName: 'opbeans-java', + name: 'GET [0:0:0:0:0:0:0:1]', + duration: 4694, + timestamp: 1536763736368000, + offset: 0, + skew: 0, + docType: 'span', + span: { + transaction: { + id: 'a' + } + } as Span + }, + { + id: 'b2', + parentId: 'a', + serviceName: 'opbeans-java', + name: 'GET [0:0:0:0:0:0:0:1]', + duration: 4694, + timestamp: 1536763736367000, + offset: 0, + skew: 0, + docType: 'span', + span: { + transaction: { + id: 'a' + } + } as Span + }, + { + id: 'c', + parentId: 'b', + serviceName: 'opbeans-java', + name: 'APIRestController#productsRemote', + duration: 3581, + timestamp: 1536763736369000, + offset: 0, + skew: 0, + docType: 'transaction', + transaction: {} as Transaction + }, + { + id: 'a', + serviceName: 'opbeans-java', + name: 'APIRestController#products', + duration: 9480, + timestamp: 1536763736366000, + offset: 0, + skew: 0, + docType: 'transaction', + transaction: {} as Transaction + } + ]; + + const childrenByParentId = groupBy( + items, + hit => (hit.parentId ? hit.parentId : 'root') + ); + const entryTransactionItem = childrenByParentId.root[0]; + expect( + getWaterfallItems(childrenByParentId, entryTransactionItem) + ).toMatchSnapshot(); + }); + }); + + describe('getClockSkew', () => { + it('should adjust when child starts before parent', () => { + const child = { + docType: 'transaction', + timestamp: 0, + duration: 50 + } as IWaterfallItem; + + const parent = { + timestamp: 100, + duration: 100, + skew: 5 + } as IWaterfallItem; + + expect(getClockSkew(child, parent)).toBe(130); + }); + + it('should adjust when child starts after parent has ended', () => { + const child = { + docType: 'transaction', + timestamp: 250, + duration: 50 + } as IWaterfallItem; + + const parent = { + timestamp: 100, + duration: 100, + skew: 5 + } as IWaterfallItem; + + expect(getClockSkew(child, parent)).toBe(-120); + }); + + it('should not adjust when child starts within parent duration', () => { + const child = { + docType: 'transaction', + timestamp: 150, + duration: 50 + } as IWaterfallItem; + + const parent = { + timestamp: 100, + duration: 100, + skew: 5 + } as IWaterfallItem; + + expect(getClockSkew(child, parent)).toBe(0); + }); + + it('should return parent skew for spans', () => { + const child = { + docType: 'span' + } as IWaterfallItem; + + const parent = { + timestamp: 100, + duration: 100, + skew: 5 + } as IWaterfallItem; + + expect(getClockSkew(child, parent)).toBe(5); + }); + + it('should handle missing parent', () => { + const child = { + docType: 'transaction' + } as IWaterfallItem; + + const parent = undefined; + + expect(getClockSkew(child, parent)).toBe(0); + }); + }); +}); diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.ts b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.ts new file mode 100644 index 0000000000000..43c28e4ef29f8 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers.ts @@ -0,0 +1,314 @@ +/* + * 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 { + first, + flatten, + groupBy, + indexBy, + isEmpty, + sortBy, + uniq, + zipObject +} from 'lodash'; +import { colors } from 'x-pack/plugins/apm/public/style/variables'; +import { Span } from '../../../../../../../../typings/Span'; +import { Transaction } from '../../../../../../../../typings/Transaction'; + +export interface IWaterfallIndex { + [key: string]: IWaterfallItem; +} + +export interface IWaterfallGroup { + [key: string]: IWaterfallItem[]; +} + +export interface IWaterfall { + traceRoot?: Transaction; + traceRootDuration?: number; + + /** + * Duration in us + */ + duration: number; + services: string[]; + items: IWaterfallItem[]; + itemsById: IWaterfallIndex; + getTransactionById: (id?: IWaterfallItem['id']) => Transaction | undefined; + serviceColors: IServiceColors; +} + +interface IWaterfallItemBase { + id: string | number; + parentId?: string; + serviceName: string; + name: string; + + /** + * Duration in us + */ + duration: number; + + /** + * start timestamp in us + */ + timestamp: number; + + /** + * offset from first item in us + */ + offset: number; + + /** + * skew from timestamp in us + */ + skew: number; + childIds?: Array; +} + +interface IWaterfallItemTransaction extends IWaterfallItemBase { + transaction: Transaction; + docType: 'transaction'; +} + +interface IWaterfallItemSpan extends IWaterfallItemBase { + span: Span; + docType: 'span'; +} + +export type IWaterfallItem = IWaterfallItemSpan | IWaterfallItemTransaction; + +function getTransactionItem( + transaction: Transaction +): IWaterfallItemTransaction { + if (transaction.version === 'v1') { + return { + id: transaction.transaction.id, + serviceName: transaction.context.service.name, + name: transaction.transaction.name, + duration: transaction.transaction.duration.us, + timestamp: new Date(transaction['@timestamp']).getTime() * 1000, + offset: 0, + skew: 0, + docType: 'transaction', + transaction + }; + } + + return { + id: transaction.transaction.id, + parentId: transaction.parent && transaction.parent.id, + serviceName: transaction.context.service.name, + name: transaction.transaction.name, + duration: transaction.transaction.duration.us, + timestamp: transaction.timestamp.us, + offset: 0, + skew: 0, + docType: 'transaction', + transaction + }; +} + +function getSpanItem(span: Span): IWaterfallItemSpan { + if (span.version === 'v1') { + return { + id: span.span.id, + parentId: span.span.parent || span.transaction.id, + serviceName: span.context.service.name, + name: span.span.name, + duration: span.span.duration.us, + timestamp: + new Date(span['@timestamp']).getTime() * 1000 + span.span.start.us, + offset: 0, + skew: 0, + docType: 'span', + span + }; + } + + return { + id: span.span.hex_id, + parentId: span.parent && span.parent.id, + serviceName: span.context.service.name, + name: span.span.name, + duration: span.span.duration.us, + timestamp: span.timestamp.us, + offset: 0, + skew: 0, + docType: 'span', + span + }; +} + +export function getClockSkew( + item: IWaterfallItem, + parentItem?: IWaterfallItem +) { + if (!parentItem) { + return 0; + } + + switch (item.docType) { + // don't calculate skew for spans. Just use parent's skew + case 'span': + return parentItem.skew; + + // transaction is the inital entry in a service. Calculate skew for this, and it will be propogated to all child spans + case 'transaction': { + const parentStart = parentItem.timestamp + parentItem.skew; + const parentEnd = parentStart + parentItem.duration; + + // determine if child starts before the parent + const offsetStart = parentStart - item.timestamp; + + // determine if child starts after the parent has ended + const offsetEnd = item.timestamp - parentEnd; + + // child transaction starts before parent OR + // child transaction starts after parent has ended + if (offsetStart > 0 || offsetEnd > 0) { + const latency = Math.max(parentItem.duration - item.duration, 0) / 2; + return offsetStart + latency; + + // child transaction starts withing parent duration and no adjustment is needed + } else { + return 0; + } + } + } +} + +export function getWaterfallItems( + childrenByParentId: IWaterfallGroup, + entryTransactionItem: IWaterfallItem +) { + function getSortedChildren( + item: IWaterfallItem, + parentItem?: IWaterfallItem + ): IWaterfallItem[] { + const children = sortBy(childrenByParentId[item.id] || [], 'timestamp'); + + item.childIds = children.map(child => child.id); + item.offset = item.timestamp - entryTransactionItem.timestamp; + item.skew = getClockSkew(item, parentItem); + + const deepChildren = flatten( + children.map(child => getSortedChildren(child, item)) + ); + return [item, ...deepChildren]; + } + + return getSortedChildren(entryTransactionItem); +} + +function getTraceRoot(childrenByParentId: IWaterfallGroup) { + const item = first(childrenByParentId.root); + if (item && item.docType === 'transaction') { + return item.transaction; + } +} + +function getServices(items: IWaterfallItem[]) { + const serviceNames = items.map(item => item.serviceName); + return uniq(serviceNames); +} + +export interface IServiceColors { + [key: string]: string; +} + +function getServiceColors(services: string[]) { + const assignedColors = [ + colors.apmBlue, + colors.apmGreen, + colors.apmPurple, + colors.apmRed2, + colors.apmTan, + colors.apmOrange, + colors.apmYellow + ]; + + return zipObject(services, assignedColors) as IServiceColors; +} + +function getDuration(items: IWaterfallItem[]) { + const timestampStart = items[0].timestamp; + const timestampEnd = Math.max( + ...items.map(item => item.timestamp + item.duration + item.skew) + ); + return timestampEnd - timestampStart; +} + +function createGetTransactionById(itemsById: IWaterfallIndex) { + return (id?: IWaterfallItem['id']) => { + if (!id) { + return; + } + + const item = itemsById[id]; + if (item.docType === 'transaction') { + return item.transaction; + } + }; +} + +export function getWaterfall( + hits: Array, + entryTransaction: Transaction +): IWaterfall { + if (isEmpty(hits)) { + return { + services: [], + duration: 0, + items: [], + itemsById: {}, + getTransactionById: () => undefined, + serviceColors: {} + }; + } + + const filteredHits = hits + .filter(hit => { + const docType = hit.processor.event; + return ['span', 'transaction'].includes(docType); + }) + .map(hit => { + const docType = hit.processor.event; + switch (docType) { + case 'span': + return getSpanItem(hit as Span); + case 'transaction': + return getTransactionItem(hit as Transaction); + default: + throw new Error(`Unknown type ${docType}`); + } + }); + + const childrenByParentId = groupBy( + filteredHits, + hit => (hit.parentId ? hit.parentId : 'root') + ); + const entryTransactionItem = getTransactionItem(entryTransaction); + const itemsById: IWaterfallIndex = indexBy(filteredHits, 'id'); + const items = getWaterfallItems(childrenByParentId, entryTransactionItem); + const traceRoot = getTraceRoot(childrenByParentId); + const duration = getDuration(items); + const traceRootDuration = traceRoot && traceRoot.transaction.duration.us; + const services = getServices(items); + const getTransactionById = createGetTransactionById(itemsById); + const serviceColors = getServiceColors(services); + + return { + traceRoot, + traceRootDuration, + duration, + services, + items, + itemsById, + getTransactionById, + serviceColors + }; +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/get_agent_marks.test.ts b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/get_agent_marks.test.ts new file mode 100644 index 0000000000000..295682df068ec --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/get_agent_marks.test.ts @@ -0,0 +1,36 @@ +/* + * 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 { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { getAgentMarks } from './get_agent_marks'; + +describe('getAgentMarks', () => { + it('should sort the marks', () => { + const transaction: Transaction = { + transaction: { + marks: { + agent: { + domInteractive: 117, + timeToFirstByte: 10, + domComplete: 118 + } + } + } + } as any; + expect(getAgentMarks(transaction)).toEqual([ + { name: 'timeToFirstByte', us: 10000 }, + { name: 'domInteractive', us: 117000 }, + { name: 'domComplete', us: 118000 } + ]); + }); + + it('should return empty array if marks are missing', () => { + const transaction: Transaction = { + transaction: {} + } as any; + expect(getAgentMarks(transaction)).toEqual([]); + }); +}); diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/get_agent_marks.ts b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/get_agent_marks.ts new file mode 100644 index 0000000000000..0aeb1d48b9456 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/get_agent_marks.ts @@ -0,0 +1,27 @@ +/* + * 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 { sortBy } from 'lodash'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; + +export interface AgentMark { + name: string; + us: number; +} + +export function getAgentMarks(transaction: Transaction): AgentMark[] { + if (!transaction.transaction.marks) { + return []; + } + + return sortBy( + Object.entries(transaction.transaction.marks.agent).map(([name, ms]) => ({ + name, + us: ms * 1000 + })), + 'us' + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/index.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/index.tsx new file mode 100644 index 0000000000000..5d78ce85d0775 --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/WaterfallContainer/index.tsx @@ -0,0 +1,66 @@ +/* + * 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 React from 'react'; +// @ts-ignore +import { + SERVICE_NAME, + TRACE_ID, + TRANSACTION_ID +} from '../../../../../../common/constants'; +import { Transaction } from '../../../../../../typings/Transaction'; + +import { EuiBadge, EuiFlexGroup, EuiFlexItem, EuiToolTip } from '@elastic/eui'; + +import { IUrlParams } from 'x-pack/plugins/apm/public/store/urlParams'; +import { getAgentMarks } from './get_agent_marks'; +import { ServiceLegends } from './ServiceLegends'; +import { Waterfall } from './Waterfall'; +import { IWaterfall } from './Waterfall/waterfall_helpers/waterfall_helpers'; + +interface Props { + urlParams: IUrlParams; + transaction: Transaction; + location: any; + waterfall: IWaterfall; +} + +export function WaterfallContainer({ + location, + urlParams, + transaction, + waterfall +}: Props) { + const agentMarks = getAgentMarks(transaction); + if (!waterfall) { + return null; + } + + return ( +
      + + + + + + + Beta + + + + +
      + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/__jest__/view.test.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/__jest__/view.test.js deleted file mode 100644 index f26588b861615..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/__jest__/view.test.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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 { getAgentMarks } from '../view'; - -describe('TransactionDetailsView', () => { - describe('getAgentMarks', () => { - it('should be sorted', () => { - const transaction = { - transaction: { - marks: { - agent: { - domInteractive: 117, - timeToFirstByte: 10, - domComplete: 118 - } - } - } - }; - expect(getAgentMarks(transaction)).toEqual([ - { name: 'timeToFirstByte', timeLabel: 10000, timeAxis: 10000 }, - { name: 'domInteractive', timeLabel: 117000, timeAxis: 117000 }, - { name: 'domComplete', timeLabel: 118000, timeAxis: 118000 } - ]); - }); - - it('should ensure they are not too close', () => { - const transaction = { - transaction: { - duration: { - us: 1000 * 1000 - }, - marks: { - agent: { - a: 0, - b: 10, - c: 11, - d: 12, - e: 968, - f: 969, - timeToFirstByte: 970, - domInteractive: 980, - domComplete: 990 - } - } - } - }; - expect(getAgentMarks(transaction)).toEqual([ - { timeLabel: 0, name: 'a', timeAxis: 0 }, - { timeLabel: 10000, name: 'b', timeAxis: 20000 }, - { timeLabel: 11000, name: 'c', timeAxis: 40000 }, - { timeLabel: 12000, name: 'd', timeAxis: 60000 }, - { timeLabel: 968000, name: 'e', timeAxis: 910000 }, - { timeLabel: 969000, name: 'f', timeAxis: 930000 }, - { timeLabel: 970000, name: 'timeToFirstByte', timeAxis: 950000 }, - { timeLabel: 980000, name: 'domInteractive', timeAxis: 970000 }, - { timeLabel: 990000, name: 'domComplete', timeAxis: 990000 } - ]); - }); - }); -}); diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/index.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/index.js deleted file mode 100644 index 977acf2025cbf..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * 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 { connect } from 'react-redux'; -import Transaction from './view'; - -function mapStateToProps(state = {}) { - return { - location: state.location - }; -} - -const mapDispatchToProps = {}; -export default connect( - mapStateToProps, - mapDispatchToProps -)(Transaction); diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/index.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/index.tsx new file mode 100644 index 0000000000000..a21293abef9df --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/index.tsx @@ -0,0 +1,129 @@ +/* + * 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 { + EuiButton, + EuiButtonEmpty, + EuiFlexGroup, + EuiFlexItem, + EuiPanel, + EuiSpacer, + EuiTitle, + EuiToolTip +} from '@elastic/eui'; +import React from 'react'; +import { Transaction as ITransaction } from '../../../../../typings/Transaction'; +import { IUrlParams } from '../../../../store/urlParams'; +import { TransactionLink } from '../../../shared/TransactionLink'; +import { DiscoverTransactionLink } from './ActionMenu'; +import { StickyTransactionProperties } from './StickyTransactionProperties'; +import { TransactionPropertiesTable } from './TransactionPropertiesTable'; +import { IWaterfall } from './WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers'; + +function MaybeViewTraceLink({ + transaction, + waterfall +}: { + transaction: ITransaction; + waterfall: IWaterfall; +}) { + // the traceroot cannot be found, so we cannot link to it + if (!waterfall.traceRoot) { + return ( + + + + View full trace + + + + ); + } + + const isRoot = + transaction.transaction.id === waterfall.traceRoot.transaction.id; + + // the user is already viewing the full trace, so don't link to it + if (isRoot) { + return ( + + + + View full trace + + + + ); + + // the user is viewing a zoomed in version of the trace. Link to the full trace + } else { + return ( + + + View full trace + + + ); + } +} + +interface Props { + transaction: ITransaction; + urlParams: IUrlParams; + location: Location; + waterfall: IWaterfall; +} + +export const Transaction: React.SFC = ({ + transaction, + urlParams, + location, + waterfall +}) => { + return ( + + + + +
      Transaction sample
      +
      +
      + + + + + + + View transaction in Discover + + + + + + +
      + + + + + + + + +
      + ); +}; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/view.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/view.js deleted file mode 100644 index 0844cc054cad8..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/Transaction/view.js +++ /dev/null @@ -1,218 +0,0 @@ -/* - * 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 React from 'react'; -import PropTypes from 'prop-types'; -import styled from 'styled-components'; -import { - unit, - units, - colors, - px, - borderRadius -} from '../../../../style/variables'; -import { Tab, HeaderMedium } from '../../../shared/UIComponents'; -import { isEmpty, capitalize, get, sortBy, last } from 'lodash'; - -import StickyTransactionProperties from './StickyTransactionProperties'; -import { - PropertiesTable, - getPropertyTabNames -} from '../../../shared/PropertiesTable'; -import Spans from './Spans'; -import DiscoverButton from '../../../shared/DiscoverButton'; -import { - TRANSACTION_ID, - PROCESSOR_EVENT, - SERVICE_AGENT_NAME, - TRANSACTION_DURATION -} from '../../../../../common/constants'; -import { fromQuery, toQuery, history } from '../../../../utils/url'; -import EmptyMessage from '../../../shared/EmptyMessage'; - -const Container = styled.div` - position: relative; - border: 1px solid ${colors.gray4}; - border-radius: ${borderRadius}; - margin-top: ${px(units.plus)}; -`; - -const HeaderContainer = styled.div` - display: flex; - justify-content: space-between; - padding: ${px(units.plus)} ${px(units.plus)} 0; - margin-bottom: ${px(unit)}; -`; - -const TabContainer = styled.div` - padding: 0 ${px(units.plus)}; - border-bottom: 1px solid ${colors.gray4}; -`; - -const TabContentContainer = styled.div` - border-radius: 0 0 ${borderRadius} ${borderRadius}; -`; - -const PropertiesTableContainer = styled.div` - padding: ${px(units.plus)} ${px(units.plus)} 0; -`; - -const DEFAULT_TAB = 'timeline'; - -export function getAgentMarks(transaction) { - const duration = get(transaction, TRANSACTION_DURATION); - const threshold = (duration / 100) * 2; - - return sortBy( - Object.entries(get(transaction, 'transaction.marks.agent', [])), - '1' - ) - .map(([name, ms]) => ({ - name, - timeLabel: ms * 1000, - timeAxis: ms * 1000 - })) - .reduce((acc, curItem) => { - const prevTime = get(last(acc), 'timeAxis'); - const nextValidTime = prevTime + threshold; - const isTooClose = prevTime != null && nextValidTime > curItem.timeAxis; - const canFit = nextValidTime <= duration; - - if (isTooClose && canFit) { - acc.push({ ...curItem, timeAxis: nextValidTime }); - } else { - acc.push(curItem); - } - return acc; - }, []) - .reduceRight((acc, curItem) => { - const prevTime = get(last(acc), 'timeAxis'); - const nextValidTime = prevTime - threshold; - const isTooClose = prevTime != null && nextValidTime < curItem.timeAxis; - const canFit = nextValidTime >= 0; - - if (isTooClose && canFit) { - acc.push({ ...curItem, timeAxis: nextValidTime }); - } else { - acc.push(curItem); - } - return acc; - }, []) - .reverse(); -} - -// Ensure the selected tab exists or use the default -function getCurrentTab(tabs = [], detailTab) { - return tabs.includes(detailTab) ? detailTab : DEFAULT_TAB; -} - -function getTabs(transactionData) { - const dynamicProps = Object.keys(transactionData.context || {}); - return getPropertyTabNames(dynamicProps); -} - -function Transaction({ transaction, location, urlParams }) { - const { transactionId } = urlParams; - - if (isEmpty(transaction)) { - return ( - - ); - } - - const agentName = get(transaction, SERVICE_AGENT_NAME); - const tabs = getTabs(transaction); - const currentTab = getCurrentTab(tabs, urlParams.detailTab); - - const discoverQuery = { - _a: { - interval: 'auto', - query: { - language: 'lucene', - query: `${PROCESSOR_EVENT}:transaction AND ${TRANSACTION_ID}:${transactionId}` - }, - sort: { '@timestamp': 'desc' } - } - }; - - return ( - - - - Transaction sample - - - {`View transaction in Discover`} - - - - - - - {[DEFAULT_TAB, ...tabs].map(key => { - return ( - { - history.replace({ - ...location, - search: fromQuery({ - ...toQuery(location.search), - detailTab: key - }) - }); - }} - selected={currentTab === key} - key={key} - > - {capitalize(key)} - - ); - })} - - - - {currentTab === DEFAULT_TAB ? ( - - ) : ( - - - - )} - - - ); -} - -Transaction.propTypes = { - urlParams: PropTypes.object.isRequired, - transaction: PropTypes.object -}; - -Transaction.defaultProps = { - transaction: {} -}; - -export default Transaction; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/index.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/index.js deleted file mode 100644 index e6855e5a068dc..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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 { connect } from 'react-redux'; -import TransactionsDetails from './view'; -import { getUrlParams } from '../../../store/urlParams'; - -function mapStateToProps(state = {}) { - return { - location: state.location, - urlParams: getUrlParams(state) - }; -} - -const mapDispatchToProps = {}; -export default connect( - mapStateToProps, - mapDispatchToProps -)(TransactionsDetails); diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/index.ts b/x-pack/plugins/apm/public/components/app/TransactionDetails/index.ts new file mode 100644 index 0000000000000..6ab8c0116337a --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/index.ts @@ -0,0 +1,21 @@ +/* + * 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 { connect } from 'react-redux'; +import { TransactionDetailsView } from 'x-pack/plugins/apm/public/components/app/TransactionDetails/view'; +import { getUrlParams } from 'x-pack/plugins/apm/public/store/urlParams'; +import { IReduxState } from '../../../store/rootReducer'; + +function mapStateToProps(state = {} as IReduxState) { + return { + location: state.location, + urlParams: getUrlParams(state) + }; +} + +export const TransactionDetails = connect(mapStateToProps)( + TransactionDetailsView +); diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/view.js b/x-pack/plugins/apm/public/components/app/TransactionDetails/view.js deleted file mode 100644 index d1c48d31ba5cf..0000000000000 --- a/x-pack/plugins/apm/public/components/app/TransactionDetails/view.js +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 React from 'react'; -import { EuiSpacer } from '@elastic/eui'; -import { HeaderLarge } from '../../shared/UIComponents'; -import Transaction from './Transaction'; -import Distribution from './Distribution'; -import { TransactionDetailsChartsRequest } from '../../../store/reactReduxRequest/transactionDetailsCharts'; -import Charts from '../../shared/charts/TransactionCharts'; -import { TransactionDistributionRequest } from '../../../store/reactReduxRequest/transactionDistribution'; -import { TransactionDetailsRequest } from '../../../store/reactReduxRequest/transactionDetails'; -import { KueryBar } from '../../shared/KueryBar'; - -function TransactionDetails({ urlParams, location }) { - return ( -
      - {urlParams.transactionName} - - - - - - ( - - )} - /> - - ( - - )} - /> - - ( - - )} - /> -
      - ); -} - -export default TransactionDetails; diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/view.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/view.tsx new file mode 100644 index 0000000000000..97dcc67da090b --- /dev/null +++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/view.tsx @@ -0,0 +1,96 @@ +/* + * 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 { EuiSpacer } from '@elastic/eui'; +import React from 'react'; +import { RRRRenderResponse } from 'react-redux-request'; +import { TransactionDetailsRequest } from '../../../store/reactReduxRequest/transactionDetails'; +// @ts-ignore +import { TransactionDetailsChartsRequest } from '../../../store/reactReduxRequest/transactionDetailsCharts'; +import { TransactionDistributionRequest } from '../../../store/reactReduxRequest/transactionDistribution'; +import { WaterfallRequest } from '../../../store/reactReduxRequest/waterfall'; +import { IUrlParams } from '../../../store/urlParams'; +// @ts-ignore +import TransactionCharts from '../../shared/charts/TransactionCharts'; +import EmptyMessage from '../../shared/EmptyMessage'; +// @ts-ignore +import { KueryBar } from '../../shared/KueryBar'; +// @ts-ignore +import { HeaderLarge } from '../../shared/UIComponents'; +import { Distribution } from './Distribution'; +import { Transaction } from './Transaction'; + +interface Props { + urlParams: IUrlParams; + location: any; +} + +export function TransactionDetailsView({ urlParams, location }: Props) { + return ( +
      + {urlParams.transactionName} + + + + + + ) => ( + + )} + /> + + ( + + )} + /> + + + + { + if (!transaction) { + return ( + + ); + } + + return ( + { + return ( + + ); + }} + /> + ); + }} + /> +
      + ); +} diff --git a/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Button.js b/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Button.js index b7f8589dbd588..e2dee18bf0520 100644 --- a/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Button.js +++ b/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Button.js @@ -22,7 +22,7 @@ export default class DynamicBaselineButton extends Component { title: 'Machine Learning', items: [ { - name: 'Anomaly detection (BETA)', + name: 'Anomaly detection', icon: , onClick: () => { this.closePopover(); diff --git a/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Flyout.js b/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Flyout.js index 076bc403d3138..69b8775c57c53 100644 --- a/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Flyout.js +++ b/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/Flyout.js @@ -18,8 +18,7 @@ import { EuiFlyoutHeader, EuiText, EuiTitle, - EuiSpacer, - EuiBetaBadge + EuiSpacer } from '@elastic/eui'; import { KibanaLink, ViewMLJob } from '../../../../utils/url'; @@ -120,10 +119,6 @@ export default class DynamicBaselineFlyout extends Component {

      Enable anomaly detection on response times

      - {hasDynamicBaseline && ( diff --git a/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/__jest__/__snapshots__/Button.test.js.snap b/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/__jest__/__snapshots__/Button.test.js.snap index 6e57f557d1bd4..8c6ae37b38e90 100644 --- a/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/__jest__/__snapshots__/Button.test.js.snap +++ b/x-pack/plugins/apm/public/components/app/TransactionOverview/DynamicBaseline/__jest__/__snapshots__/Button.test.js.snap @@ -34,7 +34,7 @@ exports[`MLButton should render initial state 1`] = ` size="m" type="stats" />, - "name": "Anomaly detection (BETA)", + "name": "Anomaly detection", "onClick": [Function], }, Object { diff --git a/x-pack/plugins/apm/public/components/app/TransactionOverview/List/index.js b/x-pack/plugins/apm/public/components/app/TransactionOverview/List/index.js index 97b257275ad63..54657ded388f5 100644 --- a/x-pack/plugins/apm/public/components/app/TransactionOverview/List/index.js +++ b/x-pack/plugins/apm/public/components/app/TransactionOverview/List/index.js @@ -4,21 +4,15 @@ * you may not use this file except in compliance with the Elastic License. */ -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; +import React from 'react'; import styled from 'styled-components'; -import { EuiBasicTable } from '@elastic/eui'; -import orderBy from 'lodash.orderby'; import TooltipOverlay from '../../../shared/TooltipOverlay'; import { RelativeLink, legacyEncodeURIComponent } from '../../../../utils/url'; -import { - asMillisWithDefault, - asDecimal, - tpmUnit -} from '../../../../utils/formatters'; +import { asMillis, asDecimal, tpmUnit } from '../../../../utils/formatters'; +import { ImpactBar } from '../../../shared/ImpactBar'; import { fontFamilyCode, truncate } from '../../../../style/variables'; -import ImpactSparkline from './ImpactSparkLine'; +import { ManagedTable } from '../../../shared/ManagedTable'; function tpmLabel(type) { return type === 'request' ? 'Req. per minute' : 'Trans. per minute'; @@ -28,129 +22,75 @@ function avgLabel(agentName) { return agentName === 'js-base' ? 'Page load time' : 'Avg. resp. time'; } -function paginateItems({ items, pageIndex, pageSize }) { - return items.slice(pageIndex * pageSize, (pageIndex + 1) * pageSize); -} - const TransactionNameLink = styled(RelativeLink)` ${truncate('100%')}; font-family: ${fontFamilyCode}; `; -class List extends Component { - state = { - page: { - index: 0, - size: 25 +export default function TransactionList({ + items, + agentName, + serviceName, + type, + ...rest +}) { + const columns = [ + { + field: 'name', + name: 'Name', + width: '50%', + sortable: true, + render: transactionName => { + const transactionUrl = `${serviceName}/transactions/${legacyEncodeURIComponent( + type + )}/${legacyEncodeURIComponent(transactionName)}`; + + return ( + + + {transactionName || 'N/A'} + + + ); + } + }, + { + field: 'averageResponseTime', + name: avgLabel(agentName), + sortable: true, + dataType: 'number', + render: value => asMillis(value) + }, + { + field: 'p95', + name: '95th percentile', + sortable: true, + dataType: 'number', + render: value => asMillis(value) }, - sort: { - field: 'impactRelative', - direction: 'desc' + { + field: 'transactionsPerMinute', + name: tpmLabel(type), + sortable: true, + dataType: 'number', + render: value => `${asDecimal(value)} ${tpmUnit(type)}` + }, + { + field: 'impact', + name: 'Impact', + sortable: true, + dataType: 'number', + render: value => } - }; - - onTableChange = ({ page = {}, sort = {} }) => { - this.setState({ page, sort }); - }; - - render() { - const { agentName, serviceName, type } = this.props; - - const columns = [ - { - field: 'name', - name: 'Name', - width: '50%', - sortable: true, - render: transactionName => { - const transactionUrl = `${serviceName}/transactions/${legacyEncodeURIComponent( - type - )}/${legacyEncodeURIComponent(transactionName)}`; - - return ( - - - {transactionName || 'N/A'} - - - ); - } - }, - { - field: 'avg', - name: avgLabel(agentName), - sortable: true, - dataType: 'number', - render: value => asMillisWithDefault(value) - }, - { - field: 'p95', - name: '95th percentile', - sortable: true, - dataType: 'number', - render: value => asMillisWithDefault(value) - }, - { - field: 'tpm', - name: tpmLabel(type), - sortable: true, - dataType: 'number', - render: value => `${asDecimal(value)} ${tpmUnit(type)}` - }, - { - field: 'impactRelative', - name: 'Impact', - sortable: true, - dataType: 'number', - render: value => - } - ]; - - const sortedItems = orderBy( - this.props.items, - this.state.sort.field, - this.state.sort.direction - ); - - const paginatedItems = paginateItems({ - items: sortedItems, - pageIndex: this.state.page.index, - pageSize: this.state.page.size - }); - - return ( - - ); - } + ]; + + return ( + + ); } - -List.propTypes = { - agentName: PropTypes.string, - items: PropTypes.array, - serviceName: PropTypes.string, - type: PropTypes.string -}; - -export default List; - -// const renderFooterText = () => { -// return items.length === 500 -// ? 'Showing first 500 results ordered by response time' -// : ''; -// }; diff --git a/x-pack/plugins/apm/public/components/app/TransactionOverview/__jest__/TransactionOverview.test.js b/x-pack/plugins/apm/public/components/app/TransactionOverview/__jest__/TransactionOverview.test.js index 4fee02f262763..0e3e5b6420825 100644 --- a/x-pack/plugins/apm/public/components/app/TransactionOverview/__jest__/TransactionOverview.test.js +++ b/x-pack/plugins/apm/public/components/app/TransactionOverview/__jest__/TransactionOverview.test.js @@ -9,6 +9,34 @@ import { shallow } from 'enzyme'; import TransactionOverview from '../view'; import { toJson } from '../../../../utils/testHelpers'; +jest.mock( + 'ui/chrome', + () => ({ + getBasePath: () => `/some/base/path`, + getInjected: key => { + if (key === 'mlEnabled') { + return true; + } + throw new Error(`inexpected key ${key}`); + }, + getUiSettingsClient: () => { + return { + get: key => { + switch (key) { + case 'timepicker:timeDefaults': + return { from: 'now-15m', to: 'now', mode: 'quick' }; + case 'timepicker:refreshIntervalDefaults': + return { display: 'Off', pause: false, value: 0 }; + default: + throw new Error(`Unexpected config key: ${key}`); + } + } + }; + } + }), + { virtual: true } +); + const setup = () => { const props = { license: { diff --git a/x-pack/plugins/apm/public/components/app/TransactionOverview/view.js b/x-pack/plugins/apm/public/components/app/TransactionOverview/view.js index 129238b0adc03..591102bd814cf 100644 --- a/x-pack/plugins/apm/public/components/app/TransactionOverview/view.js +++ b/x-pack/plugins/apm/public/components/app/TransactionOverview/view.js @@ -67,7 +67,7 @@ class TransactionOverview extends Component { const { hasDynamicBaseline, license, location, urlParams } = this.props; const { serviceName, transactionType } = urlParams; - const mlEnabled = chrome.getInjected('mlEnabled'); + const mlEnabled = chrome.getInjected('mlEnabled', false); const ChartHeaderContent = hasDynamicBaseline && get(license.data, 'features.ml.isAvailable') ? ( diff --git a/x-pack/plugins/apm/public/components/shared/DiscoverButton.js b/x-pack/plugins/apm/public/components/shared/DiscoverButton.js deleted file mode 100644 index af241b297f97f..0000000000000 --- a/x-pack/plugins/apm/public/components/shared/DiscoverButton.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * 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 React from 'react'; -import { KibanaLink } from '../../utils/url'; -import { EuiButton } from '@elastic/eui'; - -function DiscoverButton({ query, children }) { - return ( - - - {children || 'View in Discover'} - - - ); -} - -export default DiscoverButton; diff --git a/x-pack/plugins/apm/public/components/shared/DiscoverButton.tsx b/x-pack/plugins/apm/public/components/shared/DiscoverButton.tsx new file mode 100644 index 0000000000000..377153f927f33 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/DiscoverButton.tsx @@ -0,0 +1,31 @@ +/* + * 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. + */ + +// @ts-ignore +import { EuiButtonEmpty } from '@elastic/eui'; +import React from 'react'; +import { StringMap } from 'x-pack/plugins/apm/typings/common'; +import { KibanaLink } from '../../utils/url'; + +interface Props { + query: StringMap; + children: any; +} + +export function DiscoverButton({ query, children, ...rest }: Props) { + return ( + + + {children || 'View in Discover'} + + + ); +} diff --git a/x-pack/plugins/apm/public/components/shared/EmptyMessage.js b/x-pack/plugins/apm/public/components/shared/EmptyMessage.js deleted file mode 100644 index 45d1b453370cc..0000000000000 --- a/x-pack/plugins/apm/public/components/shared/EmptyMessage.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 React from 'react'; -import PropTypes from 'prop-types'; -import { EuiEmptyPrompt } from '@elastic/eui'; - -function EmptyMessage({ heading, subheading, hideSubheading }) { - if (!subheading) { - subheading = 'Try another time range or reset the search filter.'; - } - - return ( - {heading || 'No data found.'}

      } - body={!hideSubheading && subheading} - /> - ); -} - -EmptyMessage.propTypes = { - heading: PropTypes.string, - hideSubheading: PropTypes.bool -}; - -EmptyMessage.defaultProps = { - hideSubheading: false -}; - -export default EmptyMessage; diff --git a/x-pack/plugins/apm/public/components/shared/EmptyMessage.tsx b/x-pack/plugins/apm/public/components/shared/EmptyMessage.tsx new file mode 100644 index 0000000000000..274d063555d14 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/EmptyMessage.tsx @@ -0,0 +1,25 @@ +/* + * 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 { EuiEmptyPrompt } from '@elastic/eui'; +import React from 'react'; + +function EmptyMessage({ + heading = 'No data found.', + subheading = 'Try another time range or reset the search filter.', + hideSubheading = false +}) { + return ( + {heading || 'No data found.'}
      } + body={!hideSubheading && subheading} + /> + ); +} + +// tslint:disable-next-line:no-default-export +export default EmptyMessage; diff --git a/x-pack/plugins/apm/public/components/shared/HOCUtils.js b/x-pack/plugins/apm/public/components/shared/HOCUtils.js deleted file mode 100644 index 042d5086cf445..0000000000000 --- a/x-pack/plugins/apm/public/components/shared/HOCUtils.js +++ /dev/null @@ -1,9 +0,0 @@ -/* - * 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 function getDisplayName(WrappedComponent) { - return WrappedComponent.displayName || WrappedComponent.name || 'Component'; -} diff --git a/x-pack/plugins/apm/public/components/shared/ImpactBar/__test__/ImpactBar.test.js b/x-pack/plugins/apm/public/components/shared/ImpactBar/__test__/ImpactBar.test.js new file mode 100644 index 0000000000000..d4b3f223f726f --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/ImpactBar/__test__/ImpactBar.test.js @@ -0,0 +1,21 @@ +/* + * 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 { shallow } from 'enzyme'; +import React from 'react'; +import { ImpactBar } from '..'; + +describe('ImpactBar component', () => { + it('should render with default values', () => { + expect(shallow()).toMatchSnapshot(); + }); + + it('should render with overridden values', () => { + expect( + shallow() + ).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/apm/public/components/shared/ImpactBar/__test__/__snapshots__/ImpactBar.test.js.snap b/x-pack/plugins/apm/public/components/shared/ImpactBar/__test__/__snapshots__/ImpactBar.test.js.snap new file mode 100644 index 0000000000000..67378b5634040 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/ImpactBar/__test__/__snapshots__/ImpactBar.test.js.snap @@ -0,0 +1,21 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ImpactBar component should render with default values 1`] = ` + +`; + +exports[`ImpactBar component should render with overridden values 1`] = ` + +`; diff --git a/x-pack/plugins/apm/public/components/shared/ImpactBar/index.tsx b/x-pack/plugins/apm/public/components/shared/ImpactBar/index.tsx new file mode 100644 index 0000000000000..53f21c4e247c0 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/ImpactBar/index.tsx @@ -0,0 +1,21 @@ +/* + * 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 { EuiProgress } from '@elastic/eui'; +import React from 'react'; +import { StringMap } from '../../../../typings/common'; + +// TODO: extend from EUI's EuiProgress prop interface +export interface ImpactBarProps extends StringMap { + value: number; + max?: number; +} + +export function ImpactBar({ value, max = 100, ...rest }: ImpactBarProps) { + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/components/shared/KueryBar/Typeahead/index.js b/x-pack/plugins/apm/public/components/shared/KueryBar/Typeahead/index.js index 42da4d3ba267a..719eb3bc43d3e 100644 --- a/x-pack/plugins/apm/public/components/shared/KueryBar/Typeahead/index.js +++ b/x-pack/plugins/apm/public/components/shared/KueryBar/Typeahead/index.js @@ -6,11 +6,9 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import styled from 'styled-components'; import Suggestions from './Suggestions'; import ClickOutside from './ClickOutside'; -import { EuiFieldSearch, EuiProgress, EuiToolTip } from '@elastic/eui'; -import { units, fontSizes, colors } from '../../../../style/variables'; +import { EuiFieldSearch, EuiProgress } from '@elastic/eui'; const KEY_CODES = { LEFT: 37, @@ -22,16 +20,6 @@ const KEY_CODES = { TAB: 9 }; -const BetaLabel = styled.div` - position: absolute; - top: 0; - right: 0; - font-size: ${fontSizes.small}; - transform: translateY(calc(-100% - ${units.quarter}px)); - cursor: pointer; - color: ${colors.gray2}; -`; - export class Typeahead extends Component { state = { isSuggestionsVisible: false, @@ -173,12 +161,6 @@ export class Typeahead extends Component { style={{ position: 'relative' }} >
      - - -
      Beta
      -
      -
      - { + let people; + let columns; + + beforeEach(() => { + people = [ + { name: 'Jess', age: 29 }, + { name: 'Becky', age: 43 }, + { name: 'Thomas', age: 31 } + ]; + columns = [ + { + field: 'name', + name: 'Name', + sortable: true, + render: name => `Name: ${name}` + }, + { field: 'age', name: 'Age', render: age => `Age: ${age}` } + ]; + }); + + it('should render a page-full of items, with defaults', () => { + expect( + shallow() + ).toMatchSnapshot(); + }); + + it('should render when specifying initial values', () => { + expect( + shallow( + + ) + ).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/apm/public/components/shared/ManagedTable/__test__/__snapshots__/ManagedTable.test.js.snap b/x-pack/plugins/apm/public/components/shared/ManagedTable/__test__/__snapshots__/ManagedTable.test.js.snap new file mode 100644 index 0000000000000..59679bfe11641 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/ManagedTable/__test__/__snapshots__/ManagedTable.test.js.snap @@ -0,0 +1,103 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ManagedTable component should render a page-full of items, with defaults 1`] = ` + +`; + +exports[`ManagedTable component should render when specifying initial values 1`] = ` + +`; diff --git a/x-pack/plugins/apm/public/components/shared/ManagedTable/index.tsx b/x-pack/plugins/apm/public/components/shared/ManagedTable/index.tsx new file mode 100644 index 0000000000000..1b426121fce63 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/ManagedTable/index.tsx @@ -0,0 +1,95 @@ +/* + * 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. + */ + +// @ts-ignore +import { EuiBasicTable } from '@elastic/eui'; +import { get, sortByOrder } from 'lodash'; +import React, { Component } from 'react'; +import { StringMap } from '../../../../typings/common'; + +// TODO: this should really be imported from EUI +export interface ITableColumn { + field: string; + name: string; + dataType?: string; + align?: string; + width?: string; + sortable?: boolean; + render?: (value: any, item?: any) => any; +} + +export interface IManagedTableProps { + items: Array>; + columns: ITableColumn[]; + initialPageIndex?: number; + initialPageSize?: number; + hidePerPageOptions?: boolean; + initialSort?: { + field: string; + direction: 'asc' | 'desc'; + }; + noItemsMessage?: any; +} + +export class ManagedTable extends Component { + constructor(props: IManagedTableProps) { + super(props); + + const defaultSort = { + field: get(props, 'columns[0].field', ''), + direction: 'asc' + }; + + const { + initialPageIndex = 0, + initialPageSize = 10, + initialSort = defaultSort + } = props; + + this.state = { + page: { index: initialPageIndex, size: initialPageSize }, + sort: initialSort + }; + } + + public onTableChange = ({ page = {}, sort = {} }) => { + this.setState({ page, sort }); + }; + + public getCurrentItems() { + const { items } = this.props; + const { sort = {}, page = {} } = this.state; + // TODO: Use _.orderBy once we upgrade to lodash 4+ + const sorted = sortByOrder(items, sort.field, sort.direction); + return sorted.slice(page.index * page.size, (page.index + 1) * page.size); + } + + public render() { + const { + columns, + noItemsMessage, + items, + hidePerPageOptions = true + } = this.props; + const { page, sort } = this.state; + + return ( + + ); + } +} diff --git a/x-pack/plugins/apm/public/components/shared/Modal.js b/x-pack/plugins/apm/public/components/shared/Modal.js deleted file mode 100644 index 07e8d9ada9961..0000000000000 --- a/x-pack/plugins/apm/public/components/shared/Modal.js +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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 React from 'react'; -import Portal from 'react-portal'; -import PropTypes from 'prop-types'; -import styled from 'styled-components'; -import { Close } from './Icons'; -import { fontSizes, units, colors } from '../../style/variables'; -import { rgba } from 'polished'; - -const Header = styled.div` - display: flex; - justify-content: space-between; - align-items: center; -`; - -const HeaderTitle = styled.div` - font-size: ${fontSizes.xlarge}; -`; - -const CloseButton = styled(Close)` - cursor: pointer; - font-size: ${fontSizes.large}; -`; - -const ModalFixed = styled.div` - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; -`; - -const ModalOverlay = styled(ModalFixed)` - z-index: 10; - background: ${rgba(colors.gray2, 0.8)}; - height: 100%; -`; - -const ModalOuterContainer = styled(ModalFixed)` - z-index: 20; - overflow-x: hidden; - overflow-y: auto; -`; - -const ModalInnerContainer = styled.div` - position: relative; - background: white; - min-width: 800px; - width: 80%; - left: 50%; - transform: translateX(-50%); - padding: ${units.double}px; - border-radius: ${units.quarter}px; - margin: ${units.quadruple}px 0; -`; - -class Modal extends React.Component { - shouldComponentUpdate(nextProps) { - // TODO: Make sure this doesn't cause rendering issues - return this.props.isOpen !== nextProps.isOpen; - } - - componentWillUnmount() { - document.body.style.overflow = ''; - } - - onOpen = () => { - document.body.style.overflow = 'hidden'; - this.props.onOpen(); - }; - - onClose = () => { - document.body.style.overflow = ''; - this.props.onClose(); - }; - - close = () => this.props.close(); - - render() { - if (!this.props.isOpen) { - return null; - } - - return ( - -
      - - - e.stopPropagation()}> -
      - {this.props.header} - -
      - {this.props.children} -
      -
      -
      -
      - ); - } -} - -Modal.propTypes = { - children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]), - onOpen: PropTypes.func, - onClose: PropTypes.func, - close: PropTypes.func, - isOpen: PropTypes.bool -}; - -Modal.defaultProps = { - onOpen: () => {}, - onClose: () => {}, - close: () => {} -}; - -export default Modal; diff --git a/x-pack/plugins/apm/public/components/shared/PropertiesTable/NestedKeyValueTable.tsx b/x-pack/plugins/apm/public/components/shared/PropertiesTable/NestedKeyValueTable.tsx index 37671e7975f91..4804adbc80e4a 100644 --- a/x-pack/plugins/apm/public/components/shared/PropertiesTable/NestedKeyValueTable.tsx +++ b/x-pack/plugins/apm/public/components/shared/PropertiesTable/NestedKeyValueTable.tsx @@ -7,6 +7,8 @@ import _ from 'lodash'; import React from 'react'; import styled from 'styled-components'; + +import { StringMap } from '../../../../typings/common'; import { colors, fontFamilyCode, @@ -15,6 +17,8 @@ import { units } from '../../../style/variables'; +export type KeySorter = (data: StringMap, parentKey?: string) => string[]; + const Table = styled.table` font-family: ${fontFamilyCode}; font-size: ${fontSizes.small}; @@ -31,6 +35,7 @@ const Row = styled.tr` const Cell = styled.td` vertical-align: top; padding: ${px(units.half)} 0; + line-height: 1.5; ${Row}:first-child> & { padding-top: 0; diff --git a/x-pack/plugins/apm/public/components/shared/PropertiesTable/__test__/PropertiesTable.test.js b/x-pack/plugins/apm/public/components/shared/PropertiesTable/__test__/PropertiesTable.test.js index 7cee0b14c57af..0a90bedc95d32 100644 --- a/x-pack/plugins/apm/public/components/shared/PropertiesTable/__test__/PropertiesTable.test.js +++ b/x-pack/plugins/apm/public/components/shared/PropertiesTable/__test__/PropertiesTable.test.js @@ -12,9 +12,9 @@ import { sortKeysByConfig, getPropertyTabNames } from '..'; -import { getFeatureDocs } from '../../../../utils/documentation'; +import { getAgentFeatureDocsUrl } from '../../../../utils/documentation/agents'; -jest.mock('../../../../utils/documentation'); +jest.mock('../../../../utils/documentation/agents'); jest.mock('../propertyConfig.json', () => [ { key: 'testProperty', @@ -105,32 +105,13 @@ describe('getPropertyTabNames', () => { }); describe('AgentFeatureTipMessage component', () => { - let mockDocs; - const featureName = ''; - const agentName = ''; - - beforeEach(() => { - mockDocs = { - text: 'Mock Docs Text', - url: 'mock-url' - }; - getFeatureDocs.mockImplementation(() => mockDocs); - }); + const featureName = 'user'; + const agentName = 'nodejs'; it('should render when docs are returned', () => { - expect( - shallow( - - ) - ).toMatchSnapshot(); - expect(getFeatureDocs).toHaveBeenCalledWith(featureName, agentName); - }); + const mockDocs = 'mock-url'; + getAgentFeatureDocsUrl.mockImplementation(() => mockDocs); - it('should render when docs are returned, but missing a url', () => { - delete mockDocs.url; expect( shallow( { /> ) ).toMatchSnapshot(); + expect(getAgentFeatureDocsUrl).toHaveBeenCalledWith(featureName, agentName); }); it('should render null empty string when no docs are returned', () => { - mockDocs = null; + getAgentFeatureDocsUrl.mockImplementation(() => null); expect( shallow( - - Mock Docs Text + You can configure your agent to add contextual information about your users. `; -exports[`AgentFeatureTipMessage component should render when docs are returned, but missing a url 1`] = ` - - - Mock Docs Text - - -`; - exports[`PropertiesTable component should render empty when data has no keys 1`] = ` - - - No data available - + + No data available + + `; exports[`PropertiesTable component should render empty when data isn't present 1`] = ` - - - No data available - + + No data available + + `; @@ -68,7 +56,7 @@ exports[`PropertiesTable component should render with data 1`] = ` /> `; diff --git a/x-pack/plugins/apm/public/components/shared/PropertiesTable/index.tsx b/x-pack/plugins/apm/public/components/shared/PropertiesTable/index.tsx index 979a3cab39097..856dcd7bb07ad 100644 --- a/x-pack/plugins/apm/public/components/shared/PropertiesTable/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/PropertiesTable/index.tsx @@ -8,11 +8,20 @@ import { EuiIcon } from '@elastic/eui'; import _ from 'lodash'; import React from 'react'; import styled from 'styled-components'; -import { colors, fontSize, px, unit, units } from '../../../style/variables'; -import { getFeatureDocs } from '../../../utils/documentation'; + +import { StringMap } from '../../../../typings/common'; +import { + colors, + fontSize, + fontSizes, + px, + unit, + units +} from '../../../style/variables'; +import { getAgentFeatureDocsUrl } from '../../../utils/documentation/agents'; // @ts-ignore import { ExternalLink } from '../../../utils/url'; -import { NestedKeyValueTable } from './NestedKeyValueTable'; +import { KeySorter, NestedKeyValueTable } from './NestedKeyValueTable'; import PROPERTY_CONFIG from './propertyConfig.json'; const indexedPropertyConfig = _.indexBy(PROPERTY_CONFIG, 'key'); @@ -29,6 +38,15 @@ const TableInfo = styled.div` line-height: 1.5; `; +const TableInfoHeader = styled(TableInfo)` + font-size: ${fontSizes.large}; + color: ${colors.black2}; +`; + +const EuiIconWithSpace = styled(EuiIcon)` + margin-right: ${px(units.half)}; +`; + export function getPropertyTabNames(selected: string[]): string[] { return PROPERTY_CONFIG.filter( ({ key, required }: { key: string; required: boolean }) => @@ -36,28 +54,36 @@ export function getPropertyTabNames(selected: string[]): string[] { ).map(({ key }: { key: string }) => key); } +function getAgentFeatureText(featureName: string) { + switch (featureName) { + case 'user': + return 'You can configure your agent to add contextual information about your users.'; + case 'tags': + return 'You can configure your agent to add filterable tags on transactions.'; + case 'custom': + return 'You can configure your agent to add custom contextual information on transactions.'; + } +} + export function AgentFeatureTipMessage({ featureName, agentName }: { featureName: string; - agentName: string; -}): JSX.Element | null { - const docs = getFeatureDocs(featureName, agentName); - - if (!docs) { + agentName?: string; +}) { + const docsUrl = getAgentFeatureDocsUrl(featureName, agentName); + if (!docsUrl) { return null; } return ( - - {docs.text}{' '} - {docs.url && ( - - Learn more in the documentation. - - )} + + {getAgentFeatureText(featureName)}{' '} + + Learn more in the documentation. + ); } @@ -78,30 +104,23 @@ export function PropertiesTable({ }: { propData: StringMap; propKey: string; - agentName: string; + agentName?: string; }) { - if (_.isEmpty(propData)) { - return ( - - - No data available - - - ); - } + const hasPropData = !_.isEmpty(propData); return ( - - + {hasPropData ? ( + + ) : ( + No data available + )} + ); } diff --git a/x-pack/plugins/apm/public/components/shared/PropertiesTable/types.d.ts b/x-pack/plugins/apm/public/components/shared/PropertiesTable/types.d.ts deleted file mode 100644 index 057011fc8ab98..0000000000000 --- a/x-pack/plugins/apm/public/components/shared/PropertiesTable/types.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * 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. - */ - -type KeySorter = (data: StringMap, parentKey?: string) => string[]; diff --git a/x-pack/plugins/apm/public/components/shared/SetupInstructionsLink.tsx b/x-pack/plugins/apm/public/components/shared/SetupInstructionsLink.tsx new file mode 100644 index 0000000000000..e57754364fdc8 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/SetupInstructionsLink.tsx @@ -0,0 +1,24 @@ +/* + * 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 { EuiButton } from '@elastic/eui'; +import React from 'react'; +// @ts-ignore +import { KibanaLink } from '../../utils/url'; + +export function SetupInstructionsLink({ + buttonFill = false +}: { + buttonFill?: boolean; +}) { + return ( + + + Setup Instructions + + + ); +} diff --git a/x-pack/plugins/apm/public/components/shared/Stacktrace/index.js b/x-pack/plugins/apm/public/components/shared/Stacktrace/index.js index 2e93f5c17c0e3..0bec4149914d4 100644 --- a/x-pack/plugins/apm/public/components/shared/Stacktrace/index.js +++ b/x-pack/plugins/apm/public/components/shared/Stacktrace/index.js @@ -11,8 +11,7 @@ import CodePreview from '../../shared/CodePreview'; import { Ellipsis } from '../../shared/Icons'; import { units, px } from '../../../style/variables'; import EmptyMessage from '../../shared/EmptyMessage'; -import { EuiLink } from '@elastic/eui'; -import { HeaderXSmall } from '../UIComponents'; +import { EuiLink, EuiTitle } from '@elastic/eui'; const LibraryFrameToggle = styled.div` margin: 0 0 ${px(units.plus)} 0; @@ -75,7 +74,9 @@ class Stacktrace extends PureComponent { return (
      - Stacktraces + +

      Stack traces

      +
      {getCollapsedLibraryFrames(stackframes).map((item, i) => { if (!item.libraryFrame) { return ( diff --git a/x-pack/plugins/apm/public/components/shared/StickyProperties/StickyProperties.test.js b/x-pack/plugins/apm/public/components/shared/StickyProperties/StickyProperties.test.js index b35069a44f219..4cc7d9b978a40 100644 --- a/x-pack/plugins/apm/public/components/shared/StickyProperties/StickyProperties.test.js +++ b/x-pack/plugins/apm/public/components/shared/StickyProperties/StickyProperties.test.js @@ -6,9 +6,9 @@ import React from 'react'; import { StickyProperties } from './index'; -import { mount } from 'enzyme'; +import { shallow } from 'enzyme'; import { USER_ID, REQUEST_URL_FULL } from '../../../../common/constants'; -import { toJson, mockMoment } from '../../../utils/testHelpers'; +import { mockMoment } from '../../../utils/testHelpers'; describe('StickyProperties', () => { beforeEach(mockMoment); @@ -43,10 +43,10 @@ describe('StickyProperties', () => { } ]; - const wrapper = mount( + const wrapper = shallow( ); - expect(toJson(wrapper)).toMatchSnapshot(); + expect(wrapper).toMatchSnapshot(); }); }); diff --git a/x-pack/plugins/apm/public/components/shared/StickyProperties/__snapshots__/StickyProperties.test.js.snap b/x-pack/plugins/apm/public/components/shared/StickyProperties/__snapshots__/StickyProperties.test.js.snap index e71121fbe578e..0788f6fd759a5 100644 --- a/x-pack/plugins/apm/public/components/shared/StickyProperties/__snapshots__/StickyProperties.test.js.snap +++ b/x-pack/plugins/apm/public/components/shared/StickyProperties/__snapshots__/StickyProperties.test.js.snap @@ -1,168 +1,176 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`StickyProperties should render 1`] = ` -.c0 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - padding: 0 24px; - width: 100%; - -webkit-box-pack: start; - -webkit-justify-content: flex-start; - -ms-flex-pack: start; - justify-content: flex-start; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.c1 { - width: 33%; - margin-bottom: 16px; -} - -.c2 { - margin-bottom: 8px; - font-size: 12px; - color: #999999; -} - -.c2 span { - cursor: help; -} - -.c4 { - color: #999999; -} - -.c3 { - display: inline-block; - line-height: 16px; -} - -.c5 { - display: inline-block; - line-height: 16px; - max-width: 100%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -
      -
      -
      - + + @timestamp + + } + delay="regular" + position="top" > - Timestamp - -
      -
      - 1337 minutes ago (mocking 1536405447) - - - ( - 1st of January (mocking 1536405447) - ) - -
      -
      -
      + Timestamp + + + + + + -
      - + + context.request.url.full + + } + delay="regular" + position="top" > - URL - -
      - + URL + + + + - https://www.elastic.co/test - -
      -
      + https://www.elastic.co/test + + + + -
      - + + context.request.method + + } + delay="regular" + position="top" > - Request method - -
      -
      + + Request method + + + + GET -
      -
      -
      + + -
      - + + error.exception.handled + + } + delay="regular" + position="top" > - Handled - -
      -
      + + Handled + + + + true -
      -
      -
      + + -
      - + + context.user.id + + } + delay="regular" + position="top" > - User ID - -
      -
      + + User ID + + + + 1337 -
      -
      -
      + + + `; diff --git a/x-pack/plugins/apm/public/components/shared/StickyProperties/index.js b/x-pack/plugins/apm/public/components/shared/StickyProperties/index.js deleted file mode 100644 index 3c690e3031c6a..0000000000000 --- a/x-pack/plugins/apm/public/components/shared/StickyProperties/index.js +++ /dev/null @@ -1,116 +0,0 @@ -/* - * 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 React from 'react'; -import styled from 'styled-components'; -import moment from 'moment'; - -import { - unit, - units, - px, - fontSizes, - colors, - truncate -} from '../../../style/variables'; - -import TooltipOverlay, { fieldNameHelper } from '../../shared/TooltipOverlay'; - -const PropertiesContainer = styled.div` - display: flex; - padding: 0 ${px(units.plus)}; - width: 100%; - justify-content: flex-start; - flex-wrap: wrap; -`; - -const Property = styled.div` - width: 33%; - margin-bottom: ${px(unit)}; -`; - -const PropertyLabel = styled.div` - margin-bottom: ${px(units.half)}; - font-size: ${fontSizes.small}; - color: ${colors.gray3}; - - span { - cursor: help; - } -`; - -const PropertyValueDimmed = styled.span` - color: ${colors.gray3}; -`; - -const PropertyValue = styled.div` - display: inline-block; - line-height: ${px(unit)}; -`; - -const PropertyValueTruncated = styled.span` - display: inline-block; - line-height: ${px(unit)}; - ${truncate('100%')}; -`; - -function TimestampValue({ timestamp }) { - const time = moment(timestamp); - const timeAgo = timestamp ? time.fromNow() : 'N/A'; - const timestampFull = timestamp - ? time.format('MMMM Do YYYY, HH:mm:ss.SSS') - : 'N/A'; - - return ( - - {timeAgo} ({timestampFull}) - - ); -} - -function getPropertyLabel({ fieldName, label }) { - if (fieldName) { - return ( - - - {label} - - - ); - } - - return {label}; -} - -function getPropertyValue({ val, fieldName, truncated = false }) { - if (fieldName === '@timestamp') { - return ; - } - - if (truncated) { - return ( - - {String(val)} - - ); - } - - return {String(val)}; -} - -export function StickyProperties({ stickyProperties }) { - return ( - - {stickyProperties && - stickyProperties.map((prop, i) => ( - - {getPropertyLabel(prop)} - {getPropertyValue(prop)} - - ))} - - ); -} diff --git a/x-pack/plugins/apm/public/components/shared/StickyProperties/index.tsx b/x-pack/plugins/apm/public/components/shared/StickyProperties/index.tsx new file mode 100644 index 0000000000000..c0ef09d8ae338 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/StickyProperties/index.tsx @@ -0,0 +1,150 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import { EuiToolTip } from '@elastic/eui'; +import moment from 'moment'; +import React from 'react'; +import styled from 'styled-components'; +import { + colors, + fontFamilyCode, + fontSizes, + px, + truncate, + unit, + units +} from '../../../style/variables'; + +export interface IStickyProperty { + val: any; + label: string; + fieldName?: string; + width?: 0 | string; + truncated?: boolean; +} + +const TooltipFieldName = styled.span` + font-family: ${fontFamilyCode}; +`; + +const PropertyLabel = styled.div` + margin-bottom: ${px(units.half)}; + font-size: ${fontSizes.small}; + color: ${colors.gray3}; + + span { + cursor: help; + } +`; + +const PropertyValueDimmed = styled.span` + color: ${colors.gray3}; +`; + +const PropertyValue = styled.div` + display: inline-block; + line-height: ${px(unit)}; +`; + +const PropertyValueTruncated = styled.span` + display: inline-block; + line-height: ${px(unit)}; + ${truncate('100%')}; +`; + +function TimestampValue({ timestamp }: { timestamp: Date }) { + const time = moment(timestamp); + const timeAgo = timestamp ? time.fromNow() : 'N/A'; + const timestampFull = timestamp + ? time.format('MMMM Do YYYY, HH:mm:ss.SSS') + : 'N/A'; + + return ( + + {timeAgo} ({timestampFull}) + + ); +} + +function getPropertyLabel({ fieldName, label }: Partial) { + if (fieldName) { + return ( + + {fieldName}}> + {label} + + + ); + } + + return {label}; +} + +function getPropertyValue({ + val, + fieldName, + truncated = false +}: Partial) { + if (fieldName === '@timestamp') { + return ; + } + + if (truncated) { + return ( + + {String(val)} + + ); + } + + return {val}; +} + +export function StickyProperties({ + stickyProperties +}: { + stickyProperties: IStickyProperty[]; +}) { + /** + * Note: the padding and margin styles here are strange because + * EUI flex groups and items have a default "gutter" applied that + * won't allow percentage widths to line up correctly, so we have + * to turn the gutter off with gutterSize: none. When we do that, + * the top/bottom spacing *also* collapses, so we have to add + * padding between each item without adding it to the outside of + * the flex group itself. + * + * Hopefully we can make EUI handle this better and remove all this. + */ + const itemStyles = { + padding: '1em 1em 1em 0' + }; + const groupStyles = { + marginTop: '-1em', + marginBottom: '-1em' + }; + + return ( + + {stickyProperties && + stickyProperties.map(({ width = 0, ...prop }, i) => { + return ( + + {getPropertyLabel(prop)} + {getPropertyValue(prop)} + + ); + })} + + ); +} diff --git a/x-pack/plugins/apm/public/components/shared/TooltipOverlay.js b/x-pack/plugins/apm/public/components/shared/TooltipOverlay.js index 2addcc925ea91..c49fc01a4c124 100644 --- a/x-pack/plugins/apm/public/components/shared/TooltipOverlay.js +++ b/x-pack/plugins/apm/public/components/shared/TooltipOverlay.js @@ -5,15 +5,9 @@ */ import React from 'react'; -import styled from 'styled-components'; -import { fontFamilyCode } from '../../style/variables'; import { Tooltip } from 'pivotal-ui/react/tooltip'; import { OverlayTrigger } from 'pivotal-ui/react/overlay-trigger'; -const TooltipFieldName = styled.span` - font-family: ${fontFamilyCode}; -`; - function TooltipOverlay({ children, content, delay = 1000 }) { return ( - Field name:
      - {name} - - ); -} - export default TooltipOverlay; diff --git a/x-pack/plugins/apm/public/components/shared/TransactionLink.tsx b/x-pack/plugins/apm/public/components/shared/TransactionLink.tsx new file mode 100644 index 0000000000000..eab7735b5073e --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/TransactionLink.tsx @@ -0,0 +1,58 @@ +/* + * 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 React from 'react'; +import { Transaction } from '../../../typings/Transaction'; +import { KibanaLink, legacyEncodeURIComponent } from '../../utils/url'; + +interface TransactionLinkProps { + transaction?: Transaction; +} + +/** + * Return the path and query used to build a trace link, + * given either a v2 Transaction or a Transaction Group + */ +export function getLinkProps(transaction: Transaction) { + const serviceName = transaction.context.service.name; + const transactionType = transaction.transaction.type; + const traceId = + transaction.version === 'v2' ? transaction.trace.id : undefined; + const transactionId = transaction.transaction.id; + const name = transaction.transaction.name; + + const encodedName = legacyEncodeURIComponent(name); + + return { + hash: `/${serviceName}/transactions/${transactionType}/${encodedName}`, + query: { + traceId, + transactionId + } + }; +} + +export const TransactionLink: React.SFC = ({ + transaction, + children +}) => { + if (!transaction) { + return null; + } + + const linkProps = getLinkProps(transaction); + + if (!linkProps) { + // TODO: Should this case return unlinked children, null, or something else? + return {children}; + } + + return ( + + {children} + + ); +}; diff --git a/x-pack/plugins/apm/public/components/shared/UIComponents.js b/x-pack/plugins/apm/public/components/shared/UIComponents.js index 97030a3fa6d79..e286b68c7e495 100644 --- a/x-pack/plugins/apm/public/components/shared/UIComponents.js +++ b/x-pack/plugins/apm/public/components/shared/UIComponents.js @@ -5,14 +5,7 @@ */ import styled from 'styled-components'; -import { - unit, - units, - px, - fontSizes, - colors, - fontSize -} from '../../style/variables'; +import { unit, units, px, fontSizes, colors } from '../../style/variables'; import { RelativeLink } from '../../utils/url'; export const HeaderContainer = styled.div` @@ -47,12 +40,6 @@ export const HeaderSmall = styled.h3` ${props => props.css}; `; -export const HeaderXSmall = styled.h4` - margin: ${px(units.plus)} 0; - font-size: ${fontSize}; - ${props => props.css}; -`; - export const Tab = styled.div` display: inline-block; font-size: ${fontSizes.large}; diff --git a/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/Histogram.test.js b/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/Histogram.test.js index 24e1711608cfb..615de4c170065 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/Histogram.test.js +++ b/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/Histogram.test.js @@ -16,7 +16,7 @@ import { timeUnit } from '../../../../../utils/formatters'; import { toJson } from '../../../../../utils/testHelpers'; -import { getFormattedBuckets } from '../../../../app/TransactionDetails/Distribution/view'; +import { getFormattedBuckets } from '../../../../app/TransactionDetails/Distribution/index'; describe('Histogram', () => { let wrapper; @@ -38,9 +38,9 @@ describe('Histogram', () => { formatYShort={t => `${asDecimal(t)} occ.`} formatYLong={t => `${asDecimal(t)} occurrences`} tooltipHeader={bucket => - `${timeFormatter(bucket.x0, false)} - ${timeFormatter( + `${timeFormatter(bucket.x0, { withUnit: false })} - ${timeFormatter( bucket.x, - false + { withUnit: false } )} ${unit}` } width={800} @@ -98,9 +98,10 @@ describe('Histogram', () => { it('should update state with "hoveredBucket"', () => { expect(wrapper.state()).toEqual({ hoveredBucket: { - sampled: true, + sample: { + transactionId: '99c50a5b-44b4-4289-a3d1-a2815d128192' + }, style: { cursor: 'pointer' }, - transactionId: '99c50a5b-44b4-4289-a3d1-a2815d128192', x: 869010, x0: 811076, y: 49 @@ -124,9 +125,10 @@ describe('Histogram', () => { it('should call onClick with bucket', () => { expect(onClick).toHaveBeenCalledWith({ - sampled: true, + sample: { + transactionId: '99c50a5b-44b4-4289-a3d1-a2815d128192' + }, style: { cursor: 'pointer' }, - transactionId: '99c50a5b-44b4-4289-a3d1-a2815d128192', x: 869010, x0: 811076, y: 49 diff --git a/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap b/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap index 2dfbab058941d..24e63fa08719d 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap +++ b/x-pack/plugins/apm/public/components/shared/charts/Histogram/__test__/__snapshots__/Histogram.test.js.snap @@ -115,7 +115,7 @@ exports[`Histogram Initially should have default markup 1`] = ` textAnchor="middle" transform="translate(0, 18)" > - 0 + 0 ms {agentMark.name} - {asTime(agentMark.timeLabel)} + {asTime(agentMark.us)}
      } > diff --git a/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js b/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js index 32c9db3fe762a..e0ad041564a37 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js +++ b/x-pack/plugins/apm/public/components/shared/charts/Timeline/TimelineAxis.js @@ -6,7 +6,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -import _ from 'lodash'; +import { inRange } from 'lodash'; import { Sticky } from 'react-sticky'; import { XYPlot, XAxis } from 'react-vis'; import LastTickValue from './LastTickValue'; @@ -14,14 +14,26 @@ import AgentMarker from './AgentMarker'; import { colors, px } from '../../../../style/variables'; import { getTimeFormatter } from '../../../../utils/formatters'; -// Remove last tick if it's too close to xMax -const getXAxisTickValues = (tickValues, xMax) => - _.last(tickValues) * 1.05 > xMax ? tickValues.slice(0, -1) : tickValues; +// Remove any tick that is too close to traceRootDuration +const getXAxisTickValues = (tickValues, traceRootDuration) => { + if (traceRootDuration == null) { + return tickValues; + } -function TimelineAxis({ header, plotValues, agentMarks }) { + const padding = (tickValues[1] - tickValues[0]) / 2; + const lowerBound = traceRootDuration - padding; + const upperBound = traceRootDuration + padding; + + return tickValues.filter(value => { + const isInRange = inRange(value, lowerBound, upperBound); + return !isInRange && value !== traceRootDuration; + }); +}; + +function TimelineAxis({ plotValues, agentMarks, traceRootDuration }) { const { margins, tickValues, width, xDomain, xMax, xScale } = plotValues; const tickFormat = getTimeFormatter(xMax); - const xAxisTickValues = getXAxisTickValues(tickValues, xMax); + const xAxisTickValues = getXAxisTickValues(tickValues, traceRootDuration); return ( @@ -38,13 +50,12 @@ function TimelineAxis({ header, plotValues, agentMarks }) { ...style }} > - {header} - + {traceRootDuration && ( + + )} {agentMarks.map(agentMark => ( ))} diff --git a/x-pack/plugins/apm/public/components/shared/charts/Timeline/VerticalLines.js b/x-pack/plugins/apm/public/components/shared/charts/Timeline/VerticalLines.js index 317f01290f403..a459b625ae820 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Timeline/VerticalLines.js +++ b/x-pack/plugins/apm/public/components/shared/charts/Timeline/VerticalLines.js @@ -11,18 +11,16 @@ import { colors } from '../../../../style/variables'; class VerticalLines extends PureComponent { render() { + const { traceRootDuration } = this.props; const { width, height, margins, xDomain, - tickValues, - xMax + tickValues } = this.props.plotValues; - const agentMarkTimes = this.props.agentMarks.map( - ({ timeAxis }) => timeAxis - ); + const agentMarkTimes = this.props.agentMarks.map(({ us }) => us); return (
      + + {traceRootDuration && ( + + )}
      ); diff --git a/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/Timeline.test.js b/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/Timeline.test.js index 2b92ae4c9fbf2..ba30c70c59672 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/Timeline.test.js +++ b/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/Timeline.test.js @@ -9,7 +9,6 @@ import { mount } from 'enzyme'; import { StickyContainer } from 'react-sticky'; import Timeline from '../index'; -import props from './props.json'; import { mockMoment, toJson } from '../../../../../utils/testHelpers'; describe('Timeline', () => { @@ -18,9 +17,28 @@ describe('Timeline', () => { }); it('should render with data', () => { + const props = { + traceRootDuration: 200000, + width: 1000, + duration: 200000, + height: 116, + margins: { + top: 100, + left: 50, + right: 50, + bottom: 0 + }, + animation: null, + agentMarks: [ + { name: 'timeToFirstByte', us: 100000 }, + { name: 'domInteractive', us: 110000 }, + { name: 'domComplete', us: 190000 } + ] + }; + const wrapper = mount( - Hello - i am a header
      } {...props} /> + ); diff --git a/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap b/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap index dc61c85c9db76..ab80ff30a4ca8 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap +++ b/x-pack/plugins/apm/public/components/shared/charts/Timeline/__test__/__snapshots__/Timeline.test.js.snap @@ -57,21 +57,18 @@ exports[`Timeline should render with data 1`] = ` } } > -
      - Hello - i am a header -
      - 0 + 0 ms 20 ms @@ -189,7 +186,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(175.8817293082474, 0)" + transform="translate(180, 0)" > 40 ms @@ -231,7 +228,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(263.82259396237106, 0)" + transform="translate(270, 0)" > 60 ms @@ -273,7 +270,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(351.7634586164948, 0)" + transform="translate(360, 0)" > 80 ms @@ -315,7 +312,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(439.7043232706185, 0)" + transform="translate(450, 0)" > 100 ms @@ -357,7 +354,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(527.6451879247421, 0)" + transform="translate(540, 0)" > 120 ms @@ -399,7 +396,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(615.5860525788659, 0)" + transform="translate(630, 0)" > 140 ms @@ -441,7 +438,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(703.5269172329896, 0)" + transform="translate(720, 0)" > 160 ms @@ -483,7 +480,7 @@ exports[`Timeline should render with data 1`] = ` }, } } - transform="translate(791.4677818871132, 0)" + transform="translate(810, 0)" > 180 ms @@ -519,21 +516,22 @@ exports[`Timeline should render with data 1`] = ` - 205 ms + 200 ms
      @@ -685,8 +685,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={175.8817293082474} - x2={175.8817293082474} + x1={180} + x2={180} y1={0} y2={116} /> @@ -697,8 +697,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={263.82259396237106} - x2={263.82259396237106} + x1={270} + x2={270} y1={0} y2={116} /> @@ -709,8 +709,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={351.7634586164948} - x2={351.7634586164948} + x1={360} + x2={360} y1={0} y2={116} /> @@ -721,8 +721,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={439.7043232706185} - x2={439.7043232706185} + x1={450} + x2={450} y1={0} y2={116} /> @@ -733,8 +733,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={527.6451879247421} - x2={527.6451879247421} + x1={540} + x2={540} y1={0} y2={116} /> @@ -745,8 +745,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={615.5860525788659} - x2={615.5860525788659} + x1={630} + x2={630} y1={0} y2={116} /> @@ -757,8 +757,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={703.5269172329896} - x2={703.5269172329896} + x1={720} + x2={720} y1={0} y2={116} /> @@ -769,8 +769,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={791.4677818871132} - x2={791.4677818871132} + x1={810} + x2={810} y1={0} y2={116} /> @@ -781,8 +781,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#f5f5f5", } } - x1={879.408646541237} - x2={879.408646541237} + x1={900} + x2={900} y1={0} y2={116} /> @@ -798,8 +798,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#999999", } } - x1={439.7043232706185} - x2={439.7043232706185} + x1={450} + x2={450} y1={0} y2={116} /> @@ -810,8 +810,8 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#999999", } } - x1={483.6747555976803} - x2={483.6747555976803} + x1={495.00000000000006} + x2={495.00000000000006} y1={0} y2={116} /> @@ -822,11 +822,16 @@ exports[`Timeline should render with data 1`] = ` "stroke": "#999999", } } - x1={835.4382142141751} - x2={835.4382142141751} + x1={855} + x2={855} y1={0} y2={116} /> + + state.duration, - state => state.height, - state => state.margins, - state => state.width, - getPlotValues - ); - render() { - const { width, duration, header, agentMarks } = this.props; + const { + width, + duration, + agentMarks, + traceRootDuration, + height, + margins + } = this.props; if (duration == null || !width) { return null; } - - const plotValues = this.getPlotValues(this.props); + const plotValues = getPlotValues({ width, duration, height, margins }); return (
      + -
      ); } @@ -45,7 +46,7 @@ class Timeline extends PureComponent { Timeline.propTypes = { agentMarks: PropTypes.array, - duration: PropTypes.number.isRequired, + duration: PropTypes.number, height: PropTypes.number.isRequired, header: PropTypes.node, margins: PropTypes.object.isRequired, diff --git a/x-pack/plugins/apm/public/components/shared/charts/Timeline/plotUtils.js b/x-pack/plugins/apm/public/components/shared/charts/Timeline/plotUtils.js index 383a5a26b8ac0..e3004edd7b3d9 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/Timeline/plotUtils.js +++ b/x-pack/plugins/apm/public/components/shared/charts/Timeline/plotUtils.js @@ -6,7 +6,7 @@ import { scaleLinear } from 'd3-scale'; -export function getPlotValues(duration, height, margins, width) { +export function getPlotValues({ width, duration, height, margins }) { const xMin = 0; const xMax = duration; const xScale = scaleLinear() diff --git a/x-pack/plugins/apm/public/components/shared/charts/TransactionCharts/index.js b/x-pack/plugins/apm/public/components/shared/charts/TransactionCharts/index.js index 72c77caba9a34..6d42bc2d8230d 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/TransactionCharts/index.js +++ b/x-pack/plugins/apm/public/components/shared/charts/TransactionCharts/index.js @@ -5,11 +5,12 @@ */ import React, { Component } from 'react'; +import { EuiTitle } from '@elastic/eui'; import PropTypes from 'prop-types'; import CustomPlot from '../CustomPlot'; import { asMillis, tpmUnit, asInteger } from '../../../../utils/formatters'; import styled from 'styled-components'; -import { units, unit, px, fontSizes } from '../../../../style/variables'; +import { units, unit, px } from '../../../../style/variables'; import { timefilter } from 'ui/timefilter'; import moment from 'moment'; @@ -41,11 +42,6 @@ const ChartHeader = styled.div` margin-bottom: ${px(units.half)}; `; -const ChartTitle = styled.div` - font-weight: 600; - font-size: ${fontSizes.large}; -`; - export class Charts extends Component { state = { hoverX: null @@ -67,11 +63,7 @@ export class Charts extends Component { }; getResponseTimeTooltipFormatter = (p = {}) => { - if (this.props.charts.noHits) { - return '- ms'; - } else { - return p.y == null ? 'N/A' : asMillis(p.y); - } + return this.props.charts.noHits ? '- ms' : asMillis(p.y); }; getTPMFormatter = t => { @@ -92,7 +84,9 @@ export class Charts extends Component { - {responseTimeLabel(transactionType)} + +
      {responseTimeLabel(transactionType)}
      +
      {this.props.ChartHeaderContent}
      - {tpmLabel(transactionType)} + +
      {tpmLabel(transactionType)}
      +
      { + const showPluginBreadcrumbs = !chrome + .getUiSettingsClient() + .get('k7design', false); + ReactDOM.render( - + , document.getElementById('react-apm-breadcrumbs') ); diff --git a/x-pack/plugins/apm/public/services/rest/apm.js b/x-pack/plugins/apm/public/services/rest/apm.js deleted file mode 100644 index 3fd48afba9a3e..0000000000000 --- a/x-pack/plugins/apm/public/services/rest/apm.js +++ /dev/null @@ -1,224 +0,0 @@ -/* - * 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 { camelizeKeys } from 'humps'; -import { convertKueryToEsQuery } from '../kuery'; -import { callApi } from './callApi'; -import { getAPMIndexPattern } from './savedObjects'; - -export async function loadLicense() { - return callApi({ - pathname: `/api/xpack/v1/info` - }); -} - -export async function loadServerStatus() { - return callApi({ - pathname: `/api/apm/status/server` - }); -} - -export async function loadAgentStatus() { - return callApi({ - pathname: `/api/apm/status/agent` - }); -} - -export async function getEncodedEsQuery(kuery) { - if (!kuery) { - return; - } - - const indexPattern = await getAPMIndexPattern(); - - if (!indexPattern) { - return; - } - - const esFilterQuery = convertKueryToEsQuery(kuery, indexPattern); - return encodeURIComponent(JSON.stringify(esFilterQuery)); -} - -export async function loadServiceList({ start, end, kuery }) { - return callApi({ - pathname: `/api/apm/services`, - query: { - start, - end, - esFilterQuery: await getEncodedEsQuery(kuery) - } - }); -} - -export async function loadServiceDetails({ serviceName, start, end, kuery }) { - return callApi({ - pathname: `/api/apm/services/${serviceName}`, - query: { - start, - end, - esFilterQuery: await getEncodedEsQuery(kuery) - } - }); -} - -export async function loadTransactionList({ - serviceName, - start, - end, - kuery, - transactionType -}) { - return callApi({ - pathname: `/api/apm/services/${serviceName}/transactions`, - query: { - start, - end, - esFilterQuery: await getEncodedEsQuery(kuery), - transaction_type: transactionType - } - }); -} - -export async function loadTransactionDistribution({ - serviceName, - start, - end, - transactionName, - kuery -}) { - return callApi({ - pathname: `/api/apm/services/${serviceName}/transactions/distribution`, - query: { - start, - end, - transaction_name: transactionName, - esFilterQuery: await getEncodedEsQuery(kuery) - } - }); -} - -export async function loadSpans({ serviceName, start, end, transactionId }) { - return callApi({ - pathname: `/api/apm/services/${serviceName}/transactions/${transactionId}/spans`, - query: { - start, - end - } - }); -} - -export async function loadTransaction({ - serviceName, - start, - end, - transactionId, - kuery -}) { - const res = await callApi( - { - pathname: `/api/apm/services/${serviceName}/transactions/${transactionId}`, - query: { - start, - end, - esFilterQuery: await getEncodedEsQuery(kuery) - } - }, - { - camelcase: false - } - ); - const camelizedRes = camelizeKeys(res); - if (res.context) { - camelizedRes.context = res.context; - } - return camelizedRes; -} - -export async function loadCharts({ - serviceName, - start, - end, - kuery, - transactionType, - transactionName -}) { - return callApi({ - pathname: `/api/apm/services/${serviceName}/transactions/charts`, - query: { - start, - end, - esFilterQuery: await getEncodedEsQuery(kuery), - transaction_type: transactionType, - transaction_name: transactionName - } - }); -} - -export async function loadErrorGroupList({ - serviceName, - start, - end, - kuery, - size, - sortField, - sortDirection -}) { - return callApi({ - pathname: `/api/apm/services/${serviceName}/errors`, - query: { - start, - end, - size, - sortField, - sortDirection, - esFilterQuery: await getEncodedEsQuery(kuery) - } - }); -} - -export async function loadErrorGroupDetails({ - serviceName, - start, - end, - kuery, - errorGroupId -}) { - const res = await callApi( - { - pathname: `/api/apm/services/${serviceName}/errors/${errorGroupId}`, - query: { - start, - end, - esFilterQuery: await getEncodedEsQuery(kuery) - } - }, - { - camelcase: false - } - ); - const camelizedRes = camelizeKeys(res); - if (res.error.context) { - camelizedRes.error.context = res.error.context; - } - return camelizedRes; -} - -export async function loadErrorDistribution({ - serviceName, - start, - end, - kuery, - errorGroupId -}) { - return callApi({ - pathname: `/api/apm/services/${serviceName}/errors/${errorGroupId}/distribution`, - query: { - start, - end, - esFilterQuery: await getEncodedEsQuery(kuery) - } - }); -} diff --git a/x-pack/plugins/apm/public/services/rest/apm.ts b/x-pack/plugins/apm/public/services/rest/apm.ts new file mode 100644 index 0000000000000..3a390492f8c72 --- /dev/null +++ b/x-pack/plugins/apm/public/services/rest/apm.ts @@ -0,0 +1,316 @@ +/* + * 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. + */ + +// @ts-ignore +import { camelizeKeys } from 'humps'; +import { ServiceResponse } from 'x-pack/plugins/apm/server/lib/services/get_service'; +import { ServiceListItemResponse } from 'x-pack/plugins/apm/server/lib/services/get_services'; +import { IDistributionResponse } from 'x-pack/plugins/apm/server/lib/transactions/distribution/get_distribution'; +import { Span } from 'x-pack/plugins/apm/typings/Span'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { ITransactionGroup } from 'x-pack/plugins/apm/typings/TransactionGroup'; +import { WaterfallResponse } from 'x-pack/plugins/apm/typings/waterfall'; +import { IUrlParams } from '../../store/urlParams'; +// @ts-ignore +import { convertKueryToEsQuery } from '../kuery'; +// @ts-ignore +import { callApi } from './callApi'; +// @ts-ignore +import { getAPMIndexPattern } from './savedObjects'; + +export async function loadLicense() { + return callApi({ + pathname: `/api/xpack/v1/info` + }); +} + +export async function loadServerStatus() { + return callApi({ + pathname: `/api/apm/status/server` + }); +} + +export async function loadAgentStatus() { + return callApi({ + pathname: `/api/apm/status/agent` + }); +} + +export async function getEncodedEsQuery(kuery?: string) { + if (!kuery) { + return; + } + + const indexPattern = await getAPMIndexPattern(); + + if (!indexPattern) { + return; + } + + const esFilterQuery = convertKueryToEsQuery(kuery, indexPattern); + return encodeURIComponent(JSON.stringify(esFilterQuery)); +} + +export async function loadServiceList({ + start, + end, + kuery +}: IUrlParams): Promise { + return callApi({ + pathname: `/api/apm/services`, + query: { + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }); +} + +export async function loadServiceDetails({ + serviceName, + start, + end, + kuery +}: IUrlParams): Promise { + return callApi({ + pathname: `/api/apm/services/${serviceName}`, + query: { + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }); +} + +export async function loadTraceList({ + start, + end, + kuery +}: IUrlParams): Promise { + const groups: ITransactionGroup[] = await callApi({ + pathname: '/api/apm/traces', + query: { + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }); + + return groups.map(group => { + group.sample = addVersion(group.sample); + return group; + }); +} + +export async function loadTransactionList({ + serviceName, + start, + end, + kuery, + transactionType +}: IUrlParams): Promise { + const groups: ITransactionGroup[] = await callApi({ + pathname: `/api/apm/services/${serviceName}/transactions`, + query: { + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery), + transaction_type: transactionType + } + }); + + return groups.map(group => { + group.sample = addVersion(group.sample); + return group; + }); +} + +export async function loadTransactionDistribution({ + serviceName, + start, + end, + transactionName, + kuery +}: IUrlParams): Promise { + return callApi({ + pathname: `/api/apm/services/${serviceName}/transactions/distribution`, + query: { + start, + end, + transaction_name: transactionName, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }); +} + +function addVersion( + item: T +): T { + if (item != null) { + item.version = item.hasOwnProperty('trace') ? 'v2' : 'v1'; + } + + return item; +} + +function addSpanId(hit: Span, i: number) { + if (!hit.span.id) { + hit.span.id = i; + } + return hit; +} + +export async function loadSpans({ + serviceName, + start, + end, + transactionId +}: IUrlParams): Promise { + const hits: Span[] = await callApi({ + pathname: `/api/apm/services/${serviceName}/transactions/${transactionId}/spans`, + query: { + start, + end + } + }); + + return hits.map(addVersion).map(addSpanId); +} + +export async function loadTrace({ traceId, start, end }: IUrlParams) { + const hits: WaterfallResponse = await callApi( + { + pathname: `/api/apm/traces/${traceId}`, + query: { + start, + end + } + }, + { + camelcase: false + } + ); + + return hits.map(addVersion); +} + +export async function loadTransaction({ + serviceName, + start, + end, + transactionId, + traceId, + kuery +}: IUrlParams) { + const result: Transaction | null = await callApi( + { + pathname: `/api/apm/services/${serviceName}/transactions/${transactionId}`, + query: { + traceId, + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }, + { + camelcase: false + } + ); + + return addVersion(result); +} + +export async function loadCharts({ + serviceName, + start, + end, + kuery, + transactionType, + transactionName +}: IUrlParams) { + return callApi({ + pathname: `/api/apm/services/${serviceName}/transactions/charts`, + query: { + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery), + transaction_type: transactionType, + transaction_name: transactionName + } + }); +} + +interface ErrorGroupListParams extends IUrlParams { + size: number; + sortField: string; + sortDirection: string; +} + +export async function loadErrorGroupList({ + serviceName, + start, + end, + kuery, + size, + sortField, + sortDirection +}: ErrorGroupListParams) { + return callApi({ + pathname: `/api/apm/services/${serviceName}/errors`, + query: { + start, + end, + size, + sortField, + sortDirection, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }); +} + +export async function loadErrorGroupDetails({ + serviceName, + start, + end, + kuery, + errorGroupId +}: IUrlParams) { + const res = await callApi( + { + pathname: `/api/apm/services/${serviceName}/errors/${errorGroupId}`, + query: { + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }, + { + camelcase: false + } + ); + const camelizedRes = camelizeKeys(res); + if (res.error.context) { + camelizedRes.error.context = res.error.context; + } + return camelizedRes; +} + +export async function loadErrorDistribution({ + serviceName, + start, + end, + kuery, + errorGroupId +}: IUrlParams) { + return callApi({ + pathname: `/api/apm/services/${serviceName}/errors/${errorGroupId}/distribution`, + query: { + start, + end, + esFilterQuery: await getEncodedEsQuery(kuery) + } + }); +} diff --git a/x-pack/plugins/apm/public/store/__jest__/rootReducer.test.js b/x-pack/plugins/apm/public/store/__jest__/rootReducer.test.js index 46e96d5303b22..2db1f1f23eb26 100644 --- a/x-pack/plugins/apm/public/store/__jest__/rootReducer.test.js +++ b/x-pack/plugins/apm/public/store/__jest__/rootReducer.test.js @@ -4,11 +4,11 @@ * you may not use this file except in compliance with the Elastic License. */ -import reducer from '../rootReducer'; +import { rootReducer } from '../rootReducer'; describe('root reducer', () => { it('should return the initial state', () => { - expect(reducer(undefined, {})).toEqual({ + expect(rootReducer(undefined, {})).toEqual({ location: { hash: '', pathname: '', search: '' }, reactReduxRequest: {}, urlParams: {} diff --git a/x-pack/plugins/apm/public/store/__jest__/urlParams.test.js b/x-pack/plugins/apm/public/store/__jest__/urlParams.test.js index bd849be83c0df..c55e8e66724c4 100644 --- a/x-pack/plugins/apm/public/store/__jest__/urlParams.test.js +++ b/x-pack/plugins/apm/public/store/__jest__/urlParams.test.js @@ -4,12 +4,12 @@ * you may not use this file except in compliance with the Elastic License. */ -import reducer, { updateTimePicker } from '../urlParams'; +import { urlParamsReducer, updateTimePicker } from '../urlParams'; import { LOCATION_UPDATE } from '../location'; describe('urlParams', () => { it('should handle LOCATION_UPDATE for transactions section', () => { - const state = reducer( + const state = urlParamsReducer( {}, { type: LOCATION_UPDATE, @@ -34,7 +34,7 @@ describe('urlParams', () => { }); it('should handle LOCATION_UPDATE for error section', () => { - const state = reducer( + const state = urlParamsReducer( {}, { type: LOCATION_UPDATE, @@ -56,7 +56,7 @@ describe('urlParams', () => { }); it('should handle TIMEPICKER_UPDATE', () => { - const state = reducer( + const state = urlParamsReducer( {}, updateTimePicker({ min: 'minTime', diff --git a/x-pack/plugins/apm/public/store/config/configureStore.dev.js b/x-pack/plugins/apm/public/store/config/configureStore.dev.js index e2f37391ee317..8187e87507858 100644 --- a/x-pack/plugins/apm/public/store/config/configureStore.dev.js +++ b/x-pack/plugins/apm/public/store/config/configureStore.dev.js @@ -7,7 +7,7 @@ import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import throttle from '../middleware/throttle'; -import rootReducer from '../rootReducer'; +import { rootReducer } from '../rootReducer'; export default function configureStore(preloadedState) { const composeEnhancers = diff --git a/x-pack/plugins/apm/public/store/config/configureStore.prod.js b/x-pack/plugins/apm/public/store/config/configureStore.prod.js index d52bc2ba45f53..ee3034156b927 100644 --- a/x-pack/plugins/apm/public/store/config/configureStore.prod.js +++ b/x-pack/plugins/apm/public/store/config/configureStore.prod.js @@ -6,7 +6,7 @@ import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; -import rootReducer from '../rootReducer'; +import { rootReducer } from '../rootReducer'; export default function configureStore(preloadedState) { return createStore(rootReducer, preloadedState, applyMiddleware(thunk)); diff --git a/x-pack/plugins/apm/public/store/mockData/mockTraceList.json b/x-pack/plugins/apm/public/store/mockData/mockTraceList.json new file mode 100644 index 0000000000000..4e97a030a2621 --- /dev/null +++ b/x-pack/plugins/apm/public/store/mockData/mockTraceList.json @@ -0,0 +1,30 @@ +[ + { + "name": "log", + "serviceName": "flask-server", + "averageResponseTime": 1329, + "tracesPerMinute": 3201, + "impact": 70 + }, + { + "name": "products/item", + "serviceName": "client", + "averageResponseTime": 2301, + "tracesPerMinute": 5432, + "impact": 42 + }, + { + "name": "billing/payment", + "serviceName": "client", + "averageResponseTime": 789, + "tracesPerMinute": 1201, + "impact": 14 + }, + { + "name": "user/profile", + "serviceName": "client", + "averageResponseTime": 1212, + "tracesPerMinute": 904, + "impact": 92 + } +] diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/errorDistribution.js b/x-pack/plugins/apm/public/store/reactReduxRequest/errorDistribution.js index b01bee5f37d78..a800b31f9b3b5 100644 --- a/x-pack/plugins/apm/public/store/reactReduxRequest/errorDistribution.js +++ b/x-pack/plugins/apm/public/store/reactReduxRequest/errorDistribution.js @@ -20,7 +20,7 @@ export function getErrorDistribution(state) { export function ErrorDistributionRequest({ urlParams, render }) { const { serviceName, start, end, errorGroupId, kuery } = urlParams; - if (!(serviceName, start, end, errorGroupId)) { + if (!(serviceName && start && end && errorGroupId)) { return null; } diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/spans.js b/x-pack/plugins/apm/public/store/reactReduxRequest/spans.js deleted file mode 100644 index eb35e32a311e0..0000000000000 --- a/x-pack/plugins/apm/public/store/reactReduxRequest/spans.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 React from 'react'; -import { createInitialDataSelector } from './helpers'; -import { Request } from 'react-redux-request'; -import { loadSpans } from '../../services/rest/apm'; - -const ID = 'spans'; -const INITIAL_DATA = {}; -const withInitialData = createInitialDataSelector(INITIAL_DATA); - -export function getSpans(state) { - return withInitialData(state.reactReduxRequest[ID]); -} - -export function SpansRequest({ urlParams, render }) { - const { serviceName, start, end, transactionId, kuery } = urlParams; - - if (!(serviceName && start && end && transactionId)) { - return null; - } - - return ( - - ); -} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/traceList.js b/x-pack/plugins/apm/public/store/reactReduxRequest/traceList.js new file mode 100644 index 0000000000000..804e404189861 --- /dev/null +++ b/x-pack/plugins/apm/public/store/reactReduxRequest/traceList.js @@ -0,0 +1,48 @@ +/* + * 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 React from 'react'; +import { Request } from 'react-redux-request'; +import { createSelector } from 'reselect'; +import { loadTraceList } from '../../services/rest/apm'; +import { createInitialDataSelector } from './helpers'; + +const ID = 'traceList'; +const INITIAL_DATA = []; +const withInitialData = createInitialDataSelector(INITIAL_DATA); + +const selectRRR = (state = {}) => state.reactReduxRequest; + +export const selectTraceList = createSelector( + [selectRRR], + reactReduxRequest => { + return withInitialData(reactReduxRequest[ID]); + } +); + +export function TraceListRequest({ urlParams = {}, render }) { + const { start, end, kuery } = urlParams; + + if (!start || !end) { + return null; + } + + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDetails.js b/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDetails.js deleted file mode 100644 index bfc2c0fee99e0..0000000000000 --- a/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDetails.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 React from 'react'; -import { createInitialDataSelector } from './helpers'; -import { Request } from 'react-redux-request'; -import { loadTransaction } from '../../services/rest/apm'; - -const ID = 'transactionDetails'; -const INITIAL_DATA = {}; -const withInitialData = createInitialDataSelector(INITIAL_DATA); - -export function getTransactionDetails(state) { - return withInitialData(state.reactReduxRequest[ID]); -} - -export function TransactionDetailsRequest({ urlParams, render }) { - const { serviceName, start, end, transactionId, kuery } = urlParams; - - if (!(serviceName && start && end && transactionId)) { - return null; - } - - return ( - - ); -} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDetails.tsx b/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDetails.tsx new file mode 100644 index 0000000000000..0e1d5ece186db --- /dev/null +++ b/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDetails.tsx @@ -0,0 +1,43 @@ +/* + * 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 React from 'react'; +import { Request, RRRRender } from 'react-redux-request'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { loadTransaction } from '../../services/rest/apm'; +import { IReduxState } from '../rootReducer'; +import { IUrlParams } from '../urlParams'; +// @ts-ignore +import { createInitialDataSelector } from './helpers'; + +const ID = 'transactionDetails'; +export function getTransactionDetails(state: IReduxState) { + return state.reactReduxRequest[ID]; +} + +export function TransactionDetailsRequest({ + urlParams, + render +}: { + urlParams: IUrlParams; + render: RRRRender; +}) { + const { serviceName, start, end, transactionId, traceId, kuery } = urlParams; + + if (!(serviceName && start && end && transactionId)) { + return null; + } + + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDistribution.js b/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDistribution.js deleted file mode 100644 index ffc2d27614695..0000000000000 --- a/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDistribution.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 React from 'react'; -import { createInitialDataSelector } from './helpers'; -import { Request } from 'react-redux-request'; -import { loadTransactionDistribution } from '../../services/rest/apm'; - -const ID = 'transactionDistribution'; -const INITIAL_DATA = { buckets: [], totalHits: 0 }; -const withInitialData = createInitialDataSelector(INITIAL_DATA); - -export function getTransactionDistribution(state) { - return withInitialData(state.reactReduxRequest[ID]); -} - -export function getDefaultTransactionId(state) { - const distribution = getTransactionDistribution(state); - return distribution.data.defaultTransactionId; -} - -export function TransactionDistributionRequest({ urlParams, render }) { - const { serviceName, start, end, transactionName, kuery } = urlParams; - - if (!(serviceName && start && end && transactionName)) { - return null; - } - - return ( - - ); -} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDistribution.tsx b/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDistribution.tsx new file mode 100644 index 0000000000000..b52644d6881d5 --- /dev/null +++ b/x-pack/plugins/apm/public/store/reactReduxRequest/transactionDistribution.tsx @@ -0,0 +1,57 @@ +/* + * 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 React from 'react'; +import { Request, RRRRender, RRRRenderResponse } from 'react-redux-request'; +import { IDistributionResponse } from '../../../server/lib/transactions/distribution/get_distribution'; +import { loadTransactionDistribution } from '../../services/rest/apm'; +import { IReduxState } from '../rootReducer'; +import { IUrlParams } from '../urlParams'; +// @ts-ignore +import { createInitialDataSelector } from './helpers'; + +const ID = 'transactionDistribution'; +const INITIAL_DATA = { buckets: [], totalHits: 0 }; +const withInitialData = createInitialDataSelector(INITIAL_DATA); + +export function getTransactionDistribution( + state: IReduxState +): RRRRenderResponse { + return withInitialData(state.reactReduxRequest[ID]); +} + +export function getDefaultDistributionSample(state: IReduxState) { + const distribution = getTransactionDistribution(state); + const { defaultSample = {} } = distribution.data; + return { + traceId: defaultSample.traceId, + transactionId: defaultSample.transactionId + }; +} + +export function TransactionDistributionRequest({ + urlParams, + render +}: { + urlParams: IUrlParams; + render: RRRRender; +}) { + const { serviceName, start, end, transactionName, kuery } = urlParams; + + if (!(serviceName && start && end && transactionName)) { + return null; + } + + return ( + + ); +} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/waterfall.tsx b/x-pack/plugins/apm/public/store/reactReduxRequest/waterfall.tsx new file mode 100644 index 0000000000000..13038fdea15d7 --- /dev/null +++ b/x-pack/plugins/apm/public/store/reactReduxRequest/waterfall.tsx @@ -0,0 +1,40 @@ +/* + * 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 React from 'react'; +import { RRRRender } from 'react-redux-request'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { IWaterfall } from '../../components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers'; +import { IUrlParams } from '../urlParams'; +import { WaterfallV1Request } from './waterfallV1'; +import { WaterfallV2Request } from './waterfallV2'; + +interface Props { + urlParams: IUrlParams; + transaction: Transaction; + render: RRRRender; +} + +export function WaterfallRequest({ urlParams, transaction, render }: Props) { + const hasTrace = transaction.hasOwnProperty('trace'); + if (hasTrace) { + return ( + + ); + } else { + return ( + + ); + } +} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/waterfallV1.tsx b/x-pack/plugins/apm/public/store/reactReduxRequest/waterfallV1.tsx new file mode 100644 index 0000000000000..f04f37c5f60df --- /dev/null +++ b/x-pack/plugins/apm/public/store/reactReduxRequest/waterfallV1.tsx @@ -0,0 +1,53 @@ +/* + * 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 { get } from 'lodash'; +import React from 'react'; +import { Request, RRRRender } from 'react-redux-request'; +import { + SERVICE_NAME, + TRANSACTION_ID +} from 'x-pack/plugins/apm/common/constants'; +import { Span } from 'x-pack/plugins/apm/typings/Span'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { + getWaterfall, + IWaterfall +} from '../../components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers'; +import { loadSpans } from '../../services/rest/apm'; +import { IUrlParams } from '../urlParams'; +// @ts-ignore +import { createInitialDataSelector } from './helpers'; + +export const ID = 'waterfallV1'; + +interface Props { + urlParams: IUrlParams; + transaction: Transaction; + render: RRRRender; +} + +export function WaterfallV1Request({ urlParams, transaction, render }: Props) { + const { start, end } = urlParams; + const transactionId: string = get(transaction, TRANSACTION_ID); + const serviceName: string = get(transaction, SERVICE_NAME); + + if (!(serviceName && transactionId && start && end)) { + return null; + } + + return ( + + id={ID} + fn={loadSpans} + args={[{ serviceName, start, end, transactionId }]} + render={({ status, data = [], args }) => { + const waterfall = getWaterfall([transaction, ...data], transaction); + return render({ status, data: waterfall, args }); + }} + /> + ); +} diff --git a/x-pack/plugins/apm/public/store/reactReduxRequest/waterfallV2.tsx b/x-pack/plugins/apm/public/store/reactReduxRequest/waterfallV2.tsx new file mode 100644 index 0000000000000..43e4f65c91d4b --- /dev/null +++ b/x-pack/plugins/apm/public/store/reactReduxRequest/waterfallV2.tsx @@ -0,0 +1,49 @@ +/* + * 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 { get } from 'lodash'; +import React from 'react'; +import { Request, RRRRender } from 'react-redux-request'; +import { TRACE_ID } from 'x-pack/plugins/apm/common/constants'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { WaterfallResponse } from 'x-pack/plugins/apm/typings/waterfall'; +import { + getWaterfall, + IWaterfall +} from '../../components/app/TransactionDetails/Transaction/WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers'; +import { loadTrace } from '../../services/rest/apm'; +import { IUrlParams } from '../urlParams'; +// @ts-ignore +import { createInitialDataSelector } from './helpers'; + +export const ID = 'waterfallV2'; + +interface Props { + urlParams: IUrlParams; + transaction: Transaction; + render: RRRRender; +} + +export function WaterfallV2Request({ urlParams, transaction, render }: Props) { + const { start, end } = urlParams; + const traceId: string = get(transaction, TRACE_ID); + + if (!(traceId && start && end)) { + return null; + } + + return ( + + id={ID} + fn={loadTrace} + args={[{ traceId, start, end }]} + render={({ args, data = [], status }) => { + const waterfall = getWaterfall(data, transaction); + return render({ args, data: waterfall, status }); + }} + /> + ); +} diff --git a/x-pack/plugins/apm/public/store/rootReducer.js b/x-pack/plugins/apm/public/store/rootReducer.js deleted file mode 100644 index 8c2b6635ec56b..0000000000000 --- a/x-pack/plugins/apm/public/store/rootReducer.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 { combineReducers } from 'redux'; -import location from './location'; -import urlParams from './urlParams'; -import { reducer } from 'react-redux-request'; - -const rootReducer = combineReducers({ - location, - urlParams, - reactReduxRequest: reducer -}); - -export default rootReducer; diff --git a/x-pack/plugins/apm/public/store/rootReducer.ts b/x-pack/plugins/apm/public/store/rootReducer.ts new file mode 100644 index 0000000000000..3efab71b998b9 --- /dev/null +++ b/x-pack/plugins/apm/public/store/rootReducer.ts @@ -0,0 +1,24 @@ +/* + * 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 { reducer } from 'react-redux-request'; +import { combineReducers } from 'redux'; +import { StringMap } from '../../typings/common'; +// @ts-ignore +import location from './location'; +import { IUrlParams, urlParamsReducer } from './urlParams'; + +export interface IReduxState { + location: any; + urlParams: IUrlParams; + reactReduxRequest: StringMap; +} + +export const rootReducer = combineReducers({ + location, + urlParams: urlParamsReducer, + reactReduxRequest: reducer +}); diff --git a/x-pack/plugins/apm/public/store/selectors/chartSelectors.js b/x-pack/plugins/apm/public/store/selectors/chartSelectors.js index cc898d6b66779..534da52262d16 100644 --- a/x-pack/plugins/apm/public/store/selectors/chartSelectors.js +++ b/x-pack/plugins/apm/public/store/selectors/chartSelectors.js @@ -7,11 +7,7 @@ import d3 from 'd3'; import { last, zipObject, difference, memoize, get, isEmpty } from 'lodash'; import { colors } from '../../style/variables'; -import { - asMillisWithDefault, - asDecimal, - tpmUnit -} from '../../utils/formatters'; +import { asMillis, asDecimal, tpmUnit } from '../../utils/formatters'; import { rgba } from 'polished'; export const getEmptySerie = memoize( @@ -59,7 +55,7 @@ export function getResponseTimeSeries(chartsData) { { title: 'Avg.', data: getChartValues(dates, avg), - legendValue: `${asMillisWithDefault(overallAvgDuration)}`, + legendValue: asMillis(overallAvgDuration), type: 'line', color: colors.apmBlue }, diff --git a/x-pack/plugins/apm/public/store/urlParams.js b/x-pack/plugins/apm/public/store/urlParams.js deleted file mode 100644 index 23a8313f6b90f..0000000000000 --- a/x-pack/plugins/apm/public/store/urlParams.js +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 _ from 'lodash'; -import { createSelector } from 'reselect'; -import { LOCATION_UPDATE } from './location'; -import { toQuery, legacyDecodeURIComponent } from '../utils/url'; -import { getDefaultTransactionId } from './reactReduxRequest/transactionDistribution'; -import { getDefaultTransactionType } from './reactReduxRequest/serviceDetails'; - -// ACTION TYPES -export const TIMEPICKER_UPDATE = 'TIMEPICKER_UPDATE'; - -// "urlParams" contains path and query parameters from the url, that can be easily consumed from -// any (container) component with access to the store - -// Example: -// url: /opbeans-backend/Brewing%20Bot?transactionId=1321 -// serviceName: opbeans-backend (path param) -// transactionType: Brewing%20Bot (path param) -// transactionId: 1321 (query param) -function urlParams(state = {}, action) { - switch (action.type) { - case LOCATION_UPDATE: { - const { - processorEvent, - serviceName, - transactionType, - transactionName, - errorGroupId - } = getPathParams(action.location.pathname); - - const { - transactionId, - detailTab, - spanId, - page, - sortDirection, - sortField, - kuery - } = toQuery(action.location.search); - - return { - ...state, - - // query params - sortDirection, - sortField, - page: toNumber(page) || 0, - transactionId, - detailTab, - spanId: toNumber(spanId), - kuery: legacyDecodeURIComponent(kuery), - - // path params - processorEvent, - serviceName, - transactionType: legacyDecodeURIComponent(transactionType), - transactionName: legacyDecodeURIComponent(transactionName), - errorGroupId - }; - } - - case TIMEPICKER_UPDATE: - return { ...state, start: action.time.min, end: action.time.max }; - - default: - return state; - } -} - -function toNumber(value) { - if (value != null) { - return parseInt(value, 10); - } -} - -function getPathAsArray(pathname) { - return _.compact(pathname.split('/')); -} - -function getPathParams(pathname) { - const paths = getPathAsArray(pathname); - const pageName = paths[1]; - - switch (pageName) { - case 'transactions': - return { - processorEvent: 'transaction', - serviceName: paths[0], - transactionType: paths[2], - transactionName: paths[3] - }; - case 'errors': - return { - processorEvent: 'error', - serviceName: paths[0], - errorGroupId: paths[2] - }; - default: - return {}; - } -} - -// ACTION CREATORS -export function updateTimePicker(time) { - return { type: TIMEPICKER_UPDATE, time }; -} - -// Selectors -export const getUrlParams = createSelector( - state => state.urlParams, - getDefaultTransactionType, - getDefaultTransactionId, - (urlParams, transactionType, transactionId) => { - return _.defaults({}, urlParams, { - transactionType, - transactionId - }); - } -); - -export default urlParams; diff --git a/x-pack/plugins/apm/public/store/urlParams.ts b/x-pack/plugins/apm/public/store/urlParams.ts new file mode 100644 index 0000000000000..cedcbfe337fee --- /dev/null +++ b/x-pack/plugins/apm/public/store/urlParams.ts @@ -0,0 +1,172 @@ +/* + * 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 _ from 'lodash'; +import { AnyAction } from 'redux'; +import { createSelector } from 'reselect'; +// @ts-ignore +import { legacyDecodeURIComponent, toQuery } from '../utils/url'; +// @ts-ignore +import { LOCATION_UPDATE } from './location'; +// @ts-ignore +import { getDefaultTransactionType } from './reactReduxRequest/serviceDetails'; +import { getDefaultDistributionSample } from './reactReduxRequest/transactionDistribution'; +import { IReduxState } from './rootReducer'; + +// ACTION TYPES +export const TIMEPICKER_UPDATE = 'TIMEPICKER_UPDATE'; + +// "urlParams" contains path and query parameters from the url, that can be easily consumed from +// any (container) component with access to the store + +// Example: +// url: /opbeans-backend/Brewing%20Bot?transactionId=1321 +// serviceName: opbeans-backend (path param) +// transactionType: Brewing%20Bot (path param) +// transactionId: 1321 (query param) +export function urlParamsReducer(state = {}, action: AnyAction) { + switch (action.type) { + case LOCATION_UPDATE: { + const { + processorEvent, + serviceName, + transactionType, + transactionName, + errorGroupId + } = getPathParams(action.location.pathname); + + const { + traceId, + transactionId, + detailTab, + flyoutDetailTab, + waterfallItemId, + spanId, + page, + sortDirection, + sortField, + kuery + } = toQuery(action.location.search); + + return removeUndefinedProps({ + ...state, + + // query params + sortDirection, + sortField, + page: toNumber(page) || 0, + transactionId: toString(transactionId), + traceId: toString(traceId), + waterfallItemId: toString(waterfallItemId), + detailTab: toString(detailTab), + flyoutDetailTab: toString(flyoutDetailTab), + spanId: toNumber(spanId), + kuery: legacyDecodeURIComponent(kuery as string | undefined), + + // path params + processorEvent, + serviceName, + transactionType: legacyDecodeURIComponent(transactionType), + transactionName: legacyDecodeURIComponent(transactionName), + errorGroupId + }); + } + + case TIMEPICKER_UPDATE: + return { ...state, start: action.time.min, end: action.time.max }; + + default: + return state; + } +} + +function toNumber(value?: string | string[]) { + if (value !== undefined && !Array.isArray(value)) { + return parseInt(value, 10); + } +} + +function toString(str?: string | string[]) { + if ( + str === '' || + str === 'null' || + str === 'undefined' || + Array.isArray(str) + ) { + return; + } + return str; +} + +function getPathAsArray(pathname: string) { + return _.compact(pathname.split('/')); +} + +function removeUndefinedProps(obj: T): Partial { + return _.pick(obj, value => value !== undefined); +} + +function getPathParams(pathname: string) { + const paths = getPathAsArray(pathname); + const pageName = paths[1]; + + switch (pageName) { + case 'transactions': + return { + processorEvent: 'transaction', + serviceName: paths[0], + transactionType: paths[2], + transactionName: paths[3] + }; + case 'errors': + return { + processorEvent: 'error', + serviceName: paths[0], + errorGroupId: paths[2] + }; + default: + return {}; + } +} + +// ACTION CREATORS +export function updateTimePicker(time: string) { + return { type: TIMEPICKER_UPDATE, time }; +} + +// Selectors +export const getUrlParams = createSelector( + (state: IReduxState) => state.urlParams, + getDefaultTransactionType, + getDefaultDistributionSample, + ( + urlParams, + transactionType: string, + { traceId, transactionId } + ): IUrlParams => { + return { + transactionType, + transactionId, + traceId, + ...urlParams + }; + } +); + +export interface IUrlParams { + end?: string; + errorGroupId?: string; + flyoutDetailTab?: string; + detailTab?: string; + kuery?: string; + serviceName?: string; + start?: string; + traceId?: string; + transactionId?: string; + transactionName?: string; + transactionType?: string; + waterfallItemId?: string; +} diff --git a/x-pack/plugins/apm/public/style/global_overrides.css b/x-pack/plugins/apm/public/style/global_overrides.css index 7b032a40914de..a4d51186ab759 100644 --- a/x-pack/plugins/apm/public/style/global_overrides.css +++ b/x-pack/plugins/apm/public/style/global_overrides.css @@ -31,4 +31,11 @@ Hide default dashed gridlines in EUI chart component for all APM graphs .rv-xy-plot__grid-lines__line { stroke-opacity: 1; stroke-dasharray: 1; -} \ No newline at end of file +} + +/* +Override tab size since K6 theme makes "s" and "m" tabs both 14px +*/ +.k6Tab--large .euiTab { + font-size: 16px; +} diff --git a/x-pack/plugins/apm/public/utils/__test__/__snapshots__/url.test.js.snap b/x-pack/plugins/apm/public/utils/__test__/__snapshots__/url.test.js.snap deleted file mode 100644 index 6430ae0cc5804..0000000000000 --- a/x-pack/plugins/apm/public/utils/__test__/__snapshots__/url.test.js.snap +++ /dev/null @@ -1,41 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`KibanaLinkComponent should render correct markup 1`] = ` - - Go to Discover - -`; - -exports[`RelativeLinkComponent should render correct markup 1`] = ` - - Go to Discover - -`; - -exports[`ViewMLJob should render component 1`] = ` - - View Job - -`; diff --git a/x-pack/plugins/apm/public/utils/__test__/__snapshots__/url.test.tsx.snap b/x-pack/plugins/apm/public/utils/__test__/__snapshots__/url.test.tsx.snap new file mode 100644 index 0000000000000..afb2f6c7926d5 --- /dev/null +++ b/x-pack/plugins/apm/public/utils/__test__/__snapshots__/url.test.tsx.snap @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`RelativeLinkComponent should render correct markup 1`] = ` + + Go to Discover + +`; + +exports[`UnconnectedKibanaLink should render correct markup 1`] = ` + + Go to Discover + +`; + +exports[`ViewMLJob should render component 1`] = ` + + View Job + +`; diff --git a/x-pack/plugins/apm/public/utils/__test__/formatters.test.js b/x-pack/plugins/apm/public/utils/__test__/formatters.test.js deleted file mode 100644 index 1bd7a4a4e493a..0000000000000 --- a/x-pack/plugins/apm/public/utils/__test__/formatters.test.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - * 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 { asTime } from '../formatters'; - -describe('formatters', () => { - it('asTime', () => { - expect(asTime(1000)).toBe('1 ms'); - expect(asTime(1000 * 1000)).toBe('1,000 ms'); - expect(asTime(1000 * 1000 * 10)).toBe('10,000 ms'); - expect(asTime(1000 * 1000 * 20)).toBe('20.0 s'); - }); -}); diff --git a/x-pack/plugins/apm/public/utils/__test__/formatters.test.ts b/x-pack/plugins/apm/public/utils/__test__/formatters.test.ts new file mode 100644 index 0000000000000..46909496e80a8 --- /dev/null +++ b/x-pack/plugins/apm/public/utils/__test__/formatters.test.ts @@ -0,0 +1,46 @@ +/* + * 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 { asPercent, asTime } from '../formatters'; + +describe('formatters', () => { + describe('asTime', () => { + it('formats correctly with defaults', () => { + expect(asTime(null)).toBe('N/A'); + expect(asTime(undefined)).toBe('N/A'); + expect(asTime(0)).toBe('0 μs'); + expect(asTime(1)).toBe('1 μs'); + expect(asTime(1000)).toBe('1,000 μs'); + expect(asTime(1000 * 1000)).toBe('1,000 ms'); + expect(asTime(1000 * 1000 * 10)).toBe('10,000 ms'); + expect(asTime(1000 * 1000 * 20)).toBe('20.0 s'); + }); + + it('formats without unit', () => { + expect(asTime(1000, { withUnit: false })).toBe('1,000'); + }); + + it('falls back to default value', () => { + expect(asTime(undefined, { defaultValue: 'nope' })).toBe('nope'); + }); + }); + + describe('asPercent', () => { + it('should format item as percent', () => { + expect(asPercent(3725, 10000, 'n/a')).toBe('37.25%'); + }); + + it('should return fallback when denominator is 0 ', () => { + expect(asPercent(3725, 0, 'n/a')).toBe('n/a'); + expect(asPercent(3725, 0)).toBe(''); + }); + + it('should return fallback when denominator is undefined ', () => { + expect(asPercent(3725, undefined, 'n/a')).toBe('n/a'); + expect(asPercent(3725)).toBe(''); + }); + }); +}); diff --git a/x-pack/plugins/apm/public/utils/__test__/url.test.js b/x-pack/plugins/apm/public/utils/__test__/url.test.js deleted file mode 100644 index 6980d2c3b1620..0000000000000 --- a/x-pack/plugins/apm/public/utils/__test__/url.test.js +++ /dev/null @@ -1,258 +0,0 @@ -/* - * 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 React from 'react'; -import { Router } from 'react-router-dom'; -import { mount, shallow } from 'enzyme'; -import createHistory from 'history/createMemoryHistory'; -import { - toQuery, - fromQuery, - KibanaLinkComponent, - RelativeLinkComponent, - encodeKibanaSearchParams, - decodeKibanaSearchParams, - ViewMLJob -} from '../url'; -import { toJson } from '../testHelpers'; - -jest.mock('ui/chrome', () => ({ - addBasePath: path => `myBasePath${path}` -})); - -describe('encodeKibanaSearchParams and decodeKibanaSearchParams should return the original string', () => { - it('should convert string to object', () => { - const search = `?_g=(ml:(jobIds:!(opbeans-node-request-high_mean_response_time)),refreshInterval:(display:Off,pause:!f,value:0),time:(from:'2018-06-06T08:20:45.437Z',mode:absolute,to:'2018-06-14T21:56:58.505Z'))&_a=(filters:!(),mlSelectInterval:(interval:(display:Auto,val:auto)),mlSelectSeverity:(threshold:(display:warning,val:0)),mlTimeSeriesExplorer:(),query:(query_string:(analyze_wildcard:!t,query:'*')))`; - const nextSearch = encodeKibanaSearchParams( - decodeKibanaSearchParams(search) - ); - expect(search).toBe(`?${nextSearch}`); - }); -}); - -describe('decodeKibanaSearchParams', () => { - it('when both _a and _g are defined', () => { - const search = `?_g=(ml:(jobIds:!(opbeans-node-request-high_mean_response_time)),refreshInterval:(display:Off,pause:!f,value:0),time:(from:'2018-06-06T08:20:45.437Z',mode:absolute,to:'2018-06-14T21:56:58.505Z'))&_a=(filters:!(),mlSelectInterval:(interval:(display:Auto,val:auto)),mlSelectSeverity:(threshold:(display:warning,val:0)),mlTimeSeriesExplorer:(),query:(query_string:(analyze_wildcard:!t,query:'*')))`; - const query = decodeKibanaSearchParams(search); - expect(query).toEqual({ - _a: { - filters: [], - mlSelectInterval: { interval: { display: 'Auto', val: 'auto' } }, - mlSelectSeverity: { threshold: { display: 'warning', val: 0 } }, - mlTimeSeriesExplorer: {}, - query: { query_string: { analyze_wildcard: true, query: '*' } } - }, - _g: { - ml: { jobIds: ['opbeans-node-request-high_mean_response_time'] }, - refreshInterval: { display: 'Off', pause: false, value: 0 }, - time: { - from: '2018-06-06T08:20:45.437Z', - mode: 'absolute', - to: '2018-06-14T21:56:58.505Z' - } - } - }); - }); - - it('when only _g is defined', () => { - const search = `?_g=(ml:(jobIds:!(opbeans-node-request-high_mean_response_time)))`; - const query = decodeKibanaSearchParams(search); - expect(query).toEqual({ - _a: null, - _g: { - ml: { jobIds: ['opbeans-node-request-high_mean_response_time'] } - } - }); - }); -}); - -describe('encodeKibanaSearchParams', () => { - it('should convert object to string', () => { - const query = { - _a: { - filters: [], - mlSelectInterval: { interval: { display: 'Auto', val: 'auto' } }, - mlSelectSeverity: { threshold: { display: 'warning', val: 0 } }, - mlTimeSeriesExplorer: {}, - query: { query_string: { analyze_wildcard: true, query: '*' } } - }, - _g: { - ml: { jobIds: ['opbeans-node-request-high_mean_response_time'] }, - refreshInterval: { display: 'Off', pause: false, value: 0 }, - time: { - from: '2018-06-06T08:20:45.437Z', - mode: 'absolute', - to: '2018-06-14T21:56:58.505Z' - } - } - }; - const search = encodeKibanaSearchParams(query); - expect(search).toBe( - `_g=(ml:(jobIds:!(opbeans-node-request-high_mean_response_time)),refreshInterval:(display:Off,pause:!f,value:0),time:(from:'2018-06-06T08:20:45.437Z',mode:absolute,to:'2018-06-14T21:56:58.505Z'))&_a=(filters:!(),mlSelectInterval:(interval:(display:Auto,val:auto)),mlSelectSeverity:(threshold:(display:warning,val:0)),mlTimeSeriesExplorer:(),query:(query_string:(analyze_wildcard:!t,query:'*')))` - ); - }); -}); - -describe('toQuery', () => { - it('should parse string to object', () => { - expect(toQuery('?foo=bar&name=john%20doe')).toEqual({ - foo: 'bar', - name: 'john doe' - }); - }); -}); - -describe('fromQuery', () => { - it('should parse object to string', () => { - expect( - fromQuery({ - foo: 'bar', - name: 'john doe' - }) - ).toEqual('foo=bar&name=john%20doe'); - }); - - it('should not encode _a and _g', () => { - expect( - fromQuery({ - g: 'john doe:', - _g: 'john doe:', - a: 'john doe:', - _a: 'john doe:' - }) - ).toEqual('g=john%20doe%3A&_g=john%20doe:&a=john%20doe%3A&_a=john%20doe:'); - }); -}); - -describe('RelativeLinkComponent', () => { - let history; - let wrapper; - - beforeEach(() => { - history = createHistory(); - history.location = { - ...history.location, - pathname: '/opbeans-node/transactions', - search: '?foo=bar' - }; - - wrapper = mount( - - - Go to Discover - - - ); - }); - - it('should have correct url', () => { - expect(wrapper.find('a').prop('href')).toBe( - '/opbeans-node/errors?foo=bar&foo2=bar2' - ); - }); - - it('should render correct markup', () => { - expect(toJson(wrapper)).toMatchSnapshot(); - }); - - it('should have initial location', () => { - expect(history.location).toEqual( - expect.objectContaining({ - pathname: '/opbeans-node/transactions', - search: '?foo=bar' - }) - ); - }); - - it('should update location on click', () => { - wrapper.simulate('click', { button: 0 }); - expect(history.location).toEqual( - expect.objectContaining({ - pathname: '/opbeans-node/errors', - search: '?foo=bar&foo2=bar2' - }) - ); - }); -}); - -describe('KibanaLinkComponent', () => { - let wrapper; - - beforeEach(() => { - const discoverQuery = { - _a: { - interval: 'auto', - query: { - language: 'lucene', - query: `context.service.name:myServiceName AND error.grouping_key:myGroupId` - }, - sort: { '@timestamp': 'desc' } - } - }; - - wrapper = mount( - - Go to Discover - - ); - }); - - it('should have correct url', () => { - expect(wrapper.find('a').prop('href')).toBe( - "myBasePath/app/kibana#/discover?_g=&_a=(interval:auto,query:(language:lucene,query:'context.service.name:myServiceName AND error.grouping_key:myGroupId'),sort:('@timestamp':desc))" - ); - }); - - it('should render correct markup', () => { - expect(toJson(wrapper)).toMatchSnapshot(); - }); -}); - -describe('ViewMLJob', () => { - it('should render component', () => { - const location = { search: '' }; - const wrapper = shallow( - - ); - - expect(toJson(wrapper)).toMatchSnapshot(); - }); - - it('should have correct path props', () => { - const location = { search: '' }; - const wrapper = shallow( - - ); - - expect(wrapper.prop('pathname')).toBe('/app/ml'); - expect(wrapper.prop('hash')).toBe('/timeseriesexplorer'); - expect(wrapper.prop('query')).toEqual({ - _a: null, - _g: { - ml: { - jobIds: ['myServiceName-myTransactionType-high_mean_response_time'] - } - } - }); - }); -}); diff --git a/x-pack/plugins/apm/public/utils/__test__/url.test.tsx b/x-pack/plugins/apm/public/utils/__test__/url.test.tsx new file mode 100644 index 0000000000000..a21f3b7a526b5 --- /dev/null +++ b/x-pack/plugins/apm/public/utils/__test__/url.test.tsx @@ -0,0 +1,249 @@ +/* + * 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 { mount, ReactWrapper, shallow } from 'enzyme'; +import createHistory, { MemoryHistory } from 'history/createMemoryHistory'; +import React from 'react'; +import { Router } from 'react-router-dom'; +import url from 'url'; +// @ts-ignore +import { toJson } from '../testHelpers'; +import { + fromQuery, + RelativeLinkComponent, + toQuery, + UnconnectedKibanaLink, + ViewMLJob +} from '../url'; + +describe('toQuery', () => { + it('should parse string to object', () => { + expect(toQuery('?foo=bar&name=john%20doe')).toEqual({ + foo: 'bar', + name: 'john doe' + }); + }); +}); + +describe('fromQuery', () => { + it('should parse object to string', () => { + expect( + fromQuery({ + foo: 'bar', + name: 'john doe' + }) + ).toEqual('foo=bar&name=john%20doe'); + }); + + it('should not encode _a and _g', () => { + expect( + fromQuery({ + g: 'john doe:', + _g: 'john doe:', + a: 'john doe:', + _a: 'john doe:' + }) + ).toEqual('g=john%20doe%3A&_g=john%20doe:&a=john%20doe%3A&_a=john%20doe:'); + }); +}); + +describe('RelativeLinkComponent', () => { + let history: MemoryHistory; + let wrapper: ReactWrapper; + + beforeEach(() => { + history = createHistory(); + history.location = { + ...history.location, + pathname: '/opbeans-node/transactions', + search: '?foo=bar' + }; + + wrapper = mount( + + + Go to Discover + + + ); + }); + + it('should have correct url', () => { + expect(wrapper.find('a').prop('href')).toBe( + '/opbeans-node/errors?foo=bar&foo2=bar2' + ); + }); + + it('should render correct markup', () => { + expect(toJson(wrapper)).toMatchSnapshot(); + }); + + it('should have initial location', () => { + expect(history.location).toEqual( + expect.objectContaining({ + pathname: '/opbeans-node/transactions', + search: '?foo=bar' + }) + ); + }); + + it('should update location on click', () => { + wrapper.simulate('click', { button: 0 }); + expect(history.location).toEqual( + expect.objectContaining({ + pathname: '/opbeans-node/errors', + search: '?foo=bar&foo2=bar2' + }) + ); + }); +}); + +function getUnconnectedKibanLink() { + const discoverQuery = { + _a: { + interval: 'auto', + query: { + language: 'lucene', + query: `context.service.name:"myServiceName" AND error.grouping_key:"myGroupId"` + }, + sort: { '@timestamp': 'desc' } + } + }; + + return shallow( + + Go to Discover + + ); +} + +describe('UnconnectedKibanaLink', () => { + it('should have correct url', () => { + const wrapper = getUnconnectedKibanLink(); + const href = wrapper.find('EuiLink').prop('href') || ''; + const { _g, _a } = getUrlQuery(href); + const { pathname } = url.parse(href); + + expect(pathname).toBe('/app/kibana'); + expect(_a).toBe( + '(interval:auto,query:(language:lucene,query:\'context.service.name:"myServiceName" AND error.grouping_key:"myGroupId"\'),sort:(\'@timestamp\':desc))' + ); + expect(_g).toBe('(time:(from:now-24h,mode:quick,to:now))'); + }); + + it('should render correct markup', () => { + const wrapper = getUnconnectedKibanLink(); + expect(wrapper).toMatchSnapshot(); + }); + + it('should include existing _g values in link href', () => { + const wrapper = getUnconnectedKibanLink(); + wrapper.setProps({ + location: { + search: + '?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-7d,mode:relative,to:now-1d))' + } + }); + const href = wrapper.find('EuiLink').prop('href'); + const { _g } = getUrlQuery(href); + + expect(_g).toBe( + '(refreshInterval:(pause:!t,value:0),time:(from:now-7d,mode:relative,to:now-1d))' + ); + }); + + it('should not throw due to hashed args', () => { + const wrapper = getUnconnectedKibanLink(); + expect(() => { + wrapper.setProps({ location: { search: '?_g=H@whatever' } }); + }).not.toThrow(); + }); + + it('should use default time range when _g is empty', () => { + const wrapper = getUnconnectedKibanLink(); + wrapper.setProps({ location: { search: '?_g=()' } }); + const href = wrapper.find('EuiLink').prop('href') as string; + const { _g } = getUrlQuery(href); + expect(_g).toBe('(time:(from:now-24h,mode:quick,to:now))'); + }); + + it('should merge in _g query values', () => { + const discoverQuery = { + _g: { + ml: { + jobIds: [1337] + } + } + }; + + const wrapper = shallow( + + Go to Discover + + ); + + const href = wrapper.find('EuiLink').prop('href') as string; + const { _g } = getUrlQuery(href); + expect(_g).toBe( + '(ml:(jobIds:!(1337)),time:(from:now-24h,mode:quick,to:now))' + ); + }); +}); + +function getUrlQuery(href?: string) { + const hash = url.parse(href!).hash!.slice(1); + return url.parse(hash, true).query; +} + +describe('ViewMLJob', () => { + it('should render component', () => { + const location = { search: '' }; + const wrapper = shallow( + + ); + + expect(wrapper).toMatchSnapshot(); + }); + + it('should have correct path props', () => { + const location = { search: '' }; + const wrapper = shallow( + + ); + + expect(wrapper.prop('pathname')).toBe('/app/ml'); + expect(wrapper.prop('hash')).toBe('/timeseriesexplorer'); + expect(wrapper.prop('query')).toEqual({ + _g: { + ml: { + jobIds: ['myServiceName-myTransactionType-high_mean_response_time'] + } + } + }); + }); +}); diff --git a/x-pack/plugins/apm/public/utils/documentation.ts b/x-pack/plugins/apm/public/utils/documentation.ts deleted file mode 100644 index 0ad3ce722d819..0000000000000 --- a/x-pack/plugins/apm/public/utils/documentation.ts +++ /dev/null @@ -1,181 +0,0 @@ -/* - * 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 { get } from 'lodash'; -// @ts-ignore -import { metadata } from 'ui/metadata'; - -const STACK_VERSION = metadata.branch; -const DOCS_ROOT = 'https://www.elastic.co/guide/en/apm'; - -// -// General APM -// -export const APM_DOCS = { - 'get-started': { - url: `${DOCS_ROOT}/get-started/${STACK_VERSION}/index.html` - } -}; - -// -// APM Server docs -// -export const APM_SERVER_DOCS = { - download: { - url: 'https://www.elastic.co/downloads/apm/apm-server' - }, - configuring: { - url: `${DOCS_ROOT}/server/${STACK_VERSION}/configuring.html` - }, - 'running-on-docker': { - url: `${DOCS_ROOT}/server/${STACK_VERSION}/running-on-docker.html#running-on-docker` - }, - frontend: { - url: `${DOCS_ROOT}/server/${STACK_VERSION}/frontend.html` - } -}; - -// -// APM Agents docs -// -const featureContextUserText = - 'You can configure your agent to add contextual information about your users.'; -const featureContextTagsText = - 'You can configure your agent to add filterable tags on transactions.'; -const featureContextCustomText = - 'You can configure your agent to add custom contextual information on transactions.'; - -export const APM_AGENT_DOCS = { - home: { - nodejs: { - url: `${DOCS_ROOT}/agent/nodejs/1.x/index.html` - }, - python: { - url: `${DOCS_ROOT}/agent/python/2.x/index.html` - }, - ruby: { - url: `${DOCS_ROOT}/agent/ruby/1.x/index.html` - }, - javascript: { - url: `${DOCS_ROOT}/agent/js-base/0.x/index.html` - } - }, - 'get-started': { - python: { - url: `${DOCS_ROOT}/agent/python/2.x/getting-started.html` - }, - javascript: { - url: `${DOCS_ROOT}/agent/js-base/0.x/getting-started.html` - } - }, - 'nodejs-only': { - 'babel-es-modules': { - url: `${DOCS_ROOT}/agent/nodejs/1.x/advanced-setup.html#es-modules` - } - }, - 'python-only': { - django: { url: `${DOCS_ROOT}/agent/python/2.x/django-support.html` }, - flask: { url: `${DOCS_ROOT}/agent/python/2.x/flask-support.html` } - }, - 'context-user': { - nodejs: { - text: featureContextUserText, - url: `${DOCS_ROOT}/agent/nodejs/1.x/agent-api.html#apm-set-user-context` - }, - python: { - text: featureContextUserText, - url: `${DOCS_ROOT}/agent/python/2.x/api.html#api-set-user-context` - }, - ruby: { - text: featureContextUserText, - url: `${DOCS_ROOT}/agent/ruby/1.x/advanced.html#_providing_info_about_the_user` - }, - javascript: { - text: featureContextUserText, - url: `${DOCS_ROOT}/agent/js-base/0.x/api.html#apm-set-user-context` - } - }, - 'context-tags': { - nodejs: { - text: featureContextTagsText, - url: `${DOCS_ROOT}/agent/nodejs/1.x/agent-api.html#apm-set-tag` - }, - python: { - text: featureContextTagsText, - url: `${DOCS_ROOT}/agent/python/2.x/api.html#api-tag` - }, - ruby: { - text: featureContextTagsText, - url: `${DOCS_ROOT}/agent/ruby/1.x/advanced.html#_adding_tags` - }, - javascript: { - text: `${DOCS_ROOT}/agent/js-base/0.x/api.html#apm-set-tags` - } - }, - 'context-custom': { - nodejs: { - text: featureContextCustomText, - url: `${DOCS_ROOT}/agent/nodejs/1.x/agent-api.html#apm-set-custom-context` - }, - python: { - text: featureContextCustomText, - url: `${DOCS_ROOT}/agent/python/2.x/api.html#api-set-custom-context` - }, - ruby: { - text: featureContextCustomText, - url: `${DOCS_ROOT}/agent/ruby/1.x/advanced.html#_adding_custom_context` - }, - javascript: { - text: featureContextCustomText, - url: `${DOCS_ROOT}/agent/js-base/0.x/api.html#apm-set-custom-context` - } - }, - 'dropped-spans': { - nodejs: { - url: `${DOCS_ROOT}/agent/nodejs/1.x/agent-api.html#transaction-max-spans` - }, - python: { - url: `${DOCS_ROOT}/agent/python/2.x/configuration.html#config-transaction-max-spans` - } - } -}; - -// -// Elastic docs -// -export const ELASTIC_DOCS = { - 'x-pack-emails': { - url: `https://www.elastic.co/guide/en/x-pack/${STACK_VERSION}/actions-email.html#configuring-email` - }, - 'watcher-get-started': { - url: `https://www.elastic.co/guide/en/x-pack/${STACK_VERSION}/watcher-getting-started.html` - } -}; - -// -// Helper methods -// -function translateAgentName(agentName: string): string { - switch (agentName) { - case 'js-react': - case 'js-base': - return 'javascript'; - - default: - return agentName; - } -} - -export function getFeatureDocs( - featureName: string, - agentName: string -): { - url: string; - text?: string; -} { - const translatedAgentName = translateAgentName(agentName); - return get(APM_AGENT_DOCS, `${featureName}.${translatedAgentName}`); -} diff --git a/x-pack/plugins/apm/public/utils/documentation/agents.ts b/x-pack/plugins/apm/public/utils/documentation/agents.ts new file mode 100644 index 0000000000000..f0f1f1f2b8d0d --- /dev/null +++ b/x-pack/plugins/apm/public/utils/documentation/agents.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +const AGENT_URL_ROOT = 'https://www.elastic.co/guide/en/apm/agent'; + +interface AgentNamedValues { + [agentName: string]: string; +} + +export const APM_AGENT_DROPPED_SPANS_DOCS: AgentNamedValues = { + nodejs: `${AGENT_URL_ROOT}/nodejs/1.x/agent-api.html#transaction-max-spans`, + python: `${AGENT_URL_ROOT}/python/2.x/configuration.html#config-transaction-max-spans` +}; + +const APM_AGENT_FEATURE_DOCS: { + [featureName: string]: AgentNamedValues; +} = { + user: { + java: `${AGENT_URL_ROOT}/java/0.7/public-api.html#api-transaction-set-user`, + nodejs: `${AGENT_URL_ROOT}/nodejs/1.x/agent-api.html#apm-set-user-context`, + python: `${AGENT_URL_ROOT}/python/2.x/api.html#api-set-user-context`, + ruby: `${AGENT_URL_ROOT}/ruby/1.x/advanced.html#_providing_info_about_the_user`, + 'js-react': `${AGENT_URL_ROOT}/js-base/0.x/api.html#apm-set-user-context`, + 'js-base': `${AGENT_URL_ROOT}/js-base/0.x/api.html#apm-set-user-context` + }, + tags: { + java: `${AGENT_URL_ROOT}/java/0.7/public-api.html#api-transaction-add-tag`, + nodejs: `${AGENT_URL_ROOT}/nodejs/1.x/agent-api.html#apm-set-tag`, + python: `${AGENT_URL_ROOT}/python/2.x/api.html#api-tag`, + ruby: `${AGENT_URL_ROOT}/ruby/1.x/advanced.html#_adding_tags`, + 'js-react': `${AGENT_URL_ROOT}/js-base/0.x/api.html#apm-set-tags`, + 'js-base': `${AGENT_URL_ROOT}/js-base/0.x/api.html#apm-set-tags` + }, + custom: { + nodejs: `${AGENT_URL_ROOT}/nodejs/1.x/agent-api.html#apm-set-custom-context`, + python: `${AGENT_URL_ROOT}/python/2.x/api.html#api-set-custom-context`, + ruby: `${AGENT_URL_ROOT}/ruby/1.x/advanced.html#_adding_custom_context`, + 'js-react': `${AGENT_URL_ROOT}/js-base/0.x/api.html#apm-set-custom-context`, + 'js-base': `${AGENT_URL_ROOT}/js-base/0.x/api.html#apm-set-custom-context` + } +}; + +export function getAgentFeatureDocsUrl( + featureName: string, + agentName?: string +) { + if (APM_AGENT_FEATURE_DOCS[featureName] && agentName) { + return APM_AGENT_FEATURE_DOCS[featureName][agentName]; + } +} diff --git a/x-pack/plugins/apm/public/utils/documentation/xpack.ts b/x-pack/plugins/apm/public/utils/documentation/xpack.ts new file mode 100644 index 0000000000000..11741fb3ea803 --- /dev/null +++ b/x-pack/plugins/apm/public/utils/documentation/xpack.ts @@ -0,0 +1,16 @@ +/* + * 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. + */ + +// @ts-ignore +import { metadata } from 'ui/metadata'; +const STACK_VERSION = metadata.branch; + +const XPACK_URL_ROOT = `https://www.elastic.co/guide/en/x-pack/${STACK_VERSION}`; + +export const XPACK_DOCS = { + xpackEmails: `${XPACK_URL_ROOT}/actions-email.html#configuring-email`, + xpackWatcher: `${XPACK_URL_ROOT}/watcher-getting-started.html` +}; diff --git a/x-pack/plugins/apm/public/utils/formatters.js b/x-pack/plugins/apm/public/utils/formatters.js deleted file mode 100644 index 36b867c4606e4..0000000000000 --- a/x-pack/plugins/apm/public/utils/formatters.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 { memoize } from 'lodash'; -import numeral from '@elastic/numeral'; - -const UNIT_CUT_OFF = 10 * 1000000; // 10 seconds in microseconds - -export function asSeconds(value, withUnit = true) { - const formatted = asDecimal(value / 1000000); - return `${formatted}${withUnit ? ' s' : ''}`; -} - -export function asMillis(value, withUnit = true) { - const formatted = asInteger(value / 1000); - return `${formatted}${withUnit ? ' ms' : ''}`; -} - -export function asMillisWithDefault(value) { - if (value == null) { - return `N/A`; - } - return asMillis(value); -} - -export const getTimeFormatter = memoize( - max => (max > UNIT_CUT_OFF ? asSeconds : asMillis) -); - -export function timeUnit(max) { - return max > UNIT_CUT_OFF ? 's' : 'ms'; -} - -/* - * value: time in microseconds - */ -export function asTime(value) { - return getTimeFormatter(value)(value); -} - -export function asDecimal(value) { - return numeral(value).format('0,0.0'); -} - -export function asInteger(value) { - return numeral(value).format('0,0'); -} - -export function tpmUnit(type) { - return type === 'request' ? 'rpm' : 'tpm'; -} diff --git a/x-pack/plugins/apm/public/utils/formatters.ts b/x-pack/plugins/apm/public/utils/formatters.ts new file mode 100644 index 0000000000000..08551aa43b7ac --- /dev/null +++ b/x-pack/plugins/apm/public/utils/formatters.ts @@ -0,0 +1,120 @@ +/* + * 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 numeral from '@elastic/numeral'; +import { memoize } from 'lodash'; + +const SECONDS_CUT_OFF = 10 * 1000000; // 10 seconds (in microseconds) +const MILLISECONDS_CUT_OFF = 10 * 1000; // 10 milliseconds (in microseconds) + +/* + * value: time in microseconds + * withUnit: add unit suffix + * defaultValue: value to use if the specified is null/undefined + */ +type FormatterValue = number | undefined | null; +interface FormatterOptions { + withUnit?: boolean; + defaultValue?: string; +} + +export function asSeconds( + value: FormatterValue, + { withUnit = true, defaultValue = 'N/A' }: FormatterOptions = {} +) { + if (value == null) { + return defaultValue; + } + const formatted = asDecimal(value / 1000000); + return `${formatted}${withUnit ? ' s' : ''}`; +} + +export function asMillis( + value: FormatterValue, + { withUnit = true, defaultValue = 'N/A' }: FormatterOptions = {} +) { + if (value == null) { + return defaultValue; + } + + const formatted = asInteger(value / 1000); + return `${formatted}${withUnit ? ' ms' : ''}`; +} + +export function asMicros( + value: FormatterValue, + { withUnit = true, defaultValue = 'N/A' }: FormatterOptions = {} +) { + if (value == null) { + return defaultValue; + } + + const formatted = asInteger(value); + return `${formatted}${withUnit ? ' μs' : ''}`; +} + +type TimeFormatter = ( + max: number +) => ( + value: FormatterValue, + { withUnit, defaultValue }: FormatterOptions +) => string; + +export const getTimeFormatter: TimeFormatter = memoize((max: number) => { + const unit = timeUnit(max); + switch (unit) { + case 's': + return asSeconds; + case 'ms': + return asMillis; + case 'us': + return asMicros; + } +}); + +export function timeUnit(max: number) { + if (max > SECONDS_CUT_OFF) { + return 's'; + } else if (max > MILLISECONDS_CUT_OFF) { + return 'ms'; + } else { + return 'us'; + } +} + +export function asTime( + value: FormatterValue, + { withUnit = true, defaultValue = 'N/A' }: FormatterOptions = {} +) { + if (value == null) { + return defaultValue; + } + const formatter = getTimeFormatter(value); + return formatter(value, { withUnit, defaultValue }); +} + +export function asDecimal(value: number) { + return numeral(value).format('0,0.0'); +} + +export function asInteger(value: number) { + return numeral(value).format('0,0'); +} + +export function tpmUnit(type: string) { + return type === 'request' ? 'rpm' : 'tpm'; +} + +export function asPercent( + numerator: number, + denominator = 0, + fallbackResult = '' +) { + if (denominator === 0) { + return fallbackResult; + } + return numeral(numerator / denominator).format('0.00%'); +} diff --git a/x-pack/plugins/apm/public/utils/url.js b/x-pack/plugins/apm/public/utils/url.js deleted file mode 100644 index 8b1ab93bffe60..0000000000000 --- a/x-pack/plugins/apm/public/utils/url.js +++ /dev/null @@ -1,173 +0,0 @@ -/* - * 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 React from 'react'; -import PropTypes from 'prop-types'; -import { connect } from 'react-redux'; -import qs from 'querystring'; -import url from 'url'; -import { Link } from 'react-router-dom'; -import _ from 'lodash'; -import rison from 'rison-node'; -import { EuiLink } from '@elastic/eui'; -import createHistory from 'history/createHashHistory'; -import chrome from 'ui/chrome'; - -export function ViewMLJob({ - serviceName, - transactionType, - location, - children = 'View Job' -}) { - const { _g, _a } = decodeKibanaSearchParams(location.search); - - const pathname = '/app/ml'; - const hash = '/timeseriesexplorer'; - const query = { - _g: { - ..._g, - ml: { - jobIds: [`${serviceName}-${transactionType}-high_mean_response_time`] - } - }, - _a - }; - - return ( - - ); -} - -export function toQuery(search) { - return qs.parse(search.slice(1)); -} - -export function fromQuery(query) { - const encodedQuery = encodeQuery(query, ['_g', '_a']); - return stringifyWithoutEncoding(encodedQuery); -} - -export function encodeQuery(query, exclude = []) { - return _.mapValues(query, (value, key) => { - if (exclude.includes(key)) { - return encodeURI(value); - } - return qs.escape(value); - }); -} - -function stringifyWithoutEncoding(query) { - return qs.stringify(query, null, null, { - encodeURIComponent: v => v - }); -} - -export function decodeKibanaSearchParams(search) { - const query = toQuery(search); - return { - _g: query._g ? rison.decode(query._g) : null, - _a: query._a ? rison.decode(query._a) : null - }; -} - -export function encodeKibanaSearchParams(query) { - return stringifyWithoutEncoding({ - _g: rison.encode(query._g), - _a: rison.encode(query._a) - }); -} - -export function RelativeLinkComponent({ - location, - path, - query, - disabled, - ...props -}) { - if (disabled) { - return ; - } - - // Shorthand for pathname - const pathname = path || _.get(props.to, 'pathname') || location.pathname; - - // Add support for querystring as object - const search = - query || _.get(props.to, 'query') - ? fromQuery({ - ...toQuery(location.search), - ...query, - ..._.get(props.to, 'query') - }) - : location.search; - - return ( - - ); -} - -export function KibanaLinkComponent({ - location, - pathname, - hash, - query = {}, - ...props -}) { - const currentQuery = toQuery(location.search); - const nextQuery = { - _g: query._g ? rison.encode(query._g) : currentQuery._g, - _a: query._a ? rison.encode(query._a) : '' - }; - - const search = stringifyWithoutEncoding(nextQuery); - const href = url.format({ - pathname: chrome.addBasePath(pathname), - hash: `${hash}?${search}` - }); - - return ; -} - -const withLocation = connect( - ({ location }) => ({ location }), - {} -); -export const RelativeLink = withLocation(RelativeLinkComponent); -export const KibanaLink = withLocation(KibanaLinkComponent); - -// This is downright horrible 😭 💔 -// Angular decodes encoded url tokens like "%2F" to "/" which causes the route to change. -// It was supposedly fixed in https://github.com/angular/angular.js/commit/1b779028fdd339febaa1fff5f3bd4cfcda46cc09 but still seeing the issue -export function legacyEncodeURIComponent(url) { - return url && encodeURIComponent(url).replace(/%/g, '~'); -} - -export function legacyDecodeURIComponent(url) { - return url && decodeURIComponent(url.replace(/~/g, '%')); -} - -export function ExternalLink(props) { - return ; -} - -ExternalLink.propTypes = { - href: PropTypes.string.isRequired -}; - -// Make history singleton available across APM project. -// This is not great. Other options are to use context or withRouter helper -// React Context API is unstable and will change soon-ish (probably 16.3) -// withRouter helper from react-router overrides several props (eg. `location`) which makes it less desireable -export const history = createHistory(); diff --git a/x-pack/plugins/apm/public/utils/url.tsx b/x-pack/plugins/apm/public/utils/url.tsx new file mode 100644 index 0000000000000..6ae3fcb643a6c --- /dev/null +++ b/x-pack/plugins/apm/public/utils/url.tsx @@ -0,0 +1,226 @@ +/* + * 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 { EuiLink, EuiLinkAnchorProps } from '@elastic/eui'; +import createHistory from 'history/createHashHistory'; +import { get, isPlainObject, mapValues } from 'lodash'; +import qs from 'querystring'; +import React from 'react'; +import { connect } from 'react-redux'; +import { Link } from 'react-router-dom'; +import rison from 'rison-node'; +import chrome from 'ui/chrome'; +import url from 'url'; +import { StringMap } from '../../typings/common'; + +// Kibana default set in: https://github.com/elastic/kibana/blob/e13e47fc4eb6112f2a5401408e9f765eae90f55d/x-pack/plugins/apm/public/utils/timepicker/index.js#L31-L35 +// TODO: store this in config or a shared constant? +const DEFAULT_KIBANA_TIME_RANGE = { + time: { + from: 'now-24h', + mode: 'quick', + to: 'now' + } +}; + +interface ViewMlJobArgs { + serviceName: string; + transactionType: string; + location: any; + children?: any; +} + +export function ViewMLJob({ + serviceName, + transactionType, + location, + children = 'View Job' +}: ViewMlJobArgs) { + const pathname = '/app/ml'; + const hash = '/timeseriesexplorer'; + const jobId = `${serviceName}-${transactionType}-high_mean_response_time`; + const query = { + _g: { + ml: { + jobIds: [jobId] + } + } + }; + + return ( + + ); +} + +export function toQuery(search?: string): StringMap { + return search ? qs.parse(search.slice(1)) : {}; +} + +export function fromQuery(query: StringMap) { + const encodedQuery = encodeQuery(query, ['_g', '_a']); + return stringifyWithoutEncoding(encodedQuery); +} + +export function encodeQuery(query: StringMap, exclude: string[] = []) { + return mapValues(query, (value: any, key: string) => { + if (exclude.includes(key)) { + return encodeURI(value); + } + return qs.escape(value); + }); +} + +function stringifyWithoutEncoding(query: StringMap) { + return qs.stringify(query, undefined, undefined, { + encodeURIComponent: (v: string) => v + }); +} + +function risonSafeDecode(value: string) { + try { + const decoded = rison.decode(value); + return isPlainObject(decoded) ? (decoded as StringMap) : {}; + } catch (e) { + return {}; + } +} + +function decodeAndMergeG(g: string, toBeMerged?: StringMap) { + const decoded = risonSafeDecode(g); + return { ...DEFAULT_KIBANA_TIME_RANGE, ...decoded, ...toBeMerged }; +} + +export interface RelativeLinkComponentArgs { + location: { + search?: string; + pathname?: string; + }; + path: string; + query?: StringMap; + disabled?: boolean; + to?: StringMap; + className?: string; +} +export function RelativeLinkComponent({ + location, + path, + query, + disabled, + ...props +}: RelativeLinkComponentArgs) { + if (disabled) { + return ; + } + + // Shorthand for pathname + const pathname = path || get(props.to, 'pathname') || location.pathname; + + // Add support for querystring as object + const search = + query || get(props.to, 'query') + ? fromQuery({ + ...toQuery(location.search), + ...query, + ...get(props.to, 'query') + }) + : location.search; + + return ( + + ); +} + +// TODO: +// Both KibanaLink and RelativeLink does similar things, are too magic, and have different APIs. +// The initial idea with KibanaLink was to automatically preserve the timestamp (_g) when making links. RelativeLink went a bit overboard and preserves all query args +// The two components have different APIs: `path` vs `pathname` and one uses EuiLink the other react-router's Link (which behaves differently) +// Suggestion: Deprecate RelativeLink, and clean up KibanaLink + +export interface QueryWithG extends StringMap { + _g?: StringMap; +} + +export interface KibanaLinkArgs { + location: { + search?: string; + pathname?: string; + }; + pathname: string; + hash?: string; + query?: QueryWithG; + disabled?: boolean; + to?: StringMap; + className?: string; +} + +/** + * NOTE: Use this component directly if you have to use a link that is + * going to be rendered outside of React, e.g. in the Kibana global toast loader. + * + * You must remember to pass in location in that case. + */ +export const UnconnectedKibanaLink: React.SFC = ({ + location, + pathname, + hash, + query = {}, + ...props +}) => { + // Preserve current _g and _a + const currentQuery = toQuery(location.search); + const g = decodeAndMergeG(currentQuery._g, query._g); + const nextQuery = { + ...query, + _g: rison.encode(g), + _a: query._a ? rison.encode(query._a) : '' + }; + + const search = stringifyWithoutEncoding(nextQuery); + const href = url.format({ + pathname: chrome.addBasePath(pathname), + hash: `${hash}?${search}` + }); + + return ; +}; + +const withLocation = connect( + ({ location }: { location: any }) => ({ location }), + {} +); +export const RelativeLink = withLocation(RelativeLinkComponent); +export const KibanaLink = withLocation(UnconnectedKibanaLink); + +// This is downright horrible 😭 💔 +// Angular decodes encoded url tokens like "%2F" to "/" which causes the route to change. +// It was supposedly fixed in https://github.com/angular/angular.js/commit/1b779028fdd339febaa1fff5f3bd4cfcda46cc09 but still seeing the issue +export function legacyEncodeURIComponent(rawUrl?: string) { + return rawUrl && encodeURIComponent(rawUrl).replace(/%/g, '~'); +} + +export function legacyDecodeURIComponent(encodedUrl?: string) { + return encodedUrl && decodeURIComponent(encodedUrl.replace(/~/g, '%')); +} + +export function ExternalLink(props: EuiLinkAnchorProps) { + return ; +} + +// Make history singleton available across APM project. +// This is not great. Other options are to use context or withRouter helper +// React Context API is unstable and will change soon-ish (probably 16.3) +// withRouter helper from react-router overrides several props (eg. `location`) which makes it less desireable +export const history = createHistory(); diff --git a/x-pack/plugins/apm/server/lib/helpers/input_validation.js b/x-pack/plugins/apm/server/lib/helpers/input_validation.ts similarity index 100% rename from x-pack/plugins/apm/server/lib/helpers/input_validation.js rename to x-pack/plugins/apm/server/lib/helpers/input_validation.ts diff --git a/x-pack/plugins/apm/server/lib/helpers/setup_request.js b/x-pack/plugins/apm/server/lib/helpers/setup_request.js deleted file mode 100644 index 0754816660769..0000000000000 --- a/x-pack/plugins/apm/server/lib/helpers/setup_request.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -/* eslint-disable no-console */ -import moment from 'moment'; - -function decodeEsQuery(esQuery) { - return esQuery ? JSON.parse(decodeURIComponent(esQuery)) : null; -} - -export function setupRequest(req, reply) { - const cluster = req.server.plugins.elasticsearch.getCluster('data'); - - const setup = { - start: moment.utc(req.query.start).valueOf(), - end: moment.utc(req.query.end).valueOf(), - esFilterQuery: decodeEsQuery(req.query.esFilterQuery), - client: (type, params) => { - if (req.query._debug) { - console.log(`DEBUG ES QUERY:`); - console.log( - `${req.method.toUpperCase()} ${req.url.pathname} ${JSON.stringify( - req.query - )}` - ); - console.log(`GET ${params.index}/_search`); - console.log(JSON.stringify(params.body, null, 4)); - } - return cluster.callWithRequest(req, type, params); - }, - config: req.server.config() - }; - - reply(setup); -} diff --git a/x-pack/plugins/apm/server/lib/helpers/setup_request.ts b/x-pack/plugins/apm/server/lib/helpers/setup_request.ts new file mode 100644 index 0000000000000..70773755c2c78 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/helpers/setup_request.ts @@ -0,0 +1,73 @@ +/* + * 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. + */ + +/* tslint:disable no-console */ +import { SearchParams, SearchResponse } from 'elasticsearch'; +import { Request } from 'hapi'; +import moment from 'moment'; + +function decodeEsQuery(esQuery?: string): object { + return esQuery ? JSON.parse(decodeURIComponent(esQuery)) : null; +} + +interface KibanaConfig { + get: (key: string) => any; +} + +// Extend the defaults with the plugins and server methods we need. +declare module 'hapi' { + interface PluginProperties { + elasticsearch: any; + } + + interface Server { + config: () => KibanaConfig; + } +} + +type Client = (type: string, params: SearchParams) => SearchResponse; + +export interface Setup { + start: number; + end: number; + esFilterQuery: any; + client: Client; + config: KibanaConfig; +} + +interface APMRequestQuery { + _debug: string; + start: string; + end: string; + esFilterQuery: string; +} + +export function setupRequest(req: Request) { + const query = (req.query as unknown) as APMRequestQuery; + const cluster = req.server.plugins.elasticsearch.getCluster('data'); + + function client(type: string, params: SearchParams): SearchResponse { + if (query._debug) { + console.log(`DEBUG ES QUERY:`); + console.log( + `${req.method.toUpperCase()} ${req.url.pathname} ${JSON.stringify( + query + )}` + ); + console.log(`GET ${params.index}/_search`); + console.log(JSON.stringify(params.body, null, 4)); + } + return cluster.callWithRequest(req, type, params); + } + + return { + start: moment.utc(query.start).valueOf(), + end: moment.utc(query.end).valueOf(), + esFilterQuery: decodeEsQuery(query.esFilterQuery), + client, + config: req.server.config() + }; +} diff --git a/x-pack/plugins/apm/server/lib/helpers/transaction_group_query.ts b/x-pack/plugins/apm/server/lib/helpers/transaction_group_query.ts new file mode 100644 index 0000000000000..db7b65c646870 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/helpers/transaction_group_query.ts @@ -0,0 +1,95 @@ +/* + * 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 moment from 'moment'; +import { + TRANSACTION_DURATION, + TRANSACTION_NAME +} from '../../../common/constants'; +import { Transaction } from '../../../typings/Transaction'; +import { ITransactionGroup } from '../../../typings/TransactionGroup'; + +export interface ITransactionGroupBucket { + key: string; + doc_count: number; + avg: { + value: number; + }; + p95: { + values: { + '95.0': number; + }; + }; + sample: { + hits: { + hits: Array<{ + _source: Transaction; + }>; + }; + }; +} + +export const TRANSACTION_GROUP_AGGREGATES = { + transactions: { + terms: { + field: `${TRANSACTION_NAME}.keyword`, + order: { avg: 'desc' }, + size: 100 + }, + aggs: { + sample: { + top_hits: { + size: 1, + sort: [{ '@timestamp': { order: 'desc' } }] + } + }, + avg: { avg: { field: TRANSACTION_DURATION } }, + p95: { percentiles: { field: TRANSACTION_DURATION, percents: [95] } } + } + } +}; + +function calculateRelativeImpacts(results: ITransactionGroup[]) { + const values = results.map(({ impact }) => impact); + const max = Math.max(...values); + const min = Math.min(...values); + + return results.map(bucket => ({ + ...bucket, + impact: ((bucket.impact - min) / (max - min)) * 100 + })); +} + +export function prepareTransactionGroups({ + buckets, + start, + end +}: { + buckets: ITransactionGroupBucket[]; + start: number; + end: number; +}) { + const duration = moment.duration(end - start); + const minutes = duration.asMinutes(); + + const results = buckets.map((bucket: ITransactionGroupBucket) => { + const averageResponseTime = bucket.avg.value; + const transactionsPerMinute = bucket.doc_count / minutes; + const impact = Math.round(averageResponseTime * transactionsPerMinute); + const sample = bucket.sample.hits.hits[0]._source; + + return { + name: bucket.key, + sample, + p95: bucket.p95.values['95.0'], + averageResponseTime, + transactionsPerMinute, + impact + }; + }); + + return calculateRelativeImpacts(results); +} diff --git a/x-pack/plugins/apm/server/lib/services/get_service.js b/x-pack/plugins/apm/server/lib/services/get_service.js deleted file mode 100644 index 416dfaf3746c4..0000000000000 --- a/x-pack/plugins/apm/server/lib/services/get_service.js +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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 { get } from 'lodash'; -import { - SERVICE_NAME, - TRANSACTION_TYPE, - SERVICE_AGENT_NAME -} from '../../../common/constants'; - -export async function getService({ serviceName, setup }) { - const { start, end, esFilterQuery, client, config } = setup; - - const params = { - index: [ - config.get('apm_oss.errorIndices'), - config.get('apm_oss.transactionIndices') - ], - body: { - size: 0, - query: { - bool: { - filter: [ - { term: { [SERVICE_NAME]: serviceName } }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ] - } - }, - aggs: { - types: { - terms: { field: TRANSACTION_TYPE, size: 100 } - }, - agents: { - terms: { field: SERVICE_AGENT_NAME, size: 1 } - } - } - } - }; - - if (esFilterQuery) { - params.body.query.bool.filter.push(esFilterQuery); - } - - const resp = await client('search', params); - - return { - service_name: serviceName, - types: resp.aggregations.types.buckets.map(bucket => bucket.key), - agent_name: get(resp, 'aggregations.agents.buckets[0].key') - }; -} diff --git a/x-pack/plugins/apm/server/lib/services/get_service.ts b/x-pack/plugins/apm/server/lib/services/get_service.ts new file mode 100644 index 0000000000000..2998f3487ecc6 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/services/get_service.ts @@ -0,0 +1,83 @@ +/* + * 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 { oc } from 'ts-optchain'; +import { TermsAggsBucket } from 'x-pack/plugins/apm/typings/elasticsearch'; +import { + SERVICE_AGENT_NAME, + SERVICE_NAME, + TRANSACTION_TYPE +} from '../../../common/constants'; +import { Setup } from '../helpers/setup_request'; + +export interface ServiceResponse { + service_name: string; + types: string[]; + agent_name?: string; +} + +export async function getService( + serviceName: string, + setup: Setup +): Promise { + const { start, end, esFilterQuery, client, config } = setup; + + const params = { + index: [ + config.get('apm_oss.errorIndices'), + config.get('apm_oss.transactionIndices') + ], + body: { + size: 0, + query: { + bool: { + filter: [ + { term: { [SERVICE_NAME]: serviceName } }, + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + } + ] + } + }, + aggs: { + types: { + terms: { field: TRANSACTION_TYPE, size: 100 } + }, + agents: { + terms: { field: SERVICE_AGENT_NAME, size: 1 } + } + } + } + }; + + if (esFilterQuery) { + params.body.query.bool.filter.push(esFilterQuery); + } + + interface Aggs { + types: { + buckets: TermsAggsBucket[]; + }; + agents: { + buckets: TermsAggsBucket[]; + }; + } + + const resp = await client('search', params); + const aggs: Aggs = resp.aggregations; + + return { + service_name: serviceName, + types: aggs.types.buckets.map(bucket => bucket.key), + agent_name: oc(aggs).agents.buckets[0].key() + }; +} diff --git a/x-pack/plugins/apm/server/lib/services/get_services.js b/x-pack/plugins/apm/server/lib/services/get_services.js deleted file mode 100644 index 37da74123ffdd..0000000000000 --- a/x-pack/plugins/apm/server/lib/services/get_services.js +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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 { - SERVICE_NAME, - TRANSACTION_DURATION, - SERVICE_AGENT_NAME, - PROCESSOR_EVENT -} from '../../../common/constants'; -import { get } from 'lodash'; - -export async function getServices({ setup }) { - const { start, end, esFilterQuery, client, config } = setup; - - const params = { - index: [ - config.get('apm_oss.errorIndices'), - config.get('apm_oss.transactionIndices') - ], - body: { - size: 0, - query: { - bool: { - filter: [ - { - bool: { - should: [ - { term: { [PROCESSOR_EVENT]: 'transaction' } }, - { term: { [PROCESSOR_EVENT]: 'error' } } - ] - } - }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ] - } - }, - aggs: { - services: { - terms: { - field: SERVICE_NAME, - size: 500 - }, - aggs: { - avg: { - avg: { field: TRANSACTION_DURATION } - }, - agents: { - terms: { field: SERVICE_AGENT_NAME, size: 1 } - }, - events: { - terms: { field: PROCESSOR_EVENT, size: 2 } - } - } - } - } - } - }; - - if (esFilterQuery) { - params.body.query.bool.filter.push(esFilterQuery); - } - - const resp = await client('search', params); - - const buckets = get(resp.aggregations, 'services.buckets', []); - return buckets.map(bucket => { - const eventTypes = bucket.events.buckets; - - const transactions = eventTypes.find(e => e.key === 'transaction'); - const totalTransactions = get(transactions, 'doc_count', 0); - - const errors = eventTypes.find(e => e.key === 'error'); - const totalErrors = get(errors, 'doc_count', 0); - - const deltaAsMinutes = (end - start) / 1000 / 60; - - const transactionsPerMinute = totalTransactions / deltaAsMinutes; - const errorsPerMinute = totalErrors / deltaAsMinutes; - - return { - service_name: bucket.key, - agent_name: get(bucket, 'agents.buckets[0].key', null), - transactions_per_minute: transactionsPerMinute, - errors_per_minute: errorsPerMinute, - avg_response_time: bucket.avg.value - }; - }); -} diff --git a/x-pack/plugins/apm/server/lib/services/get_services.ts b/x-pack/plugins/apm/server/lib/services/get_services.ts new file mode 100644 index 0000000000000..eeb39c256e8a3 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/services/get_services.ts @@ -0,0 +1,128 @@ +/* + * 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 { oc } from 'ts-optchain'; +import { TermsAggsBucket } from 'x-pack/plugins/apm/typings/elasticsearch'; +import { + PROCESSOR_EVENT, + SERVICE_AGENT_NAME, + SERVICE_NAME, + TRANSACTION_DURATION +} from '../../../common/constants'; +import { Setup } from '../helpers/setup_request'; + +export interface ServiceListItemResponse { + service_name: string; + agent_name: string | undefined; + transactions_per_minute: number; + errors_per_minute: number; + avg_response_time: number; +} + +export async function getServices( + setup: Setup +): Promise { + const { start, end, esFilterQuery, client, config } = setup; + + const params = { + index: [ + config.get('apm_oss.errorIndices'), + config.get('apm_oss.transactionIndices') + ], + body: { + size: 0, + query: { + bool: { + filter: [ + { + bool: { + should: [ + { term: { [PROCESSOR_EVENT]: 'transaction' } }, + { term: { [PROCESSOR_EVENT]: 'error' } } + ] + } + }, + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + } + ] + } + }, + aggs: { + services: { + terms: { + field: SERVICE_NAME, + size: 500 + }, + aggs: { + avg: { + avg: { field: TRANSACTION_DURATION } + }, + agents: { + terms: { field: SERVICE_AGENT_NAME, size: 1 } + }, + events: { + terms: { field: PROCESSOR_EVENT, size: 2 } + } + } + } + } + } + }; + + if (esFilterQuery) { + params.body.query.bool.filter.push(esFilterQuery); + } + + interface ServiceBucket extends TermsAggsBucket { + avg: { + value: number; + }; + agents: { + buckets: TermsAggsBucket[]; + }; + events: { + buckets: TermsAggsBucket[]; + }; + } + + interface Aggs extends TermsAggsBucket { + services: { + buckets: ServiceBucket[]; + }; + } + + const resp = await client('search', params); + const aggs: Aggs = resp.aggregations; + const serviceBuckets = oc(aggs).services.buckets([]); + + return serviceBuckets.map(bucket => { + const eventTypes = bucket.events.buckets; + const transactions = eventTypes.find(e => e.key === 'transaction'); + const totalTransactions = oc(transactions).doc_count(0); + + const errors = eventTypes.find(e => e.key === 'error'); + const totalErrors = oc(errors).doc_count(0); + + const deltaAsMinutes = (end - start) / 1000 / 60; + const transactionsPerMinute = totalTransactions / deltaAsMinutes; + const errorsPerMinute = totalErrors / deltaAsMinutes; + + return { + service_name: bucket.key, + agent_name: oc(bucket).agents.buckets[0].key(), + transactions_per_minute: transactionsPerMinute, + errors_per_minute: errorsPerMinute, + avg_response_time: bucket.avg.value + }; + }); +} diff --git a/x-pack/plugins/apm/server/lib/traces/get_top_traces.ts b/x-pack/plugins/apm/server/lib/traces/get_top_traces.ts new file mode 100644 index 0000000000000..990879690d9b7 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/traces/get_top_traces.ts @@ -0,0 +1,77 @@ +/* + * 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 { SearchResponse } from 'elasticsearch'; +import { get } from 'lodash'; +import { + PARENT_ID, + PROCESSOR_EVENT, + TRACE_ID +} from '../../../common/constants'; +import { Transaction } from '../../../typings/Transaction'; +import { ITransactionGroup } from '../../../typings/TransactionGroup'; +import { Setup } from '../helpers/setup_request'; +import { + ITransactionGroupBucket, + prepareTransactionGroups, + TRANSACTION_GROUP_AGGREGATES +} from '../helpers/transaction_group_query'; + +export async function getTopTraces(setup: Setup): Promise { + const { start, end, esFilterQuery, client, config } = setup; + + const params = { + index: config.get('apm_oss.transactionIndices'), + body: { + size: 0, + query: { + bool: { + must: { + // this criterion safeguards against data that lacks a transaction + // parent ID but still is not a "trace" by way of not having a + // trace ID (e.g. old data before parent ID was implemented, etc) + exists: { + field: TRACE_ID + } + }, + must_not: { + // no parent ID alongside a trace ID means this transaction is a + // "root" transaction, i.e. a trace + exists: { + field: PARENT_ID + } + }, + filter: [ + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + }, + { term: { [PROCESSOR_EVENT]: 'transaction' } } + ] + } + }, + aggs: TRANSACTION_GROUP_AGGREGATES + } + }; + + if (esFilterQuery) { + params.body.query.bool.filter.push(esFilterQuery); + } + + const response: SearchResponse = await client('search', params); + const buckets: ITransactionGroupBucket[] = get( + response.aggregations, + 'transactions.buckets', + [] + ); + + return prepareTransactionGroups({ buckets, start, end }); +} diff --git a/x-pack/plugins/apm/server/lib/traces/get_trace.ts b/x-pack/plugins/apm/server/lib/traces/get_trace.ts new file mode 100644 index 0000000000000..b92e9e377e701 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/traces/get_trace.ts @@ -0,0 +1,49 @@ +/* + * 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 { SearchParams, SearchResponse } from 'elasticsearch'; +import { WaterfallResponse } from 'x-pack/plugins/apm/typings/waterfall'; +import { TRACE_ID } from '../../../common/constants'; +import { Span } from '../../../typings/Span'; +import { Transaction } from '../../../typings/Transaction'; +import { Setup } from '../helpers/setup_request'; + +export async function getTrace( + traceId: string, + setup: Setup +): Promise { + const { start, end, client, config } = setup; + + const params: SearchParams = { + index: config.get('apm_oss.transactionIndices'), + body: { + size: 1000, + query: { + bool: { + filter: [ + { term: { [TRACE_ID]: traceId } }, + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + } + ] + } + } + } + }; + + const resp: SearchResponse = await client( + 'search', + params + ); + + return resp.hits.hits.map(hit => hit._source); +} diff --git a/x-pack/plugins/apm/server/lib/transactions/distribution/calculate_bucket_size.js b/x-pack/plugins/apm/server/lib/transactions/distribution/calculate_bucket_size.js deleted file mode 100644 index 1102211f0cc1b..0000000000000 --- a/x-pack/plugins/apm/server/lib/transactions/distribution/calculate_bucket_size.js +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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 { - SERVICE_NAME, - TRANSACTION_NAME, - TRANSACTION_DURATION -} from '../../../../common/constants'; - -export async function calculateBucketSize({ - serviceName, - transactionName, - setup -}) { - const { start, end, esFilterQuery, client, config } = setup; - - const params = { - index: config.get('apm_oss.transactionIndices'), - body: { - size: 0, - query: { - bool: { - filter: [ - { term: { [SERVICE_NAME]: serviceName } }, - { term: { [`${TRANSACTION_NAME}.keyword`]: transactionName } }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ] - } - }, - aggs: { - stats: { - extended_stats: { - field: TRANSACTION_DURATION - } - } - } - } - }; - - if (esFilterQuery) { - params.body.query.bool.filter.push(esFilterQuery); - } - - const resp = await client('search', params); - const minBucketSize = config.get('xpack.apm.minimumBucketSize'); - const bucketTargetCount = config.get('xpack.apm.bucketTargetCount'); - const { max } = resp.aggregations.stats; - const bucketSize = Math.floor(max / bucketTargetCount); - - return bucketSize > minBucketSize ? bucketSize : minBucketSize; -} diff --git a/x-pack/plugins/apm/server/lib/transactions/distribution/calculate_bucket_size.ts b/x-pack/plugins/apm/server/lib/transactions/distribution/calculate_bucket_size.ts new file mode 100644 index 0000000000000..38025110730bf --- /dev/null +++ b/x-pack/plugins/apm/server/lib/transactions/distribution/calculate_bucket_size.ts @@ -0,0 +1,64 @@ +/* + * 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 { SearchParams } from 'elasticsearch'; +import { + SERVICE_NAME, + TRANSACTION_DURATION, + TRANSACTION_NAME +} from '../../../../common/constants'; +import { Setup } from '../../helpers/setup_request'; + +export async function calculateBucketSize( + serviceName: string, + transactionName: string, + setup: Setup +) { + const { start, end, esFilterQuery, client, config } = setup; + + const params: SearchParams = { + index: config.get('apm_oss.transactionIndices'), + body: { + size: 0, + query: { + bool: { + filter: [ + { term: { [SERVICE_NAME]: serviceName } }, + { term: { [`${TRANSACTION_NAME}.keyword`]: transactionName } }, + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + } + ] + } + }, + aggs: { + stats: { + extended_stats: { + field: TRANSACTION_DURATION + } + } + } + } + }; + + if (esFilterQuery) { + params.body.query.bool.filter.push(esFilterQuery); + } + + const resp = await client('search', params); + const minBucketSize: number = config.get('xpack.apm.minimumBucketSize'); + const bucketTargetCount: number = config.get('xpack.apm.bucketTargetCount'); + const max: number = resp.aggregations.stats.max; + const bucketSize = Math.floor(max / bucketTargetCount); + + return bucketSize > minBucketSize ? bucketSize : minBucketSize; +} diff --git a/x-pack/plugins/apm/server/lib/transactions/distribution/get_buckets.js b/x-pack/plugins/apm/server/lib/transactions/distribution/get_buckets.js deleted file mode 100644 index d5c0d4835a7bf..0000000000000 --- a/x-pack/plugins/apm/server/lib/transactions/distribution/get_buckets.js +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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 { get } from 'lodash'; -import { - SERVICE_NAME, - TRANSACTION_DURATION, - TRANSACTION_ID, - TRANSACTION_NAME, - TRANSACTION_SAMPLED -} from '../../../../common/constants'; - -export async function getBuckets({ - serviceName, - transactionName, - bucketSize = 100, - setup -}) { - const { start, end, esFilterQuery, client, config } = setup; - - const bucketTargetCount = config.get('xpack.apm.bucketTargetCount'); - - const params = { - index: config.get('apm_oss.transactionIndices'), - body: { - size: 0, - query: { - bool: { - filter: [ - { term: { [SERVICE_NAME]: serviceName } }, - { term: { [`${TRANSACTION_NAME}.keyword`]: transactionName } }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ], - should: [{ term: { [TRANSACTION_SAMPLED]: true } }] - } - }, - aggs: { - distribution: { - histogram: { - field: TRANSACTION_DURATION, - interval: bucketSize, - min_doc_count: 0, - extended_bounds: { - min: 0, - max: bucketSize * bucketTargetCount - } - }, - aggs: { - transaction: { - top_hits: { - _source: [TRANSACTION_ID, TRANSACTION_SAMPLED], - size: 1 - } - } - } - } - } - } - }; - - if (esFilterQuery) { - params.body.query.bool.filter.push(esFilterQuery); - } - - const resp = await client('search', params); - - const buckets = resp.aggregations.distribution.buckets.map(bucket => { - const transaction = get(bucket.transaction.hits.hits[0], '_source'); - return { - key: bucket.key, - count: bucket.doc_count, - transaction_id: get(transaction, TRANSACTION_ID), - sampled: get(transaction, TRANSACTION_SAMPLED) - }; - }); - - return { - total_hits: resp.hits.total, - buckets - }; -} diff --git a/x-pack/plugins/apm/server/lib/transactions/distribution/get_buckets.ts b/x-pack/plugins/apm/server/lib/transactions/distribution/get_buckets.ts new file mode 100644 index 0000000000000..b552d7e3146e7 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/transactions/distribution/get_buckets.ts @@ -0,0 +1,127 @@ +/* + * 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 { SearchParams, SearchResponse } from 'elasticsearch'; +import { oc } from 'ts-optchain'; +import { + SERVICE_NAME, + TRACE_ID, + TRANSACTION_DURATION, + TRANSACTION_ID, + TRANSACTION_NAME, + TRANSACTION_SAMPLED +} from '../../../../common/constants'; +import { Transaction } from '../../../../typings/Transaction'; +import { Setup } from '../../helpers/setup_request'; + +export interface IBucket { + key: number; + count: number; + sample?: IBucketSample; +} + +interface IBucketSample { + traceId?: string; + transactionId?: string; +} + +interface IBucketsResponse { + totalHits: number; + buckets: IBucket[]; +} + +interface ESBucket { + key: number; + doc_count: number; + sample: SearchResponse<{ + transaction: Pick; + trace: { + id: string; + }; + }>; +} + +export async function getBuckets( + serviceName: string, + transactionName: string, + bucketSize: number, + setup: Setup +): Promise { + const { start, end, esFilterQuery, client, config } = setup; + const bucketTargetCount: number = config.get('xpack.apm.bucketTargetCount'); + const params: SearchParams = { + index: config.get('apm_oss.transactionIndices'), + body: { + size: 0, + query: { + bool: { + filter: [ + { term: { [SERVICE_NAME]: serviceName } }, + { term: { [`${TRANSACTION_NAME}.keyword`]: transactionName } }, + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + } + ], + should: [{ term: { [TRANSACTION_SAMPLED]: true } }] + } + }, + aggs: { + distribution: { + histogram: { + field: TRANSACTION_DURATION, + interval: bucketSize, + min_doc_count: 0, + extended_bounds: { + min: 0, + max: bucketSize * bucketTargetCount + } + }, + aggs: { + sample: { + top_hits: { + _source: [TRANSACTION_ID, TRANSACTION_SAMPLED, TRACE_ID], + size: 1 + } + } + } + } + } + } + }; + + if (esFilterQuery) { + params.body.query.bool.filter.push(esFilterQuery); + } + + const resp = await client('search', params); + const buckets = (resp.aggregations.distribution.buckets as ESBucket[]).map( + bucket => { + const sampleSource = oc(bucket).sample.hits.hits[0]._source(); + const isSampled = oc(sampleSource).transaction.sampled(false); + const sample = { + traceId: oc(sampleSource).trace.id(), + transactionId: oc(sampleSource).transaction.id() + }; + + return { + key: bucket.key, + count: bucket.doc_count, + sample: isSampled ? sample : undefined + }; + } + ); + + return { + totalHits: resp.hits.total, + buckets + }; +} diff --git a/x-pack/plugins/apm/server/lib/transactions/distribution/get_distribution.js b/x-pack/plugins/apm/server/lib/transactions/distribution/get_distribution.js deleted file mode 100644 index c6902eab3a454..0000000000000 --- a/x-pack/plugins/apm/server/lib/transactions/distribution/get_distribution.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 { get, isEmpty } from 'lodash'; -import { getBuckets } from './get_buckets'; -import { calculateBucketSize } from './calculate_bucket_size'; - -function getDefaultTransactionId(buckets) { - const filledBuckets = buckets.filter( - bucket => bucket.count && bucket.sampled - ); - - if (isEmpty(filledBuckets)) { - return; - } - - const middleIndex = Math.floor(filledBuckets.length / 2); - return get(filledBuckets, `[${middleIndex}].transaction_id`); -} - -export async function getDistribution({ serviceName, transactionName, setup }) { - const bucketSize = await calculateBucketSize({ - serviceName, - transactionName, - setup - }); - const { buckets, total_hits: totalHits } = await getBuckets({ - serviceName, - transactionName, - setup, - bucketSize - }); - - return { - total_hits: totalHits, - buckets, - bucket_size: bucketSize, - default_transaction_id: getDefaultTransactionId(buckets) - }; -} diff --git a/x-pack/plugins/apm/server/lib/transactions/distribution/get_distribution.ts b/x-pack/plugins/apm/server/lib/transactions/distribution/get_distribution.ts new file mode 100644 index 0000000000000..c3ba7d53c23e3 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/transactions/distribution/get_distribution.ts @@ -0,0 +1,55 @@ +/* + * 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 { isEmpty } from 'lodash'; +import { Setup } from '../../helpers/setup_request'; +import { calculateBucketSize } from './calculate_bucket_size'; +import { getBuckets, IBucket } from './get_buckets'; + +export interface IDistributionResponse { + totalHits: number; + buckets: IBucket[]; + bucketSize: number; + defaultSample?: IBucket['sample']; +} + +function getDefaultSample(buckets: IBucket[]) { + const samples = buckets + .filter(bucket => bucket.count > 0 && bucket.sample) + .map(bucket => bucket.sample); + + if (isEmpty(samples)) { + return; + } + + const middleIndex = Math.floor(samples.length / 2); + return samples[middleIndex]; +} + +export async function getDistribution( + serviceName: string, + transactionName: string, + setup: Setup +): Promise { + const bucketSize = await calculateBucketSize( + serviceName, + transactionName, + setup + ); + const { buckets, totalHits } = await getBuckets( + serviceName, + transactionName, + bucketSize, + setup + ); + + return { + totalHits, + buckets, + bucketSize, + defaultSample: getDefaultSample(buckets) + }; +} diff --git a/x-pack/plugins/apm/server/lib/transactions/get_top_transactions.js b/x-pack/plugins/apm/server/lib/transactions/get_top_transactions.js deleted file mode 100644 index e9e607f277f1a..0000000000000 --- a/x-pack/plugins/apm/server/lib/transactions/get_top_transactions.js +++ /dev/null @@ -1,101 +0,0 @@ -/* - * 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 moment from 'moment'; -import { - SERVICE_NAME, - TRANSACTION_TYPE, - TRANSACTION_NAME, - TRANSACTION_ID, - TRANSACTION_DURATION -} from '../../../common/constants'; -import { get, sortBy } from 'lodash'; - -export async function getTopTransactions({ - transactionType, - serviceName, - setup -}) { - const { start, end, esFilterQuery, client, config } = setup; - - const duration = moment.duration(end - start); - const minutes = duration.asMinutes(); - - const params = { - index: config.get('apm_oss.transactionIndices'), - body: { - size: 0, - query: { - bool: { - filter: [ - { term: { [SERVICE_NAME]: serviceName } }, - { term: { [TRANSACTION_TYPE]: transactionType } }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ] - } - }, - aggs: { - transactions: { - terms: { - field: `${TRANSACTION_NAME}.keyword`, - order: { avg: 'desc' }, - size: 100 - }, - aggs: { - sample: { - top_hits: { - _source: [TRANSACTION_ID], - size: 1, - sort: [{ '@timestamp': { order: 'desc' } }] - } - }, - avg: { - avg: { field: TRANSACTION_DURATION } - }, - p95: { - percentiles: { - field: TRANSACTION_DURATION, - percents: [95] - } - } - } - } - } - } - }; - - if (esFilterQuery) { - params.body.query.bool.filter.push(esFilterQuery); - } - - const resp = await client('search', params); - const buckets = get(resp, 'aggregations.transactions.buckets', []); - const results = buckets.map(bucket => { - const avg = bucket.avg.value; - const tpm = bucket.doc_count / minutes; - const impact = Math.round(avg * tpm); - return { - name: bucket.key, - id: get(bucket, `sample.hits.hits[0]._source.${TRANSACTION_ID}`), - p95: bucket.p95.values['95.0'], - avg, - tpm, - impact, - transaction_type: transactionType - }; - }); - - // Sort results by impact - needs to be desc, hence the reverse() - return sortBy(results, o => o.impact).reverse(); -} diff --git a/x-pack/plugins/apm/server/lib/transactions/get_top_transactions.ts b/x-pack/plugins/apm/server/lib/transactions/get_top_transactions.ts new file mode 100644 index 0000000000000..059d3710b969a --- /dev/null +++ b/x-pack/plugins/apm/server/lib/transactions/get_top_transactions.ts @@ -0,0 +1,63 @@ +/* + * 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 { SearchParams, SearchResponse } from 'elasticsearch'; +import { get } from 'lodash'; +import { + PROCESSOR_EVENT, + SERVICE_NAME, + TRANSACTION_TYPE +} from '../../../common/constants'; +import { Transaction } from '../../../typings/Transaction'; +import { ITransactionGroup } from '../../../typings/TransactionGroup'; +import { Setup } from '../helpers/setup_request'; +import { + prepareTransactionGroups, + TRANSACTION_GROUP_AGGREGATES +} from '../helpers/transaction_group_query'; + +export async function getTopTransactions({ + setup, + transactionType, + serviceName +}: { + setup: Setup; + transactionType: string; + serviceName: string; +}): Promise { + const { start, end, esFilterQuery, client, config } = setup; + + const params: SearchParams = { + index: config.get('apm_oss.transactionIndices'), + body: { + size: 0, + query: { + bool: { + filter: [ + { term: { [SERVICE_NAME]: serviceName } }, + { term: { [TRANSACTION_TYPE]: transactionType } }, + { term: { [PROCESSOR_EVENT]: 'transaction' } }, + { + range: { + '@timestamp': { gte: start, lte: end, format: 'epoch_millis' } + } + } + ] + } + }, + aggs: TRANSACTION_GROUP_AGGREGATES + } + }; + + if (esFilterQuery) { + params.body.query.bool.filter.push(esFilterQuery); + } + + const response: SearchResponse = await client('search', params); + const buckets = get(response, 'aggregations.transactions.buckets', []); + + return prepareTransactionGroups({ buckets, start, end }); +} diff --git a/x-pack/plugins/apm/server/lib/transactions/get_transaction.js b/x-pack/plugins/apm/server/lib/transactions/get_transaction.js deleted file mode 100644 index 3319814a4ec90..0000000000000 --- a/x-pack/plugins/apm/server/lib/transactions/get_transaction.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { TRANSACTION_ID, PROCESSOR_EVENT } from '../../../common/constants'; -import { get } from 'lodash'; - -async function getTransaction({ transactionId, setup }) { - const { start, end, esFilterQuery, client, config } = setup; - - const params = { - index: config.get('apm_oss.transactionIndices'), - body: { - size: 1, - query: { - bool: { - filter: [ - { term: { [PROCESSOR_EVENT]: 'transaction' } }, - { term: { [TRANSACTION_ID]: transactionId } }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ] - } - } - } - }; - - if (esFilterQuery) { - params.body.query.bool.filter.push(esFilterQuery); - } - - const resp = await client('search', params); - return get(resp, 'hits.hits[0]._source', {}); -} - -export default getTransaction; diff --git a/x-pack/plugins/apm/server/lib/transactions/get_transaction.ts b/x-pack/plugins/apm/server/lib/transactions/get_transaction.ts new file mode 100644 index 0000000000000..301e54d1f2a03 --- /dev/null +++ b/x-pack/plugins/apm/server/lib/transactions/get_transaction.ts @@ -0,0 +1,58 @@ +/* + * 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 { SearchParams, SearchResponse } from 'elasticsearch'; +import { oc } from 'ts-optchain'; +import { Transaction } from 'x-pack/plugins/apm/typings/Transaction'; +import { + PROCESSOR_EVENT, + TRACE_ID, + TRANSACTION_ID +} from '../../../common/constants'; +import { Setup } from '../helpers/setup_request'; + +export async function getTransaction( + transactionId: string, + traceId: string | undefined, + setup: Setup +) { + const { start, end, esFilterQuery, client, config } = setup; + + const params: SearchParams = { + index: config.get('apm_oss.transactionIndices'), + body: { + size: 1, + query: { + bool: { + filter: [ + { term: { [PROCESSOR_EVENT]: 'transaction' } }, + { term: { [TRANSACTION_ID]: transactionId } }, + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + } + ] + } + } + } + }; + + if (esFilterQuery) { + params.body.query.bool.filter.push(esFilterQuery); + } + + if (traceId) { + params.body.query.bool.filter.push({ term: { [TRACE_ID]: traceId } }); + } + + const resp: SearchResponse = await client('search', params); + return oc(resp).hits.hits[0]._source() || null; +} diff --git a/x-pack/plugins/apm/server/lib/transactions/get_transaction_duration.js b/x-pack/plugins/apm/server/lib/transactions/get_transaction_duration.js deleted file mode 100644 index fb9620fe9659a..0000000000000 --- a/x-pack/plugins/apm/server/lib/transactions/get_transaction_duration.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 { get } from 'lodash'; -import { - TRANSACTION_ID, - TRANSACTION_DURATION, - PROCESSOR_EVENT -} from '../../../common/constants'; - -export async function getTransactionDuration({ transactionId, setup }) { - const { start, end, esFilterQuery, client, config } = setup; - - const params = { - index: config.get('apm_oss.transactionIndices'), - body: { - size: 1, - _source: TRANSACTION_DURATION, - query: { - bool: { - filter: [ - { term: { [PROCESSOR_EVENT]: 'transaction' } }, - { term: { [TRANSACTION_ID]: transactionId } }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ] - } - } - } - }; - - if (esFilterQuery) { - params.body.query.bool.filter.push(esFilterQuery); - } - - const resp = await client('search', params); - return get(resp, `hits.hits[0]._source.${TRANSACTION_DURATION}`); -} diff --git a/x-pack/plugins/apm/server/lib/transactions/spans/get_spans.js b/x-pack/plugins/apm/server/lib/transactions/spans/get_spans.js deleted file mode 100644 index b7f3a9f3d96df..0000000000000 --- a/x-pack/plugins/apm/server/lib/transactions/spans/get_spans.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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 { - TRANSACTION_ID, - SPAN_START, - SPAN_TYPE, - PROCESSOR_EVENT -} from '../../../../common/constants'; - -async function getSpans({ transactionId, setup }) { - const { start, end, client, config } = setup; - - const params = { - index: config.get('apm_oss.spanIndices'), - body: { - size: 500, - query: { - bool: { - filter: [ - { term: { [TRANSACTION_ID]: transactionId } }, - { term: { [PROCESSOR_EVENT]: 'span' } }, - { - range: { - '@timestamp': { - gte: start, - lte: end, - format: 'epoch_millis' - } - } - } - ] - } - }, - sort: [{ [SPAN_START]: { order: 'asc' } }], - aggs: { - types: { - terms: { - field: SPAN_TYPE, - size: 100 - } - } - } - } - }; - - const resp = await client('search', params); - return { - span_types: resp.aggregations.types.buckets.map(bucket => ({ - type: bucket.key, - count: bucket.doc_count - })), - spans: resp.hits.hits.map((doc, i) => ({ - doc_id: doc._id, - id: i, - ...doc._source.span, - context: doc._source.context - })) - }; -} - -export default getSpans; diff --git a/x-pack/plugins/apm/server/lib/transactions/spans/get_spans.ts b/x-pack/plugins/apm/server/lib/transactions/spans/get_spans.ts new file mode 100644 index 0000000000000..dc587dfd2f49b --- /dev/null +++ b/x-pack/plugins/apm/server/lib/transactions/spans/get_spans.ts @@ -0,0 +1,55 @@ +/* + * 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 { SearchResponse } from 'elasticsearch'; +import { Span } from 'x-pack/plugins/apm/typings/Span'; +import { + PROCESSOR_EVENT, + SPAN_START, + SPAN_TYPE, + TRANSACTION_ID +} from '../../../../common/constants'; +import { Setup } from '../../helpers/setup_request'; + +export async function getSpans(transactionId: string, setup: Setup) { + const { start, end, client, config } = setup; + + const params = { + index: config.get('apm_oss.spanIndices'), + body: { + size: 500, + query: { + bool: { + filter: [ + { term: { [TRANSACTION_ID]: transactionId } }, + { term: { [PROCESSOR_EVENT]: 'span' } }, + { + range: { + '@timestamp': { + gte: start, + lte: end, + format: 'epoch_millis' + } + } + } + ] + } + }, + sort: [{ [SPAN_START]: { order: 'asc' } }], + aggs: { + types: { + terms: { + field: SPAN_TYPE, + size: 100 + } + } + } + } + }; + + const resp: SearchResponse = await client('search', params); + return resp.hits.hits.map(hit => hit._source); +} diff --git a/x-pack/plugins/apm/server/routes/errors.js b/x-pack/plugins/apm/server/routes/errors.js index 8ff6abd41cc53..775664abc90b6 100644 --- a/x-pack/plugins/apm/server/routes/errors.js +++ b/x-pack/plugins/apm/server/routes/errors.js @@ -15,9 +15,9 @@ import { withDefaultValidators } from '../lib/helpers/input_validation'; const pre = [{ method: setupRequest, assign: 'setup' }]; const ROOT = '/api/apm/services/{serviceName}/errors'; -const defaultErrorHandler = reply => err => { +const defaultErrorHandler = err => { console.error(err.stack); - reply(Boom.wrap(err, 400)); + throw Boom.boomify(err, { statusCode: 400 }); }; export function initErrorsApi(server) { @@ -33,7 +33,7 @@ export function initErrorsApi(server) { }) } }, - handler: (req, reply) => { + handler: req => { const { setup } = req.pre; const { serviceName } = req.params; const { sortField, sortDirection } = req.query; @@ -43,9 +43,7 @@ export function initErrorsApi(server) { sortField, sortDirection, setup - }) - .then(reply) - .catch(defaultErrorHandler(reply)); + }).catch(defaultErrorHandler); } }); @@ -58,12 +56,12 @@ export function initErrorsApi(server) { query: withDefaultValidators() } }, - handler: (req, reply) => { + handler: req => { const { setup } = req.pre; const { serviceName, groupId } = req.params; - return getErrorGroup({ serviceName, groupId, setup }) - .then(reply) - .catch(defaultErrorHandler(reply)); + return getErrorGroup({ serviceName, groupId, setup }).catch( + defaultErrorHandler + ); } }); @@ -76,13 +74,13 @@ export function initErrorsApi(server) { query: withDefaultValidators() } }, - handler: (req, reply) => { + handler: req => { const { setup } = req.pre; const { serviceName, groupId } = req.params; - return getDistribution({ serviceName, groupId, setup }) - .then(reply) - .catch(defaultErrorHandler(reply)); + return getDistribution({ serviceName, groupId, setup }).catch( + defaultErrorHandler + ); } }); } diff --git a/x-pack/plugins/apm/server/routes/services.js b/x-pack/plugins/apm/server/routes/services.js deleted file mode 100644 index 90a3d923800ba..0000000000000 --- a/x-pack/plugins/apm/server/routes/services.js +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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 Boom from 'boom'; -import { getServices } from '../lib/services/get_services'; -import { getService } from '../lib/services/get_service'; -import { setupRequest } from '../lib/helpers/setup_request'; -import { withDefaultValidators } from '../lib/helpers/input_validation'; - -const ROOT = '/api/apm/services'; -const pre = [{ method: setupRequest, assign: 'setup' }]; -const defaultErrorHandler = reply => err => { - console.error(err.stack); - reply(Boom.wrap(err, 400)); -}; - -export function initServicesApi(server) { - server.route({ - method: 'GET', - path: ROOT, - config: { - pre, - validate: { - query: withDefaultValidators() - } - }, - handler: (req, reply) => { - const { setup } = req.pre; - return getServices({ setup }) - .then(reply) - .catch(defaultErrorHandler(reply)); - } - }); - - server.route({ - method: 'GET', - path: `${ROOT}/{serviceName}`, - config: { - pre, - validate: { - query: withDefaultValidators() - } - }, - handler: (req, reply) => { - const { setup } = req.pre; - const { serviceName } = req.params; - return getService({ serviceName, setup }) - .then(reply) - .catch(defaultErrorHandler(reply)); - } - }); -} diff --git a/x-pack/plugins/apm/server/routes/services.ts b/x-pack/plugins/apm/server/routes/services.ts new file mode 100644 index 0000000000000..31cf772c5e5dc --- /dev/null +++ b/x-pack/plugins/apm/server/routes/services.ts @@ -0,0 +1,54 @@ +/* + * 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 Boom from 'boom'; +import { Server } from 'hapi'; +import { withDefaultValidators } from '../lib/helpers/input_validation'; +import { setupRequest } from '../lib/helpers/setup_request'; +import { getService } from '../lib/services/get_service'; +import { getServices } from '../lib/services/get_services'; + +const ROOT = '/api/apm/services'; +const pre = [{ method: setupRequest, assign: 'setup' }]; +const defaultErrorHandler = (err: Error) => { + // tslint:disable-next-line + console.error(err.stack); + // @ts-ignore + return Boom.boomify(err, { statusCode: 400 }); +}; + +export function initServicesApi(server: Server) { + server.route({ + method: 'GET', + path: ROOT, + options: { + pre, + validate: { + query: withDefaultValidators() + } + }, + handler: req => { + const { setup } = req.pre; + return getServices(setup).catch(defaultErrorHandler); + } + }); + + server.route({ + method: 'GET', + path: `${ROOT}/{serviceName}`, + options: { + pre, + validate: { + query: withDefaultValidators() + } + }, + handler: req => { + const { setup } = req.pre; + const { serviceName } = req.params; + return getService(serviceName, setup).catch(defaultErrorHandler); + } + }); +} diff --git a/x-pack/plugins/apm/server/routes/status_check.js b/x-pack/plugins/apm/server/routes/status_check.js index 700fb51fcf14c..8e78fdc4b7848 100644 --- a/x-pack/plugins/apm/server/routes/status_check.js +++ b/x-pack/plugins/apm/server/routes/status_check.js @@ -12,9 +12,9 @@ import { setupRequest } from '../lib/helpers/setup_request'; const ROOT = '/api/apm/status'; const pre = [{ method: setupRequest, assign: 'setup' }]; -const defaultErrorHandler = reply => err => { +const defaultErrorHandler = err => { console.error(err.stack); - reply(Boom.wrap(err, 400)); + throw Boom.boomify(err, { statusCode: 400 }); }; export function initStatusApi(server) { @@ -29,11 +29,9 @@ export function initStatusApi(server) { }) } }, - handler: (req, reply) => { + handler: req => { const { setup } = req.pre; - return getServerStatus({ setup }) - .then(reply) - .catch(defaultErrorHandler(reply)); + return getServerStatus({ setup }).catch(defaultErrorHandler); } }); @@ -48,11 +46,9 @@ export function initStatusApi(server) { }) } }, - handler: (req, reply) => { + handler: req => { const { setup } = req.pre; - return getAgentStatus({ setup }) - .then(reply) - .catch(defaultErrorHandler(reply)); + return getAgentStatus({ setup }).catch(defaultErrorHandler); } }); } diff --git a/x-pack/plugins/apm/server/routes/traces.ts b/x-pack/plugins/apm/server/routes/traces.ts new file mode 100644 index 0000000000000..56588130ba3dd --- /dev/null +++ b/x-pack/plugins/apm/server/routes/traces.ts @@ -0,0 +1,57 @@ +/* + * 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 Boom from 'boom'; +import { Server } from 'hapi'; +import { withDefaultValidators } from '../lib/helpers/input_validation'; +import { setupRequest } from '../lib/helpers/setup_request'; +import { getTopTraces } from '../lib/traces/get_top_traces'; +import { getTrace } from '../lib/traces/get_trace'; + +const pre = [{ method: setupRequest, assign: 'setup' }]; +const ROOT = '/api/apm/traces'; +const defaultErrorHandler = (err: Error) => { + // tslint:disable-next-line + console.error(err.stack); + // @ts-ignore + return Boom.boomify(err, { statusCode: 400 }); +}; + +export function initTracesApi(server: Server) { + // Get trace list + server.route({ + method: 'GET', + path: ROOT, + options: { + pre, + validate: { + query: withDefaultValidators() + } + }, + handler: req => { + const { setup } = req.pre; + + return getTopTraces(setup).catch(defaultErrorHandler); + } + }); + + // Get individual trace + server.route({ + method: 'GET', + path: `${ROOT}/{traceId}`, + options: { + pre, + validate: { + query: withDefaultValidators() + } + }, + handler: req => { + const { traceId } = req.params; + const { setup } = req.pre; + return getTrace(traceId, setup).catch(defaultErrorHandler); + } + }); +} diff --git a/x-pack/plugins/apm/server/routes/transactions.js b/x-pack/plugins/apm/server/routes/transactions.js deleted file mode 100644 index 1bad37fece9c2..0000000000000 --- a/x-pack/plugins/apm/server/routes/transactions.js +++ /dev/null @@ -1,147 +0,0 @@ -/* - * 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 Joi from 'joi'; -import Boom from 'boom'; - -import { getTimeseriesData } from '../lib/transactions/charts/get_timeseries_data'; -import getSpans from '../lib/transactions/spans/get_spans'; -import { getDistribution } from '../lib/transactions/distribution/get_distribution'; -import { getTransactionDuration } from '../lib/transactions/get_transaction_duration'; -import { getTopTransactions } from '../lib/transactions/get_top_transactions'; -import getTransaction from '../lib/transactions/get_transaction'; -import { setupRequest } from '../lib/helpers/setup_request'; -import { withDefaultValidators } from '../lib/helpers/input_validation'; - -const pre = [{ method: setupRequest, assign: 'setup' }]; -const ROOT = '/api/apm/services/{serviceName}/transactions'; -const defaultErrorHandler = reply => err => { - console.error(err.stack); - reply(Boom.wrap(err, 400)); -}; - -export function initTransactionsApi(server) { - server.route({ - method: 'GET', - path: ROOT, - config: { - pre, - validate: { - query: withDefaultValidators({ - transaction_type: Joi.string().default('request'), - query: Joi.string() - }) - } - }, - handler: (req, reply) => { - const { serviceName } = req.params; - const { transaction_type: transactionType } = req.query; - const { setup } = req.pre; - - return getTopTransactions({ - serviceName, - transactionType, - setup - }) - .then(reply) - .catch(defaultErrorHandler(reply)); - } - }); - - server.route({ - method: 'GET', - path: `${ROOT}/{transactionId}`, - config: { - pre, - validate: { - query: withDefaultValidators() - } - }, - handler: (req, reply) => { - const { transactionId } = req.params; - const { setup } = req.pre; - return getTransaction({ transactionId, setup }) - .then(res => reply(res)) - .catch(defaultErrorHandler(reply)); - } - }); - - server.route({ - method: 'GET', - path: `${ROOT}/{transactionId}/spans`, - config: { - pre, - validate: { - query: withDefaultValidators() - } - }, - handler: (req, reply) => { - const { transactionId } = req.params; - const { setup } = req.pre; - return Promise.all([ - getSpans({ transactionId, setup }), - getTransactionDuration({ transactionId, setup }) - ]) - .then(([spans, duration]) => reply({ ...spans, duration })) - .catch(defaultErrorHandler(reply)); - } - }); - - server.route({ - method: 'GET', - path: `${ROOT}/charts`, - config: { - pre, - validate: { - query: withDefaultValidators({ - transaction_type: Joi.string().default('request'), - transaction_name: Joi.string(), - query: Joi.string() - }) - } - }, - handler: (req, reply) => { - const { setup } = req.pre; - const { serviceName } = req.params; - const transactionType = req.query.transaction_type; - const transactionName = req.query.transaction_name; - - return getTimeseriesData({ - serviceName, - transactionType, - transactionName, - setup - }) - .then(reply) - .catch(defaultErrorHandler(reply)); - } - }); - - server.route({ - method: 'GET', - path: `${ROOT}/distribution`, - config: { - pre, - validate: { - query: withDefaultValidators({ - transaction_name: Joi.string().required() - }) - } - }, - handler: (req, reply) => { - const { setup } = req.pre; - const { serviceName } = req.params; - const { transaction_name: transactionName } = req.query; - return getDistribution({ - serviceName, - transactionName, - setup - }) - .then(reply) - .catch(defaultErrorHandler(reply)); - } - }); -} diff --git a/x-pack/plugins/apm/server/routes/transactions.ts b/x-pack/plugins/apm/server/routes/transactions.ts new file mode 100644 index 0000000000000..2774e090e1d57 --- /dev/null +++ b/x-pack/plugins/apm/server/routes/transactions.ts @@ -0,0 +1,147 @@ +/* + * 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 Boom from 'boom'; +import { Server } from 'hapi'; +import Joi from 'joi'; +import { withDefaultValidators } from '../lib/helpers/input_validation'; +import { setupRequest } from '../lib/helpers/setup_request'; +// @ts-ignore +import { getTimeseriesData } from '../lib/transactions/charts/get_timeseries_data'; +import { getDistribution } from '../lib/transactions/distribution/get_distribution'; +import { getTopTransactions } from '../lib/transactions/get_top_transactions'; +import { getTransaction } from '../lib/transactions/get_transaction'; +import { getSpans } from '../lib/transactions/spans/get_spans'; + +const pre = [{ method: setupRequest, assign: 'setup' }]; +const ROOT = '/api/apm/services/{serviceName}/transactions'; +const defaultErrorHandler = (err: Error) => { + // tslint:disable-next-line + console.error(err.stack); + // @ts-ignore + Boom.boomify(err, { statusCode: err.statusCode || 400 }); +}; + +export function initTransactionsApi(server: Server) { + server.route({ + method: 'GET', + path: ROOT, + options: { + pre, + validate: { + query: withDefaultValidators({ + transaction_type: Joi.string().default('request'), + query: Joi.string() + }) + } + }, + handler: req => { + const { serviceName } = req.params; + const { transaction_type: transactionType } = req.query as { + transaction_type: string; + }; + const { setup } = req.pre; + + return getTopTransactions({ + serviceName, + transactionType, + setup + }).catch(defaultErrorHandler); + } + }); + + server.route({ + method: 'GET', + path: `${ROOT}/{transactionId}`, + options: { + pre, + validate: { + query: withDefaultValidators({ + traceId: Joi.string().allow('') + }) + } + }, + handler: req => { + const { transactionId } = req.params; + const { traceId } = req.query as { traceId: string }; + const { setup } = req.pre; + return getTransaction(transactionId, traceId, setup).catch( + defaultErrorHandler + ); + } + }); + + server.route({ + method: 'GET', + path: `${ROOT}/{transactionId}/spans`, + options: { + pre, + validate: { + query: withDefaultValidators() + } + }, + handler: req => { + const { transactionId } = req.params; + const { setup } = req.pre; + return getSpans(transactionId, setup).catch(defaultErrorHandler); + } + }); + + server.route({ + method: 'GET', + path: `${ROOT}/charts`, + options: { + pre, + validate: { + query: withDefaultValidators({ + transaction_type: Joi.string().default('request'), + transaction_name: Joi.string(), + query: Joi.string() + }) + } + }, + handler: req => { + const { setup } = req.pre; + const { serviceName } = req.params; + const { transaction_type: transactionType } = req.query as { + transaction_type: string; + }; + const { transaction_name: transactionName } = req.query as { + transaction_name: string; + }; + + return getTimeseriesData({ + serviceName, + transactionType, + transactionName, + setup + }).catch(defaultErrorHandler); + } + }); + + server.route({ + method: 'GET', + path: `${ROOT}/distribution`, + options: { + pre, + validate: { + query: withDefaultValidators({ + transaction_name: Joi.string().required() + }) + } + }, + handler: req => { + const { setup } = req.pre; + const { serviceName } = req.params; + const { transaction_name: transactionName } = req.query as { + transaction_name: string; + }; + return getDistribution(serviceName, transactionName, setup).catch( + defaultErrorHandler + ); + } + }); +} diff --git a/x-pack/plugins/apm/types.d.ts b/x-pack/plugins/apm/types.d.ts deleted file mode 100644 index e538124ba47eb..0000000000000 --- a/x-pack/plugins/apm/types.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * 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. - */ - -// allow JSON files to be imported directly without TSLint errors -// see: https://github.com/palantir/tslint/issues/1264#issuecomment-228433367 -// and: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts -declare module '*.json' { - const json: any; - export default json; -} - -interface StringMap { - [key: string]: T; -} diff --git a/x-pack/plugins/apm/typings/APMDoc.ts b/x-pack/plugins/apm/typings/APMDoc.ts new file mode 100644 index 0000000000000..dc8fffad9bc30 --- /dev/null +++ b/x-pack/plugins/apm/typings/APMDoc.ts @@ -0,0 +1,81 @@ +/* + * 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 interface APMDocV1 { + '@timestamp': string; + beat: { + hostname: string; + name: string; + version: string; + }; + host: { + name: string; + }; +} + +export interface APMDocV2 extends APMDocV1 { + timestamp: { + us: number; + }; + parent?: { + id: string; // parent ID is not available on the root transaction + }; + trace: { + id: string; + }; +} + +export interface ContextService { + name: string; + agent: { + name: string; + version: string; + }; + framework?: { + name: string; + version: string; + }; + runtime?: { + name: string; + version: string; + }; + language?: { + name: string; + version?: string; + }; +} + +export interface Stackframe { + filename: string; + line: { + number: number; + column?: number; + context?: string; + }; + abs_path?: string; + colno?: number; + context_line?: string; + function?: string; + library_frame?: boolean; + exclude_from_grouping?: boolean; + module?: string; + context?: { + post?: string[]; + pre?: string[]; + }; + sourcemap?: { + updated?: boolean; + error?: string; + }; + vars?: any; + orig?: { + filename?: string; + abs_path?: string; + function?: string; + lineno?: number; + colno?: number; + }; +} diff --git a/x-pack/plugins/apm/typings/Error.ts b/x-pack/plugins/apm/typings/Error.ts new file mode 100644 index 0000000000000..a4bacfeff62ce --- /dev/null +++ b/x-pack/plugins/apm/typings/Error.ts @@ -0,0 +1,46 @@ +/* + * 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 { APMDocV1, ContextService, Stackframe } from './APMDoc'; + +export interface Error extends APMDocV1 { + processor: { + name: 'error'; + event: 'error'; + }; + context: { + process?: { + pid: number; + }; + service: ContextService; + }; + transaction?: { + id: string; // transaction ID is not required in v1 + }; + error: { + id?: string; // ID is not required in v1 + timestamp: string; + culprit: string; + grouping_key: string; + // either exception or log are given + exception?: { + message?: string; // either message or type are given + type?: string; + code?: string; + module?: string; + attributes?: any; + handled?: boolean; + stacktrace?: Stackframe[]; + }; + log?: { + message: string; + param_message?: string; + logger_name?: string; + level?: string; + stacktrace?: Stackframe[]; + }; + }; +} diff --git a/x-pack/plugins/apm/typings/Span.ts b/x-pack/plugins/apm/typings/Span.ts new file mode 100644 index 0000000000000..b14a328a85988 --- /dev/null +++ b/x-pack/plugins/apm/typings/Span.ts @@ -0,0 +1,68 @@ +/* + * 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 { APMDocV1, APMDocV2, ContextService, Stackframe } from './APMDoc'; + +export interface DbContext { + instance?: string; + statement?: string; + type?: string; + user?: string; +} + +interface Processor { + name: 'transaction'; + event: 'span'; +} + +interface Context { + db?: DbContext; + service: ContextService; + [key: string]: any; +} + +export interface SpanV1 extends APMDocV1 { + version: 'v1'; + processor: Processor; + context: Context; + span: { + duration: { + us: number; + }; + start: { + us: number; // only v1 + }; + name: string; + type: string; + id: number; // we are manually adding span.id + parent?: string; // only v1 + stacktrace?: Stackframe[]; + }; + transaction: { + id: string; + }; +} + +export interface SpanV2 extends APMDocV2 { + version: 'v2'; + processor: Processor; + context: Context; + span: { + duration: { + us: number; + }; + name: string; + type: string; + id: number; // id will be derived from hex encoded 64 bit hex_id string in v2 + hex_id: string; // only v2 + stacktrace?: Stackframe[]; + }; + transaction: { + id: string; + }; +} + +export type Span = SpanV1 | SpanV2; diff --git a/x-pack/plugins/apm/typings/Transaction.ts b/x-pack/plugins/apm/typings/Transaction.ts new file mode 100644 index 0000000000000..21422f0c3f0ae --- /dev/null +++ b/x-pack/plugins/apm/typings/Transaction.ts @@ -0,0 +1,91 @@ +/* + * 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 { APMDocV1, APMDocV2, ContextService } from './APMDoc'; + +interface Processor { + name: 'transaction'; + event: 'transaction'; +} + +interface ContextSystem { + architecture?: string; + hostname?: string; + ip?: string; + platform?: string; +} + +interface Context { + process?: { + pid: number; + }; + service: ContextService; + system?: ContextSystem; + request: { + url: { + full: string; + }; + method: string; + }; + user?: { + id: string; + }; + [key: string]: any; +} + +interface Marks { + agent: { + [name: string]: number; + }; +} + +export interface TransactionV1 extends APMDocV1 { + version: 'v1'; + processor: Processor; + context: Context; + transaction: { + duration: { + us: number; + }; + id: string; + marks?: Marks; + name: string; // name could be missing in ES but the UI will always only aggregate on transactions with a name + result?: string; + sampled: boolean; + span_count?: { + dropped?: { + total?: number; + }; + }; + type: string; + }; +} + +export interface TransactionV2 extends APMDocV2 { + version: 'v2'; + processor: Processor; + context: Context; + transaction: { + duration: { + us: number; + }; + id: string; + marks?: Marks; + name: string; // name could be missing in ES but the UI will always only aggregate on transactions with a name + result?: string; + sampled: boolean; + + span_count?: { + started?: number; // only v2 + dropped?: { + total?: number; + }; + }; + type: string; + }; +} + +export type Transaction = TransactionV1 | TransactionV2; diff --git a/x-pack/plugins/apm/typings/TransactionGroup.ts b/x-pack/plugins/apm/typings/TransactionGroup.ts new file mode 100644 index 0000000000000..3967d4d94d5cf --- /dev/null +++ b/x-pack/plugins/apm/typings/TransactionGroup.ts @@ -0,0 +1,16 @@ +/* + * 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 { Transaction } from './Transaction'; + +export interface ITransactionGroup { + name: string; + sample: Transaction; + p95: number; + averageResponseTime: number; + transactionsPerMinute: number; + impact: number; +} diff --git a/x-pack/plugins/apm/typings/common.ts b/x-pack/plugins/apm/typings/common.ts new file mode 100644 index 0000000000000..c69188724f8ed --- /dev/null +++ b/x-pack/plugins/apm/typings/common.ts @@ -0,0 +1,9 @@ +/* + * 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 interface StringMap { + [key: string]: T; +} diff --git a/x-pack/plugins/apm/typings/elasticsearch.ts b/x-pack/plugins/apm/typings/elasticsearch.ts new file mode 100644 index 0000000000000..f3a536e8993ff --- /dev/null +++ b/x-pack/plugins/apm/typings/elasticsearch.ts @@ -0,0 +1,10 @@ +/* + * 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 interface TermsAggsBucket { + key: string; + doc_count: number; +} diff --git a/x-pack/plugins/apm/typings/global_types.d.ts b/x-pack/plugins/apm/typings/global_types.d.ts new file mode 100644 index 0000000000000..ba1e9e998727f --- /dev/null +++ b/x-pack/plugins/apm/typings/global_types.d.ts @@ -0,0 +1,13 @@ +/* + * 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. + */ + +// allow JSON files to be imported directly without TSLint errors +// see: https://github.com/palantir/tslint/issues/1264#issuecomment-228433367 +// and: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts +declare module '*.json' { + const json: any; + export default json; +} diff --git a/x-pack/plugins/apm/typings/numeral.d.ts b/x-pack/plugins/apm/typings/numeral.d.ts new file mode 100644 index 0000000000000..d21595041f14d --- /dev/null +++ b/x-pack/plugins/apm/typings/numeral.d.ts @@ -0,0 +1,16 @@ +/* + * 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. + */ + +interface Numeral { + (value?: any): Numeral; + format: (pattern: string) => string; +} + +declare var numeral: Numeral; + +declare module '@elastic/numeral' { + export = numeral; +} diff --git a/x-pack/plugins/apm/typings/react-redux-request.d.ts b/x-pack/plugins/apm/typings/react-redux-request.d.ts new file mode 100644 index 0000000000000..23a3b7578772c --- /dev/null +++ b/x-pack/plugins/apm/typings/react-redux-request.d.ts @@ -0,0 +1,35 @@ +/* + * 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. + */ + +// Everything in here should be moved to http://github.com/sqren/react-redux-request + +declare module 'react-redux-request' { + import React from 'react'; + + export interface RRRRenderResponse { + status: 'SUCCESS' | 'LOADING' | 'FAILURE'; + data: T; + args: P; + } + + export type RRRRender = ( + res: RRRRenderResponse + ) => JSX.Element | null; + + export interface RequestProps { + id: string; + fn: (args: any) => Promise; + selector?: (state: any) => any; + args?: any[]; + render?: RRRRender; + } + + export function reducer(state: any): any; + + export class Request extends React.Component< + RequestProps + > {} +} diff --git a/x-pack/plugins/apm/typings/waterfall.ts b/x-pack/plugins/apm/typings/waterfall.ts new file mode 100644 index 0000000000000..d33cdcda65cc3 --- /dev/null +++ b/x-pack/plugins/apm/typings/waterfall.ts @@ -0,0 +1,10 @@ +/* + * 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 { Span } from './Span'; +import { Transaction } from './Transaction'; + +export type WaterfallResponse = Array; diff --git a/x-pack/plugins/beats_management/common/constants/configuration_blocks.ts b/x-pack/plugins/beats_management/common/constants/configuration_blocks.ts new file mode 100644 index 0000000000000..e89e53e25b89d --- /dev/null +++ b/x-pack/plugins/beats_management/common/constants/configuration_blocks.ts @@ -0,0 +1,15 @@ +/* + * 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 enum ConfigurationBlockTypes { + FilebeatInputs = 'filebeat.inputs', + FilebeatModules = 'filebeat.modules', + MetricbeatModules = 'metricbeat.modules', + Output = 'output', + Processors = 'processors', +} + +export const UNIQUENESS_ENFORCING_TYPES = [ConfigurationBlockTypes.Output]; diff --git a/x-pack/plugins/beats_management/common/constants/index.ts b/x-pack/plugins/beats_management/common/constants/index.ts new file mode 100644 index 0000000000000..50851dcef947e --- /dev/null +++ b/x-pack/plugins/beats_management/common/constants/index.ts @@ -0,0 +1,11 @@ +/* + * 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 { PLUGIN } from './plugin'; +export { INDEX_NAMES } from './index_names'; +export { UNIQUENESS_ENFORCING_TYPES, ConfigurationBlockTypes } from './configuration_blocks'; +export const BASE_PATH = '/management/beats_management/'; +export { TABLE_CONFIG } from './table'; diff --git a/x-pack/plugins/beats_management/common/constants/index_names.ts b/x-pack/plugins/beats_management/common/constants/index_names.ts new file mode 100644 index 0000000000000..f8d20fb79c360 --- /dev/null +++ b/x-pack/plugins/beats_management/common/constants/index_names.ts @@ -0,0 +1,9 @@ +/* + * 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 INDEX_NAMES = { + BEATS: '.management-beats', +}; diff --git a/x-pack/plugins/beats_management/common/constants/plugin.ts b/x-pack/plugins/beats_management/common/constants/plugin.ts new file mode 100644 index 0000000000000..dc7cd85300341 --- /dev/null +++ b/x-pack/plugins/beats_management/common/constants/plugin.ts @@ -0,0 +1,9 @@ +/* + * 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 PLUGIN = { + ID: 'beats_management', +}; diff --git a/x-pack/plugins/beats_management/common/constants/table.ts b/x-pack/plugins/beats_management/common/constants/table.ts new file mode 100644 index 0000000000000..119b4f3da4596 --- /dev/null +++ b/x-pack/plugins/beats_management/common/constants/table.ts @@ -0,0 +1,12 @@ +/* + * 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 TABLE_CONFIG = { + INITIAL_ROW_SIZE: 5, + PAGE_SIZE_OPTIONS: [3, 5, 10, 20], + TRUNCATE_TAG_LENGTH: 33, + TRUNCATE_TAG_LENGTH_SMALL: 20, +}; diff --git a/x-pack/plugins/beats_management/common/domain_types.ts b/x-pack/plugins/beats_management/common/domain_types.ts new file mode 100644 index 0000000000000..30c179c7060e9 --- /dev/null +++ b/x-pack/plugins/beats_management/common/domain_types.ts @@ -0,0 +1,88 @@ +/* + * 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 { ConfigurationBlockTypes } from './constants'; + +export enum FilebeatModuleName { + system = 'system', + apache2 = 'apache2', + nginx = 'nginx', + mongodb = 'mongodb', + elasticsearch = 'elasticsearch', +} + +export enum MetricbeatModuleName { + system = 'system', + apache2 = 'apache2', + nginx = 'nginx', + mongodb = 'mongodb', + elasticsearch = 'elasticsearch', +} + +export enum OutputType { + elasticsearch = 'elasticsearch', + logstash = 'logstash', + kafka = 'kafka', + console = 'console', +} + +export interface FilebeatInputsConfig { + paths: string[]; + other: string; +} +export interface FilebeatModuleConfig { + module: FilebeatModuleName; + other: string; +} +export interface MetricbeatModuleConfig { + module: MetricbeatModuleName; + hosts?: string[]; + period: string; + other: string; +} + +export type ConfigContent = FilebeatInputsConfig | FilebeatModuleConfig | MetricbeatModuleConfig; +export interface ConfigurationBlock { + type: ConfigurationBlockTypes; + description: string; + configs: ConfigContent[]; +} + +export interface ReturnedConfigurationBlock + extends Pick> { + config: ConfigContent; +} + +export interface CMBeat { + id: string; + config_status: 'OK' | 'UNKNOWN' | 'ERROR'; + enrollment_token: string; + active: boolean; + access_token: string; + verified_on?: string; + type: string; + version?: string; + host_ip: string; + host_name: string; + ephemeral_id?: string; + last_checkin?: Date; + event_rate?: string; + local_configuration_yml?: string; + tags?: string[]; + central_configuration_yml?: string; + metadata?: {}; + name?: string; +} + +export interface CMPopulatedBeat extends CMBeat { + full_tags: BeatTag[]; +} + +export interface BeatTag { + id: string; + configuration_blocks: ConfigurationBlock[]; + color?: string; + last_updated: Date; +} diff --git a/x-pack/plugins/beats_management/index.ts b/x-pack/plugins/beats_management/index.ts new file mode 100644 index 0000000000000..a415395de5262 --- /dev/null +++ b/x-pack/plugins/beats_management/index.ts @@ -0,0 +1,41 @@ +/* + * 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 Joi from 'joi'; +import { resolve } from 'path'; +import { PLUGIN } from './common/constants'; +import { initServerWithKibana } from './server/kibana.index'; + +const DEFAULT_ENROLLMENT_TOKENS_TTL_S = 10 * 60; // 10 minutes + +export const config = Joi.object({ + enabled: Joi.boolean().default(true), + encryptionKey: Joi.string(), + defaultUserRoles: Joi.array() + .items(Joi.string()) + .default(['superuser']), + enrollmentTokensTtlInSeconds: Joi.number() + .integer() + .min(1) + .max(10 * 60 * 14) // No more then 2 weeks for security reasons + .default(DEFAULT_ENROLLMENT_TOKENS_TTL_S), +}).default(); +export const configPrefix = 'xpack.beats'; + +export function beats(kibana: any) { + return new kibana.Plugin({ + id: PLUGIN.ID, + require: ['kibana', 'elasticsearch', 'xpack_main'], + publicDir: resolve(__dirname, 'public'), + uiExports: { + managementSections: ['plugins/beats_management'], + }, + config: () => config, + configPrefix, + init(server: any) { + initServerWithKibana(server); + }, + }); +} diff --git a/x-pack/plugins/beats_management/public/app.d.ts b/x-pack/plugins/beats_management/public/app.d.ts new file mode 100644 index 0000000000000..4e806e12d3843 --- /dev/null +++ b/x-pack/plugins/beats_management/public/app.d.ts @@ -0,0 +1,14 @@ +/* + * 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 type FlatObject = { [Key in keyof T]: string }; + +export interface AppURLState { + beatsKBar?: string; + tagsKBar?: string; + enrollmentToken?: string; + createdTag?: string; +} diff --git a/x-pack/plugins/beats_management/public/components/autocomplete_field/index.tsx b/x-pack/plugins/beats_management/public/components/autocomplete_field/index.tsx new file mode 100644 index 0000000000000..7ff5296ef4d92 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/autocomplete_field/index.tsx @@ -0,0 +1,290 @@ +/* + * 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 { + EuiFieldSearch, + EuiFieldSearchProps, + EuiOutsideClickDetector, + EuiPanel, +} from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; + +// @ts-ignore +import { AutocompleteSuggestion } from 'ui/autocomplete_providers'; + +import { composeStateUpdaters } from '../../utils/typed_react'; +import { SuggestionItem } from './suggestion_item'; + +interface AutocompleteFieldProps { + isLoadingSuggestions: boolean; + isValid: boolean; + loadSuggestions: (value: string, cursorPosition: number, maxCount?: number) => void; + onSubmit?: (value: string) => void; + onChange?: (value: string) => void; + placeholder?: string; + suggestions: AutocompleteSuggestion[]; + value: string; +} + +interface AutocompleteFieldState { + areSuggestionsVisible: boolean; + selectedIndex: number | null; +} + +export class AutocompleteField extends React.Component< + AutocompleteFieldProps, + AutocompleteFieldState +> { + public readonly state: AutocompleteFieldState = { + areSuggestionsVisible: false, + selectedIndex: null, + }; + + private inputElement: HTMLInputElement | null = null; + + public render() { + const { suggestions, isLoadingSuggestions, isValid, placeholder, value } = this.props; + const { areSuggestionsVisible, selectedIndex } = this.state; + + return ( + + + + {areSuggestionsVisible && !isLoadingSuggestions && suggestions.length > 0 ? ( + + {suggestions.map((suggestion, suggestionIndex) => ( + + ))} + + ) : null} + + + ); + } + + public componentDidUpdate(prevProps: AutocompleteFieldProps, prevState: AutocompleteFieldState) { + const hasNewSuggestions = prevProps.suggestions !== this.props.suggestions; + const hasNewValue = prevProps.value !== this.props.value; + + if (hasNewValue) { + this.updateSuggestions(); + } + + if (hasNewSuggestions) { + this.showSuggestions(); + } + } + + private handleChangeInputRef = (element: HTMLInputElement | null) => { + this.inputElement = element; + }; + + private handleChange = (evt: React.ChangeEvent) => { + this.changeValue(evt.currentTarget.value); + }; + + private handleKeyDown = (evt: React.KeyboardEvent) => { + const { suggestions } = this.props; + + switch (evt.key) { + case 'ArrowUp': + evt.preventDefault(); + if (suggestions.length > 0) { + this.setState( + composeStateUpdaters(withSuggestionsVisible, withPreviousSuggestionSelected) + ); + } + break; + case 'ArrowDown': + evt.preventDefault(); + if (suggestions.length > 0) { + this.setState(composeStateUpdaters(withSuggestionsVisible, withNextSuggestionSelected)); + } else { + this.updateSuggestions(); + } + break; + case 'Enter': + evt.preventDefault(); + if (this.state.selectedIndex !== null) { + this.applySelectedSuggestion(); + } else { + this.submit(); + } + break; + case 'Escape': + evt.preventDefault(); + this.setState(withSuggestionsHidden); + break; + } + }; + + private handleKeyUp = (evt: React.KeyboardEvent) => { + switch (evt.key) { + case 'ArrowLeft': + case 'ArrowRight': + case 'Home': + case 'End': + this.updateSuggestions(); + break; + } + }; + + private selectSuggestionAt = (index: number) => () => { + this.setState(withSuggestionAtIndexSelected(index)); + }; + + private applySelectedSuggestion = () => { + if (this.state.selectedIndex !== null) { + this.applySuggestionAt(this.state.selectedIndex)(); + } + }; + + private applySuggestionAt = (index: number) => () => { + const { value, suggestions } = this.props; + const selectedSuggestion = suggestions[index]; + + if (!selectedSuggestion) { + return; + } + + const newValue = + value.substr(0, selectedSuggestion.start) + + selectedSuggestion.text + + value.substr(selectedSuggestion.end); + + this.setState(withSuggestionsHidden); + this.changeValue(newValue); + this.focusInputElement(); + }; + + private changeValue = (value: string) => { + const { onChange } = this.props; + if (onChange) { + onChange(value); + } + }; + + private focusInputElement = () => { + if (this.inputElement) { + this.inputElement.focus(); + } + }; + + private showSuggestions = () => { + this.setState(withSuggestionsVisible); + }; + + private hideSuggestions = () => { + this.setState(withSuggestionsHidden); + }; + + private submit = () => { + const { isValid, onSubmit, value } = this.props; + + if (isValid && onSubmit) { + onSubmit(value); + } + + this.setState(withSuggestionsHidden); + }; + + private updateSuggestions = (value?: string) => { + const inputCursorPosition = this.inputElement ? this.inputElement.selectionStart || 0 : 0; + this.props.loadSuggestions(value || this.props.value, inputCursorPosition, 10); + }; +} + +const withPreviousSuggestionSelected = ( + state: AutocompleteFieldState, + props: AutocompleteFieldProps +): AutocompleteFieldState => ({ + ...state, + selectedIndex: + props.suggestions.length === 0 + ? null + : state.selectedIndex !== null + ? (state.selectedIndex + props.suggestions.length - 1) % props.suggestions.length + : Math.max(props.suggestions.length - 1, 0), +}); + +const withNextSuggestionSelected = ( + state: AutocompleteFieldState, + props: AutocompleteFieldProps +): AutocompleteFieldState => ({ + ...state, + selectedIndex: + props.suggestions.length === 0 + ? null + : state.selectedIndex !== null + ? (state.selectedIndex + 1) % props.suggestions.length + : 0, +}); + +const withSuggestionAtIndexSelected = (suggestionIndex: number) => ( + state: AutocompleteFieldState, + props: AutocompleteFieldProps +): AutocompleteFieldState => ({ + ...state, + selectedIndex: + props.suggestions.length === 0 + ? null + : suggestionIndex >= 0 && suggestionIndex < props.suggestions.length + ? suggestionIndex + : 0, +}); + +const withSuggestionsVisible = (state: AutocompleteFieldState) => ({ + ...state, + areSuggestionsVisible: true, +}); + +const withSuggestionsHidden = (state: AutocompleteFieldState) => ({ + ...state, + areSuggestionsVisible: false, + selectedIndex: null, +}); + +const FixedEuiFieldSearch: React.SFC< + React.InputHTMLAttributes & + EuiFieldSearchProps & { + inputRef?: (element: HTMLInputElement | null) => void; + onSearch: (value: string) => void; + } +> = EuiFieldSearch as any; + +const AutocompleteContainer = styled.div` + position: relative; +`; + +const SuggestionsPanel = styled(EuiPanel).attrs({ + paddingSize: 'none', + hasShadow: true, +})` + position: absolute; + width: 100%; + margin-top: 2px; + overflow: hidden; + z-index: 1000; +`; diff --git a/x-pack/plugins/beats_management/public/components/autocomplete_field/suggestion_item.tsx b/x-pack/plugins/beats_management/public/components/autocomplete_field/suggestion_item.tsx new file mode 100644 index 0000000000000..c9dc832cf37b7 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/autocomplete_field/suggestion_item.tsx @@ -0,0 +1,123 @@ +/* + * 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 { EuiIcon } from '@elastic/eui'; +import { tint } from 'polished'; +import React from 'react'; +import styled from 'styled-components'; + +// @ts-ignore +import { AutocompleteSuggestion } from 'ui/autocomplete_providers'; + +interface SuggestionItemProps { + isSelected?: boolean; + onClick?: React.MouseEventHandler; + onMouseEnter?: React.MouseEventHandler; + suggestion: AutocompleteSuggestion; +} + +export class SuggestionItem extends React.Component { + public static defaultProps: Partial = { + isSelected: false, + }; + + public render() { + const { isSelected, onClick, onMouseEnter, suggestion } = this.props; + + return ( + + + + + {suggestion.text} + + + ); + } +} + +const SuggestionItemContainer = styled.div<{ + isSelected?: boolean; +}>` + display: flex; + flex-direction: row; + font-size: ${props => props.theme.eui.euiFontSizeS}; + height: ${props => props.theme.eui.euiSizeXl}; + white-space: nowrap; + background-color: ${props => + props.isSelected ? props.theme.eui.euiColorLightestShade : 'transparent'}; +`; + +const SuggestionItemField = styled.div` + align-items: center; + cursor: pointer; + display: flex; + flex-direction: row; + height: ${props => props.theme.eui.euiSizeXl}; + padding: ${props => props.theme.eui.euiSizeXs}; +`; + +const SuggestionItemIconField = SuggestionItemField.extend<{ suggestionType: string }>` + background-color: ${props => tint(0.1, getEuiIconColor(props.theme, props.suggestionType))}; + color: ${props => getEuiIconColor(props.theme, props.suggestionType)}; + flex: 0 0 auto; + justify-content: center; + width: ${props => props.theme.eui.euiSizeXl}; +`; + +const SuggestionItemTextField = SuggestionItemField.extend` + flex: 2 0 0; + font-family: ${props => props.theme.eui.euiCodeFontFamily}; +`; + +const SuggestionItemDescriptionField = SuggestionItemField.extend` + flex: 3 0 0; + p { + display: inline; + span { + font-family: ${props => props.theme.eui.euiCodeFontFamily}; + } + } +`; + +const getEuiIconType = (suggestionType: string) => { + switch (suggestionType) { + case 'field': + return 'kqlField'; + case 'value': + return 'kqlValue'; + case 'recentSearch': + return 'search'; + case 'conjunction': + return 'kqlSelector'; + case 'operator': + return 'kqlOperand'; + default: + return 'empty'; + } +}; + +const getEuiIconColor = (theme: any, suggestionType: string): string => { + switch (suggestionType) { + case 'field': + return theme.eui.euiColorVis7; + case 'value': + return theme.eui.euiColorVis0; + case 'operator': + return theme.eui.euiColorVis1; + case 'conjunction': + return theme.eui.euiColorVis2; + case 'recentSearch': + default: + return theme.eui.euiColorMediumShade; + } +}; diff --git a/x-pack/plugins/beats_management/public/components/config_list.tsx b/x-pack/plugins/beats_management/public/components/config_list.tsx new file mode 100644 index 0000000000000..b04163a183264 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/config_list.tsx @@ -0,0 +1,62 @@ +/* + * 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. + */ + +// @ts-ignore +import { EuiBasicTable, EuiLink } from '@elastic/eui'; +import React from 'react'; +import { ConfigurationBlock } from '../../common/domain_types'; +import { supportedConfigs } from '../config_schemas'; + +interface ComponentProps { + configs: ConfigurationBlock[]; + onConfigClick: (action: 'edit' | 'delete', config: ConfigurationBlock) => any; +} + +export const ConfigList: React.SFC = props => ( + { + const type = supportedConfigs.find((sc: any) => sc.value === config.type); + + return ( + props.onConfigClick('edit', config)}> + {type ? type.text : config.type} + + ); + }, + }, + { + field: 'module', + name: 'Module', + truncateText: false, + render: (value: string) => { + return value || 'N/A'; + }, + }, + { + field: 'description', + name: 'Description', + }, + { + name: 'Actions', + actions: [ + { + name: 'Remove', + description: 'Remove this config from tag', + type: 'icon', + icon: 'trash', + onClick: (item: ConfigurationBlock) => props.onConfigClick('delete', item), + }, + ], + }, + ]} + /> +); diff --git a/x-pack/plugins/beats_management/public/components/connected_link.tsx b/x-pack/plugins/beats_management/public/components/connected_link.tsx new file mode 100644 index 0000000000000..b2c0e8ad607af --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/connected_link.tsx @@ -0,0 +1,40 @@ +/* + * 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 React from 'react'; + +import { EuiLink } from '@elastic/eui'; +import { Link, withRouter } from 'react-router-dom'; + +export function ConnectedLinkComponent({ + location, + path, + query, + disabled, + ...props +}: { + location: any; + path: string; + disabled: boolean; + query: any; + [key: string]: any; +}) { + if (disabled) { + return ; + } + + // Shorthand for pathname + const pathname = path || _.get(props.to, 'pathname') || location.pathname; + + return ( + + ); +} + +export const ConnectedLink = withRouter(ConnectedLinkComponent); diff --git a/x-pack/plugins/beats_management/public/components/inputs/code_editor.tsx b/x-pack/plugins/beats_management/public/components/inputs/code_editor.tsx new file mode 100644 index 0000000000000..508649d6ad22d --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/inputs/code_editor.tsx @@ -0,0 +1,113 @@ +/* + * 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. + */ +// @ts-ignore +import { CommonProps, EuiCodeEditor, EuiCodeEditorProps, EuiFormRow } from '@elastic/eui'; +// @ts-ignore +import { FormsyInputProps, withFormsy } from 'formsy-react'; +import React, { Component, InputHTMLAttributes } from 'react'; + +interface ComponentProps extends FormsyInputProps, CommonProps, EuiCodeEditorProps { + instantValidation: boolean; + label: string; + isReadOnly: boolean; + mode: 'javascript' | 'yaml'; + errorText: string; + fullWidth: boolean; + helpText: React.ReactElement; + compressed: boolean; + onChange(value: string): void; + onBlur(): void; +} + +interface ComponentState { + allowError: boolean; +} + +class CodeEditor extends Component< + InputHTMLAttributes & ComponentProps, + ComponentState +> { + public static defaultProps = { + passRequiredToField: true, + }; + + public state = { allowError: false }; + + public componentDidMount() { + const { defaultValue, setValue } = this.props; + setValue(defaultValue || ''); + } + + public componentWillReceiveProps(nextProps: ComponentProps) { + if (nextProps.isFormSubmitted()) { + this.showError(); + } + } + + public handleChange = (value: string) => { + this.props.setValue(value); + if (this.props.onChange) { + this.props.onChange(value); + } + if (this.props.instantValidation) { + this.showError(); + } + }; + + public handleBlur = () => { + this.showError(); + if (this.props.onBlur) { + this.props.onBlur(); + } + }; + + public showError = () => this.setState({ allowError: true }); + + public render() { + const { + id, + label, + isReadOnly, + isValid, + getValue, + isPristine, + getErrorMessage, + mode, + fullWidth, + className, + helpText, + } = this.props; + + const { allowError } = this.state; + const error = !isPristine() && !isValid() && allowError; + + return ( + + + + ); + } +} + +export const FormsyEuiCodeEditor = withFormsy(CodeEditor); diff --git a/x-pack/plugins/beats_management/public/components/inputs/index.ts b/x-pack/plugins/beats_management/public/components/inputs/index.ts new file mode 100644 index 0000000000000..50a5674f6fd7c --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/inputs/index.ts @@ -0,0 +1,11 @@ +/* + * 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 { FormsyEuiCodeEditor } from './code_editor'; +export { FormsyEuiFieldText } from './input'; +export { FormsyEuiPasswordText } from './password_input'; +export { FormsyEuiMultiFieldText } from './multi_input'; +export { FormsyEuiSelect } from './select'; diff --git a/x-pack/plugins/beats_management/public/components/inputs/input.tsx b/x-pack/plugins/beats_management/public/components/inputs/input.tsx new file mode 100644 index 0000000000000..1f778e35cdc21 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/inputs/input.tsx @@ -0,0 +1,113 @@ +/* + * 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 { CommonProps, EuiFieldText, EuiFieldTextProps, EuiFormRow } from '@elastic/eui'; +import { FormsyInputProps, withFormsy } from 'formsy-react'; +import React, { Component, InputHTMLAttributes } from 'react'; + +interface ComponentProps extends FormsyInputProps, CommonProps, EuiFieldTextProps { + instantValidation?: boolean; + label: string; + errorText: string; + fullWidth: boolean; + helpText: React.ReactElement; + compressed: boolean; + onChange?(e: React.ChangeEvent, value: any): void; + onBlur?(e: React.ChangeEvent, value: any): void; +} + +interface ComponentState { + allowError: boolean; +} + +class FieldText extends Component< + InputHTMLAttributes & ComponentProps, + ComponentState +> { + public static defaultProps = { + passRequiredToField: true, + }; + + public state = { allowError: false }; + + public componentDidMount() { + const { defaultValue, setValue } = this.props; + if (defaultValue) { + setValue(defaultValue); + } + } + + public componentWillReceiveProps(nextProps: ComponentProps) { + if (nextProps.isFormSubmitted()) { + this.showError(); + } + } + + public handleChange = (e: React.ChangeEvent) => { + const { value } = e.currentTarget; + this.props.setValue(value); + if (this.props.onChange) { + this.props.onChange(e, e.currentTarget.value); + } + if (this.props.instantValidation) { + this.showError(); + } + }; + + public handleBlur = (e: React.ChangeEvent) => { + this.showError(); + if (this.props.onBlur) { + this.props.onBlur(e, e.currentTarget.value); + } + }; + + public showError = () => this.setState({ allowError: true }); + + public render() { + const { + id, + required, + label, + getValue, + isValid, + isPristine, + getErrorMessage, + fullWidth, + className, + disabled, + helpText, + placeholder, + } = this.props; + + const { allowError } = this.state; + const error = !isPristine() && !isValid() && allowError; + + return ( + + + + ); + } +} + +export const FormsyEuiFieldText = withFormsy(FieldText); diff --git a/x-pack/plugins/beats_management/public/components/inputs/multi_input.tsx b/x-pack/plugins/beats_management/public/components/inputs/multi_input.tsx new file mode 100644 index 0000000000000..ba7b2e6265610 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/inputs/multi_input.tsx @@ -0,0 +1,115 @@ +/* + * 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 { CommonProps, EuiFormRow, EuiTextArea, EuiTextAreaProps } from '@elastic/eui'; +// @ts-ignore +import { FormsyInputProps, withFormsy } from 'formsy-react'; +import React, { Component, InputHTMLAttributes } from 'react'; + +interface ComponentProps extends FormsyInputProps, CommonProps, EuiTextAreaProps { + instantValidation: boolean; + label: string; + errorText: string; + fullWidth: boolean; + helpText: React.ReactElement; + compressed: boolean; + onChange(e: React.ChangeEvent, value: any): void; + onBlur(e: React.ChangeEvent, value: any): void; +} + +interface ComponentState { + allowError: boolean; +} + +class MultiFieldText extends Component< + InputHTMLAttributes & ComponentProps, + ComponentState +> { + public static defaultProps = { + passRequiredToField: true, + }; + + public state = { allowError: false }; + + public componentDidMount() { + const { defaultValue, setValue } = this.props; + + if (defaultValue) { + setValue(defaultValue); + } + } + + public componentWillReceiveProps(nextProps: ComponentProps) { + if (nextProps.isFormSubmitted()) { + this.showError(); + } + } + + public handleChange = (e: React.ChangeEvent) => { + const value = e.currentTarget.value.split('\n'); + this.props.setValue(value); + if (this.props.onChange) { + this.props.onChange(e, value); + } + if (this.props.instantValidation) { + this.showError(); + } + }; + + public handleBlur = (e: React.ChangeEvent) => { + this.showError(); + if (this.props.onBlur) { + this.props.onBlur(e, e.currentTarget.value); + } + }; + + public showError = () => this.setState({ allowError: true }); + + public render() { + const { + id, + required, + label, + getValue, + isValid, + isPristine, + getErrorMessage, + fullWidth, + className, + disabled, + helpText, + placeholder, + } = this.props; + + const { allowError } = this.state; + const error = !isPristine() && !isValid() && allowError; + + return ( + + + + ); + } +} + +export const FormsyEuiMultiFieldText = withFormsy(MultiFieldText); diff --git a/x-pack/plugins/beats_management/public/components/inputs/password_input.tsx b/x-pack/plugins/beats_management/public/components/inputs/password_input.tsx new file mode 100644 index 0000000000000..30318f76bb90f --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/inputs/password_input.tsx @@ -0,0 +1,110 @@ +/* + * 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. + */ + +// @ts-ignore currently no definition for EuiFieldPassword +import { CommonProps, EuiFieldPassword, EuiFieldPasswordProps, EuiFormRow } from '@elastic/eui'; +import { FormsyInputProps, withFormsy } from 'formsy-react'; +import React, { Component, InputHTMLAttributes } from 'react'; + +interface ComponentProps extends FormsyInputProps, CommonProps, EuiFieldPasswordProps { + instantValidation?: boolean; + label: string; + errorText: string; + fullWidth: boolean; + helpText: React.ReactElement; + compressed: boolean; + onChange?(e: React.ChangeEvent, value: any): void; + onBlur?(e: React.ChangeEvent, value: any): void; +} + +interface ComponentState { + allowError: boolean; +} + +class FieldPassword extends Component< + InputHTMLAttributes & ComponentProps, + ComponentState +> { + constructor(props: any) { + super(props); + + this.state = { + allowError: false, + }; + } + + public componentDidMount() { + const { defaultValue, setValue } = this.props; + if (defaultValue) { + setValue(defaultValue); + } + } + + public handleChange = (e: React.ChangeEvent) => { + const { value } = e.currentTarget; + this.props.setValue(value); + if (this.props.onChange) { + this.props.onChange(e, value); + } + if (this.props.instantValidation) { + this.showError(); + } + }; + + public handleBlur = (e: React.ChangeEvent) => { + this.showError(); + if (this.props.onBlur) { + this.props.onBlur(e, e.currentTarget.value); + } + }; + + public showError = () => this.setState({ allowError: true }); + + public render() { + const { + id, + required, + label, + getValue, + isValid, + isPristine, + getErrorMessage, + fullWidth, + className, + disabled, + helpText, + onBlur, + } = this.props; + + const { allowError } = this.state; + const error = !isPristine() && !isValid() && allowError; + + return ( + + + + ); + } +} + +export const FormsyEuiPasswordText = withFormsy(FieldPassword); diff --git a/x-pack/plugins/beats_management/public/components/inputs/select.tsx b/x-pack/plugins/beats_management/public/components/inputs/select.tsx new file mode 100644 index 0000000000000..8fa192090a99a --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/inputs/select.tsx @@ -0,0 +1,124 @@ +/* + * 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 { + CommonProps, + EuiFormRow, + // @ts-ignore + EuiSelect, +} from '@elastic/eui'; +// @ts-ignore +import { FormsyInputProps, withFormsy } from 'formsy-react'; +import React, { Component, InputHTMLAttributes } from 'react'; + +const FixedSelect = EuiSelect as React.SFC; + +interface ComponentProps extends FormsyInputProps, CommonProps { + instantValidation: boolean; + options: Array<{ value: string; text: string }>; + label: string; + errorText: string; + fullWidth: boolean; + helpText: React.ReactElement; + compressed: boolean; + onChange(e: React.ChangeEvent, value: any): void; + onBlur(e: React.ChangeEvent, value: any): void; +} + +interface ComponentState { + allowError: boolean; +} + +class FieldSelect extends Component< + InputHTMLAttributes & ComponentProps, + ComponentState +> { + public static defaultProps = { + passRequiredToField: true, + }; + + public state = { allowError: false }; + + public componentDidMount() { + const { defaultValue, setValue } = this.props; + if (defaultValue) { + setValue(defaultValue); + } + } + + public componentWillReceiveProps(nextProps: ComponentProps) { + if (nextProps.isFormSubmitted()) { + this.showError(); + } + } + + public handleChange = (e: React.ChangeEvent) => { + const { value } = e.currentTarget; + + this.props.setValue(value); + if (this.props.onChange) { + this.props.onChange(e, e.currentTarget.value); + } + if (this.props.instantValidation) { + this.showError(); + } + }; + + public handleBlur = (e: React.ChangeEvent) => { + this.showError(); + if (this.props.onBlur) { + this.props.onBlur(e, e.currentTarget.value); + } + }; + + public showError = () => this.setState({ allowError: true }); + + public render() { + const { + id, + required, + label, + options, + getValue, + isValid, + isPristine, + getErrorMessage, + fullWidth, + className, + disabled, + helpText, + } = this.props; + + const { allowError } = this.state; + const error = !isPristine() && !isValid() && allowError; + + return ( + + + + ); + } +} + +export const FormsyEuiSelect = withFormsy(FieldSelect); diff --git a/x-pack/plugins/beats_management/public/components/layouts/header.tsx b/x-pack/plugins/beats_management/public/components/layouts/header.tsx new file mode 100644 index 0000000000000..4ad567b73fc77 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/layouts/header.tsx @@ -0,0 +1,36 @@ +/* + * 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 { + EuiBreadcrumbDefinition, + EuiHeader, + EuiHeaderBreadcrumbs, + EuiHeaderSection, +} from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; + +interface HeaderProps { + breadcrumbs?: EuiBreadcrumbDefinition[]; +} + +export class Header extends React.PureComponent { + public render() { + const { breadcrumbs = [] } = this.props; + + return ( + + + + + + ); + } +} + +const HeaderWrapper = styled(EuiHeader)` + height: 29px; +`; diff --git a/x-pack/plugins/beats_management/public/components/layouts/no_data.tsx b/x-pack/plugins/beats_management/public/components/layouts/no_data.tsx new file mode 100644 index 0000000000000..8f31b90ff507e --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/layouts/no_data.tsx @@ -0,0 +1,62 @@ +/* + * 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 React from 'react'; +import { withRouter } from 'react-router-dom'; + +import { + EuiEmptyPrompt, + EuiFlexGroup, + EuiFlexItem, + EuiModal, + EuiOverlayMask, + EuiPage, + EuiPageBody, + EuiPageContent, +} from '@elastic/eui'; + +interface LayoutProps { + title: string; + actionSection?: React.ReactNode; + modalRender?: () => React.ReactNode; + modalClosePath?: string; +} + +export const NoDataLayout: React.SFC = withRouter( + ({ actionSection, title, modalRender, modalClosePath, children, history }) => { + const modalContent = modalRender && modalRender(); + return ( + + + + + + {title}

      } + body={children} + actions={actionSection} + /> + + + + + {modalContent && ( + + { + history.push(modalClosePath); + }} + style={{ width: '640px' }} + > + {modalContent} + + + )} + + ); + } +) as any; diff --git a/x-pack/plugins/beats_management/public/components/layouts/primary.tsx b/x-pack/plugins/beats_management/public/components/layouts/primary.tsx new file mode 100644 index 0000000000000..516ad648eac8b --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/layouts/primary.tsx @@ -0,0 +1,62 @@ +/* + * 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 React from 'react'; +import { withRouter } from 'react-router-dom'; + +import { + EuiModal, + EuiOverlayMask, + EuiPage, + EuiPageBody, + EuiPageContent, + EuiPageContentBody, + EuiPageHeader, + EuiPageHeaderSection, + EuiTitle, +} from '@elastic/eui'; + +interface PrimaryLayoutProps { + title: string; + actionSection?: React.ReactNode; + modalRender?: () => React.ReactNode; + modalClosePath?: string; +} + +export const PrimaryLayout: React.SFC = withRouter( + ({ actionSection, title, modalRender, modalClosePath, children, history }) => { + const modalContent = modalRender && modalRender(); + return ( + + + + + +

      {title}

      +
      +
      + {actionSection} +
      + + {children} + +
      + {modalContent && ( + + { + history.push(modalClosePath); + }} + style={{ width: '640px' }} + > + {modalContent} + + + )} +
      + ); + } +) as any; diff --git a/x-pack/plugins/beats_management/public/components/layouts/walkthrough.tsx b/x-pack/plugins/beats_management/public/components/layouts/walkthrough.tsx new file mode 100644 index 0000000000000..32cfd4cb43316 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/layouts/walkthrough.tsx @@ -0,0 +1,61 @@ +/* + * 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 React from 'react'; + +import { + EuiPage, + EuiPageBody, + EuiPageContent, + EuiPageContentBody, + // @ts-ignore + EuiStepsHorizontal, + EuiTitle, +} from '@elastic/eui'; + +interface LayoutProps { + title: string; + goTo: (path: string) => any; + walkthroughSteps: Array<{ + id: string; + name: string; + disabled: boolean; + }>; + activePath: string; +} + +export const WalkthroughLayout: React.SFC = ({ + walkthroughSteps, + title, + activePath, + goTo, + children, +}) => { + const indexOfCurrent = walkthroughSteps.findIndex(step => activePath === step.id); + return ( + + + + +

      {title}

      +
      +
      +
      + ({ + title: step.name, + isComplete: i <= indexOfCurrent, + onClick: () => goTo(step.id), + }))} + /> +
      +
      + {children} +
      +
      +
      + ); +}; diff --git a/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/consumer.tsx b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/consumer.tsx new file mode 100644 index 0000000000000..dc46f827dd4ca --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/consumer.tsx @@ -0,0 +1,7 @@ +/* + * 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 { Consumer as BreadcrumbConsumer } from './context'; diff --git a/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/context.tsx b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/context.tsx new file mode 100644 index 0000000000000..1c1452d34d248 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/context.tsx @@ -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 React from 'react'; + +import { Breadcrumb, BreadcrumbContext } from './types'; + +/* istanbul ignore next */ +const defaultContext: BreadcrumbContext = { + breadcrumbs: [], + addCrumb: (crumb: Breadcrumb) => null, + removeCrumb: (crumb: Breadcrumb) => null, +}; + +export const { Provider, Consumer } = React.createContext(defaultContext); diff --git a/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/index.ts b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/index.ts new file mode 100644 index 0000000000000..56192af8bdc0d --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/index.ts @@ -0,0 +1,9 @@ +/* + * 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 { BreadcrumbProvider } from './provider'; +export { BreadcrumbConsumer } from './consumer'; +export { RouteWithBreadcrumb } from './route_with_breadcrumb'; diff --git a/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/provider.tsx b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/provider.tsx new file mode 100644 index 0000000000000..5b82d7c9ebcfc --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/provider.tsx @@ -0,0 +1,69 @@ +/* + * 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 React, { Component, ReactElement } from 'react'; +import { Provider } from './context'; +import { Breadcrumb } from './types'; + +interface ComponentProps { + children: ReactElement | Array>; +} + +interface ComponentState { + breadcrumbs: Array<{ + href: string; + breadcrumb: Breadcrumb; + parents?: Breadcrumb[]; + }>; +} + +export class BreadcrumbProvider extends Component { + public state = { + breadcrumbs: [] as ComponentState['breadcrumbs'], + }; + + public addCrumb = (breadcrumb: Breadcrumb, parents?: Breadcrumb[]) => { + this.setState(({ breadcrumbs: prevCrumbs }) => ({ + breadcrumbs: [ + ...prevCrumbs, + { + href: breadcrumb.href, + breadcrumb, + parents, + }, + ], + })); + }; + + public removeCrumb = (crumbToRemove: Breadcrumb) => { + this.setState(({ breadcrumbs: prevCrumbs }) => { + const breadcrumbs = prevCrumbs.filter(prevCrumb => { + const { href } = prevCrumb; + return !(crumbToRemove.href === href); + }); + return { breadcrumbs }; + }); + }; + + public render() { + const { breadcrumbs } = this.state; + + const context = { + breadcrumbs: breadcrumbs.reduce( + (crumbs, crumbStorageItem) => { + if (crumbStorageItem.parents) { + crumbs = crumbs.concat(crumbStorageItem.parents); + } + crumbs.push(crumbStorageItem.breadcrumb); + return crumbs; + }, + [] as Breadcrumb[] + ), + addCrumb: this.addCrumb, + removeCrumb: this.removeCrumb, + }; + return {this.props.children}; + } +} diff --git a/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/route_with_breadcrumb.tsx b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/route_with_breadcrumb.tsx new file mode 100644 index 0000000000000..f0b5e93838b08 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/route_with_breadcrumb.tsx @@ -0,0 +1,88 @@ +/* + * 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 React, { Component } from 'react'; + +import { RouteProps } from 'react-router'; +import { Route } from 'react-router-dom'; +import { BreadcrumbConsumer } from './consumer'; +import { Breadcrumb, BreadcrumbContext } from './types'; + +interface WrappedRouteWithBreadcrumbProps extends RouteProps { + text: string; + href: string; + parents?: Breadcrumb[]; + context: BreadcrumbContext; +} + +class WrappedRouteWithBreadcrumb extends Component< + WrappedRouteWithBreadcrumbProps, + {}, + BreadcrumbContext +> { + public componentWillUnmount() { + const { text, href, context } = this.props; + + context.removeCrumb({ + text, + href, + }); + } + + public componentDidMount() { + const { text, href, parents, context } = this.props; + context.addCrumb( + { + text, + href, + }, + parents + ); + } + + public render() { + return this.props.children; + } +} + +type titleCallback = ( + urlParams: { + [key: string]: string; + } +) => string; +interface RouteWithBreadcrumbProps extends RouteProps { + title: string | titleCallback; + path: string; + parentBreadcrumbs?: Breadcrumb[]; +} + +export const RouteWithBreadcrumb: React.SFC = ({ + title, + render, + component: RouteComponent, + parentBreadcrumbs, + ...props +}) => ( + { + return ( + + {context => ( + + {render && render(renderProps)} + {RouteComponent && } + + )} + + ); + }} + /> +); diff --git a/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/types.d.ts b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/types.d.ts new file mode 100644 index 0000000000000..9b9e8e3230d99 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/route_with_breadcrumb/types.d.ts @@ -0,0 +1,15 @@ +/* + * 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 interface BreadcrumbContext { + breadcrumbs: Breadcrumb[]; + addCrumb: (crumb: Breadcrumb, parents?: Breadcrumb[]) => void; + removeCrumb: (crumb: Breadcrumb) => void; +} +export interface Breadcrumb { + text: string; + href: string; +} diff --git a/x-pack/plugins/beats_management/public/components/table/action_button.tsx b/x-pack/plugins/beats_management/public/components/table/action_button.tsx new file mode 100644 index 0000000000000..1ef99a78be699 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table/action_button.tsx @@ -0,0 +1,54 @@ +/* + * 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 { EuiButton, EuiContextMenu, EuiPopover } from '@elastic/eui'; +import React from 'react'; +import { ActionDefinition } from './table_type_configs'; + +interface ActionButtonProps { + itemName: 'Beats' | 'Tags'; + actions: ActionDefinition[]; + isPopoverVisible: boolean; + actionHandler(action: string, payload?: any): void; + hidePopover(): void; + showPopover(): void; +} + +export function ActionButton(props: ActionButtonProps) { + const { actions, actionHandler, hidePopover, isPopoverVisible, showPopover } = props; + if (actions.length === 0) { + return null; + } + return ( + + Bulk Action + + } + closePopover={hidePopover} + id="contextMenu" + isOpen={isPopoverVisible} + panelPaddingSize="none" + withTitle + > + ({ + ...action, + onClick: () => actionHandler(action.action), + })), + }, + ]} + /> + + ); +} diff --git a/x-pack/plugins/beats_management/public/components/table/assignment_schema.ts b/x-pack/plugins/beats_management/public/components/table/assignment_schema.ts new file mode 100644 index 0000000000000..d1a324e191cb9 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table/assignment_schema.ts @@ -0,0 +1,65 @@ +/* + * 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 { AssignmentActionType } from './table'; + +export interface AssignmentControlSchema { + id?: number; + name: string; + danger?: boolean; + action?: AssignmentActionType; + showWarning?: boolean; + warningHeading?: string; + warningMessage?: string; + lazyLoad?: boolean; + panel?: AssignmentControlSchema; + grow?: boolean; +} + +export const beatsListAssignmentOptions: AssignmentControlSchema[] = [ + { + grow: false, + name: 'Unenroll selected', + showWarning: true, + warningHeading: 'Unenroll selected beats?', + warningMessage: 'The selected Beats will no longer use central management', + action: AssignmentActionType.Delete, + danger: true, + }, + { + name: 'Set tags', + grow: false, + lazyLoad: true, + panel: { + id: 1, + name: 'Assign tags', + }, + }, +]; + +export const tagListAssignmentOptions: AssignmentControlSchema[] = [ + { + danger: true, + grow: false, + name: 'Remove tag(s)', + showWarning: true, + warningHeading: 'Remove tag(s)', + warningMessage: 'Remove the tag?', + action: AssignmentActionType.Delete, + }, +]; + +export const tagConfigAssignmentOptions: AssignmentControlSchema[] = [ + { + danger: true, + grow: false, + name: 'Remove tag(s)', + showWarning: true, + warningHeading: 'Remove tag(s)', + warningMessage: 'Remove the tag from the selected beat(s)?', + action: AssignmentActionType.Delete, + }, +]; diff --git a/x-pack/plugins/beats_management/public/components/table/controls.tsx b/x-pack/plugins/beats_management/public/components/table/controls.tsx new file mode 100644 index 0000000000000..894b907f0351e --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table/controls.tsx @@ -0,0 +1,49 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import React from 'react'; +import { AutocompleteField } from '../autocomplete_field/index'; +import { OptionControl } from '../table_controls'; +import { AssignmentOptions as AssignmentOptionsType, KueryBarProps } from './table'; + +interface ControlBarProps { + itemType: string; + assignmentOptions: AssignmentOptionsType; + kueryBarProps?: KueryBarProps; + selectionCount: number; +} + +export function ControlBar(props: ControlBarProps) { + const { + assignmentOptions: { actionHandler, items, schema, type }, + kueryBarProps, + selectionCount, + } = props; + + if (type === 'none') { + return null; + } + + return ( + + + + + {kueryBarProps && ( + + + + )} + + ); +} diff --git a/x-pack/plugins/beats_management/public/components/table/index.ts b/x-pack/plugins/beats_management/public/components/table/index.ts new file mode 100644 index 0000000000000..9d806de7cf024 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table/index.ts @@ -0,0 +1,20 @@ +/* + * 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 { AssignmentActionType, AssignmentOptions, KueryBarProps, Table } from './table'; +export { + AssignmentControlSchema, + beatsListAssignmentOptions, + tagConfigAssignmentOptions, +} from './assignment_schema'; +export { ControlBar } from './controls'; +export { + ActionDefinition, + BeatDetailTagsTable, + BeatsTableType, + FilterDefinition, + TagsTableType, +} from './table_type_configs'; diff --git a/x-pack/plugins/beats_management/public/components/table/table.tsx b/x-pack/plugins/beats_management/public/components/table/table.tsx new file mode 100644 index 0000000000000..c3cfb3ae398d0 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table/table.tsx @@ -0,0 +1,123 @@ +/* + * 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 { + // @ts-ignore no typings for EuiInMemoryTable in EUI + EuiInMemoryTable, + EuiSpacer, +} from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; +import { AutocompleteSuggestion } from 'ui/autocomplete_providers'; +import { TABLE_CONFIG } from '../../../common/constants'; +import { AssignmentControlSchema } from './assignment_schema'; +import { ControlBar } from './controls'; +import { TableType } from './table_type_configs'; + +export enum AssignmentActionType { + Add, + Assign, + Delete, + Edit, + Reload, + Search, +} + +export interface AssignmentOptions { + schema: AssignmentControlSchema[]; + items: any[]; + type?: 'none' | 'primary' | 'assignment'; + actionHandler(action: AssignmentActionType, payload?: any): void; +} + +export interface KueryBarProps { + filterQueryDraft: string; + isLoadingSuggestions: boolean; + isValid: boolean; + loadSuggestions: (value: string, cursorPosition: number, maxCount?: number) => void; + onChange?: (value: string) => void; + onSubmit?: (value: string) => void; + suggestions: AutocompleteSuggestion[]; + value: string; +} + +interface TableProps { + assignmentOptions?: AssignmentOptions; + hideTableControls?: boolean; + kueryBarProps?: KueryBarProps; + items: any[]; + type: TableType; +} + +interface TableState { + selection: any[]; +} + +const TableContainer = styled.div` + padding: 16px; +`; + +export class Table extends React.Component { + constructor(props: any) { + super(props); + + this.state = { + selection: [], + }; + } + + public resetSelection = () => { + this.setSelection([]); + }; + + public setSelection = (selection: any[]) => { + this.setState({ + selection, + }); + }; + + public render() { + const { assignmentOptions, hideTableControls, items, kueryBarProps, type } = this.props; + + const pagination = { + initialPageSize: TABLE_CONFIG.INITIAL_ROW_SIZE, + pageSizeOptions: TABLE_CONFIG.PAGE_SIZE_OPTIONS, + }; + + const selectionOptions = hideTableControls + ? null + : { + onSelectionChange: this.setSelection, + selectable: () => true, + selectableMessage: () => 'Select this beat', + selection: this.state.selection, + }; + + return ( + + {!hideTableControls && + assignmentOptions && ( + + )} + + + + ); + } +} diff --git a/x-pack/plugins/beats_management/public/components/table/table_search_control.tsx b/x-pack/plugins/beats_management/public/components/table/table_search_control.tsx new file mode 100644 index 0000000000000..c3d79f5d1891b --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table/table_search_control.tsx @@ -0,0 +1,29 @@ +/* + * 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 { + // @ts-ignore typings for EuiSearchar not included in EUI + EuiSearchBar, +} from '@elastic/eui'; +import React from 'react'; +import { FilterDefinition } from '../table'; +import { AssignmentActionType } from './table'; + +interface TableSearchControlProps { + filters?: FilterDefinition[]; + actionHandler(action: AssignmentActionType, payload?: any): void; +} + +export const TableSearchControl = (props: TableSearchControlProps) => { + const { actionHandler, filters } = props; + return ( + actionHandler(AssignmentActionType.Search, query)} + /> + ); +}; diff --git a/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx b/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx new file mode 100644 index 0000000000000..fccbeae56fd29 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx @@ -0,0 +1,241 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem, EuiHealth, EuiToolTip, IconColor } from '@elastic/eui'; +import { first, sortBy, sortByOrder, uniq } from 'lodash'; +import moment from 'moment'; +import React from 'react'; +import { BeatTag, CMPopulatedBeat, ConfigurationBlock } from '../../../common/domain_types'; +import { ConnectedLink } from '../connected_link'; +import { TagBadge } from '../tag'; + +export interface ColumnDefinition { + align?: string; + field: string; + name: string; + sortable?: boolean; + width?: string; + render?(value: any, object?: any): any; +} + +export interface ActionDefinition { + action: string; + danger?: boolean; + icon?: any; + name: string; +} + +interface FilterOption { + value: string; +} + +export interface FilterDefinition { + field: string; + name: string; + options?: FilterOption[]; + type: string; +} + +export interface ControlDefinitions { + actions: ActionDefinition[]; + filters: FilterDefinition[]; + primaryActions?: ActionDefinition[]; +} + +export interface TableType { + itemType: 'Beats' | 'Tags'; + columnDefinitions: ColumnDefinition[]; + controlDefinitions(items: any[]): ControlDefinitions; +} + +export const BeatsTableType: TableType = { + itemType: 'Beats', + columnDefinitions: [ + { + field: 'name', + name: 'Beat name', + render: (name: string, beat: CMPopulatedBeat) => ( + {name} + ), + sortable: true, + }, + { + field: 'type', + name: 'Type', + sortable: true, + }, + { + field: 'full_tags', + name: 'Tags', + render: (value: string, beat: CMPopulatedBeat) => ( + + {(sortBy(beat.full_tags, 'id') || []).map(tag => ( + + + + + + ))} + + ), + sortable: false, + }, + { + // TODO: update to use actual metadata field + field: 'config_status', + name: 'Config Status', + render: (value: string, beat: CMPopulatedBeat) => { + let color: IconColor = 'success'; + let statusText = 'OK'; + let tooltipText = 'Beat successfully applied latest config'; + + switch (beat.config_status) { + case 'UNKNOWN': + color = 'subdued'; + statusText = 'Offline'; + if (moment().diff(beat.last_checkin, 'minutes') >= 10) { + tooltipText = 'This Beat has not connected to kibana in over 10min'; + } else { + tooltipText = 'This Beat has not yet been started.'; + } + break; + case 'ERROR': + color = 'danger'; + statusText = 'Error'; + tooltipText = 'Please check the logs of this Beat for error details'; + break; + } + + return ( + + + {statusText} + + + ); + }, + sortable: false, + }, + { + field: 'full_tags', + name: 'Last config update', + render: (tags: BeatTag[]) => + tags.length ? ( + + {moment(first(sortByOrder(tags, ['last_updated'], ['desc'])).last_updated).fromNow()} + + ) : null, + sortable: true, + }, + ], + controlDefinitions: (data: any[]) => ({ + actions: [ + { + name: 'Disenroll Selected', + action: 'delete', + danger: true, + }, + ], + filters: [ + { + type: 'field_value_selection', + field: 'type', + name: 'Type', + options: uniq(data.map(({ type }: { type: any }) => ({ value: type })), 'value'), + }, + ], + }), +}; + +export const TagsTableType: TableType = { + itemType: 'Tags', + columnDefinitions: [ + { + field: 'id', + name: 'Tag name', + render: (id: string, tag: BeatTag) => ( + + + + ), + sortable: true, + width: '45%', + }, + { + align: 'right', + field: 'configuration_blocks', + name: 'Configurations', + render: (configurationBlocks: ConfigurationBlock[]) => ( +
      {configurationBlocks.length}
      + ), + sortable: false, + }, + { + align: 'right', + field: 'last_updated', + name: 'Last update', + render: (lastUpdate: Date) =>
      {moment(lastUpdate).fromNow()}
      , + sortable: true, + }, + ], + controlDefinitions: (data: any) => ({ + actions: [ + { + name: 'Remove Selected', + action: 'delete', + danger: true, + }, + ], + filters: [], + }), +}; + +export const BeatDetailTagsTable: TableType = { + itemType: 'Tags', + columnDefinitions: [ + { + field: 'id', + name: 'Tag name', + render: (id: string, tag: BeatTag) => ( + + + + ), + sortable: true, + width: '55%', + }, + { + align: 'right', + field: 'configuration_blocks', + name: 'Configurations', + render: (configurations: ConfigurationBlock[]) => {configurations.length}, + sortable: true, + }, + { + align: 'right', + field: 'last_updated', + name: 'Last update', + render: (lastUpdate: string) => {moment(lastUpdate).fromNow()}, + sortable: true, + }, + ], + controlDefinitions: (data: any) => ({ + actions: [], + filters: [], + primaryActions: [ + { + name: 'Add Tag', + action: 'add', + danger: false, + }, + { + name: 'Remove Selected', + action: 'remove', + danger: true, + }, + ], + }), +}; diff --git a/x-pack/plugins/beats_management/public/components/table_controls/action_control.tsx b/x-pack/plugins/beats_management/public/components/table_controls/action_control.tsx new file mode 100644 index 0000000000000..9b858f3277cd1 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table_controls/action_control.tsx @@ -0,0 +1,79 @@ +/* + * 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 { + // @ts-ignore EuiConfirmModal typings not included in current EUI + EuiConfirmModal, + EuiOverlayMask, + EuiTextColor, +} from '@elastic/eui'; +import React from 'react'; +import { AssignmentActionType } from '../table'; + +interface ActionControlProps { + action: AssignmentActionType; + danger?: boolean; + name: string; + showWarning?: boolean; + warningHeading?: string; + warningMessage?: string; + actionHandler(action: AssignmentActionType, payload?: any): void; +} + +interface ActionControlState { + showModal: boolean; +} + +export class ActionControl extends React.PureComponent { + constructor(props: ActionControlProps) { + super(props); + + this.state = { + showModal: false, + }; + } + + public render() { + const { + action, + actionHandler, + danger, + name, + showWarning, + warningHeading, + warningMessage, + } = this.props; + return ( +
      + this.setState({ showModal: true }) : () => actionHandler(action) + } + > + {name} + + {this.state.showModal && ( + + { + actionHandler(action); + this.setState({ showModal: false }); + }} + onCancel={() => this.setState({ showModal: false })} + title={warningHeading ? warningHeading : 'Confirm'} + > + {warningMessage} + + + )} +
      + ); + } +} diff --git a/x-pack/plugins/beats_management/public/components/table_controls/index.ts b/x-pack/plugins/beats_management/public/components/table_controls/index.ts new file mode 100644 index 0000000000000..f97cd9e727d2a --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table_controls/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { OptionControl } from './option_control'; diff --git a/x-pack/plugins/beats_management/public/components/table_controls/option_control.tsx b/x-pack/plugins/beats_management/public/components/table_controls/option_control.tsx new file mode 100644 index 0000000000000..9c65c65440f64 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table_controls/option_control.tsx @@ -0,0 +1,166 @@ +/* + * 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 { + EuiButton, + // @ts-ignore + EuiCard, + EuiContextMenu, + EuiPanel, + EuiPopover, + EuiTextColor, + EuiToolTip, + EuiToolTipProps, +} from '@elastic/eui'; +import { EuiIcon } from '@elastic/eui'; +import { isArray } from 'lodash'; +import React from 'react'; +import { AssignmentControlSchema } from '../table'; +import { AssignmentActionType } from '../table'; +import { ActionControl } from './action_control'; +import { TagBadgeList } from './tag_badge_list'; + +interface ComponentProps { + itemType: string; + items?: any[]; + schema: AssignmentControlSchema[]; + selectionCount: number; + actionHandler(action: AssignmentActionType, payload?: any): void; +} + +interface ComponentState { + showPopover: boolean; +} + +interface FixedEuiToolTipProps extends EuiToolTipProps { + delay: 'regular' | 'long'; +} +const FixedEuiToolTip = (EuiToolTip as any) as React.SFC; + +export class OptionControl extends React.PureComponent { + constructor(props: ComponentProps) { + super(props); + + this.state = { + showPopover: false, + }; + } + + public schemaToPanelTree( + schemaOrArray: AssignmentControlSchema | AssignmentControlSchema[], + panels: any = [] + ) { + const { items, actionHandler } = this.props; + + let schema: AssignmentControlSchema | null = null; + let schemaArray: AssignmentControlSchema[] | null = null; + + if (isArray(schemaOrArray)) { + schemaArray = schemaOrArray as AssignmentControlSchema[]; + } else { + schema = schemaOrArray as AssignmentControlSchema; + } + + const panel: any = { + title: schema ? schema.name : undefined, + id: panels.length, + }; + + if (schemaArray) { + panel.items = schemaArray.map(def => { + return { + onClick: def.lazyLoad ? () => actionHandler(AssignmentActionType.Reload) : undefined, + panel: def.panel ? def.panel.id : undefined, + name: def.action ? ( + + ) : ( + {def.name} + ), + }; + }); + } else { + if (items === undefined) { + panel.content = 'Unknown Error.'; + } else if (items.length === 0) { + panel.content = ( + + } + title="No tags found." + description="Please create a new configuration tag." + /> + + ); + } else { + panel.content = ; + } + } + + panels.push(panel); + + if (schemaArray !== null) { + schemaArray.forEach((item: AssignmentControlSchema) => { + if (item.panel) { + this.schemaToPanelTree(item.panel, panels); + } + }); + } + + return panels; + } + + public render() { + const { itemType, selectionCount, schema } = this.props; + + return ( + + { + this.setState({ + showPopover: true, + }); + }} + > + Manage {itemType} + + + } + closePopover={() => { + this.setState({ showPopover: false }); + }} + id="assignmentList" + isOpen={this.state.showPopover} + panelPaddingSize="none" + anchorPosition="downLeft" + withTitle + > + + + ); + } +} diff --git a/x-pack/plugins/beats_management/public/components/table_controls/tag_assignment.tsx b/x-pack/plugins/beats_management/public/components/table_controls/tag_assignment.tsx new file mode 100644 index 0000000000000..952636d9b9804 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table_controls/tag_assignment.tsx @@ -0,0 +1,55 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner } from '@elastic/eui'; +import React from 'react'; +import { TABLE_CONFIG } from '../../../common/constants'; +import { TagBadge } from '../tag/tag_badge'; + +interface TagAssignmentProps { + tag: any; + assignTag(id: string): void; +} + +interface TagAssignmentState { + isFetchingTags: boolean; +} + +export class TagAssignment extends React.PureComponent { + constructor(props: TagAssignmentProps) { + super(props); + + this.state = { + isFetchingTags: false, + }; + } + + public render() { + const { + assignTag, + tag, + tag: { id }, + } = this.props; + + return ( + + {this.state.isFetchingTags && ( + + + + )} + + assignTag(id)} + onClickAriaLabel={id} + tag={tag} + /> + + + ); + } +} diff --git a/x-pack/plugins/beats_management/public/components/table_controls/tag_badge_list.tsx b/x-pack/plugins/beats_management/public/components/table_controls/tag_badge_list.tsx new file mode 100644 index 0000000000000..f419c086a43fe --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/table_controls/tag_badge_list.tsx @@ -0,0 +1,29 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import React from 'react'; +import { AssignmentActionType } from '../table/table'; +import { TagAssignment } from './tag_assignment'; + +interface TagBadgeListProps { + items: any[]; + actionHandler(action: AssignmentActionType, payload?: any): void; +} + +export const TagBadgeList = (props: TagBadgeListProps) => ( + // @ts-ignore direction prop type "column" not defined in current EUI version + + {props.items.map((item: any) => ( + + props.actionHandler(AssignmentActionType.Assign, id)} + /> + + ))} + +); diff --git a/x-pack/plugins/beats_management/public/components/tag/config_view/config_form.tsx b/x-pack/plugins/beats_management/public/components/tag/config_view/config_form.tsx new file mode 100644 index 0000000000000..934e2d2645d94 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/tag/config_view/config_form.tsx @@ -0,0 +1,227 @@ +/* + * 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. + */ +// @ts-ignore +import Formsy, { addValidationRule, FieldValue, FormData } from 'formsy-react'; +import yaml from 'js-yaml'; +import { get } from 'lodash'; +import React from 'react'; +import { ConfigurationBlock } from '../../../../common/domain_types'; +import { YamlConfigSchema } from '../../../lib/lib'; +import { + FormsyEuiCodeEditor, + FormsyEuiFieldText, + FormsyEuiMultiFieldText, + FormsyEuiPasswordText, + FormsyEuiSelect, +} from '../../inputs'; + +addValidationRule('isHosts', (form: FormData, values: FieldValue | string[]) => { + // TODO add more validation + return true; +}); + +addValidationRule('isString', (values: FormData, value: FieldValue) => { + return true; +}); + +addValidationRule('isPeriod', (values: FormData, value: FieldValue) => { + // TODO add more validation + return true; +}); + +addValidationRule('isPath', (values: FormData, value: FieldValue) => { + // TODO add more validation + return value && value.length > 0; +}); + +addValidationRule('isPaths', (values: FormData, value: FieldValue) => { + // TODO add more validation + return true; +}); + +addValidationRule('isYaml', (values: FormData, value: FieldValue) => { + try { + const stuff = yaml.safeLoad(value || ''); + if (typeof stuff === 'string') { + return false; + } + return true; + } catch (e) { + return false; + } +}); + +interface ComponentProps { + values: ConfigurationBlock; + schema: YamlConfigSchema[]; + id: string; + onSubmit?: (modal: any) => any; + canSubmit(canIt: boolean): any; +} + +export class ConfigForm extends React.Component { + private form = React.createRef(); + constructor(props: ComponentProps) { + super(props); + + this.state = { + canSubmit: false, + }; + } + + public enableButton = () => { + this.setState({ + canSubmit: true, + }); + this.props.canSubmit(true); + }; + public disableButton = () => { + this.setState({ + canSubmit: false, + }); + this.props.canSubmit(false); + }; + public submit = () => { + if (this.form.current && this.props.onSubmit) { + this.form.current.click(); + } + }; + public onValidSubmit = (model: ModelType) => { + if (!this.props.onSubmit) { + return; + } + + this.props.onSubmit(model); + }; + public render() { + return ( +
      +
      + + {this.props.schema.map(schema => { + switch (schema.ui.type) { + case 'input': + return ( + + ); + case 'password': + return ( + + ); + case 'multi-input': + return ( + + ); + case 'select': + return ( + + ); + case 'code': + return ( + + ); + } + })} + {this.props.onSubmit && ( +
      + ); + } +} diff --git a/x-pack/plugins/beats_management/public/components/tag/config_view/index.tsx b/x-pack/plugins/beats_management/public/components/tag/config_view/index.tsx new file mode 100644 index 0000000000000..b86b11d2b2d54 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/tag/config_view/index.tsx @@ -0,0 +1,158 @@ +/* + * 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 { + EuiButton, + EuiButtonEmpty, + // @ts-ignore + EuiCodeEditor, + EuiFieldText, + EuiFlexGroup, + EuiFlexItem, + EuiFlyout, + EuiFlyoutBody, + EuiFlyoutFooter, + EuiFlyoutHeader, + EuiFormRow, + // @ts-ignore + EuiHorizontalRule, + // @ts-ignore + EuiSearchBar, + // @ts-ignore + EuiSelect, + // @ts-ignore + EuiTabbedContent, + EuiTitle, +} from '@elastic/eui'; +import React from 'react'; +import { ConfigurationBlock } from '../../../../common/domain_types'; +import { supportedConfigs } from '../../../config_schemas'; +import { ConfigForm } from './config_form'; + +interface ComponentProps { + configBlock?: ConfigurationBlock; + onClose(): any; + onSave?(config: ConfigurationBlock): any; +} + +export class ConfigView extends React.Component { + private form = React.createRef(); + private editMode: boolean; + constructor(props: any) { + super(props); + this.editMode = props.configBlock !== undefined; + + this.state = { + valid: false, + configBlock: props.configBlock || { + type: supportedConfigs[0].value, + }, + }; + } + public onValueChange = (field: string) => (e: any) => { + const value = e.currentTarget ? e.currentTarget.value : e; + this.setState((state: any) => ({ + configBlock: { + ...state.configBlock, + [field]: value, + }, + })); + }; + public render() { + return ( + + + +

      + {this.editMode + ? this.props.onSave + ? 'Edit configuration block' + : 'View configuration block' + : 'Add configuration block'} +

      +
      +
      + + + + + + + +

      + { + (supportedConfigs.find(config => this.state.configBlock.type === config.value) as any) + .text + } +  configuration +

      + + + { + if (this.props.onSave) { + this.props.onSave({ + ...this.state.configBlock, + configs: [data], + }); + } + this.props.onClose(); + } + : undefined + } + canSubmit={canIt => this.setState({ valid: canIt })} + ref={this.form} + values={this.state.configBlock} + id={ + (supportedConfigs.find(config => this.state.configBlock.type === config.value) as any) + .value + } + schema={ + (supportedConfigs.find(config => this.state.configBlock.type === config.value) as any) + .config + } + /> +
      + + + + + Close + + + {this.props.onSave && ( + + { + if (this.form.current) { + this.form.current.submit(); + } + }} + > + Save + + + )} + + +
      + ); + } +} diff --git a/x-pack/plugins/beats_management/public/components/tag/disabled_tag_badge.tsx b/x-pack/plugins/beats_management/public/components/tag/disabled_tag_badge.tsx new file mode 100644 index 0000000000000..23d1be68e0da8 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/tag/disabled_tag_badge.tsx @@ -0,0 +1,25 @@ +/* + * 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 { EuiBadge } from '@elastic/eui'; +import React from 'react'; +import { TABLE_CONFIG } from '../../../common/constants'; + +interface TagBadgeProps { + maxIdRenderSize?: number; + id: string; +} + +export const DisabledTagBadge = (props: TagBadgeProps) => { + const { id, maxIdRenderSize } = props; + const idRenderSize = maxIdRenderSize || TABLE_CONFIG.TRUNCATE_TAG_LENGTH; + const idToRender = id.length > idRenderSize ? `${id.substring(0, idRenderSize)}...` : id; + return ( + + {idToRender} + + ); +}; diff --git a/x-pack/plugins/beats_management/public/components/tag/index.ts b/x-pack/plugins/beats_management/public/components/tag/index.ts new file mode 100644 index 0000000000000..24a1c3f6f8b1e --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/tag/index.ts @@ -0,0 +1,8 @@ +/* + * 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 { TagBadge } from './tag_badge'; +export { TagEdit } from './tag_edit'; diff --git a/x-pack/plugins/beats_management/public/components/tag/tag_badge.tsx b/x-pack/plugins/beats_management/public/components/tag/tag_badge.tsx new file mode 100644 index 0000000000000..f81c16f59ee12 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/tag/tag_badge.tsx @@ -0,0 +1,42 @@ +/* + * 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 { EuiBadge } from '@elastic/eui'; +import React from 'react'; +import { TABLE_CONFIG } from '../../../common/constants'; +import { DisabledTagBadge } from './disabled_tag_badge'; + +interface TagBadgeProps { + iconType?: any; + onClick?: () => void; + onClickAriaLabel?: string; + maxIdRenderSize?: number; + tag: { color?: string; disabled?: boolean; id: string }; +} + +export const TagBadge = (props: TagBadgeProps) => { + const { + iconType, + onClick, + onClickAriaLabel, + tag: { color, disabled, id }, + } = props; + + const maxIdRenderSize = props.maxIdRenderSize || TABLE_CONFIG.TRUNCATE_TAG_LENGTH; + const idToRender = id.length > maxIdRenderSize ? `${id.substring(0, maxIdRenderSize)}...` : id; + return disabled ? ( + + ) : ( + + {idToRender} + + ); +}; diff --git a/x-pack/plugins/beats_management/public/components/tag/tag_edit.tsx b/x-pack/plugins/beats_management/public/components/tag/tag_edit.tsx new file mode 100644 index 0000000000000..d2864104889a8 --- /dev/null +++ b/x-pack/plugins/beats_management/public/components/tag/tag_edit.tsx @@ -0,0 +1,221 @@ +/* + * 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 { + EuiButton, + // @ts-ignore + EuiColorPicker, + EuiFieldText, + EuiFlexGroup, + EuiFlexItem, + // @ts-ignore + EuiForm, + EuiFormRow, + EuiHorizontalRule, + EuiSpacer, + EuiText, + EuiTitle, +} from '@elastic/eui'; +import 'brace/mode/yaml'; +import 'brace/theme/github'; +import { isEqual } from 'lodash'; +import React from 'react'; +import { BeatTag, CMBeat, ConfigurationBlock } from '../../../common/domain_types'; +import { ConfigList } from '../config_list'; +import { AssignmentActionType, Table } from '../table'; +import { BeatsTableType } from '../table'; +import { tagConfigAssignmentOptions } from '../table'; +import { ConfigView } from './config_view'; +import { TagBadge } from './tag_badge'; + +interface TagEditProps { + mode: 'edit' | 'create'; + tag: Pick>; + onDetachBeat: (beatIds: string[]) => void; + onTagChange: (field: keyof BeatTag, value: string) => any; + attachedBeats: CMBeat[] | null; +} + +interface TagEditState { + showFlyout: boolean; + tableRef: any; + selectedConfigIndex?: number; +} + +export class TagEdit extends React.PureComponent { + constructor(props: TagEditProps) { + super(props); + + this.state = { + showFlyout: false, + tableRef: React.createRef(), + }; + } + + public render() { + const { tag, attachedBeats } = this.props; + return ( +
      + + + +

      Tag details

      +
      + +

      + A tag is a group of configuration blocks that you can apply to one or more Beats. +

      +
      +
      + +
      +
      + + + + + + {this.props.mode === 'create' && ( + + + + )} + + +
      + + + + + + +

      Configuration blocks

      +
      + +

      + A tag can have configuration blocks for different types of Beats. For example, a tag + can have two Metricbeat configuration blocks and one Filebeat input configuration + block. +

      +
      +
      + +
      + { + const selectedIndex = tag.configuration_blocks.findIndex(c => { + return isEqual(config, c); + }); + if (action === 'delete') { + const configs = [...tag.configuration_blocks]; + configs.splice(selectedIndex, 1); + this.updateTag('configuration_blocks', configs); + } else { + this.setState({ + showFlyout: true, + selectedConfigIndex: selectedIndex, + }); + } + }} + /> +
      + { + this.setState({ showFlyout: true }); + }} + > + Add configuration block + +
      +
      +
      + + {attachedBeats && ( +
      + + + +

      Beats with this tag

      +
      + + + )} + + {this.state.showFlyout && ( + this.setState({ showFlyout: false, selectedConfigIndex: undefined })} + onSave={(config: any) => { + this.setState({ showFlyout: false, selectedConfigIndex: undefined }); + if (this.state.selectedConfigIndex !== undefined) { + const configs = [...tag.configuration_blocks]; + configs[this.state.selectedConfigIndex] = config; + this.updateTag('configuration_blocks', configs); + } else { + this.updateTag('configuration_blocks', [ + ...(tag.configuration_blocks || []), + config, + ]); + } + }} + /> + )} + + ); + } + + private getNameError = (name: string) => { + if (name && name !== '' && name.search(/^[a-zA-Z0-9-]+$/) === -1) { + return 'Tag name must consist of letters, numbers, and dashes only'; + } else { + return false; + } + }; + + private handleAssignmentActions = (action: AssignmentActionType) => { + switch (action) { + case AssignmentActionType.Delete: + const { selection } = this.state.tableRef.current.state; + this.props.onDetachBeat(selection.map((beat: any) => beat.id)); + } + }; + + // TODO this should disable save button on bad validations + private updateTag = (key: keyof BeatTag, value?: any) => + value !== undefined + ? this.props.onTagChange(key, value) + : (e: any) => this.props.onTagChange(key, e.target ? e.target.value : e); +} diff --git a/x-pack/plugins/beats_management/public/config_schemas.ts b/x-pack/plugins/beats_management/public/config_schemas.ts new file mode 100644 index 0000000000000..0a1427289c6fb --- /dev/null +++ b/x-pack/plugins/beats_management/public/config_schemas.ts @@ -0,0 +1,376 @@ +/* + * 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 { YamlConfigSchema } from './lib/lib'; + +const filebeatInputConfig: YamlConfigSchema[] = [ + { + id: 'paths', + ui: { + label: 'Paths', + type: 'multi-input', + helpText: 'Put each of the paths on a seperate line', + placeholder: `first/path/to/file.json second/path/to/otherfile.json`, + }, + validations: 'isPaths', + error: 'One file path per line', + required: true, + }, + { + id: 'other', + ui: { + label: 'Other Config', + type: 'code', + helpText: 'Use YAML format to specify other settings for the Filebeat Input', + }, + validations: 'isYaml', + error: 'Use valid YAML format', + }, +]; + +const filebeatModuleConfig: YamlConfigSchema[] = [ + { + id: 'module', + ui: { + label: 'Module', + type: 'select', + }, + options: [ + { + value: 'apache2', + text: 'apache2', + }, + { + value: 'auditd', + text: 'auditd', + }, + { + value: 'elasticsearch', + text: 'elasticsearch', + }, + { + value: 'haproxy', + text: 'haproxy', + }, + { + value: 'icinga', + text: 'icinga', + }, + { + value: 'iis', + text: 'iis', + }, + { + value: 'kafka', + text: 'kafka', + }, + { + value: 'kibana', + text: 'kibana', + }, + { + value: 'logstash', + text: 'logstash', + }, + { + value: 'mongodb', + text: 'mongodb', + }, + { + value: 'mysql', + text: 'mysql', + }, + { + value: 'nginx', + text: 'nginx', + }, + { + value: 'osquery', + text: 'osquery', + }, + { + value: 'postgresql', + text: 'postgresql', + }, + { + value: 'redis', + text: 'redis', + }, + { + value: 'system', + text: 'system', + }, + { + value: 'traefik', + text: 'traefik', + }, + ], + error: 'Please select a module', + required: true, + }, + { + id: 'other', + ui: { + label: 'Other Config', + type: 'code', + helpText: 'Use YAML format to specify other settings for the Filebeat Module', + }, + validations: 'isYaml', + error: 'Use valid YAML format', + }, +]; + +const metricbeatModuleConfig: YamlConfigSchema[] = [ + { + id: 'module', + ui: { + label: 'Module', + type: 'select', + }, + options: [ + { + value: 'aerospike', + text: 'aerospike', + }, + { + value: 'apache', + text: 'apache', + }, + { + value: 'ceph', + text: 'ceph', + }, + { + value: 'couchbase', + text: 'couchbase', + }, + { + value: 'docker', + text: 'docker', + }, + { + value: 'dropwizard', + text: 'dropwizard', + }, + { + value: 'elasticsearch', + text: 'elasticsearch', + }, + { + value: 'envoyproxy', + text: 'envoyproxy', + }, + { + value: 'etcd', + text: 'etcd', + }, + { + value: 'golang', + text: 'golang', + }, + { + value: 'graphite', + text: 'graphite', + }, + { + value: 'haproxy', + text: 'haproxy', + }, + { + value: 'http', + text: 'http', + }, + { + value: 'jolokia', + text: 'jolokia', + }, + { + value: 'kafka', + text: 'kafka', + }, + { + value: 'kibana', + text: 'kibana', + }, + { + value: 'kubernetes', + text: 'kubernetes', + }, + { + value: 'kvm', + text: 'kvm', + }, + { + value: 'logstash', + text: 'logstash', + }, + { + value: 'memcached', + text: 'memcached', + }, + { + value: 'mongodb', + text: 'mongodb', + }, + { + value: 'munin', + text: 'munin', + }, + { + value: 'mysql', + text: 'mysql', + }, + { + value: 'nginx', + text: 'nginx', + }, + { + value: 'php_fpm', + text: 'php_fpm', + }, + { + value: 'postgresql', + text: 'postgresql', + }, + { + value: 'prometheus', + text: 'prometheus', + }, + { + value: 'rabbitmq', + text: 'rabbitmq', + }, + { + value: 'redis', + text: 'redis', + }, + { + value: 'system', + text: 'system', + }, + { + value: 'traefik', + text: 'traefik', + }, + { + value: 'uwsgi', + text: 'uwsgi', + }, + { + value: 'vsphere', + text: 'vsphere', + }, + { + value: 'windows', + text: 'windows', + }, + { + value: 'zookeeper', + text: 'zookeeper', + }, + ], + error: 'Please select a module', + required: true, + }, + { + id: 'hosts', + ui: { + label: 'Hosts', + type: 'multi-input', + helpText: 'Put each of the paths on a seperate line', + placeholder: `somehost.local otherhost.local`, + }, + validations: 'isHosts', + error: 'One file host per line', + required: false, + }, + { + id: 'period', + ui: { + label: 'Period', + type: 'input', + }, + defaultValue: '10s', + validations: 'isPeriod', + error: 'Invalid Period, must be formatted as `10s` for 10 seconds', + required: true, + }, + { + id: 'other', + ui: { + label: 'Other Config', + type: 'code', + helpText: 'Use YAML format to specify other settings for the Metricbeat Module', + }, + validations: 'isYaml', + error: 'Use valid YAML format', + }, +]; + +const outputConfig: YamlConfigSchema[] = [ + { + id: 'output', + ui: { + label: 'Output Type', + type: 'select', + }, + options: [ + { + value: 'elasticsearch', + text: 'Elasticsearch', + }, + { + value: 'logstash', + text: 'Logstash', + }, + { + value: 'kafka', + text: 'Kafka', + }, + { + value: 'console', + text: 'Console', + }, + ], + error: 'Please select an output type', + required: true, + }, + { + id: '{{output}}.hosts', + ui: { + label: 'Hosts', + type: 'multi-input', + }, + validations: 'isHosts', + error: 'One file host per line', + parseValidResult: v => v.split('\n'), + }, + { + id: '{{output}}.username', + ui: { + label: 'Username', + type: 'input', + }, + validations: 'isString', + error: 'Unprocessable username', + }, + { + id: '{{output}}.password', + ui: { + label: 'Password', + type: 'password', + }, + validations: 'isString', + error: 'Unprocessable password', + }, +]; + +export const supportedConfigs = [ + { text: 'Filebeat Input', value: 'filebeat.inputs', config: filebeatInputConfig }, + { text: 'Filebeat Module', value: 'filebeat.modules', config: filebeatModuleConfig }, + { text: 'Metricbeat Module', value: 'metricbeat.modules', config: metricbeatModuleConfig }, + { text: 'Output', value: 'output', config: outputConfig }, +]; diff --git a/x-pack/plugins/beats_management/public/containers/with_kuery_autocompletion.tsx b/x-pack/plugins/beats_management/public/containers/with_kuery_autocompletion.tsx new file mode 100644 index 0000000000000..a0a2afb7e63f2 --- /dev/null +++ b/x-pack/plugins/beats_management/public/containers/with_kuery_autocompletion.tsx @@ -0,0 +1,89 @@ +/* + * 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 React from 'react'; + +import { AutocompleteSuggestion } from 'ui/autocomplete_providers'; + +import { FrontendLibs } from '../lib/lib'; +import { RendererFunction } from '../utils/typed_react'; + +interface WithKueryAutocompletionLifecycleProps { + libs: FrontendLibs; + fieldPrefix?: string; + children: RendererFunction<{ + isLoadingSuggestions: boolean; + loadSuggestions: (expression: string, cursorPosition: number, maxSuggestions?: number) => void; + suggestions: AutocompleteSuggestion[]; + }>; +} + +interface WithKueryAutocompletionLifecycleState { + // lacking cancellation support in the autocompletion api, + // this is used to keep older, slower requests from clobbering newer ones + currentRequest: { + expression: string; + cursorPosition: number; + } | null; + suggestions: AutocompleteSuggestion[]; +} + +export class WithKueryAutocompletion extends React.Component< + WithKueryAutocompletionLifecycleProps, + WithKueryAutocompletionLifecycleState +> { + public readonly state: WithKueryAutocompletionLifecycleState = { + currentRequest: null, + suggestions: [], + }; + + public render() { + const { currentRequest, suggestions } = this.state; + + return this.props.children({ + isLoadingSuggestions: currentRequest !== null, + loadSuggestions: this.loadSuggestions, + suggestions, + }); + } + + private loadSuggestions = async ( + expression: string, + cursorPosition: number, + maxSuggestions?: number + ) => { + this.setState({ + currentRequest: { + expression, + cursorPosition, + }, + suggestions: [], + }); + let suggestions: any[] = []; + try { + suggestions = await this.props.libs.elasticsearch.getSuggestions( + expression, + cursorPosition, + this.props.fieldPrefix + ); + } catch (e) { + suggestions = []; + } + + this.setState( + state => + state.currentRequest && + state.currentRequest.expression !== expression && + state.currentRequest.cursorPosition !== cursorPosition + ? state // ignore this result, since a newer request is in flight + : { + ...state, + currentRequest: null, + suggestions: maxSuggestions ? suggestions.slice(0, maxSuggestions) : suggestions, + } + ); + }; +} diff --git a/x-pack/plugins/beats_management/public/containers/with_url_state.tsx b/x-pack/plugins/beats_management/public/containers/with_url_state.tsx new file mode 100644 index 0000000000000..1630c2c20cda8 --- /dev/null +++ b/x-pack/plugins/beats_management/public/containers/with_url_state.tsx @@ -0,0 +1,99 @@ +/* + * 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 { parse, stringify } from 'querystring'; +import React from 'react'; +import { withRouter } from 'react-router-dom'; +import { FlatObject } from '../app'; +import { RendererFunction } from '../utils/typed_react'; + +type StateCallback = (previousState: T) => T; + +export interface URLStateProps { + goTo: (path: string) => void; + setUrlState: ( + newState: + | Partial> + | StateCallback + | Promise> + ) => void; + urlState: URLState; +} +interface ComponentProps { + history: any; + match: any; + children: RendererFunction>; +} + +export class WithURLStateComponent extends React.Component< + ComponentProps +> { + private get URLState(): URLState { + // slice because parse does not account for the initial ? in the search string + return parse(decodeURIComponent(this.props.history.location.search).substring(1)) as URLState; + } + + private historyListener: (() => void) | null = null; + + public componentWillUnmount() { + if (this.historyListener) { + this.historyListener(); + } + } + public render() { + return this.props.children({ + goTo: this.goTo, + setUrlState: this.setURLState, + urlState: this.URLState || {}, + }); + } + + private setURLState = async ( + state: + | Partial> + | StateCallback + | Promise> + ) => { + let newState; + const pastState = this.URLState; + if (typeof state === 'function') { + newState = await state(pastState); + } else { + newState = state; + } + + const search: string = stringify({ + ...(pastState as any), + ...(newState as any), + }); + + const newLocation = { + ...this.props.history.location, + search, + }; + + this.props.history.replace(newLocation); + this.forceUpdate(); + }; + + private goTo = (path: string) => { + this.props.history.push({ + pathname: path, + search: this.props.history.location.search, + }); + }; +} +export const WithURLState = withRouter(WithURLStateComponent); + +export function withUrlState(UnwrappedComponent: React.ComponentType): React.SFC { + return (origProps: OP) => { + return ( + + {(URLProps: URLStateProps) => } + + ); + }; +} diff --git a/x-pack/plugins/beats_management/public/index.tsx b/x-pack/plugins/beats_management/public/index.tsx new file mode 100644 index 0000000000000..749fd8cecf9c6 --- /dev/null +++ b/x-pack/plugins/beats_management/public/index.tsx @@ -0,0 +1,27 @@ +/* + * 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 * as euiVars from '@elastic/eui/dist/eui_theme_k6_light.json'; +import React from 'react'; +import { ThemeProvider } from 'styled-components'; +import { BASE_PATH } from '../common/constants'; +import { BreadcrumbProvider } from './components/route_with_breadcrumb'; +import { compose } from './lib/compose/kibana'; +import { FrontendLibs } from './lib/lib'; +import { PageRouter } from './router'; + +function startApp(libs: FrontendLibs) { + libs.framework.registerManagementSection('beats', 'Central Management', BASE_PATH); + libs.framework.render( + + + + + + ); +} + +startApp(compose()); diff --git a/x-pack/plugins/beats_management/public/lib/__tests__/tags.test.ts b/x-pack/plugins/beats_management/public/lib/__tests__/tags.test.ts new file mode 100644 index 0000000000000..c57a451a0475c --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/__tests__/tags.test.ts @@ -0,0 +1,204 @@ +/* + * 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 { BeatTag } from '../../../common/domain_types'; +import { supportedConfigs } from '../../config_schemas'; +import { CMTagsAdapter } from '../adapters/tags/adapter_types'; +import { TagsLib } from '../tags'; + +describe('Tags Client Domain Lib', () => { + let tagsLib: TagsLib; + + beforeEach(async () => { + tagsLib = new TagsLib({} as CMTagsAdapter, supportedConfigs); + }); + + it('should use helper function to convert users yaml in tag to config object', async () => { + const convertedTag = tagsLib.userConfigsToJson([ + { + id: 'foo', + configuration_blocks: [ + { + type: 'filebeat.inputs', + description: 'string', + configs: [{ paths: ['adad/adasd'], other: "something: 'here'" }], + }, + ], + color: 'red', + last_updated: new Date(), + } as BeatTag, + ]); + + expect(convertedTag.length).toBe(1); + expect(convertedTag[0].configuration_blocks.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs[0]).not.toHaveProperty('other'); + expect(convertedTag[0].configuration_blocks[0].configs[0]).toHaveProperty('something'); + expect((convertedTag[0].configuration_blocks[0].configs[0] as any).something).toBe('here'); + }); + + it('should use helper function to convert user config to json with undefined `other`', async () => { + const convertedTag = tagsLib.userConfigsToJson([ + { + id: 'fsdfsdfs', + color: '#DD0A73', + configuration_blocks: [ + { + type: 'filebeat.inputs', + description: 'sdfsdf', + configs: [{ paths: ['sdfsfsdf'], other: undefined }], + }, + ], + last_updated: '2018-09-04T15:52:08.983Z', + } as any, + ]); + + expect(convertedTag.length).toBe(1); + expect(convertedTag[0].configuration_blocks.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs[0]).not.toHaveProperty('other'); + }); + + it('should use helper function to convert users yaml in tag to config object, where empty other leads to no other fields saved', async () => { + const convertedTag = tagsLib.userConfigsToJson([ + { + id: 'foo', + configuration_blocks: [ + { + type: 'filebeat.inputs', + description: 'string', + configs: [{ paths: ['adad/adasd'], other: '' }], + }, + ], + color: 'red', + last_updated: new Date(), + } as BeatTag, + ]); + + expect(convertedTag.length).toBe(1); + expect(convertedTag[0].configuration_blocks.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs[0]).not.toHaveProperty('other'); + }); + + it('should convert tokenized fields to JSON', async () => { + const convertedTag = tagsLib.userConfigsToJson([ + { + id: 'dfgdfgdfgdfgdfg', + color: '#DD0A73', + configuration_blocks: [ + { + type: 'output', + description: 'something', + configs: [ + { + output: 'console', + '{{output}}': { hosts: ['esefsfsgg', 'drgdrgdgr'], username: '', password: '' }, + }, + ], + }, + ], + last_updated: '2018-10-22T23:59:59.016Z', + } as any, + ]); + + expect(convertedTag.length).toBe(1); + expect(convertedTag[0].configuration_blocks.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs[0]).toHaveProperty('console'); + expect((convertedTag[0].configuration_blocks[0].configs[0] as any).console).toHaveProperty( + 'hosts' + ); + + expect((convertedTag[0].configuration_blocks[0].configs[0] as any).console.hosts.length).toBe( + 2 + ); + }); + + it('should convert JSON to tokenized fields', async () => { + const convertedTag = tagsLib.jsonConfigToUserYaml([ + { + id: 'dfgdfgdfgdfgdfg', + color: '#DD0A73', + configuration_blocks: [ + { + type: 'output', + description: 'something', + configs: [ + { + output: 'console', + console: { hosts: ['esefsfsgg', 'drgdrgdgr'], username: '', password: '' }, + }, + ], + }, + ], + last_updated: '2018-10-22T23:59:59.016Z', + } as any, + ]); + + expect(convertedTag.length).toBe(1); + expect(convertedTag[0].configuration_blocks.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs[0]).toHaveProperty('{{output}}'); + expect( + (convertedTag[0].configuration_blocks[0].configs[0] as any)['{{output}}'] + ).toHaveProperty('hosts'); + + expect( + (convertedTag[0].configuration_blocks[0].configs[0] as any)['{{output}}'].hosts.length + ).toBe(2); + }); + + it('should use helper function to convert config object to users yaml', async () => { + const convertedTag = tagsLib.jsonConfigToUserYaml([ + { + id: 'fsdfsdfs', + color: '#DD0A73', + configuration_blocks: [ + { + type: 'filebeat.inputs', + description: 'sdfsdf', + configs: [{ paths: ['sdfsfsdf'], something: 'here' }], + }, + ], + last_updated: '2018-09-04T15:52:08.983Z', + } as any, + ]); + + expect(convertedTag.length).toBe(1); + expect(convertedTag[0].configuration_blocks.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs[0]).not.toHaveProperty('something'); + expect(convertedTag[0].configuration_blocks[0].configs[0]).toHaveProperty('other'); + + expect(convertedTag[0].configuration_blocks[0].configs[0].other).toBe('something: here\n'); + }); + + it('should use helper function to convert config object to users yaml with empty `other`', async () => { + const convertedTag = tagsLib.jsonConfigToUserYaml([ + { + id: 'fsdfsdfs', + color: '#DD0A73', + configuration_blocks: [ + { + type: 'filebeat.inputs', + description: undefined, + configs: [{ paths: ['sdfsfsdf'] }], + }, + ], + last_updated: '2018-09-04T15:52:08.983Z', + } as any, + ]); + + expect(convertedTag.length).toBe(1); + expect(convertedTag[0].configuration_blocks.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs.length).toBe(1); + expect(convertedTag[0].configuration_blocks[0].configs[0]).not.toHaveProperty('something'); + expect(convertedTag[0].configuration_blocks[0].configs[0]).toHaveProperty('other'); + + expect(convertedTag[0].configuration_blocks[0].configs[0].other).toBe(''); + }); +}); diff --git a/x-pack/plugins/beats_management/public/lib/adapters/beats/adapter_types.ts b/x-pack/plugins/beats_management/public/lib/adapters/beats/adapter_types.ts new file mode 100644 index 0000000000000..3808ec1d57422 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/beats/adapter_types.ts @@ -0,0 +1,36 @@ +/* + * 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 { CMBeat } from '../../../../common/domain_types'; + +export interface CMBeatsAdapter { + get(id: string): Promise; + update(id: string, beatData: Partial): Promise; + getBeatsWithTag(tagId: string): Promise; + getAll(ESQuery?: any): Promise; + removeTagsFromBeats(removals: BeatsTagAssignment[]): Promise; + assignTagsToBeats(assignments: BeatsTagAssignment[]): Promise; + getBeatWithToken(enrollmentToken: string): Promise; +} + +export interface BeatsTagAssignment { + beatId: string; + tag: string; + idxInRequest?: number; +} + +interface BeatsReturnedTagAssignment { + status: number | null; + result?: string; +} + +export interface CMAssignmentReturn { + assignments: BeatsReturnedTagAssignment[]; +} + +export interface BeatsRemovalReturn { + removals: BeatsReturnedTagAssignment[]; +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/beats/memory_beats_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/beats/memory_beats_adapter.ts new file mode 100644 index 0000000000000..e66e7e45b5c4f --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/beats/memory_beats_adapter.ts @@ -0,0 +1,105 @@ +/* + * 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 { omit } from 'lodash'; + +import { CMBeat } from '../../../../common/domain_types'; +import { + BeatsRemovalReturn, + BeatsTagAssignment, + CMAssignmentReturn, + CMBeatsAdapter, +} from './adapter_types'; + +export class MemoryBeatsAdapter implements CMBeatsAdapter { + private beatsDB: CMBeat[]; + + constructor(beatsDB: CMBeat[]) { + this.beatsDB = beatsDB; + } + + public async get(id: string) { + return this.beatsDB.find(beat => beat.id === id) || null; + } + + public async update(id: string, beatData: Partial): Promise { + const index = this.beatsDB.findIndex(beat => beat.id === id); + + if (index === -1) { + return false; + } + + this.beatsDB[index] = { ...this.beatsDB[index], ...beatData }; + return true; + } + + public async getAll() { + return this.beatsDB.map((beat: any) => omit(beat, ['access_token'])); + } + public async getBeatsWithTag(tagId: string): Promise { + return this.beatsDB.map((beat: any) => omit(beat, ['access_token'])); + } + + public async getBeatWithToken(enrollmentToken: string): Promise { + return this.beatsDB.map((beat: any) => omit(beat, ['access_token']))[0]; + } + public async removeTagsFromBeats(removals: BeatsTagAssignment[]): Promise { + const beatIds = removals.map(r => r.beatId); + + const response = this.beatsDB.filter(beat => beatIds.includes(beat.id)).map(beat => { + const tagData = removals.find(r => r.beatId === beat.id); + if (tagData) { + if (beat.tags) { + beat.tags = beat.tags.filter(tag => tag !== tagData.tag); + } + } + const removalsForBeat = removals.filter(r => r.beatId === beat.id); + if (removalsForBeat.length) { + removalsForBeat.forEach((assignment: BeatsTagAssignment) => { + if (beat.tags) { + beat.tags = beat.tags.filter(tag => tag !== assignment.tag); + } + }); + } + return beat; + }); + + return response.map((item: CMBeat, resultIdx: number) => ({ + idxInRequest: removals[resultIdx].idxInRequest, + result: 'updated', + status: 200, + })); + } + + public async assignTagsToBeats(assignments: BeatsTagAssignment[]): Promise { + const beatIds = assignments.map(r => r.beatId); + + this.beatsDB.filter(beat => beatIds.includes(beat.id)).map(beat => { + // get tags that need to be assigned to this beat + const tags = assignments + .filter(a => a.beatId === beat.id) + .map((t: BeatsTagAssignment) => t.tag); + + if (tags.length > 0) { + if (!beat.tags) { + beat.tags = []; + } + const nonExistingTags = tags.filter((t: string) => beat.tags && !beat.tags.includes(t)); + + if (nonExistingTags.length > 0) { + beat.tags = beat.tags.concat(nonExistingTags); + } + } + return beat; + }); + + return assignments.map((item: BeatsTagAssignment, resultIdx: number) => ({ + idxInRequest: assignments[resultIdx].idxInRequest, + result: 'updated', + status: 200, + })); + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/beats/rest_beats_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/beats/rest_beats_adapter.ts new file mode 100644 index 0000000000000..8649bf9c37e0e --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/beats/rest_beats_adapter.ts @@ -0,0 +1,57 @@ +/* + * 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 { CMBeat } from '../../../../common/domain_types'; +import { RestAPIAdapter } from '../rest_api/adapter_types'; +import { + BeatsRemovalReturn, + BeatsTagAssignment, + CMAssignmentReturn, + CMBeatsAdapter, +} from './adapter_types'; +export class RestBeatsAdapter implements CMBeatsAdapter { + constructor(private readonly REST: RestAPIAdapter) {} + + public async get(id: string): Promise { + return await this.REST.get(`/api/beats/agent/${id}`); + } + + public async getBeatWithToken(enrollmentToken: string): Promise { + const beat = await this.REST.get(`/api/beats/agent/unknown/${enrollmentToken}`); + return beat; + } + + public async getAll(ESQuery?: any): Promise { + return (await this.REST.get<{ beats: CMBeat[] }>('/api/beats/agents/all', { ESQuery })).beats; + } + + public async getBeatsWithTag(tagId: string): Promise { + return (await this.REST.get<{ beats: CMBeat[] }>(`/api/beats/agents/tag/${tagId}`)).beats; + } + + public async update(id: string, beatData: Partial): Promise { + await this.REST.put<{ success: true }>(`/api/beats/agent/${id}`, beatData); + return true; + } + + public async removeTagsFromBeats(removals: BeatsTagAssignment[]): Promise { + return (await this.REST.post<{ removals: BeatsRemovalReturn[] }>( + `/api/beats/agents_tags/removals`, + { + removals, + } + )).removals; + } + + public async assignTagsToBeats(assignments: BeatsTagAssignment[]): Promise { + return (await this.REST.post<{ assignments: CMAssignmentReturn[] }>( + `/api/beats/agents_tags/assignments`, + { + assignments, + } + )).assignments; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/adapter_types.ts b/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/adapter_types.ts new file mode 100644 index 0000000000000..4940857493275 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/adapter_types.ts @@ -0,0 +1,12 @@ +/* + * 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 { AutocompleteSuggestion } from 'ui/autocomplete_providers'; + +export interface ElasticsearchAdapter { + convertKueryToEsQuery: (kuery: string) => Promise; + getSuggestions: (kuery: string, selectionStart: any) => Promise; + isKueryValid(kuery: string): boolean; +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/memory.ts b/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/memory.ts new file mode 100644 index 0000000000000..1b918fb72c809 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/memory.ts @@ -0,0 +1,29 @@ +/* + * 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 { AutocompleteSuggestion } from 'ui/autocomplete_providers'; +import { ElasticsearchAdapter } from './adapter_types'; + +export class MemoryElasticsearchAdapter implements ElasticsearchAdapter { + constructor( + private readonly mockIsKueryValid: (kuery: string) => boolean, + private readonly mockKueryToEsQuery: (kuery: string) => string, + private readonly suggestions: AutocompleteSuggestion[] + ) {} + + public isKueryValid(kuery: string): boolean { + return this.mockIsKueryValid(kuery); + } + public async convertKueryToEsQuery(kuery: string): Promise { + return this.mockKueryToEsQuery(kuery); + } + public async getSuggestions( + kuery: string, + selectionStart: any + ): Promise { + return this.suggestions; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/rest.ts b/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/rest.ts new file mode 100644 index 0000000000000..d987a18137116 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/elasticsearch/rest.ts @@ -0,0 +1,77 @@ +/* + * 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 { isEmpty } from 'lodash'; +import { AutocompleteSuggestion, getAutocompleteProvider } from 'ui/autocomplete_providers'; +// @ts-ignore TODO type this +import { fromKueryExpression, toElasticsearchQuery } from 'ui/kuery'; +import { RestAPIAdapter } from '../rest_api/adapter_types'; +import { ElasticsearchAdapter } from './adapter_types'; + +export class RestElasticsearchAdapter implements ElasticsearchAdapter { + private cachedIndexPattern: any = null; + constructor(private readonly api: RestAPIAdapter, private readonly indexPatternName: string) {} + + public isKueryValid(kuery: string): boolean { + try { + fromKueryExpression(kuery); + } catch (err) { + return false; + } + + return true; + } + public async convertKueryToEsQuery(kuery: string): Promise { + if (!this.isKueryValid(kuery)) { + return ''; + } + const ast = fromKueryExpression(kuery); + const indexPattern = await this.getIndexPattern(); + return JSON.stringify(toElasticsearchQuery(ast, indexPattern)); + } + public async getSuggestions( + kuery: string, + selectionStart: any + ): Promise { + const autocompleteProvider = getAutocompleteProvider('kuery'); + if (!autocompleteProvider) { + return []; + } + const config = { + get: () => true, + }; + const indexPattern = await this.getIndexPattern(); + + const getAutocompleteSuggestions = autocompleteProvider({ + config, + indexPatterns: [indexPattern], + boolFilter: null, + }); + const results = getAutocompleteSuggestions({ + query: kuery || '', + selectionStart, + selectionEnd: selectionStart, + }); + return results; + } + + private async getIndexPattern() { + if (this.cachedIndexPattern) { + return this.cachedIndexPattern; + } + const res = await this.api.get( + `/api/index_patterns/_fields_for_wildcard?pattern=${this.indexPatternName}` + ); + if (isEmpty(res.fields)) { + return; + } + this.cachedIndexPattern = { + fields: res.fields, + title: `${this.indexPatternName}`, + }; + return this.cachedIndexPattern; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/framework/kibana_framework_adapter.ts new file mode 100644 index 0000000000000..4e58725475171 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/framework/kibana_framework_adapter.ts @@ -0,0 +1,225 @@ +/* + * 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 { IModule, IScope } from 'angular'; +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; + +import { + BufferedKibanaServiceCall, + FrameworkAdapter, + KibanaAdapterServiceRefs, + KibanaUIConfig, +} from '../../lib'; + +export class KibanaFrameworkAdapter implements FrameworkAdapter { + public appState: object; + + private management: any; + private adapterService: KibanaAdapterServiceProvider; + private rootComponent: React.ReactElement | null = null; + private uiModule: IModule; + private routes: any; + private XPackInfoProvider: any; + private xpackInfo: null | any; + private chrome: any; + private shieldUser: any; + + constructor( + uiModule: IModule, + management: any, + routes: any, + chrome: any, + XPackInfoProvider: any + ) { + this.adapterService = new KibanaAdapterServiceProvider(); + this.management = management; + this.uiModule = uiModule; + this.routes = routes; + this.chrome = chrome; + this.XPackInfoProvider = XPackInfoProvider; + this.appState = {}; + } + + public get baseURLPath(): string { + return this.chrome.getBasePath(); + } + + public setUISettings = (key: string, value: any) => { + this.adapterService.callOrBuffer(({ config }) => { + config.set(key, value); + }); + }; + + public render = (component: React.ReactElement) => { + this.rootComponent = component; + }; + + public hasValidLicense() { + if (!this.xpackInfo) { + return false; + } + return this.xpackInfo.get('features.beats_management.licenseValid', false); + } + + public licenseExpired() { + if (!this.xpackInfo) { + return false; + } + return this.xpackInfo.get('features.beats_management.licenseExpired', false); + } + + public securityEnabled() { + if (!this.xpackInfo) { + return false; + } + + return this.xpackInfo.get('features.beats_management.securityEnabled', false); + } + + public getDefaultUserRoles() { + if (!this.xpackInfo) { + return []; + } + + return this.xpackInfo.get('features.beats_management.defaultUserRoles'); + } + + public getCurrentUser() { + try { + return this.shieldUser; + } catch (e) { + return null; + } + } + + public registerManagementSection(pluginId: string, displayName: string, basePath: string) { + this.register(this.uiModule); + + this.hookAngular(() => { + if (this.hasValidLicense()) { + const registerSection = () => + this.management.register(pluginId, { + display: 'Beats', // TODO these need to be config options not hard coded in the adapter + icon: 'logoBeats', + order: 30, + }); + const getSection = () => this.management.getSection(pluginId); + const section = this.management.hasItem(pluginId) ? getSection() : registerSection(); + + section.register(pluginId, { + visible: true, + display: displayName, + order: 30, + url: `#${basePath}`, + }); + } + }); + } + + private manageAngularLifecycle($scope: any, $route: any, elem: any) { + const lastRoute = $route.current; + const deregister = $scope.$on('$locationChangeSuccess', () => { + const currentRoute = $route.current; + // if templates are the same we are on the same route + if (lastRoute.$$route.template === currentRoute.$$route.template) { + // this prevents angular from destroying scope + $route.current = lastRoute; + } + }); + $scope.$on('$destroy', () => { + if (deregister) { + deregister(); + } + // manually unmount component when scope is destroyed + if (elem) { + ReactDOM.unmountComponentAtNode(elem); + } + }); + } + + private hookAngular(done: () => any) { + this.chrome.dangerouslyGetActiveInjector().then(async ($injector: any) => { + const Private = $injector.get('Private'); + const xpackInfo = Private(this.XPackInfoProvider); + + this.xpackInfo = xpackInfo; + if (this.securityEnabled()) { + try { + this.shieldUser = await $injector.get('ShieldUser').getCurrent().$promise; + } catch (e) { + // errors when security disabled, even though we check first because angular + } + } + + done(); + }); + } + + private register = (adapterModule: IModule) => { + const adapter = this; + this.routes.when(`/management/beats_management/:view?/:id?/:other?/:other2?`, { + template: + '
      ', + controllerAs: 'beatsManagement', + // tslint:disable-next-line: max-classes-per-file + controller: class BeatsManagementController { + constructor($scope: any, $route: any) { + $scope.$$postDigest(() => { + const elem = document.getElementById('beatsReactRoot'); + ReactDOM.render(adapter.rootComponent as React.ReactElement, elem); + adapter.manageAngularLifecycle($scope, $route, elem); + }); + $scope.$onInit = () => { + $scope.topNavMenu = []; + }; + } + }, + }); + }; +} + +// tslint:disable-next-line: max-classes-per-file +class KibanaAdapterServiceProvider { + public serviceRefs: KibanaAdapterServiceRefs | null = null; + public bufferedCalls: Array> = []; + + public $get($rootScope: IScope, config: KibanaUIConfig) { + this.serviceRefs = { + config, + rootScope: $rootScope, + }; + + this.applyBufferedCalls(this.bufferedCalls); + + return this; + } + + public callOrBuffer(serviceCall: (serviceRefs: KibanaAdapterServiceRefs) => void) { + if (this.serviceRefs !== null) { + this.applyBufferedCalls([serviceCall]); + } else { + this.bufferedCalls.push(serviceCall); + } + } + + public applyBufferedCalls( + bufferedCalls: Array> + ) { + if (!this.serviceRefs) { + return; + } + + this.serviceRefs.rootScope.$apply(() => { + bufferedCalls.forEach(serviceCall => { + if (!this.serviceRefs) { + return; + } + return serviceCall(this.serviceRefs); + }); + }); + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/rest_api/adapter_types.ts b/x-pack/plugins/beats_management/public/lib/adapters/rest_api/adapter_types.ts new file mode 100644 index 0000000000000..e9d9bf551f739 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/rest_api/adapter_types.ts @@ -0,0 +1,13 @@ +/* + * 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 { FlatObject } from '../../../app'; + +export interface RestAPIAdapter { + get(url: string, query?: FlatObject): Promise; + post(url: string, body?: { [key: string]: any }): Promise; + delete(url: string): Promise; + put(url: string, body?: any): Promise; +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/rest_api/axios_rest_api_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/rest_api/axios_rest_api_adapter.ts new file mode 100644 index 0000000000000..690843bbb1cf8 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/rest_api/axios_rest_api_adapter.ts @@ -0,0 +1,78 @@ +/* + * 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 axios, { AxiosInstance } from 'axios'; +import { FlatObject } from '../../../app'; +import { RestAPIAdapter } from './adapter_types'; +let globalAPI: AxiosInstance; + +export class AxiosRestAPIAdapter implements RestAPIAdapter { + constructor(private readonly xsrfToken: string, private readonly basePath: string) {} + + public async get(url: string, query?: FlatObject): Promise { + return await this.REST.get(url, query ? { params: query } : {}).then(resp => resp.data); + } + + public async post( + url: string, + body?: { [key: string]: any } + ): Promise { + return await this.REST.post(url, body).then(resp => resp.data); + } + + public async delete(url: string): Promise { + return await this.REST.delete(url).then(resp => resp.data); + } + + public async put(url: string, body?: any): Promise { + return await this.REST.put(url, body).then(resp => resp.data); + } + + private get REST() { + if (globalAPI) { + return globalAPI; + } + + globalAPI = axios.create({ + baseURL: this.basePath, + withCredentials: true, + responseType: 'json', + timeout: 30000, + headers: { + Accept: 'application/json', + credentials: 'same-origin', + 'Content-Type': 'application/json', + 'kbn-version': this.xsrfToken, + 'kbn-xsrf': this.xsrfToken, + }, + }); + // Add a request interceptor + globalAPI.interceptors.request.use( + config => { + // Do something before request is sent + return config; + }, + error => { + // Do something with request error + return Promise.reject(error); + } + ); + + // Add a response interceptor + globalAPI.interceptors.response.use( + response => { + // Do something with response data + return response; + }, + error => { + // Do something with response error + return Promise.reject(error); + } + ); + + return globalAPI; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/tags/adapter_types.ts b/x-pack/plugins/beats_management/public/lib/adapters/tags/adapter_types.ts new file mode 100644 index 0000000000000..395c01f259dc3 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/tags/adapter_types.ts @@ -0,0 +1,13 @@ +/* + * 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 { BeatTag } from '../../../../common/domain_types'; + +export interface CMTagsAdapter { + getTagsWithIds(tagIds: string[]): Promise; + delete(tagIds: string[]): Promise; + getAll(): Promise; + upsertTag(tag: BeatTag): Promise; +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/tags/memory_tags_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/tags/memory_tags_adapter.ts new file mode 100644 index 0000000000000..86daefb47c653 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/tags/memory_tags_adapter.ts @@ -0,0 +1,39 @@ +/* + * 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 { BeatTag } from '../../../../common/domain_types'; +import { CMTagsAdapter } from './adapter_types'; + +export class MemoryTagsAdapter implements CMTagsAdapter { + private tagsDB: BeatTag[] = []; + + constructor(tagsDB: BeatTag[]) { + this.tagsDB = tagsDB; + } + + public async getTagsWithIds(tagIds: string[]) { + return this.tagsDB.filter(tag => tagIds.includes(tag.id)); + } + + public async delete(tagIds: string[]) { + this.tagsDB = this.tagsDB.filter(tag => !tagIds.includes(tag.id)); + return true; + } + + public async getAll() { + return this.tagsDB; + } + + public async upsertTag(tag: BeatTag) { + const existingTagIndex = this.tagsDB.findIndex(t => t.id === tag.id); + if (existingTagIndex !== -1) { + this.tagsDB[existingTagIndex] = tag; + } else { + this.tagsDB.push(tag); + } + return tag; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/tags/rest_tags_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/tags/rest_tags_adapter.ts new file mode 100644 index 0000000000000..e49d4a9109984 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/tags/rest_tags_adapter.ts @@ -0,0 +1,36 @@ +/* + * 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 { BeatTag } from '../../../../common/domain_types'; +import { RestAPIAdapter } from '../rest_api/adapter_types'; +import { CMTagsAdapter } from './adapter_types'; + +export class RestTagsAdapter implements CMTagsAdapter { + constructor(private readonly REST: RestAPIAdapter) {} + + public async getTagsWithIds(tagIds: string[]): Promise { + const tags = await this.REST.get(`/api/beats/tags/${tagIds.join(',')}`); + return tags; + } + + public async getAll(): Promise { + return await this.REST.get(`/api/beats/tags`); + } + + public async delete(tagIds: string[]): Promise { + return (await this.REST.delete<{ success: boolean }>(`/api/beats/tags/${tagIds.join(',')}`)) + .success; + } + + public async upsertTag(tag: BeatTag): Promise { + const response = await this.REST.put<{ success: boolean }>(`/api/beats/tag/${tag.id}`, { + color: tag.color, + configuration_blocks: tag.configuration_blocks, + }); + + return response.success ? tag : null; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/tokens/adapter_types.ts b/x-pack/plugins/beats_management/public/lib/adapters/tokens/adapter_types.ts new file mode 100644 index 0000000000000..55b7e6f94fe04 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/tokens/adapter_types.ts @@ -0,0 +1,9 @@ +/* + * 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 interface CMTokensAdapter { + createEnrollmentToken(): Promise; +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/tokens/memory_tokens_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/tokens/memory_tokens_adapter.ts new file mode 100644 index 0000000000000..f329e491c9ad0 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/tokens/memory_tokens_adapter.ts @@ -0,0 +1,13 @@ +/* + * 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 { CMTokensAdapter } from './adapter_types'; + +export class MemoryTokensAdapter implements CMTokensAdapter { + public async createEnrollmentToken(): Promise { + return '2jnwkrhkwuehriauhweair'; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/adapters/tokens/rest_tokens_adapter.ts b/x-pack/plugins/beats_management/public/lib/adapters/tokens/rest_tokens_adapter.ts new file mode 100644 index 0000000000000..778bcbf5d8d5c --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/adapters/tokens/rest_tokens_adapter.ts @@ -0,0 +1,18 @@ +/* + * 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 { RestAPIAdapter } from '../rest_api/adapter_types'; +import { CMTokensAdapter } from './adapter_types'; + +export class RestTokensAdapter implements CMTokensAdapter { + constructor(private readonly REST: RestAPIAdapter) {} + + public async createEnrollmentToken(): Promise { + const tokens = (await this.REST.post<{ tokens: string[] }>('/api/beats/enrollment_tokens')) + .tokens; + return tokens[0]; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/beats.ts b/x-pack/plugins/beats_management/public/lib/beats.ts new file mode 100644 index 0000000000000..f676f4611be63 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/beats.ts @@ -0,0 +1,70 @@ +/* + * 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 { flatten } from 'lodash'; +import { CMBeat, CMPopulatedBeat } from './../../common/domain_types'; +import { + BeatsRemovalReturn, + BeatsTagAssignment, + CMAssignmentReturn, + CMBeatsAdapter, +} from './adapters/beats/adapter_types'; +import { FrontendDomainLibs } from './lib'; + +export class BeatsLib { + constructor( + private readonly adapter: CMBeatsAdapter, + private readonly libs: { tags: FrontendDomainLibs['tags'] } + ) {} + + public async get(id: string): Promise { + const beat = await this.adapter.get(id); + return beat ? (await this.mergeInTags([beat]))[0] : null; + } + + public async getBeatWithToken(enrollmentToken: string): Promise { + const beat = await this.adapter.getBeatWithToken(enrollmentToken); + return beat; + } + + public async getBeatsWithTag(tagId: string): Promise { + const beats = await this.adapter.getBeatsWithTag(tagId); + return await this.mergeInTags(beats); + } + + public async getAll(ESQuery?: any): Promise { + const beats = await this.adapter.getAll(ESQuery); + return await this.mergeInTags(beats); + } + + public async update(id: string, beatData: Partial): Promise { + return await this.adapter.update(id, beatData); + } + + public async removeTagsFromBeats(removals: BeatsTagAssignment[]): Promise { + return await this.adapter.removeTagsFromBeats(removals); + } + + public async assignTagsToBeats(assignments: BeatsTagAssignment[]): Promise { + return await this.adapter.assignTagsToBeats(assignments); + } + + private async mergeInTags(beats: CMBeat[]): Promise { + const tagIds = flatten(beats.map(b => b.tags || [])); + const tags = await this.libs.tags.getTagsWithIds(tagIds); + + // TODO the filter should not be needed, if the data gets into a bad state, we should error + // and inform the user they need to delte the tag, or else we should auto delete it + const mergedBeats: CMPopulatedBeat[] = beats.map( + b => + ({ + ...b, + full_tags: (b.tags || []).map(tagId => tags.find(t => t.id === tagId)).filter(t => t), + } as CMPopulatedBeat) + ); + return mergedBeats; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/compose/kibana.ts b/x-pack/plugins/beats_management/public/lib/compose/kibana.ts new file mode 100644 index 0000000000000..659b3acf9dba7 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/compose/kibana.ts @@ -0,0 +1,64 @@ +/* + * 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. + */ + +// @ts-ignore +import { XPackInfoProvider } from 'plugins/xpack_main/services/xpack_info'; +// @ts-ignore +import 'ui/autoload/all'; +// @ts-ignore: path dynamic for kibana +import chrome from 'ui/chrome'; +// @ts-ignore: path dynamic for kibana +import { management } from 'ui/management'; +// @ts-ignore: path dynamic for kibana +import { uiModules } from 'ui/modules'; +// @ts-ignore: path dynamic for kibana +import routes from 'ui/routes'; + +import { INDEX_NAMES } from '../../../common/constants/index_names'; +import { supportedConfigs } from '../../config_schemas'; +import { RestBeatsAdapter } from '../adapters/beats/rest_beats_adapter'; +import { RestElasticsearchAdapter } from '../adapters/elasticsearch/rest'; +import { KibanaFrameworkAdapter } from '../adapters/framework/kibana_framework_adapter'; +import { AxiosRestAPIAdapter } from '../adapters/rest_api/axios_rest_api_adapter'; +import { RestTagsAdapter } from '../adapters/tags/rest_tags_adapter'; +import { RestTokensAdapter } from '../adapters/tokens/rest_tokens_adapter'; +import { BeatsLib } from '../beats'; +import { ElasticsearchLib } from '../elasticsearch'; +import { FrontendDomainLibs, FrontendLibs } from '../lib'; +import { TagsLib } from '../tags'; + +export function compose(): FrontendLibs { + const api = new AxiosRestAPIAdapter(chrome.getXsrfToken(), chrome.getBasePath()); + const esAdapter = new RestElasticsearchAdapter(api, INDEX_NAMES.BEATS); + + const tags = new TagsLib(new RestTagsAdapter(api), supportedConfigs); + const tokens = new RestTokensAdapter(api); + const beats = new BeatsLib(new RestBeatsAdapter(api), { + tags, + }); + + const domainLibs: FrontendDomainLibs = { + tags, + tokens, + beats, + }; + const pluginUIModule = uiModules.get('app/beats_management'); + + const framework = new KibanaFrameworkAdapter( + pluginUIModule, + management, + routes, + chrome, + XPackInfoProvider + ); + + const libs: FrontendLibs = { + framework, + elasticsearch: new ElasticsearchLib(esAdapter), + ...domainLibs, + }; + return libs; +} diff --git a/x-pack/plugins/beats_management/public/lib/compose/memory.ts b/x-pack/plugins/beats_management/public/lib/compose/memory.ts new file mode 100644 index 0000000000000..fd56de9a77607 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/compose/memory.ts @@ -0,0 +1,57 @@ +/* + * 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 'ui/autoload/all'; +// @ts-ignore: path dynamic for kibana +import { management } from 'ui/management'; +// @ts-ignore: path dynamic for kibana +import { uiModules } from 'ui/modules'; +// @ts-ignore: path dynamic for kibana +import routes from 'ui/routes'; +// @ts-ignore: path dynamic for kibana +import { MemoryBeatsAdapter } from '../adapters/beats/memory_beats_adapter'; +import { KibanaFrameworkAdapter } from '../adapters/framework/kibana_framework_adapter'; +import { MemoryTagsAdapter } from '../adapters/tags/memory_tags_adapter'; +import { MemoryTokensAdapter } from '../adapters/tokens/memory_tokens_adapter'; + +import { BeatsLib } from '../beats'; +import { FrontendDomainLibs, FrontendLibs } from '../lib'; + +import { AutocompleteSuggestion } from 'ui/autocomplete_providers'; +import { supportedConfigs } from '../../config_schemas'; +import { TagsLib } from '../tags'; +import { MemoryElasticsearchAdapter } from './../adapters/elasticsearch/memory'; +import { ElasticsearchLib } from './../elasticsearch'; + +export function compose( + mockIsKueryValid: (kuery: string) => boolean, + mockKueryToEsQuery: (kuery: string) => string, + suggestions: AutocompleteSuggestion[] +): FrontendLibs { + const esAdapter = new MemoryElasticsearchAdapter( + mockIsKueryValid, + mockKueryToEsQuery, + suggestions + ); + const tags = new TagsLib(new MemoryTagsAdapter([]), supportedConfigs); + const tokens = new MemoryTokensAdapter(); + const beats = new BeatsLib(new MemoryBeatsAdapter([]), { tags }); + + const domainLibs: FrontendDomainLibs = { + tags, + tokens, + beats, + }; + const pluginUIModule = uiModules.get('app/beats_management'); + + const framework = new KibanaFrameworkAdapter(pluginUIModule, management, routes, null, null); + const libs: FrontendLibs = { + ...domainLibs, + elasticsearch: new ElasticsearchLib(esAdapter), + framework, + }; + return libs; +} diff --git a/x-pack/plugins/beats_management/public/lib/elasticsearch.ts b/x-pack/plugins/beats_management/public/lib/elasticsearch.ts new file mode 100644 index 0000000000000..7ea32a2eb9467 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/elasticsearch.ts @@ -0,0 +1,69 @@ +/* + * 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 { AutocompleteSuggestion } from 'ui/autocomplete_providers'; +import { ElasticsearchAdapter } from './adapters/elasticsearch/adapter_types'; + +interface HiddenFields { + op: 'is' | 'startsWith' | 'withoutPrefix'; + value: string; +} + +export class ElasticsearchLib { + private readonly hiddenFields: HiddenFields[] = [ + { op: 'startsWith', value: 'enrollment_token' }, + { op: 'is', value: 'beat.active' }, + { op: 'is', value: 'beat.enrollment_token' }, + { op: 'is', value: 'beat.access_token' }, + { op: 'is', value: 'beat.ephemeral_id' }, + { op: 'is', value: 'beat.verified_on' }, + ]; + + constructor(private readonly adapter: ElasticsearchAdapter) {} + + public isKueryValid(kuery: string): boolean { + return this.adapter.isKueryValid(kuery); + } + public async convertKueryToEsQuery(kuery: string): Promise { + return await this.adapter.convertKueryToEsQuery(kuery); + } + + public async getSuggestions( + kuery: string, + selectionStart: any, + fieldPrefix?: string + ): Promise { + const suggestions = await this.adapter.getSuggestions(kuery, selectionStart); + + const filteredSuggestions = suggestions.filter(suggestion => { + const hiddenFieldsCheck = this.hiddenFields; + + if (fieldPrefix) { + hiddenFieldsCheck.push({ + op: 'withoutPrefix', + value: `${fieldPrefix}.`, + }); + } + + return hiddenFieldsCheck.reduce((isvalid, field) => { + if (!isvalid) { + return false; + } + + switch (field.op) { + case 'startsWith': + return !suggestion.text.startsWith(field.value); + case 'is': + return suggestion.text.trim() !== field.value; + case 'withoutPrefix': + return suggestion.text.startsWith(field.value); + } + }, true); + }); + + return filteredSuggestions; + } +} diff --git a/x-pack/plugins/beats_management/public/lib/lib.ts b/x-pack/plugins/beats_management/public/lib/lib.ts new file mode 100644 index 0000000000000..23e4da5c6336e --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/lib.ts @@ -0,0 +1,101 @@ +/* + * 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 { IModule, IScope } from 'angular'; +import { AxiosRequestConfig } from 'axios'; +import React from 'react'; +import { CMTokensAdapter } from './adapters/tokens/adapter_types'; +import { BeatsLib } from './beats'; +import { ElasticsearchLib } from './elasticsearch'; +import { TagsLib } from './tags'; + +export interface FrontendDomainLibs { + beats: BeatsLib; + tags: TagsLib; + tokens: CMTokensAdapter; +} + +export interface FrontendLibs extends FrontendDomainLibs { + elasticsearch: ElasticsearchLib; + framework: FrameworkAdapter; +} + +export interface YamlConfigSchema { + id: string; + ui: { + label: string; + type: 'input' | 'multi-input' | 'select' | 'code' | 'password'; + helpText?: string; + placeholder?: string; + }; + options?: Array<{ value: string; text: string }>; + validations?: 'isHosts' | 'isString' | 'isPeriod' | 'isPath' | 'isPaths' | 'isYaml'; + error: string; + defaultValue?: string; + required?: boolean; + parseValidResult?: (value: any) => any; +} + +export interface FrameworkAdapter { + // Instance vars + appState?: object; + kbnVersion?: string; + baseURLPath: string; + registerManagementSection(pluginId: string, displayName: string, basePath: string): void; + getDefaultUserRoles(): string[]; + // Methods + getCurrentUser(): { + email: string | null; + enabled: boolean; + full_name: string | null; + metadata: { _reserved: true }; + roles: string[]; + scope: string[]; + username: string; + }; + licenseExpired(): boolean; + securityEnabled(): boolean; + hasValidLicense(): boolean; + setUISettings(key: string, value: any): void; + render(component: React.ReactElement): void; +} + +export interface FramworkAdapterConstructable { + new (uiModule: IModule): FrameworkAdapter; +} + +// TODO: replace AxiosRequestConfig with something more defined +export type RequestConfig = AxiosRequestConfig; + +export interface ApiAdapter { + kbnVersion: string; + + get(url: string, config?: RequestConfig | undefined): Promise; + post(url: string, data?: any, config?: AxiosRequestConfig | undefined): Promise; + delete(url: string, config?: RequestConfig | undefined): Promise; + put(url: string, data?: any, config?: RequestConfig | undefined): Promise; +} + +export interface UiKibanaAdapterScope extends IScope { + breadcrumbs: any[]; + topNavMenu: any[]; +} + +export interface KibanaUIConfig { + get(key: string): any; + set(key: string, value: any): Promise; +} + +export interface KibanaAdapterServiceRefs { + config: KibanaUIConfig; + rootScope: IScope; +} + +export type BufferedKibanaServiceCall = (serviceRefs: ServiceRefs) => void; + +export interface Chrome { + setRootTemplate(template: string): void; +} diff --git a/x-pack/plugins/beats_management/public/lib/tags.ts b/x-pack/plugins/beats_management/public/lib/tags.ts new file mode 100644 index 0000000000000..86b21bca24310 --- /dev/null +++ b/x-pack/plugins/beats_management/public/lib/tags.ts @@ -0,0 +1,156 @@ +/* + * 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 yaml from 'js-yaml'; +import { get } from 'lodash'; +import { omit, set } from 'lodash'; +import _ from 'lodash'; +import { BeatTag, ConfigurationBlock } from '../../common/domain_types'; +import { ConfigContent } from '../../common/domain_types'; +import { CMTagsAdapter } from './adapters/tags/adapter_types'; + +export class TagsLib { + constructor(private readonly adapter: CMTagsAdapter, private readonly tagConfigs: any) {} + + public async getTagsWithIds(tagIds: string[]): Promise { + return this.jsonConfigToUserYaml(await this.adapter.getTagsWithIds(tagIds)); + } + public async delete(tagIds: string[]): Promise { + return await this.adapter.delete(tagIds); + } + public async getAll(): Promise { + return this.jsonConfigToUserYaml(await this.adapter.getAll()); + } + public async upsertTag(tag: BeatTag): Promise { + tag.id = tag.id.replace(' ', '-'); + return await this.adapter.upsertTag(this.userConfigsToJson([tag])[0]); + } + + public jsonConfigToUserYaml(tags: BeatTag[]): BeatTag[] { + return tags.map(tag => { + const transformedTag: BeatTag = tag as any; + // configuration_blocks yaml, JS cant read YAML so we parse it into JS, + // because beats flattens all fields, and we need more structure. + // we take tagConfigs, grab the config that applies here, render what we can into + // an object, and the rest we assume to be the yaml string that goes + // into the yaml editor... + // NOTE: The perk of this, is that as we support more features via controls + // vs yaml editing, it should "just work", and things that were in YAML + // will now be in the UI forms... + transformedTag.configuration_blocks = (tag.configuration_blocks || []).map(block => { + const { type, description, configs } = block; + const activeConfig = configs[0]; + const thisConfig = this.tagConfigs.find((conf: any) => conf.value === type).config; + + const knownConfigIds = thisConfig.map((config: any) => config.id); + const hydratedIds = this.hydrateTokenArray(knownConfigIds, activeConfig); + const convertedConfig = knownConfigIds.reduce( + (blockObj: any, id: keyof ConfigContent, index: number) => { + const unhydratedKey = hydratedIds[index]; + set( + blockObj, + id, + id === 'other' + ? yaml.dump(omit(activeConfig, knownConfigIds)) + : get(activeConfig, unhydratedKey) + ); + + return blockObj; + }, + {} + ); + + // Workaround to empty object passed into dump resulting in this odd output + if (convertedConfig.other && convertedConfig.other === '{}\n') { + convertedConfig.other = ''; + } + + return { + type, + description, + configs: [convertedConfig], + } as ConfigurationBlock; + }); + return transformedTag; + }); + } + + public userConfigsToJson(tags: BeatTag[]): BeatTag[] { + return tags.map(tag => { + const transformedTag: BeatTag = tag as any; + // configurations is the JS representation of the config yaml, + // so here we take that JS and convert it into a YAML string. + // we do so while also flattening "other" into the flat yaml beats expect + transformedTag.configuration_blocks = (tag.configuration_blocks || []).map(block => { + const { type, description, configs } = block; + const activeConfig = configs[0]; + const thisConfig = this.tagConfigs.find((conf: any) => conf.value === type).config; + const knownConfigIds = thisConfig + .map((config: any) => config.id) + .filter((id: string) => id !== 'other'); + + const picked = this.pickDeep(activeConfig, knownConfigIds); + + const convertedConfig = { + ...yaml.safeLoad(activeConfig.other || '{}'), + ...picked, + }; + + return { + type, + description, + configs: [this.hydrateTokenizedObject(convertedConfig)], + } as ConfigurationBlock; + }); + + return transformedTag; + }); + } + + /** + * This function takes an object that contains keys in the pattern of {{keyname}}, and replaces the key with the value of a matching key. + * Example input: + * { foo: 'here', '{{foo}}': 'there' } + * Would return: + * { foo: 'here', here: 'there' } + */ + private hydrateTokenizedObject(model: any) { + return JSON.parse(JSON.stringify(model), (key, value) => { + return _.isObject(value) && !_.isArray(value) + ? _.mapKeys(value, (v, k: string) => { + return k.replace(/{{[^{}]+}}/g, (token: string) => { + return model[token.replace(/[{}]+/g, '')]; + }); + }) + : value; + }); + } + + /** + * This function takes an array of strings and object and replaces strings in the array patching the patten of {{key}} with the matching value from the object. + * Example input: + * [ '{{key}}', 'other' ], and { key: 'here', foo: 'there' } + * Would return: + * [ 'here', 'other' ] + */ + private hydrateTokenArray(keys: string[], data: any) { + return keys.map(key => { + return key.replace(/{{[^{}]+}}/g, (token: string) => { + return data[token.replace(/[{}]+/g, '')]; + }); + }); + } + + private pickDeep(obj: any, keys: string[]) { + const copy = {}; + _.forEach(keys, key => { + if (_.has(obj, key)) { + const val = _.get(obj, key); + _.set(copy, key, val); + } + }); + return copy; + } +} diff --git a/x-pack/plugins/beats_management/public/pages/404.tsx b/x-pack/plugins/beats_management/public/pages/404.tsx new file mode 100644 index 0000000000000..956bf90e84927 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/404.tsx @@ -0,0 +1,13 @@ +/* + * 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 React from 'react'; + +export class NotFoundPage extends React.PureComponent { + public render() { + return
      No content found
      ; + } +} diff --git a/x-pack/plugins/beats_management/public/pages/beat/action_section.tsx b/x-pack/plugins/beats_management/public/pages/beat/action_section.tsx new file mode 100644 index 0000000000000..0ab8181794628 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/beat/action_section.tsx @@ -0,0 +1,58 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; +import { first, sortByOrder } from 'lodash'; +import moment from 'moment'; +import React from 'react'; +import { CMPopulatedBeat } from '../../../common/domain_types'; + +interface BeatDetailsActionSectionProps { + beat: CMPopulatedBeat | undefined; +} + +export const BeatDetailsActionSection = ({ beat }: BeatDetailsActionSectionProps) => ( +
      + {beat ? ( + + + + Type:  + {beat.type}. + + + + + Version:  + {beat.version}. + + + {/* TODO: We need a populated field before we can run this code + + + Uptime: 12min. + + */} + {beat.full_tags && + beat.full_tags.length > 0 && ( + + + Last Config Update:{' '} + + {moment( + first(sortByOrder(beat.full_tags, 'last_updated')).last_updated + ).fromNow()} + + . + + + )} + + ) : ( +
      Beat not found
      + )} +
      +); diff --git a/x-pack/plugins/beats_management/public/pages/beat/activity.tsx b/x-pack/plugins/beats_management/public/pages/beat/activity.tsx new file mode 100644 index 0000000000000..b2d40ad00427f --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/beat/activity.tsx @@ -0,0 +1,14 @@ +/* + * 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 React from 'react'; +import { FrontendLibs } from '../../lib/lib'; + +interface BeatActivityPageProps { + libs: FrontendLibs; +} + +export const BeatActivityPage = (props: BeatActivityPageProps) =>
      Beat Activity View
      ; diff --git a/x-pack/plugins/beats_management/public/pages/beat/detail.tsx b/x-pack/plugins/beats_management/public/pages/beat/detail.tsx new file mode 100644 index 0000000000000..6451f48b156dd --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/beat/detail.tsx @@ -0,0 +1,134 @@ +/* + * 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 { + EuiFlexGroup, + EuiFlexItem, + // @ts-ignore EuiInMemoryTable typings not yet available + EuiInMemoryTable, + EuiLink, + EuiText, + EuiTitle, +} from '@elastic/eui'; +import { flatten, get } from 'lodash'; +import React from 'react'; +import { TABLE_CONFIG } from '../../../common/constants'; +import { BeatTag, CMPopulatedBeat, ConfigurationBlock } from '../../../common/domain_types'; +import { ConnectedLink } from '../../components/connected_link'; +import { TagBadge } from '../../components/tag'; +import { ConfigView } from '../../components/tag/config_view/index'; +import { supportedConfigs } from '../../config_schemas'; + +interface PageProps { + beat: CMPopulatedBeat | undefined; +} + +interface PageState { + selectedConfig: ConfigurationBlock | null; +} + +export class BeatDetailPage extends React.PureComponent { + constructor(props: PageProps) { + super(props); + + this.state = { + selectedConfig: null, + }; + } + public render() { + const props = this.props; + const { beat } = props; + if (!beat) { + return
      Beat not found
      ; + } + const configurationBlocks = flatten( + beat.full_tags.map((tag: BeatTag) => { + return tag.configuration_blocks.map(configuration => ({ + // @ts-ignore one of the types on ConfigurationBlock doesn't define a "module" property + module: configuration.configs[0].module || null, + tagId: tag.id, + tagColor: tag.color, + ...beat, + ...configuration, + displayValue: get( + supportedConfigs.find(config => config.value === configuration.type), + 'text', + null + ), + })); + }) + ); + + const columns = [ + { + field: 'displayValue', + name: 'Type', + sortable: true, + render: (value: string | null, configuration: any) => ( + { + this.setState({ + selectedConfig: configuration, + }); + }} + > + {value || configuration.type} + + ), + }, + { + field: 'module', + name: 'Module', + sortable: true, + }, + { + field: 'description', + name: 'Description', + sortable: true, + }, + { + field: 'tagId', + name: 'Tag', + render: (id: string, block: any) => ( + + + + ), + sortable: true, + }, + ]; + return ( + + + + +

      Configurations

      +
      + +

      + You can have multiple configurations applied to an individual tag. These + configurations can repeat or mix types as necessary. For example, you may utilize + three metricbeat configurations alongside one input and filebeat configuration. +

      +
      +
      + + + +
      + {this.state.selectedConfig && ( + this.setState({ selectedConfig: null })} + /> + )} +
      + ); + } +} diff --git a/x-pack/plugins/beats_management/public/pages/beat/index.tsx b/x-pack/plugins/beats_management/public/pages/beat/index.tsx new file mode 100644 index 0000000000000..0b61d8da2fcce --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/beat/index.tsx @@ -0,0 +1,157 @@ +/* + * 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 { + EuiSpacer, + // @ts-ignore types for EuiTab not currently available + EuiTab, + // @ts-ignore types for EuiTabs not currently available + EuiTabs, +} from '@elastic/eui'; +import React from 'react'; +import { Route, Switch } from 'react-router-dom'; +import { CMPopulatedBeat } from '../../../common/domain_types'; +import { AppURLState } from '../../app'; +import { PrimaryLayout } from '../../components/layouts/primary'; +import { URLStateProps, withUrlState } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; +import { BeatDetailsActionSection } from './action_section'; +import { BeatActivityPage } from './activity'; +import { BeatDetailPage } from './detail'; +import { BeatTagsPage } from './tags'; + +interface Match { + params: any; +} + +interface BeatDetailsPageProps extends URLStateProps { + location: any; + history: any; + libs: FrontendLibs; + match: Match; +} + +interface BeatDetailsPageState { + beat: CMPopulatedBeat | undefined; + beatId: string; + isLoading: boolean; +} + +class BeatDetailsPageComponent extends React.PureComponent< + BeatDetailsPageProps, + BeatDetailsPageState +> { + constructor(props: BeatDetailsPageProps) { + super(props); + + this.state = { + beat: undefined, + beatId: this.props.match.params.beatId, + isLoading: true, + }; + this.loadBeat(); + } + + public onSelectedTabChanged = (id: string) => { + this.props.history.push({ + pathname: id, + search: this.props.location.search, + }); + }; + + public render() { + const { beat } = this.state; + let id; + let name; + + if (beat) { + id = beat.id; + name = beat.name; + } + const title = this.state.isLoading + ? 'Loading' + : `Beat: ${name || 'No name receved from beat'} (id: ${id})`; + + const tabs = [ + { + id: `/beat/${id}`, + name: 'Config', + disabled: false, + }, + // { + // id: `/beat/${id}/activity`, + // name: 'Beat Activity', + // disabled: false, + // }, + { + id: `/beat/${id}/tags`, + name: 'Configuration Tags', + disabled: false, + }, + ]; + + return ( + }> + + {tabs.map((tab, index) => ( + { + this.props.history.push({ + pathname: tab.id, + search: this.props.location.search, + }); + }} + > + {tab.name} + + ))} + + + + } + /> + ( + this.loadBeat()} + {...props} + /> + )} + /> + ( + + )} + /> + + + ); + } + + private async loadBeat() { + const { beatId } = this.props.match.params; + let beat; + try { + beat = await this.props.libs.beats.get(beatId); + if (!beat) { + throw new Error('beat not found'); + } + } catch (e) { + throw new Error(e); + } + this.setState({ beat, isLoading: false }); + } +} +export const BeatDetailsPage = withUrlState(BeatDetailsPageComponent); diff --git a/x-pack/plugins/beats_management/public/pages/beat/tags.tsx b/x-pack/plugins/beats_management/public/pages/beat/tags.tsx new file mode 100644 index 0000000000000..9d0a693e8efa7 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/beat/tags.tsx @@ -0,0 +1,67 @@ +/* + * 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 { EuiGlobalToastList } from '@elastic/eui'; +import React from 'react'; +import { CMPopulatedBeat } from '../../../common/domain_types'; +import { BeatDetailTagsTable, Table } from '../../components/table'; +import { FrontendLibs } from '../../lib/lib'; + +interface BeatTagsPageProps { + beatId: string; + libs: FrontendLibs; + refreshBeat(): void; +} + +interface BeatTagsPageState { + beat: CMPopulatedBeat | null; + notifications: any[]; +} + +export class BeatTagsPage extends React.PureComponent { + private tableRef = React.createRef
      (); + constructor(props: BeatTagsPageProps) { + super(props); + + this.state = { + beat: null, + notifications: [], + }; + } + + public async componentWillMount() { + await this.getBeat(); + } + + public render() { + const { beat } = this.state; + return ( +
      +
      + + this.setState({ notifications: [] })} + toastLifeTimeMs={5000} + /> + + ); + } + + private getBeat = async () => { + try { + const beat = await this.props.libs.beats.get(this.props.beatId); + this.setState({ beat }); + } catch (e) { + throw new Error(e); + } + }; +} diff --git a/x-pack/plugins/beats_management/public/pages/enforce_security.tsx b/x-pack/plugins/beats_management/public/pages/enforce_security.tsx new file mode 100644 index 0000000000000..2b29c01663e11 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/enforce_security.tsx @@ -0,0 +1,13 @@ +/* + * 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 * as React from 'react'; +import { NoDataLayout } from '../components/layouts/no_data'; + +export const EnforceSecurityPage: React.SFC = () => ( + +

      You must enable security in Kibana and Elasticsearch to use Beats central management.

      +
      +); diff --git a/x-pack/plugins/beats_management/public/pages/invalid_license.tsx b/x-pack/plugins/beats_management/public/pages/invalid_license.tsx new file mode 100644 index 0000000000000..c04f5a4acec15 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/invalid_license.tsx @@ -0,0 +1,16 @@ +/* + * 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 * as React from 'react'; +import { NoDataLayout } from '../components/layouts/no_data'; + +export const InvalidLicensePage: React.SFC = () => ( + +

      + Your current license is expired. Enrolled Beats will continue to work, but you need a valid + license to access the Beats Management UI. +

      +
      +); diff --git a/x-pack/plugins/beats_management/public/pages/main/activity.tsx b/x-pack/plugins/beats_management/public/pages/main/activity.tsx new file mode 100644 index 0000000000000..5aa523e3a32f8 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/main/activity.tsx @@ -0,0 +1,13 @@ +/* + * 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 React from 'react'; + +export class ActivityPage extends React.PureComponent { + public render() { + return
      activity logs view
      ; + } +} diff --git a/x-pack/plugins/beats_management/public/pages/main/beats.tsx b/x-pack/plugins/beats_management/public/pages/main/beats.tsx new file mode 100644 index 0000000000000..568b1583012af --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/main/beats.tsx @@ -0,0 +1,313 @@ +/* + * 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 { + EuiButton, + EuiButtonEmpty, + EuiGlobalToastList, + EuiModal, + EuiModalBody, + EuiModalHeader, + EuiModalHeaderTitle, + EuiOverlayMask, +} from '@elastic/eui'; +import { flatten, intersection, sortBy } from 'lodash'; +import moment from 'moment'; +import React from 'react'; +import { RouteComponentProps } from 'react-router'; +import { UNIQUENESS_ENFORCING_TYPES } from 'x-pack/plugins/beats_management/common/constants'; +import { BeatTag, CMPopulatedBeat, ConfigurationBlock } from '../../../common/domain_types'; +import { BeatsTagAssignment } from '../../../server/lib/adapters/beats/adapter_types'; +import { AppURLState } from '../../app'; +import { BeatsTableType, Table } from '../../components/table'; +import { beatsListAssignmentOptions } from '../../components/table/assignment_schema'; +import { AssignmentActionType } from '../../components/table/table'; +import { WithKueryAutocompletion } from '../../containers/with_kuery_autocompletion'; +import { URLStateProps } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; +import { EnrollBeatPage } from './enroll_fragment'; + +interface BeatsPageProps extends URLStateProps { + libs: FrontendLibs; + location: any; + beats: CMPopulatedBeat[]; + loadBeats: () => any; +} + +interface BeatsPageState { + notifications: any[]; + tableRef: any; + tags: any[] | null; +} + +interface ActionAreaProps extends URLStateProps, RouteComponentProps { + libs: FrontendLibs; +} + +export class BeatsPage extends React.PureComponent { + public static ActionArea = (props: ActionAreaProps) => ( + + { + // random, but specific number ensures new tab does not overwrite another _newtab in chrome + // and at the same time not truly random so that many clicks of the link open many tabs at this same URL + window.open( + 'https://www.elastic.co/guide/en/beats/libbeat/current/getting-started.html', + '_newtab35628937456' + ); + }} + > + Learn how to install beats + + { + props.goTo(`/overview/beats/enroll`); + }} + > + Enroll Beats + + + {props.location.pathname === '/overview/beats/enroll' && ( + + { + props.goTo(`/overview/beats`); + }} + style={{ width: '640px' }} + > + + Enroll a new Beat + + + + + + + )} + + ); + constructor(props: BeatsPageProps) { + super(props); + + this.state = { + notifications: [], + tableRef: React.createRef(), + tags: null, + }; + } + + public componentDidUpdate(prevProps: any) { + if (this.props.location !== prevProps.location) { + this.props.loadBeats(); + } + } + public render() { + return ( +
      + + {autocompleteProps => ( +
      this.props.setUrlState({ beatsKBar: value }), // todo + onSubmit: () => null, // todo + value: this.props.urlState.beatsKBar || '', + }} + assignmentOptions={{ + items: this.filterSelectedBeatTags(), + schema: beatsListAssignmentOptions, + type: 'assignment', + actionHandler: this.handleBeatsActions, + }} + items={sortBy(this.props.beats, 'id') || []} + ref={this.state.tableRef} + type={BeatsTableType} + /> + )} + + this.setState({ notifications: [] })} + toastLifeTimeMs={5000} + /> + + ); + } + + private handleBeatsActions = (action: AssignmentActionType, payload: any) => { + switch (action) { + case AssignmentActionType.Assign: + this.handleBeatTagAssignment(payload); + break; + case AssignmentActionType.Edit: + // TODO: navigate to edit page + break; + case AssignmentActionType.Delete: + this.deleteSelected(); + break; + case AssignmentActionType.Reload: + this.loadTags(); + break; + } + + this.props.loadBeats(); + }; + + private handleBeatTagAssignment = async (tagId: string) => { + const selected = this.getSelectedBeats(); + if (selected.some(beat => beat.full_tags.some(({ id }) => id === tagId))) { + await this.removeTagsFromBeats(selected, tagId); + } else { + await this.assignTagsToBeats(selected, tagId); + } + }; + + private deleteSelected = async () => { + const selected = this.getSelectedBeats(); + for (const beat of selected) { + await this.props.libs.beats.update(beat.id, { active: false }); + } + + this.notifyBeatDisenrolled(selected); + + // because the compile code above has a very minor race condition, we wait, + // the max race condition time is really 10ms but doing 100 to be safe + setTimeout(async () => { + await this.props.loadBeats(); + }, 100); + }; + + private loadTags = async () => { + const tags = await this.props.libs.tags.getAll(); + this.setState({ + tags, + }); + }; + + private createBeatTagAssignments = ( + beats: CMPopulatedBeat[], + tagId: string + ): BeatsTagAssignment[] => beats.map(({ id }) => ({ beatId: id, tag: tagId })); + + private removeTagsFromBeats = async (beats: CMPopulatedBeat[], tagId: string) => { + if (beats.length) { + const assignments = this.createBeatTagAssignments(beats, tagId); + await this.props.libs.beats.removeTagsFromBeats(assignments); + await this.refreshData(); + this.notifyUpdatedTagAssociation('remove', assignments, tagId); + } + }; + + private assignTagsToBeats = async (beats: CMPopulatedBeat[], tagId: string) => { + if (beats.length) { + const assignments = this.createBeatTagAssignments(beats, tagId); + await this.props.libs.beats.assignTagsToBeats(assignments); + await this.refreshData(); + this.notifyUpdatedTagAssociation('add', assignments, tagId); + } + }; + + private notifyBeatDisenrolled = async (beats: CMPopulatedBeat[]) => { + let title; + let text; + if (beats.length === 1) { + title = `"${beats[0].name || beats[0].id}" disenrolled`; + text = `Beat with ID "${beats[0].id}" was disenrolled.`; + } else { + title = `${beats.length} beats disenrolled`; + } + + this.setState({ + notifications: this.state.notifications.concat({ + color: 'warning', + id: `disenroll_${new Date()}`, + title, + text, + }), + }); + }; + + private notifyUpdatedTagAssociation = ( + action: 'add' | 'remove', + assignments: BeatsTagAssignment[], + tag: string + ) => { + const actionName = action === 'remove' ? 'Removed' : 'Added'; + const preposition = action === 'remove' ? 'from' : 'to'; + const beatMessage = + assignments.length && assignments.length === 1 + ? `beat "${this.getNameForBeatId(assignments[0].beatId)}"` + : `${assignments.length} beats`; + this.setState({ + notifications: this.state.notifications.concat({ + color: 'success', + id: `tag-${moment.now()}`, + text:

      {`${actionName} tag "${tag}" ${preposition} ${beatMessage}.`}

      , + title: `Tag ${actionName}`, + }), + }); + }; + + private getNameForBeatId = (beatId: string) => { + const beat = this.props.beats.find(b => b.id === beatId); + if (beat) { + return beat.name; + } + return null; + }; + + private refreshData = async () => { + await this.loadTags(); + await this.props.loadBeats(); + this.state.tableRef.current.setSelection(this.getSelectedBeats()); + }; + + private getSelectedBeats = (): CMPopulatedBeat[] => { + const selectedIds = this.state.tableRef.current.state.selection.map((beat: any) => beat.id); + const beats: CMPopulatedBeat[] = []; + selectedIds.forEach((id: any) => { + const beat: CMPopulatedBeat | undefined = this.props.beats.find(b => b.id === id); + if (beat) { + beats.push(beat); + } + }); + return beats; + }; + + private filterSelectedBeatTags = () => { + if (!this.state.tags) { + return []; + } + return this.selectedBeatConfigsRequireUniqueness() + ? this.state.tags.map(this.disableTagForUniquenessEnforcement) + : this.state.tags; + }; + + private configBlocksRequireUniqueness = (configurationBlocks: ConfigurationBlock[]) => + intersection(UNIQUENESS_ENFORCING_TYPES, configurationBlocks.map(block => block.type)) + .length !== 0; + + private disableTagForUniquenessEnforcement = (tag: BeatTag) => + this.configBlocksRequireUniqueness(tag.configuration_blocks) && + // if > 0 beats are associated with the tag, it will result in disassociation, so do not disable it + !this.getSelectedBeats().some(beat => beat.full_tags.some(({ id }) => id === tag.id)) + ? { ...tag, disabled: true } + : tag; + + private selectedBeatConfigsRequireUniqueness = () => + // union beat tags + flatten(this.getSelectedBeats().map(({ full_tags }) => full_tags)) + // map tag list to bool + .map(({ configuration_blocks }) => this.configBlocksRequireUniqueness(configuration_blocks)) + // reduce to result + .reduce((acc, cur) => acc || cur, false); +} diff --git a/x-pack/plugins/beats_management/public/pages/main/create_tag_fragment.tsx b/x-pack/plugins/beats_management/public/pages/main/create_tag_fragment.tsx new file mode 100644 index 0000000000000..8db80bd2ec9be --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/main/create_tag_fragment.tsx @@ -0,0 +1,110 @@ +/* + * 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 { EuiButton, EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, EuiSpacer } from '@elastic/eui'; +import 'brace/mode/yaml'; + +import 'brace/theme/github'; +import React from 'react'; +import { BeatTag } from '../../../common/domain_types'; +import { AppURLState } from '../../app'; +import { TagEdit } from '../../components/tag'; +import { URLStateProps, withUrlState } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; + +interface TagPageProps extends URLStateProps { + libs: FrontendLibs; + match: any; +} + +interface TagPageState { + showFlyout: boolean; + tag: BeatTag; +} + +export class CreateTagFragment extends React.PureComponent { + private mode: 'edit' | 'create' = 'create'; + constructor(props: TagPageProps) { + super(props); + this.state = { + showFlyout: false, + tag: { + id: props.urlState.createdTag ? props.urlState.createdTag : '', + color: '#DD0A73', + configuration_blocks: [], + last_updated: new Date(), + }, + }; + + if (props.urlState.createdTag) { + this.mode = 'edit'; + this.loadTag(); + } + } + + public render() { + return ( + + { + this.props.libs.beats.removeTagsFromBeats( + beatIds.map(id => { + return { beatId: id, tag: this.state.tag.id }; + }) + ); + }} + onTagChange={(field: string, value: string | number) => + this.setState(oldState => ({ + tag: { ...oldState.tag, [field]: value }, + })) + } + attachedBeats={null} + /> + + + + + + + Save & Continue + + + + + ); + } + + private loadTag = async () => { + const tags = await this.props.libs.tags.getTagsWithIds([this.state.tag.id]); + if (tags.length > 0) { + this.setState({ + tag: tags[0], + }); + } + }; + + private saveTag = async () => { + const newTag = await this.props.libs.tags.upsertTag(this.state.tag as BeatTag); + if (!newTag) { + return alert('error saving tag'); + } + this.props.setUrlState({ + createdTag: newTag.id, + }); + this.props.goTo(`/overview/initial/finish`); + }; +} +export const CreateTagPageFragment = withUrlState(CreateTagFragment); diff --git a/x-pack/plugins/beats_management/public/pages/main/enroll_fragment.tsx b/x-pack/plugins/beats_management/public/pages/main/enroll_fragment.tsx new file mode 100644 index 0000000000000..25c34c9720c06 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/main/enroll_fragment.tsx @@ -0,0 +1,279 @@ +/* + * 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 { + // @ts-ignore typings for EuiBasicTable not present in current version + EuiBasicTable, + EuiButton, + EuiFlexGroup, + EuiFlexItem, + EuiLoadingSpinner, + EuiModalBody, + // @ts-ignore + EuiSelect, + EuiTitle, +} from '@elastic/eui'; +import { capitalize } from 'lodash'; +import React from 'react'; +import { RouteComponentProps } from 'react-router'; +import { CMBeat } from '../../../common/domain_types'; +import { AppURLState } from '../../app'; +import { URLStateProps, withUrlState } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; + +interface BeatsProps extends URLStateProps, RouteComponentProps { + match: any; + libs: FrontendLibs; +} +export class EnrollBeat extends React.Component { + private pinging = false; + constructor(props: BeatsProps) { + super(props); + + this.state = { + enrolledBeat: null, + command: 'sudo filebeat', + beatType: 'filebeat', + }; + } + public pingForBeatWithToken = async ( + libs: FrontendLibs, + token: string + ): Promise => { + try { + const beats = await libs.beats.getBeatWithToken(token); + if (!beats) { + throw new Error('no beats'); + } + return beats; + } catch (err) { + if (this.pinging) { + const timeout = (ms: number) => new Promise(res => setTimeout(res, ms)); + await timeout(5000); + return await this.pingForBeatWithToken(libs, token); + } + } + }; + public async componentDidMount() { + if (!this.props.urlState.enrollmentToken) { + const enrollmentToken = await this.props.libs.tokens.createEnrollmentToken(); + this.props.setUrlState({ + enrollmentToken, + }); + } + } + public waitForToken = async (token: string) => { + if (this.pinging) { + return; + } + this.pinging = true; + const enrolledBeat = (await this.pingForBeatWithToken(this.props.libs, token)) as CMBeat; + + this.setState({ + enrolledBeat, + }); + this.pinging = false; + }; + public render() { + if (!this.props.urlState.enrollmentToken) { + return null; + } + if (this.props.urlState.enrollmentToken && !this.state.enrolledBeat) { + this.waitForToken(this.props.urlState.enrollmentToken); + } + const { goTo } = this.props; + + const actions = []; + + switch (this.props.location.pathname) { + case '/overview/initial/beats': + actions.push({ + goTo: '/overview/initial/tag', + name: 'Continue', + }); + break; + case '/overview/beats/enroll': + actions.push({ + goTo: '/overview/beats/enroll', + name: 'Enroll another Beat', + newToken: true, + }); + actions.push({ + goTo: '/overview/beats', + name: 'Done', + clearToken: true, + }); + break; + } + + return ( + + {!this.state.enrolledBeat && ( + + + + + + +

      Beat type:

      +
      +
      +
      + this.setState({ beatType: e.target.value })} + fullWidth={true} + /> +
      +
      + +
      +
      + + + + + +

      Platform:

      +
      +
      +
      + ${ + this.state.beatType + }.exe`, + text: 'Windows', + }, + { + value: `./${this.state.beatType}`, + text: 'MacOS', + }, + ]} + onChange={(e: any) => this.setState({ command: e.target.value })} + fullWidth={true} + /> +
      +
      +
      +
      + {this.state.command && ( + + + + + +

      + On the host where your {capitalize(this.state.beatType)} is installed, + run: +

      +
      +
      +
      +
      +
      + $ {this.state.command} enroll {window.location.protocol} + {`//`} + {window.location.host} + {this.props.libs.framework.baseURLPath + ? this.props.libs.framework.baseURLPath + : ''}{' '} + {this.props.urlState.enrollmentToken} +
      +
      +
      +
      + + + + + +

      Waiting for {capitalize(this.state.beatType)} to enroll...

      +
      +
      +
      +
      +
      +
      + +
      +
      + )} +
      + )} + {this.state.enrolledBeat && ( + + The Beat is now enrolled in central management: +
      +
      +
      + +
      +
      + {actions.map(action => ( + { + if (action.clearToken) { + this.props.setUrlState({ enrollmentToken: '' }); + } + + if (action.newToken) { + const enrollmentToken = await this.props.libs.tokens.createEnrollmentToken(); + + this.props.setUrlState({ enrollmentToken }); + return this.setState({ + enrolledBeat: null, + }); + } + goTo(action.goTo); + }} + > + {action.name} + + ))} +
      + )} +
      + ); + } +} + +export const EnrollBeatPage = withUrlState(EnrollBeat); diff --git a/x-pack/plugins/beats_management/public/pages/main/finish_walkthrough.tsx b/x-pack/plugins/beats_management/public/pages/main/finish_walkthrough.tsx new file mode 100644 index 0000000000000..13293f242e099 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/main/finish_walkthrough.tsx @@ -0,0 +1,101 @@ +/* + * 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 { EuiButton, EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, EuiPageContent } from '@elastic/eui'; +import React from 'react'; +import { RouteComponentProps } from 'react-router'; +import { BeatTag, CMBeat } from '../../../common/domain_types'; +import { BeatsTagAssignment } from '../../../server/lib/adapters/beats/adapter_types'; +import { AppURLState } from '../../app'; +import { URLStateProps, withUrlState } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; +interface PageProps extends URLStateProps, RouteComponentProps { + loadBeats: any; + libs: FrontendLibs; +} +export class FinishWalkthrough extends React.Component { + constructor(props: PageProps) { + super(props); + + this.state = { + assigned: false, + }; + } + + public componentDidMount() { + setTimeout(async () => { + await this.props.loadBeats(); + + const done = await this.assignTagToBeat(); + + if (done) { + this.setState({ + assigned: true, + }); + } + }, 300); + } + + public render() { + const { goTo } = this.props; + + return ( + + + + Your Beat is enrolled. What's next?} + body={ + +

      Start your Beat to check for configuration errors, then click Done.

      +
      + } + actions={ + { + goTo('/overview/beats'); + }} + > + Done + + } + /> +
      +
      +
      + ); + } + + private createBeatTagAssignments = (beats: CMBeat[], tag: BeatTag): BeatsTagAssignment[] => + beats.map(({ id }) => ({ beatId: id, tag: tag.id })); + + private assignTagToBeat = async () => { + if (!this.props.urlState.enrollmentToken) { + return alert('Invalid URL, no enrollmentToken found'); + } + if (!this.props.urlState.createdTag) { + return alert('Invalid URL, no createdTag found'); + } + + const beat = await this.props.libs.beats.getBeatWithToken(this.props.urlState.enrollmentToken); + if (!beat) { + return alert('Error: Beat not enrolled properly'); + } + const tags = await this.props.libs.tags.getTagsWithIds([this.props.urlState.createdTag]); + + const assignments = this.createBeatTagAssignments([beat], tags[0]); + await this.props.libs.beats.assignTagsToBeats(assignments); + this.props.setUrlState({ + createdTag: '', + enrollmentToken: '', + }); + return true; + }; +} + +export const FinishWalkthroughPage = withUrlState(FinishWalkthrough); diff --git a/x-pack/plugins/beats_management/public/pages/main/index.tsx b/x-pack/plugins/beats_management/public/pages/main/index.tsx new file mode 100644 index 0000000000000..e5334a622317d --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/main/index.tsx @@ -0,0 +1,254 @@ +/* + * 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 { + // @ts-ignore + EuiTab, + // @ts-ignore + EuiTabs, +} from '@elastic/eui'; +import { EuiButton } from '@elastic/eui'; +import React from 'react'; +import { Redirect, Route, Switch } from 'react-router-dom'; +import { CMPopulatedBeat } from '../../../common/domain_types'; +import { AppURLState } from '../../app'; +import { ConnectedLink } from '../../components/connected_link'; +import { NoDataLayout } from '../../components/layouts/no_data'; +import { PrimaryLayout } from '../../components/layouts/primary'; +import { WalkthroughLayout } from '../../components/layouts/walkthrough'; +import { RouteWithBreadcrumb } from '../../components/route_with_breadcrumb'; +import { URLStateProps, withUrlState } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; +import { ActivityPage } from './activity'; +import { BeatsPage } from './beats'; +import { CreateTagPageFragment } from './create_tag_fragment'; +import { EnrollBeatPage } from './enroll_fragment'; +import { FinishWalkthroughPage } from './finish_walkthrough'; +import { TagsPage } from './tags'; + +interface MainPagesProps extends URLStateProps { + libs: FrontendLibs; + location: any; +} + +interface MainPagesState { + enrollBeat?: { + enrollmentToken: string; + } | null; + beats: CMPopulatedBeat[]; + unfilteredBeats: CMPopulatedBeat[]; + loadedBeatsAtLeastOnce: boolean; +} + +class MainPagesComponent extends React.PureComponent { + private mounted: boolean = false; + + constructor(props: MainPagesProps) { + super(props); + this.state = { + loadedBeatsAtLeastOnce: false, + beats: [], + unfilteredBeats: [], + }; + } + public onSelectedTabChanged = (id: string) => { + this.props.goTo(id); + }; + + public componentDidMount() { + this.mounted = true; + this.loadBeats(); + } + + public componentWillUnmount() { + this.mounted = false; + } + + public render() { + if ( + this.state.loadedBeatsAtLeastOnce && + this.state.unfilteredBeats.length === 0 && + !this.props.location.pathname.includes('/overview/initial') + ) { + return ; + } + const tabs = [ + { + id: '/overview/beats', + name: 'Enrolled Beats', + disabled: false, + }, + // { + // id: '/overview/activity', + // name: 'Beats Activity', + // disabled: false, + // }, + { + id: '/overview/tags', + name: 'Configuration tags', + disabled: false, + }, + ]; + + const walkthroughSteps = [ + { + id: '/overview/initial/beats', + name: 'Enroll Beat', + disabled: false, + page: EnrollBeatPage, + }, + { + id: '/overview/initial/tag', + name: 'Create tag', + disabled: false, + page: CreateTagPageFragment, + }, + { + id: '/overview/initial/finish', + name: 'finish', + disabled: false, + page: FinishWalkthroughPage, + }, + ]; + + if (this.props.location.pathname === '/overview/initial/help') { + return ( + + + Enroll Beat + + + } + > +

      Manage your configurations in a central location.

      +
      + ); + } + + if (this.props.location.pathname.includes('/overview/initial')) { + return ( + + + {walkthroughSteps.map(step => ( + ( + + )} + /> + ))} + + + ); + } + + const renderedTabs = tabs.map((tab, index) => ( + this.onSelectedTabChanged(tab.id)} + isSelected={tab.id === this.props.location.pathname} + disabled={tab.disabled} + key={index} + > + {tab.name} + + )); + + return ( + + ( + + )} + /> + ( + + )} + /> + + } + > + {renderedTabs} + + ( + + )} + /> + ( + + )} + /> + } + /> + + ); + } + + private loadBeats = async () => { + let query; + if (this.props.urlState.beatsKBar) { + query = await this.props.libs.elasticsearch.convertKueryToEsQuery( + this.props.urlState.beatsKBar + ); + } + + let beats: CMPopulatedBeat[]; + let unfilteredBeats: CMPopulatedBeat[]; + try { + [beats, unfilteredBeats] = await Promise.all([ + this.props.libs.beats.getAll(query), + this.props.libs.beats.getAll(), + ]); + } catch (e) { + beats = []; + unfilteredBeats = []; + } + if (this.mounted) { + this.setState({ + loadedBeatsAtLeastOnce: true, + beats, + unfilteredBeats, + }); + } + }; +} + +export const MainPages = withUrlState(MainPagesComponent); diff --git a/x-pack/plugins/beats_management/public/pages/main/tags.tsx b/x-pack/plugins/beats_management/public/pages/main/tags.tsx new file mode 100644 index 0000000000000..4d51880fbba08 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/main/tags.tsx @@ -0,0 +1,111 @@ +/* + * 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 { EuiButton } from '@elastic/eui'; +import React from 'react'; +import { BeatTag } from '../../../common/domain_types'; +import { AppURLState } from '../../app'; +import { AssignmentActionType, Table, TagsTableType } from '../../components/table'; +import { tagListAssignmentOptions } from '../../components/table/assignment_schema'; +import { WithKueryAutocompletion } from '../../containers/with_kuery_autocompletion'; +import { URLStateProps } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; + +interface TagsPageProps extends URLStateProps { + libs: FrontendLibs; +} + +interface TagsPageState { + tags: BeatTag[]; + tableRef: any; +} + +export class TagsPage extends React.PureComponent { + public static ActionArea = ({ goTo }: TagsPageProps) => ( + { + goTo('/tag/create'); + }} + > + Add Tag + + ); + + constructor(props: TagsPageProps) { + super(props); + + this.state = { + tags: [], + tableRef: React.createRef(), + }; + + this.loadTags(); + } + + public render() { + return ( + + {autocompleteProps => ( +
      this.props.setUrlState({ tagsKBar: value }), + onSubmit: () => null, // todo + value: this.props.urlState.tagsKBar || '', + }} + assignmentOptions={{ + schema: tagListAssignmentOptions, + type: 'primary', + items: [], + actionHandler: this.handleTagsAction, + }} + ref={this.state.tableRef} + items={this.state.tags} + type={TagsTableType} + /> + )} + + ); + } + + private handleTagsAction = async (action: AssignmentActionType, payload: any) => { + switch (action) { + case AssignmentActionType.Delete: + const tags = this.getSelectedTags().map((tag: BeatTag) => tag.id); + const success = await this.props.libs.tags.delete(tags); + if (!success) { + alert( + 'Some of these tags might be assigned to beats. Please ensure tags being removed are not activly assigned' + ); + } else { + this.loadTags(); + if (this.state.tableRef && this.state.tableRef.current) { + this.state.tableRef.current.resetSelection(); + } + } + break; + } + + this.loadTags(); + }; + + private getSelectedTags = () => { + return this.state.tableRef.current ? this.state.tableRef.current.state.selection : []; + }; + + private async loadTags() { + const tags = await this.props.libs.tags.getAll(); + this.setState({ + tags, + }); + } +} diff --git a/x-pack/plugins/beats_management/public/pages/no_access.tsx b/x-pack/plugins/beats_management/public/pages/no_access.tsx new file mode 100644 index 0000000000000..4e04e2c2fad70 --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/no_access.tsx @@ -0,0 +1,16 @@ +/* + * 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 * as React from 'react'; +import { NoDataLayout } from '../components/layouts/no_data'; + +export const NoAccessPage: React.SFC = () => ( + +

      + You are not authorized to access Beats central management. To use Beats central management, + you need the privileges granted by the `beats_admin` role. +

      +
      +); diff --git a/x-pack/plugins/beats_management/public/pages/tag/index.tsx b/x-pack/plugins/beats_management/public/pages/tag/index.tsx new file mode 100644 index 0000000000000..9655efc64ddbf --- /dev/null +++ b/x-pack/plugins/beats_management/public/pages/tag/index.tsx @@ -0,0 +1,144 @@ +/* + * 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 'brace/mode/yaml'; +import 'brace/theme/github'; + +import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; +import * as euiVars from '@elastic/eui/dist/eui_theme_k6_light.json'; +import { sample } from 'lodash'; +import React from 'react'; +import { UNIQUENESS_ENFORCING_TYPES } from 'x-pack/plugins/beats_management/common/constants'; +import { BeatTag, CMPopulatedBeat } from '../../../common/domain_types'; +import { AppURLState } from '../../app'; +import { PrimaryLayout } from '../../components/layouts/primary'; +import { TagEdit } from '../../components/tag'; +import { URLStateProps, withUrlState } from '../../containers/with_url_state'; +import { FrontendLibs } from '../../lib/lib'; +interface TagPageProps extends URLStateProps { + libs: FrontendLibs; + match: any; +} + +interface TagPageState { + showFlyout: boolean; + attachedBeats: CMPopulatedBeat[] | null; + tag: BeatTag; +} +export class TagPageComponent extends React.PureComponent { + private mode: 'edit' | 'create' = 'create'; + constructor(props: TagPageProps) { + super(props); + const randomColor = sample( + Object.keys(euiVars) + .filter(key => key.startsWith('euiColorVis')) + .map(key => (euiVars as any)[key]) + ); + + this.state = { + showFlyout: false, + attachedBeats: null, + tag: { + id: props.match.params.action === 'create' ? '' : props.match.params.tagid, + color: this.rgb2hex(randomColor), + configuration_blocks: [], + last_updated: new Date(), + }, + }; + + if (props.match.params.action !== 'create') { + this.mode = 'edit'; + this.loadTag(); + this.loadAttachedBeats(); + } + } + public render() { + return ( + +
      + { + await this.props.libs.beats.removeTagsFromBeats( + beatIds.map(id => { + return { beatId: id, tag: this.state.tag.id }; + }) + ); + await this.loadAttachedBeats(); + }} + onTagChange={(field: string, value: string | number) => + this.setState(oldState => ({ + tag: { ...oldState.tag, [field]: value }, + })) + } + attachedBeats={this.state.attachedBeats} + /> + + + + 1 // || this.state.tag.configuration_blocks.length === 0 + } + onClick={this.saveTag} + > + Save + + + + this.props.goTo('/overview/tags')}> + Cancel + + + +
      +
      + ); + } + private rgb2hex(rgb: string) { + const matchedrgb = rgb.match( + /^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i + ); + return matchedrgb && matchedrgb.length === 4 + ? '#' + + ('0' + parseInt(matchedrgb[1], 10).toString(16)).slice(-2) + + ('0' + parseInt(matchedrgb[2], 10).toString(16)).slice(-2) + + ('0' + parseInt(matchedrgb[3], 10).toString(16)).slice(-2) + : ''; + } + private loadTag = async () => { + const tags = await this.props.libs.tags.getTagsWithIds([this.props.match.params.tagid]); + if (tags.length === 0) { + // TODO do something to error + } + this.setState({ + tag: tags[0], + }); + }; + + private loadAttachedBeats = async () => { + const beats = await this.props.libs.beats.getBeatsWithTag(this.props.match.params.tagid); + + this.setState({ + attachedBeats: beats, + }); + }; + private saveTag = async () => { + await this.props.libs.tags.upsertTag(this.state.tag as BeatTag); + this.props.goTo(`/overview/tags`); + }; + private getNumExclusiveConfigurationBlocks = () => + this.state.tag.configuration_blocks + .map(({ type }) => UNIQUENESS_ENFORCING_TYPES.some(uniqueType => uniqueType === type)) + .reduce((acc, cur) => (cur ? acc + 1 : acc), 0); +} +export const TagPage = withUrlState(TagPageComponent); diff --git a/x-pack/plugins/beats_management/public/router.tsx b/x-pack/plugins/beats_management/public/router.tsx new file mode 100644 index 0000000000000..3117bf2d07bf7 --- /dev/null +++ b/x-pack/plugins/beats_management/public/router.tsx @@ -0,0 +1,89 @@ +/* + * 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 React from 'react'; +import { HashRouter, Redirect, Route, Switch } from 'react-router-dom'; +import { Header } from './components/layouts/header'; +import { BreadcrumbConsumer, RouteWithBreadcrumb } from './components/route_with_breadcrumb'; +import { FrontendLibs } from './lib/lib'; +import { BeatDetailsPage } from './pages/beat'; +import { EnforceSecurityPage } from './pages/enforce_security'; +import { InvalidLicensePage } from './pages/invalid_license'; +import { MainPages } from './pages/main'; +import { NoAccessPage } from './pages/no_access'; +import { TagPage } from './pages/tag'; + +export const PageRouter: React.SFC<{ libs: FrontendLibs }> = ({ libs }) => { + return ( + +
      + + {({ breadcrumbs }) => ( +
      + )} + + + {libs.framework.licenseExpired() && } />} + {!libs.framework.securityEnabled() && } />} + {!libs.framework.getCurrentUser() || + (!libs.framework.getCurrentUser().roles.includes('beats_admin') && + !libs.framework + .getDefaultUserRoles() + .some(r => libs.framework.getCurrentUser().roles.includes(r)) && ( + } /> + ))} + } + /> + } /> + { + return `Beats: ${params.beatId}`; + }} + parentBreadcrumbs={[ + { + text: 'Beats List', + href: '#/management/beats_management/overview/beats', + }, + ]} + path="/beat/:beatId" + render={(props: any) => } + /> + { + if (params.action === 'create') { + return 'Create Tag'; + } + return `Tag: ${params.tagid}`; + }} + parentBreadcrumbs={[ + { + text: 'Tags List', + href: '#/management/beats_management/overview/tags', + }, + ]} + path="/tag/:action/:tagid?" + render={(props: any) => } + /> + +
      +
      + ); +}; diff --git a/x-pack/plugins/beats_management/public/utils/typed_react.ts b/x-pack/plugins/beats_management/public/utils/typed_react.ts new file mode 100644 index 0000000000000..5557befa9d7e5 --- /dev/null +++ b/x-pack/plugins/beats_management/public/utils/typed_react.ts @@ -0,0 +1,65 @@ +/* + * 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 { omit } from 'lodash'; +import React from 'react'; +import { InferableComponentEnhancerWithProps } from 'react-redux'; + +export type RendererResult = React.ReactElement | null; +export type RendererFunction = (args: RenderArgs) => Result; + +export type ChildFunctionRendererProps = { + children: RendererFunction; + initializeOnMount?: boolean; + resetOnUnmount?: boolean; +} & RenderArgs; + +interface ChildFunctionRendererOptions { + onInitialize?: (props: RenderArgs) => void; + onCleanup?: (props: RenderArgs) => void; +} + +export const asChildFunctionRenderer = ( + hoc: InferableComponentEnhancerWithProps, + { onInitialize, onCleanup }: ChildFunctionRendererOptions = {} +) => + hoc( + class ChildFunctionRenderer extends React.Component> { + public displayName = 'ChildFunctionRenderer'; + + public componentDidMount() { + if (this.props.initializeOnMount && onInitialize) { + onInitialize(this.getRendererArgs()); + } + } + + public componentWillUnmount() { + if (this.props.resetOnUnmount && onCleanup) { + onCleanup(this.getRendererArgs()); + } + } + + public render() { + return this.props.children(this.getRendererArgs()); + } + + private getRendererArgs = () => + omit(['children', 'initializeOnMount', 'resetOnUnmount'], this.props) as Pick< + ChildFunctionRendererProps, + keyof InjectedProps + >; + } + ); + +export type StateUpdater = ( + prevState: Readonly, + prevProps: Readonly +) => State | null; + +export function composeStateUpdaters(...updaters: Array>) { + return (state: State, props: Props) => + updaters.reduce((currentState, updater) => updater(currentState, props) || currentState, state); +} diff --git a/x-pack/plugins/beats_management/readme.md b/x-pack/plugins/beats_management/readme.md new file mode 100644 index 0000000000000..3a9717a58f9a5 --- /dev/null +++ b/x-pack/plugins/beats_management/readme.md @@ -0,0 +1,22 @@ +# Documentation for Beats CM in x-pack kibana + +Notes: +Falure to have auth enabled in Kibana will make for a broken UI. UI based errors not yet in place + +### Run tests + +``` +node scripts/jest.js plugins/beats --watch +``` + +and for functional... (from x-pack root) + +``` + node scripts/functional_tests --config test/api_integration/config +``` + +### Run command to fake an enrolling beat (from beats_management dir) + +``` +node scripts/enroll.js +``` diff --git a/x-pack/plugins/beats_management/scripts/enroll.js b/x-pack/plugins/beats_management/scripts/enroll.js new file mode 100644 index 0000000000000..e1639be281da4 --- /dev/null +++ b/x-pack/plugins/beats_management/scripts/enroll.js @@ -0,0 +1,35 @@ +/* + * 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. + */ +const request = require('request'); +const Chance = require('chance'); // eslint-disable-line +const args = process.argv.slice(2); +const chance = new Chance(); + +const enroll = async token => { + const beatId = chance.word(); + + await request( + { + url: `http://localhost:5601/api/beats/agent/${beatId}`, + method: 'POST', + headers: { + 'kbn-xsrf': 'xxx', + 'kbn-beats-enrollment-token': token, + }, + body: JSON.stringify({ + type: 'filebeat', + host_name: `${chance.word()}.bar.com`, + name: chance.word(), + version: '6.3.0', + }), + }, + (error, response, body) => { + console.log(error, body); + } + ); +}; + +enroll(args[0]); diff --git a/x-pack/plugins/beats_management/server/kibana.index.ts b/x-pack/plugins/beats_management/server/kibana.index.ts new file mode 100644 index 0000000000000..dd7bc443bc603 --- /dev/null +++ b/x-pack/plugins/beats_management/server/kibana.index.ts @@ -0,0 +1,13 @@ +/* + * 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 { compose } from './lib/compose/kibana'; +import { initManagementServer } from './management_server'; + +export const initServerWithKibana = (hapiServer: any) => { + const libs = compose(hapiServer); + initManagementServer(libs); +}; diff --git a/x-pack/plugins/beats_management/server/lib/adapters/beats/adapter_types.ts b/x-pack/plugins/beats_management/server/lib/adapters/beats/adapter_types.ts new file mode 100644 index 0000000000000..74c778fbe5672 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/beats/adapter_types.ts @@ -0,0 +1,45 @@ +/* + * 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 { CMBeat } from '../../../../common/domain_types'; +import { FrameworkUser } from '../framework/adapter_types'; + +export interface CMBeatsAdapter { + insert(user: FrameworkUser, beat: CMBeat): Promise; + update(user: FrameworkUser, beat: CMBeat): Promise; + get(user: FrameworkUser, id: string): Promise; + getAll(user: FrameworkUser, ESQuery?: any): Promise; + getWithIds(user: FrameworkUser, beatIds: string[]): Promise; + getAllWithTags(user: FrameworkUser, tagIds: string[]): Promise; + getBeatWithToken(user: FrameworkUser, enrollmentToken: string): Promise; + removeTagsFromBeats( + user: FrameworkUser, + removals: BeatsTagAssignment[] + ): Promise; + assignTagsToBeats( + user: FrameworkUser, + assignments: BeatsTagAssignment[] + ): Promise; +} + +export interface BeatsTagAssignment { + beatId: string; + tag: string; + idxInRequest?: number; +} + +interface BeatsReturnedTagAssignment { + status: number | null; + result?: string; +} + +export interface CMAssignmentReturn { + assignments: BeatsReturnedTagAssignment[]; +} + +export interface BeatsRemovalReturn { + removals: BeatsReturnedTagAssignment[]; +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/beats/elasticsearch_beats_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/beats/elasticsearch_beats_adapter.ts new file mode 100644 index 0000000000000..e8307e09b6567 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/beats/elasticsearch_beats_adapter.ts @@ -0,0 +1,241 @@ +/* + * 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 { flatten, get as _get, omit } from 'lodash'; +import { INDEX_NAMES } from '../../../../common/constants'; +import { CMBeat } from '../../../../common/domain_types'; +import { DatabaseAdapter } from '../database/adapter_types'; + +import { FrameworkUser } from '../framework/adapter_types'; +import { BeatsTagAssignment, CMBeatsAdapter } from './adapter_types'; + +export class ElasticsearchBeatsAdapter implements CMBeatsAdapter { + private database: DatabaseAdapter; + + constructor(database: DatabaseAdapter) { + this.database = database; + } + + public async get(user: FrameworkUser, id: string) { + const params = { + id: `beat:${id}`, + ignore: [404], + index: INDEX_NAMES.BEATS, + type: '_doc', + }; + + const response = await this.database.get(user, params); + if (!response.found) { + return null; + } + + return _get(response, '_source.beat'); + } + + public async insert(user: FrameworkUser, beat: CMBeat) { + beat.config_status = 'UNKNOWN'; + const body = { + beat, + type: 'beat', + }; + + await this.database.index(user, { + body, + id: `beat:${beat.id}`, + index: INDEX_NAMES.BEATS, + refresh: 'wait_for', + type: '_doc', + }); + } + + public async update(user: FrameworkUser, beat: CMBeat) { + const body = { + beat, + type: 'beat', + }; + + const params = { + body, + id: `beat:${beat.id}`, + index: INDEX_NAMES.BEATS, + refresh: 'wait_for', + type: '_doc', + }; + await this.database.index(user, params); + } + + public async getWithIds(user: FrameworkUser, beatIds: string[]) { + const ids = beatIds.map(beatId => `beat:${beatId}`); + + const params = { + _sourceIncludes: ['beat.id', 'beat.verified_on'], + body: { + ids, + }, + index: INDEX_NAMES.BEATS, + type: '_doc', + }; + const response = await this.database.mget(user, params); + + return _get(response, 'docs', []) + .filter((b: any) => b.found) + .map((b: any) => b._source.beat); + } + + public async getAllWithTags(user: FrameworkUser, tagIds: string[]): Promise { + const params = { + ignore: [404], + index: INDEX_NAMES.BEATS, + type: '_doc', + body: { + query: { + terms: { 'beat.tags': tagIds }, + }, + }, + }; + + const response = await this.database.search(user, params); + + const beats = _get(response, 'hits.hits', []); + + if (beats.length === 0) { + return []; + } + return beats.map((beat: any) => omit(beat._source.beat, ['access_token'])); + } + + public async getBeatWithToken( + user: FrameworkUser, + enrollmentToken: string + ): Promise { + const params = { + ignore: [404], + index: INDEX_NAMES.BEATS, + type: '_doc', + body: { + query: { + match: { 'beat.enrollment_token': enrollmentToken }, + }, + }, + }; + + const response = await this.database.search(user, params); + + const beats = _get(response, 'hits.hits', []); + + if (beats.length === 0) { + return null; + } + return omit(_get(beats[0], '_source.beat'), ['access_token']); + } + + public async getAll(user: FrameworkUser, ESQuery?: any) { + const params = { + index: INDEX_NAMES.BEATS, + size: 10000, + type: '_doc', + body: { + query: { + bool: { + must: { + term: { + type: 'beat', + }, + }, + }, + }, + }, + }; + + if (ESQuery) { + params.body.query = { + ...params.body.query, + ...ESQuery, + }; + } + + let response; + try { + response = await this.database.search(user, params); + } catch (e) { + // TODO something + } + if (!response) { + return []; + } + const beats = _get(response, 'hits.hits', []); + + return beats.map((beat: any) => omit(beat._source.beat, ['access_token'])); + } + + public async removeTagsFromBeats( + user: FrameworkUser, + removals: BeatsTagAssignment[] + ): Promise { + const body = flatten( + removals.map(({ beatId, tag }) => { + const script = ` + def beat = ctx._source.beat; + if (beat.tags != null) { + beat.tags.removeAll([params.tag]); + }`; + + return [ + { update: { _id: `beat:${beatId}` } }, + { script: { source: script.replace(' ', ''), params: { tag } } }, + ]; + }) + ); + + const response = await this.database.bulk(user, { + body, + index: INDEX_NAMES.BEATS, + refresh: 'wait_for', + type: '_doc', + }); + return _get(response, 'items', []).map((item: any, resultIdx: number) => ({ + idxInRequest: removals[resultIdx].idxInRequest, + result: item.update.result, + status: item.update.status, + })); + } + + public async assignTagsToBeats( + user: FrameworkUser, + assignments: BeatsTagAssignment[] + ): Promise { + const body = flatten( + assignments.map(({ beatId, tag }) => { + const script = ` + def beat = ctx._source.beat; + if (beat.tags == null) { + beat.tags = []; + } + if (!beat.tags.contains(params.tag)) { + beat.tags.add(params.tag); + }`; + + return [ + { update: { _id: `beat:${beatId}` } }, + { script: { source: script.replace(' ', ''), params: { tag } } }, + ]; + }) + ); + + const response = await this.database.bulk(user, { + body, + index: INDEX_NAMES.BEATS, + refresh: 'wait_for', + type: '_doc', + }); + // console.log(response.items[0].update.error); + return _get(response, 'items', []).map((item: any, resultIdx: any) => ({ + idxInRequest: assignments[resultIdx].idxInRequest, + result: item.update.result, + status: item.update.status, + })); + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/beats/memory_beats_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/beats/memory_beats_adapter.ts new file mode 100644 index 0000000000000..6ae1c018a5490 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/beats/memory_beats_adapter.ts @@ -0,0 +1,114 @@ +/* + * 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 { intersection, omit } from 'lodash'; + +import { CMBeat } from '../../../../common/domain_types'; +import { FrameworkUser } from '../framework/adapter_types'; +import { BeatsTagAssignment, CMBeatsAdapter } from './adapter_types'; + +export class MemoryBeatsAdapter implements CMBeatsAdapter { + private beatsDB: CMBeat[]; + + constructor(beatsDB: CMBeat[]) { + this.beatsDB = beatsDB; + } + + public async get(user: FrameworkUser, id: string) { + return this.beatsDB.find(beat => beat.id === id) || null; + } + + public async insert(user: FrameworkUser, beat: CMBeat) { + this.beatsDB.push(beat); + } + + public async update(user: FrameworkUser, beat: CMBeat) { + const beatIndex = this.beatsDB.findIndex(b => b.id === beat.id); + + this.beatsDB[beatIndex] = { + ...this.beatsDB[beatIndex], + ...beat, + }; + } + + public async getWithIds(user: FrameworkUser, beatIds: string[]) { + return this.beatsDB.filter(beat => beatIds.includes(beat.id)); + } + + public async getAllWithTags(user: FrameworkUser, tagIds: string[]): Promise { + return this.beatsDB.filter(beat => intersection(tagIds, beat.tags || []).length !== 0); + } + + public async getBeatWithToken( + user: FrameworkUser, + enrollmentToken: string + ): Promise { + return this.beatsDB.find(beat => enrollmentToken === beat.enrollment_token) || null; + } + + public async getAll(user: FrameworkUser) { + return this.beatsDB.map((beat: any) => omit(beat, ['access_token'])); + } + + public async removeTagsFromBeats( + user: FrameworkUser, + removals: BeatsTagAssignment[] + ): Promise { + const beatIds = removals.map(r => r.beatId); + + const response = this.beatsDB.filter(beat => beatIds.includes(beat.id)).map(beat => { + const tagData = removals.find(r => r.beatId === beat.id); + if (tagData) { + if (beat.tags) { + beat.tags = beat.tags.filter(tag => tag !== tagData.tag); + } + } + return beat; + }); + + return response.map((item: CMBeat, resultIdx: number) => ({ + idxInRequest: removals[resultIdx].idxInRequest, + result: 'updated', + status: 200, + })); + } + + public async assignTagsToBeats( + user: FrameworkUser, + assignments: BeatsTagAssignment[] + ): Promise { + const beatIds = assignments.map(r => r.beatId); + + this.beatsDB.filter(beat => beatIds.includes(beat.id)).map(beat => { + // get tags that need to be assigned to this beat + const tags = assignments + .filter(a => a.beatId === beat.id) + .map((t: BeatsTagAssignment) => t.tag); + + if (tags.length > 0) { + if (!beat.tags) { + beat.tags = []; + } + const nonExistingTags = tags.filter((t: string) => beat.tags && !beat.tags.includes(t)); + + if (nonExistingTags.length > 0) { + beat.tags = beat.tags.concat(nonExistingTags); + } + } + return beat; + }); + + return assignments.map((item: BeatsTagAssignment, resultIdx: number) => ({ + idxInRequest: assignments[resultIdx].idxInRequest, + result: 'updated', + status: 200, + })); + } + + public setDB(beatsDB: CMBeat[]) { + this.beatsDB = beatsDB; + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/database/__tests__/kibana.ts b/x-pack/plugins/beats_management/server/lib/adapters/database/__tests__/kibana.ts new file mode 100644 index 0000000000000..bcbb1e9a29b49 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/database/__tests__/kibana.ts @@ -0,0 +1,39 @@ +/* + * 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. + */ +// file.skip + +// @ts-ignore +import { createEsTestCluster } from '@kbn/test'; +import { Root } from 'src/core/server/root'; +// @ts-ignore +import * as kbnTestServer from '../../../../../../../../src/test_utils/kbn_server'; +import { DatabaseKbnESPlugin } from '../adapter_types'; +import { KibanaDatabaseAdapter } from '../kibana_database_adapter'; +import { contractTests } from './test_contract'; +const es = createEsTestCluster({}); + +let legacyServer: any; +let rootServer: Root; +contractTests('Kibana Database Adapter', { + before: async () => { + await es.start(); + + rootServer = kbnTestServer.createRootWithCorePlugins({ + server: { maxPayloadBytes: 100 }, + }); + + await rootServer.start(); + legacyServer = kbnTestServer.getKbnServer(rootServer); + return await legacyServer.plugins.elasticsearch.waitUntilReady(); + }, + after: async () => { + await rootServer.shutdown(); + return await es.cleanup(); + }, + adapterSetup: () => { + return new KibanaDatabaseAdapter(legacyServer.plugins.elasticsearch as DatabaseKbnESPlugin); + }, +}); diff --git a/x-pack/plugins/beats_management/server/lib/adapters/database/__tests__/test_contract.ts b/x-pack/plugins/beats_management/server/lib/adapters/database/__tests__/test_contract.ts new file mode 100644 index 0000000000000..d62dea55bf95d --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/database/__tests__/test_contract.ts @@ -0,0 +1,75 @@ +/* + * 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 { beatsIndexTemplate } from '../../../../utils/index_templates'; +import { DatabaseAdapter } from '../adapter_types'; + +interface ContractConfig { + before?(): Promise; + after?(): Promise; + adapterSetup(): DatabaseAdapter; +} + +export const contractTests = (testName: string, config: ContractConfig) => { + describe.skip(testName, () => { + let database: DatabaseAdapter; + beforeAll(async () => { + jest.setTimeout(100000); // 1 second + + if (config.before) { + await config.before(); + } + }); + afterAll(async () => config.after && (await config.after())); + beforeEach(async () => { + database = config.adapterSetup(); + }); + + it('Should inject template into ES', async () => { + try { + await database.putTemplate( + { kind: 'internal' }, + { + name: '.management-beats', + body: beatsIndexTemplate, + } + ); + } catch (e) { + expect(e).toEqual(null); + } + }); + + it('Unauthorized users cant query', async () => { + const params = { + id: `beat:foo`, + ignore: [404], + index: '.management-beats', + type: '_doc', + }; + let ranWithoutError = false; + try { + await database.get({ kind: 'unauthenticated' }, params); + ranWithoutError = true; + } catch (e) { + expect(e).not.toEqual(null); + } + expect(ranWithoutError).toEqual(false); + }); + + it('Should query ES', async () => { + const params = { + id: `beat:foo`, + ignore: [404], + index: '.management-beats', + type: '_doc', + }; + const response = await database.get({ kind: 'internal' }, params); + + expect(response).not.toEqual(undefined); + // @ts-ignore + expect(response.found).toEqual(undefined); + }); + }); +}; diff --git a/x-pack/plugins/beats_management/server/lib/adapters/database/adapter_types.ts b/x-pack/plugins/beats_management/server/lib/adapters/database/adapter_types.ts new file mode 100644 index 0000000000000..59a36dceac50f --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/database/adapter_types.ts @@ -0,0 +1,307 @@ +/* + * 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 { FrameworkRequest, FrameworkUser } from '../framework/adapter_types'; +export interface DatabaseAdapter { + putTemplate(user: FrameworkUser, params: DatabasePutTemplateParams): Promise; + get( + user: FrameworkUser, + params: DatabaseGetParams + ): Promise>; + create( + user: FrameworkUser, + params: DatabaseCreateDocumentParams + ): Promise; + index( + user: FrameworkUser, + params: DatabaseIndexDocumentParams + ): Promise; + delete( + user: FrameworkUser, + params: DatabaseDeleteDocumentParams + ): Promise; + mget(user: FrameworkUser, params: DatabaseMGetParams): Promise>; + bulk( + user: FrameworkUser, + params: DatabaseBulkIndexDocumentsParams + ): Promise; + search(user: FrameworkUser, params: DatabaseSearchParams): Promise>; +} + +export interface DatabaseKbnESCluster { + callWithInternalUser(esMethod: string, options: {}): Promise; + callWithRequest(req: FrameworkRequest, esMethod: string, options: {}): Promise; +} + +export interface DatabaseKbnESPlugin { + getCluster(clusterName: string): DatabaseKbnESCluster; +} + +export interface DatabaseSearchParams extends DatabaseGenericParams { + analyzer?: string; + analyzeWildcard?: boolean; + defaultOperator?: DefaultOperator; + df?: string; + explain?: boolean; + storedFields?: DatabaseNameList; + docvalueFields?: DatabaseNameList; + fielddataFields?: DatabaseNameList; + from?: number; + ignoreUnavailable?: boolean; + allowNoIndices?: boolean; + expandWildcards?: ExpandWildcards; + lenient?: boolean; + lowercaseExpandedTerms?: boolean; + preference?: string; + q?: string; + routing?: DatabaseNameList; + scroll?: string; + searchType?: 'query_then_fetch' | 'dfs_query_then_fetch'; + size?: number; + sort?: DatabaseNameList; + _source?: DatabaseNameList; + _sourceExcludes?: DatabaseNameList; + _sourceIncludes?: DatabaseNameList; + terminateAfter?: number; + stats?: DatabaseNameList; + suggestField?: string; + suggestMode?: 'missing' | 'popular' | 'always'; + suggestSize?: number; + suggestText?: string; + timeout?: string; + trackScores?: boolean; + version?: boolean; + requestCache?: boolean; + index?: DatabaseNameList; + type?: DatabaseNameList; +} + +export interface DatabaseSearchResponse { + took: number; + timed_out: boolean; + _scroll_id?: string; + _shards: DatabaseShardsResponse; + hits: { + total: number; + max_score: number; + hits: Array<{ + _index: string; + _type: string; + _id: string; + _score: number; + _source: T; + _version?: number; + _explanation?: DatabaseExplanation; + fields?: any; + highlight?: any; + inner_hits?: any; + sort?: string[]; + }>; + }; + aggregations?: any; +} + +export interface DatabaseExplanation { + value: number; + description: string; + details: DatabaseExplanation[]; +} + +export interface DatabaseShardsResponse { + total: number; + successful: number; + failed: number; + skipped: number; +} + +export interface DatabaseGetDocumentResponse { + _index: string; + _type: string; + _id: string; + _version: number; + found: boolean; + _source: Source; +} + +export interface DatabaseBulkResponse { + took: number; + errors: boolean; + items: Array< + DatabaseDeleteDocumentResponse | DatabaseIndexDocumentResponse | DatabaseUpdateDocumentResponse + >; +} + +export interface DatabaseBulkIndexDocumentsParams extends DatabaseGenericParams { + waitForActiveShards?: string; + refresh?: DatabaseRefresh; + routing?: string; + timeout?: string; + type?: string; + fields?: DatabaseNameList; + _source?: DatabaseNameList; + _sourceExcludes?: DatabaseNameList; + _sourceIncludes?: DatabaseNameList; + pipeline?: string; + index?: string; +} + +export interface DatabaseMGetParams extends DatabaseGenericParams { + storedFields?: DatabaseNameList; + preference?: string; + realtime?: boolean; + refresh?: boolean; + _source?: DatabaseNameList; + _sourceExcludes?: DatabaseNameList; + _sourceIncludes?: DatabaseNameList; + index: string; + type?: string; +} + +export interface DatabaseMGetResponse { + docs?: Array>; +} + +export interface DatabasePutTemplateParams extends DatabaseGenericParams { + name: string; + body: any; +} + +export interface DatabaseDeleteDocumentParams extends DatabaseGenericParams { + waitForActiveShards?: string; + parent?: string; + refresh?: DatabaseRefresh; + routing?: string; + timeout?: string; + version?: number; + versionType?: DatabaseVersionType; + index: string; + type: string; + id: string; +} + +export interface DatabaseIndexDocumentResponse { + found: boolean; + _index: string; + _type: string; + _id: string; + _version: number; + result: string; +} + +export interface DatabaseUpdateDocumentResponse { + found: boolean; + _index: string; + _type: string; + _id: string; + _version: number; + result: string; +} + +export interface DatabaseDeleteDocumentResponse { + found: boolean; + _index: string; + _type: string; + _id: string; + _version: number; + result: string; +} + +export interface DatabaseIndexDocumentParams extends DatabaseGenericParams { + waitForActiveShards?: string; + opType?: 'index' | 'create'; + parent?: string; + refresh?: string; + routing?: string; + timeout?: string; + timestamp?: Date | number; + ttl?: string; + version?: number; + versionType?: DatabaseVersionType; + pipeline?: string; + id?: string; + index: string; + type: string; + body: T; +} + +export interface DatabaseGetResponse { + found: boolean; + _source: T; +} +export interface DatabaseCreateDocumentParams extends DatabaseGenericParams { + waitForActiveShards?: string; + parent?: string; + refresh?: DatabaseRefresh; + routing?: string; + timeout?: string; + timestamp?: Date | number; + ttl?: string; + version?: number; + versionType?: DatabaseVersionType; + pipeline?: string; + id?: string; + index: string; + type: string; +} + +export interface DatabaseCreateDocumentResponse { + created: boolean; + result: string; +} + +export interface DatabaseDeleteDocumentParams extends DatabaseGenericParams { + waitForActiveShards?: string; + parent?: string; + refresh?: DatabaseRefresh; + routing?: string; + timeout?: string; + version?: number; + versionType?: DatabaseVersionType; + index: string; + type: string; + id: string; +} + +export interface DatabaseGetParams extends DatabaseGenericParams { + storedFields?: DatabaseNameList; + parent?: string; + preference?: string; + realtime?: boolean; + refresh?: boolean; + routing?: string; + _source?: DatabaseNameList; + _sourceExcludes?: DatabaseNameList; + _sourceIncludes?: DatabaseNameList; + version?: number; + versionType?: DatabaseVersionType; + id: string; + index: string; + type: string; +} + +export type DatabaseNameList = string | string[] | boolean; +export type DatabaseRefresh = boolean | 'true' | 'false' | 'wait_for' | ''; +export type DatabaseVersionType = 'internal' | 'external' | 'external_gte' | 'force'; +export type ExpandWildcards = 'open' | 'closed' | 'none' | 'all'; +export type DefaultOperator = 'AND' | 'OR'; +export type DatabaseConflicts = 'abort' | 'proceed'; + +export interface DatabaseGenericParams { + requestTimeout?: number; + maxRetries?: number; + method?: string; + body?: any; + ignore?: number | number[]; + filterPath?: string | string[]; +} + +export interface DatabaseDeleteDocumentResponse { + found: boolean; + _index: string; + _type: string; + _id: string; + _version: number; + result: string; +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/database/kibana_database_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/database/kibana_database_adapter.ts new file mode 100644 index 0000000000000..ba593a793e34b --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/database/kibana_database_adapter.ts @@ -0,0 +1,107 @@ +/* + * 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 { internalAuthData } from '../../../utils/wrap_request'; +import { FrameworkUser } from '../framework/adapter_types'; +import { + DatabaseAdapter, + DatabaseBulkIndexDocumentsParams, + DatabaseCreateDocumentParams, + DatabaseCreateDocumentResponse, + DatabaseDeleteDocumentParams, + DatabaseDeleteDocumentResponse, + DatabaseGetDocumentResponse, + DatabaseGetParams, + DatabaseIndexDocumentParams, + DatabaseKbnESCluster, + DatabaseKbnESPlugin, + DatabaseMGetParams, + DatabaseMGetResponse, + DatabasePutTemplateParams, + DatabaseSearchParams, + DatabaseSearchResponse, +} from './adapter_types'; + +export class KibanaDatabaseAdapter implements DatabaseAdapter { + private es: DatabaseKbnESCluster; + + constructor(kbnElasticSearch: DatabaseKbnESPlugin) { + this.es = kbnElasticSearch.getCluster('admin'); + } + public async putTemplate(user: FrameworkUser, params: DatabasePutTemplateParams): Promise { + const callES = this.getCallType(user); + const result = await callES('indices.putTemplate', params); + return result; + } + + public async get( + user: FrameworkUser, + params: DatabaseGetParams + ): Promise> { + const callES = this.getCallType(user); + const result = await callES('get', params); + return result; + // todo + } + + public async mget( + user: FrameworkUser, + params: DatabaseMGetParams + ): Promise> { + const callES = this.getCallType(user); + const result = await callES('mget', params); + return result; + // todo + } + + public async bulk(user: FrameworkUser, params: DatabaseBulkIndexDocumentsParams): Promise { + const callES = this.getCallType(user); + const result = await callES('bulk', params); + return result; + } + + public async create( + user: FrameworkUser, + params: DatabaseCreateDocumentParams + ): Promise { + const callES = this.getCallType(user); + const result = await callES('create', params); + return result; + } + public async index(user: FrameworkUser, params: DatabaseIndexDocumentParams): Promise { + const callES = this.getCallType(user); + const result = await callES('index', params); + return result; + } + public async delete( + user: FrameworkUser, + params: DatabaseDeleteDocumentParams + ): Promise { + const callES = this.getCallType(user); + const result = await callES('delete', params); + return result; + } + + public async search( + user: FrameworkUser, + params: DatabaseSearchParams + ): Promise> { + const callES = this.getCallType(user); + const result = await callES('search', params); + return result; + } + + private getCallType(user: FrameworkUser): any { + if (user.kind === 'authenticated') { + return this.es.callWithRequest.bind(null, { + headers: user[internalAuthData], + }); + } else if (user.kind === 'internal') { + return this.es.callWithInternalUser; + } else { + throw new Error('Invalid user type'); + } + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/database/memory_database_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/database/memory_database_adapter.ts new file mode 100644 index 0000000000000..9851027ce2218 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/database/memory_database_adapter.ts @@ -0,0 +1,69 @@ +/* + * 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 { FrameworkUser } from '../framework/adapter_types'; +import { + DatabaseAdapter, + DatabaseBulkIndexDocumentsParams, + DatabaseCreateDocumentParams, + DatabaseCreateDocumentResponse, + DatabaseDeleteDocumentParams, + DatabaseDeleteDocumentResponse, + DatabaseGetDocumentResponse, + DatabaseGetParams, + DatabaseIndexDocumentParams, + DatabaseMGetParams, + DatabaseMGetResponse, + DatabasePutTemplateParams, + DatabaseSearchParams, + DatabaseSearchResponse, +} from './adapter_types'; + +export class MemoryDatabaseAdapter implements DatabaseAdapter { + public async putTemplate(user: FrameworkUser, params: DatabasePutTemplateParams): Promise { + return null; + } + + public async get( + user: FrameworkUser, + params: DatabaseGetParams + ): Promise> { + throw new Error('get not implamented in memory'); + } + + public async mget( + user: FrameworkUser, + params: DatabaseMGetParams + ): Promise> { + throw new Error('mget not implamented in memory'); + } + + public async bulk(user: FrameworkUser, params: DatabaseBulkIndexDocumentsParams): Promise { + throw new Error('mget not implamented in memory'); + } + + public async create( + user: FrameworkUser, + params: DatabaseCreateDocumentParams + ): Promise { + throw new Error('create not implamented in memory'); + } + public async index(user: FrameworkUser, params: DatabaseIndexDocumentParams): Promise { + throw new Error('index not implamented in memory'); + } + public async delete( + user: FrameworkUser, + params: DatabaseDeleteDocumentParams + ): Promise { + throw new Error('delete not implamented in memory'); + } + + public async search( + user: FrameworkUser, + params: DatabaseSearchParams + ): Promise> { + throw new Error('search not implamented in memory'); + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/framework/__tests__/kibana.ts b/x-pack/plugins/beats_management/server/lib/adapters/framework/__tests__/kibana.ts new file mode 100644 index 0000000000000..b483379d444c0 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/framework/__tests__/kibana.ts @@ -0,0 +1,34 @@ +/* + * 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. + */ +// file.skip + +// @ts-ignore +import { createEsTestCluster } from '@kbn/test'; +import { config as beatsPluginConfig, configPrefix } from '../../../../..'; +// @ts-ignore +import * as kbnTestServer from '../../../../../../../../src/test_utils/kbn_server'; +import { KibanaBackendFrameworkAdapter } from '../kibana_framework_adapter'; +import { contractTests } from './test_contract'; + +const kbnServer = kbnTestServer.createRootWithCorePlugins({ server: { maxPayloadBytes: 100 } }); +const legacyServer = kbnTestServer.getKbnServer(kbnServer); + +contractTests('Kibana Framework Adapter', { + before: async () => { + await kbnServer.start(); + + const config = legacyServer.server.config(); + config.extendSchema(beatsPluginConfig, {}, configPrefix); + + config.set('xpack.beats.encryptionKey', 'foo'); + }, + after: async () => { + await kbnServer.shutdown(); + }, + adapterSetup: () => { + return new KibanaBackendFrameworkAdapter(legacyServer.server); + }, +}); diff --git a/x-pack/plugins/beats_management/server/lib/adapters/framework/__tests__/test_contract.ts b/x-pack/plugins/beats_management/server/lib/adapters/framework/__tests__/test_contract.ts new file mode 100644 index 0000000000000..5d870d1cadc4b --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/framework/__tests__/test_contract.ts @@ -0,0 +1,34 @@ +/* + * 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 { BackendFrameworkAdapter } from '../adapter_types'; + +interface ContractConfig { + before?(): Promise; + after?(): Promise; + adapterSetup(): BackendFrameworkAdapter; +} + +export const contractTests = (testName: string, config: ContractConfig) => { + describe.skip(testName, () => { + // let frameworkAdapter: BackendFrameworkAdapter; + beforeAll(async () => { + jest.setTimeout(100000); // 1 second + + if (config.before) { + await config.before(); + } + }); + afterAll(async () => config.after && (await config.after())); + beforeEach(async () => { + // FIXME: one of these always should exist, type ContractConfig as such + // const frameworkAdapter = config.adapterSetup(); + }); + + it('Should have tests here', () => { + expect(true).toEqual(true); + }); + }); +}; diff --git a/x-pack/plugins/beats_management/server/lib/adapters/framework/adapter_types.ts b/x-pack/plugins/beats_management/server/lib/adapters/framework/adapter_types.ts new file mode 100644 index 0000000000000..64dca03e68d56 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/framework/adapter_types.ts @@ -0,0 +1,90 @@ +/* + * 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 { Lifecycle, ResponseToolkit } from 'hapi'; +import { internalAuthData } from '../../../utils/wrap_request'; + +export interface BackendFrameworkAdapter { + internalUser: FrameworkInternalUser; + version: string; + getSetting(settingPath: string): any; + exposeStaticDir(urlPath: string, dir: string): void; + registerRoute< + RouteRequest extends FrameworkWrappableRequest, + RouteResponse extends FrameworkResponse + >( + route: FrameworkRouteOptions + ): void; +} + +export interface FrameworkAuthenticatedUser { + kind: 'authenticated'; + [internalAuthData]: AuthDataType; + username: string; + roles: string[]; + full_name: string | null; + email: string | null; + metadata: { + [key: string]: any; + }; + enabled: boolean; +} + +export interface FrameworkUnAuthenticatedUser { + kind: 'unauthenticated'; +} + +export interface FrameworkInternalUser { + kind: 'internal'; +} + +export type FrameworkUser = + | FrameworkAuthenticatedUser + | FrameworkUnAuthenticatedUser + | FrameworkInternalUser; +export interface FrameworkRequest< + InternalRequest extends FrameworkWrappableRequest = FrameworkWrappableRequest +> { + user: FrameworkUser; + headers: InternalRequest['headers']; + info: InternalRequest['info']; + payload: InternalRequest['payload']; + params: InternalRequest['params']; + query: InternalRequest['query']; +} + +export interface FrameworkRouteOptions< + RouteRequest extends FrameworkWrappableRequest, + RouteResponse extends FrameworkResponse +> { + path: string; + method: string | string[]; + vhost?: string; + licenseRequired?: boolean; + requiredRoles?: string[]; + handler: FrameworkRouteHandler; + config?: {}; +} + +export type FrameworkRouteHandler< + RouteRequest extends FrameworkWrappableRequest, + RouteResponse extends FrameworkResponse +> = (request: FrameworkRequest, h: ResponseToolkit) => void; + +export interface FrameworkWrappableRequest< + Payload = any, + Params = any, + Query = any, + Headers = any, + Info = any +> { + headers: Headers; + info: Info; + payload: Payload; + params: Params; + query: Query; +} + +export type FrameworkResponse = Lifecycle.ReturnValue; diff --git a/x-pack/plugins/beats_management/server/lib/adapters/framework/hapi_framework_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/framework/hapi_framework_adapter.ts new file mode 100644 index 0000000000000..62e8b0599097d --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/framework/hapi_framework_adapter.ts @@ -0,0 +1,90 @@ +/* + * 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 { wrapRequest } from '../../../utils/wrap_request'; +import { FrameworkInternalUser } from './adapter_types'; +import { + BackendFrameworkAdapter, + FrameworkResponse, + FrameworkRouteOptions, + FrameworkWrappableRequest, +} from './adapter_types'; + +interface TestSettings { + enrollmentTokensTtlInSeconds: number; + encryptionKey: string; +} + +export class HapiBackendFrameworkAdapter implements BackendFrameworkAdapter { + public readonly internalUser: FrameworkInternalUser = { + kind: 'internal', + }; + public version: string; + private settings: TestSettings; + private server: any; + + constructor( + settings: TestSettings = { + encryptionKey: 'something_who_cares', + enrollmentTokensTtlInSeconds: 10 * 60, // 10 minutes + }, + hapiServer?: any + ) { + this.server = hapiServer; + this.settings = settings; + this.version = 'testing'; + } + + public getSetting(settingPath: string) { + switch (settingPath) { + case 'xpack.beats.enrollmentTokensTtlInSeconds': + return this.settings.enrollmentTokensTtlInSeconds; + case 'xpack.beats.encryptionKey': + return this.settings.encryptionKey; + } + } + + public exposeStaticDir(urlPath: string, dir: string): void { + if (!this.server) { + throw new Error('Must pass a hapi server into the adapter to use exposeStaticDir'); + } + this.server.route({ + handler: { + directory: { + path: dir, + }, + }, + method: 'GET', + path: urlPath, + }); + } + + public registerRoute< + RouteRequest extends FrameworkWrappableRequest, + RouteResponse extends FrameworkResponse + >(route: FrameworkRouteOptions) { + if (!this.server) { + throw new Error('Must pass a hapi server into the adapter to use registerRoute'); + } + const wrappedHandler = (licenseRequired: boolean) => (request: any, h: any) => { + return route.handler(wrapRequest(request), h); + }; + + this.server.route({ + handler: wrappedHandler(route.licenseRequired || false), + method: route.method, + path: route.path, + config: { + ...route.config, + auth: false, + }, + }); + } + + public async injectRequstForTesting({ method, url, headers, payload }: any) { + return await this.server.inject({ method, url, headers, payload }); + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/framework/kibana_framework_adapter.ts new file mode 100644 index 0000000000000..2004bf723f007 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/framework/kibana_framework_adapter.ts @@ -0,0 +1,209 @@ +/* + * 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. + */ + +// @ts-ignore +import Boom from 'boom'; +import { difference } from 'lodash'; +// @ts-ignore +import { mirrorPluginStatus } from '../../../../../../server/lib/mirror_plugin_status'; +import { PLUGIN } from '../../../../common/constants/plugin'; +import { wrapRequest } from '../../../utils/wrap_request'; +import { FrameworkRequest } from './adapter_types'; +import { + BackendFrameworkAdapter, + FrameworkInternalUser, + FrameworkResponse, + FrameworkRouteOptions, + FrameworkWrappableRequest, +} from './adapter_types'; + +export class KibanaBackendFrameworkAdapter implements BackendFrameworkAdapter { + public readonly internalUser: FrameworkInternalUser = { + kind: 'internal', + }; + public version: string; + private server: any; + private cryptoHash: string | null; + + constructor(hapiServer: any) { + this.server = hapiServer; + if (hapiServer.plugins.kibana) { + this.version = hapiServer.plugins.kibana.status.plugin.version; + } else { + this.version = 'unknown'; + } + this.cryptoHash = null; + this.validateConfig(); + + const xpackMainPlugin = hapiServer.plugins.xpack_main; + const thisPlugin = hapiServer.plugins.beats_management; + + mirrorPluginStatus(xpackMainPlugin, thisPlugin); + xpackMainPlugin.status.once('green', () => { + // Register a function that is called whenever the xpack info changes, + // to re-compute the license check results for this plugin + xpackMainPlugin.info + .feature(PLUGIN.ID) + .registerLicenseCheckResultsGenerator((xPackInfo: any) => this.checkLicense(xPackInfo)); + }); + } + // TODO make base path a constructor level param + public getSetting(settingPath: string) { + // TODO type check server properly + if (settingPath === 'xpack.beats.encryptionKey') { + // @ts-ignore + return this.server.config().get(settingPath) || this.cryptoHash; + } + // @ts-ignore + return this.server.config().get(settingPath) || this.cryptoHash; + } + + public exposeStaticDir(urlPath: string, dir: string): void { + this.server.route({ + handler: { + directory: { + path: dir, + }, + }, + method: 'GET', + path: urlPath, + }); + } + + public registerRoute< + RouteRequest extends FrameworkWrappableRequest, + RouteResponse extends FrameworkResponse + >(route: FrameworkRouteOptions) { + const hasAny = (roles: string[], requiredRoles: string[]) => + requiredRoles.some(r => roles.includes(r)); + + const wrappedHandler = (licenseRequired: boolean, requiredRoles?: string[]) => async ( + request: any, + h: any + ) => { + const xpackMainPlugin = this.server.plugins.xpack_main; + const licenseCheckResults = xpackMainPlugin.info.feature(PLUGIN.ID).getLicenseCheckResults(); + if (licenseRequired && !licenseCheckResults.licenseValid) { + return Boom.forbidden(licenseCheckResults.message); + } + const wrappedRequest = wrapRequest(request); + if (requiredRoles) { + if (wrappedRequest.user.kind !== 'authenticated') { + return h.response().code(403); + } + wrappedRequest.user = { + ...wrappedRequest.user, + ...(await this.getUser(request)), + }; + + if ( + wrappedRequest.user.kind === 'authenticated' && + (!hasAny(wrappedRequest.user.roles, this.getSetting('xpack.beats.defaultUserRoles')) || + !wrappedRequest.user.roles) && + difference(requiredRoles, wrappedRequest.user.roles).length !== 0 + ) { + return h.response().code(403); + } + } + return route.handler(wrappedRequest, h); + }; + + this.server.route({ + handler: wrappedHandler(route.licenseRequired || false, route.requiredRoles), + method: route.method, + path: route.path, + config: route.config, + }); + } + + private async getUser(request: FrameworkRequest) { + try { + return await this.server.plugins.security.getUser(request); + } catch (e) { + return null; + } + } + + // TODO make key a param + private validateConfig() { + // @ts-ignore + const config = this.server.config(); + const encryptionKey = config.get('xpack.beats.encryptionKey'); + + if (!encryptionKey) { + this.server.log( + 'Using a default encryption key for xpack.beats.encryptionKey. It is recommended that you set xpack.beats.encryptionKey in kibana.yml with a unique token' + ); + this.cryptoHash = 'xpack_beats_default_encryptionKey'; + } + } + + // TODO this should NOT be in an adapter, break up and move validation to a lib + private checkLicense(xPackInfo: any) { + // If, for some reason, we cannot get the license information + // from Elasticsearch, assume worst case and disable the Logstash pipeline UI + if (!xPackInfo || !xPackInfo.isAvailable()) { + return { + securityEnabled: false, + licenseValid: false, + message: + 'You cannot manage Beats central management because license information is not available at this time.', + }; + } + + const VALID_LICENSE_MODES = ['trial', 'standard', 'gold', 'platinum']; + + const isLicenseValid = xPackInfo.license.isOneOf(VALID_LICENSE_MODES); + const isLicenseActive = xPackInfo.license.isActive(); + const licenseType = xPackInfo.license.getType(); + const isSecurityEnabled = xPackInfo.feature('security').isEnabled(); + + // License is not valid + if (!isLicenseValid) { + return { + defaultUserRoles: this.getSetting('xpack.beats.defaultUserRoles'), + securityEnabled: true, + licenseValid: false, + licenseExpired: false, + message: `Your ${licenseType} license does not support Beats central management features. Please upgrade your license.`, + }; + } + + // License is valid but not active, we go into a read-only mode. + if (!isLicenseActive) { + return { + defaultUserRoles: this.getSetting('xpack.beats.defaultUserRoles'), + securityEnabled: true, + licenseValid: true, + licenseExpired: true, + message: `You cannot edit, create, or delete your Beats central management configurations because your ${licenseType} license has expired.`, + }; + } + + // Security is not enabled in ES + if (!isSecurityEnabled) { + const message = + 'Security must be enabled in order to use Beats central management features.' + + ' Please set xpack.security.enabled: true in your elasticsearch.yml.'; + return { + defaultUserRoles: this.getSetting('xpack.beats.defaultUserRoles'), + securityEnabled: false, + licenseValid: true, + licenseExpired: false, + + message, + }; + } + + // License is valid and active + return { + defaultUserRoles: this.getSetting('xpack.beats.defaultUserRoles'), + securityEnabled: true, + licenseValid: true, + licenseExpired: false, + }; + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/tags/adapter_types.ts b/x-pack/plugins/beats_management/server/lib/adapters/tags/adapter_types.ts new file mode 100644 index 0000000000000..f826115f9efd9 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/tags/adapter_types.ts @@ -0,0 +1,14 @@ +/* + * 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 { BeatTag } from '../../../../common/domain_types'; +import { FrameworkUser } from '../framework/adapter_types'; + +export interface CMTagsAdapter { + getAll(user: FrameworkUser, ESQuery?: any): Promise; + delete(user: FrameworkUser, tagIds: string[]): Promise; + getTagsWithIds(user: FrameworkUser, tagIds: string[]): Promise; + upsertTag(user: FrameworkUser, tag: BeatTag): Promise<{}>; +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/tags/elasticsearch_tags_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/tags/elasticsearch_tags_adapter.ts new file mode 100644 index 0000000000000..e3afa544fa0e1 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/tags/elasticsearch_tags_adapter.ts @@ -0,0 +1,149 @@ +/* + * 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 { flatten, get } from 'lodash'; +import { INDEX_NAMES } from '../../../../common/constants'; +import { FrameworkUser } from '../framework/adapter_types'; + +import { BeatTag, CMBeat } from '../../../../common/domain_types'; +import { DatabaseAdapter } from '../database/adapter_types'; +import { CMTagsAdapter } from './adapter_types'; + +export class ElasticsearchTagsAdapter implements CMTagsAdapter { + private database: DatabaseAdapter; + + constructor(database: DatabaseAdapter) { + this.database = database; + } + + public async getAll(user: FrameworkUser, ESQuery?: any) { + const params = { + _source: true, + size: 10000, + index: INDEX_NAMES.BEATS, + type: '_doc', + body: { + query: { + bool: { + must: { + term: { + type: 'tag', + }, + }, + }, + }, + }, + }; + if (ESQuery) { + params.body.query = { + ...params.body.query, + ...ESQuery, + }; + } + const response = await this.database.search(user, params); + const tags = get(response, 'hits.hits', []); + + return tags.map((tag: any) => tag._source.tag); + } + + public async delete(user: FrameworkUser, tagIds: string[]) { + const ids = tagIds.map(tag => tag); + + const params = { + ignore: [404], + index: INDEX_NAMES.BEATS, + type: '_doc', + body: { + query: { + terms: { 'beat.tags': tagIds }, + }, + }, + }; + + const beatsResponse = await this.database.search(user, params); + + const beats = get(beatsResponse, 'hits.hits', []).map( + (beat: any) => beat._source.beat + ); + + const inactiveBeats = beats.filter(beat => beat.active === false); + const activeBeats = beats.filter(beat => beat.active === true); + if (activeBeats.length !== 0) { + return false; + } + const beatIds = inactiveBeats.map((beat: CMBeat) => beat.id); + + const bulkBeatsUpdates = flatten( + beatIds.map(beatId => { + const script = ` + def beat = ctx._source.beat; + if (beat.tags != null) { + beat.tags.removeAll([params.tag]); + }`; + + return flatten( + ids.map(tagId => [ + { update: { _id: `beat:${beatId}` } }, + { script: { source: script.replace(' ', ''), params: { tagId } } }, + ]) + ); + }) + ); + + const bulkTagsDelete = ids.map(tagId => ({ delete: { _id: `tag:${tagId}` } })); + + await this.database.bulk(user, { + body: flatten([...bulkBeatsUpdates, ...bulkTagsDelete]), + index: INDEX_NAMES.BEATS, + refresh: 'wait_for', + type: '_doc', + }); + + return true; + } + + public async getTagsWithIds(user: FrameworkUser, tagIds: string[]) { + if (tagIds.length === 0) { + return []; + } + const ids = tagIds.map(tag => `tag:${tag}`); + + const params = { + _source: true, + body: { + ids, + }, + index: INDEX_NAMES.BEATS, + type: '_doc', + }; + const response = await this.database.mget(user, params); + + return get(response, 'docs', []) + .filter((b: any) => b.found) + .map((b: any) => ({ + ...b._source.tag, + id: b._id.replace('tag:', ''), + })); + } + + public async upsertTag(user: FrameworkUser, tag: BeatTag) { + const body = { + tag, + type: 'tag', + }; + + const params = { + body, + id: `tag:${tag.id}`, + index: INDEX_NAMES.BEATS, + refresh: 'wait_for', + type: '_doc', + }; + const response = await this.database.index(user, params); + + return get(response, 'result'); + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/tags/memory_tags_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/tags/memory_tags_adapter.ts new file mode 100644 index 0000000000000..a730f55db98ee --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/tags/memory_tags_adapter.ts @@ -0,0 +1,43 @@ +/* + * 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 { BeatTag } from '../../../../common/domain_types'; +import { FrameworkUser } from '../framework/adapter_types'; +import { CMTagsAdapter } from './adapter_types'; + +export class MemoryTagsAdapter implements CMTagsAdapter { + private tagsDB: BeatTag[] = []; + + constructor(tagsDB: BeatTag[]) { + this.tagsDB = tagsDB; + } + + public async getAll(user: FrameworkUser) { + return this.tagsDB; + } + public async delete(user: FrameworkUser, tagIds: string[]) { + this.tagsDB = this.tagsDB.filter(tag => !tagIds.includes(tag.id)); + + return true; + } + public async getTagsWithIds(user: FrameworkUser, tagIds: string[]) { + return this.tagsDB.filter(tag => tagIds.includes(tag.id)); + } + + public async upsertTag(user: FrameworkUser, tag: BeatTag) { + const existingTagIndex = this.tagsDB.findIndex(t => t.id === tag.id); + if (existingTagIndex !== -1) { + this.tagsDB[existingTagIndex] = tag; + } else { + this.tagsDB.push(tag); + } + return tag; + } + + public setDB(tagsDB: BeatTag[]) { + this.tagsDB = tagsDB; + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/tokens/adapter_types.ts b/x-pack/plugins/beats_management/server/lib/adapters/tokens/adapter_types.ts new file mode 100644 index 0000000000000..2fe8c811c396e --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/tokens/adapter_types.ts @@ -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 { FrameworkUser } from '../framework/adapter_types'; + +export interface TokenEnrollmentData { + token: string | null; + expires_on: string; +} + +export interface CMTokensAdapter { + deleteEnrollmentToken(enrollmentToken: string): Promise; + getEnrollmentToken(enrollmentToken: string): Promise; + upsertTokens(user: FrameworkUser, tokens: TokenEnrollmentData[]): Promise; +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/tokens/elasticsearch_tokens_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/tokens/elasticsearch_tokens_adapter.ts new file mode 100644 index 0000000000000..6aa9ceff46629 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/tokens/elasticsearch_tokens_adapter.ts @@ -0,0 +1,75 @@ +/* + * 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 { flatten, get } from 'lodash'; +import { INDEX_NAMES } from '../../../../common/constants'; +import { DatabaseAdapter } from '../database/adapter_types'; +import { BackendFrameworkAdapter, FrameworkUser } from '../framework/adapter_types'; +import { CMTokensAdapter, TokenEnrollmentData } from './adapter_types'; + +export class ElasticsearchTokensAdapter implements CMTokensAdapter { + private database: DatabaseAdapter; + private framework: BackendFrameworkAdapter; + + constructor(database: DatabaseAdapter, framework: BackendFrameworkAdapter) { + this.database = database; + this.framework = framework; + } + + public async deleteEnrollmentToken(enrollmentToken: string) { + const params = { + id: `enrollment_token:${enrollmentToken}`, + index: INDEX_NAMES.BEATS, + type: '_doc', + }; + + await this.database.delete(this.framework.internalUser, params); + } + + public async getEnrollmentToken(tokenString: string): Promise { + const params = { + id: `enrollment_token:${tokenString}`, + ignore: [404], + index: INDEX_NAMES.BEATS, + type: '_doc', + }; + + const response = await this.database.get(this.framework.internalUser, params); + const tokenDetails = get(response, '_source.enrollment_token', { + expires_on: '0', + token: null, + }); + + // Elasticsearch might return fast if the token is not found. OR it might return fast + // if the token *is* found. Either way, an attacker could using a timing attack to figure + // out whether a token is valid or not. So we introduce a random delay in returning from + // this function to obscure the actual time it took for Elasticsearch to find the token. + const randomDelayInMs = 25 + Math.round(Math.random() * 200); // between 25 and 225 ms + return new Promise(resolve => + setTimeout(() => resolve(tokenDetails), randomDelayInMs) + ); + } + + public async upsertTokens(user: FrameworkUser, tokens: TokenEnrollmentData[]) { + const body = flatten( + tokens.map(token => [ + { index: { _id: `enrollment_token:${token.token}` } }, + { + enrollment_token: token, + type: 'enrollment_token', + }, + ]) + ); + + await this.database.bulk(user, { + body, + index: INDEX_NAMES.BEATS, + refresh: 'wait_for', + type: '_doc', + }); + return tokens; + } +} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/tokens/memory_tokens_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/tokens/memory_tokens_adapter.ts new file mode 100644 index 0000000000000..fabbafc040969 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/adapters/tokens/memory_tokens_adapter.ts @@ -0,0 +1,46 @@ +/* + * 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 { FrameworkAuthenticatedUser } from '../framework/adapter_types'; +import { CMTokensAdapter, TokenEnrollmentData } from './adapter_types'; + +export class MemoryTokensAdapter implements CMTokensAdapter { + private tokenDB: TokenEnrollmentData[]; + + constructor(tokenDB: TokenEnrollmentData[]) { + this.tokenDB = tokenDB; + } + + public async deleteEnrollmentToken(enrollmentToken: string) { + const index = this.tokenDB.findIndex(token => token.token === enrollmentToken); + + if (index > -1) { + this.tokenDB.splice(index, 1); + } + } + + public async getEnrollmentToken(tokenString: string): Promise { + return new Promise(resolve => { + return resolve(this.tokenDB.find(token => token.token === tokenString)); + }); + } + + public async upsertTokens(user: FrameworkAuthenticatedUser, tokens: TokenEnrollmentData[]) { + tokens.forEach(token => { + const existingIndex = this.tokenDB.findIndex(t => t.token === token.token); + if (existingIndex !== -1) { + this.tokenDB[existingIndex] = token; + } else { + this.tokenDB.push(token); + } + }); + return tokens; + } + + public setDB(tokenDB: TokenEnrollmentData[]) { + this.tokenDB = tokenDB; + } +} diff --git a/x-pack/plugins/beats_management/server/lib/compose/kibana.ts b/x-pack/plugins/beats_management/server/lib/compose/kibana.ts new file mode 100644 index 0000000000000..bc00278251610 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/compose/kibana.ts @@ -0,0 +1,47 @@ +/* + * 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 { ElasticsearchBeatsAdapter } from '../adapters/beats/elasticsearch_beats_adapter'; +import { KibanaDatabaseAdapter } from '../adapters/database/kibana_database_adapter'; +import { ElasticsearchTagsAdapter } from '../adapters/tags/elasticsearch_tags_adapter'; +import { ElasticsearchTokensAdapter } from '../adapters/tokens/elasticsearch_tokens_adapter'; + +import { KibanaBackendFrameworkAdapter } from '../adapters/framework/kibana_framework_adapter'; + +import { CMBeatsDomain } from '../domains/beats'; +import { CMTagsDomain } from '../domains/tags'; +import { CMTokensDomain } from '../domains/tokens'; + +import { CMDomainLibs, CMServerLibs } from '../lib'; + +export function compose(server: any): CMServerLibs { + const framework = new KibanaBackendFrameworkAdapter(server); + const database = new KibanaDatabaseAdapter(server.plugins.elasticsearch); + + const tags = new CMTagsDomain(new ElasticsearchTagsAdapter(database)); + const tokens = new CMTokensDomain(new ElasticsearchTokensAdapter(database, framework), { + framework, + }); + const beats = new CMBeatsDomain(new ElasticsearchBeatsAdapter(database), { + tags, + tokens, + framework, + }); + + const domainLibs: CMDomainLibs = { + beats, + tags, + tokens, + }; + + const libs: CMServerLibs = { + framework, + database, + ...domainLibs, + }; + + return libs; +} diff --git a/x-pack/plugins/beats_management/server/lib/compose/testing.ts b/x-pack/plugins/beats_management/server/lib/compose/testing.ts new file mode 100644 index 0000000000000..41fc18b80aeef --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/compose/testing.ts @@ -0,0 +1,44 @@ +/* + * 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 { MemoryBeatsAdapter } from '../adapters/beats/memory_beats_adapter'; +import { MemoryTagsAdapter } from '../adapters/tags/memory_tags_adapter'; +import { MemoryTokensAdapter } from '../adapters/tokens/memory_tokens_adapter'; + +import { HapiBackendFrameworkAdapter } from '../adapters/framework/hapi_framework_adapter'; + +import { CMBeatsDomain } from '../domains/beats'; +import { CMTagsDomain } from '../domains/tags'; +import { CMTokensDomain } from '../domains/tokens'; + +import { CMDomainLibs, CMServerLibs } from '../lib'; + +export function compose(server: any): CMServerLibs { + const framework = new HapiBackendFrameworkAdapter(undefined, server); + + const tags = new CMTagsDomain(new MemoryTagsAdapter(server.tagsDB || [])); + const tokens = new CMTokensDomain(new MemoryTokensAdapter(server.tokensDB || []), { + framework, + }); + const beats = new CMBeatsDomain(new MemoryBeatsAdapter(server.beatsDB || []), { + tags, + tokens, + framework, + }); + + const domainLibs: CMDomainLibs = { + beats, + tags, + tokens, + }; + + const libs: CMServerLibs = { + framework, + ...domainLibs, + }; + + return libs; +} diff --git a/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/assign_tags.test.ts b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/assign_tags.test.ts new file mode 100644 index 0000000000000..96ff86013762f --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/assign_tags.test.ts @@ -0,0 +1,237 @@ +/* + * 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 { FrameworkInternalUser } from '../../../adapters/framework/adapter_types'; + +import { MemoryBeatsAdapter } from '../../../adapters/beats/memory_beats_adapter'; +import { HapiBackendFrameworkAdapter } from '../../../adapters/framework/hapi_framework_adapter'; +import { MemoryTagsAdapter } from '../../../adapters/tags/memory_tags_adapter'; +import { MemoryTokensAdapter } from '../../../adapters/tokens/memory_tokens_adapter'; + +import { BeatTag, CMBeat } from '../../../../../common/domain_types'; + +import { CMBeatsDomain } from '../../beats'; +import { CMTagsDomain } from '../../tags'; +import { CMTokensDomain } from '../../tokens'; + +import Chance from 'chance'; + +const seed = Date.now(); +const chance = new Chance(seed); + +const internalUser: FrameworkInternalUser = { kind: 'internal' }; + +const settings = { + encryptionKey: 'something_who_cares', + enrollmentTokensTtlInSeconds: 10 * 60, // 10 minutes +}; + +describe('Beats Domain Lib', () => { + let beatsLib: CMBeatsDomain; + let beatsDB: CMBeat[] = []; + let tagsDB: BeatTag[] = []; + + describe('assign_tags_to_beats', () => { + beforeEach(async () => { + beatsDB = [ + { + access_token: '9a6c99ae0fd84b068819701169cd8a4b', + config_status: 'OK', + active: true, + enrollment_token: '23423423423', + host_ip: '1.2.3.4', + host_name: 'foo.bar.com', + id: 'qux', + type: 'filebeat', + }, + { + access_token: '188255eb560a4448b72656c5e99cae6f', + active: true, + config_status: 'OK', + enrollment_token: 'reertrte', + host_ip: '22.33.11.44', + host_name: 'baz.bar.com', + id: 'baz', + type: 'metricbeat', + }, + { + access_token: '93c4a4dd08564c189a7ec4e4f046b975', + active: true, + enrollment_token: '23s423423423', + config_status: 'OK', + host_ip: '1.2.3.4', + host_name: 'foo.bar.com', + id: 'foo', + tags: ['production', 'qa'], + type: 'metricbeat', + verified_on: '2018-05-15T16:25:38.924Z', + }, + { + access_token: '3c4a4dd08564c189a7ec4e4f046b9759', + enrollment_token: 'gdfsgdf', + active: true, + config_status: 'OK', + host_ip: '11.22.33.44', + host_name: 'foo.com', + id: 'bar', + type: 'filebeat', + }, + ]; + tagsDB = [ + { + configuration_blocks: [], + id: 'production', + last_updated: new Date(), + }, + { + configuration_blocks: [], + id: 'development', + last_updated: new Date(), + }, + { + configuration_blocks: [], + id: 'qa', + last_updated: new Date(), + }, + ]; + const framework = new HapiBackendFrameworkAdapter(settings); + + const tokensLib = new CMTokensDomain(new MemoryTokensAdapter([]), { + framework, + }); + + const tagsLib = new CMTagsDomain(new MemoryTagsAdapter(tagsDB)); + + beatsLib = new CMBeatsDomain(new MemoryBeatsAdapter(beatsDB), { + tags: tagsLib, + tokens: tokensLib, + framework, + }); + }); + + it('should add a single tag to a single beat', async () => { + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: 'bar', tag: 'production' }, + ]); + + expect(apiResponse.assignments).toEqual([{ status: 200, result: 'updated' }]); + }); + + it('should not re-add an existing tag to a beat', async () => { + const tags = ['production']; + + let beat = beatsDB.find(b => b.id === 'foo') as any; + expect(beat.tags).toEqual([...tags, 'qa']); + + // Adding the existing tag + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: 'foo', tag: 'production' }, + ]); + + expect(apiResponse.assignments).toEqual([{ status: 200, result: 'updated' }]); + + beat = beatsDB.find(b => b.id === 'foo') as any; + expect(beat.tags).toEqual([...tags, 'qa']); + }); + + it('should add a single tag to a multiple beats', async () => { + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: 'foo', tag: 'development' }, + { beatId: 'bar', tag: 'development' }, + ]); + + expect(apiResponse.assignments).toEqual([ + { status: 200, result: 'updated' }, + { status: 200, result: 'updated' }, + ]); + + let beat = beatsDB.find(b => b.id === 'foo') as any; + expect(beat.tags).toEqual(['production', 'qa', 'development']); // as beat 'foo' already had 'production' and 'qa' tags attached to it + + beat = beatsDB.find(b => b.id === 'bar') as any; + expect(beat.tags).toEqual(['development']); + }); + + it('should add multiple tags to a single beat', async () => { + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: 'bar', tag: 'development' }, + { beatId: 'bar', tag: 'production' }, + ]); + + expect(apiResponse.assignments).toEqual([ + { status: 200, result: 'updated' }, + { status: 200, result: 'updated' }, + ]); + + const beat = beatsDB.find(b => b.id === 'bar') as any; + expect(beat.tags).toEqual(['development', 'production']); + }); + + it('should add multiple tags to a multiple beats', async () => { + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: 'foo', tag: 'development' }, + { beatId: 'bar', tag: 'production' }, + ]); + + expect(apiResponse.assignments).toEqual([ + { status: 200, result: 'updated' }, + { status: 200, result: 'updated' }, + ]); + + let beat = beatsDB.find(b => b.id === 'foo') as any; + expect(beat.tags).toEqual(['production', 'qa', 'development']); // as beat 'foo' already had 'production' and 'qa' tags attached to it + + beat = beatsDB.find(b => b.id === 'bar') as any; + expect(beat.tags).toEqual(['production']); + }); + + it('should return errors for non-existent beats', async () => { + const nonExistentBeatId = chance.word(); + + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: nonExistentBeatId, tag: 'production' }, + ]); + + expect(apiResponse.assignments).toEqual([ + { status: 404, result: `Beat ${nonExistentBeatId} not found` }, + ]); + }); + + it('should return errors for non-existent tags', async () => { + const nonExistentTag = chance.word(); + + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: 'bar', tag: nonExistentTag }, + ]); + + expect(apiResponse.assignments).toEqual([ + { status: 404, result: `Tag ${nonExistentTag} not found` }, + ]); + + const beat = beatsDB.find(b => b.id === 'bar') as any; + expect(beat).not.toHaveProperty('tags'); + }); + + it('should return errors for non-existent beats and tags', async () => { + const nonExistentBeatId = chance.word(); + const nonExistentTag = chance.word(); + + const apiResponse = await beatsLib.assignTagsToBeats(internalUser, [ + { beatId: nonExistentBeatId, tag: nonExistentTag }, + ]); + + expect(apiResponse.assignments).toEqual([ + { + result: `Beat ${nonExistentBeatId} and tag ${nonExistentTag} not found`, + status: 404, + }, + ]); + + const beat = beatsDB.find(b => b.id === 'bar') as any; + expect(beat).not.toHaveProperty('tags'); + }); + }); +}); diff --git a/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/enroll.test.ts b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/enroll.test.ts new file mode 100644 index 0000000000000..d115c49244c65 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/enroll.test.ts @@ -0,0 +1,137 @@ +/* + * 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 { MemoryBeatsAdapter } from '../../../adapters/beats/memory_beats_adapter'; +import { HapiBackendFrameworkAdapter } from '../../../adapters/framework/hapi_framework_adapter'; +import { MemoryTagsAdapter } from '../../../adapters/tags/memory_tags_adapter'; +import { MemoryTokensAdapter } from '../../../adapters/tokens/memory_tokens_adapter'; +import { BeatEnrollmentStatus } from '../../../lib'; + +import { BeatTag, CMBeat } from '../../../../../common/domain_types'; +import { TokenEnrollmentData } from '../../../adapters/tokens/adapter_types'; + +import { CMBeatsDomain } from '../../beats'; +import { CMTagsDomain } from '../../tags'; +import { CMTokensDomain } from '../../tokens'; + +import Chance from 'chance'; +import { sign as signToken } from 'jsonwebtoken'; +import { omit } from 'lodash'; +import moment from 'moment'; + +const seed = Date.now(); +const chance = new Chance(seed); + +const settings = { + encryptionKey: 'something_who_cares', + enrollmentTokensTtlInSeconds: 10 * 60, // 10 minutes +}; + +describe('Beats Domain Lib', () => { + let beatsLib: CMBeatsDomain; + let tokensLib: CMTokensDomain; + + let beatsDB: CMBeat[] = []; + let tagsDB: BeatTag[] = []; + let tokensDB: TokenEnrollmentData[] = []; + let validEnrollmentToken: string; + let beatId: string; + let beat: Partial; + + describe('enroll_beat', () => { + beforeEach(async () => { + validEnrollmentToken = chance.word(); + beatId = chance.word(); + + beatsDB = []; + tagsDB = []; + tokensDB = [ + { + expires_on: moment() + .add(4, 'hours') + .toJSON(), + token: validEnrollmentToken, + }, + ]; + + const version = + chance.integer({ min: 1, max: 10 }) + + '.' + + chance.integer({ min: 1, max: 10 }) + + '.' + + chance.integer({ min: 1, max: 10 }); + + beat = { + host_name: 'foo.bar.com', + type: 'filebeat', + version, + }; + + const framework = new HapiBackendFrameworkAdapter(settings); + + tokensLib = new CMTokensDomain(new MemoryTokensAdapter(tokensDB), { + framework, + }); + + const tagsLib = new CMTagsDomain(new MemoryTagsAdapter(tagsDB)); + + beatsLib = new CMBeatsDomain(new MemoryBeatsAdapter(beatsDB), { + tags: tagsLib, + tokens: tokensLib, + framework, + }); + }); + + it('should enroll beat, returning an access token', async () => { + const { token } = await tokensLib.getEnrollmentToken(validEnrollmentToken); + + expect(token).toEqual(validEnrollmentToken); + const { accessToken, status } = await beatsLib.enrollBeat( + validEnrollmentToken, + beatId, + '192.168.1.1', + omit(beat, 'enrollment_token') + ); + expect(status).toEqual(BeatEnrollmentStatus.Success); + + expect(beatsDB.length).toEqual(1); + expect(beatsDB[0]).toHaveProperty('host_ip'); + expect(beatsDB[0]).toHaveProperty('verified_on'); + + expect(accessToken).toEqual(beatsDB[0].access_token); + + await tokensLib.deleteEnrollmentToken(validEnrollmentToken); + + expect(tokensDB.length).toEqual(0); + }); + + it('should reject an invalid enrollment token', async () => { + const { token } = await tokensLib.getEnrollmentToken(chance.word()); + + expect(token).toEqual(null); + }); + + it('should reject an expired enrollment token', async () => { + const { token } = await tokensLib.getEnrollmentToken( + signToken({}, settings.encryptionKey, { + expiresIn: '-1min', + }) + ); + + expect(token).toEqual(null); + }); + + it('should delete the given enrollment token so it may not be reused', async () => { + expect(tokensDB[0].token).toEqual(validEnrollmentToken); + await tokensLib.deleteEnrollmentToken(validEnrollmentToken); + expect(tokensDB.length).toEqual(0); + + const { token } = await tokensLib.getEnrollmentToken(validEnrollmentToken); + + expect(token).toEqual(null); + }); + }); +}); diff --git a/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/remove_tags.test.ts b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/remove_tags.test.ts new file mode 100644 index 0000000000000..63a98f5c054df --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/remove_tags.test.ts @@ -0,0 +1,112 @@ +/* + * 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 { BeatTag, CMBeat } from '../../../../../common/domain_types'; +import { FrameworkInternalUser } from '../../../adapters/framework/adapter_types'; +import { compose } from '../../../compose/testing'; +import { CMServerLibs } from '../../../lib'; + +const internalUser: FrameworkInternalUser = { kind: 'internal' }; + +describe('Beats Domain Lib', () => { + let libs: CMServerLibs; + let beatsDB: Array> = []; + let tagsDB: BeatTag[] = []; + + describe('remove_tags_from_beats', () => { + beforeEach(async () => { + beatsDB = [ + { + access_token: '9a6c99ae0fd84b068819701169cd8a4b', + active: true, + enrollment_token: '123kuil;4', + host_ip: '1.2.3.4', + host_name: 'foo.bar.com', + id: 'qux', + type: 'filebeat', + }, + { + access_token: '188255eb560a4448b72656c5e99cae6f', + active: true, + enrollment_token: '12fghjyu34', + host_ip: '22.33.11.44', + host_name: 'baz.bar.com', + id: 'baz', + type: 'metricbeat', + }, + { + access_token: '93c4a4dd08564c189a7ec4e4f046b975', + active: true, + enrollment_token: '12nfhgj34', + host_ip: '1.2.3.4', + host_name: 'foo.bar.com', + id: 'foo', + tags: ['production', 'qa'], + type: 'metricbeat', + verified_on: '2018-05-15T16:25:38.924Z', + }, + { + access_token: '3c4a4dd08564c189a7ec4e4f046b9759', + active: true, + + enrollment_token: '123sfd4', + host_ip: '11.22.33.44', + host_name: 'foo.com', + id: 'bar', + type: 'filebeat', + }, + ]; + tagsDB = [ + { + configuration_blocks: [], + id: 'production', + last_updated: new Date(), + }, + { + configuration_blocks: [], + id: 'development', + last_updated: new Date(), + }, + { + configuration_blocks: [], + id: 'qa', + last_updated: new Date(), + }, + ]; + + libs = compose({ + tagsDB, + beatsDB, + }); + }); + + it('should remove a single tag from a single beat', async () => { + const apiResponse = await libs.beats.removeTagsFromBeats(internalUser, [ + { beatId: 'foo', tag: 'production' }, + ]); + + expect(apiResponse.removals).toEqual([{ status: 200, result: 'updated' }]); + // @ts-ignore + expect(beatsDB.find(b => b.id === 'foo').tags).toEqual(['qa']); + }); + + it('should remove a single tag from a multiple beats', async () => { + const apiResponse = await libs.beats.removeTagsFromBeats(internalUser, [ + { beatId: 'foo', tag: 'development' }, + { beatId: 'bar', tag: 'development' }, + ]); + + expect(apiResponse.removals).toEqual([ + { status: 200, result: 'updated' }, + { status: 200, result: 'updated' }, + ]); + + // @ts-ignore + expect(beatsDB.find(b => b.id === 'foo').tags).toEqual(['production', 'qa']); + expect(beatsDB.find(b => b.id === 'bar')).not.toHaveProperty('tags'); + }); + }); +}); diff --git a/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/update.test.ts b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/update.test.ts new file mode 100644 index 0000000000000..74f747374e755 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/__tests__/beats/update.test.ts @@ -0,0 +1,118 @@ +/* + * 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 Chance from 'chance'; +import { BeatTag, CMBeat } from '../../../../../common/domain_types'; +import { MemoryBeatsAdapter } from '../../../adapters/beats/memory_beats_adapter'; +import { HapiBackendFrameworkAdapter } from '../../../adapters/framework/hapi_framework_adapter'; +import { MemoryTagsAdapter } from '../../../adapters/tags/memory_tags_adapter'; +import { TokenEnrollmentData } from '../../../adapters/tokens/adapter_types'; +import { MemoryTokensAdapter } from '../../../adapters/tokens/memory_tokens_adapter'; +import { CMBeatsDomain } from '../../beats'; +import { CMTagsDomain } from '../../tags'; +import { CMTokensDomain } from '../../tokens'; + +const seed = Date.now(); +const chance = new Chance(seed); + +const settings = { + encryptionKey: `it's_a_secret`, + enrollmentTokensTtlInSeconds: 10 * 60, // 10 minutes +}; + +describe('Beats Domain lib', () => { + describe('update_beat', () => { + let beatsLib: CMBeatsDomain; + let tokensLib: CMTokensDomain; + let token: TokenEnrollmentData; + let beatsDB: CMBeat[] = []; + let tagsDB: BeatTag[] = []; + let tokensDB: TokenEnrollmentData[]; + let beatId: string; + let beat: Partial; + + const getBeatsLib = async () => { + const framework = new HapiBackendFrameworkAdapter(settings); + + tokensLib = new CMTokensDomain(new MemoryTokensAdapter(tokensDB), { framework }); + const tagsLib = new CMTagsDomain(new MemoryTagsAdapter(tagsDB)); + + beatsLib = new CMBeatsDomain(new MemoryBeatsAdapter(beatsDB), { + framework, + tags: tagsLib, + tokens: tokensLib, + }); + + await tokensLib.createEnrollmentTokens(framework.internalUser, 1); + token = tokensDB[0]; + }; + + beforeEach(async () => { + beatId = chance.word(); + beat = { + host_name: 'foo.bar.com', + type: 'filebeat', + version: '6.4.0', + }; + beatsDB = []; + tagsDB = []; + tokensDB = []; + + getBeatsLib(); + }); + + it('should return a not-found message if beat does not exist', async () => { + const tokenString = token.token || ''; + const result = await beatsLib.update(tokenString, beatId, beat); + + expect(result).toBe('beat-not-found'); + }); + + it('should return an invalid message if token validation fails', async () => { + const beatToFind: CMBeat = { + id: beatId, + config_status: 'OK', + enrollment_token: '', + active: true, + access_token: token.token || '', + type: 'filebeat', + host_ip: 'localhost', + host_name: 'foo.bar.com', + }; + beatsDB = [beatToFind]; + + getBeatsLib(); + + const result = await beatsLib.update('something_invalid', beatId, beat); + + expect(result).toBe('invalid-access-token'); + }); + + it('should update the beat when a valid token is provided', async () => { + const beatToFind: CMBeat = { + id: beatId, + config_status: 'OK', + enrollment_token: '', + active: true, + access_token: token.token || '', + type: 'metricbeat', + host_ip: 'localhost', + host_name: 'bar.foo.com', + version: '6.3.5', + }; + beatsDB = [beatToFind]; + getBeatsLib(); + // @ts-ignore + await beatsLib.update(token, beatId, beat); + expect(beatsDB).toHaveLength(1); + const updatedBeat = beatsDB[0]; + expect(updatedBeat.id).toBe(beatId); + expect(updatedBeat.host_name).toBe('foo.bar.com'); + expect(updatedBeat.version).toBe('6.4.0'); + expect(updatedBeat.type).toBe('filebeat'); + }); + }); +}); diff --git a/x-pack/plugins/beats_management/server/lib/domains/__tests__/tokens.test.ts b/x-pack/plugins/beats_management/server/lib/domains/__tests__/tokens.test.ts new file mode 100644 index 0000000000000..91c504cd9f503 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/__tests__/tokens.test.ts @@ -0,0 +1,76 @@ +/* + * 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 { HapiBackendFrameworkAdapter } from '../../adapters/framework/hapi_framework_adapter'; +import { TokenEnrollmentData } from '../../adapters/tokens/adapter_types'; +import { MemoryTokensAdapter } from '../../adapters/tokens/memory_tokens_adapter'; +import { CMTokensDomain } from '../tokens'; + +import Chance from 'chance'; +import moment from 'moment'; +import { BackendFrameworkAdapter } from '../../adapters/framework/adapter_types'; + +const seed = Date.now(); +const chance = new Chance(seed); + +const settings = { + encryptionKey: 'something_who_cares', + enrollmentTokensTtlInSeconds: 10 * 60, // 10 minutes +}; + +describe('Token Domain Lib', () => { + let tokensLib: CMTokensDomain; + let tokensDB: TokenEnrollmentData[] = []; + let framework: BackendFrameworkAdapter; + + beforeEach(async () => { + tokensDB = []; + framework = new HapiBackendFrameworkAdapter(settings); + + tokensLib = new CMTokensDomain(new MemoryTokensAdapter(tokensDB), { + framework, + }); + }); + + it('should generate webtokens with a qty of 1', async () => { + const tokens = await tokensLib.createEnrollmentTokens(framework.internalUser, 1); + + expect(tokens.length).toBe(1); + + expect(typeof tokens[0]).toBe('string'); + }); + + it('should create the specified number of tokens', async () => { + const numTokens = chance.integer({ min: 1, max: 20 }); + const tokensFromApi = await tokensLib.createEnrollmentTokens(framework.internalUser, numTokens); + + expect(tokensFromApi.length).toEqual(numTokens); + expect(tokensFromApi).toEqual(tokensDB.map((t: TokenEnrollmentData) => t.token)); + }); + + it('should set token expiration to 10 minutes from now by default', async () => { + await tokensLib.createEnrollmentTokens(framework.internalUser, 1); + + const token = tokensDB[0]; + + // We do a fuzzy check to see if the token expires between 9 and 10 minutes + // from now because a bit of time has elapsed been the creation of the + // tokens and this check. + const tokenExpiresOn = moment(token.expires_on).valueOf(); + + // Because sometimes the test runs so fast it it equal, and we dont use expect.js version that has toBeLessThanOrEqualTo + const tenMinutesFromNow = moment() + .add('10', 'minutes') + .add('1', 'seconds') + .valueOf(); + + const almostTenMinutesFromNow = moment(tenMinutesFromNow) + .subtract('2', 'seconds') + .valueOf(); + expect(tokenExpiresOn).toBeLessThan(tenMinutesFromNow); + expect(tokenExpiresOn).toBeGreaterThan(almostTenMinutesFromNow); + }); +}); diff --git a/x-pack/plugins/beats_management/server/lib/domains/beats.ts b/x-pack/plugins/beats_management/server/lib/domains/beats.ts new file mode 100644 index 0000000000000..a1b890119fc3e --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/beats.ts @@ -0,0 +1,246 @@ +/* + * 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 { uniq } from 'lodash'; +import moment from 'moment'; +import { findNonExistentItems } from '../../utils/find_non_existent_items'; + +import { CMBeat } from '../../../common/domain_types'; +import { BeatsTagAssignment, CMBeatsAdapter } from '../adapters/beats/adapter_types'; +import { FrameworkUser } from '../adapters/framework/adapter_types'; + +import { CMAssignmentReturn } from '../adapters/beats/adapter_types'; +import { BeatsRemovalReturn } from '../adapters/beats/adapter_types'; +import { BeatEnrollmentStatus, CMDomainLibs, CMServerLibs, UserOrToken } from '../lib'; + +export class CMBeatsDomain { + private tags: CMDomainLibs['tags']; + private tokens: CMDomainLibs['tokens']; + private framework: CMServerLibs['framework']; + + constructor( + private readonly adapter: CMBeatsAdapter, + libs: { + tags: CMDomainLibs['tags']; + tokens: CMDomainLibs['tokens']; + framework: CMServerLibs['framework']; + } + ) { + this.adapter = adapter; + this.tags = libs.tags; + this.tokens = libs.tokens; + this.framework = libs.framework; + } + + public async getById(user: FrameworkUser, beatId: string): Promise { + const beat = await this.adapter.get(user, beatId); + return beat && beat.active ? beat : null; + } + + public async getAll(user: FrameworkUser, ESQuery?: any) { + return (await this.adapter.getAll(user, ESQuery)).filter( + (beat: CMBeat) => beat.active === true + ); + } + + public async getAllWithTag(user: FrameworkUser, tagId: string) { + return (await this.adapter.getAllWithTags(user, [tagId])).filter( + (beat: CMBeat) => beat.active === true + ); + } + + public async getByEnrollmentToken(user: FrameworkUser, enrollmentToken: string) { + const beat = await this.adapter.getBeatWithToken(user, enrollmentToken); + return beat && beat.active ? beat : null; + } + + public async update(userOrToken: UserOrToken, beatId: string, beatData: Partial) { + const beat = await this.adapter.get(this.framework.internalUser, beatId); + + // TODO make return type enum + if (beat === null) { + return 'beat-not-found'; + } + + if (typeof userOrToken === 'string') { + const { verified: isAccessTokenValid } = this.tokens.verifyToken( + beat ? beat.access_token : '', + userOrToken + ); + if (!isAccessTokenValid) { + return 'invalid-access-token'; + } + } + + const user = typeof userOrToken === 'string' ? this.framework.internalUser : userOrToken; + + await this.adapter.update(user, { + ...beat, + ...beatData, + }); + } + + // TODO more strongly type this + public async enrollBeat( + enrollmentToken: string, + beatId: string, + remoteAddress: string, + beat: Partial + ): Promise<{ status: string; accessToken?: string }> { + const { token, expires_on } = await this.tokens.getEnrollmentToken(enrollmentToken); + + if (expires_on && moment(expires_on).isBefore(moment())) { + return { status: BeatEnrollmentStatus.ExpiredEnrollmentToken }; + } + if (!token) { + return { status: BeatEnrollmentStatus.InvalidEnrollmentToken }; + } + + const existingBeat = await this.getById(this.framework.internalUser, beatId); + if (existingBeat) { + return { status: BeatEnrollmentStatus.Success }; + } + + const accessToken = this.tokens.generateAccessToken(); + const verifiedOn = moment().toJSON(); + + await this.adapter.insert(this.framework.internalUser, { + ...beat, + active: true, + enrollment_token: enrollmentToken, + verified_on: verifiedOn, + access_token: accessToken, + host_ip: remoteAddress, + id: beatId, + } as CMBeat); + + await this.tokens.deleteEnrollmentToken(enrollmentToken); + + return { status: BeatEnrollmentStatus.Success, accessToken }; + } + + public async removeTagsFromBeats( + user: FrameworkUser, + removals: BeatsTagAssignment[] + ): Promise { + const beatIds = uniq(removals.map(removal => removal.beatId)); + const tagIds = uniq(removals.map(removal => removal.tag)); + + const response = { + removals: removals.map(() => ({ status: null })), + }; + + const beats = await this.adapter.getWithIds(user, beatIds); + const tags = await this.tags.getTagsWithIds(user, tagIds); + + // Handle assignments containing non-existing beat IDs or tags + const nonExistentBeatIds = findNonExistentItems(beats, beatIds); + const nonExistentTags = await findNonExistentItems(tags, tagIds); + + addNonExistentItemToResponse( + response, + removals, + nonExistentBeatIds, + nonExistentTags, + 'removals' + ); + + // TODO abstract this + const validRemovals = removals + .map((removal, idxInRequest) => ({ + beatId: removal.beatId, + idxInRequest, // so we can add the result of this removal to the correct place in the response + tag: removal.tag, + })) + .filter((removal, idx) => response.removals[idx].status === null); + + if (validRemovals.length > 0) { + const removalResults = await this.adapter.removeTagsFromBeats(user, validRemovals); + return addToResultsToResponse('removals', response, removalResults); + } + return response; + } + + public async assignTagsToBeats( + user: FrameworkUser, + assignments: BeatsTagAssignment[] + ): Promise { + const beatIds = uniq(assignments.map(assignment => assignment.beatId)); + const tagIds = uniq(assignments.map(assignment => assignment.tag)); + + const response = { + assignments: assignments.map(() => ({ status: null })), + }; + const beats = await this.adapter.getWithIds(user, beatIds); + const tags = await this.tags.getTagsWithIds(user, tagIds); + // Handle assignments containing non-existing beat IDs or tags + const nonExistentBeatIds = findNonExistentItems(beats, beatIds); + const nonExistentTags = findNonExistentItems(tags, tagIds); + + // TODO break out back into route / function response + // TODO causes function to error if a beat or tag does not exist + addNonExistentItemToResponse( + response, + assignments, + nonExistentBeatIds, + nonExistentTags, + 'assignments' + ); + + // TODO abstract this + const validAssignments = assignments + .map((assignment, idxInRequest) => ({ + beatId: assignment.beatId, + idxInRequest, // so we can add the result of this assignment to the correct place in the response + tag: assignment.tag, + })) + .filter((assignment, idx) => response.assignments[idx].status === null); + + if (validAssignments.length > 0) { + const assignmentResults = await this.adapter.assignTagsToBeats(user, validAssignments); + + // TODO This should prob not mutate + return addToResultsToResponse('assignments', response, assignmentResults); + } + return response; + } +} + +// TODO abstract to the route, also the key arg is a temp fix +function addNonExistentItemToResponse( + response: any, + assignments: any, + nonExistentBeatIds: any, + nonExistentTags: any, + key: string +) { + assignments.forEach(({ beatId, tag }: BeatsTagAssignment, idx: any) => { + const isBeatNonExistent = nonExistentBeatIds.includes(beatId); + + const isTagNonExistent = nonExistentTags.includes(tag); + + if (isBeatNonExistent && isTagNonExistent) { + response[key][idx].status = 404; + response[key][idx].result = `Beat ${beatId} and tag ${tag} not found`; + } else if (isBeatNonExistent) { + response[key][idx].status = 404; + response[key][idx].result = `Beat ${beatId} not found`; + } else if (isTagNonExistent) { + response[key][idx].status = 404; + response[key][idx].result = `Tag ${tag} not found`; + } + }); +} + +// TODO dont mutate response +function addToResultsToResponse(key: string, response: any, assignmentResults: any) { + assignmentResults.forEach((assignmentResult: any) => { + const { idxInRequest, status, result } = assignmentResult; + response[key][idxInRequest].status = status; + response[key][idxInRequest].result = result; + }); + return response; +} diff --git a/x-pack/plugins/beats_management/server/lib/domains/tags.ts b/x-pack/plugins/beats_management/server/lib/domains/tags.ts new file mode 100644 index 0000000000000..79ff2007d1160 --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/tags.ts @@ -0,0 +1,96 @@ +/* + * 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 { intersection, uniq, values } from 'lodash'; +import { UNIQUENESS_ENFORCING_TYPES } from '../../../common/constants'; +import { ConfigurationBlock } from '../../../common/domain_types'; +import { FrameworkUser } from '../adapters/framework/adapter_types'; + +import { entries } from '../../utils/polyfills'; +import { CMTagsAdapter } from '../adapters/tags/adapter_types'; + +export class CMTagsDomain { + constructor(private readonly adapter: CMTagsAdapter) {} + + public async getAll(user: FrameworkUser, ESQuery?: any) { + return await this.adapter.getAll(user, ESQuery); + } + + public async getTagsWithIds(user: FrameworkUser, tagIds: string[]) { + return await this.adapter.getTagsWithIds(user, tagIds); + } + + public async delete(user: FrameworkUser, tagIds: string[]) { + return await this.adapter.delete(user, tagIds); + } + + public async saveTag( + user: FrameworkUser, + tagId: string, + config: { color: string; configuration_blocks: ConfigurationBlock[] } + ) { + const { isValid, message } = await this.validateConfigurationBlocks( + config.configuration_blocks + ); + if (!isValid) { + return { isValid, result: message }; + } + + const tag = { + ...config, + id: tagId, + last_updated: new Date(), + }; + return { + isValid: true, + result: await this.adapter.upsertTag(user, tag), + }; + } + + private validateConfigurationBlocks(configurationBlocks: any) { + const types = uniq(configurationBlocks.map((block: any) => block.type)); + + // If none of the types in the given configuration blocks are uniqueness-enforcing, + // we don't need to perform any further validation checks. + const uniquenessEnforcingTypes = intersection(types, UNIQUENESS_ENFORCING_TYPES); + if (uniquenessEnforcingTypes.length === 0) { + return { isValid: true }; + } + + // Count the number of uniqueness-enforcing types in the given configuration blocks + const typeCountMap = configurationBlocks.reduce((map: any, block: any) => { + const { type } = block; + if (!uniquenessEnforcingTypes.includes(type)) { + return map; + } + + const count = map[type] || 0; + return { + ...map, + [type]: count + 1, + }; + }, {}); + + // If there is no more than one of any uniqueness-enforcing types in the given + // configuration blocks, we don't need to perform any further validation checks. + if (values(typeCountMap).filter(count => count > 1).length === 0) { + return { isValid: true }; + } + + const message = entries(typeCountMap) + .filter(([, count]) => count > 1) + .map( + ([type, count]) => + `Expected only one configuration block of type '${type}' but found ${count}` + ) + .join(' '); + + return { + isValid: false, + message, + }; + } +} diff --git a/x-pack/plugins/beats_management/server/lib/domains/tokens.ts b/x-pack/plugins/beats_management/server/lib/domains/tokens.ts new file mode 100644 index 0000000000000..529a526bea75d --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/domains/tokens.ts @@ -0,0 +1,137 @@ +/* + * 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 { timingSafeEqual } from 'crypto'; +import { sign as signToken, verify as verifyToken } from 'jsonwebtoken'; +import moment from 'moment'; +import uuid from 'uuid'; +import { BackendFrameworkAdapter } from '../adapters/framework/adapter_types'; +import { FrameworkUser } from '../adapters/framework/adapter_types'; +import { CMTokensAdapter } from '../adapters/tokens/adapter_types'; + +const RANDOM_TOKEN_1 = 'b48c4bda384a40cb91c6eb9b8849e77f'; +const RANDOM_TOKEN_2 = '80a3819e3cd64f4399f1d4886be7a08b'; + +export class CMTokensDomain { + private adapter: CMTokensAdapter; + private framework: BackendFrameworkAdapter; + + constructor(adapter: CMTokensAdapter, libs: { framework: BackendFrameworkAdapter }) { + this.adapter = adapter; + this.framework = libs.framework; + } + + public async getEnrollmentToken(enrollmentToken: string) { + const fullToken = await this.adapter.getEnrollmentToken(enrollmentToken); + + if (!fullToken) { + return { + token: null, + expired: true, + expires_on: null, + }; + } + + const { verified, expired } = this.verifyToken(enrollmentToken, fullToken.token || '', false); + + if (!verified) { + return { + expired, + token: null, + expires_on: null, + }; + } + + return { ...fullToken, expired }; + } + + public async deleteEnrollmentToken(enrollmentToken: string) { + return await this.adapter.deleteEnrollmentToken(enrollmentToken); + } + + public verifyToken(recivedToken: string, token2: string, decode = true) { + let tokenDecoded = true; + let expired = false; + + if (decode) { + const enrollmentTokenSecret = this.framework.getSetting('xpack.beats.encryptionKey'); + + try { + verifyToken(recivedToken, enrollmentTokenSecret); + tokenDecoded = true; + } catch (err) { + if (err.name === 'TokenExpiredError') { + expired = true; + } + tokenDecoded = false; + } + } + + if ( + typeof recivedToken !== 'string' || + typeof token2 !== 'string' || + recivedToken.length !== token2.length + ) { + // This prevents a more subtle timing attack where we know already the tokens aren't going to + // match but still we don't return fast. Instead we compare two pre-generated random tokens using + // the same comparison algorithm that we would use to compare two equal-length tokens. + return { + expired, + verified: + timingSafeEqual( + Buffer.from(RANDOM_TOKEN_1, 'utf8'), + Buffer.from(RANDOM_TOKEN_2, 'utf8') + ) && tokenDecoded, + }; + } + + return { + expired, + verified: + timingSafeEqual(Buffer.from(recivedToken, 'utf8'), Buffer.from(token2, 'utf8')) && + tokenDecoded, + }; + } + + public generateAccessToken() { + const enrollmentTokenSecret = this.framework.getSetting('xpack.beats.encryptionKey'); + + const tokenData = { + created: moment().toJSON(), + randomHash: this.createRandomHash(), + }; + + return signToken(tokenData, enrollmentTokenSecret); + } + + public async createEnrollmentTokens( + user: FrameworkUser, + numTokens: number = 1 + ): Promise { + const tokens = []; + const enrollmentTokensTtlInSeconds = this.framework.getSetting( + 'xpack.beats.enrollmentTokensTtlInSeconds' + ); + + const enrollmentTokenExpiration = moment() + .add(enrollmentTokensTtlInSeconds, 'seconds') + .toJSON(); + + while (tokens.length < numTokens) { + tokens.push({ + expires_on: enrollmentTokenExpiration, + token: this.createRandomHash(), + }); + } + + await this.adapter.upsertTokens(user, tokens); + + return tokens.map(token => token.token); + } + + private createRandomHash() { + return uuid.v4().replace(/-/g, ''); + } +} diff --git a/x-pack/plugins/beats_management/server/lib/lib.ts b/x-pack/plugins/beats_management/server/lib/lib.ts new file mode 100644 index 0000000000000..b8d51374741fe --- /dev/null +++ b/x-pack/plugins/beats_management/server/lib/lib.ts @@ -0,0 +1,31 @@ +/* + * 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 { DatabaseAdapter } from './adapters/database/adapter_types'; +import { BackendFrameworkAdapter, FrameworkUser } from './adapters/framework/adapter_types'; + +import { CMBeatsDomain } from './domains/beats'; +import { CMTagsDomain } from './domains/tags'; +import { CMTokensDomain } from './domains/tokens'; + +export type UserOrToken = FrameworkUser | string; + +export interface CMDomainLibs { + beats: CMBeatsDomain; + tags: CMTagsDomain; + tokens: CMTokensDomain; +} + +export interface CMServerLibs extends CMDomainLibs { + framework: BackendFrameworkAdapter; + database?: DatabaseAdapter; +} + +export enum BeatEnrollmentStatus { + Success = 'Success', + ExpiredEnrollmentToken = 'Expired enrollment token', + InvalidEnrollmentToken = 'Invalid enrollment token', +} diff --git a/x-pack/plugins/beats_management/server/management_server.ts b/x-pack/plugins/beats_management/server/management_server.ts new file mode 100644 index 0000000000000..e278e6ff735c1 --- /dev/null +++ b/x-pack/plugins/beats_management/server/management_server.ts @@ -0,0 +1,42 @@ +/* + * 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 { CMServerLibs } from './lib/lib'; +import { createGetBeatConfigurationRoute } from './rest_api/beats/configuration'; +import { createBeatEnrollmentRoute } from './rest_api/beats/enroll'; +import { createGetBeatRoute } from './rest_api/beats/get'; +import { createListAgentsRoute } from './rest_api/beats/list'; +import { createTagAssignmentsRoute } from './rest_api/beats/tag_assignment'; +import { createTagRemovalsRoute } from './rest_api/beats/tag_removal'; +import { createBeatUpdateRoute } from './rest_api/beats/update'; +import { createDeleteTagsWithIdsRoute } from './rest_api/tags/delete'; +import { createGetTagsWithIdsRoute } from './rest_api/tags/get'; +import { createListTagsRoute } from './rest_api/tags/list'; +import { createSetTagRoute } from './rest_api/tags/set'; +import { createTokensRoute } from './rest_api/tokens/create'; +import { beatsIndexTemplate } from './utils/index_templates'; + +export const initManagementServer = (libs: CMServerLibs) => { + if (libs.database) { + libs.database.putTemplate(libs.framework.internalUser, { + name: '.management-beats', + body: beatsIndexTemplate, + }); + } + + libs.framework.registerRoute(createGetBeatRoute(libs)); + libs.framework.registerRoute(createGetTagsWithIdsRoute(libs)); + libs.framework.registerRoute(createListTagsRoute(libs)); + libs.framework.registerRoute(createDeleteTagsWithIdsRoute(libs)); + libs.framework.registerRoute(createGetBeatConfigurationRoute(libs)); + libs.framework.registerRoute(createTagAssignmentsRoute(libs)); + libs.framework.registerRoute(createListAgentsRoute(libs)); + libs.framework.registerRoute(createTagRemovalsRoute(libs)); + libs.framework.registerRoute(createBeatEnrollmentRoute(libs)); + libs.framework.registerRoute(createSetTagRoute(libs)); + libs.framework.registerRoute(createTokensRoute(libs)); + libs.framework.registerRoute(createBeatUpdateRoute(libs)); +}; diff --git a/x-pack/plugins/beats_management/server/rest_api/__tests__/beats_assignments.test.ts b/x-pack/plugins/beats_management/server/rest_api/__tests__/beats_assignments.test.ts new file mode 100644 index 0000000000000..331403e8145c3 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/__tests__/beats_assignments.test.ts @@ -0,0 +1,253 @@ +/* + * 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 { CMServerLibs } from '../../lib/lib'; +import { HapiBackendFrameworkAdapter } from './../../lib/adapters/framework/hapi_framework_adapter'; +import { testHarnes } from './test_harnes'; + +describe('assign_tags_to_beats', () => { + let serverLibs: CMServerLibs; + + beforeAll(async () => { + jest.setTimeout(100000); // 1 second + + serverLibs = await testHarnes.getServerLibs(); + }); + beforeEach(async () => await testHarnes.loadData()); + + it('should add a single tag to a single beat', async () => { + const { + result, + statusCode, + } = await (serverLibs.framework as HapiBackendFrameworkAdapter).injectRequstForTesting({ + method: 'POST', + url: '/api/beats/agents_tags/assignments', + headers: { + 'kbn-xsrf': 'xxx', + authorization: 'loggedin', + }, + payload: { + assignments: [{ beatId: 'bar', tag: 'production' }], + }, + }); + + expect(statusCode).toEqual(200); + expect(result.assignments).toEqual([{ status: 200, result: 'updated' }]); + }); + + it('should not re-add an existing tag to a beat', async () => { + const { + result, + statusCode, + } = await (serverLibs.framework as HapiBackendFrameworkAdapter).injectRequstForTesting({ + method: 'POST', + url: '/api/beats/agents_tags/assignments', + headers: { + 'kbn-xsrf': 'xxx', + authorization: 'loggedin', + }, + payload: { + assignments: [{ beatId: 'foo', tag: 'production' }], + }, + }); + + expect(statusCode).toEqual(200); + + expect(result.assignments).toEqual([{ status: 200, result: 'updated' }]); + + let beat; + + beat = await serverLibs.beats.getById( + { + kind: 'internal', + }, + 'foo' + ); + expect(beat!.tags).toEqual(['production', 'qa']); // as + }); + + it('should add a single tag to a multiple beats', async () => { + const { + result, + statusCode, + } = await (serverLibs.framework as HapiBackendFrameworkAdapter).injectRequstForTesting({ + method: 'POST', + url: '/api/beats/agents_tags/assignments', + headers: { + 'kbn-xsrf': 'xxx', + authorization: 'loggedin', + }, + payload: { + assignments: [{ beatId: 'foo', tag: 'development' }, { beatId: 'bar', tag: 'development' }], + }, + }); + + expect(statusCode).toEqual(200); + + expect(result.assignments).toEqual([ + { status: 200, result: 'updated' }, + { status: 200, result: 'updated' }, + ]); + + let beat; + + beat = await serverLibs.beats.getById( + { + kind: 'internal', + }, + 'foo' + ); + expect(beat!.tags).toEqual(['production', 'qa', 'development']); // as beat 'foo' already had 'production' and 'qa' tags attached to it + + // Beat bar + beat = await serverLibs.beats.getById( + { + kind: 'internal', + }, + 'bar' + ); + + expect(beat!.tags).toEqual(['development']); + }); + + it('should add multiple tags to a single beat', async () => { + const { + result, + statusCode, + } = await (serverLibs.framework as HapiBackendFrameworkAdapter).injectRequstForTesting({ + method: 'POST', + url: '/api/beats/agents_tags/assignments', + headers: { + 'kbn-xsrf': 'xxx', + authorization: 'loggedin', + }, + payload: { + assignments: [{ beatId: 'bar', tag: 'development' }, { beatId: 'bar', tag: 'production' }], + }, + }); + + expect(statusCode).toEqual(200); + + expect(result.assignments).toEqual([ + { status: 200, result: 'updated' }, + { status: 200, result: 'updated' }, + ]); + + const beat = await serverLibs.beats.getById( + { + kind: 'internal', + }, + 'bar' + ); + + expect(beat!.tags).toEqual(['development', 'production']); + }); + + // it('should add multiple tags to a multiple beats', async () => { + // const { body: apiResponse } = await supertest + // .post('/api/beats/agents_tags/assignments') + // .set('kbn-xsrf', 'xxx') + // .send({ + // assignments: [{ beatId: 'foo', tag: 'development' }, { beatId: 'bar', tag: 'production' }], + // }) + // .expect(200); + + // expect(apiResponse.assignments).to.eql([ + // { status: 200, result: 'updated' }, + // { status: 200, result: 'updated' }, + // ]); + + // let esResponse; + // let beat; + + // // Beat foo + // esResponse = await es.get({ + // index: ES_INDEX_NAME, + // type: ES_TYPE_NAME, + // id: `beat:foo`, + // }); + + // beat = esResponse._source.beat; + // expect(beat.tags).to.eql(['production', 'qa', 'development']); // as beat 'foo' already had 'production' and 'qa' tags attached to it + + // // Beat bar + // esResponse = await es.get({ + // index: ES_INDEX_NAME, + // type: ES_TYPE_NAME, + // id: `beat:bar`, + // }); + + // beat = esResponse._source.beat; + // expect(beat.tags).to.eql(['production']); + // }); + + // it('should return errors for non-existent beats', async () => { + // const nonExistentBeatId = chance.word(); + + // const { body: apiResponse } = await supertest + // .post('/api/beats/agents_tags/assignments') + // .set('kbn-xsrf', 'xxx') + // .send({ + // assignments: [{ beatId: nonExistentBeatId, tag: 'production' }], + // }) + // .expect(200); + + // expect(apiResponse.assignments).to.eql([ + // { status: 404, result: `Beat ${nonExistentBeatId} not found` }, + // ]); + // }); + + // it('should return errors for non-existent tags', async () => { + // const nonExistentTag = chance.word(); + + // const { body: apiResponse } = await supertest + // .post('/api/beats/agents_tags/assignments') + // .set('kbn-xsrf', 'xxx') + // .send({ + // assignments: [{ beatId: 'bar', tag: nonExistentTag }], + // }) + // .expect(200); + + // expect(apiResponse.assignments).to.eql([ + // { status: 404, result: `Tag ${nonExistentTag} not found` }, + // ]); + + // const esResponse = await es.get({ + // index: ES_INDEX_NAME, + // type: ES_TYPE_NAME, + // id: `beat:bar`, + // }); + + // const beat = esResponse._source.beat; + // expect(beat).to.not.have.property('tags'); + // }); + + // it('should return errors for non-existent beats and tags', async () => { + // const nonExistentBeatId = chance.word(); + // const nonExistentTag = chance.word(); + + // const { body: apiResponse } = await supertest + // .post('/api/beats/agents_tags/assignments') + // .set('kbn-xsrf', 'xxx') + // .send({ + // assignments: [{ beatID: nonExistentBeatId, tag: nonExistentTag }], + // }) + // .expect(200); + + // expect(apiResponse.assignments).to.eql([ + // { status: 404, result: `Beat ${nonExistentBeatId} and tag ${nonExistentTag} not found` }, + // ]); + + // const esResponse = await es.get({ + // index: ES_INDEX_NAME, + // type: ES_TYPE_NAME, + // id: `beat:bar`, + // }); + + // const beat = esResponse._source.beat; + // expect(beat).to.not.have.property('tags'); + // }); +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/__tests__/data.json b/x-pack/plugins/beats_management/server/rest_api/__tests__/data.json new file mode 100644 index 0000000000000..f263eff1a5bd4 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/__tests__/data.json @@ -0,0 +1,158 @@ +{ + "type": "doc", + "value": { + "index": ".management-beats", + "type": "_doc", + "id": "beat:qux", + "source": { + "type": "beat", + "beat": { + "type": "filebeat", + "active": true, + "host_ip": "1.2.3.4", + "host_name": "foo.bar.com", + "id": "qux", + "name": "qux_filebeat", + "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI" + } + } + } +} + +{ + "type": "doc", + "value": { + "index": ".management-beats", + "type": "_doc", + "id": "beat:baz", + "source": { + "type": "beat", + "beat": { + "type": "metricbeat", + "active": true, + "host_ip": "22.33.11.44", + "host_name": "baz.bar.com", + "id": "baz", + "name": "baz_metricbeat", + "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI" + } + } + } +} + +{ + "type": "doc", + "value": { + "index": ".management-beats", + "type": "_doc", + "id": "beat:foo", + "source": { + "type": "beat", + "beat": { + "type": "metricbeat", + "active": true, + "host_ip": "1.2.3.4", + "host_name": "foo.bar.com", + "id": "foo", + "name": "foo_metricbeat", + "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI", + "verified_on": "2018-05-15T16:25:38.924Z", + "tags": [ + "production", + "qa" + ] + } + } + } +} + +{ + "type": "doc", + "value": { + "index": ".management-beats", + "type": "_doc", + "id": "beat:bar", + "source": { + "type": "beat", + "beat": { + "type": "filebeat", + "active": true, + "host_ip": "11.22.33.44", + "host_name": "foo.com", + "id": "bar", + "name": "bar_filebeat", + "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVhdGVkIjoiMjAxOC0wNi0zMFQwMzo0MjoxNS4yMzBaIiwiaWF0IjoxNTMwMzMwMTM1fQ.SSsX2Byyo1B1bGxV8C3G4QldhE5iH87EY_1r21-bwbI" + } + } + } +} + +{ + "type": "doc", + "value": { + "index": ".management-beats", + "type": "_doc", + "id": "tag:production", + "source": { + "type": "tag", + "tag": { + "configuration_blocks": [ + { + "type": "output", + "description": "some description", + "configs": [{ + "hosts": ["localhost:9200"], + "username": "some-username" + }] + }, + { + "type": "metricbeat.modules", + "configs": [{ + "module": "memcached", + "hosts": ["localhost:11211"] + }] + } + ] + } + } + } +} + +{ + "type": "doc", + "value": { + "index": ".management-beats", + "type": "_doc", + "id": "tag:development", + "source": { + "type": "tag", + "tag": { + "configuration_blocks": [] + } + } + } +} + +{ + "type": "doc", + "value": { + "index": ".management-beats", + "type": "_doc", + "id": "tag:qa", + "source": { + "type": "tag", + "tag": { + "configuration_blocks": [ + { + "type": "metricbeat.modules", + "configs": [{ + "module": "memcached", + "node.namespace": "node", + "hosts": ["localhost:4949"] + }] + } + ] + } + } + } +} \ No newline at end of file diff --git a/x-pack/plugins/beats_management/server/rest_api/__tests__/test_harnes.ts b/x-pack/plugins/beats_management/server/rest_api/__tests__/test_harnes.ts new file mode 100644 index 0000000000000..ed93ffbe36e1e --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/__tests__/test_harnes.ts @@ -0,0 +1,102 @@ +/* + * 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 { badRequest } from 'boom'; +import { readFile } from 'fs'; +// @ts-ignore +import Hapi from 'hapi'; +import { resolve } from 'path'; +import { promisify } from 'util'; +import { BeatTag, CMBeat } from '../../../common/domain_types'; +import { TokenEnrollmentData } from '../../lib/adapters/tokens/adapter_types'; +import { compose } from '../../lib/compose/testing'; +import { CMServerLibs } from '../../lib/lib'; +import { initManagementServer } from './../../management_server'; + +const readFileAsync = promisify(readFile); +let serverLibs: CMServerLibs; + +export const testHarnes = { + description: 'API Development Tests', + loadData: async () => { + if (!serverLibs) { + throw new Error('Server libs not composed yet...'); + } + const contents = await readFileAsync(resolve(__dirname, './data.json'), 'utf8'); + const database = contents.split(/\n\n/); + + // @ts-ignore the private access + serverLibs.beats.adapter.setDB( + database.reduce((inserts: CMBeat[], source) => { + const type = 'beat'; + const data = JSON.parse(source); + + if (data.value.source.type === type) { + inserts.push({ + id: data.value.id.substring(data.value.id.indexOf(':') + 1), + ...data.value.source[type], + }); + } + return inserts; + }, []) + ); + + // @ts-ignore the private access + serverLibs.tags.adapter.setDB( + database.reduce((inserts: BeatTag[], source) => { + const type = 'tag'; + const data = JSON.parse(source); + + if (data.value.source.type === type) { + inserts.push({ + id: data.value.id.substring(data.value.id.indexOf(':') + 1), + ...data.value.source[type], + }); + } + return inserts; + }, []) + ); + + // @ts-ignore the private access + serverLibs.tokens.adapter.setDB( + database.reduce((inserts: TokenEnrollmentData[], source) => { + const type = 'token'; + const data = JSON.parse(source); + + if (data.value.source.type === type) { + inserts.push({ + id: data.value.id.substring(data.value.id.indexOf(':') + 1), + ...data.value.source[type], + }); + } + return inserts; + }, []) + ); + }, + getServerLibs: async () => { + if (!serverLibs) { + const server = new Hapi.Server({ port: 111111 }); + const versionHeader = 'kbn-version'; + const xsrfHeader = 'kbn-xsrf'; + + server.ext('onPostAuth', (req: any, h: any) => { + const isSafeMethod = req.method === 'get' || req.method === 'head'; + const hasVersionHeader = versionHeader in req.headers; + const hasXsrfHeader = xsrfHeader in req.headers; + + if (!isSafeMethod && !hasVersionHeader && !hasXsrfHeader) { + throw badRequest(`Request must contain a ${xsrfHeader} header.`); + } + + return h.continue; + }); + + serverLibs = compose(server); + initManagementServer(serverLibs); + } + return serverLibs; + }, +}; diff --git a/x-pack/plugins/beats_management/server/rest_api/beats/configuration.ts b/x-pack/plugins/beats_management/server/rest_api/beats/configuration.ts new file mode 100644 index 0000000000000..a24d6dee05132 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/beats/configuration.ts @@ -0,0 +1,82 @@ +/* + * 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 Joi from 'joi'; +import { omit } from 'lodash'; +import { BeatTag, CMBeat, ConfigurationBlock } from '../../../common/domain_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; +import { ReturnedConfigurationBlock } from './../../../common/domain_types'; + +export const createGetBeatConfigurationRoute = (libs: CMServerLibs) => ({ + method: 'GET', + path: '/api/beats/agent/{beatId}/configuration', + config: { + validate: { + headers: Joi.object({ + 'kbn-beats-access-token': Joi.string().required(), + }).options({ allowUnknown: true }), + query: Joi.object({ + validSetting: Joi.boolean().default(true), + }), + }, + auth: false, + }, + handler: async (request: any, h: any) => { + const beatId = request.params.beatId; + const accessToken = request.headers['kbn-beats-access-token']; + + let beat; + let tags; + try { + beat = await libs.beats.getById(libs.framework.internalUser, beatId); + if (beat === null) { + return h.response({ message: `Beat "${beatId}" not found` }).code(404); + } + + const isAccessTokenValid = beat.access_token === accessToken; + if (!isAccessTokenValid) { + return h.response({ message: 'Invalid access token' }).code(401); + } + + let newStatus: CMBeat['config_status'] = 'OK'; + if (!request.query.validSetting) { + newStatus = 'ERROR'; + } + + await libs.beats.update(libs.framework.internalUser, beat.id, { + config_status: newStatus, + last_checkin: new Date(), + }); + + tags = await libs.tags.getTagsWithIds(libs.framework.internalUser, beat.tags || []); + } catch (err) { + return wrapEsError(err); + } + + const configurationBlocks = tags.reduce( + (blocks: ReturnedConfigurationBlock[], tag: BeatTag) => { + blocks = blocks.concat( + tag.configuration_blocks.reduce( + (acc: ReturnedConfigurationBlock[], block: ConfigurationBlock) => { + acc.push({ + ...omit(block, ['configs']), + config: block.configs[0], + }); + return acc; + }, + [] + ) + ); + return blocks; + }, + [] + ); + + return { + configuration_blocks: configurationBlocks, + }; + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/beats/enroll.ts b/x-pack/plugins/beats_management/server/rest_api/beats/enroll.ts new file mode 100644 index 0000000000000..266e3baa3829f --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/beats/enroll.ts @@ -0,0 +1,68 @@ +/* + * 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 Joi from 'joi'; +import { omit } from 'lodash'; +import { FrameworkRequest } from '../../lib/adapters/framework/adapter_types'; +import { CMServerLibs } from '../../lib/lib'; +import { BeatEnrollmentStatus } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +// TODO: write to Kibana audit log file +export const createBeatEnrollmentRoute = (libs: CMServerLibs) => ({ + method: 'POST', + path: '/api/beats/agent/{beatId}', + licenseRequired: true, + config: { + auth: false, + validate: { + headers: Joi.object({ + 'kbn-beats-enrollment-token': Joi.string().required(), + }).options({ + allowUnknown: true, + }), + payload: Joi.object({ + host_name: Joi.string().required(), + name: Joi.string().required(), + type: Joi.string().required(), + version: Joi.string().required(), + }).required(), + }, + }, + handler: async (request: FrameworkRequest, h: any) => { + const { beatId } = request.params; + const enrollmentToken = request.headers['kbn-beats-enrollment-token']; + + try { + const { status, accessToken } = await libs.beats.enrollBeat( + enrollmentToken, + beatId, + request.info.remoteAddress, + omit(request.payload, 'enrollment_token') + ); + + switch (status) { + case BeatEnrollmentStatus.ExpiredEnrollmentToken: + return h + .response({ + message: BeatEnrollmentStatus.ExpiredEnrollmentToken, + }) + .code(400); + case BeatEnrollmentStatus.InvalidEnrollmentToken: + return h + .response({ + message: BeatEnrollmentStatus.InvalidEnrollmentToken, + }) + .code(400); + case BeatEnrollmentStatus.Success: + default: + return h.response({ access_token: accessToken }).code(201); + } + } catch (err) { + // TODO move this to kibana route thing in adapter + return wrapEsError(err); + } + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/beats/get.ts b/x-pack/plugins/beats_management/server/rest_api/beats/get.ts new file mode 100644 index 0000000000000..49fac5e9f009c --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/beats/get.ts @@ -0,0 +1,43 @@ +/* + * 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 { CMBeat } from '../../../common/domain_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +export const createGetBeatRoute = (libs: CMServerLibs) => ({ + method: 'GET', + path: '/api/beats/agent/{beatId}/{token?}', + requiredRoles: ['beats_admin'], + handler: async (request: any, h: any) => { + const beatId = request.params.beatId; + + let beat: CMBeat | null; + if (beatId === 'unknown') { + try { + beat = await libs.beats.getByEnrollmentToken(request.user, request.params.token); + if (beat === null) { + return h.response().code(200); + } + } catch (err) { + return wrapEsError(err); + } + } else { + try { + beat = await libs.beats.getById(request.user, beatId); + if (beat === null) { + return h.response({ message: 'Beat not found' }).code(404); + } + } catch (err) { + return wrapEsError(err); + } + } + + delete beat.access_token; + + return beat; + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/beats/list.ts b/x-pack/plugins/beats_management/server/rest_api/beats/list.ts new file mode 100644 index 0000000000000..6dfec291f602b --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/beats/list.ts @@ -0,0 +1,63 @@ +/* + * 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 * as Joi from 'joi'; +import { CMBeat } from '../../../common/domain_types'; +import { FrameworkRequest } from '../../lib/adapters/framework/adapter_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +export const createListAgentsRoute = (libs: CMServerLibs) => ({ + method: 'GET', + path: '/api/beats/agents/{listByAndValue*}', + requiredRoles: ['beats_admin'], + validate: { + headers: Joi.object({ + 'kbn-beats-enrollment-token': Joi.string().required(), + }).options({ + allowUnknown: true, + }), + query: Joi.object({ + ESQuery: Joi.string(), + }), + }, + licenseRequired: true, + handler: async (request: FrameworkRequest) => { + const listByAndValueParts = request.params.listByAndValue + ? request.params.listByAndValue.split('/') + : []; + let listBy: 'tag' | null = null; + let listByValue: string | null = null; + + if (listByAndValueParts.length === 2) { + listBy = listByAndValueParts[0]; + listByValue = listByAndValueParts[1]; + } + + try { + let beats: CMBeat[]; + + switch (listBy) { + case 'tag': + beats = await libs.beats.getAllWithTag(request.user, listByValue || ''); + break; + + default: + beats = await libs.beats.getAll( + request.user, + request.query && request.query.ESQuery ? JSON.parse(request.query.ESQuery) : undefined + ); + + break; + } + + return { beats }; + } catch (err) { + // TODO move this to kibana route thing in adapter + return wrapEsError(err); + } + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/beats/tag_assignment.ts b/x-pack/plugins/beats_management/server/rest_api/beats/tag_assignment.ts new file mode 100644 index 0000000000000..91cda6e9524f9 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/beats/tag_assignment.ts @@ -0,0 +1,43 @@ +/* + * 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 Joi from 'joi'; +import { BeatsTagAssignment } from '../../../public/lib/adapters/beats/adapter_types'; +import { FrameworkRequest } from '../../lib/adapters/framework/adapter_types'; + +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +// TODO: write to Kibana audit log file +export const createTagAssignmentsRoute = (libs: CMServerLibs) => ({ + method: 'POST', + path: '/api/beats/agents_tags/assignments', + licenseRequired: true, + requiredRoles: ['beats_admin'], + config: { + validate: { + payload: Joi.object({ + assignments: Joi.array().items( + Joi.object({ + beatId: Joi.string().required(), + tag: Joi.string().required(), + }) + ), + }).required(), + }, + }, + handler: async (request: FrameworkRequest) => { + const { assignments }: { assignments: BeatsTagAssignment[] } = request.payload; + + try { + const response = await libs.beats.assignTagsToBeats(request.user, assignments); + return response; + } catch (err) { + // TODO move this to kibana route thing in adapter + return wrapEsError(err); + } + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/beats/tag_removal.ts b/x-pack/plugins/beats_management/server/rest_api/beats/tag_removal.ts new file mode 100644 index 0000000000000..d1912d96fdcdb --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/beats/tag_removal.ts @@ -0,0 +1,41 @@ +/* + * 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 Joi from 'joi'; +import { FrameworkRequest } from '../../lib/adapters/framework/adapter_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +// TODO: write to Kibana audit log file +export const createTagRemovalsRoute = (libs: CMServerLibs) => ({ + method: 'POST', + path: '/api/beats/agents_tags/removals', + licenseRequired: true, + requiredRoles: ['beats_admin'], + config: { + validate: { + payload: Joi.object({ + removals: Joi.array().items( + Joi.object({ + beatId: Joi.string().required(), + tag: Joi.string().required(), + }) + ), + }).required(), + }, + }, + handler: async (request: FrameworkRequest) => { + const { removals } = request.payload; + + try { + const response = await libs.beats.removeTagsFromBeats(request.user, removals); + return response; + } catch (err) { + // TODO move this to kibana route thing in adapter + return wrapEsError(err); + } + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/beats/update.ts b/x-pack/plugins/beats_management/server/rest_api/beats/update.ts new file mode 100644 index 0000000000000..64e08330734d0 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/beats/update.ts @@ -0,0 +1,70 @@ +/* + * 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 Joi from 'joi'; +import { FrameworkRequest } from '../../lib/adapters/framework/adapter_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +// TODO: write to Kibana audit log file (include who did the verification as well) +export const createBeatUpdateRoute = (libs: CMServerLibs) => ({ + method: 'PUT', + path: '/api/beats/agent/{beatId}', + licenseRequired: true, + requiredRoles: ['beats_admin'], + config: { + validate: { + headers: Joi.object({ + 'kbn-beats-access-token': Joi.string(), + }).options({ + allowUnknown: true, + }), + params: Joi.object({ + beatId: Joi.string(), + }), + payload: Joi.object({ + active: Joi.bool(), + ephemeral_id: Joi.string(), + host_name: Joi.string(), + local_configuration_yml: Joi.string(), + metadata: Joi.object(), + name: Joi.string(), + type: Joi.string(), + version: Joi.string(), + }), + }, + }, + handler: async (request: FrameworkRequest, h: any) => { + const { beatId } = request.params; + const accessToken = request.headers['kbn-beats-access-token']; + const remoteAddress = request.info.remoteAddress; + const userOrToken = accessToken || request.user; + + if (request.user.kind === 'unauthenticated' && request.payload.active !== undefined) { + return h + .response({ message: 'access-token is not a valid auth type to change beat status' }) + .code(401); + } + + try { + const status = await libs.beats.update(userOrToken, beatId, { + ...request.payload, + host_ip: remoteAddress, + }); + + switch (status) { + case 'beat-not-found': + return h.response({ message: 'Beat not found', success: false }).code(404); + case 'invalid-access-token': + return h.response({ message: 'Invalid access token', success: false }).code(401); + } + + return h.response({ success: true }).code(204); + } catch (err) { + return wrapEsError(err); + } + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/tags/delete.ts b/x-pack/plugins/beats_management/server/rest_api/tags/delete.ts new file mode 100644 index 0000000000000..0f138ecf04a14 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/tags/delete.ts @@ -0,0 +1,28 @@ +/* + * 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 { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +export const createDeleteTagsWithIdsRoute = (libs: CMServerLibs) => ({ + method: 'DELETE', + path: '/api/beats/tags/{tagIds}', + requiredRoles: ['beats_admin'], + licenseRequired: true, + handler: async (request: any) => { + const tagIdString: string = request.params.tagIds; + const tagIds = tagIdString.split(',').filter((id: string) => id.length > 0); + + let success: boolean; + try { + success = await libs.tags.delete(request.user, tagIds); + } catch (err) { + return wrapEsError(err); + } + + return { success }; + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/tags/get.ts b/x-pack/plugins/beats_management/server/rest_api/tags/get.ts new file mode 100644 index 0000000000000..36d00208066c2 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/tags/get.ts @@ -0,0 +1,29 @@ +/* + * 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 { BeatTag } from '../../../common/domain_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +export const createGetTagsWithIdsRoute = (libs: CMServerLibs) => ({ + method: 'GET', + path: '/api/beats/tags/{tagIds}', + requiredRoles: ['beats_admin'], + licenseRequired: true, + handler: async (request: any) => { + const tagIdString: string = request.params.tagIds; + const tagIds = tagIdString.split(',').filter((id: string) => id.length > 0); + + let tags: BeatTag[]; + try { + tags = await libs.tags.getTagsWithIds(request.user, tagIds); + } catch (err) { + return wrapEsError(err); + } + + return tags; + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/tags/list.ts b/x-pack/plugins/beats_management/server/rest_api/tags/list.ts new file mode 100644 index 0000000000000..f255a627220d3 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/tags/list.ts @@ -0,0 +1,40 @@ +/* + * 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 * as Joi from 'joi'; +import { BeatTag } from '../../../common/domain_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +export const createListTagsRoute = (libs: CMServerLibs) => ({ + method: 'GET', + path: '/api/beats/tags', + requiredRoles: ['beats_admin'], + validate: { + headers: Joi.object({ + 'kbn-beats-enrollment-token': Joi.string().required(), + }).options({ + allowUnknown: true, + }), + query: Joi.object({ + ESQuery: Joi.string(), + }), + }, + licenseRequired: true, + handler: async (request: any) => { + let tags: BeatTag[]; + try { + tags = await libs.tags.getAll( + request.user + // request.query ? JSON.parse(request.query.ESQuery) : undefined + ); + } catch (err) { + return wrapEsError(err); + } + + return tags; + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/tags/set.ts b/x-pack/plugins/beats_management/server/rest_api/tags/set.ts new file mode 100644 index 0000000000000..600eef42d90af --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/tags/set.ts @@ -0,0 +1,57 @@ +/* + * 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 Joi from 'joi'; +import { get, values } from 'lodash'; +import { ConfigurationBlockTypes } from '../../../common/constants'; +import { FrameworkRequest } from '../../lib/adapters/framework/adapter_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +// TODO: write to Kibana audit log file +export const createSetTagRoute = (libs: CMServerLibs) => ({ + method: 'PUT', + path: '/api/beats/tag/{tag}', + licenseRequired: true, + requiredRoles: ['beats_admin'], + config: { + validate: { + params: Joi.object({ + tag: Joi.string(), + }), + payload: Joi.object({ + color: Joi.string(), + configuration_blocks: Joi.array().items( + Joi.object({ + configs: Joi.array() + .items(Joi.object()) + .required(), + description: Joi.string().allow(''), + type: Joi.string() + .only(values(ConfigurationBlockTypes)) + .required(), + }) + ), + }).allow(null), + }, + }, + handler: async (request: FrameworkRequest, h: any) => { + const defaultConfig = { configuration_blocks: [], color: '#DD0A73' }; + const config = get(request, 'payload', defaultConfig) || defaultConfig; + + try { + const { isValid, result } = await libs.tags.saveTag(request.user, request.params.tag, config); + if (!isValid) { + return h.response({ result, success: false }).code(400); + } + + return h.response({ success: true }).code(result === 'created' ? 201 : 200); + } catch (err) { + // TODO move this to kibana route thing in adapter + return wrapEsError(err); + } + }, +}); diff --git a/x-pack/plugins/beats_management/server/rest_api/tokens/create.ts b/x-pack/plugins/beats_management/server/rest_api/tokens/create.ts new file mode 100644 index 0000000000000..42604ced8a972 --- /dev/null +++ b/x-pack/plugins/beats_management/server/rest_api/tokens/create.ts @@ -0,0 +1,41 @@ +/* + * 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 Joi from 'joi'; +import { get } from 'lodash'; +import { FrameworkRequest } from '../../lib/adapters/framework/adapter_types'; +import { CMServerLibs } from '../../lib/lib'; +import { wrapEsError } from '../../utils/error_wrappers'; + +// TODO: write to Kibana audit log file +const DEFAULT_NUM_TOKENS = 1; +export const createTokensRoute = (libs: CMServerLibs) => ({ + method: 'POST', + path: '/api/beats/enrollment_tokens', + licenseRequired: true, + requiredRoles: ['beats_admin'], + config: { + validate: { + payload: Joi.object({ + num_tokens: Joi.number() + .optional() + .default(DEFAULT_NUM_TOKENS) + .min(1), + }).allow(null), + }, + }, + handler: async (request: FrameworkRequest) => { + const numTokens = get(request, 'payload.num_tokens', DEFAULT_NUM_TOKENS); + + try { + const tokens = await libs.tokens.createEnrollmentTokens(request.user, numTokens); + return { tokens }; + } catch (err) { + // TODO move this to kibana route thing in adapter + return wrapEsError(err); + } + }, +}); diff --git a/x-pack/plugins/beats_management/server/utils/README.md b/x-pack/plugins/beats_management/server/utils/README.md new file mode 100644 index 0000000000000..8a6a27aa29867 --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/README.md @@ -0,0 +1 @@ +Utils should be data processing functions and other tools.... all in all utils is basicly everything that is not an adaptor, or presenter and yet too much to put in a lib. \ No newline at end of file diff --git a/x-pack/plugins/beats_management/server/utils/error_wrappers/index.ts b/x-pack/plugins/beats_management/server/utils/error_wrappers/index.ts new file mode 100644 index 0000000000000..3756b0c74fb10 --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/error_wrappers/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { wrapEsError } from './wrap_es_error'; diff --git a/x-pack/plugins/beats_management/server/utils/error_wrappers/wrap_es_error.test.ts b/x-pack/plugins/beats_management/server/utils/error_wrappers/wrap_es_error.test.ts new file mode 100644 index 0000000000000..e7fb1c2adda21 --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/error_wrappers/wrap_es_error.test.ts @@ -0,0 +1,42 @@ +/* + * 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 { wrapEsError } from './wrap_es_error'; + +describe('wrap_es_error', () => { + describe('#wrapEsError', () => { + let originalError: any; + beforeEach(() => { + originalError = new Error('I am an error'); + originalError.statusCode = 404; + }); + + it('should return a Boom object', () => { + const wrappedError = wrapEsError(originalError); + + expect(wrappedError.isBoom).toEqual(true); + }); + + it('should return the correct Boom object', () => { + const wrappedError = wrapEsError(originalError); + + expect(wrappedError.output.statusCode).toEqual(originalError.statusCode); + expect(wrappedError.output.payload.message).toEqual(originalError.message); + }); + + it('should return invalid permissions message for 403 errors', () => { + const securityError = new Error('I am an error'); + // @ts-ignore + securityError.statusCode = 403; + const wrappedError = wrapEsError(securityError); + + expect(wrappedError.isBoom).toEqual(true); + expect(wrappedError.message).toEqual( + 'Insufficient user permissions for managing Beats configuration' + ); + }); + }); +}); diff --git a/x-pack/plugins/beats_management/server/utils/error_wrappers/wrap_es_error.ts b/x-pack/plugins/beats_management/server/utils/error_wrappers/wrap_es_error.ts new file mode 100644 index 0000000000000..16c35fad7d63b --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/error_wrappers/wrap_es_error.ts @@ -0,0 +1,24 @@ +/* + * 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. + */ + +// @ts-ignore +import Boom from 'boom'; + +/** + * Wraps ES errors into a Boom error response and returns it + * This also handles the permissions issue gracefully + * + * @param err Object ES error + * @return Object Boom error response + */ +export function wrapEsError(err: any) { + const statusCode = err.statusCode; + if (statusCode === 403) { + return Boom.forbidden('Insufficient user permissions for managing Beats configuration'); + } + + return Boom.boomify(err, { statusCode: err.statusCode }); +} diff --git a/x-pack/plugins/beats_management/server/utils/find_non_existent_items.ts b/x-pack/plugins/beats_management/server/utils/find_non_existent_items.ts new file mode 100644 index 0000000000000..0e9b4f0b6fa5e --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/find_non_existent_items.ts @@ -0,0 +1,19 @@ +/* + * 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. + */ + +interface RandomItem { + id: string; + [key: string]: any; +} + +export function findNonExistentItems(items: RandomItem[], requestedItems: any) { + return requestedItems.reduce((nonExistentItems: string[], requestedItem: string, idx: number) => { + if (items.findIndex((item: RandomItem) => item && item.id === requestedItem) === -1) { + nonExistentItems.push(requestedItems[idx]); + } + return nonExistentItems; + }, []); +} diff --git a/x-pack/plugins/beats_management/server/utils/index_templates/beats_template.json b/x-pack/plugins/beats_management/server/utils/index_templates/beats_template.json new file mode 100644 index 0000000000000..2640c25c1d307 --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/index_templates/beats_template.json @@ -0,0 +1,109 @@ +{ + "index_patterns": [".management-beats"], + "version": 65000, + "settings": { + "index": { + "number_of_shards": 1, + "auto_expand_replicas": "0-1", + "codec": "best_compression" + } + }, + "mappings": { + "_doc": { + "dynamic": "strict", + "properties": { + "type": { + "type": "keyword" + }, + "enrollment_token": { + "properties": { + "token": { + "type": "keyword" + }, + "expires_on": { + "type": "date" + } + } + }, + "tag": { + "properties": { + "id": { + "type": "keyword" + }, + "color": { + "type": "keyword" + }, + "last_updated": { + "type": "date" + }, + "configuration_blocks": { + "type": "nested", + "properties": { + "type": { + "type": "keyword" + }, + "description": { + "type": "text" + }, + "configs": { + "type": "nested", + "dynamic": true + } + } + } + } + }, + "beat": { + "properties": { + "id": { + "type": "keyword" + }, + "config_status": { + "type": "keyword" + }, + "active": { + "type": "boolean" + }, + "last_checkin": { + "type": "date" + }, + "enrollment_token": { + "type": "keyword" + }, + "access_token": { + "type": "keyword" + }, + "verified_on": { + "type": "date" + }, + "type": { + "type": "keyword" + }, + "version": { + "type": "keyword" + }, + "host_ip": { + "type": "ip" + }, + "host_name": { + "type": "keyword" + }, + "ephemeral_id": { + "type": "keyword" + }, + "tags": { + "type": "keyword" + }, + "metadata": { + "dynamic": "true", + "type": "object" + }, + "name": { + "type": "keyword" + } + } + } + } + } + } +} diff --git a/x-pack/plugins/beats_management/server/utils/index_templates/index.ts b/x-pack/plugins/beats_management/server/utils/index_templates/index.ts new file mode 100644 index 0000000000000..eeaef7a68d49f --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/index_templates/index.ts @@ -0,0 +1,8 @@ +/* + * 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 beatsIndexTemplate from './beats_template.json'; +export { beatsIndexTemplate }; diff --git a/x-pack/plugins/beats_management/server/utils/polyfills.ts b/x-pack/plugins/beats_management/server/utils/polyfills.ts new file mode 100644 index 0000000000000..5291e2c72be7d --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/polyfills.ts @@ -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. + */ + +export const entries = (obj: any) => { + const ownProps = Object.keys(obj); + let i = ownProps.length; + const resArray = new Array(i); // preallocate the Array + + while (i--) { + resArray[i] = [ownProps[i], obj[ownProps[i]]]; + } + + return resArray; +}; diff --git a/x-pack/plugins/beats_management/server/utils/wrap_request.ts b/x-pack/plugins/beats_management/server/utils/wrap_request.ts new file mode 100644 index 0000000000000..83838eb12b335 --- /dev/null +++ b/x-pack/plugins/beats_management/server/utils/wrap_request.ts @@ -0,0 +1,37 @@ +/* + * 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 { + FrameworkRequest, + FrameworkWrappableRequest, +} from '../lib/adapters/framework/adapter_types'; + +export const internalAuthData = Symbol('internalAuthData'); + +export function wrapRequest( + req: InternalRequest +): FrameworkRequest { + const { params, payload, query, headers, info } = req; + + const isAuthenticated = headers.authorization != null; + + return { + // @ts-ignore -- partial applucation, adapter adds other user data + user: isAuthenticated + ? { + kind: 'authenticated', + [internalAuthData]: headers, + } + : { + kind: 'unauthenticated', + }, + headers, + info, + params, + payload, + query, + }; +} diff --git a/x-pack/plugins/beats_management/tsconfig.json b/x-pack/plugins/beats_management/tsconfig.json new file mode 100644 index 0000000000000..67fefc7286ca4 --- /dev/null +++ b/x-pack/plugins/beats_management/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.json", + "exclude": ["**/node_modules/**"], + "paths": { + "react": ["../../../node_modules/@types/react"] + } +} diff --git a/x-pack/plugins/beats_management/types/eui.d.ts b/x-pack/plugins/beats_management/types/eui.d.ts new file mode 100644 index 0000000000000..1b5ad7aa0a374 --- /dev/null +++ b/x-pack/plugins/beats_management/types/eui.d.ts @@ -0,0 +1,18 @@ +/* + * 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. + */ + +/** + * /!\ These type definitions are temporary until the upstream @elastic/eui + * package includes them. + */ + +import * as eui from '@elastic/eui'; +import { Moment } from 'moment'; +import { ChangeEventHandler, MouseEventHandler, ReactType, Ref, SFC } from 'react'; + +declare module '@elastic/eui' { + +} diff --git a/x-pack/plugins/beats_management/types/formsy.d.ts b/x-pack/plugins/beats_management/types/formsy.d.ts new file mode 100644 index 0000000000000..f153e80d13e53 --- /dev/null +++ b/x-pack/plugins/beats_management/types/formsy.d.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +declare module 'formsy-react' { + import React, { SFC } from 'react'; + let Formsy: SFC; + export interface FormsyInputProps { + getErrorMessage(): any; + getValue(): any; + hasValue(): boolean; + isFormDisabled(): boolean; + isFormSubmitted(): boolean; + isPristine(): boolean; + isRequired(): boolean; + isValid(): boolean; + isValidValue(): boolean; + resetValue(): void; + setValidations(validations: any, required: boolean): void; + setValue(value: any): void; + showError(): boolean; + showRequired(): boolean; + } + + export default Formsy; + export type FormData = { [fieldName in keyof FormShape]: string }; + export type FieldValue = string | null | undefined; + + type ValidationMethod = ( + values: FormData, + value: string | null | undefined + ) => void; + + export function addValidationRule( + validationName: string, + validationMethod: ValidationMethod + ): void; + export function withFormsy(component: any): any; + + // function withFormsy( + // component: + // | React.Component + // | SFC + // ): React.Component; +} diff --git a/x-pack/plugins/beats_management/types/kibana.d.ts b/x-pack/plugins/beats_management/types/kibana.d.ts new file mode 100644 index 0000000000000..e95dc0df93bea --- /dev/null +++ b/x-pack/plugins/beats_management/types/kibana.d.ts @@ -0,0 +1,57 @@ +/* + * 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. + */ + +declare module 'ui/index_patterns' { + export type IndexPattern = any; + + export interface StaticIndexPatternField { + name: string; + type: string; + aggregatable: boolean; + searchable: boolean; + } + + export interface StaticIndexPattern { + fields: StaticIndexPatternField[]; + title: string; + } +} + +declare module 'ui/autocomplete_providers' { + import { StaticIndexPattern } from 'ui/index_patterns'; + + export type AutocompleteProvider = ( + args: { + config: { + get(configKey: string): any; + }; + indexPatterns: StaticIndexPattern[]; + boolFilter: any; + } + ) => GetSuggestions; + + export type GetSuggestions = ( + args: { + query: string; + selectionStart: number; + selectionEnd: number; + } + ) => Promise; + + export type AutocompleteSuggestionType = 'field' | 'value' | 'operator' | 'conjunction'; + + export interface AutocompleteSuggestion { + description: string; + end: number; + start: number; + text: string; + type: AutocompleteSuggestionType; + } + + export function addAutocompleteProvider(language: string, provider: AutocompleteProvider): void; + + export function getAutocompleteProvider(language: string): AutocompleteProvider | undefined; +} diff --git a/x-pack/plugins/beats_management/wallaby.js b/x-pack/plugins/beats_management/wallaby.js new file mode 100644 index 0000000000000..bb57d22afafb3 --- /dev/null +++ b/x-pack/plugins/beats_management/wallaby.js @@ -0,0 +1,60 @@ +/* + * 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. + */ +const path = require('path'); +process.env.NODE_PATH = path.join(__dirname, '..', '..', 'node_modules'); + +module.exports = function (wallaby) { + return { + debug: true, + files: [ + './tsconfig.json', + //'plugins/beats/public/**/*.+(js|jsx|ts|tsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)', + 'server/**/*.+(js|jsx|ts|tsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)', + 'common/**/*.+(js|jsx|ts|tsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)', + 'public/**/*.+(js|jsx|ts|tsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)', + '!**/*.test.ts', + ], + + tests: ['**/*.test.ts', '**/*.test.tsx'], + env: { + type: 'node', + runner: 'node', + }, + testFramework: 'jest', + compilers: { + '**/*.ts?(x)': wallaby.compilers.typeScript({ + typescript: require('typescript'), // eslint-disable-line + }), + '**/*.js': wallaby.compilers.babel({ + babelrc: false, + presets: [require.resolve('@kbn/babel-preset/node_preset')], + }), + }, + + setup: wallaby => { + const path = require('path'); + + const kibanaDirectory = path.resolve(wallaby.localProjectDir, '..', '..', '..'); + + wallaby.testFramework.configure({ + rootDir: wallaby.localProjectDir, + moduleNameMapper: { + '^ui/(.*)': `${kibanaDirectory}/src/ui/public/$1`, + // eslint-disable-next-line + '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `${kibanaDirectory}/src/dev/jest/mocks/file_mock.js`, + '\\.(css|less|scss)$': `${kibanaDirectory}/src/dev/jest/mocks/style_mock.js`, + }, + testURL: 'http://localhost', + setupFiles: [`${kibanaDirectory}/x-pack/dev-tools/jest/setup/enzyme.js`], + snapshotSerializers: [`${kibanaDirectory}/node_modules/enzyme-to-json/serializer`], + transform: { + '^.+\\.js$': `${kibanaDirectory}/src/dev/jest/babel_transform.js`, + //"^.+\\.tsx?$": `${kibanaDirectory}/src/dev/jest/ts_transform.js`, + }, + }); + }, + }; +}; diff --git a/x-pack/plugins/canvas/.babelrc b/x-pack/plugins/canvas/.babelrc deleted file mode 100644 index 511759632645b..0000000000000 --- a/x-pack/plugins/canvas/.babelrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "plugins": [ - "transform-object-rest-spread", - "transform-async-to-generator", - "transform-class-properties" - ], - "presets": [ - "react", - [ - "env", - { - "targets": { - "node": "current" - } - } - ] - ] -} diff --git a/x-pack/plugins/canvas/README.md b/x-pack/plugins/canvas/README.md index 9d31dd9768657..5451ffd8a08cd 100644 --- a/x-pack/plugins/canvas/README.md +++ b/x-pack/plugins/canvas/README.md @@ -6,17 +6,17 @@ Canvas is included with X-Pack and requires a Basic license or better to use. -To run Canvas from dev mode, you'll need to build the Canvas plugins at least once. To do so, use the following command: +Canvas has its own build pipeline that gets triggered as part of `node scripts/kbn bootstrap`. However, should you ever need to run the build manually, like if you updated one of the plugins, you can do so with the following command: ```bash -yarn kbn run build:plugins --include canvas +yarn kbn run build --include x-pack ``` ### Developing in Canvas -Canvas has its plugin build process, so if you are planning to work on any of the plugin code, you'll need to use the plugin build process. +As mentioned above, Canvas has its plugin build process, so if you are planning to work on any of the plugin code, you'll need to use the plugin build process. -**If you are not working on Canvas plugins, you can just start Kibana like normal, as long as you ran the build command above at least once**. +**If you are not working on Canvas plugins, you can just start Kibana like normal, as long as you've used `yarn kbn bootstrap`**. The easiest way to do develop on Canvas and have the plugins built automatically is to cd into the canvas plugin path and start the process from there: @@ -28,10 +28,10 @@ yarn start There are several other scripts available once you are in that path as well. -- `yarn build:plugins` - local alias to build Canvas plugins, an alternative to use `kbn`. -- `yarn lint` - local linter setup, can also be used with the `--fix` flag for automatic fixes. -- `yarn test` - local test runner, does not require a real Kibana instance. Runs all the same unit tests the normal runner does, just limited to Canvas, and *waaaaaay* faster. -- `yarn test:dev` - Same as above, but watches for changes and only runs tests for the given scope (browser, server, or common). +- `node scripts/build_plugins` - local alias to build Canvas plugins, an alternative to using `kbn`. +- `node scripts/lint` - local linter setup, can also be used with the `--fix` flag for automatic fixes. +- `node scripts/test` - local test runner, does not require a real Kibana instance. Runs all the same unit tests the normal runner does, just limited to Canvas, and *waaaaaay* faster (currently 12 seconds or less). +- `node scripts/test_dev` - Same as above, but watches for changes and only runs tests for the given scope (browser, server, or common). ## Feature Questions diff --git a/x-pack/plugins/canvas/__tests__/fixtures/function_specs.js b/x-pack/plugins/canvas/__tests__/fixtures/function_specs.js new file mode 100644 index 0000000000000..433b5ec64b753 --- /dev/null +++ b/x-pack/plugins/canvas/__tests__/fixtures/function_specs.js @@ -0,0 +1,12 @@ +/* + * 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 { Fn } from '../../common/lib/fn'; +import { functions as browserFns } from '../../canvas_plugin_src/functions/browser'; +import { functions as commonFns } from '../../canvas_plugin_src/functions/common'; +import { functions as serverFns } from '../../canvas_plugin_src/functions/server/src'; + +export const functionSpecs = [...browserFns, ...commonFns, ...serverFns].map(fn => new Fn(fn())); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_bar/header.png b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_bar/header.png new file mode 100644 index 0000000000000..f28ad4a3ce4be Binary files /dev/null and b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_bar/header.png differ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_bar/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_bar/index.js new file mode 100644 index 0000000000000..c1e5386c86de7 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_bar/index.js @@ -0,0 +1,24 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import header from './header.png'; + +export const horizontalProgressBar = () => ({ + name: 'horizontalProgressBar', + displayName: 'Horizontal progress bar', + help: 'Displays progress as a portion of a horizontal bar', + width: 400, + height: 30, + image: header, + expression: `filters +| demodata +| math "mean(percent_uptime)" +| progress shape="horizontalBar" label={formatnumber 0%} font={font size=24 family="${ + openSans.value + }" color="#000000" align=center} +| render`, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_pill/header.png b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_pill/header.png new file mode 100644 index 0000000000000..2eaeb2e976a78 Binary files /dev/null and b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_pill/header.png differ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_pill/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_pill/index.js new file mode 100644 index 0000000000000..9e6590b68d72b --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/horizontal_progress_pill/index.js @@ -0,0 +1,24 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import header from './header.png'; + +export const horizontalProgressPill = () => ({ + name: 'horizontalProgressPill', + displayName: 'Horizontal progress pill', + help: 'Displays progress as a portion of a horizontal pill', + width: 400, + height: 30, + image: header, + expression: `filters +| demodata +| math "mean(percent_uptime)" +| progress shape="horizontalPill" label={formatnumber 0%} font={font size=24 family="${ + openSans.value + }" color="#000000" align=center} +| render`, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/image/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/image/index.js index e4345d8cffa7b..6c6b8ca9f3e64 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/elements/image/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/image/index.js @@ -9,8 +9,8 @@ import header from './header.png'; export const image = () => ({ name: 'image', displayName: 'Image', - help: 'A static image.', + help: 'A static image', image: header, - expression: `image mode="contain" + expression: `image dataurl=null mode="contain" | render`, }); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/index.js index 15d98394e0475..3fb0f2940be94 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/elements/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/index.js @@ -11,11 +11,16 @@ import { donut } from './donut'; import { dropdownFilter } from './dropdown_filter'; import { image } from './image'; import { horizontalBarChart } from './horiz_bar_chart'; +import { horizontalProgressBar } from './horizontal_progress_bar'; +import { horizontalProgressPill } from './horizontal_progress_pill'; import { lineChart } from './line_chart'; import { markdown } from './markdown'; import { metric } from './metric'; import { pie } from './pie'; import { plot } from './plot'; +import { progressGauge } from './progress_gauge'; +import { progressSemicircle } from './progress_semicircle'; +import { progressWheel } from './progress_wheel'; import { repeatImage } from './repeatImage'; import { revealImage } from './revealImage'; import { shape } from './shape'; @@ -23,6 +28,8 @@ import { table } from './table'; import { tiltedPie } from './tilted_pie'; import { timeFilter } from './time_filter'; import { verticalBarChart } from './vert_bar_chart'; +import { verticalProgressBar } from './vertical_progress_bar'; +import { verticalProgressPill } from './vertical_progress_pill'; export const elementSpecs = [ areaChart, @@ -32,11 +39,16 @@ export const elementSpecs = [ dropdownFilter, image, horizontalBarChart, + horizontalProgressBar, + horizontalProgressPill, lineChart, markdown, metric, pie, plot, + progressGauge, + progressSemicircle, + progressWheel, repeatImage, revealImage, shape, @@ -44,4 +56,6 @@ export const elementSpecs = [ tiltedPie, timeFilter, verticalBarChart, + verticalProgressBar, + verticalProgressPill, ]; diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/markdown/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/markdown/index.js index 48a161d8d20fc..89c7b1203e8f3 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/elements/markdown/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/markdown/index.js @@ -13,18 +13,18 @@ export const markdown = () => ({ image: header, expression: `filters | demodata -| markdown "### Welcome to the Markdown Element. +| markdown "### Welcome to the Markdown element Good news! You're already connected to some demo data! -The datatable contains +The data table contains **{{rows.length}} rows**, each containing the following columns: {{#each columns}} **{{name}}** {{/each}} -You can use standard Markdown in here, but you can also access your piped-in data using Handlebars. If you want to know more, check out the [Handlebars Documentation](http://handlebarsjs.com/expressions.html) +You can use standard Markdown in here, but you can also access your piped-in data using Handlebars. If you want to know more, check out the [Handlebars documentation](http://handlebarsjs.com/expressions.html). #### Enjoy!" | render`, }); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_gauge/header.png b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_gauge/header.png new file mode 100644 index 0000000000000..8340c8a53b6ce Binary files /dev/null and b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_gauge/header.png differ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_gauge/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_gauge/index.js new file mode 100644 index 0000000000000..cb2151cc9643b --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_gauge/index.js @@ -0,0 +1,24 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import header from './header.png'; + +export const progressGauge = () => ({ + name: 'progressGauge', + displayName: 'Progress gauge', + help: 'Displays progress as a portion of a gauge', + width: 200, + height: 200, + image: header, + expression: `filters +| demodata +| math "mean(percent_uptime)" +| progress shape="gauge" label={formatnumber 0%} font={font size=24 family="${ + openSans.value + }" color="#000000" align=center} +| render`, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_semicircle/header.png b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_semicircle/header.png new file mode 100644 index 0000000000000..b5b708529edd4 Binary files /dev/null and b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_semicircle/header.png differ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_semicircle/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_semicircle/index.js new file mode 100644 index 0000000000000..b0b79c452c18f --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_semicircle/index.js @@ -0,0 +1,24 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import header from './header.png'; + +export const progressSemicircle = () => ({ + name: 'progressSemicircle', + displayName: 'Progress semicircle', + help: 'Displays progress as a portion of a semicircle', + width: 200, + height: 100, + image: header, + expression: `filters +| demodata +| math "mean(percent_uptime)" +| progress shape="semicircle" label={formatnumber 0%} font={font size=24 family="${ + openSans.value + }" color="#000000" align=center} +| render`, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_wheel/header.png b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_wheel/header.png new file mode 100644 index 0000000000000..71e5d7e29444e Binary files /dev/null and b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_wheel/header.png differ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_wheel/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_wheel/index.js new file mode 100644 index 0000000000000..1e68bb406f978 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/progress_wheel/index.js @@ -0,0 +1,24 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import header from './header.png'; + +export const progressWheel = () => ({ + name: 'progressWheel', + displayName: 'Progress wheel', + help: 'Displays progress as a portion of a wheel', + width: 200, + height: 200, + image: header, + expression: `filters +| demodata +| math "mean(percent_uptime)" +| progress shape="wheel" label={formatnumber 0%} font={font size=24 family="${ + openSans.value + }" color="#000000" align=center} +| render`, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/register.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/register.js index 535bc6ee6edfe..cee9760d2d4cf 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/elements/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { elementSpecs } from './index'; elementSpecs.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/revealImage/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/revealImage/index.js index cd6a820e7610a..e064ffba32848 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/elements/revealImage/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/revealImage/index.js @@ -13,7 +13,7 @@ export const revealImage = () => ({ image: header, expression: `filters | demodata -| math "sum(min(cost) / max(cost))" +| math "mean(percent_uptime)" | revealImage origin=bottom image=null | render`, }); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_bar/header.png b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_bar/header.png new file mode 100644 index 0000000000000..b9ff963e92c31 Binary files /dev/null and b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_bar/header.png differ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_bar/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_bar/index.js new file mode 100644 index 0000000000000..559da533b13fc --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_bar/index.js @@ -0,0 +1,24 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import header from './header.png'; + +export const verticalProgressBar = () => ({ + name: 'verticalProgressBar', + displayName: 'Vertical progress bar', + help: 'Displays progress as a portion of a vertical bar', + width: 80, + height: 400, + image: header, + expression: `filters +| demodata +| math "mean(percent_uptime)" +| progress shape="verticalBar" label={formatnumber 0%} font={font size=24 family="${ + openSans.value + }" color="#000000" align=center} +| render`, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_pill/header.png b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_pill/header.png new file mode 100644 index 0000000000000..a4ac6b57da236 Binary files /dev/null and b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_pill/header.png differ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_pill/index.js b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_pill/index.js new file mode 100644 index 0000000000000..1096fb4cdf2df --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/elements/vertical_progress_pill/index.js @@ -0,0 +1,24 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import header from './header.png'; + +export const verticalProgressPill = () => ({ + name: 'verticalProgressPill', + displayName: 'Vertical progress pill', + help: 'Displays progress as a portion of a vertical pill', + width: 80, + height: 400, + image: header, + expression: `filters +| demodata +| math "mean(percent_uptime)" +| progress shape="verticalPill" label={formatnumber 0%} font={font size=24 family="${ + openSans.value + }" color="#000000" align=center} +| render`, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/markdown.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/markdown.js index 8f35a1eb74951..7e6a78832508e 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/markdown.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/markdown.js @@ -25,7 +25,7 @@ export const markdown = () => ({ }, font: { types: ['style'], - help: 'Font settings. Technically you can stick other styles in here too!', + help: 'Font settings. Technically, you can add other styles in here as well', default: '{font}', }, }, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/register.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/register.js index f4e7fa4b467b5..c92bebac5d192 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { functions } from './index'; functions.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/__tests__/font.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/__tests__/font.js index 7816283c370b3..b05945c500e11 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/__tests__/font.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/__tests__/font.js @@ -160,9 +160,9 @@ describe('font', () => { expect(result.spec).to.have.property('textAlign', 'right'); expect(result.css).to.contain('text-align:right'); - result = fn(null, { align: 'justified' }); - expect(result.spec).to.have.property('textAlign', 'justified'); - expect(result.css).to.contain('text-align:justified'); + result = fn(null, { align: 'justify' }); + expect(result.spec).to.have.property('textAlign', 'justify'); + expect(result.css).to.contain('text-align:justify'); }); it(`defaults to 'left'`, () => { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/__tests__/progress.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/__tests__/progress.js new file mode 100644 index 0000000000000..5b16b80ddd744 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/__tests__/progress.js @@ -0,0 +1,173 @@ +/* + * 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 expect from 'expect.js'; +import { progress } from '../progress'; +import { functionWrapper } from '../../../../__tests__/helpers/function_wrapper'; +import { fontStyle } from './fixtures/test_styles'; + +describe('progress', () => { + const fn = functionWrapper(progress); + const value = 0.33; + + it('returns a render as progress', () => { + const result = fn(0.2); + expect(result) + .to.have.property('type', 'render') + .and.to.have.property('as', 'progress'); + }); + + it('sets the progress to context', () => { + const result = fn(0.58); + expect(result.value).to.have.property('value', 0.58); + }); + + it(`throws when context is outside of the valid range`, () => { + expect(fn) + .withArgs(3) + .to.throwException(e => { + expect(e.message).to.be('Context must be between 0 and 1'); + }); + }); + + describe('args', () => { + describe('shape', () => { + it('sets the progress element shape', () => { + const result = fn(value, { + shape: 'wheel', + }); + expect(result.value).to.have.property('shape', 'wheel'); + }); + + it(`defaults to 'gauge'`, () => { + const result = fn(value); + expect(result.value).to.have.property('shape', 'gauge'); + }); + }); + + describe('max', () => { + it('sets the maximum value', () => { + const result = fn(value, { + max: 2, + }); + expect(result.value).to.have.property('max', 2); + }); + + it('defaults to 1', () => { + const result = fn(value); + expect(result.value).to.have.property('max', 1); + }); + + it('throws if max <= 0', () => { + expect(fn) + .withArgs(value, { max: -0.5 }) + .to.throwException(e => { + expect(e.message).to.be(`'max' must be greater than 0`); + }); + }); + }); + + describe('valueColor', () => { + it('sets the color of the progress bar', () => { + const result = fn(value, { + valueColor: '#000000', + }); + expect(result.value).to.have.property('valueColor', '#000000'); + }); + + it(`defaults to '#1785b0'`, () => { + const result = fn(value); + expect(result.value).to.have.property('valueColor', '#1785b0'); + }); + }); + + describe('barColor', () => { + it('sets the color of the background bar', () => { + const result = fn(value, { + barColor: '#FFFFFF', + }); + expect(result.value).to.have.property('barColor', '#FFFFFF'); + }); + + it(`defaults to '#f0f0f0'`, () => { + const result = fn(value); + expect(result.value).to.have.property('barColor', '#f0f0f0'); + }); + }); + + describe('valueWeight', () => { + it('sets the thickness of the bars', () => { + const result = fn(value, { + valuWeight: 100, + }); + + expect(result.value).to.have.property('valuWeight', 100); + }); + + it(`defaults to 20`, () => { + const result = fn(value); + expect(result.value).to.have.property('barWeight', 20); + }); + }); + + describe('barWeight', () => { + it('sets the thickness of the bars', () => { + const result = fn(value, { + barWeight: 50, + }); + + expect(result.value).to.have.property('barWeight', 50); + }); + + it(`defaults to 20`, () => { + const result = fn(value); + expect(result.value).to.have.property('barWeight', 20); + }); + }); + + describe('label', () => { + it('sets the label of the progress', () => { + const result = fn(value, { label: 'foo' }); + + expect(result.value).to.have.property('label', 'foo'); + }); + + it('hides the label if false', () => { + const result = fn(value, { + label: false, + }); + expect(result.value).to.have.property('label', ''); + }); + + it('defaults to true which sets the context as the label', () => { + const result = fn(value); + expect(result.value).to.have.property('label', '0.33'); + }); + }); + + describe('font', () => { + it('sets the font style for the label', () => { + const result = fn(value, { + font: fontStyle, + }); + + expect(result.value).to.have.property('font'); + expect(result.value.font).to.have.keys(Object.keys(fontStyle)); + expect(result.value.font.spec).to.have.keys(Object.keys(fontStyle.spec)); + }); + + it('sets fill to color', () => { + const result = fn(value, { + font: fontStyle, + }); + expect(result.value.font.spec).to.have.property('fill', fontStyle.spec.color); + }); + + // TODO: write test when using an instance of the interpreter + // it("sets a default style for the label when not provided", () => {}); + }); + }); +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/alterColumn.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/alterColumn.js index b5fd1a1333fc3..c4e465b76c812 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/alterColumn.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/alterColumn.js @@ -21,12 +21,13 @@ export const alterColumn = () => ({ }, type: { types: ['string'], - help: 'The type to convert the column to. Leave blank to not change type.', + help: 'The type to convert the column to. Leave blank to not change type', default: null, + options: ['null', 'boolean', 'number', 'string'], }, name: { types: ['string'], - help: 'The resultant column name. Leave blank to not rename.', + help: 'The resultant column name. Leave blank to not rename', default: null, }, }, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/axisConfig.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/axisConfig.js index d583368266249..0d37c3b32c45f 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/axisConfig.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/axisConfig.js @@ -21,7 +21,8 @@ export const axisConfig = () => ({ }, position: { types: ['string'], - help: 'Position of the axis labels. Eg, top, bottom, left, and right.', + help: 'Position of the axis labels - top, bottom, left, and right', + options: ['top', 'bottom', 'left', 'right'], default: '', }, min: { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/case.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/case.js index 84a5ba58a3731..b4579c414afce 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/case.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/case.js @@ -7,7 +7,7 @@ export const caseFn = () => ({ name: 'case', type: 'case', - help: 'Build a case (including a condition/result) to pass to the switch function.', + help: 'Build a case (including a condition/result) to pass to the switch function', args: { when: { aliases: ['_'], diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/compare.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/compare.js index c3ff1f7e3f6ea..c9dd2245b8696 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/compare.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/compare.js @@ -22,6 +22,7 @@ export const compare = () => ({ help: 'The operator to use in the comparison: ' + ' eq (equal), ne (not equal), lt (less than), gt (greater than), lte (less than equal), gte (greater than eq)', + options: ['eq', 'ne', 'lt', 'gt', 'lte', 'gte'], }, to: { aliases: ['this', 'b'], diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/containerStyle.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/containerStyle.js index 4fe85a72115d1..a5e71e3143e16 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/containerStyle.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/containerStyle.js @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { isValid } from '../../../common/lib/url'; +import { isValidUrl } from '../../../common/lib/url'; export const containerStyle = () => ({ name: 'containerStyle', @@ -41,11 +41,13 @@ export const containerStyle = () => ({ types: ['string'], help: 'Valid CSS background size string', default: 'contain', + options: ['contain', 'cover', 'auto'], }, backgroundRepeat: { types: ['string'], help: 'Valid CSS background repeat string', default: 'no-repeat', + options: ['repeat-x', 'repeat', 'space', 'round', 'no-repeat', 'space'], }, opacity: { types: ['number', 'null'], @@ -53,7 +55,8 @@ export const containerStyle = () => ({ }, overflow: { types: ['string'], - help: `Sets overflow of the container`, + help: 'Sets overflow of the container', + options: ['visible', 'hidden', 'scroll', 'auto'], }, }, fn: (context, args) => { @@ -64,7 +67,7 @@ export const containerStyle = () => ({ }; if (backgroundImage) { - if (!isValid(backgroundImage)) + if (!isValidUrl(backgroundImage)) throw new Error('Invalid backgroundImage. Please provide an asset or a URL.'); style.backgroundImage = `url(${backgroundImage})`; style.backgroundSize = backgroundSize; diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/date.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/date.js index 20fc9ca98f649..23b2631325763 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/date.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/date.js @@ -20,19 +20,19 @@ export const date = () => ({ context: { types: ['null'], }, - help: 'Returns the current time, or a time parsed from a string, as milliseconds since epoch.', + help: 'Returns the current time, or a time parsed from a string, as milliseconds since epoch', args: { value: { aliases: ['_'], types: ['string', 'null'], help: - 'An optional date string to parse into milliseconds since epoch. ' + - 'Can be either a valid Javascript Date input or a string to parse using the format argument. Must be an ISO 8601 string or you must provide the format.', + 'An optional date string to parse into milliseconds since epoch ' + + 'Can be either a valid Javascript Date input or a string to parse using the format argument. Must be an ISO 8601 string or you must provide the format', }, format: { types: ['string'], help: - 'The momentJS format for parsing the optional date string (See https://momentjs.com/docs/#/displaying/).', + 'The momentJS format for parsing the optional date string (See https://momentjs.com/docs/#/displaying/)', }, }, fn: (context, args) => { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/font.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/font.js index ef78b7b9dd847..c8b0141d2ef24 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/font.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/font.js @@ -7,6 +7,23 @@ import inlineStyle from 'inline-style'; import { openSans } from '../../../common/lib/fonts'; +const weights = [ + 'normal', + 'bold', + 'bolder', + 'lighter', + '100', + '200', + '300', + '400', + '500', + '600', + '700', + '800', + '900', +]; +const alignments = ['center', 'left', 'right', 'justify']; + export const font = () => ({ name: 'font', aliases: [], @@ -40,41 +57,28 @@ export const font = () => ({ help: 'Set the font weight, e.g. normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900', default: 'normal', + options: weights, }, underline: { types: ['boolean'], default: false, help: 'Underline the text, true or false', + options: [true, false], }, italic: { types: ['boolean'], default: false, help: 'Italicize, true or false', + options: [true, false], }, align: { types: ['string'], help: 'Horizontal text alignment', default: 'left', + options: alignments, }, }, fn: (context, args) => { - const weights = [ - 'normal', - 'bold', - 'bolder', - 'lighter', - '100', - '200', - '300', - '400', - '500', - '600', - '700', - '800', - '900', - ]; - const alignments = ['center', 'left', 'right', 'justified']; - if (!weights.includes(args.weight)) throw new Error(`Invalid font weight: ${args.weight}`); if (!alignments.includes(args.align)) throw new Error(`Invalid text alignment: ${args.align}`); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/image.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/image.js index 55af5f60ef97d..5bf6c429331f7 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/image.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/image.js @@ -4,10 +4,11 @@ * you may not use this file except in compliance with the Elastic License. */ -import { includes } from 'lodash'; import { resolveWithMissingImage } from '../../../common/lib/resolve_dataurl'; import { elasticLogo } from '../../lib/elastic_logo'; +const modes = ['contain', 'cover', 'stretch']; + export const image = () => ({ name: 'image', aliases: [], @@ -31,11 +32,11 @@ export const image = () => ({ '"cover" will fill the container with the image, cropping from the sides or bottom as needed.' + '"stretch" will resize the height and width of the image to 100% of the container', default: 'contain', + options: modes, }, }, fn: (context, { dataurl, mode }) => { - if (!includes(['contain', 'cover', 'stretch'], mode)) - throw '"mode" must be "contain", "cover", or "stretch"'; + if (!modes.includes(mode)) throw '"mode" must be "contain", "cover", or "stretch"'; const modeStyle = mode === 'stretch' ? '100% 100%' : mode; diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/index.js index afc9ba665c09b..410dbc60db952 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/index.js @@ -40,6 +40,7 @@ import { palette } from './palette'; import { pie } from './pie'; import { plot } from './plot'; import { ply } from './ply'; +import { progress } from './progress'; import { render } from './render'; import { replace } from './replace'; import { rounddate } from './rounddate'; @@ -95,6 +96,7 @@ export const functions = [ pie, plot, ply, + progress, render, repeatImage, replace, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/palette.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/palette.js index 7a601f71b2229..4e5e04815d9c5 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/palette.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/palette.js @@ -24,11 +24,13 @@ export const palette = () => ({ types: ['boolean'], default: false, help: 'Prefer to make a gradient where supported and useful?', + options: [true, false], }, reverse: { type: ['boolean'], default: false, help: 'Reverse the palette', + options: [true, false], }, }, fn: (context, args) => { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/pie.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/pie.js index fbdd2e9dde210..2cc0fbaeb30c0 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/pie.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/pie.js @@ -42,6 +42,7 @@ export const pie = () => ({ types: ['boolean'], default: true, help: 'Show pie labels', + options: [true, false], }, labelRadius: { types: ['number'], @@ -57,6 +58,7 @@ export const pie = () => ({ types: ['string', 'boolean'], help: 'Legend position, nw, sw, ne, se or false', default: false, + options: ['nw', 'sw', 'ne', 'se', false], }, tilt: { types: ['number'], diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/plot/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/plot/index.js index 2cf996f23cef0..c76a7d658da09 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/plot/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/plot/index.js @@ -47,6 +47,7 @@ export const plot = () => ({ types: ['string', 'boolean'], help: 'Legend position, nw, sw, ne, se or false', default: 'ne', + options: ['nw', 'sw', 'ne', 'se', false], }, yaxis: { types: ['boolean', 'axisConfig'], diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/progress.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/progress.js new file mode 100644 index 0000000000000..453730b3f861a --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/progress.js @@ -0,0 +1,98 @@ +/* + * 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 { get } from 'lodash'; +import { openSans } from '../../../common/lib/fonts'; + +const shapes = [ + 'gauge', + 'horizontalBar', + 'horizontalPill', + 'semicircle', + 'unicorn', + 'verticalBar', + 'verticalPill', + 'wheel', +]; + +export const progress = () => ({ + name: 'progress', + aliases: [], + type: 'render', + help: 'Configure a progress element', + context: { + types: ['number'], + }, + args: { + shape: { + type: ['string'], + alias: ['_'], + help: `Select ${shapes.slice(0, -1).join(', ')}, or ${shapes.slice(-1)[0]}`, + options: shapes, + default: 'gauge', + }, + max: { + type: ['number'], + help: 'Maximum value of the progress element', + default: 1, + }, + valueColor: { + type: ['string'], + help: 'Color of the progress bar', + default: `#1785b0`, + }, + barColor: { + type: ['string'], + help: 'Color of the background bar', + default: `#f0f0f0`, + }, + valueWeight: { + type: ['number'], + help: 'Thickness of the progress bar', + default: 20, + }, + barWeight: { + type: ['number'], + help: 'Thickness of the background bar', + default: 20, + }, + label: { + type: ['boolean', 'string'], + help: `Set true/false to show/hide label or provide a string to display as the label`, + default: true, + }, + font: { + types: ['style'], + help: 'Font settings for the label. Technically you can stick other styles in here too!', + default: `{font size=24 family="${openSans.value}" color="#000000" align=center}`, + }, + }, + fn: (value, args) => { + if (args.max <= 0) throw new Error(`'max' must be greater than 0`); + if (value > args.max || value < 0) throw new Error(`Context must be between 0 and ${args.max}`); + + let label = ''; + if (args.label) label = typeof args.label === 'string' ? args.label : `${value}`; + + let font = {}; + + if (get(args, 'font.spec')) { + font = { ...args.font }; + font.spec.fill = args.font.spec.color; // SVG uses fill for font color + } + + return { + type: 'render', + as: 'progress', + value: { + value, + ...args, + label, + font, + }, + }; + }, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/register.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/register.js index f4e7fa4b467b5..c92bebac5d192 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { functions } from './index'; functions.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/render.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/render.js index 716ca8abc340d..50a832553ce4d 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/render.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/render.js @@ -17,6 +17,7 @@ export const render = () => ({ types: ['string', 'null'], help: 'The element type to use in rendering. You probably want a specialized function instead, such as plot or grid', + options: ['debug', 'error', 'image', 'pie', 'plot', 'shape', 'table', 'text'], }, css: { types: ['string', 'null'], diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/revealImage.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/revealImage.js index 8c9e4f2af5914..9d54dc9363b95 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/revealImage.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/revealImage.js @@ -30,6 +30,7 @@ export const revealImage = () => ({ types: ['string'], help: 'Where to start from. Eg, top, left, bottom or right', default: 'bottom', + options: ['top', 'left', 'bottom', 'right'], }, }, fn: (percent, args) => { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/seriesStyle.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/seriesStyle.js index 5af8d345df4a1..f6be205e7e824 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/seriesStyle.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/seriesStyle.js @@ -17,9 +17,9 @@ export const seriesStyle = () => ({ args: { label: { types: ['string'], - displayName: 'Series Label', + displayName: 'Series label', help: - 'The label of the line this style applies to, not the name you would like to give the line.', + 'The label of the line this style applies to, not the name you would like to give the line', }, color: { types: ['string', 'null'], @@ -33,29 +33,32 @@ export const seriesStyle = () => ({ }, bars: { types: ['number'], - displayName: 'Bar Width', + displayName: 'Bar width', help: 'Width of bars', }, points: { types: ['number'], - displayName: 'Show Points', + displayName: 'Show points', help: 'Size of points on line', }, fill: { types: ['number', 'boolean'], displayName: 'Fill points', help: 'Should we fill points?', + default: false, + options: [true, false], }, stack: { types: ['number', 'null'], - displayName: 'Stack Series', + displayName: 'Stack series', help: 'Should we stack the series? This is the stack "id". Series with the same stack id will be stacked together', }, horizontalBars: { types: ['boolean'], - displayName: 'Horizontal Bars Orientation', + displayName: 'Horizontal bars orientation', help: 'Sets the orientation of bars in the chart to horizontal', + options: [true, false], }, }, fn: (context, args) => ({ type: name, ...args }), diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/shape.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/shape.js index 27379a759608d..9edae93afbd69 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/shape.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/shape.js @@ -18,6 +18,24 @@ export const shape = () => ({ help: 'Pick a shape', aliases: ['_'], default: 'square', + options: [ + 'arrow', + 'arrowMulti', + 'bookmark', + 'cross', + 'circle', + 'hexagon', + 'kite', + 'pentagon', + 'rhombus', + 'semicircle', + 'speechBubble', + 'square', + 'star', + 'tag', + 'triangle', + 'triangleRight', + ], }, fill: { types: ['string', 'null'], @@ -39,6 +57,7 @@ export const shape = () => ({ types: ['boolean'], help: 'Select true to maintain aspect ratio', default: false, + options: [true, false], }, }, fn: (context, { shape, fill, border, borderWidth, maintainAspect }) => ({ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/sort.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/sort.js index b6b554c032281..abc61aa7eea62 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/sort.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/sort.js @@ -25,6 +25,7 @@ export const sort = () => ({ types: ['boolean'], help: 'Reverse the sort order. If reverse is not specified, the datatable will be sorted in ascending order.', + options: [true, false], }, }, fn: (context, args) => { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/staticColumn.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/staticColumn.js index 4b9e96bda7354..77580be49719a 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/staticColumn.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/staticColumn.js @@ -9,7 +9,7 @@ import { getType } from '../../../common/lib/get_type'; export const staticColumn = () => ({ name: 'staticColumn', type: 'datatable', - help: 'Add a column with a static value.', + help: 'Add a column with a static value', context: { types: ['datatable'], }, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/table.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/table.js index 3afd345c65c4a..93899d79d7d54 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/table.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/table.js @@ -21,7 +21,8 @@ export const table = () => ({ paginate: { types: ['boolean'], default: true, - help: 'Show pagination controls. If set to false only the first page will be displayed.', + help: 'Show pagination controls. If set to false only the first page will be displayed', + options: [true, false], }, perPage: { types: ['number'], @@ -31,7 +32,8 @@ export const table = () => ({ showHeader: { types: ['boolean'], default: true, - help: 'Show or hide the header row with titles for each column.', + help: 'Show or hide the header row with titles for each column', + options: [true, false], }, }, fn: (context, args) => { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/timefilterControl.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/timefilterControl.js index ef7466622c08b..fd856b14bcc73 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/common/timefilterControl.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/common/timefilterControl.js @@ -22,6 +22,7 @@ export const timefilterControl = () => ({ type: ['boolean'], help: 'Show the time filter as a button that triggers a popover', default: true, + options: [true, false], }, }, fn: (context, args) => { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/get_expression_type.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/get_expression_type.js deleted file mode 100644 index f22daa0a8cf51..0000000000000 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/get_expression_type.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 expect from 'expect.js'; -import { getExpressionType } from '../pointseries/lib/get_expression_type'; -import { emptyTable, testTable } from '../../common/__tests__/fixtures/test_tables'; - -describe('getExpressionType', () => { - it('returns the result type of an evaluated math expression', () => { - expect(getExpressionType(testTable.columns, '2')).to.be.equal('number'); - expect(getExpressionType(testTable.colunns, '2 + 3')).to.be.equal('number'); - expect(getExpressionType(testTable.columns, 'name')).to.be.equal('string'); - expect(getExpressionType(testTable.columns, 'time')).to.be.equal('date'); - expect(getExpressionType(testTable.columns, 'price')).to.be.equal('number'); - expect(getExpressionType(testTable.columns, 'quantity')).to.be.equal('number'); - expect(getExpressionType(testTable.columns, 'in_stock')).to.be.equal('boolean'); - expect(getExpressionType(testTable.columns, 'mean(price)')).to.be.equal('number'); - expect(getExpressionType(testTable.columns, 'count(name)')).to.be.equal('string'); - expect(getExpressionType(testTable.columns, 'random()')).to.be.equal('number'); - expect(getExpressionType(testTable.columns, 'mean(multiply(price,quantity))')).to.be.eql( - 'number' - ); - }); - it('returns date instead of number when referencing date column', () => { - expect(getExpressionType(testTable.columns, 'mean(time)')).to.be.equal('date'); - }); - it(`returns 'null' if referenced field does not exist in datatable`, () => { - expect(getExpressionType(testTable.columns, 'foo')).to.be.equal('null'); - expect(getExpressionType(emptyTable.columns, 'foo')).to.be.equal('null'); - expect(getExpressionType(emptyTable.columns, 'mean(foo)')).to.be.equal('string'); - }); -}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/ci.json b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/ci.json deleted file mode 100644 index 62aec98a50a0e..0000000000000 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/ci.json +++ /dev/null @@ -1,10002 +0,0 @@ -[ - { - "age": 41, - "cost": 22.09, - "country": "CN", - "price": 52, - "project": "x-pack", - "state": "running", - "time": 1471590000000, - "username": "arobertson0" - }, - { - "age": 62, - "cost": 21.45, - "country": "RU", - "price": 53, - "project": "x-pack", - "state": "start", - "time": 1477292400000, - "username": "smeyer1" - }, - { - "age": 24, - "cost": 21.29, - "country": "FR", - "price": 53, - "project": "elasticsearch", - "state": "start", - "time": 1490425200000, - "username": "rcollins2" - }, - { - "age": 35, - "cost": 23.99, - "country": "PL", - "price": 52, - "project": "logstash", - "state": "start", - "time": 1477033200000, - "username": "lhoward3" - }, - { - "age": 79, - "cost": 22.09, - "country": "EC", - "price": 61, - "project": "kibana", - "state": "running", - "time": 1491116400000, - "username": "kcarroll4" - }, - { - "age": 69, - "cost": 22.9, - "country": "PE", - "price": 52, - "project": "x-pack", - "state": "done", - "time": 1476946800000, - "username": "handerson5" - }, - { - "age": 20, - "cost": 21.2, - "country": "JP", - "price": 65, - "project": "x-pack", - "state": "start", - "time": 1481094000000, - "username": "twashington6" - }, - { - "age": 56, - "cost": 24.19, - "country": "BG", - "price": 38, - "project": "logstash", - "state": "start", - "time": 1476601200000, - "username": "dmendoza7" - }, - { - "age": 48, - "cost": 21.37, - "country": "RU", - "price": 47, - "project": "x-pack", - "state": "start", - "time": 1478070000000, - "username": "staylor8" - }, - { - "age": 75, - "cost": 24.61, - "country": "ES", - "price": 58, - "project": "machine-learning", - "state": "running", - "time": 1483081200000, - "username": "mramirez9" - }, - { - "age": 33, - "cost": 21.82, - "country": "MX", - "price": 59, - "project": "machine-learning", - "state": "running", - "time": 1467529200000, - "username": "dandrewsa" - }, - { - "age": 61, - "cost": 22.57, - "country": "PL", - "price": 52, - "project": "machine-learning", - "state": "done", - "time": 1490252400000, - "username": "bwalkerb" - }, - { - "age": 69, - "cost": 22.28, - "country": "KR", - "price": 58, - "project": "x-pack", - "state": "running", - "time": 1470812400000, - "username": "vfoxc" - }, - { - "age": 75, - "cost": 22.07, - "country": "VN", - "price": 52, - "project": "machine-learning", - "state": "running", - "time": 1474441200000, - "username": "kdixond" - }, - { - "age": 62, - "cost": 23.3, - "country": "ID", - "price": 49, - "project": "x-pack", - "state": "done", - "time": 1488610800000, - "username": "rjacksone" - }, - { - "age": 54, - "cost": 21.96, - "country": "CF", - "price": 48, - "project": "machine-learning", - "state": "running", - "time": 1462086000000, - "username": "ecruzf" - }, - { - "age": 41, - "cost": 22.64, - "country": "JP", - "price": 48, - "project": "x-pack", - "state": "done", - "time": 1480748400000, - "username": "dfreemang" - }, - { - "age": 49, - "cost": 25.63, - "country": "CN", - "price": 56, - "project": "logstash", - "state": "done", - "time": 1478502000000, - "username": "jhernandezh" - }, - { - "age": 36, - "cost": 24.18, - "country": "JM", - "price": 59, - "project": "beats", - "state": "start", - "time": 1465628400000, - "username": "rcolemani" - }, - { - "age": 67, - "cost": 22.04, - "country": "CN", - "price": 66, - "project": "opbeat", - "state": "running", - "time": 1472626800000, - "username": "cbaileyj" - }, - { - "age": 25, - "cost": 24.02, - "country": "AR", - "price": 41, - "project": "opbeat", - "state": "start", - "time": 1488006000000, - "username": "hperryk" - }, - { - "age": 32, - "cost": 23.4, - "country": "CU", - "price": 59, - "project": "opbeat", - "state": "done", - "time": 1479711600000, - "username": "lfoxl" - }, - { - "age": 61, - "cost": 23.9, - "country": "CN", - "price": 56, - "project": "machine-learning", - "state": "start", - "time": 1476255600000, - "username": "cgrantm" - }, - { - "age": 30, - "cost": 23.46, - "country": "CN", - "price": 54, - "project": "kibana", - "state": "done", - "time": 1473231600000, - "username": "ewarrenn" - }, - { - "age": 28, - "cost": 22.8, - "country": "ID", - "price": 48, - "project": "logstash", - "state": "done", - "time": 1474182000000, - "username": "nrileyo" - }, - { - "age": 33, - "cost": 23.61, - "country": "RU", - "price": 53, - "project": "machine-learning", - "state": "start", - "time": 1490338800000, - "username": "swillisp" - }, - { - "age": 19, - "cost": 23.28, - "country": "ID", - "price": 64, - "project": "machine-learning", - "state": "done", - "time": 1461913200000, - "username": "jthompsonq" - }, - { - "age": 27, - "cost": 24.36, - "country": "AZ", - "price": 63, - "project": "x-pack", - "state": "start", - "time": 1483945200000, - "username": "bpricer" - }, - { - "age": 52, - "cost": 23.79, - "country": "AG", - "price": 57, - "project": "elasticsearch", - "state": "start", - "time": 1461222000000, - "username": "rgibsons" - }, - { - "age": 61, - "cost": 23.21, - "country": "CN", - "price": 70, - "project": "machine-learning", - "state": "done", - "time": 1482994800000, - "username": "cwashingtont" - }, - { - "age": 49, - "cost": 23.71, - "country": "US", - "price": 50, - "project": "logstash", - "state": "start", - "time": 1484722800000, - "username": "athompsonu" - }, - { - "age": 64, - "cost": 23.64, - "country": "BR", - "price": 47, - "project": "beats", - "state": "start", - "time": 1475910000000, - "username": "ewarrenv" - }, - { - "age": 36, - "cost": 24.03, - "country": "PE", - "price": 60, - "project": "beats", - "state": "start", - "time": 1472022000000, - "username": "mcruzw" - }, - { - "age": 45, - "cost": 23.13, - "country": "HR", - "price": 50, - "project": "elasticsearch", - "state": "done", - "time": 1463295600000, - "username": "brosex" - }, - { - "age": 30, - "cost": 22.37, - "country": "PK", - "price": 69, - "project": "kibana", - "state": "running", - "time": 1465455600000, - "username": "gberryy" - }, - { - "age": 49, - "cost": 23.96, - "country": "ID", - "price": 49, - "project": "logstash", - "state": "start", - "time": 1468220400000, - "username": "mortizz" - }, - { - "age": 73, - "cost": 22.36, - "country": "YE", - "price": 44, - "project": "elasticsearch", - "state": "running", - "time": 1477897200000, - "username": "pelliott10" - }, - { - "age": 43, - "cost": 20.38, - "country": "PT", - "price": 54, - "project": "beats", - "state": "done", - "time": 1475737200000, - "username": "rperkins11" - }, - { - "age": 30, - "cost": 22.96, - "country": "TZ", - "price": 42, - "project": "kibana", - "state": "done", - "time": 1482822000000, - "username": "rjohnson12" - }, - { - "age": 37, - "cost": 23.27, - "country": "AM", - "price": 57, - "project": "kibana", - "state": "done", - "time": 1473490800000, - "username": "chall13" - }, - { - "age": 79, - "cost": 22.06, - "country": "PH", - "price": 52, - "project": "kibana", - "state": "running", - "time": 1464850800000, - "username": "mwells14" - }, - { - "age": 34, - "cost": 21.81, - "country": "CZ", - "price": 54, - "project": "x-pack", - "state": "running", - "time": 1468306800000, - "username": "bbrown15" - }, - { - "age": 61, - "cost": 22.16, - "country": "ID", - "price": 56, - "project": "machine-learning", - "state": "running", - "time": 1470294000000, - "username": "bwood16" - }, - { - "age": 19, - "cost": 23.26, - "country": "ID", - "price": 56, - "project": "machine-learning", - "state": "done", - "time": 1474873200000, - "username": "sanderson17" - }, - { - "age": 21, - "cost": 22.56, - "country": "ID", - "price": 56, - "project": "logstash", - "state": "done", - "time": 1465801200000, - "username": "rbishop18" - }, - { - "age": 49, - "cost": 23.8, - "country": "PE", - "price": 52, - "project": "logstash", - "state": "start", - "time": 1487574000000, - "username": "kgomez19" - }, - { - "age": 60, - "cost": 22.33, - "country": "MG", - "price": 62, - "project": "opbeat", - "state": "running", - "time": 1485846000000, - "username": "jclark1a" - }, - { - "age": 78, - "cost": 21.46, - "country": "PT", - "price": 61, - "project": "beats", - "state": "start", - "time": 1474527600000, - "username": "cpeterson1b" - }, - { - "age": 78, - "cost": 22.74, - "country": "CN", - "price": 57, - "project": "beats", - "state": "done", - "time": 1461567600000, - "username": "ttaylor1c" - }, - { - "age": 58, - "cost": 23.41, - "country": "PS", - "price": 63, - "project": "kibana", - "state": "done", - "time": 1491634800000, - "username": "sdean1d" - }, - { - "age": 69, - "cost": 21.14, - "country": "RU", - "price": 47, - "project": "x-pack", - "state": "start", - "time": 1481698800000, - "username": "sfreeman1e" - }, - { - "age": 54, - "cost": 23.1, - "country": "CY", - "price": 49, - "project": "machine-learning", - "state": "done", - "time": 1462431600000, - "username": "rmccoy1f" - }, - { - "age": 43, - "cost": 23.55, - "country": "MX", - "price": 62, - "project": "beats", - "state": "start", - "time": 1461308400000, - "username": "kwallace1g" - }, - { - "age": 35, - "cost": 22.39, - "country": "ID", - "price": 59, - "project": "logstash", - "state": "running", - "time": 1468652400000, - "username": "jhunt1h" - }, - { - "age": 51, - "cost": 24.76, - "country": "LU", - "price": 64, - "project": "kibana", - "state": "running", - "time": 1472194800000, - "username": "ageorge1i" - }, - { - "age": 60, - "cost": 22.97, - "country": "HN", - "price": 71, - "project": "opbeat", - "state": "done", - "time": 1482735600000, - "username": "jsims1j" - }, - { - "age": 55, - "cost": 22.75, - "country": "ID", - "price": 54, - "project": "x-pack", - "state": "done", - "time": 1486537200000, - "username": "jwatkins1k" - }, - { - "age": 26, - "cost": 24.65, - "country": "PL", - "price": 61, - "project": "machine-learning", - "state": "running", - "time": 1465110000000, - "username": "jstanley1l" - }, - { - "age": 60, - "cost": 22.96, - "country": "NO", - "price": 56, - "project": "opbeat", - "state": "done", - "time": 1472367600000, - "username": "rking1m" - }, - { - "age": 56, - "cost": 23.93, - "country": "CN", - "price": 57, - "project": "logstash", - "state": "start", - "time": 1489561200000, - "username": "tmcdonald1n" - }, - { - "age": 19, - "cost": 21.46, - "country": "SA", - "price": 52, - "project": "machine-learning", - "state": "start", - "time": 1485586800000, - "username": "dharper1o" - }, - { - "age": 59, - "cost": 24.91, - "country": "SE", - "price": 52, - "project": "elasticsearch", - "state": "running", - "time": 1484031600000, - "username": "kwilson1p" - }, - { - "age": 49, - "cost": 22.91, - "country": "UG", - "price": 51, - "project": "logstash", - "state": "done", - "time": 1490166000000, - "username": "phansen1q" - }, - { - "age": 66, - "cost": 22.68, - "country": "ID", - "price": 52, - "project": "elasticsearch", - "state": "done", - "time": 1484377200000, - "username": "wrodriguez1r" - }, - { - "age": 80, - "cost": 21.29, - "country": "NG", - "price": 53, - "project": "elasticsearch", - "state": "start", - "time": 1474268400000, - "username": "hbowman1s" - }, - { - "age": 38, - "cost": 21.79, - "country": "ID", - "price": 55, - "project": "elasticsearch", - "state": "running", - "time": 1463122800000, - "username": "agonzales1t" - }, - { - "age": 61, - "cost": 24.5, - "country": "AF", - "price": 62, - "project": "machine-learning", - "state": "running", - "time": 1474268400000, - "username": "jmarshall1u" - }, - { - "age": 40, - "cost": 23.17, - "country": "AZ", - "price": 62, - "project": "machine-learning", - "state": "done", - "time": 1472626800000, - "username": "sadams1v" - }, - { - "age": 19, - "cost": 22.79, - "country": "FR", - "price": 60, - "project": "machine-learning", - "state": "done", - "time": 1479279600000, - "username": "athomas1w" - }, - { - "age": 48, - "cost": 22.15, - "country": "CN", - "price": 47, - "project": "x-pack", - "state": "running", - "time": 1483513200000, - "username": "jhanson1x" - }, - { - "age": 51, - "cost": 23.68, - "country": "BR", - "price": 56, - "project": "kibana", - "state": "start", - "time": 1478070000000, - "username": "smurphy1y" - }, - { - "age": 74, - "cost": 22.77, - "country": "ID", - "price": 59, - "project": "opbeat", - "state": "done", - "time": 1480921200000, - "username": "jaustin1z" - }, - { - "age": 63, - "cost": 23.42, - "country": "PL", - "price": 44, - "project": "logstash", - "state": "done", - "time": 1469948400000, - "username": "aburns20" - }, - { - "age": 58, - "cost": 22.63, - "country": "PH", - "price": 51, - "project": "kibana", - "state": "done", - "time": 1490770800000, - "username": "jmills21" - }, - { - "age": 49, - "cost": 22.47, - "country": "KP", - "price": 65, - "project": "logstash", - "state": "running", - "time": 1488438000000, - "username": "wmontgomery22" - }, - { - "age": 34, - "cost": 24.12, - "country": "YE", - "price": 67, - "project": "x-pack", - "state": "start", - "time": 1463468400000, - "username": "kbrooks23" - }, - { - "age": 55, - "cost": 22.93, - "country": "ID", - "price": 53, - "project": "x-pack", - "state": "done", - "time": 1473836400000, - "username": "dmarshall24" - }, - { - "age": 75, - "cost": 22.34, - "country": "PE", - "price": 41, - "project": "machine-learning", - "state": "running", - "time": 1471330800000, - "username": "rsmith25" - }, - { - "age": 62, - "cost": 23.06, - "country": "PT", - "price": 60, - "project": "x-pack", - "state": "done", - "time": 1490338800000, - "username": "amartinez26" - }, - { - "age": 69, - "cost": 24.24, - "country": "PL", - "price": 57, - "project": "x-pack", - "state": "start", - "time": 1466492400000, - "username": "bfranklin27" - }, - { - "age": 34, - "cost": 21.01, - "country": "GR", - "price": 45, - "project": "x-pack", - "state": "start", - "time": 1461222000000, - "username": "dhicks28" - }, - { - "age": 42, - "cost": 24.88, - "country": "GR", - "price": 43, - "project": "logstash", - "state": "running", - "time": 1476514800000, - "username": "hperez29" - }, - { - "age": 18, - "cost": 23.44, - "country": "CN", - "price": 58, - "project": "opbeat", - "state": "done", - "time": 1484118000000, - "username": "jchavez2a" - }, - { - "age": 80, - "cost": 22.87, - "country": "ID", - "price": 39, - "project": "elasticsearch", - "state": "done", - "time": 1471330800000, - "username": "krobinson2b" - }, - { - "age": 47, - "cost": 23.26, - "country": "PH", - "price": 49, - "project": "machine-learning", - "state": "done", - "time": 1468566000000, - "username": "aking2c" - }, - { - "age": 22, - "cost": 23.7, - "country": "ID", - "price": 61, - "project": "beats", - "state": "start", - "time": 1473404400000, - "username": "ediaz2d" - }, - { - "age": 61, - "cost": 23.28, - "country": "ID", - "price": 60, - "project": "machine-learning", - "state": "done", - "time": 1481785200000, - "username": "aevans2e" - }, - { - "age": 41, - "cost": 22.72, - "country": "ID", - "price": 44, - "project": "x-pack", - "state": "done", - "time": 1463554800000, - "username": "lperez2f" - }, - { - "age": 41, - "cost": 22.15, - "country": "RU", - "price": 45, - "project": "x-pack", - "state": "running", - "time": 1487833200000, - "username": "rmartinez2g" - }, - { - "age": 44, - "cost": 24.44, - "country": "GR", - "price": 71, - "project": "kibana", - "state": "start", - "time": 1470294000000, - "username": "hcrawford2h" - }, - { - "age": 72, - "cost": 21.46, - "country": "NG", - "price": 47, - "project": "kibana", - "state": "start", - "time": 1477119600000, - "username": "dramirez2i" - }, - { - "age": 31, - "cost": 22.45, - "country": "FR", - "price": 68, - "project": "elasticsearch", - "state": "running", - "time": 1487401200000, - "username": "greynolds2j" - }, - { - "age": 39, - "cost": 24.56, - "country": "KR", - "price": 58, - "project": "opbeat", - "state": "running", - "time": 1477810800000, - "username": "sjordan2k" - }, - { - "age": 54, - "cost": 22.52, - "country": "ZA", - "price": 80, - "project": "machine-learning", - "state": "done", - "time": 1487574000000, - "username": "pjohnston2l" - }, - { - "age": 39, - "cost": 21.86, - "country": "GR", - "price": 50, - "project": "opbeat", - "state": "running", - "time": 1485414000000, - "username": "ccarpenter2m" - }, - { - "age": 79, - "cost": 23.52, - "country": "SE", - "price": 54, - "project": "kibana", - "state": "start", - "time": 1488351600000, - "username": "bmorris2n" - }, - { - "age": 23, - "cost": 23.44, - "country": "BR", - "price": 39, - "project": "kibana", - "state": "done", - "time": 1472367600000, - "username": "mmoore2o" - }, - { - "age": 50, - "cost": 23.03, - "country": "CZ", - "price": 51, - "project": "beats", - "state": "done", - "time": 1478588400000, - "username": "jlawson2p" - }, - { - "age": 74, - "cost": 22.69, - "country": "CN", - "price": 79, - "project": "opbeat", - "state": "done", - "time": 1460530800000, - "username": "rjackson2q" - }, - { - "age": 39, - "cost": 23.73, - "country": "CN", - "price": 60, - "project": "opbeat", - "state": "start", - "time": 1489388400000, - "username": "tcole2r" - }, - { - "age": 47, - "cost": 20.51, - "country": "RU", - "price": 59, - "project": "machine-learning", - "state": "start", - "time": 1479625200000, - "username": "garnold2s" - }, - { - "age": 42, - "cost": 20.26, - "country": "JP", - "price": 53, - "project": "logstash", - "state": "done", - "time": 1482303600000, - "username": "khenry2t" - }, - { - "age": 21, - "cost": 23.71, - "country": "CU", - "price": 61, - "project": "logstash", - "state": "start", - "time": 1482562800000, - "username": "aalvarez2u" - }, - { - "age": 72, - "cost": 23.38, - "country": "CN", - "price": 62, - "project": "kibana", - "state": "done", - "time": 1465887600000, - "username": "cbrown2v" - }, - { - "age": 64, - "cost": 22.52, - "country": "NG", - "price": 43, - "project": "beats", - "state": "done", - "time": 1460617200000, - "username": "tblack2w" - }, - { - "age": 53, - "cost": 24.24, - "country": "MX", - "price": 71, - "project": "opbeat", - "state": "start", - "time": 1481698800000, - "username": "bdiaz2x" - }, - { - "age": 52, - "cost": 22.42, - "country": "PT", - "price": 56, - "project": "elasticsearch", - "state": "running", - "time": 1481958000000, - "username": "drobinson2y" - }, - { - "age": 32, - "cost": 23.84, - "country": "BR", - "price": 66, - "project": "opbeat", - "state": "start", - "time": 1476860400000, - "username": "jsnyder2z" - }, - { - "age": 50, - "cost": 23.18, - "country": "ID", - "price": 54, - "project": "beats", - "state": "done", - "time": 1476169200000, - "username": "rking30" - }, - { - "age": 25, - "cost": 22.43, - "country": "CN", - "price": 46, - "project": "opbeat", - "state": "running", - "time": 1485327600000, - "username": "tjohnston31" - }, - { - "age": 33, - "cost": 22.44, - "country": "MY", - "price": 55, - "project": "machine-learning", - "state": "running", - "time": 1472713200000, - "username": "bdaniels32" - }, - { - "age": 71, - "cost": 23.84, - "country": "BY", - "price": 42, - "project": "beats", - "state": "start", - "time": 1460962800000, - "username": "ggarza33" - }, - { - "age": 74, - "cost": 21.73, - "country": "GR", - "price": 58, - "project": "opbeat", - "state": "running", - "time": 1463382000000, - "username": "csmith34" - }, - { - "age": 57, - "cost": 21.62, - "country": "TH", - "price": 60, - "project": "beats", - "state": "running", - "time": 1486969200000, - "username": "bhall35" - }, - { - "age": 28, - "cost": 21.34, - "country": "CO", - "price": 50, - "project": "logstash", - "state": "start", - "time": 1491462000000, - "username": "jpalmer36" - }, - { - "age": 26, - "cost": 23.35, - "country": "ZA", - "price": 57, - "project": "machine-learning", - "state": "done", - "time": 1471330800000, - "username": "akelly37" - }, - { - "age": 20, - "cost": 24.87, - "country": "JP", - "price": 66, - "project": "x-pack", - "state": "running", - "time": 1479366000000, - "username": "hbowman38" - }, - { - "age": 75, - "cost": 23.91, - "country": "MA", - "price": 59, - "project": "machine-learning", - "state": "start", - "time": 1466233200000, - "username": "wpierce39" - }, - { - "age": 62, - "cost": 20.83, - "country": "CN", - "price": 53, - "project": "x-pack", - "state": "start", - "time": 1464418800000, - "username": "eriley3a" - }, - { - "age": 45, - "cost": 22.57, - "country": "PT", - "price": 43, - "project": "elasticsearch", - "state": "done", - "time": 1471676400000, - "username": "emedina3b" - }, - { - "age": 72, - "cost": 22.45, - "country": "ID", - "price": 79, - "project": "kibana", - "state": "running", - "time": 1469516400000, - "username": "rlane3c" - }, - { - "age": 52, - "cost": 22.48, - "country": "ID", - "price": 61, - "project": "elasticsearch", - "state": "running", - "time": 1487228400000, - "username": "dwallace3d" - }, - { - "age": 36, - "cost": 23.89, - "country": "HR", - "price": 66, - "project": "beats", - "state": "start", - "time": 1462777200000, - "username": "jmcdonald3e" - }, - { - "age": 52, - "cost": 21.84, - "country": "RU", - "price": 56, - "project": "elasticsearch", - "state": "running", - "time": 1490166000000, - "username": "cschmidt3f" - }, - { - "age": 45, - "cost": 22.13, - "country": "ID", - "price": 54, - "project": "elasticsearch", - "state": "running", - "time": 1470207600000, - "username": "jfields3g" - }, - { - "age": 51, - "cost": 23.29, - "country": "CM", - "price": 48, - "project": "kibana", - "state": "done", - "time": 1475564400000, - "username": "kduncan3h" - }, - { - "age": 75, - "cost": 21.61, - "country": "ID", - "price": 58, - "project": "machine-learning", - "state": "running", - "time": 1480402800000, - "username": "award3i" - }, - { - "age": 44, - "cost": 21.09, - "country": "KN", - "price": 51, - "project": "kibana", - "state": "start", - "time": 1480575600000, - "username": "jking3j" - }, - { - "age": 53, - "cost": 24.07, - "country": "CU", - "price": 52, - "project": "opbeat", - "state": "start", - "time": 1489820400000, - "username": "ksanders3k" - }, - { - "age": 57, - "cost": 22.86, - "country": "BR", - "price": 40, - "project": "beats", - "state": "done", - "time": 1474700400000, - "username": "colson3l" - }, - { - "age": 77, - "cost": 22.88, - "country": "GT", - "price": 69, - "project": "logstash", - "state": "done", - "time": 1486537200000, - "username": "dpierce3m" - }, - { - "age": 56, - "cost": 22.79, - "country": "CN", - "price": 52, - "project": "logstash", - "state": "done", - "time": 1474959600000, - "username": "afoster3n" - }, - { - "age": 65, - "cost": 23.62, - "country": "VN", - "price": 43, - "project": "kibana", - "state": "start", - "time": 1485068400000, - "username": "phoward3o" - }, - { - "age": 66, - "cost": 22.32, - "country": "SE", - "price": 44, - "project": "elasticsearch", - "state": "running", - "time": 1473750000000, - "username": "rpalmer3p" - }, - { - "age": 34, - "cost": 21.86, - "country": "CN", - "price": 54, - "project": "x-pack", - "state": "running", - "time": 1480230000000, - "username": "bgordon3q" - }, - { - "age": 63, - "cost": 23.54, - "country": "ID", - "price": 59, - "project": "logstash", - "state": "start", - "time": 1484722800000, - "username": "cturner3r" - }, - { - "age": 20, - "cost": 21.73, - "country": "PS", - "price": 43, - "project": "x-pack", - "state": "running", - "time": 1480921200000, - "username": "jowens3s" - }, - { - "age": 65, - "cost": 23.34, - "country": "PL", - "price": 60, - "project": "kibana", - "state": "done", - "time": 1491548400000, - "username": "rdunn3t" - }, - { - "age": 44, - "cost": 22.12, - "country": "ID", - "price": 48, - "project": "kibana", - "state": "running", - "time": 1475391600000, - "username": "jhall3u" - }, - { - "age": 74, - "cost": 22.71, - "country": "TH", - "price": 57, - "project": "opbeat", - "state": "done", - "time": 1484982000000, - "username": "cmorris3v" - }, - { - "age": 64, - "cost": 23.85, - "country": "ID", - "price": 48, - "project": "beats", - "state": "start", - "time": 1475996400000, - "username": "dpierce3w" - }, - { - "age": 48, - "cost": 22.03, - "country": "CN", - "price": 66, - "project": "x-pack", - "state": "running", - "time": 1468825200000, - "username": "htaylor3x" - }, - { - "age": 59, - "cost": 22.88, - "country": "BG", - "price": 67, - "project": "elasticsearch", - "state": "done", - "time": 1470380400000, - "username": "hwagner3y" - }, - { - "age": 25, - "cost": 23.96, - "country": "JM", - "price": 50, - "project": "opbeat", - "state": "start", - "time": 1486796400000, - "username": "sholmes3z" - }, - { - "age": 62, - "cost": 23.1, - "country": "ID", - "price": 61, - "project": "x-pack", - "state": "done", - "time": 1467874800000, - "username": "grogers40" - }, - { - "age": 67, - "cost": 22.36, - "country": "PT", - "price": 50, - "project": "opbeat", - "state": "running", - "time": 1483686000000, - "username": "jphillips41" - }, - { - "age": 69, - "cost": 23.26, - "country": "TN", - "price": 75, - "project": "x-pack", - "state": "done", - "time": 1473836400000, - "username": "pmcdonald42" - }, - { - "age": 64, - "cost": 23.7, - "country": "PL", - "price": 57, - "project": "beats", - "state": "start", - "time": 1465801200000, - "username": "bsims43" - }, - { - "age": 80, - "cost": 24.38, - "country": "US", - "price": 56, - "project": "elasticsearch", - "state": "start", - "time": 1479193200000, - "username": "jmurray44" - }, - { - "age": 41, - "cost": 24.64, - "country": "PH", - "price": 58, - "project": "x-pack", - "state": "running", - "time": 1472022000000, - "username": "phenderson45" - }, - { - "age": 55, - "cost": 24.47, - "country": "ID", - "price": 63, - "project": "x-pack", - "state": "start", - "time": 1465974000000, - "username": "nhunt46" - }, - { - "age": 30, - "cost": 23.45, - "country": "CN", - "price": 54, - "project": "kibana", - "state": "done", - "time": 1469257200000, - "username": "rwalker47" - }, - { - "age": 31, - "cost": 22.09, - "country": "CO", - "price": 60, - "project": "elasticsearch", - "state": "running", - "time": 1482562800000, - "username": "dkim48" - }, - { - "age": 33, - "cost": 22.48, - "country": "NG", - "price": 61, - "project": "machine-learning", - "state": "running", - "time": 1486969200000, - "username": "dward49" - }, - { - "age": 68, - "cost": 23, - "country": "HN", - "price": 58, - "project": "machine-learning", - "state": "done", - "time": 1471762800000, - "username": "ahughes4a" - }, - { - "age": 32, - "cost": 21.74, - "country": "CN", - "price": 64, - "project": "opbeat", - "state": "running", - "time": 1491548400000, - "username": "jdunn4b" - }, - { - "age": 49, - "cost": 21.46, - "country": "DE", - "price": 65, - "project": "logstash", - "state": "start", - "time": 1466060400000, - "username": "psimmons4c" - }, - { - "age": 33, - "cost": 22.14, - "country": "CN", - "price": 52, - "project": "machine-learning", - "state": "running", - "time": 1460790000000, - "username": "tpierce4d" - }, - { - "age": 59, - "cost": 23.4, - "country": "GY", - "price": 59, - "project": "elasticsearch", - "state": "done", - "time": 1475650800000, - "username": "jchavez4e" - }, - { - "age": 60, - "cost": 20.92, - "country": "MK", - "price": 55, - "project": "opbeat", - "state": "start", - "time": 1486882800000, - "username": "awood4f" - }, - { - "age": 28, - "cost": 22.56, - "country": "PT", - "price": 58, - "project": "logstash", - "state": "done", - "time": 1491375600000, - "username": "psanchez4g" - }, - { - "age": 69, - "cost": 22.78, - "country": "TH", - "price": 54, - "project": "x-pack", - "state": "done", - "time": 1478588400000, - "username": "phansen4h" - }, - { - "age": 73, - "cost": 21.52, - "country": "CN", - "price": 54, - "project": "elasticsearch", - "state": "running", - "time": 1461308400000, - "username": "apierce4i" - }, - { - "age": 49, - "cost": 21.94, - "country": "CN", - "price": 55, - "project": "logstash", - "state": "running", - "time": 1467097200000, - "username": "cedwards4j" - }, - { - "age": 73, - "cost": 21.99, - "country": "JP", - "price": 56, - "project": "elasticsearch", - "state": "running", - "time": 1478329200000, - "username": "sford4k" - }, - { - "age": 64, - "cost": 23.14, - "country": "PH", - "price": 51, - "project": "beats", - "state": "done", - "time": 1483340400000, - "username": "kpeterson4l" - }, - { - "age": 53, - "cost": 22.97, - "country": "BR", - "price": 58, - "project": "opbeat", - "state": "done", - "time": 1486710000000, - "username": "bfoster4m" - }, - { - "age": 57, - "cost": 21.37, - "country": "CN", - "price": 67, - "project": "beats", - "state": "start", - "time": 1481526000000, - "username": "eturner4n" - }, - { - "age": 65, - "cost": 23.65, - "country": "CN", - "price": 61, - "project": "kibana", - "state": "start", - "time": 1469948400000, - "username": "kwilliamson4o" - }, - { - "age": 25, - "cost": 23.94, - "country": "ID", - "price": 50, - "project": "opbeat", - "state": "start", - "time": 1465801200000, - "username": "jfranklin4p" - }, - { - "age": 74, - "cost": 23.53, - "country": "CN", - "price": 52, - "project": "opbeat", - "state": "start", - "time": 1461481200000, - "username": "ecoleman4q" - }, - { - "age": 57, - "cost": 24.26, - "country": "CN", - "price": 71, - "project": "beats", - "state": "start", - "time": 1461481200000, - "username": "rray4r" - }, - { - "age": 67, - "cost": 21.4, - "country": "FR", - "price": 72, - "project": "opbeat", - "state": "start", - "time": 1465714800000, - "username": "mprice4s" - }, - { - "age": 39, - "cost": 23.47, - "country": "FR", - "price": 52, - "project": "opbeat", - "state": "done", - "time": 1486537200000, - "username": "krobertson4t" - }, - { - "age": 50, - "cost": 22.96, - "country": "PE", - "price": 59, - "project": "beats", - "state": "done", - "time": 1489388400000, - "username": "rwalker4u" - }, - { - "age": 26, - "cost": 23.99, - "country": "CN", - "price": 52, - "project": "machine-learning", - "state": "start", - "time": 1477033200000, - "username": "cdiaz4v" - }, - { - "age": 34, - "cost": 23.74, - "country": "US", - "price": 55, - "project": "x-pack", - "state": "start", - "time": 1474009200000, - "username": "cparker4w" - }, - { - "age": 38, - "cost": 23.23, - "country": "BR", - "price": 57, - "project": "elasticsearch", - "state": "done", - "time": 1489993200000, - "username": "cthompson4x" - }, - { - "age": 62, - "cost": 23.34, - "country": "PH", - "price": 42, - "project": "x-pack", - "state": "done", - "time": 1479711600000, - "username": "callen4y" - }, - { - "age": 33, - "cost": 22.24, - "country": "BR", - "price": 36, - "project": "machine-learning", - "state": "running", - "time": 1480662000000, - "username": "lbell4z" - }, - { - "age": 37, - "cost": 24.62, - "country": "CM", - "price": 51, - "project": "kibana", - "state": "running", - "time": 1465887600000, - "username": "hmoreno50" - }, - { - "age": 47, - "cost": 22.23, - "country": "PY", - "price": 53, - "project": "machine-learning", - "state": "running", - "time": 1460962800000, - "username": "jspencer51" - }, - { - "age": 38, - "cost": 23.38, - "country": "ID", - "price": 58, - "project": "elasticsearch", - "state": "done", - "time": 1491116400000, - "username": "bhamilton52" - }, - { - "age": 24, - "cost": 24.1, - "country": "CN", - "price": 58, - "project": "elasticsearch", - "state": "start", - "time": 1466492400000, - "username": "amatthews53" - }, - { - "age": 27, - "cost": 23.12, - "country": "ID", - "price": 68, - "project": "x-pack", - "state": "done", - "time": 1471330800000, - "username": "wjohnston54" - }, - { - "age": 28, - "cost": 22.07, - "country": "PL", - "price": 56, - "project": "logstash", - "state": "running", - "time": 1489302000000, - "username": "crice55" - }, - { - "age": 36, - "cost": 23.32, - "country": "BY", - "price": 60, - "project": "beats", - "state": "done", - "time": 1460790000000, - "username": "probinson56" - }, - { - "age": 44, - "cost": 24.17, - "country": "CN", - "price": 56, - "project": "kibana", - "state": "start", - "time": 1467961200000, - "username": "lmatthews57" - }, - { - "age": 80, - "cost": 21.56, - "country": "SE", - "price": 69, - "project": "elasticsearch", - "state": "running", - "time": 1469862000000, - "username": "scole58" - }, - { - "age": 50, - "cost": 23.15, - "country": "ID", - "price": 54, - "project": "beats", - "state": "done", - "time": 1491548400000, - "username": "gramirez59" - }, - { - "age": 18, - "cost": 23.94, - "country": "CN", - "price": 48, - "project": "opbeat", - "state": "start", - "time": 1482822000000, - "username": "jruiz5a" - }, - { - "age": 48, - "cost": 23.14, - "country": "ID", - "price": 54, - "project": "x-pack", - "state": "done", - "time": 1464332400000, - "username": "jramirez5b" - }, - { - "age": 64, - "cost": 20.38, - "country": "CZ", - "price": 63, - "project": "beats", - "state": "done", - "time": 1472281200000, - "username": "ppierce5c" - }, - { - "age": 45, - "cost": 23.47, - "country": "PH", - "price": 60, - "project": "elasticsearch", - "state": "done", - "time": 1465196400000, - "username": "rfranklin5d" - }, - { - "age": 65, - "cost": 22.87, - "country": "PH", - "price": 56, - "project": "kibana", - "state": "done", - "time": 1468306800000, - "username": "aevans5e" - }, - { - "age": 18, - "cost": 23.45, - "country": "BY", - "price": 71, - "project": "opbeat", - "state": "done", - "time": 1463814000000, - "username": "gday5f" - }, - { - "age": 42, - "cost": 23.44, - "country": "PY", - "price": 43, - "project": "logstash", - "state": "done", - "time": 1478156400000, - "username": "pwilliams5g" - }, - { - "age": 19, - "cost": 23.99, - "country": "MX", - "price": 53, - "project": "machine-learning", - "state": "start", - "time": 1470380400000, - "username": "mgray5h" - }, - { - "age": 64, - "cost": 22.94, - "country": "PL", - "price": 47, - "project": "beats", - "state": "done", - "time": 1465801200000, - "username": "mcarroll5i" - }, - { - "age": 49, - "cost": 24.38, - "country": "JP", - "price": 56, - "project": "logstash", - "state": "start", - "time": 1464246000000, - "username": "dmontgomery5j" - }, - { - "age": 71, - "cost": 23.72, - "country": "BY", - "price": 50, - "project": "beats", - "state": "start", - "time": 1484463600000, - "username": "rsims5k" - }, - { - "age": 38, - "cost": 22.02, - "country": "PH", - "price": 58, - "project": "elasticsearch", - "state": "running", - "time": 1469257200000, - "username": "jgreene5l" - }, - { - "age": 43, - "cost": 23.08, - "country": "EC", - "price": 64, - "project": "beats", - "state": "done", - "time": 1480230000000, - "username": "mmills5m" - }, - { - "age": 75, - "cost": 22.96, - "country": "ID", - "price": 54, - "project": "machine-learning", - "state": "done", - "time": 1472022000000, - "username": "rmoreno5n" - }, - { - "age": 28, - "cost": 24.37, - "country": "US", - "price": 57, - "project": "logstash", - "state": "start", - "time": 1460962800000, - "username": "kcole5o" - }, - { - "age": 75, - "cost": 21.92, - "country": "JP", - "price": 52, - "project": "machine-learning", - "state": "running", - "time": 1468393200000, - "username": "nwelch5p" - }, - { - "age": 66, - "cost": 21.96, - "country": "CN", - "price": 64, - "project": "elasticsearch", - "state": "running", - "time": 1464418800000, - "username": "gburton5q" - }, - { - "age": 32, - "cost": 23.14, - "country": "VE", - "price": 54, - "project": "opbeat", - "state": "done", - "time": 1485586800000, - "username": "dfisher5r" - }, - { - "age": 45, - "cost": 21.99, - "country": "US", - "price": 44, - "project": "elasticsearch", - "state": "running", - "time": 1485068400000, - "username": "mknight5s" - }, - { - "age": 23, - "cost": 22.97, - "country": "CN", - "price": 49, - "project": "kibana", - "state": "done", - "time": 1483426800000, - "username": "pgordon5t" - }, - { - "age": 31, - "cost": 21.85, - "country": "RU", - "price": 62, - "project": "elasticsearch", - "state": "running", - "time": 1471330800000, - "username": "bpowell5u" - }, - { - "age": 28, - "cost": 21.32, - "country": "CA", - "price": 58, - "project": "logstash", - "state": "start", - "time": 1487314800000, - "username": "creed5v" - }, - { - "age": 55, - "cost": 23.47, - "country": "CN", - "price": 59, - "project": "x-pack", - "state": "done", - "time": 1468998000000, - "username": "dgreene5w" - }, - { - "age": 53, - "cost": 21.72, - "country": "ID", - "price": 57, - "project": "opbeat", - "state": "running", - "time": 1482649200000, - "username": "areynolds5x" - }, - { - "age": 68, - "cost": 22.78, - "country": "AU", - "price": 57, - "project": "machine-learning", - "state": "done", - "time": 1473750000000, - "username": "sharris5y" - }, - { - "age": 58, - "cost": 22.76, - "country": "LA", - "price": 56, - "project": "kibana", - "state": "done", - "time": 1474873200000, - "username": "jwatson5z" - }, - { - "age": 40, - "cost": 23.64, - "country": "CN", - "price": 52, - "project": "machine-learning", - "state": "start", - "time": 1490943600000, - "username": "flewis60" - }, - { - "age": 22, - "cost": 24.27, - "country": "CA", - "price": 44, - "project": "beats", - "state": "start", - "time": 1480402800000, - "username": "jdavis61" - }, - { - "age": 67, - "cost": 21.81, - "country": "ID", - "price": 48, - "project": "opbeat", - "state": "running", - "time": 1479279600000, - "username": "bmorrison62" - }, - { - "age": 66, - "cost": 24.82, - "country": "CN", - "price": 42, - "project": "elasticsearch", - "state": "running", - "time": 1482130800000, - "username": "wgordon63" - }, - { - "age": 33, - "cost": 22.6, - "country": "RU", - "price": 59, - "project": "machine-learning", - "state": "done", - "time": 1484118000000, - "username": "athompson64" - }, - { - "age": 28, - "cost": 22.56, - "country": "KZ", - "price": 52, - "project": "logstash", - "state": "done", - "time": 1467097200000, - "username": "bwright65" - }, - { - "age": 37, - "cost": 22.8, - "country": "CN", - "price": 54, - "project": "kibana", - "state": "done", - "time": 1490684400000, - "username": "jburke66" - }, - { - "age": 55, - "cost": 25.38, - "country": "CN", - "price": 41, - "project": "x-pack", - "state": "running", - "time": 1483081200000, - "username": "lmeyer67" - }, - { - "age": 47, - "cost": 22.35, - "country": "PH", - "price": 72, - "project": "machine-learning", - "state": "running", - "time": 1484031600000, - "username": "plane68" - }, - { - "age": 75, - "cost": 21.21, - "country": "AL", - "price": 64, - "project": "machine-learning", - "state": "start", - "time": 1478847600000, - "username": "nschmidt69" - }, - { - "age": 29, - "cost": 24.41, - "country": "CN", - "price": 60, - "project": "beats", - "state": "start", - "time": 1480662000000, - "username": "jdean6a" - }, - { - "age": 80, - "cost": 19.77, - "country": "CN", - "price": 64, - "project": "elasticsearch", - "state": "done", - "time": 1489993200000, - "username": "vvasquez6b" - }, - { - "age": 47, - "cost": 23.12, - "country": "CU", - "price": 53, - "project": "machine-learning", - "state": "done", - "time": 1460358000000, - "username": "jcarpenter6c" - }, - { - "age": 47, - "cost": 21.79, - "country": "VE", - "price": 52, - "project": "machine-learning", - "state": "running", - "time": 1471762800000, - "username": "ihowell6d" - }, - { - "age": 42, - "cost": 22.67, - "country": "PH", - "price": 55, - "project": "logstash", - "state": "done", - "time": 1488524400000, - "username": "lschmidt6e" - }, - { - "age": 78, - "cost": 22.2, - "country": "DE", - "price": 57, - "project": "beats", - "state": "running", - "time": 1475650800000, - "username": "lkennedy6f" - }, - { - "age": 77, - "cost": 22.19, - "country": "CN", - "price": 63, - "project": "logstash", - "state": "running", - "time": 1483945200000, - "username": "bgarza6g" - }, - { - "age": 38, - "cost": 23.47, - "country": "BR", - "price": 51, - "project": "elasticsearch", - "state": "done", - "time": 1477983600000, - "username": "rlewis6h" - }, - { - "age": 38, - "cost": 22.74, - "country": "PH", - "price": 59, - "project": "elasticsearch", - "state": "done", - "time": 1483513200000, - "username": "gwoods6i" - }, - { - "age": 77, - "cost": 22.8, - "country": "CN", - "price": 57, - "project": "logstash", - "state": "done", - "time": 1484031600000, - "username": "mcruz6j" - }, - { - "age": 23, - "cost": 22.9, - "country": "TH", - "price": 44, - "project": "kibana", - "state": "done", - "time": 1463900400000, - "username": "pthomas6k" - }, - { - "age": 47, - "cost": 23.4, - "country": "CA", - "price": 64, - "project": "machine-learning", - "state": "done", - "time": 1491548400000, - "username": "astanley6l" - }, - { - "age": 43, - "cost": 22.91, - "country": "CN", - "price": 50, - "project": "beats", - "state": "done", - "time": 1472886000000, - "username": "sharris6m" - }, - { - "age": 76, - "cost": 21.74, - "country": "ID", - "price": 55, - "project": "x-pack", - "state": "running", - "time": 1490943600000, - "username": "rreynolds6n" - }, - { - "age": 18, - "cost": 23.15, - "country": "RU", - "price": 56, - "project": "opbeat", - "state": "done", - "time": 1484550000000, - "username": "ewebb6o" - }, - { - "age": 50, - "cost": 23.16, - "country": "ID", - "price": 61, - "project": "beats", - "state": "done", - "time": 1461740400000, - "username": "tmorales6p" - }, - { - "age": 27, - "cost": 22.14, - "country": "SE", - "price": 45, - "project": "x-pack", - "state": "running", - "time": 1463727600000, - "username": "dmontgomery6q" - }, - { - "age": 23, - "cost": 24.03, - "country": "PS", - "price": 51, - "project": "kibana", - "state": "start", - "time": 1484031600000, - "username": "blynch6r" - }, - { - "age": 40, - "cost": 22.63, - "country": "CN", - "price": 70, - "project": "machine-learning", - "state": "done", - "time": 1483686000000, - "username": "fsullivan6s" - }, - { - "age": 80, - "cost": 25.11, - "country": "RU", - "price": 52, - "project": "elasticsearch", - "state": "running", - "time": 1476687600000, - "username": "jrobertson6t" - }, - { - "age": 28, - "cost": 22.92, - "country": "CN", - "price": 53, - "project": "logstash", - "state": "done", - "time": 1484031600000, - "username": "randrews6u" - }, - { - "age": 75, - "cost": 24.69, - "country": "AL", - "price": 46, - "project": "machine-learning", - "state": "running", - "time": 1462258800000, - "username": "pkim6v" - }, - { - "age": 34, - "cost": 21.66, - "country": "TH", - "price": 55, - "project": "x-pack", - "state": "running", - "time": 1490079600000, - "username": "aharris6w" - }, - { - "age": 78, - "cost": 20.89, - "country": "SI", - "price": 63, - "project": "beats", - "state": "start", - "time": 1485154800000, - "username": "dbarnes6x" - }, - { - "age": 75, - "cost": 22.08, - "country": "FR", - "price": 53, - "project": "machine-learning", - "state": "running", - "time": 1476428400000, - "username": "jhamilton6y" - }, - { - "age": 42, - "cost": 23.16, - "country": "CN", - "price": 50, - "project": "logstash", - "state": "done", - "time": 1473318000000, - "username": "lgibson6z" - }, - { - "age": 29, - "cost": 23.82, - "country": "ID", - "price": 55, - "project": "beats", - "state": "start", - "time": 1488870000000, - "username": "agordon70" - }, - { - "age": 27, - "cost": 23.25, - "country": "US", - "price": 40, - "project": "x-pack", - "state": "done", - "time": 1466319600000, - "username": "slewis71" - }, - { - "age": 67, - "cost": 23.92, - "country": "FI", - "price": 61, - "project": "opbeat", - "state": "start", - "time": 1478242800000, - "username": "slane72" - }, - { - "age": 69, - "cost": 24.53, - "country": "PH", - "price": 49, - "project": "x-pack", - "state": "running", - "time": 1484463600000, - "username": "rramos73" - }, - { - "age": 72, - "cost": 24.16, - "country": "ID", - "price": 59, - "project": "kibana", - "state": "start", - "time": 1480057200000, - "username": "dhawkins74" - }, - { - "age": 31, - "cost": 23.11, - "country": "CN", - "price": 64, - "project": "elasticsearch", - "state": "done", - "time": 1490598000000, - "username": "rlane75" - }, - { - "age": 31, - "cost": 23.41, - "country": "CN", - "price": 70, - "project": "elasticsearch", - "state": "done", - "time": 1490684400000, - "username": "pturner76" - }, - { - "age": 68, - "cost": 23.27, - "country": "JP", - "price": 57, - "project": "machine-learning", - "state": "done", - "time": 1473404400000, - "username": "dlawrence77" - }, - { - "age": 19, - "cost": 23.72, - "country": "CN", - "price": 44, - "project": "machine-learning", - "state": "start", - "time": 1469084400000, - "username": "twelch78" - }, - { - "age": 79, - "cost": 23, - "country": "PH", - "price": 69, - "project": "kibana", - "state": "done", - "time": 1468393200000, - "username": "hwilliams79" - }, - { - "age": 26, - "cost": 23.19, - "country": "CN", - "price": 58, - "project": "machine-learning", - "state": "done", - "time": 1471071600000, - "username": "tbowman7a" - }, - { - "age": 33, - "cost": 22.87, - "country": "YE", - "price": 55, - "project": "machine-learning", - "state": "done", - "time": 1474009200000, - "username": "kwheeler7b" - }, - { - "age": 35, - "cost": 21.5, - "country": "KZ", - "price": 73, - "project": "logstash", - "state": "running", - "time": 1464073200000, - "username": "cgrant7c" - }, - { - "age": 30, - "cost": 22.25, - "country": "PS", - "price": 70, - "project": "kibana", - "state": "running", - "time": 1485154800000, - "username": "cbradley7d" - }, - { - "age": 37, - "cost": 25, - "country": "CN", - "price": 63, - "project": "kibana", - "state": "running", - "time": 1460876400000, - "username": "mrichardson7e" - }, - { - "age": 66, - "cost": 22.22, - "country": "GR", - "price": 61, - "project": "elasticsearch", - "state": "running", - "time": 1479798000000, - "username": "janderson7f" - }, - { - "age": 45, - "cost": 24.05, - "country": "ID", - "price": 59, - "project": "elasticsearch", - "state": "start", - "time": 1475823600000, - "username": "lgriffin7g" - }, - { - "age": 25, - "cost": 22.98, - "country": "ID", - "price": 48, - "project": "opbeat", - "state": "done", - "time": 1484290800000, - "username": "salvarez7h" - }, - { - "age": 36, - "cost": 24.01, - "country": "ID", - "price": 59, - "project": "beats", - "state": "start", - "time": 1474354800000, - "username": "pmills7i" - }, - { - "age": 23, - "cost": 23.07, - "country": "MU", - "price": 56, - "project": "kibana", - "state": "done", - "time": 1490598000000, - "username": "jdunn7j" - }, - { - "age": 68, - "cost": 23.31, - "country": "CN", - "price": 66, - "project": "machine-learning", - "state": "done", - "time": 1491462000000, - "username": "dwilson7k" - }, - { - "age": 78, - "cost": 21.12, - "country": "PH", - "price": 54, - "project": "beats", - "state": "start", - "time": 1467874800000, - "username": "relliott7l" - }, - { - "age": 64, - "cost": 22.85, - "country": "CN", - "price": 70, - "project": "beats", - "state": "done", - "time": 1462518000000, - "username": "drichardson7m" - }, - { - "age": 29, - "cost": 23.52, - "country": "ET", - "price": 51, - "project": "beats", - "state": "start", - "time": 1484982000000, - "username": "mrussell7n" - }, - { - "age": 48, - "cost": 22.43, - "country": "KM", - "price": 61, - "project": "x-pack", - "state": "running", - "time": 1482908400000, - "username": "eharris7o" - }, - { - "age": 59, - "cost": 21.09, - "country": "ZA", - "price": 58, - "project": "elasticsearch", - "state": "start", - "time": 1480489200000, - "username": "sbryant7p" - }, - { - "age": 67, - "cost": 23.3, - "country": "KG", - "price": 54, - "project": "opbeat", - "state": "done", - "time": 1466060400000, - "username": "mchavez7q" - }, - { - "age": 67, - "cost": 22.4, - "country": "MZ", - "price": 65, - "project": "opbeat", - "state": "running", - "time": 1462086000000, - "username": "emurray7r" - }, - { - "age": 47, - "cost": 21.95, - "country": "ID", - "price": 56, - "project": "machine-learning", - "state": "running", - "time": 1479798000000, - "username": "pmoore7s" - }, - { - "age": 77, - "cost": 24.34, - "country": "SE", - "price": 45, - "project": "logstash", - "state": "start", - "time": 1463727600000, - "username": "jdavis7t" - }, - { - "age": 30, - "cost": 23.66, - "country": "CN", - "price": 61, - "project": "kibana", - "state": "start", - "time": 1482822000000, - "username": "pstephens7u" - }, - { - "age": 74, - "cost": 22.75, - "country": "BY", - "price": 53, - "project": "opbeat", - "state": "done", - "time": 1485759600000, - "username": "cbell7v" - }, - { - "age": 52, - "cost": 21.84, - "country": "CN", - "price": 48, - "project": "elasticsearch", - "state": "running", - "time": 1489906800000, - "username": "agordon7w" - }, - { - "age": 76, - "cost": 22.54, - "country": "BR", - "price": 47, - "project": "x-pack", - "state": "done", - "time": 1480143600000, - "username": "cray7x" - }, - { - "age": 55, - "cost": 21.27, - "country": "PT", - "price": 46, - "project": "x-pack", - "state": "start", - "time": 1475132400000, - "username": "llong7y" - }, - { - "age": 64, - "cost": 22.86, - "country": "CN", - "price": 69, - "project": "beats", - "state": "done", - "time": 1461826800000, - "username": "lcoleman7z" - }, - { - "age": 20, - "cost": 23.15, - "country": "ID", - "price": 70, - "project": "x-pack", - "state": "done", - "time": 1466233200000, - "username": "wpalmer80" - }, - { - "age": 31, - "cost": 22, - "country": "ZA", - "price": 61, - "project": "elasticsearch", - "state": "running", - "time": 1473750000000, - "username": "dkim81" - }, - { - "age": 38, - "cost": 22.68, - "country": "PT", - "price": 50, - "project": "elasticsearch", - "state": "done", - "time": 1468911600000, - "username": "fsanders82" - }, - { - "age": 54, - "cost": 22.14, - "country": "UA", - "price": 61, - "project": "machine-learning", - "state": "running", - "time": 1484722800000, - "username": "jmiller83" - }, - { - "age": 43, - "cost": 23.1, - "country": "ZA", - "price": 56, - "project": "beats", - "state": "done", - "time": 1461481200000, - "username": "rreyes84" - }, - { - "age": 56, - "cost": 22.14, - "country": "MN", - "price": 48, - "project": "logstash", - "state": "running", - "time": 1466751600000, - "username": "jmills85" - }, - { - "age": 77, - "cost": 22.58, - "country": "CN", - "price": 57, - "project": "logstash", - "state": "done", - "time": 1474527600000, - "username": "slopez86" - }, - { - "age": 78, - "cost": 21.71, - "country": "CN", - "price": 54, - "project": "beats", - "state": "running", - "time": 1489561200000, - "username": "rthomas87" - }, - { - "age": 23, - "cost": 21.94, - "country": "FR", - "price": 73, - "project": "kibana", - "state": "running", - "time": 1475910000000, - "username": "eharris88" - }, - { - "age": 68, - "cost": 23.13, - "country": "PH", - "price": 57, - "project": "machine-learning", - "state": "done", - "time": 1462950000000, - "username": "sjackson89" - }, - { - "age": 52, - "cost": 23.07, - "country": "GR", - "price": 52, - "project": "elasticsearch", - "state": "done", - "time": 1481353200000, - "username": "preynolds8a" - }, - { - "age": 46, - "cost": 24.87, - "country": "SE", - "price": 51, - "project": "opbeat", - "state": "running", - "time": 1465196400000, - "username": "bmorris8b" - }, - { - "age": 58, - "cost": 23.7, - "country": "ID", - "price": 53, - "project": "kibana", - "state": "start", - "time": 1485068400000, - "username": "rburns8c" - }, - { - "age": 64, - "cost": 22.76, - "country": "IR", - "price": 53, - "project": "beats", - "state": "done", - "time": 1481526000000, - "username": "jsimpson8d" - }, - { - "age": 29, - "cost": 24.01, - "country": "PH", - "price": 61, - "project": "beats", - "state": "start", - "time": 1476946800000, - "username": "dcarter8e" - }, - { - "age": 42, - "cost": 23.06, - "country": "CN", - "price": 57, - "project": "logstash", - "state": "done", - "time": 1489561200000, - "username": "jfisher8f" - }, - { - "age": 60, - "cost": 23.29, - "country": "RU", - "price": 49, - "project": "opbeat", - "state": "done", - "time": 1461740400000, - "username": "kramirez8g" - }, - { - "age": 77, - "cost": 23.35, - "country": "BR", - "price": 53, - "project": "logstash", - "state": "done", - "time": 1479279600000, - "username": "jowens8h" - }, - { - "age": 55, - "cost": 22.16, - "country": "PT", - "price": 58, - "project": "x-pack", - "state": "running", - "time": 1461567600000, - "username": "gweaver8i" - }, - { - "age": 70, - "cost": 21.65, - "country": "JM", - "price": 57, - "project": "logstash", - "state": "running", - "time": 1481958000000, - "username": "jharrison8j" - }, - { - "age": 76, - "cost": 22.98, - "country": "HN", - "price": 51, - "project": "x-pack", - "state": "done", - "time": 1466492400000, - "username": "chenderson8k" - }, - { - "age": 63, - "cost": 24.31, - "country": "PH", - "price": 61, - "project": "logstash", - "state": "start", - "time": 1472886000000, - "username": "lreynolds8l" - }, - { - "age": 18, - "cost": 23.62, - "country": "MA", - "price": 82, - "project": "opbeat", - "state": "start", - "time": 1474095600000, - "username": "ljacobs8m" - }, - { - "age": 34, - "cost": 24.18, - "country": "CN", - "price": 57, - "project": "x-pack", - "state": "start", - "time": 1476082800000, - "username": "pwheeler8n" - }, - { - "age": 50, - "cost": 22.96, - "country": "JP", - "price": 61, - "project": "beats", - "state": "done", - "time": 1480834800000, - "username": "lbrown8o" - }, - { - "age": 49, - "cost": 22.47, - "country": "FI", - "price": 49, - "project": "logstash", - "state": "running", - "time": 1463295600000, - "username": "jgibson8p" - }, - { - "age": 36, - "cost": 23.41, - "country": "MN", - "price": 60, - "project": "beats", - "state": "done", - "time": 1472626800000, - "username": "jfernandez8q" - }, - { - "age": 36, - "cost": 23.26, - "country": "GH", - "price": 55, - "project": "beats", - "state": "done", - "time": 1469602800000, - "username": "swatkins8r" - }, - { - "age": 33, - "cost": 22.15, - "country": "CN", - "price": 52, - "project": "machine-learning", - "state": "running", - "time": 1472972400000, - "username": "kalvarez8s" - }, - { - "age": 69, - "cost": 21, - "country": "FR", - "price": 65, - "project": "x-pack", - "state": "start", - "time": 1470639600000, - "username": "jwarren8t" - }, - { - "age": 68, - "cost": 23.57, - "country": "MN", - "price": 51, - "project": "machine-learning", - "state": "start", - "time": 1466838000000, - "username": "mwallace8u" - }, - { - "age": 31, - "cost": 23.94, - "country": "US", - "price": 54, - "project": "elasticsearch", - "state": "start", - "time": 1475996400000, - "username": "jmarshall8v" - }, - { - "age": 73, - "cost": 24.4, - "country": "RU", - "price": 52, - "project": "elasticsearch", - "state": "start", - "time": 1462431600000, - "username": "aellis8w" - }, - { - "age": 25, - "cost": 22.34, - "country": "PH", - "price": 68, - "project": "opbeat", - "state": "running", - "time": 1468047600000, - "username": "clopez8x" - }, - { - "age": 35, - "cost": 21.65, - "country": "CA", - "price": 63, - "project": "logstash", - "state": "running", - "time": 1474268400000, - "username": "astewart8y" - }, - { - "age": 34, - "cost": 22.75, - "country": "PL", - "price": 71, - "project": "x-pack", - "state": "done", - "time": 1469516400000, - "username": "hlewis8z" - }, - { - "age": 56, - "cost": 22.22, - "country": "MN", - "price": 54, - "project": "logstash", - "state": "running", - "time": 1480057200000, - "username": "wwheeler90" - }, - { - "age": 52, - "cost": 22.04, - "country": "AR", - "price": 49, - "project": "elasticsearch", - "state": "running", - "time": 1490338800000, - "username": "aelliott91" - }, - { - "age": 61, - "cost": 21.27, - "country": "PH", - "price": 55, - "project": "machine-learning", - "state": "start", - "time": 1485241200000, - "username": "khunter92" - }, - { - "age": 23, - "cost": 24.3, - "country": "PL", - "price": 59, - "project": "kibana", - "state": "start", - "time": 1477983600000, - "username": "treed93" - }, - { - "age": 54, - "cost": 23.5, - "country": "UA", - "price": 60, - "project": "machine-learning", - "state": "start", - "time": 1471590000000, - "username": "jperez94" - }, - { - "age": 80, - "cost": 22.4, - "country": "CN", - "price": 57, - "project": "elasticsearch", - "state": "running", - "time": 1468825200000, - "username": "tfowler95" - }, - { - "age": 80, - "cost": 20.93, - "country": "VE", - "price": 49, - "project": "elasticsearch", - "state": "start", - "time": 1474614000000, - "username": "brichardson96" - }, - { - "age": 59, - "cost": 23.28, - "country": "PT", - "price": 51, - "project": "elasticsearch", - "state": "done", - "time": 1488956400000, - "username": "kthomas97" - }, - { - "age": 49, - "cost": 23.26, - "country": "CA", - "price": 54, - "project": "logstash", - "state": "done", - "time": 1487487600000, - "username": "smason98" - }, - { - "age": 75, - "cost": 21.54, - "country": "ID", - "price": 59, - "project": "machine-learning", - "state": "running", - "time": 1472886000000, - "username": "aphillips99" - }, - { - "age": 40, - "cost": 23.23, - "country": "ID", - "price": 54, - "project": "machine-learning", - "state": "done", - "time": 1488006000000, - "username": "jlawrence9a" - }, - { - "age": 58, - "cost": 22.96, - "country": "TZ", - "price": 56, - "project": "kibana", - "state": "done", - "time": 1463036400000, - "username": "rcunningham9b" - }, - { - "age": 61, - "cost": 22.6, - "country": "PL", - "price": 64, - "project": "machine-learning", - "state": "done", - "time": 1476169200000, - "username": "aaustin9c" - }, - { - "age": 68, - "cost": 22.62, - "country": "GT", - "price": 59, - "project": "machine-learning", - "state": "done", - "time": 1464159600000, - "username": "pthompson9d" - }, - { - "age": 59, - "cost": 23.35, - "country": "GR", - "price": 52, - "project": "elasticsearch", - "state": "done", - "time": 1490511600000, - "username": "lscott9e" - }, - { - "age": 40, - "cost": 24.08, - "country": "LA", - "price": 50, - "project": "machine-learning", - "state": "start", - "time": 1471935600000, - "username": "emartinez9f" - }, - { - "age": 42, - "cost": 22.75, - "country": "HR", - "price": 70, - "project": "logstash", - "state": "done", - "time": 1462431600000, - "username": "kbanks9g" - }, - { - "age": 36, - "cost": 21.85, - "country": "BR", - "price": 45, - "project": "beats", - "state": "running", - "time": 1483599600000, - "username": "njames9h" - }, - { - "age": 31, - "cost": 23.26, - "country": "MX", - "price": 51, - "project": "elasticsearch", - "state": "done", - "time": 1463468400000, - "username": "cjordan9i" - }, - { - "age": 74, - "cost": 22.49, - "country": "BR", - "price": 53, - "project": "opbeat", - "state": "running", - "time": 1472626800000, - "username": "thowell9j" - }, - { - "age": 71, - "cost": 23.16, - "country": "ID", - "price": 47, - "project": "beats", - "state": "done", - "time": 1465714800000, - "username": "aramirez9k" - }, - { - "age": 19, - "cost": 21.01, - "country": "VE", - "price": 63, - "project": "machine-learning", - "state": "start", - "time": 1489129200000, - "username": "cgreen9l" - }, - { - "age": 41, - "cost": 23.07, - "country": "FR", - "price": 56, - "project": "x-pack", - "state": "done", - "time": 1463209200000, - "username": "fgardner9m" - }, - { - "age": 70, - "cost": 21.69, - "country": "UA", - "price": 65, - "project": "logstash", - "state": "running", - "time": 1474614000000, - "username": "bbennett9n" - }, - { - "age": 27, - "cost": 21.84, - "country": "SR", - "price": 65, - "project": "x-pack", - "state": "running", - "time": 1464591600000, - "username": "nferguson9o" - }, - { - "age": 27, - "cost": 22.63, - "country": "MX", - "price": 53, - "project": "x-pack", - "state": "done", - "time": 1481958000000, - "username": "rpatterson9p" - }, - { - "age": 71, - "cost": 23.16, - "country": "CN", - "price": 54, - "project": "beats", - "state": "done", - "time": 1469084400000, - "username": "twright9q" - }, - { - "age": 70, - "cost": 23.34, - "country": "PL", - "price": 49, - "project": "logstash", - "state": "done", - "time": 1482649200000, - "username": "hhughes9r" - }, - { - "age": 60, - "cost": 22.06, - "country": "MX", - "price": 59, - "project": "opbeat", - "state": "running", - "time": 1460617200000, - "username": "rjenkins9s" - }, - { - "age": 31, - "cost": 23.14, - "country": "BR", - "price": 59, - "project": "elasticsearch", - "state": "done", - "time": 1480662000000, - "username": "areynolds9t" - }, - { - "age": 75, - "cost": 23.13, - "country": "RU", - "price": 50, - "project": "machine-learning", - "state": "done", - "time": 1473318000000, - "username": "agordon9u" - }, - { - "age": 43, - "cost": 23.58, - "country": "CN", - "price": 52, - "project": "beats", - "state": "start", - "time": 1480057200000, - "username": "bmorris9v" - }, - { - "age": 55, - "cost": 23.86, - "country": "CN", - "price": 57, - "project": "x-pack", - "state": "start", - "time": 1469602800000, - "username": "hriley9w" - }, - { - "age": 48, - "cost": 23.28, - "country": "PH", - "price": 55, - "project": "x-pack", - "state": "done", - "time": 1465369200000, - "username": "psmith9x" - }, - { - "age": 36, - "cost": 23.87, - "country": "CA", - "price": 70, - "project": "beats", - "state": "start", - "time": 1466751600000, - "username": "dwilson9y" - }, - { - "age": 46, - "cost": 22.45, - "country": "RU", - "price": 53, - "project": "opbeat", - "state": "running", - "time": 1482822000000, - "username": "rsanders9z" - }, - { - "age": 61, - "cost": 23.43, - "country": "CN", - "price": 66, - "project": "machine-learning", - "state": "done", - "time": 1480143600000, - "username": "hharta0" - }, - { - "age": 51, - "cost": 23.73, - "country": "US", - "price": 56, - "project": "kibana", - "state": "start", - "time": 1468738800000, - "username": "jsullivana1" - }, - { - "age": 69, - "cost": 22.33, - "country": "ES", - "price": 55, - "project": "x-pack", - "state": "running", - "time": 1462258800000, - "username": "jrobertsona2" - }, - { - "age": 69, - "cost": 22.83, - "country": "CN", - "price": 57, - "project": "x-pack", - "state": "done", - "time": 1485759600000, - "username": "jkennedya3" - }, - { - "age": 32, - "cost": 21.46, - "country": "AR", - "price": 59, - "project": "opbeat", - "state": "start", - "time": 1466406000000, - "username": "crobertsa4" - }, - { - "age": 32, - "cost": 21.75, - "country": "NA", - "price": 49, - "project": "opbeat", - "state": "running", - "time": 1483945200000, - "username": "jcolea5" - }, - { - "age": 74, - "cost": 22.56, - "country": "PL", - "price": 55, - "project": "opbeat", - "state": "done", - "time": 1468825200000, - "username": "llonga6" - }, - { - "age": 70, - "cost": 23.63, - "country": "ID", - "price": 64, - "project": "logstash", - "state": "start", - "time": 1460530800000, - "username": "sgraya7" - }, - { - "age": 48, - "cost": 22.04, - "country": "AL", - "price": 49, - "project": "x-pack", - "state": "running", - "time": 1468306800000, - "username": "jgeorgea8" - }, - { - "age": 61, - "cost": 24.58, - "country": "SS", - "price": 59, - "project": "machine-learning", - "state": "running", - "time": 1486364400000, - "username": "ablacka9" - }, - { - "age": 27, - "cost": 23.69, - "country": "RU", - "price": 54, - "project": "x-pack", - "state": "start", - "time": 1461999600000, - "username": "jrileyaa" - }, - { - "age": 35, - "cost": 24.23, - "country": "CN", - "price": 62, - "project": "logstash", - "state": "start", - "time": 1466924400000, - "username": "jwalkerab" - }, - { - "age": 26, - "cost": 23.34, - "country": "PL", - "price": 58, - "project": "machine-learning", - "state": "done", - "time": 1486710000000, - "username": "vrussellac" - }, - { - "age": 27, - "cost": 22.1, - "country": "ID", - "price": 56, - "project": "x-pack", - "state": "running", - "time": 1478761200000, - "username": "acooperad" - }, - { - "age": 29, - "cost": 24.27, - "country": "MD", - "price": 55, - "project": "beats", - "state": "start", - "time": 1471244400000, - "username": "rhansonae" - }, - { - "age": 55, - "cost": 23.33, - "country": "SE", - "price": 60, - "project": "x-pack", - "state": "done", - "time": 1461826800000, - "username": "wmooreaf" - }, - { - "age": 33, - "cost": 23.42, - "country": "CO", - "price": 54, - "project": "machine-learning", - "state": "done", - "time": 1463986800000, - "username": "hmccoyag" - }, - { - "age": 75, - "cost": 24.45, - "country": "HR", - "price": 40, - "project": "machine-learning", - "state": "start", - "time": 1491462000000, - "username": "cbarnesah" - }, - { - "age": 60, - "cost": 22.59, - "country": "PT", - "price": 58, - "project": "opbeat", - "state": "done", - "time": 1469430000000, - "username": "jharrisai" - }, - { - "age": 58, - "cost": 21.94, - "country": "CN", - "price": 64, - "project": "kibana", - "state": "running", - "time": 1474441200000, - "username": "swardaj" - }, - { - "age": 51, - "cost": 20.57, - "country": "CN", - "price": 65, - "project": "kibana", - "state": "start", - "time": 1482217200000, - "username": "jhuntak" - }, - { - "age": 36, - "cost": 21.7, - "country": "CN", - "price": 52, - "project": "beats", - "state": "running", - "time": 1461481200000, - "username": "gmartinezal" - }, - { - "age": 19, - "cost": 22.56, - "country": "PA", - "price": 46, - "project": "machine-learning", - "state": "done", - "time": 1484463600000, - "username": "sturneram" - }, - { - "age": 40, - "cost": 23.12, - "country": "RU", - "price": 65, - "project": "machine-learning", - "state": "done", - "time": 1486537200000, - "username": "jortizan" - }, - { - "age": 73, - "cost": 22.32, - "country": "SI", - "price": 49, - "project": "elasticsearch", - "state": "running", - "time": 1467356400000, - "username": "gwatsonao" - }, - { - "age": 38, - "cost": 23.42, - "country": "UA", - "price": 56, - "project": "elasticsearch", - "state": "done", - "time": 1482476400000, - "username": "ckingap" - }, - { - "age": 32, - "cost": 23.07, - "country": "NO", - "price": 66, - "project": "opbeat", - "state": "done", - "time": 1488956400000, - "username": "nfreemanaq" - }, - { - "age": 21, - "cost": 21.13, - "country": "UY", - "price": 66, - "project": "logstash", - "state": "start", - "time": 1473058800000, - "username": "vandrewsar" - }, - { - "age": 46, - "cost": 24.48, - "country": "PH", - "price": 68, - "project": "opbeat", - "state": "start", - "time": 1472540400000, - "username": "jgonzalezas" - }, - { - "age": 72, - "cost": 23.11, - "country": "CI", - "price": 61, - "project": "kibana", - "state": "done", - "time": 1481180400000, - "username": "vkingat" - }, - { - "age": 75, - "cost": 22.27, - "country": "GH", - "price": 43, - "project": "machine-learning", - "state": "running", - "time": 1468047600000, - "username": "rdeanau" - }, - { - "age": 29, - "cost": 22.41, - "country": "ID", - "price": 63, - "project": "beats", - "state": "running", - "time": 1481526000000, - "username": "hfosterav" - }, - { - "age": 75, - "cost": 21.44, - "country": "SE", - "price": 63, - "project": "machine-learning", - "state": "start", - "time": 1475564400000, - "username": "fgarciaaw" - }, - { - "age": 44, - "cost": 23.87, - "country": "PH", - "price": 62, - "project": "kibana", - "state": "start", - "time": 1464937200000, - "username": "pwhiteax" - }, - { - "age": 53, - "cost": 22.79, - "country": "CN", - "price": 47, - "project": "opbeat", - "state": "done", - "time": 1491116400000, - "username": "chuntay" - }, - { - "age": 47, - "cost": 22.86, - "country": "CN", - "price": 60, - "project": "machine-learning", - "state": "done", - "time": 1478588400000, - "username": "dfranklinaz" - }, - { - "age": 71, - "cost": 24, - "country": "CZ", - "price": 64, - "project": "beats", - "state": "start", - "time": 1480230000000, - "username": "djacksonb0" - }, - { - "age": 44, - "cost": 21.93, - "country": "RU", - "price": 67, - "project": "kibana", - "state": "running", - "time": 1460358000000, - "username": "sbutlerb1" - }, - { - "age": 32, - "cost": 23.24, - "country": "GR", - "price": 41, - "project": "opbeat", - "state": "done", - "time": 1460962800000, - "username": "nporterb2" - }, - { - "age": 55, - "cost": 22.31, - "country": "RU", - "price": 65, - "project": "x-pack", - "state": "running", - "time": 1483167600000, - "username": "sburnsb3" - }, - { - "age": 59, - "cost": 23.16, - "country": "JP", - "price": 56, - "project": "elasticsearch", - "state": "done", - "time": 1468911600000, - "username": "jhendersonb4" - }, - { - "age": 73, - "cost": 22.79, - "country": "FR", - "price": 63, - "project": "elasticsearch", - "state": "done", - "time": 1479020400000, - "username": "dgonzalesb5" - }, - { - "age": 41, - "cost": 24.15, - "country": "ID", - "price": 64, - "project": "x-pack", - "state": "start", - "time": 1478674800000, - "username": "cbarnesb6" - }, - { - "age": 25, - "cost": 20.11, - "country": "ID", - "price": 58, - "project": "opbeat", - "state": "done", - "time": 1468652400000, - "username": "mcoxb7" - }, - { - "age": 74, - "cost": 24.27, - "country": "CN", - "price": 52, - "project": "opbeat", - "state": "start", - "time": 1478329200000, - "username": "rbowmanb8" - }, - { - "age": 43, - "cost": 23.9, - "country": "PE", - "price": 51, - "project": "beats", - "state": "start", - "time": 1472972400000, - "username": "dkingb9" - }, - { - "age": 33, - "cost": 21.86, - "country": "CN", - "price": 56, - "project": "machine-learning", - "state": "running", - "time": 1470898800000, - "username": "dwilliamsonba" - }, - { - "age": 32, - "cost": 21.96, - "country": "BR", - "price": 51, - "project": "opbeat", - "state": "running", - "time": 1479452400000, - "username": "jmorrisonbb" - }, - { - "age": 39, - "cost": 22.6, - "country": "PE", - "price": 58, - "project": "opbeat", - "state": "done", - "time": 1467529200000, - "username": "dcastillobc" - }, - { - "age": 30, - "cost": 22.08, - "country": "CN", - "price": 47, - "project": "kibana", - "state": "running", - "time": 1482822000000, - "username": "rgriffinbd" - }, - { - "age": 79, - "cost": 21.6, - "country": "VN", - "price": 49, - "project": "kibana", - "state": "running", - "time": 1479193200000, - "username": "ascottbe" - }, - { - "age": 71, - "cost": 21.06, - "country": "TH", - "price": 57, - "project": "beats", - "state": "start", - "time": 1475132400000, - "username": "dlynchbf" - }, - { - "age": 49, - "cost": 22.18, - "country": "ID", - "price": 54, - "project": "logstash", - "state": "running", - "time": 1471158000000, - "username": "epetersbg" - }, - { - "age": 53, - "cost": 22.57, - "country": "LU", - "price": 57, - "project": "opbeat", - "state": "done", - "time": 1477897200000, - "username": "agonzalezbh" - }, - { - "age": 23, - "cost": 24.78, - "country": "CN", - "price": 64, - "project": "kibana", - "state": "running", - "time": 1463814000000, - "username": "kcookbi" - }, - { - "age": 74, - "cost": 21.34, - "country": "WS", - "price": 47, - "project": "opbeat", - "state": "start", - "time": 1491548400000, - "username": "rjacksonbj" - }, - { - "age": 35, - "cost": 23.38, - "country": "RU", - "price": 50, - "project": "logstash", - "state": "done", - "time": 1475391600000, - "username": "cwellsbk" - }, - { - "age": 22, - "cost": 25.07, - "country": "PH", - "price": 59, - "project": "beats", - "state": "running", - "time": 1480748400000, - "username": "rgarzabl" - }, - { - "age": 37, - "cost": 23.48, - "country": "DK", - "price": 53, - "project": "kibana", - "state": "done", - "time": 1462431600000, - "username": "rramirezbm" - }, - { - "age": 66, - "cost": 24.11, - "country": "ID", - "price": 60, - "project": "elasticsearch", - "state": "start", - "time": 1489388400000, - "username": "jperezbn" - }, - { - "age": 33, - "cost": 22.4, - "country": "PL", - "price": 54, - "project": "machine-learning", - "state": "running", - "time": 1468998000000, - "username": "kricebo" - }, - { - "age": 23, - "cost": 24.47, - "country": "ID", - "price": 73, - "project": "kibana", - "state": "start", - "time": 1487833200000, - "username": "smoorebp" - }, - { - "age": 60, - "cost": 25.35, - "country": "PL", - "price": 57, - "project": "opbeat", - "state": "running", - "time": 1478242800000, - "username": "pwhitebq" - }, - { - "age": 75, - "cost": 22.58, - "country": "CN", - "price": 42, - "project": "machine-learning", - "state": "done", - "time": 1483340400000, - "username": "tleebr" - }, - { - "age": 18, - "cost": 23.18, - "country": "UG", - "price": 53, - "project": "opbeat", - "state": "done", - "time": 1467356400000, - "username": "bfrazierbs" - }, - { - "age": 57, - "cost": 23.39, - "country": "RU", - "price": 51, - "project": "beats", - "state": "done", - "time": 1482217200000, - "username": "salvarezbt" - }, - { - "age": 23, - "cost": 23.31, - "country": "CN", - "price": 45, - "project": "kibana", - "state": "done", - "time": 1490770800000, - "username": "bgonzalezbu" - }, - { - "age": 65, - "cost": 22.43, - "country": "CZ", - "price": 52, - "project": "kibana", - "state": "running", - "time": 1479711600000, - "username": "kdavisbv" - }, - { - "age": 31, - "cost": 23.73, - "country": "NI", - "price": 51, - "project": "elasticsearch", - "state": "start", - "time": 1485241200000, - "username": "jburtonbw" - }, - { - "age": 50, - "cost": 22.05, - "country": "KM", - "price": 57, - "project": "beats", - "state": "running", - "time": 1482476400000, - "username": "dgutierrezbx" - }, - { - "age": 47, - "cost": 22.76, - "country": "BR", - "price": 39, - "project": "machine-learning", - "state": "done", - "time": 1461567600000, - "username": "akelleyby" - }, - { - "age": 31, - "cost": 22.57, - "country": "DK", - "price": 48, - "project": "elasticsearch", - "state": "done", - "time": 1488438000000, - "username": "grobertsbz" - }, - { - "age": 21, - "cost": 23.62, - "country": "CN", - "price": 65, - "project": "logstash", - "state": "start", - "time": 1487142000000, - "username": "aweaverc0" - }, - { - "age": 50, - "cost": 23.85, - "country": "SE", - "price": 51, - "project": "beats", - "state": "start", - "time": 1491202800000, - "username": "charrisonc1" - }, - { - "age": 38, - "cost": 23.17, - "country": "PL", - "price": 52, - "project": "elasticsearch", - "state": "done", - "time": 1461826800000, - "username": "jlewisc2" - }, - { - "age": 47, - "cost": 22.21, - "country": "JP", - "price": 47, - "project": "machine-learning", - "state": "running", - "time": 1487487600000, - "username": "schavezc3" - }, - { - "age": 42, - "cost": 22.45, - "country": "BR", - "price": 56, - "project": "logstash", - "state": "running", - "time": 1462518000000, - "username": "acoxc4" - }, - { - "age": 52, - "cost": 21.66, - "country": "NG", - "price": 58, - "project": "elasticsearch", - "state": "running", - "time": 1470380400000, - "username": "jsanchezc5" - }, - { - "age": 79, - "cost": 23.36, - "country": "RU", - "price": 59, - "project": "kibana", - "state": "done", - "time": 1469343600000, - "username": "gpricec6" - }, - { - "age": 60, - "cost": 22.5, - "country": "CN", - "price": 51, - "project": "opbeat", - "state": "done", - "time": 1466492400000, - "username": "tgarrettc7" - }, - { - "age": 30, - "cost": 22.33, - "country": "RU", - "price": 53, - "project": "kibana", - "state": "running", - "time": 1464073200000, - "username": "llawrencec8" - }, - { - "age": 60, - "cost": 22.6, - "country": "RU", - "price": 47, - "project": "opbeat", - "state": "done", - "time": 1472540400000, - "username": "mgordonc9" - }, - { - "age": 36, - "cost": 23.62, - "country": "PL", - "price": 65, - "project": "beats", - "state": "start", - "time": 1486710000000, - "username": "jmendozaca" - }, - { - "age": 69, - "cost": 23.58, - "country": "CN", - "price": 58, - "project": "x-pack", - "state": "start", - "time": 1490857200000, - "username": "dsnydercb" - }, - { - "age": 20, - "cost": 22.55, - "country": "RU", - "price": 66, - "project": "x-pack", - "state": "done", - "time": 1473663600000, - "username": "pclarkcc" - }, - { - "age": 69, - "cost": 23.92, - "country": "PH", - "price": 60, - "project": "x-pack", - "state": "start", - "time": 1483426800000, - "username": "bkennedycd" - }, - { - "age": 73, - "cost": 23.46, - "country": "PH", - "price": 59, - "project": "elasticsearch", - "state": "done", - "time": 1476255600000, - "username": "gwalkerce" - }, - { - "age": 28, - "cost": 25.75, - "country": "ID", - "price": 50, - "project": "logstash", - "state": "done", - "time": 1475737200000, - "username": "bruizcf" - }, - { - "age": 21, - "cost": 22.5, - "country": "CN", - "price": 44, - "project": "logstash", - "state": "done", - "time": 1465196400000, - "username": "aflorescg" - }, - { - "age": 70, - "cost": 20.85, - "country": "MX", - "price": 47, - "project": "logstash", - "state": "start", - "time": 1472108400000, - "username": "eberrych" - }, - { - "age": 79, - "cost": 22.12, - "country": "SO", - "price": 57, - "project": "kibana", - "state": "running", - "time": 1486364400000, - "username": "ahudsonci" - }, - { - "age": 38, - "cost": 23.02, - "country": "ID", - "price": 50, - "project": "elasticsearch", - "state": "done", - "time": 1487660400000, - "username": "khawkinscj" - }, - { - "age": 38, - "cost": 23.25, - "country": "RU", - "price": 47, - "project": "elasticsearch", - "state": "done", - "time": 1486969200000, - "username": "mwagnerck" - }, - { - "age": 64, - "cost": 22.15, - "country": "CN", - "price": 57, - "project": "beats", - "state": "running", - "time": 1481353200000, - "username": "kbradleycl" - }, - { - "age": 36, - "cost": 24.74, - "country": "CN", - "price": 52, - "project": "beats", - "state": "running", - "time": 1468134000000, - "username": "ejenkinscm" - }, - { - "age": 19, - "cost": 22.69, - "country": "ZM", - "price": 59, - "project": "machine-learning", - "state": "done", - "time": 1476601200000, - "username": "cruizcn" - }, - { - "age": 53, - "cost": 25.07, - "country": "BR", - "price": 43, - "project": "opbeat", - "state": "running", - "time": 1487487600000, - "username": "ljamesco" - }, - { - "age": 26, - "cost": 23.43, - "country": "AE", - "price": 57, - "project": "machine-learning", - "state": "done", - "time": 1470121200000, - "username": "kcarrollcp" - }, - { - "age": 44, - "cost": 21.62, - "country": "US", - "price": 69, - "project": "kibana", - "state": "running", - "time": 1470034800000, - "username": "mbryantcq" - }, - { - "age": 40, - "cost": 24.76, - "country": "DE", - "price": 40, - "project": "machine-learning", - "state": "running", - "time": 1490770800000, - "username": "jcrawfordcr" - }, - { - "age": 23, - "cost": 24.06, - "country": "JP", - "price": 67, - "project": "kibana", - "state": "start", - "time": 1472281200000, - "username": "bsimscs" - }, - { - "age": 23, - "cost": 22.84, - "country": "ID", - "price": 50, - "project": "kibana", - "state": "done", - "time": 1474268400000, - "username": "bphillipsct" - }, - { - "age": 79, - "cost": 22.51, - "country": "ID", - "price": 71, - "project": "kibana", - "state": "done", - "time": 1482562800000, - "username": "jortizcu" - }, - { - "age": 26, - "cost": 22.11, - "country": "ID", - "price": 57, - "project": "machine-learning", - "state": "running", - "time": 1471503600000, - "username": "dmartinezcv" - }, - { - "age": 61, - "cost": 21.3, - "country": "BR", - "price": 61, - "project": "machine-learning", - "state": "start", - "time": 1465455600000, - "username": "mgordoncw" - }, - { - "age": 68, - "cost": 23.92, - "country": "CN", - "price": 49, - "project": "machine-learning", - "state": "start", - "time": 1488092400000, - "username": "amasoncx" - }, - { - "age": 26, - "cost": 24.56, - "country": "UG", - "price": 66, - "project": "machine-learning", - "state": "running", - "time": 1462086000000, - "username": "whowellcy" - }, - { - "age": 67, - "cost": 24.98, - "country": "MY", - "price": 45, - "project": "opbeat", - "state": "running", - "time": 1479452400000, - "username": "bhuntcz" - }, - { - "age": 49, - "cost": 23.13, - "country": "ID", - "price": 60, - "project": "logstash", - "state": "done", - "time": 1460358000000, - "username": "agardnerd0" - }, - { - "age": 18, - "cost": 22.52, - "country": "ET", - "price": 48, - "project": "opbeat", - "state": "done", - "time": 1474700400000, - "username": "nduncand1" - }, - { - "age": 35, - "cost": 23.12, - "country": "MY", - "price": 53, - "project": "logstash", - "state": "done", - "time": 1491289200000, - "username": "mhernandezd2" - }, - { - "age": 54, - "cost": 23.35, - "country": "CN", - "price": 48, - "project": "machine-learning", - "state": "done", - "time": 1461394800000, - "username": "rcoled3" - }, - { - "age": 23, - "cost": 23.54, - "country": "NO", - "price": 48, - "project": "kibana", - "state": "start", - "time": 1474700400000, - "username": "jmarshalld4" - }, - { - "age": 66, - "cost": 22.95, - "country": "JM", - "price": 75, - "project": "elasticsearch", - "state": "done", - "time": 1482044400000, - "username": "phuntd5" - }, - { - "age": 29, - "cost": 21.87, - "country": "PH", - "price": 59, - "project": "beats", - "state": "running", - "time": 1475737200000, - "username": "adixond6" - }, - { - "age": 48, - "cost": 23.39, - "country": "CN", - "price": 58, - "project": "x-pack", - "state": "done", - "time": 1489734000000, - "username": "bgutierrezd7" - }, - { - "age": 65, - "cost": 21.78, - "country": "UA", - "price": 57, - "project": "kibana", - "state": "running", - "time": 1463382000000, - "username": "hnelsond8" - }, - { - "age": 30, - "cost": 22.99, - "country": "GY", - "price": 51, - "project": "kibana", - "state": "done", - "time": 1460271600000, - "username": "acollinsd9" - }, - { - "age": 33, - "cost": 23.3, - "country": "VN", - "price": 57, - "project": "machine-learning", - "state": "done", - "time": 1490770800000, - "username": "tmillerda" - }, - { - "age": 26, - "cost": 22.67, - "country": "JP", - "price": 44, - "project": "machine-learning", - "state": "done", - "time": 1480402800000, - "username": "tmasondb" - }, - { - "age": 69, - "cost": 24.17, - "country": "PL", - "price": 72, - "project": "x-pack", - "state": "start", - "time": 1477551600000, - "username": "baustindc" - }, - { - "age": 53, - "cost": 22.38, - "country": "TH", - "price": 50, - "project": "opbeat", - "state": "running", - "time": 1489129200000, - "username": "dgriffindd" - }, - { - "age": 61, - "cost": 22.69, - "country": "AL", - "price": 48, - "project": "machine-learning", - "state": "done", - "time": 1467874800000, - "username": "dryande" - }, - { - "age": 57, - "cost": 23.94, - "country": "CN", - "price": 46, - "project": "beats", - "state": "start", - "time": 1460876400000, - "username": "kmurraydf" - }, - { - "age": 53, - "cost": 22.52, - "country": "ID", - "price": 42, - "project": "opbeat", - "state": "done", - "time": 1480057200000, - "username": "hdiazdg" - }, - { - "age": 64, - "cost": 22.93, - "country": "LT", - "price": 57, - "project": "beats", - "state": "done", - "time": 1483081200000, - "username": "anicholsdh" - }, - { - "age": 73, - "cost": 21.81, - "country": "US", - "price": 49, - "project": "elasticsearch", - "state": "running", - "time": 1477724400000, - "username": "wgreendi" - }, - { - "age": 47, - "cost": 24.86, - "country": "BR", - "price": 45, - "project": "machine-learning", - "state": "running", - "time": 1483513200000, - "username": "anicholsdj" - }, - { - "age": 57, - "cost": 21.42, - "country": "MN", - "price": 69, - "project": "beats", - "state": "start", - "time": 1483340400000, - "username": "fstevensdk" - }, - { - "age": 78, - "cost": 22.55, - "country": "CN", - "price": 58, - "project": "beats", - "state": "done", - "time": 1472454000000, - "username": "wfrazierdl" - }, - { - "age": 43, - "cost": 22.22, - "country": "ID", - "price": 57, - "project": "beats", - "state": "running", - "time": 1475305200000, - "username": "hbelldm" - }, - { - "age": 72, - "cost": 22.9, - "country": "CN", - "price": 47, - "project": "kibana", - "state": "done", - "time": 1480834800000, - "username": "edixondn" - }, - { - "age": 40, - "cost": 21.5, - "country": "AR", - "price": 57, - "project": "machine-learning", - "state": "running", - "time": 1480662000000, - "username": "kraydo" - }, - { - "age": 36, - "cost": 23.45, - "country": "RU", - "price": 43, - "project": "beats", - "state": "done", - "time": 1485241200000, - "username": "nmurphydp" - }, - { - "age": 56, - "cost": 23.03, - "country": "KR", - "price": 62, - "project": "logstash", - "state": "done", - "time": 1483426800000, - "username": "ssimsdq" - }, - { - "age": 18, - "cost": 22.57, - "country": "ID", - "price": 52, - "project": "opbeat", - "state": "done", - "time": 1485414000000, - "username": "brusselldr" - }, - { - "age": 41, - "cost": 21.47, - "country": "AL", - "price": 56, - "project": "x-pack", - "state": "start", - "time": 1477897200000, - "username": "mmillsds" - }, - { - "age": 46, - "cost": 21.8, - "country": "KE", - "price": 74, - "project": "opbeat", - "state": "running", - "time": 1488092400000, - "username": "jdixondt" - }, - { - "age": 66, - "cost": 24.32, - "country": "TH", - "price": 49, - "project": "elasticsearch", - "state": "start", - "time": 1479452400000, - "username": "bmurphydu" - }, - { - "age": 44, - "cost": 24.61, - "country": "NZ", - "price": 61, - "project": "kibana", - "state": "running", - "time": 1476946800000, - "username": "inicholsdv" - }, - { - "age": 64, - "cost": 21.53, - "country": "NL", - "price": 50, - "project": "beats", - "state": "running", - "time": 1464246000000, - "username": "hstanleydw" - }, - { - "age": 79, - "cost": 21.6, - "country": "CN", - "price": 63, - "project": "kibana", - "state": "running", - "time": 1479538800000, - "username": "nwatkinsdx" - }, - { - "age": 78, - "cost": 23.3, - "country": "PL", - "price": 61, - "project": "beats", - "state": "done", - "time": 1478415600000, - "username": "dmccoydy" - }, - { - "age": 33, - "cost": 24.21, - "country": "PA", - "price": 52, - "project": "machine-learning", - "state": "start", - "time": 1470812400000, - "username": "dchavezdz" - }, - { - "age": 76, - "cost": 23.57, - "country": "PE", - "price": 65, - "project": "x-pack", - "state": "start", - "time": 1467529200000, - "username": "jphillipse0" - }, - { - "age": 41, - "cost": 25.17, - "country": "ID", - "price": 55, - "project": "x-pack", - "state": "running", - "time": 1475046000000, - "username": "ppalmere1" - }, - { - "age": 56, - "cost": 22.74, - "country": "ID", - "price": 56, - "project": "logstash", - "state": "done", - "time": 1482476400000, - "username": "knelsone2" - }, - { - "age": 78, - "cost": 21.78, - "country": "GR", - "price": 57, - "project": "beats", - "state": "running", - "time": 1479020400000, - "username": "gclarke3" - }, - { - "age": 65, - "cost": 21.68, - "country": "VE", - "price": 39, - "project": "kibana", - "state": "running", - "time": 1474182000000, - "username": "rstewarte4" - }, - { - "age": 54, - "cost": 23.5, - "country": "CN", - "price": 65, - "project": "machine-learning", - "state": "start", - "time": 1467529200000, - "username": "vramose5" - }, - { - "age": 69, - "cost": 23.54, - "country": "CN", - "price": 52, - "project": "x-pack", - "state": "start", - "time": 1460617200000, - "username": "kkennedye6" - }, - { - "age": 64, - "cost": 24.08, - "country": "CN", - "price": 54, - "project": "beats", - "state": "start", - "time": 1463036400000, - "username": "sharveye7" - }, - { - "age": 44, - "cost": 24.9, - "country": "NO", - "price": 61, - "project": "kibana", - "state": "running", - "time": 1476514800000, - "username": "jandrewse8" - }, - { - "age": 72, - "cost": 24.49, - "country": "HN", - "price": 53, - "project": "kibana", - "state": "start", - "time": 1482130800000, - "username": "gwashingtone9" - }, - { - "age": 25, - "cost": 23.14, - "country": "CZ", - "price": 55, - "project": "opbeat", - "state": "done", - "time": 1479193200000, - "username": "tgrahamea" - }, - { - "age": 65, - "cost": 23.11, - "country": "GR", - "price": 53, - "project": "kibana", - "state": "done", - "time": 1464332400000, - "username": "awatsoneb" - }, - { - "age": 53, - "cost": 21.38, - "country": "ID", - "price": 46, - "project": "opbeat", - "state": "start", - "time": 1472540400000, - "username": "cnicholsec" - }, - { - "age": 74, - "cost": 24.07, - "country": "CN", - "price": 60, - "project": "opbeat", - "state": "start", - "time": 1473318000000, - "username": "dhamiltoned" - }, - { - "age": 31, - "cost": 22.77, - "country": "ID", - "price": 60, - "project": "elasticsearch", - "state": "done", - "time": 1489820400000, - "username": "pjordanee" - }, - { - "age": 32, - "cost": 22.87, - "country": "FR", - "price": 58, - "project": "opbeat", - "state": "done", - "time": 1464159600000, - "username": "rclarkef" - }, - { - "age": 63, - "cost": 24.53, - "country": "LI", - "price": 62, - "project": "logstash", - "state": "running", - "time": 1491462000000, - "username": "mgonzaleseg" - }, - { - "age": 73, - "cost": 21.39, - "country": "ID", - "price": 57, - "project": "elasticsearch", - "state": "start", - "time": 1473145200000, - "username": "tsnydereh" - }, - { - "age": 24, - "cost": 23.36, - "country": "PH", - "price": 54, - "project": "elasticsearch", - "state": "done", - "time": 1475564400000, - "username": "bedwardsei" - }, - { - "age": 33, - "cost": 22.73, - "country": "CN", - "price": 53, - "project": "machine-learning", - "state": "done", - "time": 1460358000000, - "username": "preyesej" - }, - { - "age": 22, - "cost": 22.35, - "country": "AR", - "price": 44, - "project": "beats", - "state": "running", - "time": 1472713200000, - "username": "aclarkek" - }, - { - "age": 27, - "cost": 22.26, - "country": "GH", - "price": 53, - "project": "x-pack", - "state": "running", - "time": 1487314800000, - "username": "wgeorgeel" - }, - { - "age": 25, - "cost": 23.06, - "country": "AZ", - "price": 53, - "project": "opbeat", - "state": "done", - "time": 1484204400000, - "username": "telliottem" - }, - { - "age": 57, - "cost": 24.79, - "country": "RU", - "price": 49, - "project": "beats", - "state": "running", - "time": 1487314800000, - "username": "lwooden" - }, - { - "age": 32, - "cost": 22.63, - "country": "PH", - "price": 53, - "project": "opbeat", - "state": "done", - "time": 1472886000000, - "username": "emitchelleo" - }, - { - "age": 73, - "cost": 20.87, - "country": "AR", - "price": 45, - "project": "elasticsearch", - "state": "start", - "time": 1471590000000, - "username": "ccarrep" - }, - { - "age": 25, - "cost": 21.37, - "country": "AR", - "price": 70, - "project": "opbeat", - "state": "start", - "time": 1482044400000, - "username": "mfishereq" - }, - { - "age": 40, - "cost": 23.42, - "country": "FR", - "price": 53, - "project": "machine-learning", - "state": "done", - "time": 1490943600000, - "username": "tgrayer" - }, - { - "age": 62, - "cost": 22.33, - "country": "KP", - "price": 64, - "project": "x-pack", - "state": "running", - "time": 1464332400000, - "username": "pstanleyes" - }, - { - "age": 73, - "cost": 23.69, - "country": "CN", - "price": 51, - "project": "elasticsearch", - "state": "start", - "time": 1479366000000, - "username": "nfoxet" - }, - { - "age": 21, - "cost": 21.33, - "country": "PT", - "price": 51, - "project": "logstash", - "state": "start", - "time": 1474441200000, - "username": "rstanleyeu" - }, - { - "age": 65, - "cost": 22.93, - "country": "PE", - "price": 50, - "project": "kibana", - "state": "done", - "time": 1476687600000, - "username": "jrobinsonev" - }, - { - "age": 21, - "cost": 22.89, - "country": "BD", - "price": 54, - "project": "logstash", - "state": "done", - "time": 1475391600000, - "username": "jrichardsew" - }, - { - "age": 24, - "cost": 21.94, - "country": "CN", - "price": 64, - "project": "elasticsearch", - "state": "running", - "time": 1471071600000, - "username": "hwebbex" - }, - { - "age": 46, - "cost": 21.95, - "country": "ID", - "price": 61, - "project": "opbeat", - "state": "running", - "time": 1479538800000, - "username": "awestey" - }, - { - "age": 64, - "cost": 22.09, - "country": "PL", - "price": 45, - "project": "beats", - "state": "running", - "time": 1462431600000, - "username": "ljacobsez" - }, - { - "age": 55, - "cost": 23.6, - "country": "GR", - "price": 54, - "project": "x-pack", - "state": "start", - "time": 1475478000000, - "username": "krussellf0" - }, - { - "age": 55, - "cost": 22.9, - "country": "PL", - "price": 63, - "project": "x-pack", - "state": "done", - "time": 1485154800000, - "username": "amedinaf1" - }, - { - "age": 38, - "cost": 22.83, - "country": "CN", - "price": 63, - "project": "elasticsearch", - "state": "done", - "time": 1473577200000, - "username": "tjenkinsf2" - }, - { - "age": 64, - "cost": 24.1, - "country": "ID", - "price": 44, - "project": "beats", - "state": "start", - "time": 1482822000000, - "username": "lrileyf3" - }, - { - "age": 52, - "cost": 21.41, - "country": "BR", - "price": 50, - "project": "elasticsearch", - "state": "start", - "time": 1480057200000, - "username": "dsimpsonf4" - }, - { - "age": 34, - "cost": 23.48, - "country": "BR", - "price": 66, - "project": "x-pack", - "state": "done", - "time": 1481612400000, - "username": "nwoodsf5" - }, - { - "age": 65, - "cost": 23.04, - "country": "KR", - "price": 75, - "project": "kibana", - "state": "done", - "time": 1464850800000, - "username": "acruzf6" - }, - { - "age": 45, - "cost": 25, - "country": "SE", - "price": 54, - "project": "elasticsearch", - "state": "running", - "time": 1466838000000, - "username": "rmyersf7" - }, - { - "age": 29, - "cost": 21.82, - "country": "TL", - "price": 54, - "project": "beats", - "state": "running", - "time": 1474441200000, - "username": "sfowlerf8" - }, - { - "age": 51, - "cost": 22.2, - "country": "IL", - "price": 54, - "project": "kibana", - "state": "running", - "time": 1463641200000, - "username": "bsimsf9" - }, - { - "age": 23, - "cost": 22.49, - "country": "CN", - "price": 54, - "project": "kibana", - "state": "running", - "time": 1472367600000, - "username": "acampbellfa" - }, - { - "age": 35, - "cost": 23.36, - "country": "RU", - "price": 54, - "project": "logstash", - "state": "done", - "time": 1472799600000, - "username": "llarsonfb" - }, - { - "age": 32, - "cost": 23, - "country": "CN", - "price": 66, - "project": "opbeat", - "state": "done", - "time": 1479625200000, - "username": "kbanksfc" - }, - { - "age": 64, - "cost": 21.07, - "country": "CN", - "price": 56, - "project": "beats", - "state": "start", - "time": 1486882800000, - "username": "jwatkinsfd" - }, - { - "age": 23, - "cost": 23.87, - "country": "PT", - "price": 58, - "project": "kibana", - "state": "start", - "time": 1485846000000, - "username": "kfranklinfe" - }, - { - "age": 22, - "cost": 21.68, - "country": "MX", - "price": 60, - "project": "beats", - "state": "running", - "time": 1479366000000, - "username": "jhuntff" - }, - { - "age": 58, - "cost": 24.67, - "country": "AM", - "price": 57, - "project": "kibana", - "state": "running", - "time": 1488265200000, - "username": "njenkinsfg" - }, - { - "age": 78, - "cost": 24.49, - "country": "CN", - "price": 49, - "project": "beats", - "state": "start", - "time": 1464159600000, - "username": "mjenkinsfh" - }, - { - "age": 46, - "cost": 23.31, - "country": "JP", - "price": 57, - "project": "opbeat", - "state": "done", - "time": 1465974000000, - "username": "adayfi" - }, - { - "age": 68, - "cost": 23.91, - "country": "PF", - "price": 58, - "project": "machine-learning", - "state": "start", - "time": 1479452400000, - "username": "lcoxfj" - }, - { - "age": 79, - "cost": 23.67, - "country": "CA", - "price": 62, - "project": "kibana", - "state": "start", - "time": 1479538800000, - "username": "dhansenfk" - }, - { - "age": 70, - "cost": 23.46, - "country": "VE", - "price": 66, - "project": "logstash", - "state": "done", - "time": 1464073200000, - "username": "rharrisonfl" - }, - { - "age": 71, - "cost": 22.41, - "country": "RS", - "price": 55, - "project": "beats", - "state": "running", - "time": 1472886000000, - "username": "aromerofm" - }, - { - "age": 58, - "cost": 22.99, - "country": "BR", - "price": 66, - "project": "kibana", - "state": "done", - "time": 1484550000000, - "username": "hfoxfn" - }, - { - "age": 21, - "cost": 23.59, - "country": "UA", - "price": 57, - "project": "logstash", - "state": "start", - "time": 1489906800000, - "username": "hrodriguezfo" - }, - { - "age": 34, - "cost": 22.48, - "country": "MK", - "price": 67, - "project": "x-pack", - "state": "running", - "time": 1463382000000, - "username": "kmasonfp" - }, - { - "age": 52, - "cost": 23.43, - "country": "CN", - "price": 58, - "project": "elasticsearch", - "state": "done", - "time": 1475478000000, - "username": "mrileyfq" - }, - { - "age": 24, - "cost": 23.1, - "country": "NZ", - "price": 64, - "project": "elasticsearch", - "state": "done", - "time": 1472022000000, - "username": "tkellyfr" - }, - { - "age": 52, - "cost": 21.59, - "country": "CN", - "price": 72, - "project": "elasticsearch", - "state": "running", - "time": 1490079600000, - "username": "jrileyfs" - }, - { - "age": 40, - "cost": 22.7, - "country": "MX", - "price": 58, - "project": "machine-learning", - "state": "done", - "time": 1484204400000, - "username": "mspencerft" - }, - { - "age": 34, - "cost": 22.01, - "country": "AL", - "price": 58, - "project": "x-pack", - "state": "running", - "time": 1486191600000, - "username": "kburkefu" - }, - { - "age": 66, - "cost": 24.78, - "country": "CN", - "price": 55, - "project": "elasticsearch", - "state": "running", - "time": 1478329200000, - "username": "nturnerfv" - }, - { - "age": 62, - "cost": 22.81, - "country": "ES", - "price": 50, - "project": "x-pack", - "state": "done", - "time": 1460530800000, - "username": "jsmithfw" - }, - { - "age": 56, - "cost": 23.34, - "country": "PH", - "price": 58, - "project": "logstash", - "state": "done", - "time": 1476082800000, - "username": "jrichardsonfx" - }, - { - "age": 32, - "cost": 23.19, - "country": "US", - "price": 67, - "project": "opbeat", - "state": "done", - "time": 1475650800000, - "username": "shernandezfy" - }, - { - "age": 37, - "cost": 23.15, - "country": "CN", - "price": 61, - "project": "kibana", - "state": "done", - "time": 1485500400000, - "username": "hjacobsfz" - }, - { - "age": 29, - "cost": 22.66, - "country": "EC", - "price": 63, - "project": "beats", - "state": "done", - "time": 1483254000000, - "username": "cbennettg0" - }, - { - "age": 48, - "cost": 23.19, - "country": "CM", - "price": 58, - "project": "x-pack", - "state": "done", - "time": 1463900400000, - "username": "aarnoldg1" - }, - { - "age": 63, - "cost": 24.93, - "country": "PT", - "price": 61, - "project": "logstash", - "state": "running", - "time": 1472022000000, - "username": "mgilbertg2" - }, - { - "age": 31, - "cost": 22.81, - "country": "PA", - "price": 54, - "project": "elasticsearch", - "state": "done", - "time": 1482044400000, - "username": "rcoxg3" - }, - { - "age": 72, - "cost": 24.23, - "country": "RU", - "price": 60, - "project": "kibana", - "state": "start", - "time": 1471676400000, - "username": "twhiteg4" - }, - { - "age": 42, - "cost": 22.72, - "country": "BR", - "price": 53, - "project": "logstash", - "state": "done", - "time": 1486710000000, - "username": "lcarpenterg5" - }, - { - "age": 27, - "cost": 23.16, - "country": "BA", - "price": 70, - "project": "x-pack", - "state": "done", - "time": 1481612400000, - "username": "eharrisong6" - }, - { - "age": 46, - "cost": 24.18, - "country": "NP", - "price": 52, - "project": "opbeat", - "state": "start", - "time": 1461222000000, - "username": "hharrisong7" - }, - { - "age": 24, - "cost": 22.94, - "country": "PT", - "price": 59, - "project": "elasticsearch", - "state": "done", - "time": 1484377200000, - "username": "jgibsong8" - }, - { - "age": 38, - "cost": 21.91, - "country": "BO", - "price": 51, - "project": "elasticsearch", - "state": "running", - "time": 1474527600000, - "username": "rwilliamsg9" - }, - { - "age": 77, - "cost": 24.88, - "country": "CN", - "price": 64, - "project": "logstash", - "state": "running", - "time": 1470466800000, - "username": "htaylorga" - }, - { - "age": 64, - "cost": 23.03, - "country": "PT", - "price": 64, - "project": "beats", - "state": "done", - "time": 1464764400000, - "username": "vwebbgb" - }, - { - "age": 43, - "cost": 21.21, - "country": "JP", - "price": 66, - "project": "beats", - "state": "start", - "time": 1491202800000, - "username": "tbrowngc" - }, - { - "age": 73, - "cost": 23.85, - "country": "CN", - "price": 55, - "project": "elasticsearch", - "state": "start", - "time": 1477638000000, - "username": "bmontgomerygd" - }, - { - "age": 78, - "cost": 24.05, - "country": "VN", - "price": 59, - "project": "beats", - "state": "start", - "time": 1480921200000, - "username": "jrileyge" - }, - { - "age": 44, - "cost": 23.43, - "country": "ID", - "price": 55, - "project": "kibana", - "state": "done", - "time": 1487574000000, - "username": "bpetersgf" - }, - { - "age": 31, - "cost": 21.69, - "country": "PH", - "price": 54, - "project": "elasticsearch", - "state": "running", - "time": 1467615600000, - "username": "awilliamsgg" - }, - { - "age": 79, - "cost": 22.26, - "country": "CO", - "price": 58, - "project": "kibana", - "state": "running", - "time": 1478588400000, - "username": "bcoxgh" - }, - { - "age": 47, - "cost": 24.85, - "country": "PH", - "price": 74, - "project": "machine-learning", - "state": "running", - "time": 1461826800000, - "username": "jchavezgi" - }, - { - "age": 19, - "cost": 23.61, - "country": "AZ", - "price": 63, - "project": "machine-learning", - "state": "start", - "time": 1476946800000, - "username": "bstanleygj" - }, - { - "age": 49, - "cost": 22.66, - "country": "RU", - "price": 55, - "project": "logstash", - "state": "done", - "time": 1475046000000, - "username": "lortizgk" - }, - { - "age": 65, - "cost": 21.86, - "country": "YE", - "price": 33, - "project": "kibana", - "state": "running", - "time": 1462345200000, - "username": "cjohnsongl" - }, - { - "age": 30, - "cost": 23.26, - "country": "NZ", - "price": 55, - "project": "kibana", - "state": "done", - "time": 1484636400000, - "username": "sfernandezgm" - }, - { - "age": 75, - "cost": 22.78, - "country": "GB", - "price": 54, - "project": "machine-learning", - "state": "done", - "time": 1491721200000, - "username": "astevensgn" - }, - { - "age": 57, - "cost": 24.28, - "country": "VE", - "price": 55, - "project": "beats", - "state": "start", - "time": 1480575600000, - "username": "hgreengo" - }, - { - "age": 67, - "cost": 21.68, - "country": "FR", - "price": 45, - "project": "opbeat", - "state": "running", - "time": 1485932400000, - "username": "tgutierrezgp" - }, - { - "age": 59, - "cost": 25.04, - "country": "PL", - "price": 53, - "project": "elasticsearch", - "state": "running", - "time": 1481266800000, - "username": "rmorenogq" - }, - { - "age": 57, - "cost": 23.46, - "country": "PE", - "price": 48, - "project": "beats", - "state": "done", - "time": 1464332400000, - "username": "esandersgr" - }, - { - "age": 21, - "cost": 22.72, - "country": "CN", - "price": 49, - "project": "logstash", - "state": "done", - "time": 1477119600000, - "username": "sleegs" - }, - { - "age": 74, - "cost": 21.44, - "country": "RU", - "price": 64, - "project": "opbeat", - "state": "start", - "time": 1485414000000, - "username": "ktaylorgt" - }, - { - "age": 24, - "cost": 23.26, - "country": "ID", - "price": 44, - "project": "elasticsearch", - "state": "done", - "time": 1482217200000, - "username": "dgeorgegu" - }, - { - "age": 27, - "cost": 22.47, - "country": "ID", - "price": 57, - "project": "x-pack", - "state": "running", - "time": 1468134000000, - "username": "swarrengv" - }, - { - "age": 62, - "cost": 22.32, - "country": "JP", - "price": 52, - "project": "x-pack", - "state": "running", - "time": 1481353200000, - "username": "sdeangw" - }, - { - "age": 36, - "cost": 22.85, - "country": "MO", - "price": 49, - "project": "beats", - "state": "done", - "time": 1483167600000, - "username": "rmyersgx" - }, - { - "age": 31, - "cost": 25.49, - "country": "CN", - "price": 64, - "project": "elasticsearch", - "state": "running", - "time": 1469430000000, - "username": "lwilsongy" - }, - { - "age": 75, - "cost": 23.08, - "country": "CN", - "price": 57, - "project": "machine-learning", - "state": "done", - "time": 1472713200000, - "username": "friveragz" - }, - { - "age": 75, - "cost": 22.93, - "country": "RU", - "price": 66, - "project": "machine-learning", - "state": "done", - "time": 1470553200000, - "username": "awebbh0" - }, - { - "age": 18, - "cost": 23.41, - "country": "CN", - "price": 46, - "project": "opbeat", - "state": "done", - "time": 1486105200000, - "username": "fyoungh1" - }, - { - "age": 76, - "cost": 22.25, - "country": "PH", - "price": 57, - "project": "x-pack", - "state": "running", - "time": 1474354800000, - "username": "jbakerh2" - }, - { - "age": 56, - "cost": 21.42, - "country": "PL", - "price": 66, - "project": "logstash", - "state": "start", - "time": 1461394800000, - "username": "wwalkerh3" - }, - { - "age": 23, - "cost": 21.33, - "country": "MX", - "price": 53, - "project": "kibana", - "state": "start", - "time": 1489042800000, - "username": "nwatsonh4" - }, - { - "age": 22, - "cost": 23.46, - "country": "PH", - "price": 46, - "project": "beats", - "state": "done", - "time": 1487055600000, - "username": "dsullivanh5" - }, - { - "age": 65, - "cost": 21.73, - "country": "GT", - "price": 50, - "project": "kibana", - "state": "running", - "time": 1480489200000, - "username": "jcastilloh6" - }, - { - "age": 20, - "cost": 24.24, - "country": "BR", - "price": 50, - "project": "x-pack", - "state": "start", - "time": 1481266800000, - "username": "rgreeneh7" - }, - { - "age": 40, - "cost": 23.22, - "country": "ZA", - "price": 62, - "project": "machine-learning", - "state": "done", - "time": 1469948400000, - "username": "gsmithh8" - }, - { - "age": 31, - "cost": 20.87, - "country": "VU", - "price": 65, - "project": "elasticsearch", - "state": "start", - "time": 1486623600000, - "username": "rramosh9" - }, - { - "age": 73, - "cost": 21.73, - "country": "DO", - "price": 61, - "project": "elasticsearch", - "state": "running", - "time": 1460876400000, - "username": "chansenha" - }, - { - "age": 23, - "cost": 22.63, - "country": "ID", - "price": 64, - "project": "kibana", - "state": "done", - "time": 1488092400000, - "username": "hblackhb" - }, - { - "age": 52, - "cost": 22.56, - "country": "RU", - "price": 52, - "project": "elasticsearch", - "state": "done", - "time": 1480662000000, - "username": "ebakerhc" - }, - { - "age": 27, - "cost": 22.53, - "country": "VE", - "price": 46, - "project": "x-pack", - "state": "done", - "time": 1480316400000, - "username": "tryanhd" - }, - { - "age": 73, - "cost": 23.69, - "country": "MY", - "price": 64, - "project": "elasticsearch", - "state": "start", - "time": 1474009200000, - "username": "adiazhe" - }, - { - "age": 62, - "cost": 25.48, - "country": "UA", - "price": 61, - "project": "x-pack", - "state": "running", - "time": 1461394800000, - "username": "darnoldhf" - }, - { - "age": 37, - "cost": 24.07, - "country": "PL", - "price": 57, - "project": "kibana", - "state": "start", - "time": 1481785200000, - "username": "cgrayhg" - }, - { - "age": 62, - "cost": 23.32, - "country": "GR", - "price": 72, - "project": "x-pack", - "state": "done", - "time": 1465196400000, - "username": "smedinahh" - }, - { - "age": 71, - "cost": 22.75, - "country": "GE", - "price": 59, - "project": "beats", - "state": "done", - "time": 1463209200000, - "username": "jmccoyhi" - }, - { - "age": 44, - "cost": 22.34, - "country": "CN", - "price": 59, - "project": "kibana", - "state": "running", - "time": 1477551600000, - "username": "ameyerhj" - }, - { - "age": 44, - "cost": 20.24, - "country": "PT", - "price": 51, - "project": "kibana", - "state": "done", - "time": 1486969200000, - "username": "wwrighthk" - }, - { - "age": 19, - "cost": 23.86, - "country": "FI", - "price": 63, - "project": "machine-learning", - "state": "start", - "time": 1476255600000, - "username": "wtuckerhl" - }, - { - "age": 51, - "cost": 24.79, - "country": "NA", - "price": 61, - "project": "kibana", - "state": "running", - "time": 1465023600000, - "username": "greedhm" - }, - { - "age": 23, - "cost": 24.51, - "country": "JP", - "price": 61, - "project": "kibana", - "state": "running", - "time": 1480575600000, - "username": "fpaynehn" - }, - { - "age": 29, - "cost": 22.18, - "country": "CN", - "price": 54, - "project": "beats", - "state": "running", - "time": 1462431600000, - "username": "aperryho" - }, - { - "age": 62, - "cost": 21.38, - "country": "CN", - "price": 51, - "project": "x-pack", - "state": "start", - "time": 1471676400000, - "username": "arobertshp" - }, - { - "age": 67, - "cost": 23.81, - "country": "UY", - "price": 68, - "project": "opbeat", - "state": "start", - "time": 1481353200000, - "username": "mallenhq" - }, - { - "age": 78, - "cost": 21.55, - "country": "PA", - "price": 49, - "project": "beats", - "state": "running", - "time": 1467356400000, - "username": "mcruzhr" - }, - { - "age": 36, - "cost": 23.41, - "country": "VN", - "price": 50, - "project": "beats", - "state": "done", - "time": 1478674800000, - "username": "rwagnerhs" - }, - { - "age": 76, - "cost": 24.18, - "country": "CN", - "price": 57, - "project": "x-pack", - "state": "start", - "time": 1483772400000, - "username": "mevansht" - }, - { - "age": 59, - "cost": 22.6, - "country": "VE", - "price": 64, - "project": "elasticsearch", - "state": "done", - "time": 1465714800000, - "username": "nknighthu" - }, - { - "age": 30, - "cost": 21.37, - "country": "ZM", - "price": 68, - "project": "kibana", - "state": "start", - "time": 1480489200000, - "username": "jharrishv" - }, - { - "age": 70, - "cost": 24.13, - "country": "HU", - "price": 50, - "project": "logstash", - "state": "start", - "time": 1470121200000, - "username": "wkimhw" - }, - { - "age": 55, - "cost": 22.34, - "country": "CN", - "price": 43, - "project": "x-pack", - "state": "running", - "time": 1485932400000, - "username": "ejacksonhx" - }, - { - "age": 54, - "cost": 23.08, - "country": "ID", - "price": 54, - "project": "machine-learning", - "state": "done", - "time": 1484722800000, - "username": "mstewarthy" - }, - { - "age": 29, - "cost": 23.4, - "country": "ID", - "price": 65, - "project": "beats", - "state": "done", - "time": 1471330800000, - "username": "psimpsonhz" - }, - { - "age": 19, - "cost": 21.08, - "country": "UA", - "price": 51, - "project": "machine-learning", - "state": "start", - "time": 1472367600000, - "username": "jkingi0" - }, - { - "age": 49, - "cost": 22.83, - "country": "PL", - "price": 57, - "project": "logstash", - "state": "done", - "time": 1468393200000, - "username": "jrileyi1" - }, - { - "age": 56, - "cost": 21.82, - "country": "RU", - "price": 51, - "project": "logstash", - "state": "running", - "time": 1482303600000, - "username": "tdixoni2" - }, - { - "age": 67, - "cost": 23.07, - "country": "ID", - "price": 41, - "project": "opbeat", - "state": "done", - "time": 1468652400000, - "username": "jmitchelli3" - }, - { - "age": 40, - "cost": 23.65, - "country": "PT", - "price": 53, - "project": "machine-learning", - "state": "start", - "time": 1474614000000, - "username": "dcoxi4" - }, - { - "age": 61, - "cost": 23.72, - "country": "CN", - "price": 57, - "project": "machine-learning", - "state": "start", - "time": 1486018800000, - "username": "tporteri5" - }, - { - "age": 24, - "cost": 24.68, - "country": "SE", - "price": 74, - "project": "elasticsearch", - "state": "running", - "time": 1469084400000, - "username": "rwagneri6" - }, - { - "age": 35, - "cost": 22.38, - "country": "FR", - "price": 51, - "project": "logstash", - "state": "running", - "time": 1490425200000, - "username": "gnelsoni7" - }, - { - "age": 38, - "cost": 23.99, - "country": "LA", - "price": 53, - "project": "elasticsearch", - "state": "start", - "time": 1468652400000, - "username": "cmcdonaldi8" - }, - { - "age": 60, - "cost": 22.86, - "country": "KE", - "price": 65, - "project": "opbeat", - "state": "done", - "time": 1461654000000, - "username": "hjordani9" - }, - { - "age": 79, - "cost": 23.56, - "country": "PH", - "price": 57, - "project": "kibana", - "state": "start", - "time": 1474095600000, - "username": "hwalkeria" - }, - { - "age": 54, - "cost": 23.63, - "country": "CN", - "price": 50, - "project": "machine-learning", - "state": "start", - "time": 1479020400000, - "username": "lstanleyib" - }, - { - "age": 35, - "cost": 23.24, - "country": "TT", - "price": 63, - "project": "logstash", - "state": "done", - "time": 1479538800000, - "username": "jrogersic" - }, - { - "age": 72, - "cost": 21.98, - "country": "JP", - "price": 60, - "project": "kibana", - "state": "running", - "time": 1483254000000, - "username": "aperryid" - }, - { - "age": 50, - "cost": 23.65, - "country": "RU", - "price": 48, - "project": "beats", - "state": "start", - "time": 1486364400000, - "username": "mjordanie" - }, - { - "age": 59, - "cost": 23.36, - "country": "ID", - "price": 59, - "project": "elasticsearch", - "state": "done", - "time": 1478415600000, - "username": "pcookif" - }, - { - "age": 25, - "cost": 22.79, - "country": "UG", - "price": 62, - "project": "opbeat", - "state": "done", - "time": 1489129200000, - "username": "cblackig" - }, - { - "age": 39, - "cost": 22.77, - "country": "AR", - "price": 60, - "project": "opbeat", - "state": "done", - "time": 1461913200000, - "username": "djohnsonih" - }, - { - "age": 23, - "cost": 20.45, - "country": "PH", - "price": 52, - "project": "kibana", - "state": "done", - "time": 1475132400000, - "username": "bturnerii" - }, - { - "age": 46, - "cost": 21.79, - "country": "CN", - "price": 55, - "project": "opbeat", - "state": "running", - "time": 1471849200000, - "username": "colsonij" - }, - { - "age": 45, - "cost": 22.68, - "country": "CZ", - "price": 58, - "project": "elasticsearch", - "state": "done", - "time": 1491116400000, - "username": "tmurphyik" - }, - { - "age": 54, - "cost": 19.57, - "country": "PH", - "price": 68, - "project": "machine-learning", - "state": "done", - "time": 1463122800000, - "username": "tshawil" - }, - { - "age": 76, - "cost": 25.04, - "country": "SE", - "price": 47, - "project": "x-pack", - "state": "running", - "time": 1470726000000, - "username": "lgilbertim" - }, - { - "age": 53, - "cost": 23.85, - "country": "GR", - "price": 44, - "project": "opbeat", - "state": "start", - "time": 1474441200000, - "username": "jbakerin" - }, - { - "age": 44, - "cost": 23.22, - "country": "MY", - "price": 65, - "project": "kibana", - "state": "done", - "time": 1479279600000, - "username": "jmurphyio" - }, - { - "age": 32, - "cost": 23.15, - "country": "SE", - "price": 54, - "project": "opbeat", - "state": "done", - "time": 1481180400000, - "username": "glawrenceip" - }, - { - "age": 36, - "cost": 23.06, - "country": "VN", - "price": 56, - "project": "beats", - "state": "done", - "time": 1464937200000, - "username": "jsancheziq" - }, - { - "age": 70, - "cost": 22.77, - "country": "TH", - "price": 54, - "project": "logstash", - "state": "done", - "time": 1466233200000, - "username": "mchapmanir" - }, - { - "age": 24, - "cost": 23.14, - "country": "BR", - "price": 54, - "project": "elasticsearch", - "state": "done", - "time": 1469775600000, - "username": "sbutleris" - }, - { - "age": 50, - "cost": 23.01, - "country": "PT", - "price": 51, - "project": "beats", - "state": "done", - "time": 1477638000000, - "username": "rowensit" - }, - { - "age": 76, - "cost": 22.91, - "country": "ID", - "price": 58, - "project": "x-pack", - "state": "done", - "time": 1472713200000, - "username": "nfrankliniu" - }, - { - "age": 55, - "cost": 23.46, - "country": "AR", - "price": 63, - "project": "x-pack", - "state": "done", - "time": 1477638000000, - "username": "bwhiteiv" - }, - { - "age": 26, - "cost": 21.02, - "country": "ID", - "price": 46, - "project": "machine-learning", - "state": "start", - "time": 1472454000000, - "username": "mrossiw" - }, - { - "age": 61, - "cost": 20.32, - "country": "VN", - "price": 52, - "project": "machine-learning", - "state": "done", - "time": 1474700400000, - "username": "pyoungix" - }, - { - "age": 30, - "cost": 21.94, - "country": "BR", - "price": 53, - "project": "kibana", - "state": "running", - "time": 1464591600000, - "username": "rkimiy" - }, - { - "age": 36, - "cost": 22.09, - "country": "RU", - "price": 64, - "project": "beats", - "state": "running", - "time": 1462863600000, - "username": "pwallaceiz" - }, - { - "age": 54, - "cost": 21.56, - "country": "ID", - "price": 49, - "project": "machine-learning", - "state": "running", - "time": 1490857200000, - "username": "tadamsj0" - }, - { - "age": 56, - "cost": 20.35, - "country": "CN", - "price": 49, - "project": "logstash", - "state": "done", - "time": 1462777200000, - "username": "kmoorej1" - }, - { - "age": 55, - "cost": 22.67, - "country": "PT", - "price": 51, - "project": "x-pack", - "state": "done", - "time": 1468566000000, - "username": "abradleyj2" - }, - { - "age": 34, - "cost": 23.52, - "country": "SI", - "price": 57, - "project": "x-pack", - "state": "start", - "time": 1481698800000, - "username": "trodriguezj3" - }, - { - "age": 39, - "cost": 22.71, - "country": "CN", - "price": 63, - "project": "opbeat", - "state": "done", - "time": 1461999600000, - "username": "jbrownj4" - }, - { - "age": 46, - "cost": 24.28, - "country": "BA", - "price": 59, - "project": "opbeat", - "state": "start", - "time": 1485586800000, - "username": "dmccoyj5" - }, - { - "age": 19, - "cost": 23.55, - "country": "VN", - "price": 51, - "project": "machine-learning", - "state": "start", - "time": 1490943600000, - "username": "ahansenj6" - }, - { - "age": 58, - "cost": 22.23, - "country": "CN", - "price": 51, - "project": "kibana", - "state": "running", - "time": 1461222000000, - "username": "eedwardsj7" - }, - { - "age": 49, - "cost": 23.17, - "country": "PL", - "price": 51, - "project": "logstash", - "state": "done", - "time": 1473750000000, - "username": "jfordj8" - }, - { - "age": 62, - "cost": 23.59, - "country": "CN", - "price": 65, - "project": "x-pack", - "state": "start", - "time": 1479193200000, - "username": "kharrisj9" - }, - { - "age": 78, - "cost": 21.63, - "country": "PL", - "price": 73, - "project": "beats", - "state": "running", - "time": 1479625200000, - "username": "rbradleyja" - }, - { - "age": 63, - "cost": 22.74, - "country": "HR", - "price": 56, - "project": "logstash", - "state": "done", - "time": 1478674800000, - "username": "nholmesjb" - }, - { - "age": 79, - "cost": 22.79, - "country": "UA", - "price": 51, - "project": "kibana", - "state": "done", - "time": 1470121200000, - "username": "psimsjc" - }, - { - "age": 34, - "cost": 22.44, - "country": "PH", - "price": 40, - "project": "x-pack", - "state": "running", - "time": 1474527600000, - "username": "tbanksjd" - }, - { - "age": 59, - "cost": 22.2, - "country": "CR", - "price": 56, - "project": "elasticsearch", - "state": "running", - "time": 1482303600000, - "username": "dallenje" - }, - { - "age": 40, - "cost": 23.81, - "country": "ID", - "price": 50, - "project": "machine-learning", - "state": "start", - "time": 1460876400000, - "username": "kramosjf" - }, - { - "age": 39, - "cost": 22.07, - "country": "ID", - "price": 59, - "project": "opbeat", - "state": "running", - "time": 1463122800000, - "username": "rshawjg" - }, - { - "age": 60, - "cost": 22.42, - "country": "NL", - "price": 74, - "project": "opbeat", - "state": "running", - "time": 1480402800000, - "username": "vhilljh" - }, - { - "age": 29, - "cost": 23.29, - "country": "ID", - "price": 52, - "project": "beats", - "state": "done", - "time": 1462258800000, - "username": "lholmesji" - }, - { - "age": 22, - "cost": 22.52, - "country": "PL", - "price": 60, - "project": "beats", - "state": "done", - "time": 1477551600000, - "username": "pgarrettjj" - }, - { - "age": 69, - "cost": 22.94, - "country": "ES", - "price": 55, - "project": "x-pack", - "state": "done", - "time": 1468479600000, - "username": "tstonejk" - }, - { - "age": 74, - "cost": 23.1, - "country": "CN", - "price": 61, - "project": "opbeat", - "state": "done", - "time": 1472972400000, - "username": "jgriffinjl" - }, - { - "age": 30, - "cost": 20.85, - "country": "CN", - "price": 63, - "project": "kibana", - "state": "start", - "time": 1483426800000, - "username": "sholmesjm" - }, - { - "age": 56, - "cost": 23.14, - "country": "CN", - "price": 61, - "project": "logstash", - "state": "done", - "time": 1479193200000, - "username": "khayesjn" - }, - { - "age": 69, - "cost": 23.86, - "country": "BG", - "price": 57, - "project": "x-pack", - "state": "start", - "time": 1478761200000, - "username": "jfoxjo" - }, - { - "age": 32, - "cost": 22.75, - "country": "CN", - "price": 53, - "project": "opbeat", - "state": "done", - "time": 1460444400000, - "username": "swhitejp" - }, - { - "age": 45, - "cost": 21.48, - "country": "PH", - "price": 55, - "project": "elasticsearch", - "state": "start", - "time": 1488610800000, - "username": "hmorganjq" - }, - { - "age": 63, - "cost": 23.52, - "country": "CO", - "price": 63, - "project": "logstash", - "state": "start", - "time": 1462172400000, - "username": "agarciajr" - }, - { - "age": 48, - "cost": 24.18, - "country": "ID", - "price": 68, - "project": "x-pack", - "state": "start", - "time": 1489734000000, - "username": "sgeorgejs" - }, - { - "age": 18, - "cost": 23.02, - "country": "MX", - "price": 49, - "project": "opbeat", - "state": "done", - "time": 1486796400000, - "username": "agardnerjt" - }, - { - "age": 52, - "cost": 25.13, - "country": "CN", - "price": 63, - "project": "elasticsearch", - "state": "running", - "time": 1460703600000, - "username": "dsullivanju" - }, - { - "age": 46, - "cost": 23.58, - "country": "CO", - "price": 46, - "project": "opbeat", - "state": "start", - "time": 1464159600000, - "username": "mmoralesjv" - }, - { - "age": 42, - "cost": 23.93, - "country": "ID", - "price": 48, - "project": "logstash", - "state": "start", - "time": 1482822000000, - "username": "pgonzalezjw" - }, - { - "age": 38, - "cost": 22.12, - "country": "CN", - "price": 64, - "project": "elasticsearch", - "state": "running", - "time": 1475650800000, - "username": "jbanksjx" - }, - { - "age": 34, - "cost": 20.84, - "country": "AR", - "price": 52, - "project": "x-pack", - "state": "start", - "time": 1490252400000, - "username": "bricejy" - }, - { - "age": 59, - "cost": 22.7, - "country": "CN", - "price": 51, - "project": "elasticsearch", - "state": "done", - "time": 1470121200000, - "username": "eburnsjz" - }, - { - "age": 50, - "cost": 23.41, - "country": "CL", - "price": 59, - "project": "beats", - "state": "done", - "time": 1477033200000, - "username": "awallacek0" - }, - { - "age": 21, - "cost": 22.31, - "country": "DO", - "price": 69, - "project": "logstash", - "state": "running", - "time": 1472799600000, - "username": "bhamiltonk1" - }, - { - "age": 51, - "cost": 22.98, - "country": "TN", - "price": 62, - "project": "kibana", - "state": "done", - "time": 1483945200000, - "username": "lstevensk2" - }, - { - "age": 26, - "cost": 23.88, - "country": "XK", - "price": 53, - "project": "machine-learning", - "state": "start", - "time": 1462777200000, - "username": "emartinezk3" - }, - { - "age": 72, - "cost": 21.86, - "country": "JP", - "price": 48, - "project": "kibana", - "state": "running", - "time": 1473404400000, - "username": "driverak4" - }, - { - "age": 72, - "cost": 22.86, - "country": "CN", - "price": 46, - "project": "kibana", - "state": "done", - "time": 1483772400000, - "username": "khamiltonk5" - }, - { - "age": 48, - "cost": 21.64, - "country": "PE", - "price": 64, - "project": "x-pack", - "state": "running", - "time": 1476687600000, - "username": "tandersonk6" - }, - { - "age": 54, - "cost": 22.4, - "country": "PK", - "price": 53, - "project": "machine-learning", - "state": "running", - "time": 1486710000000, - "username": "ljenkinsk7" - }, - { - "age": 45, - "cost": 22.52, - "country": "RU", - "price": 51, - "project": "elasticsearch", - "state": "done", - "time": 1472540400000, - "username": "asandersk8" - }, - { - "age": 22, - "cost": 24.14, - "country": "MN", - "price": 52, - "project": "beats", - "state": "start", - "time": 1470034800000, - "username": "fwilliamsonk9" - }, - { - "age": 20, - "cost": 24.37, - "country": "JP", - "price": 67, - "project": "x-pack", - "state": "start", - "time": 1483081200000, - "username": "dortizka" - }, - { - "age": 37, - "cost": 24.62, - "country": "BD", - "price": 50, - "project": "kibana", - "state": "running", - "time": 1477983600000, - "username": "jpalmerkb" - }, - { - "age": 49, - "cost": 23.75, - "country": "BW", - "price": 40, - "project": "logstash", - "state": "start", - "time": 1482130800000, - "username": "areyeskc" - }, - { - "age": 39, - "cost": 22.17, - "country": "PL", - "price": 52, - "project": "opbeat", - "state": "running", - "time": 1463986800000, - "username": "jtuckerkd" - }, - { - "age": 71, - "cost": 21.39, - "country": "CN", - "price": 68, - "project": "beats", - "state": "start", - "time": 1485932400000, - "username": "rhickske" - }, - { - "age": 39, - "cost": 23.42, - "country": "CN", - "price": 49, - "project": "opbeat", - "state": "done", - "time": 1463122800000, - "username": "cgrahamkf" - }, - { - "age": 67, - "cost": 22.17, - "country": "ZA", - "price": 61, - "project": "opbeat", - "state": "running", - "time": 1472713200000, - "username": "jwestkg" - }, - { - "age": 56, - "cost": 21.53, - "country": "CN", - "price": 66, - "project": "logstash", - "state": "running", - "time": 1486969200000, - "username": "cpricekh" - }, - { - "age": 39, - "cost": 22.95, - "country": "PH", - "price": 45, - "project": "opbeat", - "state": "done", - "time": 1469948400000, - "username": "hyoungki" - }, - { - "age": 22, - "cost": 22.89, - "country": "EC", - "price": 59, - "project": "beats", - "state": "done", - "time": 1475737200000, - "username": "lsanderskj" - }, - { - "age": 49, - "cost": 22.96, - "country": "SE", - "price": 67, - "project": "logstash", - "state": "done", - "time": 1473836400000, - "username": "mfrazierkk" - }, - { - "age": 54, - "cost": 22.97, - "country": "AS", - "price": 60, - "project": "machine-learning", - "state": "done", - "time": 1466146800000, - "username": "sowenskl" - }, - { - "age": 68, - "cost": 22.21, - "country": "PA", - "price": 51, - "project": "machine-learning", - "state": "running", - "time": 1475391600000, - "username": "atuckerkm" - }, - { - "age": 74, - "cost": 21.47, - "country": "SE", - "price": 56, - "project": "opbeat", - "state": "start", - "time": 1475305200000, - "username": "cstanleykn" - }, - { - "age": 63, - "cost": 23.89, - "country": "FR", - "price": 55, - "project": "logstash", - "state": "start", - "time": 1484031600000, - "username": "jgrayko" - }, - { - "age": 57, - "cost": 23.97, - "country": "TT", - "price": 59, - "project": "beats", - "state": "start", - "time": 1472454000000, - "username": "ldeankp" - }, - { - "age": 43, - "cost": 21.55, - "country": "CN", - "price": 52, - "project": "beats", - "state": "running", - "time": 1463468400000, - "username": "rphillipskq" - }, - { - "age": 18, - "cost": 23.64, - "country": "RU", - "price": 62, - "project": "opbeat", - "state": "start", - "time": 1486882800000, - "username": "jnicholskr" - }, - { - "age": 54, - "cost": 22.83, - "country": "PT", - "price": 47, - "project": "machine-learning", - "state": "done", - "time": 1490684400000, - "username": "rthomasks" - }, - { - "age": 68, - "cost": 22.98, - "country": "JP", - "price": 52, - "project": "machine-learning", - "state": "done", - "time": 1476082800000, - "username": "wdaykt" - }, - { - "age": 62, - "cost": 23.17, - "country": "FR", - "price": 67, - "project": "x-pack", - "state": "done", - "time": 1491548400000, - "username": "kboydku" - }, - { - "age": 66, - "cost": 21.87, - "country": "NI", - "price": 62, - "project": "elasticsearch", - "state": "running", - "time": 1484550000000, - "username": "kmillskv" - }, - { - "age": 77, - "cost": 24.15, - "country": "FR", - "price": 63, - "project": "logstash", - "state": "start", - "time": 1465282800000, - "username": "dporterkw" - }, - { - "age": 36, - "cost": 23.24, - "country": "BD", - "price": 43, - "project": "beats", - "state": "done", - "time": 1479193200000, - "username": "rbradleykx" - }, - { - "age": 75, - "cost": 23.8, - "country": "CA", - "price": 50, - "project": "machine-learning", - "state": "start", - "time": 1464246000000, - "username": "kbradleyky" - }, - { - "age": 72, - "cost": 23.15, - "country": "MD", - "price": 62, - "project": "kibana", - "state": "done", - "time": 1465887600000, - "username": "sortizkz" - }, - { - "age": 27, - "cost": 22.38, - "country": "PL", - "price": 51, - "project": "x-pack", - "state": "running", - "time": 1475823600000, - "username": "mrodriguezl0" - }, - { - "age": 56, - "cost": 22.82, - "country": "AZ", - "price": 64, - "project": "logstash", - "state": "done", - "time": 1470639600000, - "username": "pwatkinsl1" - }, - { - "age": 57, - "cost": 23.17, - "country": "FR", - "price": 62, - "project": "beats", - "state": "done", - "time": 1471158000000, - "username": "jbrooksl2" - }, - { - "age": 76, - "cost": 22.55, - "country": "FR", - "price": 69, - "project": "x-pack", - "state": "done", - "time": 1472194800000, - "username": "rgardnerl3" - }, - { - "age": 21, - "cost": 23.76, - "country": "SE", - "price": 60, - "project": "logstash", - "state": "start", - "time": 1471935600000, - "username": "adeanl4" - }, - { - "age": 64, - "cost": 24.01, - "country": "PL", - "price": 60, - "project": "beats", - "state": "start", - "time": 1471935600000, - "username": "wwarrenl5" - }, - { - "age": 58, - "cost": 22.33, - "country": "RU", - "price": 55, - "project": "kibana", - "state": "running", - "time": 1470553200000, - "username": "mellisl6" - }, - { - "age": 71, - "cost": 22.93, - "country": "RU", - "price": 53, - "project": "beats", - "state": "done", - "time": 1475564400000, - "username": "kwhitel7" - }, - { - "age": 75, - "cost": 24.37, - "country": "EE", - "price": 69, - "project": "machine-learning", - "state": "start", - "time": 1484550000000, - "username": "jburnsl8" - }, - { - "age": 74, - "cost": 22.96, - "country": "GR", - "price": 58, - "project": "opbeat", - "state": "done", - "time": 1478156400000, - "username": "dwillisl9" - }, - { - "age": 56, - "cost": 24.64, - "country": "US", - "price": 56, - "project": "logstash", - "state": "running", - "time": 1468134000000, - "username": "lfoxla" - }, - { - "age": 20, - "cost": 23, - "country": "FR", - "price": 54, - "project": "x-pack", - "state": "done", - "time": 1478934000000, - "username": "mreedlb" - }, - { - "age": 32, - "cost": 23.91, - "country": "GR", - "price": 58, - "project": "opbeat", - "state": "start", - "time": 1462086000000, - "username": "cpiercelc" - }, - { - "age": 68, - "cost": 22.7, - "country": "CA", - "price": 42, - "project": "machine-learning", - "state": "done", - "time": 1472194800000, - "username": "rreynoldsld" - }, - { - "age": 56, - "cost": 23.64, - "country": "PH", - "price": 64, - "project": "logstash", - "state": "start", - "time": 1489906800000, - "username": "mwilsonle" - }, - { - "age": 29, - "cost": 24.34, - "country": "PE", - "price": 53, - "project": "beats", - "state": "start", - "time": 1477292400000, - "username": "msimmonslf" - }, - { - "age": 23, - "cost": 23.55, - "country": "RU", - "price": 63, - "project": "kibana", - "state": "start", - "time": 1476601200000, - "username": "smyerslg" - }, - { - "age": 27, - "cost": 22.07, - "country": "PT", - "price": 52, - "project": "x-pack", - "state": "running", - "time": 1483513200000, - "username": "jowenslh" - }, - { - "age": 79, - "cost": 22.69, - "country": "ID", - "price": 54, - "project": "kibana", - "state": "done", - "time": 1470380400000, - "username": "dadamsli" - }, - { - "age": 40, - "cost": 22.55, - "country": "UA", - "price": 60, - "project": "machine-learning", - "state": "done", - "time": 1467356400000, - "username": "sdavislj" - }, - { - "age": 38, - "cost": 22.83, - "country": "CN", - "price": 49, - "project": "elasticsearch", - "state": "done", - "time": 1491634800000, - "username": "anguyenlk" - }, - { - "age": 45, - "cost": 22.83, - "country": "CD", - "price": 55, - "project": "elasticsearch", - "state": "done", - "time": 1474786800000, - "username": "bgreenell" - }, - { - "age": 77, - "cost": 23.5, - "country": "BR", - "price": 47, - "project": "logstash", - "state": "start", - "time": 1467183600000, - "username": "jfullerlm" - }, - { - "age": 73, - "cost": 23.12, - "country": "CN", - "price": 63, - "project": "elasticsearch", - "state": "done", - "time": 1474527600000, - "username": "jhernandezln" - }, - { - "age": 66, - "cost": 21.12, - "country": "BR", - "price": 66, - "project": "elasticsearch", - "state": "start", - "time": 1463554800000, - "username": "lcruzlo" - }, - { - "age": 48, - "cost": 23, - "country": "IR", - "price": 44, - "project": "x-pack", - "state": "done", - "time": 1475996400000, - "username": "afloreslp" - }, - { - "age": 75, - "cost": 24.27, - "country": "SI", - "price": 57, - "project": "machine-learning", - "state": "start", - "time": 1470898800000, - "username": "trichardslq" - }, - { - "age": 49, - "cost": 24.58, - "country": "PH", - "price": 64, - "project": "logstash", - "state": "running", - "time": 1471676400000, - "username": "lweaverlr" - }, - { - "age": 76, - "cost": 22.8, - "country": "KN", - "price": 46, - "project": "x-pack", - "state": "done", - "time": 1481094000000, - "username": "hjohnstonls" - }, - { - "age": 73, - "cost": 24.34, - "country": "JO", - "price": 69, - "project": "elasticsearch", - "state": "start", - "time": 1485327600000, - "username": "roliverlt" - }, - { - "age": 63, - "cost": 23.63, - "country": "RU", - "price": 51, - "project": "logstash", - "state": "start", - "time": 1481180400000, - "username": "jfernandezlu" - }, - { - "age": 51, - "cost": 23.79, - "country": "PH", - "price": 67, - "project": "kibana", - "state": "start", - "time": 1470985200000, - "username": "rpattersonlv" - }, - { - "age": 27, - "cost": 24.02, - "country": "CN", - "price": 42, - "project": "x-pack", - "state": "start", - "time": 1474354800000, - "username": "rburtonlw" - }, - { - "age": 60, - "cost": 22.32, - "country": "CO", - "price": 63, - "project": "opbeat", - "state": "running", - "time": 1481094000000, - "username": "ehickslx" - }, - { - "age": 70, - "cost": 22.92, - "country": "MX", - "price": 59, - "project": "logstash", - "state": "done", - "time": 1487833200000, - "username": "mstevensly" - }, - { - "age": 37, - "cost": 21.53, - "country": "PH", - "price": 55, - "project": "kibana", - "state": "running", - "time": 1486969200000, - "username": "cbutlerlz" - }, - { - "age": 34, - "cost": 22.3, - "country": "FR", - "price": 54, - "project": "x-pack", - "state": "running", - "time": 1472281200000, - "username": "kbarnesm0" - }, - { - "age": 43, - "cost": 22.29, - "country": "SV", - "price": 58, - "project": "beats", - "state": "running", - "time": 1479625200000, - "username": "ajohnstonm1" - }, - { - "age": 58, - "cost": 22.92, - "country": "ID", - "price": 57, - "project": "kibana", - "state": "done", - "time": 1488438000000, - "username": "afieldsm2" - }, - { - "age": 69, - "cost": 24.44, - "country": "PT", - "price": 52, - "project": "x-pack", - "state": "start", - "time": 1463209200000, - "username": "jgilbertm3" - }, - { - "age": 43, - "cost": 23.54, - "country": "KZ", - "price": 62, - "project": "beats", - "state": "start", - "time": 1474354800000, - "username": "sgarrettm4" - }, - { - "age": 31, - "cost": 22.92, - "country": "RU", - "price": 54, - "project": "elasticsearch", - "state": "done", - "time": 1478847600000, - "username": "hsimsm5" - }, - { - "age": 23, - "cost": 23.61, - "country": "MG", - "price": 65, - "project": "kibana", - "state": "start", - "time": 1467529200000, - "username": "ehallm6" - }, - { - "age": 35, - "cost": 22.2, - "country": "RU", - "price": 48, - "project": "logstash", - "state": "running", - "time": 1482476400000, - "username": "msimsm7" - }, - { - "age": 33, - "cost": 23.94, - "country": "PT", - "price": 42, - "project": "machine-learning", - "state": "start", - "time": 1489215600000, - "username": "djamesm8" - }, - { - "age": 65, - "cost": 21.95, - "country": "RU", - "price": 61, - "project": "kibana", - "state": "running", - "time": 1465369200000, - "username": "ahansonm9" - }, - { - "age": 31, - "cost": 21.43, - "country": "CN", - "price": 65, - "project": "elasticsearch", - "state": "start", - "time": 1491634800000, - "username": "whunterma" - }, - { - "age": 36, - "cost": 23.01, - "country": "ET", - "price": 62, - "project": "beats", - "state": "done", - "time": 1462258800000, - "username": "jstanleymb" - }, - { - "age": 52, - "cost": 23.95, - "country": "ID", - "price": 50, - "project": "elasticsearch", - "state": "start", - "time": 1482217200000, - "username": "ngriffinmc" - }, - { - "age": 63, - "cost": 23.27, - "country": "SE", - "price": 66, - "project": "logstash", - "state": "done", - "time": 1474354800000, - "username": "talexandermd" - }, - { - "age": 68, - "cost": 24.56, - "country": "MX", - "price": 56, - "project": "machine-learning", - "state": "running", - "time": 1481266800000, - "username": "tgonzalezme" - }, - { - "age": 78, - "cost": 23.07, - "country": "RU", - "price": 61, - "project": "beats", - "state": "done", - "time": 1478761200000, - "username": "sfreemanmf" - }, - { - "age": 65, - "cost": 24.37, - "country": "CN", - "price": 54, - "project": "kibana", - "state": "start", - "time": 1481094000000, - "username": "hhuntmg" - }, - { - "age": 65, - "cost": 21.48, - "country": "CZ", - "price": 47, - "project": "kibana", - "state": "start", - "time": 1476342000000, - "username": "sdeanmh" - }, - { - "age": 21, - "cost": 23.25, - "country": "RU", - "price": 62, - "project": "logstash", - "state": "done", - "time": 1461567600000, - "username": "kellismi" - }, - { - "age": 76, - "cost": 23.03, - "country": "VN", - "price": 59, - "project": "x-pack", - "state": "done", - "time": 1487401200000, - "username": "emillermj" - }, - { - "age": 41, - "cost": 23.05, - "country": "PH", - "price": 63, - "project": "x-pack", - "state": "done", - "time": 1462518000000, - "username": "mbaileymk" - }, - { - "age": 50, - "cost": 23.57, - "country": "US", - "price": 56, - "project": "beats", - "state": "start", - "time": 1477724400000, - "username": "rfosterml" - }, - { - "age": 21, - "cost": 23.43, - "country": "UA", - "price": 69, - "project": "logstash", - "state": "done", - "time": 1486191600000, - "username": "praymm" - }, - { - "age": 25, - "cost": 22.65, - "country": "TH", - "price": 56, - "project": "opbeat", - "state": "done", - "time": 1475046000000, - "username": "shuntmn" - }, - { - "age": 69, - "cost": 22.23, - "country": "PH", - "price": 63, - "project": "x-pack", - "state": "running", - "time": 1468047600000, - "username": "aromeromo" - }, - { - "age": 28, - "cost": 24.8, - "country": "MY", - "price": 44, - "project": "logstash", - "state": "running", - "time": 1476428400000, - "username": "lmeyermp" - }, - { - "age": 72, - "cost": 22.49, - "country": "CZ", - "price": 46, - "project": "kibana", - "state": "running", - "time": 1482130800000, - "username": "jreynoldsmq" - }, - { - "age": 50, - "cost": 21.4, - "country": "MA", - "price": 38, - "project": "beats", - "state": "start", - "time": 1477119600000, - "username": "bfieldsmr" - }, - { - "age": 56, - "cost": 22.34, - "country": "GR", - "price": 53, - "project": "logstash", - "state": "running", - "time": 1461826800000, - "username": "jnguyenms" - }, - { - "age": 64, - "cost": 22.22, - "country": "CO", - "price": 62, - "project": "beats", - "state": "running", - "time": 1464678000000, - "username": "tchapmanmt" - }, - { - "age": 20, - "cost": 23.03, - "country": "CN", - "price": 61, - "project": "x-pack", - "state": "done", - "time": 1489042800000, - "username": "ajacobsmu" - }, - { - "age": 18, - "cost": 23.43, - "country": "CN", - "price": 54, - "project": "opbeat", - "state": "done", - "time": 1460271600000, - "username": "kphillipsmv" - }, - { - "age": 30, - "cost": 23.6, - "country": "CO", - "price": 67, - "project": "kibana", - "state": "start", - "time": 1467961200000, - "username": "glongmw" - }, - { - "age": 53, - "cost": 23.57, - "country": "PH", - "price": 52, - "project": "opbeat", - "state": "start", - "time": 1479625200000, - "username": "lmitchellmx" - }, - { - "age": 68, - "cost": 24.13, - "country": "PL", - "price": 53, - "project": "machine-learning", - "state": "start", - "time": 1486710000000, - "username": "jcarrollmy" - }, - { - "age": 55, - "cost": 21.96, - "country": "CN", - "price": 57, - "project": "x-pack", - "state": "running", - "time": 1490079600000, - "username": "wspencermz" - }, - { - "age": 35, - "cost": 21.84, - "country": "NO", - "price": 71, - "project": "logstash", - "state": "running", - "time": 1460271600000, - "username": "jfloresn0" - }, - { - "age": 34, - "cost": 23.2, - "country": "BR", - "price": 53, - "project": "x-pack", - "state": "done", - "time": 1486969200000, - "username": "jramirezn1" - }, - { - "age": 73, - "cost": 24.19, - "country": "CN", - "price": 52, - "project": "elasticsearch", - "state": "start", - "time": 1487919600000, - "username": "plarsonn2" - }, - { - "age": 58, - "cost": 23.32, - "country": "PH", - "price": 51, - "project": "kibana", - "state": "done", - "time": 1487055600000, - "username": "mreidn3" - }, - { - "age": 21, - "cost": 22.42, - "country": "CN", - "price": 49, - "project": "logstash", - "state": "running", - "time": 1463295600000, - "username": "sfraziern4" - }, - { - "age": 39, - "cost": 23.2, - "country": "IT", - "price": 52, - "project": "opbeat", - "state": "done", - "time": 1467442800000, - "username": "agarcian5" - }, - { - "age": 50, - "cost": 22.33, - "country": "PL", - "price": 52, - "project": "beats", - "state": "running", - "time": 1473145200000, - "username": "jryann6" - }, - { - "age": 43, - "cost": 23, - "country": "IR", - "price": 61, - "project": "beats", - "state": "done", - "time": 1475823600000, - "username": "wmyersn7" - }, - { - "age": 67, - "cost": 22.35, - "country": "ID", - "price": 55, - "project": "opbeat", - "state": "running", - "time": 1485327600000, - "username": "btuckern8" - }, - { - "age": 50, - "cost": 23.54, - "country": "FR", - "price": 60, - "project": "beats", - "state": "start", - "time": 1489474800000, - "username": "agarcian9" - }, - { - "age": 27, - "cost": 23.86, - "country": "RU", - "price": 44, - "project": "x-pack", - "state": "start", - "time": 1488783600000, - "username": "dcampbellna" - }, - { - "age": 27, - "cost": 23.1, - "country": "FR", - "price": 52, - "project": "x-pack", - "state": "done", - "time": 1477724400000, - "username": "nwarrennb" - }, - { - "age": 33, - "cost": 22.7, - "country": "HU", - "price": 51, - "project": "machine-learning", - "state": "done", - "time": 1474182000000, - "username": "ajenkinsnc" - }, - { - "age": 26, - "cost": 23.57, - "country": "PE", - "price": 47, - "project": "machine-learning", - "state": "start", - "time": 1487660400000, - "username": "crichardsnd" - }, - { - "age": 39, - "cost": 23.16, - "country": "CN", - "price": 62, - "project": "opbeat", - "state": "done", - "time": 1462431600000, - "username": "edavisne" - }, - { - "age": 43, - "cost": 22.96, - "country": "ID", - "price": 71, - "project": "beats", - "state": "done", - "time": 1468825200000, - "username": "cbaileynf" - }, - { - "age": 75, - "cost": 23.09, - "country": "PL", - "price": 58, - "project": "machine-learning", - "state": "done", - "time": 1481871600000, - "username": "cpetersng" - }, - { - "age": 38, - "cost": 23.48, - "country": "MA", - "price": 53, - "project": "elasticsearch", - "state": "done", - "time": 1462086000000, - "username": "jlanenh" - }, - { - "age": 67, - "cost": 23.05, - "country": "CO", - "price": 50, - "project": "opbeat", - "state": "done", - "time": 1476169200000, - "username": "dsimmonsni" - }, - { - "age": 47, - "cost": 24.1, - "country": "VN", - "price": 56, - "project": "machine-learning", - "state": "start", - "time": 1490770800000, - "username": "kwarrennj" - }, - { - "age": 39, - "cost": 22.49, - "country": "ID", - "price": 69, - "project": "opbeat", - "state": "running", - "time": 1476255600000, - "username": "ptorresnk" - }, - { - "age": 78, - "cost": 22.26, - "country": "IR", - "price": 71, - "project": "beats", - "state": "running", - "time": 1489647600000, - "username": "aramireznl" - }, - { - "age": 63, - "cost": 22.76, - "country": "AM", - "price": 57, - "project": "logstash", - "state": "done", - "time": 1466665200000, - "username": "jjenkinsnm" - }, - { - "age": 28, - "cost": 21.97, - "country": "BR", - "price": 51, - "project": "logstash", - "state": "running", - "time": 1466578800000, - "username": "swalkernn" - }, - { - "age": 65, - "cost": 24.83, - "country": "RU", - "price": 45, - "project": "kibana", - "state": "running", - "time": 1486882800000, - "username": "brobertsno" - }, - { - "age": 59, - "cost": 22.21, - "country": "CN", - "price": 69, - "project": "elasticsearch", - "state": "running", - "time": 1490943600000, - "username": "bberrynp" - }, - { - "age": 62, - "cost": 23.66, - "country": "CN", - "price": 60, - "project": "x-pack", - "state": "start", - "time": 1462777200000, - "username": "lrodrigueznq" - }, - { - "age": 77, - "cost": 23.61, - "country": "CN", - "price": 46, - "project": "logstash", - "state": "start", - "time": 1471244400000, - "username": "jreidnr" - }, - { - "age": 18, - "cost": 23.58, - "country": "TZ", - "price": 62, - "project": "opbeat", - "state": "start", - "time": 1475132400000, - "username": "jmurrayns" - }, - { - "age": 47, - "cost": 24.46, - "country": "VE", - "price": 67, - "project": "machine-learning", - "state": "start", - "time": 1468911600000, - "username": "gtaylornt" - }, - { - "age": 23, - "cost": 21.78, - "country": "ID", - "price": 63, - "project": "kibana", - "state": "running", - "time": 1486191600000, - "username": "rgriffinnu" - }, - { - "age": 35, - "cost": 23.07, - "country": "IL", - "price": 59, - "project": "logstash", - "state": "done", - "time": 1466838000000, - "username": "sfieldsnv" - }, - { - "age": 55, - "cost": 23.21, - "country": "CN", - "price": 69, - "project": "x-pack", - "state": "done", - "time": 1476601200000, - "username": "ereidnw" - }, - { - "age": 23, - "cost": 24.26, - "country": "PL", - "price": 45, - "project": "kibana", - "state": "start", - "time": 1464678000000, - "username": "bhawkinsnx" - }, - { - "age": 18, - "cost": 22.98, - "country": "CN", - "price": 65, - "project": "opbeat", - "state": "done", - "time": 1474441200000, - "username": "cgrayny" - }, - { - "age": 66, - "cost": 22.83, - "country": "MX", - "price": 47, - "project": "elasticsearch", - "state": "done", - "time": 1470466800000, - "username": "fhughesnz" - }, - { - "age": 57, - "cost": 22.92, - "country": "NG", - "price": 53, - "project": "beats", - "state": "done", - "time": 1470466800000, - "username": "lwelcho0" - }, - { - "age": 80, - "cost": 23.97, - "country": "SE", - "price": 61, - "project": "elasticsearch", - "state": "start", - "time": 1491375600000, - "username": "jwatkinso1" - }, - { - "age": 46, - "cost": 23.36, - "country": "JP", - "price": 59, - "project": "opbeat", - "state": "done", - "time": 1481353200000, - "username": "awoodo2" - }, - { - "age": 74, - "cost": 21.17, - "country": "CN", - "price": 65, - "project": "opbeat", - "state": "start", - "time": 1486969200000, - "username": "pmatthewso3" - }, - { - "age": 36, - "cost": 22.96, - "country": "CZ", - "price": 55, - "project": "beats", - "state": "done", - "time": 1474009200000, - "username": "rhudsono4" - }, - { - "age": 62, - "cost": 21.58, - "country": "SE", - "price": 57, - "project": "x-pack", - "state": "running", - "time": 1481094000000, - "username": "rwardo5" - }, - { - "age": 54, - "cost": 24.58, - "country": "CN", - "price": 65, - "project": "machine-learning", - "state": "running", - "time": 1486882800000, - "username": "cgomezo6" - }, - { - "age": 58, - "cost": 22.56, - "country": "FR", - "price": 52, - "project": "kibana", - "state": "done", - "time": 1468393200000, - "username": "jburtono7" - }, - { - "age": 47, - "cost": 23.38, - "country": "IE", - "price": 45, - "project": "machine-learning", - "state": "done", - "time": 1461567600000, - "username": "dcarpentero8" - }, - { - "age": 41, - "cost": 23.42, - "country": "ID", - "price": 46, - "project": "x-pack", - "state": "done", - "time": 1485154800000, - "username": "thunto9" - }, - { - "age": 47, - "cost": 23.2, - "country": "PL", - "price": 53, - "project": "machine-learning", - "state": "done", - "time": 1489647600000, - "username": "ssnyderoa" - }, - { - "age": 80, - "cost": 22.7, - "country": "US", - "price": 57, - "project": "elasticsearch", - "state": "done", - "time": 1465282800000, - "username": "mkimob" - }, - { - "age": 22, - "cost": 21.66, - "country": "PH", - "price": 43, - "project": "beats", - "state": "running", - "time": 1462086000000, - "username": "ehansonoc" - }, - { - "age": 37, - "cost": 22.29, - "country": "RU", - "price": 56, - "project": "kibana", - "state": "running", - "time": 1463036400000, - "username": "wspencerod" - }, - { - "age": 65, - "cost": 23.28, - "country": "ES", - "price": 61, - "project": "kibana", - "state": "done", - "time": 1478934000000, - "username": "khansenoe" - }, - { - "age": 64, - "cost": 24.75, - "country": "JP", - "price": 63, - "project": "beats", - "state": "running", - "time": 1473836400000, - "username": "jcruzof" - }, - { - "age": 51, - "cost": 22.73, - "country": "PE", - "price": 54, - "project": "kibana", - "state": "done", - "time": 1467097200000, - "username": "tkelleyog" - }, - { - "age": 76, - "cost": 23.04, - "country": "RU", - "price": 51, - "project": "x-pack", - "state": "done", - "time": 1468998000000, - "username": "jbrooksoh" - }, - { - "age": 31, - "cost": 23.49, - "country": "PH", - "price": 55, - "project": "elasticsearch", - "state": "done", - "time": 1465542000000, - "username": "ncooperoi" - }, - { - "age": 78, - "cost": 23.66, - "country": "JP", - "price": 59, - "project": "beats", - "state": "start", - "time": 1475478000000, - "username": "ddiazoj" - }, - { - "age": 64, - "cost": 24.02, - "country": "HN", - "price": 57, - "project": "beats", - "state": "start", - "time": 1462345200000, - "username": "kpowellok" - }, - { - "age": 72, - "cost": 24.54, - "country": "ID", - "price": 60, - "project": "kibana", - "state": "running", - "time": 1476514800000, - "username": "pporterol" - }, - { - "age": 57, - "cost": 21.5, - "country": "DE", - "price": 59, - "project": "beats", - "state": "running", - "time": 1481266800000, - "username": "hgarzaom" - }, - { - "age": 71, - "cost": 22.81, - "country": "ZA", - "price": 45, - "project": "beats", - "state": "done", - "time": 1480748400000, - "username": "wevanson" - }, - { - "age": 50, - "cost": 24.02, - "country": "GR", - "price": 70, - "project": "beats", - "state": "start", - "time": 1470985200000, - "username": "jlaneoo" - }, - { - "age": 23, - "cost": 21.49, - "country": "PH", - "price": 49, - "project": "kibana", - "state": "start", - "time": 1467270000000, - "username": "gfergusonop" - }, - { - "age": 23, - "cost": 22.64, - "country": "ID", - "price": 60, - "project": "kibana", - "state": "done", - "time": 1482303600000, - "username": "rwillisoq" - }, - { - "age": 80, - "cost": 23.37, - "country": "CN", - "price": 68, - "project": "elasticsearch", - "state": "done", - "time": 1490598000000, - "username": "nfulleror" - }, - { - "age": 65, - "cost": 23.47, - "country": "SE", - "price": 48, - "project": "kibana", - "state": "done", - "time": 1484463600000, - "username": "tellisos" - }, - { - "age": 38, - "cost": 24.55, - "country": "RS", - "price": 53, - "project": "elasticsearch", - "state": "running", - "time": 1461654000000, - "username": "mfosterot" - }, - { - "age": 70, - "cost": 21.01, - "country": "CN", - "price": 66, - "project": "logstash", - "state": "start", - "time": 1484895600000, - "username": "astevensou" - }, - { - "age": 65, - "cost": 23.49, - "country": "TH", - "price": 51, - "project": "kibana", - "state": "done", - "time": 1468911600000, - "username": "bdixonov" - }, - { - "age": 36, - "cost": 24.22, - "country": "ID", - "price": 45, - "project": "beats", - "state": "start", - "time": 1481785200000, - "username": "fbrooksow" - }, - { - "age": 61, - "cost": 23.65, - "country": "UA", - "price": 48, - "project": "machine-learning", - "state": "start", - "time": 1479798000000, - "username": "pbryantox" - }, - { - "age": 44, - "cost": 23.09, - "country": "CN", - "price": 53, - "project": "kibana", - "state": "done", - "time": 1471417200000, - "username": "jsullivanoy" - }, - { - "age": 27, - "cost": 23.29, - "country": "ID", - "price": 49, - "project": "x-pack", - "state": "done", - "time": 1491375600000, - "username": "revansoz" - }, - { - "age": 38, - "cost": 23.81, - "country": "LU", - "price": 56, - "project": "elasticsearch", - "state": "start", - "time": 1465887600000, - "username": "schavezp0" - }, - { - "age": 64, - "cost": 23.07, - "country": "CN", - "price": 56, - "project": "beats", - "state": "done", - "time": 1462518000000, - "username": "imorganp1" - }, - { - "age": 80, - "cost": 21.95, - "country": "MX", - "price": 49, - "project": "elasticsearch", - "state": "running", - "time": 1468998000000, - "username": "sfullerp2" - }, - { - "age": 36, - "cost": 21.16, - "country": "ID", - "price": 56, - "project": "beats", - "state": "start", - "time": 1491202800000, - "username": "hjonesp3" - }, - { - "age": 51, - "cost": 23.67, - "country": "SI", - "price": 56, - "project": "kibana", - "state": "start", - "time": 1472454000000, - "username": "abaileyp4" - }, - { - "age": 35, - "cost": 23.26, - "country": "IS", - "price": 69, - "project": "logstash", - "state": "done", - "time": 1472540400000, - "username": "chowardp5" - }, - { - "age": 72, - "cost": 22.88, - "country": "ZA", - "price": 50, - "project": "kibana", - "state": "done", - "time": 1474441200000, - "username": "jandersonp6" - }, - { - "age": 25, - "cost": 23.37, - "country": "RU", - "price": 61, - "project": "opbeat", - "state": "done", - "time": 1472022000000, - "username": "pclarkp7" - }, - { - "age": 58, - "cost": 23.99, - "country": "NG", - "price": 48, - "project": "kibana", - "state": "start", - "time": 1484722800000, - "username": "trichardsonp8" - }, - { - "age": 63, - "cost": 21.74, - "country": "MY", - "price": 50, - "project": "logstash", - "state": "running", - "time": 1467010800000, - "username": "jleep9" - }, - { - "age": 50, - "cost": 22.3, - "country": "SY", - "price": 63, - "project": "beats", - "state": "running", - "time": 1491116400000, - "username": "gbowmanpa" - }, - { - "age": 31, - "cost": 22.65, - "country": "CN", - "price": 52, - "project": "elasticsearch", - "state": "done", - "time": 1483686000000, - "username": "hburtonpb" - }, - { - "age": 61, - "cost": 22.95, - "country": "SI", - "price": 61, - "project": "machine-learning", - "state": "done", - "time": 1489129200000, - "username": "ewoodspc" - }, - { - "age": 61, - "cost": 23.15, - "country": "KE", - "price": 53, - "project": "machine-learning", - "state": "done", - "time": 1467529200000, - "username": "hhawkinspd" - }, - { - "age": 76, - "cost": 22.12, - "country": "CN", - "price": 65, - "project": "x-pack", - "state": "running", - "time": 1488178800000, - "username": "ebowmanpe" - }, - { - "age": 68, - "cost": 24.14, - "country": "LK", - "price": 57, - "project": "machine-learning", - "state": "start", - "time": 1463554800000, - "username": "bflorespf" - }, - { - "age": 33, - "cost": 22.67, - "country": "TH", - "price": 47, - "project": "machine-learning", - "state": "done", - "time": 1464246000000, - "username": "plawsonpg" - }, - { - "age": 27, - "cost": 20.8, - "country": "SE", - "price": 69, - "project": "x-pack", - "state": "start", - "time": 1490338800000, - "username": "hfullerph" - }, - { - "age": 32, - "cost": 21.8, - "country": "AM", - "price": 56, - "project": "opbeat", - "state": "running", - "time": 1471330800000, - "username": "tfranklinpi" - }, - { - "age": 42, - "cost": 23.23, - "country": "BR", - "price": 54, - "project": "logstash", - "state": "done", - "time": 1462086000000, - "username": "jwebbpj" - }, - { - "age": 49, - "cost": 24.36, - "country": "MK", - "price": 45, - "project": "logstash", - "state": "start", - "time": 1462345200000, - "username": "cwarrenpk" - }, - { - "age": 51, - "cost": 24.68, - "country": "PH", - "price": 54, - "project": "kibana", - "state": "running", - "time": 1463986800000, - "username": "dmurphypl" - }, - { - "age": 63, - "cost": 22.54, - "country": "RS", - "price": 62, - "project": "logstash", - "state": "done", - "time": 1472454000000, - "username": "bwestpm" - }, - { - "age": 50, - "cost": 24.51, - "country": "AU", - "price": 40, - "project": "beats", - "state": "running", - "time": 1470380400000, - "username": "bhernandezpn" - }, - { - "age": 51, - "cost": 23.23, - "country": "JP", - "price": 70, - "project": "kibana", - "state": "done", - "time": 1489474800000, - "username": "jalexanderpo" - }, - { - "age": 73, - "cost": 22.16, - "country": "AF", - "price": 63, - "project": "elasticsearch", - "state": "running", - "time": 1476946800000, - "username": "dmorganpp" - }, - { - "age": 78, - "cost": 22.69, - "country": "FI", - "price": 59, - "project": "beats", - "state": "done", - "time": 1482908400000, - "username": "lweaverpq" - }, - { - "age": 65, - "cost": 21.09, - "country": "BI", - "price": 58, - "project": "kibana", - "state": "start", - "time": 1460876400000, - "username": "jbaileypr" - }, - { - "age": 32, - "cost": 23.25, - "country": "RU", - "price": 50, - "project": "opbeat", - "state": "done", - "time": 1471244400000, - "username": "kreyesps" - }, - { - "age": 27, - "cost": 22.53, - "country": "PT", - "price": 61, - "project": "x-pack", - "state": "done", - "time": 1487919600000, - "username": "mlynchpt" - }, - { - "age": 59, - "cost": 23.47, - "country": "CO", - "price": 48, - "project": "elasticsearch", - "state": "done", - "time": 1465196400000, - "username": "tpiercepu" - }, - { - "age": 77, - "cost": 23.02, - "country": "SE", - "price": 47, - "project": "logstash", - "state": "done", - "time": 1480489200000, - "username": "ewebbpv" - }, - { - "age": 44, - "cost": 24.28, - "country": "RU", - "price": 64, - "project": "kibana", - "state": "start", - "time": 1480316400000, - "username": "drosspw" - }, - { - "age": 34, - "cost": 22.06, - "country": "IR", - "price": 58, - "project": "x-pack", - "state": "running", - "time": 1476601200000, - "username": "jmccoypx" - }, - { - "age": 60, - "cost": 21.06, - "country": "AR", - "price": 40, - "project": "opbeat", - "state": "start", - "time": 1467874800000, - "username": "bwhitepy" - }, - { - "age": 33, - "cost": 22.08, - "country": "BR", - "price": 44, - "project": "machine-learning", - "state": "running", - "time": 1480662000000, - "username": "jkellypz" - }, - { - "age": 59, - "cost": 23.5, - "country": "CZ", - "price": 54, - "project": "elasticsearch", - "state": "start", - "time": 1473231600000, - "username": "darmstrongq0" - }, - { - "age": 73, - "cost": 21.15, - "country": "GR", - "price": 52, - "project": "elasticsearch", - "state": "start", - "time": 1481612400000, - "username": "dperryq1" - }, - { - "age": 49, - "cost": 22.39, - "country": "TH", - "price": 54, - "project": "logstash", - "state": "running", - "time": 1488178800000, - "username": "dschmidtq2" - }, - { - "age": 65, - "cost": 24.42, - "country": "CZ", - "price": 54, - "project": "kibana", - "state": "start", - "time": 1468220400000, - "username": "aandrewsq3" - }, - { - "age": 49, - "cost": 21.22, - "country": "GH", - "price": 60, - "project": "logstash", - "state": "start", - "time": 1491030000000, - "username": "ameyerq4" - }, - { - "age": 39, - "cost": 23.53, - "country": "ID", - "price": 64, - "project": "opbeat", - "state": "start", - "time": 1484463600000, - "username": "dwoodsq5" - }, - { - "age": 19, - "cost": 23.49, - "country": "CN", - "price": 51, - "project": "machine-learning", - "state": "done", - "time": 1467183600000, - "username": "jmooreq6" - }, - { - "age": 27, - "cost": 23.14, - "country": "NG", - "price": 56, - "project": "x-pack", - "state": "done", - "time": 1482822000000, - "username": "sspencerq7" - }, - { - "age": 30, - "cost": 23.07, - "country": "MX", - "price": 66, - "project": "kibana", - "state": "done", - "time": 1481785200000, - "username": "jtorresq8" - }, - { - "age": 67, - "cost": 23.06, - "country": "DO", - "price": 49, - "project": "opbeat", - "state": "done", - "time": 1466924400000, - "username": "mwestq9" - }, - { - "age": 38, - "cost": 23.48, - "country": "CN", - "price": 61, - "project": "elasticsearch", - "state": "done", - "time": 1487487600000, - "username": "mnguyenqa" - }, - { - "age": 68, - "cost": 23.41, - "country": "MX", - "price": 52, - "project": "machine-learning", - "state": "done", - "time": 1476169200000, - "username": "mroseqb" - }, - { - "age": 25, - "cost": 22.11, - "country": "TH", - "price": 39, - "project": "opbeat", - "state": "running", - "time": 1477983600000, - "username": "mjacksonqc" - }, - { - "age": 20, - "cost": 22.46, - "country": "ID", - "price": 55, - "project": "x-pack", - "state": "running", - "time": 1487833200000, - "username": "cyoungqd" - }, - { - "age": 64, - "cost": 21.55, - "country": "ET", - "price": 60, - "project": "beats", - "state": "running", - "time": 1464850800000, - "username": "cjenkinsqe" - }, - { - "age": 25, - "cost": 22.36, - "country": "SE", - "price": 50, - "project": "opbeat", - "state": "running", - "time": 1482822000000, - "username": "jhartqf" - }, - { - "age": 45, - "cost": 23.73, - "country": "CN", - "price": 47, - "project": "elasticsearch", - "state": "start", - "time": 1465887600000, - "username": "cgutierrezqg" - }, - { - "age": 49, - "cost": 24.47, - "country": "CN", - "price": 63, - "project": "logstash", - "state": "start", - "time": 1487228400000, - "username": "pgarzaqh" - }, - { - "age": 72, - "cost": 21.43, - "country": "ID", - "price": 74, - "project": "kibana", - "state": "start", - "time": 1474959600000, - "username": "jbrownqi" - }, - { - "age": 48, - "cost": 22.55, - "country": "TH", - "price": 54, - "project": "x-pack", - "state": "done", - "time": 1462863600000, - "username": "jhartqj" - }, - { - "age": 80, - "cost": 23.91, - "country": "CN", - "price": 56, - "project": "elasticsearch", - "state": "start", - "time": 1488610800000, - "username": "dscottqk" - }, - { - "age": 54, - "cost": 23.68, - "country": "SE", - "price": 58, - "project": "machine-learning", - "state": "start", - "time": 1481785200000, - "username": "wlittleql" - }, - { - "age": 18, - "cost": 22.39, - "country": "PH", - "price": 49, - "project": "opbeat", - "state": "running", - "time": 1465974000000, - "username": "sfieldsqm" - }, - { - "age": 32, - "cost": 23.4, - "country": "CN", - "price": 66, - "project": "opbeat", - "state": "done", - "time": 1487833200000, - "username": "alarsonqn" - }, - { - "age": 71, - "cost": 22.45, - "country": "RU", - "price": 49, - "project": "beats", - "state": "running", - "time": 1487314800000, - "username": "dowensqo" - }, - { - "age": 68, - "cost": 22.67, - "country": "PE", - "price": 66, - "project": "machine-learning", - "state": "done", - "time": 1485673200000, - "username": "jolsonqp" - }, - { - "age": 45, - "cost": 21.87, - "country": "FR", - "price": 63, - "project": "elasticsearch", - "state": "running", - "time": 1483945200000, - "username": "galvarezqq" - }, - { - "age": 74, - "cost": 23.68, - "country": "BR", - "price": 51, - "project": "opbeat", - "state": "start", - "time": 1479279600000, - "username": "rcooperqr" - }, - { - "age": 21, - "cost": 22, - "country": "FR", - "price": 55, - "project": "logstash", - "state": "running", - "time": 1473922800000, - "username": "dclarkqs" - }, - { - "age": 48, - "cost": 21.99, - "country": "CN", - "price": 66, - "project": "x-pack", - "state": "running", - "time": 1463986800000, - "username": "rdunnqt" - }, - { - "age": 58, - "cost": 23.27, - "country": "CN", - "price": 63, - "project": "kibana", - "state": "done", - "time": 1470380400000, - "username": "jpetersqu" - }, - { - "age": 26, - "cost": 22.51, - "country": "CN", - "price": 59, - "project": "machine-learning", - "state": "done", - "time": 1476082800000, - "username": "nrobertsqv" - }, - { - "age": 29, - "cost": 23.92, - "country": "HT", - "price": 66, - "project": "beats", - "state": "start", - "time": 1490079600000, - "username": "jwestqw" - }, - { - "age": 69, - "cost": 23.67, - "country": "AR", - "price": 52, - "project": "x-pack", - "state": "start", - "time": 1475650800000, - "username": "awardqx" - }, - { - "age": 66, - "cost": 24.03, - "country": "US", - "price": 74, - "project": "elasticsearch", - "state": "start", - "time": 1479970800000, - "username": "tgilbertqy" - }, - { - "age": 30, - "cost": 24.41, - "country": "HN", - "price": 63, - "project": "kibana", - "state": "start", - "time": 1465455600000, - "username": "jstevensqz" - }, - { - "age": 43, - "cost": 22.71, - "country": "ID", - "price": 57, - "project": "beats", - "state": "done", - "time": 1489734000000, - "username": "kmeyerr0" - }, - { - "age": 19, - "cost": 23.65, - "country": "PL", - "price": 42, - "project": "machine-learning", - "state": "start", - "time": 1480143600000, - "username": "kpiercer1" - }, - { - "age": 48, - "cost": 24.15, - "country": "ID", - "price": 54, - "project": "x-pack", - "state": "start", - "time": 1481958000000, - "username": "dscottr2" - }, - { - "age": 19, - "cost": 22.23, - "country": "PT", - "price": 52, - "project": "machine-learning", - "state": "running", - "time": 1474700400000, - "username": "hstewartr3" - }, - { - "age": 22, - "cost": 22.95, - "country": "ID", - "price": 53, - "project": "beats", - "state": "done", - "time": 1482649200000, - "username": "ckimr4" - }, - { - "age": 26, - "cost": 24.6, - "country": "RU", - "price": 61, - "project": "machine-learning", - "state": "running", - "time": 1486278000000, - "username": "mgutierrezr5" - }, - { - "age": 22, - "cost": 25.56, - "country": "TH", - "price": 60, - "project": "beats", - "state": "done", - "time": 1460876400000, - "username": "hgrahamr6" - }, - { - "age": 57, - "cost": 21.5, - "country": "ID", - "price": 52, - "project": "beats", - "state": "running", - "time": 1461308400000, - "username": "dfosterr7" - }, - { - "age": 22, - "cost": 23.1, - "country": "CN", - "price": 39, - "project": "beats", - "state": "done", - "time": 1468911600000, - "username": "awebbr8" - }, - { - "age": 42, - "cost": 23.1, - "country": "GH", - "price": 62, - "project": "logstash", - "state": "done", - "time": 1488438000000, - "username": "lpetersr9" - }, - { - "age": 67, - "cost": 22.55, - "country": "ID", - "price": 54, - "project": "opbeat", - "state": "done", - "time": 1486450800000, - "username": "tpattersonra" - }, - { - "age": 76, - "cost": 21.94, - "country": "PL", - "price": 46, - "project": "x-pack", - "state": "running", - "time": 1476342000000, - "username": "rsimsrb" - }, - { - "age": 76, - "cost": 23.93, - "country": "VE", - "price": 52, - "project": "x-pack", - "state": "start", - "time": 1481612400000, - "username": "spetersonrc" - }, - { - "age": 61, - "cost": 22.17, - "country": "ID", - "price": 53, - "project": "machine-learning", - "state": "running", - "time": 1471330800000, - "username": "amontgomeryrd" - }, - { - "age": 60, - "cost": 22.7, - "country": "CN", - "price": 66, - "project": "opbeat", - "state": "done", - "time": 1465542000000, - "username": "swelchre" - }, - { - "age": 72, - "cost": 24.2, - "country": "FR", - "price": 59, - "project": "kibana", - "state": "start", - "time": 1467961200000, - "username": "cgordonrf" - }, - { - "age": 78, - "cost": 24.82, - "country": "NZ", - "price": 62, - "project": "beats", - "state": "running", - "time": 1462777200000, - "username": "dmartinezrg" - }, - { - "age": 62, - "cost": 22.55, - "country": "ID", - "price": 48, - "project": "x-pack", - "state": "done", - "time": 1490166000000, - "username": "cwashingtonrh" - }, - { - "age": 35, - "cost": 22.99, - "country": "ID", - "price": 60, - "project": "logstash", - "state": "done", - "time": 1475478000000, - "username": "cpayneri" - }, - { - "age": 68, - "cost": 22.32, - "country": "CN", - "price": 62, - "project": "machine-learning", - "state": "running", - "time": 1488092400000, - "username": "aperkinsrj" - }, - { - "age": 58, - "cost": 24.25, - "country": "RU", - "price": 57, - "project": "kibana", - "state": "start", - "time": 1463468400000, - "username": "swatkinsrk" - }, - { - "age": 77, - "cost": 23.67, - "country": "ID", - "price": 41, - "project": "logstash", - "state": "start", - "time": 1466146800000, - "username": "smoorerl" - }, - { - "age": 67, - "cost": 22.45, - "country": "ID", - "price": 52, - "project": "opbeat", - "state": "running", - "time": 1484895600000, - "username": "mlopezrm" - }, - { - "age": 49, - "cost": 24.46, - "country": "CN", - "price": 47, - "project": "logstash", - "state": "start", - "time": 1474959600000, - "username": "pshawrn" - }, - { - "age": 26, - "cost": 21.59, - "country": "CN", - "price": 45, - "project": "machine-learning", - "state": "running", - "time": 1482303600000, - "username": "rwagnerro" - }, - { - "age": 36, - "cost": 23.84, - "country": "BR", - "price": 44, - "project": "beats", - "state": "start", - "time": 1488006000000, - "username": "dmatthewsrp" - }, - { - "age": 46, - "cost": 23.65, - "country": "CN", - "price": 56, - "project": "opbeat", - "state": "start", - "time": 1476946800000, - "username": "btorresrq" - }, - { - "age": 49, - "cost": 22.57, - "country": "ID", - "price": 52, - "project": "logstash", - "state": "done", - "time": 1472367600000, - "username": "elawrencerr" - } -] \ No newline at end of file diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.js deleted file mode 100644 index 5c3b000100eb0..0000000000000 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { sortBy } from 'lodash'; -import { queryDatatable } from '../../../../common/lib/datatable/query'; -import { getDemoRows } from './get_demo_rows'; - -export const demodata = () => ({ - name: 'demodata', - aliases: [], - type: 'datatable', - help: 'A mock data set that includes project CI times with usernames, countries and run phases.', - context: { - types: ['filter'], - }, - args: { - type: { - types: ['string', 'null'], - aliases: ['_'], - help: 'The name of the demo data set to use', - default: 'ci', - }, - }, - fn: (context, args) => { - const demoRows = getDemoRows(args.type); - let set = {}; - if (args.type === 'ci') { - set = { - columns: [ - { name: 'time', type: 'date' }, - { name: 'cost', type: 'number' }, - { name: 'username', type: 'string' }, - { name: 'price', type: 'number' }, - { name: 'age', type: 'number' }, - { name: 'country', type: 'string' }, - { name: 'state', type: 'string' }, - { name: 'project', type: 'string' }, - ], - rows: sortBy(demoRows, 'time'), - }; - } else if (args.type === 'shirts') { - set = { - columns: [ - { name: 'size', type: 'string' }, - { name: 'color', type: 'string' }, - { name: 'price', type: 'number' }, - { name: 'cut', type: 'string' }, - ], - rows: demoRows, - }; - } - - const { columns, rows } = set; - return queryDatatable( - { - type: 'datatable', - columns, - rows, - }, - context - ); - }, -}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/esdocs/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/esdocs/index.js deleted file mode 100644 index 7cb559b10464b..0000000000000 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/esdocs/index.js +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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 squel from 'squel'; -import { map, zipObject } from 'lodash'; -import { buildBoolArray } from '../../../../server/lib/build_bool_array'; -import { normalizeType } from '../../../../server/lib/normalize_type'; -import { sanitizeName } from '../../../../server/lib/sanitize_name'; - -export const esdocs = () => ({ - name: 'esdocs', - type: 'datatable', - help: - 'Query elasticsearch and get back raw documents. We recommend you specify the fields you want, ' + - 'especially if you are going to ask for a lot of rows', - context: { - types: ['filter'], - }, - args: { - index: { - types: ['string', 'null'], - default: '_all', - help: 'Specify an index pattern. Eg "logstash-*"', - }, - query: { - types: ['string'], - aliases: ['_', 'q'], - help: 'A Lucene query string', - default: '-_index:.kibana', - }, - sort: { - types: ['string', 'null'], - help: 'Sort directions as "field, direction". Eg "@timestamp, desc" or "bytes, asc"', - }, - fields: { - help: 'Comma separated list of fields. Fewer fields will perform better.', - types: ['string', 'null'], - }, - metaFields: { - help: 'Comma separated list of meta fields, eg "_index,_type"', - types: ['string', 'null'], - }, - count: { - types: ['number'], - default: 100, - help: 'The number of docs to pull back. Smaller numbers perform better', - }, - }, - fn: (context, args, handlers) => { - context.and = context.and.concat([ - { - type: 'luceneQueryString', - query: args.query, - }, - ]); - - let query = squel - .select({ - autoQuoteTableNames: true, - autoQuoteFieldNames: true, - autoQuoteAliasNames: true, - nameQuoteCharacter: '"', - }) - .from(args.index.toLowerCase()); - - if (args.fields) { - const fields = args.fields.split(',').map(field => field.trim()); - fields.forEach(field => (query = query.field(field))); - } - - if (args.sort) { - const [sortField, sortOrder] = args.sort.split(',').map(str => str.trim()); - if (sortField) query.order(`"${sortField}"`, sortOrder.toLowerCase() === 'asc'); - } - - return handlers - .elasticsearchClient('transport.request', { - path: '/_xpack/sql?format=json', - method: 'POST', - body: { - fetch_size: args.count, - query: query.toString(), - filter: { - bool: { - must: [{ match_all: {} }, ...buildBoolArray(context.and)], - }, - }, - }, - }) - .then(res => { - const columns = res.columns.map(({ name, type }) => { - return { name: sanitizeName(name), type: normalizeType(type) }; - }); - const columnNames = map(columns, 'name'); - const rows = res.rows.map(row => zipObject(columnNames, row)); - return { - type: 'datatable', - columns, - rows, - }; - }); - }, -}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.js deleted file mode 100644 index 7e519f965ddbd..0000000000000 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.js +++ /dev/null @@ -1,177 +0,0 @@ -/* - * 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 uniqBy from 'lodash.uniqby'; -import { evaluate } from 'tinymath'; -import { groupBy, zipObject, omit, values } from 'lodash'; -import moment from 'moment'; -import { pivotObjectArray } from '../../../../common/lib/pivot_object_array'; -import { unquoteString } from '../../../../common/lib/unquote_string'; -import { isColumnReference } from './lib/is_column_reference'; -import { getExpressionType } from './lib/get_expression_type'; - -// TODO: pointseries performs poorly, that's why we run it on the server. - -const columnExists = (cols, colName) => cols.includes(unquoteString(colName)); - -export const pointseries = () => ({ - name: 'pointseries', - type: 'pointseries', - help: - 'Turn a datatable into a point series model. Currently we differentiate measure from dimensions by looking for a [TinyMath function](http://canvas.elastic.co/reference/tinymath.html). ' + - 'If you enter a TinyMath expression in your argument, we treat that argument as a measure, otherwise it is a dimension. Dimensions are combined to create unique ' + - 'keys. Measures are then deduplicated by those keys using the specified TinyMath function', - context: { - types: ['datatable'], - }, - args: { - x: { - types: ['string', 'null'], - help: 'The values along the X-axis', - }, - y: { - types: ['string', 'null'], - help: 'The values along the y-axis', - }, - color: { - types: ['string', 'null'], - help: "An expression to use in determining the mark's color", // If you need categorization, transform the field. - }, - size: { - types: ['string', 'null'], - help: 'For elements that support it, the size of the marks', - }, - text: { - types: ['string', 'null'], - help: 'For use in charts that support it, the text to show in the mark', - }, - // In the future it may make sense to add things like shape, or tooltip values, but I think what we have is good for now - // The way the function below is written you can add as many arbitrary named args as you want. - }, - fn: (context, args) => { - // Note: can't replace pivotObjectArray with datatableToMathContext, lose name of non-numeric columns - const columnNames = context.columns.map(col => col.name); - const mathScope = pivotObjectArray(context.rows, columnNames); - const autoQuoteColumn = col => { - if (!columnNames.includes(col)) return col; - return col.match(/\s/) ? `'${col}'` : col; - }; - - const measureNames = []; - const dimensions = []; - const columns = {}; - - // Separates args into dimensions and measures arrays - // by checking if arg is a column reference (dimension) - Object.keys(args).forEach(arg => { - const mathExp = autoQuoteColumn(args[arg]); - - if (mathExp != null && mathExp.trim() !== '') { - const col = { - type: '', - role: '', - expression: mathExp, - }; - - if (isColumnReference(mathExp)) { - // TODO: Do something better if the column does not exist - if (!columnExists(columnNames, mathExp)) return; - - dimensions.push({ - name: arg, - value: mathExp, - }); - col.type = getExpressionType(context.columns, mathExp); - col.role = 'dimension'; - } else { - measureNames.push(arg); - col.type = 'number'; - col.role = 'measure'; - } - - columns[arg] = col; - } - }); - - const PRIMARY_KEY = '%%CANVAS_POINTSERIES_PRIMARY_KEY%%'; - const rows = context.rows.map((row, i) => ({ ...row, [PRIMARY_KEY]: i })); - - function normalizeValue(expression, value) { - switch (getExpressionType(context.columns, expression)) { - case 'string': - return String(value); - case 'number': - return Number(value); - case 'date': - return moment(value).valueOf(); - default: - return value; - } - } - - // Dimensions - // Group rows by their dimension values, using the argument values and preserving the PRIMARY_KEY - // There's probably a better way to do this - const results = rows.reduce((acc, row, i) => { - const newRow = dimensions.reduce( - (acc, { name, value }) => { - try { - acc[name] = args[name] ? normalizeValue(value, evaluate(value, mathScope)[i]) : '_all'; - } catch (e) { - // TODO: handle invalid column names... - // Do nothing if column does not exist - // acc[dimension] = '_all'; - } - return acc; - }, - { [PRIMARY_KEY]: row[PRIMARY_KEY] } - ); - - return Object.assign(acc, { [row[PRIMARY_KEY]]: newRow }); - }, {}); - - // Measures - // First group up all of the distinct dimensioned bits. Each of these will be reduced to just 1 value - // for each measure - const measureKeys = groupBy(rows, row => - dimensions.map(({ name }) => (args[name] ? row[args[name]] : '_all')).join('::%BURLAP%::') - ); - - // Then compute that 1 value for each measure - values(measureKeys).forEach(rows => { - const subtable = { type: 'datatable', columns: context.columns, rows: rows }; - const subScope = pivotObjectArray(subtable.rows, subtable.columns.map(col => col.name)); - const measureValues = measureNames.map(measure => { - try { - const ev = evaluate(args[measure], subScope); - if (Array.isArray(ev)) - throw new Error('Expressions must be wrapped in a function such as sum()'); - - return ev; - } catch (e) { - // TODO: don't catch if eval to Array - return null; - } - }); - - rows.forEach(row => { - Object.assign(results[row[PRIMARY_KEY]], zipObject(measureNames, measureValues)); - }); - }); - - // It only makes sense to uniq the rows in a point series as 2 values can not exist in the exact same place at the same time. - const resultingRows = uniqBy( - values(results).map(row => omit(row, PRIMARY_KEY)), - JSON.stringify - ); - - return { - type: 'pointseries', - columns: columns, - rows: resultingRows, - }; - }, -}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/lib/get_expression_type.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/lib/get_expression_type.js deleted file mode 100644 index ccfd8417d5cb4..0000000000000 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/lib/get_expression_type.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 { parse } from 'tinymath'; -import { getFieldType } from '../../../../../common/lib/get_field_type'; -import { isColumnReference } from './is_column_reference'; -import { getFieldNames } from './get_field_names'; - -export function getExpressionType(columns, mathExpression) { - // if isColumnReference returns true, then mathExpression is just a string - // referencing a column in a datatable - if (isColumnReference(mathExpression)) return getFieldType(columns, mathExpression); - - const parsedMath = parse(mathExpression); - - if (parsedMath.args) { - const fieldNames = parsedMath.args.reduce(getFieldNames, []); - - if (fieldNames.length > 0) { - const fieldTypes = fieldNames.reduce((types, name) => { - const type = getFieldType(columns, name); - if (type !== 'null' && types.indexOf(type) === -1) return types.concat(type); - - return types; - }, []); - - return fieldTypes.length === 1 ? fieldTypes[0] : 'string'; - } - return 'number'; - } - - return typeof parsedMath; -} diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/register.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/register.js index f4e7fa4b467b5..c400811c1cd6d 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/register.js @@ -4,6 +4,6 @@ * you may not use this file except in compliance with the Elastic License. */ -import { functions } from './index'; +import { functions } from './src/index'; functions.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/demodata.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/demodata.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/demodata.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/demodata.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/get_expression_type.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/get_expression_type.js new file mode 100644 index 0000000000000..93db2accedd0e --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/get_expression_type.js @@ -0,0 +1,35 @@ +/* + * 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 expect from 'expect.js'; +import { getExpressionType } from '../pointseries/lib/get_expression_type'; +import { emptyTable, testTable } from '../../../common/__tests__/fixtures/test_tables'; + +describe('getExpressionType', () => { + it('returns the result type of an evaluated math expression', () => { + expect(getExpressionType(testTable.columns, '2')).to.be.equal('number'); + expect(getExpressionType(testTable.colunns, '2 + 3')).to.be.equal('number'); + expect(getExpressionType(testTable.columns, 'name')).to.be.equal('string'); + expect(getExpressionType(testTable.columns, 'time')).to.be.equal('date'); + expect(getExpressionType(testTable.columns, 'price')).to.be.equal('number'); + expect(getExpressionType(testTable.columns, 'quantity')).to.be.equal('number'); + expect(getExpressionType(testTable.columns, 'in_stock')).to.be.equal('boolean'); + expect(getExpressionType(testTable.columns, 'mean(price)')).to.be.equal('number'); + expect(getExpressionType(testTable.columns, 'count(name)')).to.be.equal('string'); + expect(getExpressionType(testTable.columns, 'random()')).to.be.equal('number'); + expect(getExpressionType(testTable.columns, 'mean(multiply(price,quantity))')).to.be.eql( + 'number' + ); + }); + it('returns date instead of number when referencing date column', () => { + expect(getExpressionType(testTable.columns, 'mean(time)')).to.be.equal('date'); + }); + it(`returns 'null' if referenced field does not exist in datatable`, () => { + expect(getExpressionType(testTable.columns, 'foo')).to.be.equal('null'); + expect(getExpressionType(emptyTable.columns, 'foo')).to.be.equal('null'); + expect(getExpressionType(emptyTable.columns, 'mean(foo)')).to.be.equal('string'); + }); +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/get_field_names.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/get_field_names.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/get_field_names.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/get_field_names.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/is_column_reference.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/is_column_reference.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/is_column_reference.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/is_column_reference.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/pointseries.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/pointseries.js similarity index 98% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/pointseries.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/pointseries.js index c2c7fb8f4a477..42de75f69efb7 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/__tests__/pointseries.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/__tests__/pointseries.js @@ -6,7 +6,7 @@ import expect from 'expect.js'; import { pointseries } from '../pointseries'; -import { emptyTable, testTable } from '../../common/__tests__/fixtures/test_tables'; +import { emptyTable, testTable } from '../../../common/__tests__/fixtures/test_tables'; describe('pointseries', () => { const fn = pointseries().fn; diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/ci.json b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/ci.json new file mode 100644 index 0000000000000..92517e5478150 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/ci.json @@ -0,0 +1,11002 @@ +[ + { + "age": 41, + "cost": 22.09, + "country": "CN", + "price": 52, + "project": "x-pack", + "state": "running", + "time": 1471590000000, + "username": "arobertson0", + "percent_uptime": 0.67 + }, + { + "age": 62, + "cost": 21.45, + "country": "RU", + "price": 53, + "project": "x-pack", + "state": "start", + "time": 1477292400000, + "username": "smeyer1", + "percent_uptime": 0.66 + }, + { + "age": 24, + "cost": 21.29, + "country": "FR", + "price": 53, + "project": "elasticsearch", + "state": "start", + "time": 1490425200000, + "username": "rcollins2", + "percent_uptime": 0.19 + }, + { + "age": 35, + "cost": 23.99, + "country": "PL", + "price": 52, + "project": "logstash", + "state": "start", + "time": 1477033200000, + "username": "lhoward3", + "percent_uptime": 0.03 + }, + { + "age": 79, + "cost": 22.09, + "country": "EC", + "price": 61, + "project": "kibana", + "state": "running", + "time": 1491116400000, + "username": "kcarroll4", + "percent_uptime": 0.59 + }, + { + "age": 69, + "cost": 22.9, + "country": "PE", + "price": 52, + "project": "x-pack", + "state": "done", + "time": 1476946800000, + "username": "handerson5", + "percent_uptime": 0.78 + }, + { + "age": 20, + "cost": 21.2, + "country": "JP", + "price": 65, + "project": "x-pack", + "state": "start", + "time": 1481094000000, + "username": "twashington6", + "percent_uptime": 0.52 + }, + { + "age": 56, + "cost": 24.19, + "country": "BG", + "price": 38, + "project": "logstash", + "state": "start", + "time": 1476601200000, + "username": "dmendoza7", + "percent_uptime": 0.47 + }, + { + "age": 48, + "cost": 21.37, + "country": "RU", + "price": 47, + "project": "x-pack", + "state": "start", + "time": 1478070000000, + "username": "staylor8", + "percent_uptime": 0.13 + }, + { + "age": 75, + "cost": 24.61, + "country": "ES", + "price": 58, + "project": "machine-learning", + "state": "running", + "time": 1483081200000, + "username": "mramirez9", + "percent_uptime": 0.72 + }, + { + "age": 33, + "cost": 21.82, + "country": "MX", + "price": 59, + "project": "machine-learning", + "state": "running", + "time": 1467529200000, + "username": "dandrewsa", + "percent_uptime": 0.4 + }, + { + "age": 61, + "cost": 22.57, + "country": "PL", + "price": 52, + "project": "machine-learning", + "state": "done", + "time": 1490252400000, + "username": "bwalkerb", + "percent_uptime": 0.64 + }, + { + "age": 69, + "cost": 22.28, + "country": "KR", + "price": 58, + "project": "x-pack", + "state": "running", + "time": 1470812400000, + "username": "vfoxc", + "percent_uptime": 0.79 + }, + { + "age": 75, + "cost": 22.07, + "country": "VN", + "price": 52, + "project": "machine-learning", + "state": "running", + "time": 1474441200000, + "username": "kdixond", + "percent_uptime": 0.59 + }, + { + "age": 62, + "cost": 23.3, + "country": "ID", + "price": 49, + "project": "x-pack", + "state": "done", + "time": 1488610800000, + "username": "rjacksone", + "percent_uptime": 0.92 + }, + { + "age": 54, + "cost": 21.96, + "country": "CF", + "price": 48, + "project": "machine-learning", + "state": "running", + "time": 1462086000000, + "username": "ecruzf", + "percent_uptime": 0.32 + }, + { + "age": 41, + "cost": 22.64, + "country": "JP", + "price": 48, + "project": "x-pack", + "state": "done", + "time": 1480748400000, + "username": "dfreemang", + "percent_uptime": 0.34 + }, + { + "age": 49, + "cost": 25.63, + "country": "CN", + "price": 56, + "project": "logstash", + "state": "done", + "time": 1478502000000, + "username": "jhernandezh", + "percent_uptime": 0.2 + }, + { + "age": 36, + "cost": 24.18, + "country": "JM", + "price": 59, + "project": "beats", + "state": "start", + "time": 1465628400000, + "username": "rcolemani", + "percent_uptime": 0.32 + }, + { + "age": 67, + "cost": 22.04, + "country": "CN", + "price": 66, + "project": "opbeat", + "state": "running", + "time": 1472626800000, + "username": "cbaileyj", + "percent_uptime": 0.44 + }, + { + "age": 25, + "cost": 24.02, + "country": "AR", + "price": 41, + "project": "opbeat", + "state": "start", + "time": 1488006000000, + "username": "hperryk", + "percent_uptime": 0.98 + }, + { + "age": 32, + "cost": 23.4, + "country": "CU", + "price": 59, + "project": "opbeat", + "state": "done", + "time": 1479711600000, + "username": "lfoxl", + "percent_uptime": 0.29 + }, + { + "age": 61, + "cost": 23.9, + "country": "CN", + "price": 56, + "project": "machine-learning", + "state": "start", + "time": 1476255600000, + "username": "cgrantm", + "percent_uptime": 0.94 + }, + { + "age": 30, + "cost": 23.46, + "country": "CN", + "price": 54, + "project": "kibana", + "state": "done", + "time": 1473231600000, + "username": "ewarrenn", + "percent_uptime": 0.22 + }, + { + "age": 28, + "cost": 22.8, + "country": "ID", + "price": 48, + "project": "logstash", + "state": "done", + "time": 1474182000000, + "username": "nrileyo", + "percent_uptime": 0.83 + }, + { + "age": 33, + "cost": 23.61, + "country": "RU", + "price": 53, + "project": "machine-learning", + "state": "start", + "time": 1490338800000, + "username": "swillisp", + "percent_uptime": 0.92 + }, + { + "age": 19, + "cost": 23.28, + "country": "ID", + "price": 64, + "project": "machine-learning", + "state": "done", + "time": 1461913200000, + "username": "jthompsonq", + "percent_uptime": 0.55 + }, + { + "age": 27, + "cost": 24.36, + "country": "AZ", + "price": 63, + "project": "x-pack", + "state": "start", + "time": 1483945200000, + "username": "bpricer", + "percent_uptime": 0.76 + }, + { + "age": 52, + "cost": 23.79, + "country": "AG", + "price": 57, + "project": "elasticsearch", + "state": "start", + "time": 1461222000000, + "username": "rgibsons", + "percent_uptime": 0.27 + }, + { + "age": 61, + "cost": 23.21, + "country": "CN", + "price": 70, + "project": "machine-learning", + "state": "done", + "time": 1482994800000, + "username": "cwashingtont", + "percent_uptime": 0.98 + }, + { + "age": 49, + "cost": 23.71, + "country": "US", + "price": 50, + "project": "logstash", + "state": "start", + "time": 1484722800000, + "username": "athompsonu", + "percent_uptime": 0.7 + }, + { + "age": 64, + "cost": 23.64, + "country": "BR", + "price": 47, + "project": "beats", + "state": "start", + "time": 1475910000000, + "username": "ewarrenv", + "percent_uptime": 0.68 + }, + { + "age": 36, + "cost": 24.03, + "country": "PE", + "price": 60, + "project": "beats", + "state": "start", + "time": 1472022000000, + "username": "mcruzw", + "percent_uptime": 0.85 + }, + { + "age": 45, + "cost": 23.13, + "country": "HR", + "price": 50, + "project": "elasticsearch", + "state": "done", + "time": 1463295600000, + "username": "brosex", + "percent_uptime": 0.72 + }, + { + "age": 30, + "cost": 22.37, + "country": "PK", + "price": 69, + "project": "kibana", + "state": "running", + "time": 1465455600000, + "username": "gberryy", + "percent_uptime": 0.24 + }, + { + "age": 49, + "cost": 23.96, + "country": "ID", + "price": 49, + "project": "logstash", + "state": "start", + "time": 1468220400000, + "username": "mortizz", + "percent_uptime": 0.13 + }, + { + "age": 73, + "cost": 22.36, + "country": "YE", + "price": 44, + "project": "elasticsearch", + "state": "running", + "time": 1477897200000, + "username": "pelliott10", + "percent_uptime": 0.61 + }, + { + "age": 43, + "cost": 20.38, + "country": "PT", + "price": 54, + "project": "beats", + "state": "done", + "time": 1475737200000, + "username": "rperkins11", + "percent_uptime": 0.11 + }, + { + "age": 30, + "cost": 22.96, + "country": "TZ", + "price": 42, + "project": "kibana", + "state": "done", + "time": 1482822000000, + "username": "rjohnson12", + "percent_uptime": 0.96 + }, + { + "age": 37, + "cost": 23.27, + "country": "AM", + "price": 57, + "project": "kibana", + "state": "done", + "time": 1473490800000, + "username": "chall13", + "percent_uptime": 0.72 + }, + { + "age": 79, + "cost": 22.06, + "country": "PH", + "price": 52, + "project": "kibana", + "state": "running", + "time": 1464850800000, + "username": "mwells14", + "percent_uptime": 0.93 + }, + { + "age": 34, + "cost": 21.81, + "country": "CZ", + "price": 54, + "project": "x-pack", + "state": "running", + "time": 1468306800000, + "username": "bbrown15", + "percent_uptime": 0.72 + }, + { + "age": 61, + "cost": 22.16, + "country": "ID", + "price": 56, + "project": "machine-learning", + "state": "running", + "time": 1470294000000, + "username": "bwood16", + "percent_uptime": 0.38 + }, + { + "age": 19, + "cost": 23.26, + "country": "ID", + "price": 56, + "project": "machine-learning", + "state": "done", + "time": 1474873200000, + "username": "sanderson17", + "percent_uptime": 0.86 + }, + { + "age": 21, + "cost": 22.56, + "country": "ID", + "price": 56, + "project": "logstash", + "state": "done", + "time": 1465801200000, + "username": "rbishop18", + "percent_uptime": 0.46 + }, + { + "age": 49, + "cost": 23.8, + "country": "PE", + "price": 52, + "project": "logstash", + "state": "start", + "time": 1487574000000, + "username": "kgomez19", + "percent_uptime": 0.9 + }, + { + "age": 60, + "cost": 22.33, + "country": "MG", + "price": 62, + "project": "opbeat", + "state": "running", + "time": 1485846000000, + "username": "jclark1a", + "percent_uptime": 0.85 + }, + { + "age": 78, + "cost": 21.46, + "country": "PT", + "price": 61, + "project": "beats", + "state": "start", + "time": 1474527600000, + "username": "cpeterson1b", + "percent_uptime": 0.8 + }, + { + "age": 78, + "cost": 22.74, + "country": "CN", + "price": 57, + "project": "beats", + "state": "done", + "time": 1461567600000, + "username": "ttaylor1c", + "percent_uptime": 0.97 + }, + { + "age": 58, + "cost": 23.41, + "country": "PS", + "price": 63, + "project": "kibana", + "state": "done", + "time": 1491634800000, + "username": "sdean1d", + "percent_uptime": 0.77 + }, + { + "age": 69, + "cost": 21.14, + "country": "RU", + "price": 47, + "project": "x-pack", + "state": "start", + "time": 1481698800000, + "username": "sfreeman1e", + "percent_uptime": 0.96 + }, + { + "age": 54, + "cost": 23.1, + "country": "CY", + "price": 49, + "project": "machine-learning", + "state": "done", + "time": 1462431600000, + "username": "rmccoy1f", + "percent_uptime": 0.48 + }, + { + "age": 43, + "cost": 23.55, + "country": "MX", + "price": 62, + "project": "beats", + "state": "start", + "time": 1461308400000, + "username": "kwallace1g", + "percent_uptime": 0.99 + }, + { + "age": 35, + "cost": 22.39, + "country": "ID", + "price": 59, + "project": "logstash", + "state": "running", + "time": 1468652400000, + "username": "jhunt1h", + "percent_uptime": 0.22 + }, + { + "age": 51, + "cost": 24.76, + "country": "LU", + "price": 64, + "project": "kibana", + "state": "running", + "time": 1472194800000, + "username": "ageorge1i", + "percent_uptime": 0.93 + }, + { + "age": 60, + "cost": 22.97, + "country": "HN", + "price": 71, + "project": "opbeat", + "state": "done", + "time": 1482735600000, + "username": "jsims1j", + "percent_uptime": 0.92 + }, + { + "age": 55, + "cost": 22.75, + "country": "ID", + "price": 54, + "project": "x-pack", + "state": "done", + "time": 1486537200000, + "username": "jwatkins1k", + "percent_uptime": 0.59 + }, + { + "age": 26, + "cost": 24.65, + "country": "PL", + "price": 61, + "project": "machine-learning", + "state": "running", + "time": 1465110000000, + "username": "jstanley1l", + "percent_uptime": 0.94 + }, + { + "age": 60, + "cost": 22.96, + "country": "NO", + "price": 56, + "project": "opbeat", + "state": "done", + "time": 1472367600000, + "username": "rking1m", + "percent_uptime": 0.07 + }, + { + "age": 56, + "cost": 23.93, + "country": "CN", + "price": 57, + "project": "logstash", + "state": "start", + "time": 1489561200000, + "username": "tmcdonald1n", + "percent_uptime": 0.24 + }, + { + "age": 19, + "cost": 21.46, + "country": "SA", + "price": 52, + "project": "machine-learning", + "state": "start", + "time": 1485586800000, + "username": "dharper1o", + "percent_uptime": 0.58 + }, + { + "age": 59, + "cost": 24.91, + "country": "SE", + "price": 52, + "project": "elasticsearch", + "state": "running", + "time": 1484031600000, + "username": "kwilson1p", + "percent_uptime": 0.43 + }, + { + "age": 49, + "cost": 22.91, + "country": "UG", + "price": 51, + "project": "logstash", + "state": "done", + "time": 1490166000000, + "username": "phansen1q", + "percent_uptime": 0.84 + }, + { + "age": 66, + "cost": 22.68, + "country": "ID", + "price": 52, + "project": "elasticsearch", + "state": "done", + "time": 1484377200000, + "username": "wrodriguez1r", + "percent_uptime": 0.6 + }, + { + "age": 80, + "cost": 21.29, + "country": "NG", + "price": 53, + "project": "elasticsearch", + "state": "start", + "time": 1474268400000, + "username": "hbowman1s", + "percent_uptime": 0.21 + }, + { + "age": 38, + "cost": 21.79, + "country": "ID", + "price": 55, + "project": "elasticsearch", + "state": "running", + "time": 1463122800000, + "username": "agonzales1t", + "percent_uptime": 0.57 + }, + { + "age": 61, + "cost": 24.5, + "country": "AF", + "price": 62, + "project": "machine-learning", + "state": "running", + "time": 1474268400000, + "username": "jmarshall1u", + "percent_uptime": 0.12 + }, + { + "age": 40, + "cost": 23.17, + "country": "AZ", + "price": 62, + "project": "machine-learning", + "state": "done", + "time": 1472626800000, + "username": "sadams1v", + "percent_uptime": 0.23 + }, + { + "age": 19, + "cost": 22.79, + "country": "FR", + "price": 60, + "project": "machine-learning", + "state": "done", + "time": 1479279600000, + "username": "athomas1w", + "percent_uptime": 0.55 + }, + { + "age": 48, + "cost": 22.15, + "country": "CN", + "price": 47, + "project": "x-pack", + "state": "running", + "time": 1483513200000, + "username": "jhanson1x", + "percent_uptime": 0.32 + }, + { + "age": 51, + "cost": 23.68, + "country": "BR", + "price": 56, + "project": "kibana", + "state": "start", + "time": 1478070000000, + "username": "smurphy1y", + "percent_uptime": 0.77 + }, + { + "age": 74, + "cost": 22.77, + "country": "ID", + "price": 59, + "project": "opbeat", + "state": "done", + "time": 1480921200000, + "username": "jaustin1z", + "percent_uptime": 0.69 + }, + { + "age": 63, + "cost": 23.42, + "country": "PL", + "price": 44, + "project": "logstash", + "state": "done", + "time": 1469948400000, + "username": "aburns20", + "percent_uptime": 0.3 + }, + { + "age": 58, + "cost": 22.63, + "country": "PH", + "price": 51, + "project": "kibana", + "state": "done", + "time": 1490770800000, + "username": "jmills21", + "percent_uptime": 0.9 + }, + { + "age": 49, + "cost": 22.47, + "country": "KP", + "price": 65, + "project": "logstash", + "state": "running", + "time": 1488438000000, + "username": "wmontgomery22", + "percent_uptime": 0.32 + }, + { + "age": 34, + "cost": 24.12, + "country": "YE", + "price": 67, + "project": "x-pack", + "state": "start", + "time": 1463468400000, + "username": "kbrooks23", + "percent_uptime": 0.69 + }, + { + "age": 55, + "cost": 22.93, + "country": "ID", + "price": 53, + "project": "x-pack", + "state": "done", + "time": 1473836400000, + "username": "dmarshall24", + "percent_uptime": 0.22 + }, + { + "age": 75, + "cost": 22.34, + "country": "PE", + "price": 41, + "project": "machine-learning", + "state": "running", + "time": 1471330800000, + "username": "rsmith25", + "percent_uptime": 0.73 + }, + { + "age": 62, + "cost": 23.06, + "country": "PT", + "price": 60, + "project": "x-pack", + "state": "done", + "time": 1490338800000, + "username": "amartinez26", + "percent_uptime": 0.96 + }, + { + "age": 69, + "cost": 24.24, + "country": "PL", + "price": 57, + "project": "x-pack", + "state": "start", + "time": 1466492400000, + "username": "bfranklin27", + "percent_uptime": 0.09 + }, + { + "age": 34, + "cost": 21.01, + "country": "GR", + "price": 45, + "project": "x-pack", + "state": "start", + "time": 1461222000000, + "username": "dhicks28", + "percent_uptime": 0.23 + }, + { + "age": 42, + "cost": 24.88, + "country": "GR", + "price": 43, + "project": "logstash", + "state": "running", + "time": 1476514800000, + "username": "hperez29", + "percent_uptime": 0.27 + }, + { + "age": 18, + "cost": 23.44, + "country": "CN", + "price": 58, + "project": "opbeat", + "state": "done", + "time": 1484118000000, + "username": "jchavez2a", + "percent_uptime": 0.08 + }, + { + "age": 80, + "cost": 22.87, + "country": "ID", + "price": 39, + "project": "elasticsearch", + "state": "done", + "time": 1471330800000, + "username": "krobinson2b", + "percent_uptime": 0.39 + }, + { + "age": 47, + "cost": 23.26, + "country": "PH", + "price": 49, + "project": "machine-learning", + "state": "done", + "time": 1468566000000, + "username": "aking2c", + "percent_uptime": 0.56 + }, + { + "age": 22, + "cost": 23.7, + "country": "ID", + "price": 61, + "project": "beats", + "state": "start", + "time": 1473404400000, + "username": "ediaz2d", + "percent_uptime": 0.35 + }, + { + "age": 61, + "cost": 23.28, + "country": "ID", + "price": 60, + "project": "machine-learning", + "state": "done", + "time": 1481785200000, + "username": "aevans2e", + "percent_uptime": 0.36 + }, + { + "age": 41, + "cost": 22.72, + "country": "ID", + "price": 44, + "project": "x-pack", + "state": "done", + "time": 1463554800000, + "username": "lperez2f", + "percent_uptime": 0.7 + }, + { + "age": 41, + "cost": 22.15, + "country": "RU", + "price": 45, + "project": "x-pack", + "state": "running", + "time": 1487833200000, + "username": "rmartinez2g", + "percent_uptime": 0.08 + }, + { + "age": 44, + "cost": 24.44, + "country": "GR", + "price": 71, + "project": "kibana", + "state": "start", + "time": 1470294000000, + "username": "hcrawford2h", + "percent_uptime": 0.19 + }, + { + "age": 72, + "cost": 21.46, + "country": "NG", + "price": 47, + "project": "kibana", + "state": "start", + "time": 1477119600000, + "username": "dramirez2i", + "percent_uptime": 0.53 + }, + { + "age": 31, + "cost": 22.45, + "country": "FR", + "price": 68, + "project": "elasticsearch", + "state": "running", + "time": 1487401200000, + "username": "greynolds2j", + "percent_uptime": 0.5 + }, + { + "age": 39, + "cost": 24.56, + "country": "KR", + "price": 58, + "project": "opbeat", + "state": "running", + "time": 1477810800000, + "username": "sjordan2k", + "percent_uptime": 0.51 + }, + { + "age": 54, + "cost": 22.52, + "country": "ZA", + "price": 80, + "project": "machine-learning", + "state": "done", + "time": 1487574000000, + "username": "pjohnston2l", + "percent_uptime": 0.16 + }, + { + "age": 39, + "cost": 21.86, + "country": "GR", + "price": 50, + "project": "opbeat", + "state": "running", + "time": 1485414000000, + "username": "ccarpenter2m", + "percent_uptime": 0.15 + }, + { + "age": 79, + "cost": 23.52, + "country": "SE", + "price": 54, + "project": "kibana", + "state": "start", + "time": 1488351600000, + "username": "bmorris2n", + "percent_uptime": 0.33 + }, + { + "age": 23, + "cost": 23.44, + "country": "BR", + "price": 39, + "project": "kibana", + "state": "done", + "time": 1472367600000, + "username": "mmoore2o", + "percent_uptime": 0.75 + }, + { + "age": 50, + "cost": 23.03, + "country": "CZ", + "price": 51, + "project": "beats", + "state": "done", + "time": 1478588400000, + "username": "jlawson2p", + "percent_uptime": 0.74 + }, + { + "age": 74, + "cost": 22.69, + "country": "CN", + "price": 79, + "project": "opbeat", + "state": "done", + "time": 1460530800000, + "username": "rjackson2q", + "percent_uptime": 0.02 + }, + { + "age": 39, + "cost": 23.73, + "country": "CN", + "price": 60, + "project": "opbeat", + "state": "start", + "time": 1489388400000, + "username": "tcole2r", + "percent_uptime": 0.52 + }, + { + "age": 47, + "cost": 20.51, + "country": "RU", + "price": 59, + "project": "machine-learning", + "state": "start", + "time": 1479625200000, + "username": "garnold2s", + "percent_uptime": 0.76 + }, + { + "age": 42, + "cost": 20.26, + "country": "JP", + "price": 53, + "project": "logstash", + "state": "done", + "time": 1482303600000, + "username": "khenry2t", + "percent_uptime": 0.33 + }, + { + "age": 21, + "cost": 23.71, + "country": "CU", + "price": 61, + "project": "logstash", + "state": "start", + "time": 1482562800000, + "username": "aalvarez2u", + "percent_uptime": 0.18 + }, + { + "age": 72, + "cost": 23.38, + "country": "CN", + "price": 62, + "project": "kibana", + "state": "done", + "time": 1465887600000, + "username": "cbrown2v", + "percent_uptime": 0.66 + }, + { + "age": 64, + "cost": 22.52, + "country": "NG", + "price": 43, + "project": "beats", + "state": "done", + "time": 1460617200000, + "username": "tblack2w", + "percent_uptime": 0.43 + }, + { + "age": 53, + "cost": 24.24, + "country": "MX", + "price": 71, + "project": "opbeat", + "state": "start", + "time": 1481698800000, + "username": "bdiaz2x", + "percent_uptime": 0.61 + }, + { + "age": 52, + "cost": 22.42, + "country": "PT", + "price": 56, + "project": "elasticsearch", + "state": "running", + "time": 1481958000000, + "username": "drobinson2y", + "percent_uptime": 0.74 + }, + { + "age": 32, + "cost": 23.84, + "country": "BR", + "price": 66, + "project": "opbeat", + "state": "start", + "time": 1476860400000, + "username": "jsnyder2z", + "percent_uptime": 0.97 + }, + { + "age": 50, + "cost": 23.18, + "country": "ID", + "price": 54, + "project": "beats", + "state": "done", + "time": 1476169200000, + "username": "rking30", + "percent_uptime": 0.01 + }, + { + "age": 25, + "cost": 22.43, + "country": "CN", + "price": 46, + "project": "opbeat", + "state": "running", + "time": 1485327600000, + "username": "tjohnston31", + "percent_uptime": 0.43 + }, + { + "age": 33, + "cost": 22.44, + "country": "MY", + "price": 55, + "project": "machine-learning", + "state": "running", + "time": 1472713200000, + "username": "bdaniels32", + "percent_uptime": 0.67 + }, + { + "age": 71, + "cost": 23.84, + "country": "BY", + "price": 42, + "project": "beats", + "state": "start", + "time": 1460962800000, + "username": "ggarza33", + "percent_uptime": 0.55 + }, + { + "age": 74, + "cost": 21.73, + "country": "GR", + "price": 58, + "project": "opbeat", + "state": "running", + "time": 1463382000000, + "username": "csmith34", + "percent_uptime": 0.3 + }, + { + "age": 57, + "cost": 21.62, + "country": "TH", + "price": 60, + "project": "beats", + "state": "running", + "time": 1486969200000, + "username": "bhall35", + "percent_uptime": 0.92 + }, + { + "age": 28, + "cost": 21.34, + "country": "CO", + "price": 50, + "project": "logstash", + "state": "start", + "time": 1491462000000, + "username": "jpalmer36", + "percent_uptime": 0.82 + }, + { + "age": 26, + "cost": 23.35, + "country": "ZA", + "price": 57, + "project": "machine-learning", + "state": "done", + "time": 1471330800000, + "username": "akelly37", + "percent_uptime": 0.43 + }, + { + "age": 20, + "cost": 24.87, + "country": "JP", + "price": 66, + "project": "x-pack", + "state": "running", + "time": 1479366000000, + "username": "hbowman38", + "percent_uptime": 0.78 + }, + { + "age": 75, + "cost": 23.91, + "country": "MA", + "price": 59, + "project": "machine-learning", + "state": "start", + "time": 1466233200000, + "username": "wpierce39", + "percent_uptime": 0.15 + }, + { + "age": 62, + "cost": 20.83, + "country": "CN", + "price": 53, + "project": "x-pack", + "state": "start", + "time": 1464418800000, + "username": "eriley3a", + "percent_uptime": 0.65 + }, + { + "age": 45, + "cost": 22.57, + "country": "PT", + "price": 43, + "project": "elasticsearch", + "state": "done", + "time": 1471676400000, + "username": "emedina3b", + "percent_uptime": 0.28 + }, + { + "age": 72, + "cost": 22.45, + "country": "ID", + "price": 79, + "project": "kibana", + "state": "running", + "time": 1469516400000, + "username": "rlane3c", + "percent_uptime": 0.37 + }, + { + "age": 52, + "cost": 22.48, + "country": "ID", + "price": 61, + "project": "elasticsearch", + "state": "running", + "time": 1487228400000, + "username": "dwallace3d", + "percent_uptime": 0.27 + }, + { + "age": 36, + "cost": 23.89, + "country": "HR", + "price": 66, + "project": "beats", + "state": "start", + "time": 1462777200000, + "username": "jmcdonald3e", + "percent_uptime": 0.03 + }, + { + "age": 52, + "cost": 21.84, + "country": "RU", + "price": 56, + "project": "elasticsearch", + "state": "running", + "time": 1490166000000, + "username": "cschmidt3f", + "percent_uptime": 0.69 + }, + { + "age": 45, + "cost": 22.13, + "country": "ID", + "price": 54, + "project": "elasticsearch", + "state": "running", + "time": 1470207600000, + "username": "jfields3g", + "percent_uptime": 0.76 + }, + { + "age": 51, + "cost": 23.29, + "country": "CM", + "price": 48, + "project": "kibana", + "state": "done", + "time": 1475564400000, + "username": "kduncan3h", + "percent_uptime": 0.24 + }, + { + "age": 75, + "cost": 21.61, + "country": "ID", + "price": 58, + "project": "machine-learning", + "state": "running", + "time": 1480402800000, + "username": "award3i", + "percent_uptime": 0.16 + }, + { + "age": 44, + "cost": 21.09, + "country": "KN", + "price": 51, + "project": "kibana", + "state": "start", + "time": 1480575600000, + "username": "jking3j", + "percent_uptime": 0.83 + }, + { + "age": 53, + "cost": 24.07, + "country": "CU", + "price": 52, + "project": "opbeat", + "state": "start", + "time": 1489820400000, + "username": "ksanders3k", + "percent_uptime": 0.24 + }, + { + "age": 57, + "cost": 22.86, + "country": "BR", + "price": 40, + "project": "beats", + "state": "done", + "time": 1474700400000, + "username": "colson3l", + "percent_uptime": 0.55 + }, + { + "age": 77, + "cost": 22.88, + "country": "GT", + "price": 69, + "project": "logstash", + "state": "done", + "time": 1486537200000, + "username": "dpierce3m", + "percent_uptime": 0.43 + }, + { + "age": 56, + "cost": 22.79, + "country": "CN", + "price": 52, + "project": "logstash", + "state": "done", + "time": 1474959600000, + "username": "afoster3n", + "percent_uptime": 0.99 + }, + { + "age": 65, + "cost": 23.62, + "country": "VN", + "price": 43, + "project": "kibana", + "state": "start", + "time": 1485068400000, + "username": "phoward3o", + "percent_uptime": 0.63 + }, + { + "age": 66, + "cost": 22.32, + "country": "SE", + "price": 44, + "project": "elasticsearch", + "state": "running", + "time": 1473750000000, + "username": "rpalmer3p", + "percent_uptime": 0.29 + }, + { + "age": 34, + "cost": 21.86, + "country": "CN", + "price": 54, + "project": "x-pack", + "state": "running", + "time": 1480230000000, + "username": "bgordon3q", + "percent_uptime": 0.06 + }, + { + "age": 63, + "cost": 23.54, + "country": "ID", + "price": 59, + "project": "logstash", + "state": "start", + "time": 1484722800000, + "username": "cturner3r", + "percent_uptime": 0.59 + }, + { + "age": 20, + "cost": 21.73, + "country": "PS", + "price": 43, + "project": "x-pack", + "state": "running", + "time": 1480921200000, + "username": "jowens3s", + "percent_uptime": 0.61 + }, + { + "age": 65, + "cost": 23.34, + "country": "PL", + "price": 60, + "project": "kibana", + "state": "done", + "time": 1491548400000, + "username": "rdunn3t", + "percent_uptime": 0.96 + }, + { + "age": 44, + "cost": 22.12, + "country": "ID", + "price": 48, + "project": "kibana", + "state": "running", + "time": 1475391600000, + "username": "jhall3u", + "percent_uptime": 0.47 + }, + { + "age": 74, + "cost": 22.71, + "country": "TH", + "price": 57, + "project": "opbeat", + "state": "done", + "time": 1484982000000, + "username": "cmorris3v", + "percent_uptime": 0.44 + }, + { + "age": 64, + "cost": 23.85, + "country": "ID", + "price": 48, + "project": "beats", + "state": "start", + "time": 1475996400000, + "username": "dpierce3w", + "percent_uptime": 0.13 + }, + { + "age": 48, + "cost": 22.03, + "country": "CN", + "price": 66, + "project": "x-pack", + "state": "running", + "time": 1468825200000, + "username": "htaylor3x", + "percent_uptime": 0.29 + }, + { + "age": 59, + "cost": 22.88, + "country": "BG", + "price": 67, + "project": "elasticsearch", + "state": "done", + "time": 1470380400000, + "username": "hwagner3y", + "percent_uptime": 0.9 + }, + { + "age": 25, + "cost": 23.96, + "country": "JM", + "price": 50, + "project": "opbeat", + "state": "start", + "time": 1486796400000, + "username": "sholmes3z", + "percent_uptime": 0.97 + }, + { + "age": 62, + "cost": 23.1, + "country": "ID", + "price": 61, + "project": "x-pack", + "state": "done", + "time": 1467874800000, + "username": "grogers40", + "percent_uptime": 0.03 + }, + { + "age": 67, + "cost": 22.36, + "country": "PT", + "price": 50, + "project": "opbeat", + "state": "running", + "time": 1483686000000, + "username": "jphillips41", + "percent_uptime": 0.47 + }, + { + "age": 69, + "cost": 23.26, + "country": "TN", + "price": 75, + "project": "x-pack", + "state": "done", + "time": 1473836400000, + "username": "pmcdonald42", + "percent_uptime": 0.24 + }, + { + "age": 64, + "cost": 23.7, + "country": "PL", + "price": 57, + "project": "beats", + "state": "start", + "time": 1465801200000, + "username": "bsims43", + "percent_uptime": 0.36 + }, + { + "age": 80, + "cost": 24.38, + "country": "US", + "price": 56, + "project": "elasticsearch", + "state": "start", + "time": 1479193200000, + "username": "jmurray44", + "percent_uptime": 0.65 + }, + { + "age": 41, + "cost": 24.64, + "country": "PH", + "price": 58, + "project": "x-pack", + "state": "running", + "time": 1472022000000, + "username": "phenderson45", + "percent_uptime": 0.21 + }, + { + "age": 55, + "cost": 24.47, + "country": "ID", + "price": 63, + "project": "x-pack", + "state": "start", + "time": 1465974000000, + "username": "nhunt46", + "percent_uptime": 0.01 + }, + { + "age": 30, + "cost": 23.45, + "country": "CN", + "price": 54, + "project": "kibana", + "state": "done", + "time": 1469257200000, + "username": "rwalker47", + "percent_uptime": 0.88 + }, + { + "age": 31, + "cost": 22.09, + "country": "CO", + "price": 60, + "project": "elasticsearch", + "state": "running", + "time": 1482562800000, + "username": "dkim48", + "percent_uptime": 0.43 + }, + { + "age": 33, + "cost": 22.48, + "country": "NG", + "price": 61, + "project": "machine-learning", + "state": "running", + "time": 1486969200000, + "username": "dward49", + "percent_uptime": 0.32 + }, + { + "age": 68, + "cost": 23, + "country": "HN", + "price": 58, + "project": "machine-learning", + "state": "done", + "time": 1471762800000, + "username": "ahughes4a", + "percent_uptime": 0.8 + }, + { + "age": 32, + "cost": 21.74, + "country": "CN", + "price": 64, + "project": "opbeat", + "state": "running", + "time": 1491548400000, + "username": "jdunn4b", + "percent_uptime": 0.76 + }, + { + "age": 49, + "cost": 21.46, + "country": "DE", + "price": 65, + "project": "logstash", + "state": "start", + "time": 1466060400000, + "username": "psimmons4c", + "percent_uptime": 0.34 + }, + { + "age": 33, + "cost": 22.14, + "country": "CN", + "price": 52, + "project": "machine-learning", + "state": "running", + "time": 1460790000000, + "username": "tpierce4d", + "percent_uptime": 0.43 + }, + { + "age": 59, + "cost": 23.4, + "country": "GY", + "price": 59, + "project": "elasticsearch", + "state": "done", + "time": 1475650800000, + "username": "jchavez4e", + "percent_uptime": 0.75 + }, + { + "age": 60, + "cost": 20.92, + "country": "MK", + "price": 55, + "project": "opbeat", + "state": "start", + "time": 1486882800000, + "username": "awood4f", + "percent_uptime": 0.84 + }, + { + "age": 28, + "cost": 22.56, + "country": "PT", + "price": 58, + "project": "logstash", + "state": "done", + "time": 1491375600000, + "username": "psanchez4g", + "percent_uptime": 0.48 + }, + { + "age": 69, + "cost": 22.78, + "country": "TH", + "price": 54, + "project": "x-pack", + "state": "done", + "time": 1478588400000, + "username": "phansen4h", + "percent_uptime": 0.58 + }, + { + "age": 73, + "cost": 21.52, + "country": "CN", + "price": 54, + "project": "elasticsearch", + "state": "running", + "time": 1461308400000, + "username": "apierce4i", + "percent_uptime": 0.92 + }, + { + "age": 49, + "cost": 21.94, + "country": "CN", + "price": 55, + "project": "logstash", + "state": "running", + "time": 1467097200000, + "username": "cedwards4j", + "percent_uptime": 0.47 + }, + { + "age": 73, + "cost": 21.99, + "country": "JP", + "price": 56, + "project": "elasticsearch", + "state": "running", + "time": 1478329200000, + "username": "sford4k", + "percent_uptime": 0.79 + }, + { + "age": 64, + "cost": 23.14, + "country": "PH", + "price": 51, + "project": "beats", + "state": "done", + "time": 1483340400000, + "username": "kpeterson4l", + "percent_uptime": 0.64 + }, + { + "age": 53, + "cost": 22.97, + "country": "BR", + "price": 58, + "project": "opbeat", + "state": "done", + "time": 1486710000000, + "username": "bfoster4m", + "percent_uptime": 0.07 + }, + { + "age": 57, + "cost": 21.37, + "country": "CN", + "price": 67, + "project": "beats", + "state": "start", + "time": 1481526000000, + "username": "eturner4n", + "percent_uptime": 0.72 + }, + { + "age": 65, + "cost": 23.65, + "country": "CN", + "price": 61, + "project": "kibana", + "state": "start", + "time": 1469948400000, + "username": "kwilliamson4o", + "percent_uptime": 0.67 + }, + { + "age": 25, + "cost": 23.94, + "country": "ID", + "price": 50, + "project": "opbeat", + "state": "start", + "time": 1465801200000, + "username": "jfranklin4p", + "percent_uptime": 0.57 + }, + { + "age": 74, + "cost": 23.53, + "country": "CN", + "price": 52, + "project": "opbeat", + "state": "start", + "time": 1461481200000, + "username": "ecoleman4q", + "percent_uptime": 0.48 + }, + { + "age": 57, + "cost": 24.26, + "country": "CN", + "price": 71, + "project": "beats", + "state": "start", + "time": 1461481200000, + "username": "rray4r", + "percent_uptime": 0.17 + }, + { + "age": 67, + "cost": 21.4, + "country": "FR", + "price": 72, + "project": "opbeat", + "state": "start", + "time": 1465714800000, + "username": "mprice4s", + "percent_uptime": 0.66 + }, + { + "age": 39, + "cost": 23.47, + "country": "FR", + "price": 52, + "project": "opbeat", + "state": "done", + "time": 1486537200000, + "username": "krobertson4t", + "percent_uptime": 0.27 + }, + { + "age": 50, + "cost": 22.96, + "country": "PE", + "price": 59, + "project": "beats", + "state": "done", + "time": 1489388400000, + "username": "rwalker4u", + "percent_uptime": 0.13 + }, + { + "age": 26, + "cost": 23.99, + "country": "CN", + "price": 52, + "project": "machine-learning", + "state": "start", + "time": 1477033200000, + "username": "cdiaz4v", + "percent_uptime": 0.13 + }, + { + "age": 34, + "cost": 23.74, + "country": "US", + "price": 55, + "project": "x-pack", + "state": "start", + "time": 1474009200000, + "username": "cparker4w", + "percent_uptime": 0.06 + }, + { + "age": 38, + "cost": 23.23, + "country": "BR", + "price": 57, + "project": "elasticsearch", + "state": "done", + "time": 1489993200000, + "username": "cthompson4x", + "percent_uptime": 0.53 + }, + { + "age": 62, + "cost": 23.34, + "country": "PH", + "price": 42, + "project": "x-pack", + "state": "done", + "time": 1479711600000, + "username": "callen4y", + "percent_uptime": 0.12 + }, + { + "age": 33, + "cost": 22.24, + "country": "BR", + "price": 36, + "project": "machine-learning", + "state": "running", + "time": 1480662000000, + "username": "lbell4z", + "percent_uptime": 0.67 + }, + { + "age": 37, + "cost": 24.62, + "country": "CM", + "price": 51, + "project": "kibana", + "state": "running", + "time": 1465887600000, + "username": "hmoreno50", + "percent_uptime": 0.66 + }, + { + "age": 47, + "cost": 22.23, + "country": "PY", + "price": 53, + "project": "machine-learning", + "state": "running", + "time": 1460962800000, + "username": "jspencer51", + "percent_uptime": 0.63 + }, + { + "age": 38, + "cost": 23.38, + "country": "ID", + "price": 58, + "project": "elasticsearch", + "state": "done", + "time": 1491116400000, + "username": "bhamilton52", + "percent_uptime": 0.17 + }, + { + "age": 24, + "cost": 24.1, + "country": "CN", + "price": 58, + "project": "elasticsearch", + "state": "start", + "time": 1466492400000, + "username": "amatthews53", + "percent_uptime": 0.54 + }, + { + "age": 27, + "cost": 23.12, + "country": "ID", + "price": 68, + "project": "x-pack", + "state": "done", + "time": 1471330800000, + "username": "wjohnston54", + "percent_uptime": 0.49 + }, + { + "age": 28, + "cost": 22.07, + "country": "PL", + "price": 56, + "project": "logstash", + "state": "running", + "time": 1489302000000, + "username": "crice55", + "percent_uptime": 0.28 + }, + { + "age": 36, + "cost": 23.32, + "country": "BY", + "price": 60, + "project": "beats", + "state": "done", + "time": 1460790000000, + "username": "probinson56", + "percent_uptime": 0.45 + }, + { + "age": 44, + "cost": 24.17, + "country": "CN", + "price": 56, + "project": "kibana", + "state": "start", + "time": 1467961200000, + "username": "lmatthews57", + "percent_uptime": 0.08 + }, + { + "age": 80, + "cost": 21.56, + "country": "SE", + "price": 69, + "project": "elasticsearch", + "state": "running", + "time": 1469862000000, + "username": "scole58", + "percent_uptime": 0.71 + }, + { + "age": 50, + "cost": 23.15, + "country": "ID", + "price": 54, + "project": "beats", + "state": "done", + "time": 1491548400000, + "username": "gramirez59", + "percent_uptime": 0.76 + }, + { + "age": 18, + "cost": 23.94, + "country": "CN", + "price": 48, + "project": "opbeat", + "state": "start", + "time": 1482822000000, + "username": "jruiz5a", + "percent_uptime": 0.18 + }, + { + "age": 48, + "cost": 23.14, + "country": "ID", + "price": 54, + "project": "x-pack", + "state": "done", + "time": 1464332400000, + "username": "jramirez5b", + "percent_uptime": 0.32 + }, + { + "age": 64, + "cost": 20.38, + "country": "CZ", + "price": 63, + "project": "beats", + "state": "done", + "time": 1472281200000, + "username": "ppierce5c", + "percent_uptime": 0.64 + }, + { + "age": 45, + "cost": 23.47, + "country": "PH", + "price": 60, + "project": "elasticsearch", + "state": "done", + "time": 1465196400000, + "username": "rfranklin5d", + "percent_uptime": 0.39 + }, + { + "age": 65, + "cost": 22.87, + "country": "PH", + "price": 56, + "project": "kibana", + "state": "done", + "time": 1468306800000, + "username": "aevans5e", + "percent_uptime": 0.18 + }, + { + "age": 18, + "cost": 23.45, + "country": "BY", + "price": 71, + "project": "opbeat", + "state": "done", + "time": 1463814000000, + "username": "gday5f", + "percent_uptime": 0.51 + }, + { + "age": 42, + "cost": 23.44, + "country": "PY", + "price": 43, + "project": "logstash", + "state": "done", + "time": 1478156400000, + "username": "pwilliams5g", + "percent_uptime": 0.29 + }, + { + "age": 19, + "cost": 23.99, + "country": "MX", + "price": 53, + "project": "machine-learning", + "state": "start", + "time": 1470380400000, + "username": "mgray5h", + "percent_uptime": 0.58 + }, + { + "age": 64, + "cost": 22.94, + "country": "PL", + "price": 47, + "project": "beats", + "state": "done", + "time": 1465801200000, + "username": "mcarroll5i", + "percent_uptime": 0.31 + }, + { + "age": 49, + "cost": 24.38, + "country": "JP", + "price": 56, + "project": "logstash", + "state": "start", + "time": 1464246000000, + "username": "dmontgomery5j", + "percent_uptime": 0.4 + }, + { + "age": 71, + "cost": 23.72, + "country": "BY", + "price": 50, + "project": "beats", + "state": "start", + "time": 1484463600000, + "username": "rsims5k", + "percent_uptime": 0.1 + }, + { + "age": 38, + "cost": 22.02, + "country": "PH", + "price": 58, + "project": "elasticsearch", + "state": "running", + "time": 1469257200000, + "username": "jgreene5l", + "percent_uptime": 0.78 + }, + { + "age": 43, + "cost": 23.08, + "country": "EC", + "price": 64, + "project": "beats", + "state": "done", + "time": 1480230000000, + "username": "mmills5m", + "percent_uptime": 0.1 + }, + { + "age": 75, + "cost": 22.96, + "country": "ID", + "price": 54, + "project": "machine-learning", + "state": "done", + "time": 1472022000000, + "username": "rmoreno5n", + "percent_uptime": 0.04 + }, + { + "age": 28, + "cost": 24.37, + "country": "US", + "price": 57, + "project": "logstash", + "state": "start", + "time": 1460962800000, + "username": "kcole5o", + "percent_uptime": 0.18 + }, + { + "age": 75, + "cost": 21.92, + "country": "JP", + "price": 52, + "project": "machine-learning", + "state": "running", + "time": 1468393200000, + "username": "nwelch5p", + "percent_uptime": 0.26 + }, + { + "age": 66, + "cost": 21.96, + "country": "CN", + "price": 64, + "project": "elasticsearch", + "state": "running", + "time": 1464418800000, + "username": "gburton5q", + "percent_uptime": 0.24 + }, + { + "age": 32, + "cost": 23.14, + "country": "VE", + "price": 54, + "project": "opbeat", + "state": "done", + "time": 1485586800000, + "username": "dfisher5r", + "percent_uptime": 0.42 + }, + { + "age": 45, + "cost": 21.99, + "country": "US", + "price": 44, + "project": "elasticsearch", + "state": "running", + "time": 1485068400000, + "username": "mknight5s", + "percent_uptime": 0.35 + }, + { + "age": 23, + "cost": 22.97, + "country": "CN", + "price": 49, + "project": "kibana", + "state": "done", + "time": 1483426800000, + "username": "pgordon5t", + "percent_uptime": 0.73 + }, + { + "age": 31, + "cost": 21.85, + "country": "RU", + "price": 62, + "project": "elasticsearch", + "state": "running", + "time": 1471330800000, + "username": "bpowell5u", + "percent_uptime": 0.63 + }, + { + "age": 28, + "cost": 21.32, + "country": "CA", + "price": 58, + "project": "logstash", + "state": "start", + "time": 1487314800000, + "username": "creed5v", + "percent_uptime": 0.27 + }, + { + "age": 55, + "cost": 23.47, + "country": "CN", + "price": 59, + "project": "x-pack", + "state": "done", + "time": 1468998000000, + "username": "dgreene5w", + "percent_uptime": 0.5 + }, + { + "age": 53, + "cost": 21.72, + "country": "ID", + "price": 57, + "project": "opbeat", + "state": "running", + "time": 1482649200000, + "username": "areynolds5x", + "percent_uptime": 0.4 + }, + { + "age": 68, + "cost": 22.78, + "country": "AU", + "price": 57, + "project": "machine-learning", + "state": "done", + "time": 1473750000000, + "username": "sharris5y", + "percent_uptime": 0.18 + }, + { + "age": 58, + "cost": 22.76, + "country": "LA", + "price": 56, + "project": "kibana", + "state": "done", + "time": 1474873200000, + "username": "jwatson5z", + "percent_uptime": 0.63 + }, + { + "age": 40, + "cost": 23.64, + "country": "CN", + "price": 52, + "project": "machine-learning", + "state": "start", + "time": 1490943600000, + "username": "flewis60", + "percent_uptime": 0.76 + }, + { + "age": 22, + "cost": 24.27, + "country": "CA", + "price": 44, + "project": "beats", + "state": "start", + "time": 1480402800000, + "username": "jdavis61", + "percent_uptime": 0.97 + }, + { + "age": 67, + "cost": 21.81, + "country": "ID", + "price": 48, + "project": "opbeat", + "state": "running", + "time": 1479279600000, + "username": "bmorrison62", + "percent_uptime": 0.27 + }, + { + "age": 66, + "cost": 24.82, + "country": "CN", + "price": 42, + "project": "elasticsearch", + "state": "running", + "time": 1482130800000, + "username": "wgordon63", + "percent_uptime": 0.86 + }, + { + "age": 33, + "cost": 22.6, + "country": "RU", + "price": 59, + "project": "machine-learning", + "state": "done", + "time": 1484118000000, + "username": "athompson64", + "percent_uptime": 0.09 + }, + { + "age": 28, + "cost": 22.56, + "country": "KZ", + "price": 52, + "project": "logstash", + "state": "done", + "time": 1467097200000, + "username": "bwright65", + "percent_uptime": 0.93 + }, + { + "age": 37, + "cost": 22.8, + "country": "CN", + "price": 54, + "project": "kibana", + "state": "done", + "time": 1490684400000, + "username": "jburke66", + "percent_uptime": 0.7 + }, + { + "age": 55, + "cost": 25.38, + "country": "CN", + "price": 41, + "project": "x-pack", + "state": "running", + "time": 1483081200000, + "username": "lmeyer67", + "percent_uptime": 0.44 + }, + { + "age": 47, + "cost": 22.35, + "country": "PH", + "price": 72, + "project": "machine-learning", + "state": "running", + "time": 1484031600000, + "username": "plane68", + "percent_uptime": 0.9 + }, + { + "age": 75, + "cost": 21.21, + "country": "AL", + "price": 64, + "project": "machine-learning", + "state": "start", + "time": 1478847600000, + "username": "nschmidt69", + "percent_uptime": 0.75 + }, + { + "age": 29, + "cost": 24.41, + "country": "CN", + "price": 60, + "project": "beats", + "state": "start", + "time": 1480662000000, + "username": "jdean6a", + "percent_uptime": 0.8 + }, + { + "age": 80, + "cost": 19.77, + "country": "CN", + "price": 64, + "project": "elasticsearch", + "state": "done", + "time": 1489993200000, + "username": "vvasquez6b", + "percent_uptime": 0.01 + }, + { + "age": 47, + "cost": 23.12, + "country": "CU", + "price": 53, + "project": "machine-learning", + "state": "done", + "time": 1460358000000, + "username": "jcarpenter6c", + "percent_uptime": 0.58 + }, + { + "age": 47, + "cost": 21.79, + "country": "VE", + "price": 52, + "project": "machine-learning", + "state": "running", + "time": 1471762800000, + "username": "ihowell6d", + "percent_uptime": 0.96 + }, + { + "age": 42, + "cost": 22.67, + "country": "PH", + "price": 55, + "project": "logstash", + "state": "done", + "time": 1488524400000, + "username": "lschmidt6e", + "percent_uptime": 0.68 + }, + { + "age": 78, + "cost": 22.2, + "country": "DE", + "price": 57, + "project": "beats", + "state": "running", + "time": 1475650800000, + "username": "lkennedy6f", + "percent_uptime": 0.28 + }, + { + "age": 77, + "cost": 22.19, + "country": "CN", + "price": 63, + "project": "logstash", + "state": "running", + "time": 1483945200000, + "username": "bgarza6g", + "percent_uptime": 0.86 + }, + { + "age": 38, + "cost": 23.47, + "country": "BR", + "price": 51, + "project": "elasticsearch", + "state": "done", + "time": 1477983600000, + "username": "rlewis6h", + "percent_uptime": 0.63 + }, + { + "age": 38, + "cost": 22.74, + "country": "PH", + "price": 59, + "project": "elasticsearch", + "state": "done", + "time": 1483513200000, + "username": "gwoods6i", + "percent_uptime": 0.58 + }, + { + "age": 77, + "cost": 22.8, + "country": "CN", + "price": 57, + "project": "logstash", + "state": "done", + "time": 1484031600000, + "username": "mcruz6j", + "percent_uptime": 0.98 + }, + { + "age": 23, + "cost": 22.9, + "country": "TH", + "price": 44, + "project": "kibana", + "state": "done", + "time": 1463900400000, + "username": "pthomas6k", + "percent_uptime": 0.19 + }, + { + "age": 47, + "cost": 23.4, + "country": "CA", + "price": 64, + "project": "machine-learning", + "state": "done", + "time": 1491548400000, + "username": "astanley6l", + "percent_uptime": 0.5 + }, + { + "age": 43, + "cost": 22.91, + "country": "CN", + "price": 50, + "project": "beats", + "state": "done", + "time": 1472886000000, + "username": "sharris6m", + "percent_uptime": 0.26 + }, + { + "age": 76, + "cost": 21.74, + "country": "ID", + "price": 55, + "project": "x-pack", + "state": "running", + "time": 1490943600000, + "username": "rreynolds6n", + "percent_uptime": 0.23 + }, + { + "age": 18, + "cost": 23.15, + "country": "RU", + "price": 56, + "project": "opbeat", + "state": "done", + "time": 1484550000000, + "username": "ewebb6o", + "percent_uptime": 0.2 + }, + { + "age": 50, + "cost": 23.16, + "country": "ID", + "price": 61, + "project": "beats", + "state": "done", + "time": 1461740400000, + "username": "tmorales6p", + "percent_uptime": 0.46 + }, + { + "age": 27, + "cost": 22.14, + "country": "SE", + "price": 45, + "project": "x-pack", + "state": "running", + "time": 1463727600000, + "username": "dmontgomery6q", + "percent_uptime": 0.99 + }, + { + "age": 23, + "cost": 24.03, + "country": "PS", + "price": 51, + "project": "kibana", + "state": "start", + "time": 1484031600000, + "username": "blynch6r", + "percent_uptime": 0.35 + }, + { + "age": 40, + "cost": 22.63, + "country": "CN", + "price": 70, + "project": "machine-learning", + "state": "done", + "time": 1483686000000, + "username": "fsullivan6s", + "percent_uptime": 0.42 + }, + { + "age": 80, + "cost": 25.11, + "country": "RU", + "price": 52, + "project": "elasticsearch", + "state": "running", + "time": 1476687600000, + "username": "jrobertson6t", + "percent_uptime": 0.05 + }, + { + "age": 28, + "cost": 22.92, + "country": "CN", + "price": 53, + "project": "logstash", + "state": "done", + "time": 1484031600000, + "username": "randrews6u", + "percent_uptime": 0.51 + }, + { + "age": 75, + "cost": 24.69, + "country": "AL", + "price": 46, + "project": "machine-learning", + "state": "running", + "time": 1462258800000, + "username": "pkim6v", + "percent_uptime": 0.43 + }, + { + "age": 34, + "cost": 21.66, + "country": "TH", + "price": 55, + "project": "x-pack", + "state": "running", + "time": 1490079600000, + "username": "aharris6w", + "percent_uptime": 0.15 + }, + { + "age": 78, + "cost": 20.89, + "country": "SI", + "price": 63, + "project": "beats", + "state": "start", + "time": 1485154800000, + "username": "dbarnes6x", + "percent_uptime": 0.38 + }, + { + "age": 75, + "cost": 22.08, + "country": "FR", + "price": 53, + "project": "machine-learning", + "state": "running", + "time": 1476428400000, + "username": "jhamilton6y", + "percent_uptime": 0.92 + }, + { + "age": 42, + "cost": 23.16, + "country": "CN", + "price": 50, + "project": "logstash", + "state": "done", + "time": 1473318000000, + "username": "lgibson6z", + "percent_uptime": 0.47 + }, + { + "age": 29, + "cost": 23.82, + "country": "ID", + "price": 55, + "project": "beats", + "state": "start", + "time": 1488870000000, + "username": "agordon70", + "percent_uptime": 0.27 + }, + { + "age": 27, + "cost": 23.25, + "country": "US", + "price": 40, + "project": "x-pack", + "state": "done", + "time": 1466319600000, + "username": "slewis71", + "percent_uptime": 0.78 + }, + { + "age": 67, + "cost": 23.92, + "country": "FI", + "price": 61, + "project": "opbeat", + "state": "start", + "time": 1478242800000, + "username": "slane72", + "percent_uptime": 0.09 + }, + { + "age": 69, + "cost": 24.53, + "country": "PH", + "price": 49, + "project": "x-pack", + "state": "running", + "time": 1484463600000, + "username": "rramos73", + "percent_uptime": 0.86 + }, + { + "age": 72, + "cost": 24.16, + "country": "ID", + "price": 59, + "project": "kibana", + "state": "start", + "time": 1480057200000, + "username": "dhawkins74", + "percent_uptime": 0.28 + }, + { + "age": 31, + "cost": 23.11, + "country": "CN", + "price": 64, + "project": "elasticsearch", + "state": "done", + "time": 1490598000000, + "username": "rlane75", + "percent_uptime": 0.15 + }, + { + "age": 31, + "cost": 23.41, + "country": "CN", + "price": 70, + "project": "elasticsearch", + "state": "done", + "time": 1490684400000, + "username": "pturner76", + "percent_uptime": 0.84 + }, + { + "age": 68, + "cost": 23.27, + "country": "JP", + "price": 57, + "project": "machine-learning", + "state": "done", + "time": 1473404400000, + "username": "dlawrence77", + "percent_uptime": 0.61 + }, + { + "age": 19, + "cost": 23.72, + "country": "CN", + "price": 44, + "project": "machine-learning", + "state": "start", + "time": 1469084400000, + "username": "twelch78", + "percent_uptime": 0.54 + }, + { + "age": 79, + "cost": 23, + "country": "PH", + "price": 69, + "project": "kibana", + "state": "done", + "time": 1468393200000, + "username": "hwilliams79", + "percent_uptime": 0.94 + }, + { + "age": 26, + "cost": 23.19, + "country": "CN", + "price": 58, + "project": "machine-learning", + "state": "done", + "time": 1471071600000, + "username": "tbowman7a", + "percent_uptime": 0.49 + }, + { + "age": 33, + "cost": 22.87, + "country": "YE", + "price": 55, + "project": "machine-learning", + "state": "done", + "time": 1474009200000, + "username": "kwheeler7b", + "percent_uptime": 0.09 + }, + { + "age": 35, + "cost": 21.5, + "country": "KZ", + "price": 73, + "project": "logstash", + "state": "running", + "time": 1464073200000, + "username": "cgrant7c", + "percent_uptime": 0.33 + }, + { + "age": 30, + "cost": 22.25, + "country": "PS", + "price": 70, + "project": "kibana", + "state": "running", + "time": 1485154800000, + "username": "cbradley7d", + "percent_uptime": 0.53 + }, + { + "age": 37, + "cost": 25, + "country": "CN", + "price": 63, + "project": "kibana", + "state": "running", + "time": 1460876400000, + "username": "mrichardson7e", + "percent_uptime": 0.87 + }, + { + "age": 66, + "cost": 22.22, + "country": "GR", + "price": 61, + "project": "elasticsearch", + "state": "running", + "time": 1479798000000, + "username": "janderson7f", + "percent_uptime": 0.49 + }, + { + "age": 45, + "cost": 24.05, + "country": "ID", + "price": 59, + "project": "elasticsearch", + "state": "start", + "time": 1475823600000, + "username": "lgriffin7g", + "percent_uptime": 0.36 + }, + { + "age": 25, + "cost": 22.98, + "country": "ID", + "price": 48, + "project": "opbeat", + "state": "done", + "time": 1484290800000, + "username": "salvarez7h", + "percent_uptime": 0.83 + }, + { + "age": 36, + "cost": 24.01, + "country": "ID", + "price": 59, + "project": "beats", + "state": "start", + "time": 1474354800000, + "username": "pmills7i", + "percent_uptime": 0.59 + }, + { + "age": 23, + "cost": 23.07, + "country": "MU", + "price": 56, + "project": "kibana", + "state": "done", + "time": 1490598000000, + "username": "jdunn7j", + "percent_uptime": 0.46 + }, + { + "age": 68, + "cost": 23.31, + "country": "CN", + "price": 66, + "project": "machine-learning", + "state": "done", + "time": 1491462000000, + "username": "dwilson7k", + "percent_uptime": 0.72 + }, + { + "age": 78, + "cost": 21.12, + "country": "PH", + "price": 54, + "project": "beats", + "state": "start", + "time": 1467874800000, + "username": "relliott7l", + "percent_uptime": 0.32 + }, + { + "age": 64, + "cost": 22.85, + "country": "CN", + "price": 70, + "project": "beats", + "state": "done", + "time": 1462518000000, + "username": "drichardson7m", + "percent_uptime": 0.73 + }, + { + "age": 29, + "cost": 23.52, + "country": "ET", + "price": 51, + "project": "beats", + "state": "start", + "time": 1484982000000, + "username": "mrussell7n", + "percent_uptime": 0.43 + }, + { + "age": 48, + "cost": 22.43, + "country": "KM", + "price": 61, + "project": "x-pack", + "state": "running", + "time": 1482908400000, + "username": "eharris7o", + "percent_uptime": 0.7 + }, + { + "age": 59, + "cost": 21.09, + "country": "ZA", + "price": 58, + "project": "elasticsearch", + "state": "start", + "time": 1480489200000, + "username": "sbryant7p", + "percent_uptime": 0.29 + }, + { + "age": 67, + "cost": 23.3, + "country": "KG", + "price": 54, + "project": "opbeat", + "state": "done", + "time": 1466060400000, + "username": "mchavez7q", + "percent_uptime": 0.36 + }, + { + "age": 67, + "cost": 22.4, + "country": "MZ", + "price": 65, + "project": "opbeat", + "state": "running", + "time": 1462086000000, + "username": "emurray7r", + "percent_uptime": 0.29 + }, + { + "age": 47, + "cost": 21.95, + "country": "ID", + "price": 56, + "project": "machine-learning", + "state": "running", + "time": 1479798000000, + "username": "pmoore7s", + "percent_uptime": 0.98 + }, + { + "age": 77, + "cost": 24.34, + "country": "SE", + "price": 45, + "project": "logstash", + "state": "start", + "time": 1463727600000, + "username": "jdavis7t", + "percent_uptime": 0.99 + }, + { + "age": 30, + "cost": 23.66, + "country": "CN", + "price": 61, + "project": "kibana", + "state": "start", + "time": 1482822000000, + "username": "pstephens7u", + "percent_uptime": 0.64 + }, + { + "age": 74, + "cost": 22.75, + "country": "BY", + "price": 53, + "project": "opbeat", + "state": "done", + "time": 1485759600000, + "username": "cbell7v", + "percent_uptime": 0.11 + }, + { + "age": 52, + "cost": 21.84, + "country": "CN", + "price": 48, + "project": "elasticsearch", + "state": "running", + "time": 1489906800000, + "username": "agordon7w", + "percent_uptime": 0.32 + }, + { + "age": 76, + "cost": 22.54, + "country": "BR", + "price": 47, + "project": "x-pack", + "state": "done", + "time": 1480143600000, + "username": "cray7x", + "percent_uptime": 0.87 + }, + { + "age": 55, + "cost": 21.27, + "country": "PT", + "price": 46, + "project": "x-pack", + "state": "start", + "time": 1475132400000, + "username": "llong7y", + "percent_uptime": 0.57 + }, + { + "age": 64, + "cost": 22.86, + "country": "CN", + "price": 69, + "project": "beats", + "state": "done", + "time": 1461826800000, + "username": "lcoleman7z", + "percent_uptime": 0.03 + }, + { + "age": 20, + "cost": 23.15, + "country": "ID", + "price": 70, + "project": "x-pack", + "state": "done", + "time": 1466233200000, + "username": "wpalmer80", + "percent_uptime": 0.59 + }, + { + "age": 31, + "cost": 22, + "country": "ZA", + "price": 61, + "project": "elasticsearch", + "state": "running", + "time": 1473750000000, + "username": "dkim81", + "percent_uptime": 0.93 + }, + { + "age": 38, + "cost": 22.68, + "country": "PT", + "price": 50, + "project": "elasticsearch", + "state": "done", + "time": 1468911600000, + "username": "fsanders82", + "percent_uptime": 0.65 + }, + { + "age": 54, + "cost": 22.14, + "country": "UA", + "price": 61, + "project": "machine-learning", + "state": "running", + "time": 1484722800000, + "username": "jmiller83", + "percent_uptime": 0.35 + }, + { + "age": 43, + "cost": 23.1, + "country": "ZA", + "price": 56, + "project": "beats", + "state": "done", + "time": 1461481200000, + "username": "rreyes84", + "percent_uptime": 0.99 + }, + { + "age": 56, + "cost": 22.14, + "country": "MN", + "price": 48, + "project": "logstash", + "state": "running", + "time": 1466751600000, + "username": "jmills85", + "percent_uptime": 0.53 + }, + { + "age": 77, + "cost": 22.58, + "country": "CN", + "price": 57, + "project": "logstash", + "state": "done", + "time": 1474527600000, + "username": "slopez86", + "percent_uptime": 0.85 + }, + { + "age": 78, + "cost": 21.71, + "country": "CN", + "price": 54, + "project": "beats", + "state": "running", + "time": 1489561200000, + "username": "rthomas87", + "percent_uptime": 0.63 + }, + { + "age": 23, + "cost": 21.94, + "country": "FR", + "price": 73, + "project": "kibana", + "state": "running", + "time": 1475910000000, + "username": "eharris88", + "percent_uptime": 0.28 + }, + { + "age": 68, + "cost": 23.13, + "country": "PH", + "price": 57, + "project": "machine-learning", + "state": "done", + "time": 1462950000000, + "username": "sjackson89", + "percent_uptime": 0.48 + }, + { + "age": 52, + "cost": 23.07, + "country": "GR", + "price": 52, + "project": "elasticsearch", + "state": "done", + "time": 1481353200000, + "username": "preynolds8a", + "percent_uptime": 0.43 + }, + { + "age": 46, + "cost": 24.87, + "country": "SE", + "price": 51, + "project": "opbeat", + "state": "running", + "time": 1465196400000, + "username": "bmorris8b", + "percent_uptime": 0.54 + }, + { + "age": 58, + "cost": 23.7, + "country": "ID", + "price": 53, + "project": "kibana", + "state": "start", + "time": 1485068400000, + "username": "rburns8c", + "percent_uptime": 0.62 + }, + { + "age": 64, + "cost": 22.76, + "country": "IR", + "price": 53, + "project": "beats", + "state": "done", + "time": 1481526000000, + "username": "jsimpson8d", + "percent_uptime": 0.45 + }, + { + "age": 29, + "cost": 24.01, + "country": "PH", + "price": 61, + "project": "beats", + "state": "start", + "time": 1476946800000, + "username": "dcarter8e", + "percent_uptime": 0.25 + }, + { + "age": 42, + "cost": 23.06, + "country": "CN", + "price": 57, + "project": "logstash", + "state": "done", + "time": 1489561200000, + "username": "jfisher8f", + "percent_uptime": 0.52 + }, + { + "age": 60, + "cost": 23.29, + "country": "RU", + "price": 49, + "project": "opbeat", + "state": "done", + "time": 1461740400000, + "username": "kramirez8g", + "percent_uptime": 0.78 + }, + { + "age": 77, + "cost": 23.35, + "country": "BR", + "price": 53, + "project": "logstash", + "state": "done", + "time": 1479279600000, + "username": "jowens8h", + "percent_uptime": 0.31 + }, + { + "age": 55, + "cost": 22.16, + "country": "PT", + "price": 58, + "project": "x-pack", + "state": "running", + "time": 1461567600000, + "username": "gweaver8i", + "percent_uptime": 0.01 + }, + { + "age": 70, + "cost": 21.65, + "country": "JM", + "price": 57, + "project": "logstash", + "state": "running", + "time": 1481958000000, + "username": "jharrison8j", + "percent_uptime": 0.87 + }, + { + "age": 76, + "cost": 22.98, + "country": "HN", + "price": 51, + "project": "x-pack", + "state": "done", + "time": 1466492400000, + "username": "chenderson8k", + "percent_uptime": 0.47 + }, + { + "age": 63, + "cost": 24.31, + "country": "PH", + "price": 61, + "project": "logstash", + "state": "start", + "time": 1472886000000, + "username": "lreynolds8l", + "percent_uptime": 0.78 + }, + { + "age": 18, + "cost": 23.62, + "country": "MA", + "price": 82, + "project": "opbeat", + "state": "start", + "time": 1474095600000, + "username": "ljacobs8m", + "percent_uptime": 0.09 + }, + { + "age": 34, + "cost": 24.18, + "country": "CN", + "price": 57, + "project": "x-pack", + "state": "start", + "time": 1476082800000, + "username": "pwheeler8n", + "percent_uptime": 0.45 + }, + { + "age": 50, + "cost": 22.96, + "country": "JP", + "price": 61, + "project": "beats", + "state": "done", + "time": 1480834800000, + "username": "lbrown8o", + "percent_uptime": 0.9 + }, + { + "age": 49, + "cost": 22.47, + "country": "FI", + "price": 49, + "project": "logstash", + "state": "running", + "time": 1463295600000, + "username": "jgibson8p", + "percent_uptime": 0.48 + }, + { + "age": 36, + "cost": 23.41, + "country": "MN", + "price": 60, + "project": "beats", + "state": "done", + "time": 1472626800000, + "username": "jfernandez8q", + "percent_uptime": 0.26 + }, + { + "age": 36, + "cost": 23.26, + "country": "GH", + "price": 55, + "project": "beats", + "state": "done", + "time": 1469602800000, + "username": "swatkins8r", + "percent_uptime": 0.04 + }, + { + "age": 33, + "cost": 22.15, + "country": "CN", + "price": 52, + "project": "machine-learning", + "state": "running", + "time": 1472972400000, + "username": "kalvarez8s", + "percent_uptime": 0.29 + }, + { + "age": 69, + "cost": 21, + "country": "FR", + "price": 65, + "project": "x-pack", + "state": "start", + "time": 1470639600000, + "username": "jwarren8t", + "percent_uptime": 0.94 + }, + { + "age": 68, + "cost": 23.57, + "country": "MN", + "price": 51, + "project": "machine-learning", + "state": "start", + "time": 1466838000000, + "username": "mwallace8u", + "percent_uptime": 0.6 + }, + { + "age": 31, + "cost": 23.94, + "country": "US", + "price": 54, + "project": "elasticsearch", + "state": "start", + "time": 1475996400000, + "username": "jmarshall8v", + "percent_uptime": 0.54 + }, + { + "age": 73, + "cost": 24.4, + "country": "RU", + "price": 52, + "project": "elasticsearch", + "state": "start", + "time": 1462431600000, + "username": "aellis8w", + "percent_uptime": 0.72 + }, + { + "age": 25, + "cost": 22.34, + "country": "PH", + "price": 68, + "project": "opbeat", + "state": "running", + "time": 1468047600000, + "username": "clopez8x", + "percent_uptime": 0.5 + }, + { + "age": 35, + "cost": 21.65, + "country": "CA", + "price": 63, + "project": "logstash", + "state": "running", + "time": 1474268400000, + "username": "astewart8y", + "percent_uptime": 0.35 + }, + { + "age": 34, + "cost": 22.75, + "country": "PL", + "price": 71, + "project": "x-pack", + "state": "done", + "time": 1469516400000, + "username": "hlewis8z", + "percent_uptime": 0.05 + }, + { + "age": 56, + "cost": 22.22, + "country": "MN", + "price": 54, + "project": "logstash", + "state": "running", + "time": 1480057200000, + "username": "wwheeler90", + "percent_uptime": 0.36 + }, + { + "age": 52, + "cost": 22.04, + "country": "AR", + "price": 49, + "project": "elasticsearch", + "state": "running", + "time": 1490338800000, + "username": "aelliott91", + "percent_uptime": 0.23 + }, + { + "age": 61, + "cost": 21.27, + "country": "PH", + "price": 55, + "project": "machine-learning", + "state": "start", + "time": 1485241200000, + "username": "khunter92", + "percent_uptime": 0.35 + }, + { + "age": 23, + "cost": 24.3, + "country": "PL", + "price": 59, + "project": "kibana", + "state": "start", + "time": 1477983600000, + "username": "treed93", + "percent_uptime": 0.17 + }, + { + "age": 54, + "cost": 23.5, + "country": "UA", + "price": 60, + "project": "machine-learning", + "state": "start", + "time": 1471590000000, + "username": "jperez94", + "percent_uptime": 0.63 + }, + { + "age": 80, + "cost": 22.4, + "country": "CN", + "price": 57, + "project": "elasticsearch", + "state": "running", + "time": 1468825200000, + "username": "tfowler95", + "percent_uptime": 0.78 + }, + { + "age": 80, + "cost": 20.93, + "country": "VE", + "price": 49, + "project": "elasticsearch", + "state": "start", + "time": 1474614000000, + "username": "brichardson96", + "percent_uptime": 0.55 + }, + { + "age": 59, + "cost": 23.28, + "country": "PT", + "price": 51, + "project": "elasticsearch", + "state": "done", + "time": 1488956400000, + "username": "kthomas97", + "percent_uptime": 0.61 + }, + { + "age": 49, + "cost": 23.26, + "country": "CA", + "price": 54, + "project": "logstash", + "state": "done", + "time": 1487487600000, + "username": "smason98", + "percent_uptime": 0.57 + }, + { + "age": 75, + "cost": 21.54, + "country": "ID", + "price": 59, + "project": "machine-learning", + "state": "running", + "time": 1472886000000, + "username": "aphillips99", + "percent_uptime": 0.55 + }, + { + "age": 40, + "cost": 23.23, + "country": "ID", + "price": 54, + "project": "machine-learning", + "state": "done", + "time": 1488006000000, + "username": "jlawrence9a", + "percent_uptime": 0.48 + }, + { + "age": 58, + "cost": 22.96, + "country": "TZ", + "price": 56, + "project": "kibana", + "state": "done", + "time": 1463036400000, + "username": "rcunningham9b", + "percent_uptime": 0.19 + }, + { + "age": 61, + "cost": 22.6, + "country": "PL", + "price": 64, + "project": "machine-learning", + "state": "done", + "time": 1476169200000, + "username": "aaustin9c", + "percent_uptime": 0.21 + }, + { + "age": 68, + "cost": 22.62, + "country": "GT", + "price": 59, + "project": "machine-learning", + "state": "done", + "time": 1464159600000, + "username": "pthompson9d", + "percent_uptime": 0.99 + }, + { + "age": 59, + "cost": 23.35, + "country": "GR", + "price": 52, + "project": "elasticsearch", + "state": "done", + "time": 1490511600000, + "username": "lscott9e", + "percent_uptime": 0.71 + }, + { + "age": 40, + "cost": 24.08, + "country": "LA", + "price": 50, + "project": "machine-learning", + "state": "start", + "time": 1471935600000, + "username": "emartinez9f", + "percent_uptime": 0.28 + }, + { + "age": 42, + "cost": 22.75, + "country": "HR", + "price": 70, + "project": "logstash", + "state": "done", + "time": 1462431600000, + "username": "kbanks9g", + "percent_uptime": 0.34 + }, + { + "age": 36, + "cost": 21.85, + "country": "BR", + "price": 45, + "project": "beats", + "state": "running", + "time": 1483599600000, + "username": "njames9h", + "percent_uptime": 0.34 + }, + { + "age": 31, + "cost": 23.26, + "country": "MX", + "price": 51, + "project": "elasticsearch", + "state": "done", + "time": 1463468400000, + "username": "cjordan9i", + "percent_uptime": 0.3 + }, + { + "age": 74, + "cost": 22.49, + "country": "BR", + "price": 53, + "project": "opbeat", + "state": "running", + "time": 1472626800000, + "username": "thowell9j", + "percent_uptime": 0.19 + }, + { + "age": 71, + "cost": 23.16, + "country": "ID", + "price": 47, + "project": "beats", + "state": "done", + "time": 1465714800000, + "username": "aramirez9k", + "percent_uptime": 0.19 + }, + { + "age": 19, + "cost": 21.01, + "country": "VE", + "price": 63, + "project": "machine-learning", + "state": "start", + "time": 1489129200000, + "username": "cgreen9l", + "percent_uptime": 0.47 + }, + { + "age": 41, + "cost": 23.07, + "country": "FR", + "price": 56, + "project": "x-pack", + "state": "done", + "time": 1463209200000, + "username": "fgardner9m", + "percent_uptime": 0.19 + }, + { + "age": 70, + "cost": 21.69, + "country": "UA", + "price": 65, + "project": "logstash", + "state": "running", + "time": 1474614000000, + "username": "bbennett9n", + "percent_uptime": 0.85 + }, + { + "age": 27, + "cost": 21.84, + "country": "SR", + "price": 65, + "project": "x-pack", + "state": "running", + "time": 1464591600000, + "username": "nferguson9o", + "percent_uptime": 0.98 + }, + { + "age": 27, + "cost": 22.63, + "country": "MX", + "price": 53, + "project": "x-pack", + "state": "done", + "time": 1481958000000, + "username": "rpatterson9p", + "percent_uptime": 0.7 + }, + { + "age": 71, + "cost": 23.16, + "country": "CN", + "price": 54, + "project": "beats", + "state": "done", + "time": 1469084400000, + "username": "twright9q", + "percent_uptime": 0.34 + }, + { + "age": 70, + "cost": 23.34, + "country": "PL", + "price": 49, + "project": "logstash", + "state": "done", + "time": 1482649200000, + "username": "hhughes9r", + "percent_uptime": 0.85 + }, + { + "age": 60, + "cost": 22.06, + "country": "MX", + "price": 59, + "project": "opbeat", + "state": "running", + "time": 1460617200000, + "username": "rjenkins9s", + "percent_uptime": 0.44 + }, + { + "age": 31, + "cost": 23.14, + "country": "BR", + "price": 59, + "project": "elasticsearch", + "state": "done", + "time": 1480662000000, + "username": "areynolds9t", + "percent_uptime": 0.82 + }, + { + "age": 75, + "cost": 23.13, + "country": "RU", + "price": 50, + "project": "machine-learning", + "state": "done", + "time": 1473318000000, + "username": "agordon9u", + "percent_uptime": 0.53 + }, + { + "age": 43, + "cost": 23.58, + "country": "CN", + "price": 52, + "project": "beats", + "state": "start", + "time": 1480057200000, + "username": "bmorris9v", + "percent_uptime": 0.79 + }, + { + "age": 55, + "cost": 23.86, + "country": "CN", + "price": 57, + "project": "x-pack", + "state": "start", + "time": 1469602800000, + "username": "hriley9w", + "percent_uptime": 0.6 + }, + { + "age": 48, + "cost": 23.28, + "country": "PH", + "price": 55, + "project": "x-pack", + "state": "done", + "time": 1465369200000, + "username": "psmith9x", + "percent_uptime": 0.9 + }, + { + "age": 36, + "cost": 23.87, + "country": "CA", + "price": 70, + "project": "beats", + "state": "start", + "time": 1466751600000, + "username": "dwilson9y", + "percent_uptime": 0.75 + }, + { + "age": 46, + "cost": 22.45, + "country": "RU", + "price": 53, + "project": "opbeat", + "state": "running", + "time": 1482822000000, + "username": "rsanders9z", + "percent_uptime": 0.51 + }, + { + "age": 61, + "cost": 23.43, + "country": "CN", + "price": 66, + "project": "machine-learning", + "state": "done", + "time": 1480143600000, + "username": "hharta0", + "percent_uptime": 0.74 + }, + { + "age": 51, + "cost": 23.73, + "country": "US", + "price": 56, + "project": "kibana", + "state": "start", + "time": 1468738800000, + "username": "jsullivana1", + "percent_uptime": 0.48 + }, + { + "age": 69, + "cost": 22.33, + "country": "ES", + "price": 55, + "project": "x-pack", + "state": "running", + "time": 1462258800000, + "username": "jrobertsona2", + "percent_uptime": 0.08 + }, + { + "age": 69, + "cost": 22.83, + "country": "CN", + "price": 57, + "project": "x-pack", + "state": "done", + "time": 1485759600000, + "username": "jkennedya3", + "percent_uptime": 0.65 + }, + { + "age": 32, + "cost": 21.46, + "country": "AR", + "price": 59, + "project": "opbeat", + "state": "start", + "time": 1466406000000, + "username": "crobertsa4", + "percent_uptime": 0.59 + }, + { + "age": 32, + "cost": 21.75, + "country": "NA", + "price": 49, + "project": "opbeat", + "state": "running", + "time": 1483945200000, + "username": "jcolea5", + "percent_uptime": 0.87 + }, + { + "age": 74, + "cost": 22.56, + "country": "PL", + "price": 55, + "project": "opbeat", + "state": "done", + "time": 1468825200000, + "username": "llonga6", + "percent_uptime": 0.39 + }, + { + "age": 70, + "cost": 23.63, + "country": "ID", + "price": 64, + "project": "logstash", + "state": "start", + "time": 1460530800000, + "username": "sgraya7", + "percent_uptime": 0 + }, + { + "age": 48, + "cost": 22.04, + "country": "AL", + "price": 49, + "project": "x-pack", + "state": "running", + "time": 1468306800000, + "username": "jgeorgea8", + "percent_uptime": 0.02 + }, + { + "age": 61, + "cost": 24.58, + "country": "SS", + "price": 59, + "project": "machine-learning", + "state": "running", + "time": 1486364400000, + "username": "ablacka9", + "percent_uptime": 0.55 + }, + { + "age": 27, + "cost": 23.69, + "country": "RU", + "price": 54, + "project": "x-pack", + "state": "start", + "time": 1461999600000, + "username": "jrileyaa", + "percent_uptime": 0.44 + }, + { + "age": 35, + "cost": 24.23, + "country": "CN", + "price": 62, + "project": "logstash", + "state": "start", + "time": 1466924400000, + "username": "jwalkerab", + "percent_uptime": 0.24 + }, + { + "age": 26, + "cost": 23.34, + "country": "PL", + "price": 58, + "project": "machine-learning", + "state": "done", + "time": 1486710000000, + "username": "vrussellac", + "percent_uptime": 0.7 + }, + { + "age": 27, + "cost": 22.1, + "country": "ID", + "price": 56, + "project": "x-pack", + "state": "running", + "time": 1478761200000, + "username": "acooperad", + "percent_uptime": 0.54 + }, + { + "age": 29, + "cost": 24.27, + "country": "MD", + "price": 55, + "project": "beats", + "state": "start", + "time": 1471244400000, + "username": "rhansonae", + "percent_uptime": 0.04 + }, + { + "age": 55, + "cost": 23.33, + "country": "SE", + "price": 60, + "project": "x-pack", + "state": "done", + "time": 1461826800000, + "username": "wmooreaf", + "percent_uptime": 0.64 + }, + { + "age": 33, + "cost": 23.42, + "country": "CO", + "price": 54, + "project": "machine-learning", + "state": "done", + "time": 1463986800000, + "username": "hmccoyag", + "percent_uptime": 0.28 + }, + { + "age": 75, + "cost": 24.45, + "country": "HR", + "price": 40, + "project": "machine-learning", + "state": "start", + "time": 1491462000000, + "username": "cbarnesah", + "percent_uptime": 0.22 + }, + { + "age": 60, + "cost": 22.59, + "country": "PT", + "price": 58, + "project": "opbeat", + "state": "done", + "time": 1469430000000, + "username": "jharrisai", + "percent_uptime": 0.9 + }, + { + "age": 58, + "cost": 21.94, + "country": "CN", + "price": 64, + "project": "kibana", + "state": "running", + "time": 1474441200000, + "username": "swardaj", + "percent_uptime": 0.03 + }, + { + "age": 51, + "cost": 20.57, + "country": "CN", + "price": 65, + "project": "kibana", + "state": "start", + "time": 1482217200000, + "username": "jhuntak", + "percent_uptime": 0.65 + }, + { + "age": 36, + "cost": 21.7, + "country": "CN", + "price": 52, + "project": "beats", + "state": "running", + "time": 1461481200000, + "username": "gmartinezal", + "percent_uptime": 0.81 + }, + { + "age": 19, + "cost": 22.56, + "country": "PA", + "price": 46, + "project": "machine-learning", + "state": "done", + "time": 1484463600000, + "username": "sturneram", + "percent_uptime": 0.72 + }, + { + "age": 40, + "cost": 23.12, + "country": "RU", + "price": 65, + "project": "machine-learning", + "state": "done", + "time": 1486537200000, + "username": "jortizan", + "percent_uptime": 0.39 + }, + { + "age": 73, + "cost": 22.32, + "country": "SI", + "price": 49, + "project": "elasticsearch", + "state": "running", + "time": 1467356400000, + "username": "gwatsonao", + "percent_uptime": 0.24 + }, + { + "age": 38, + "cost": 23.42, + "country": "UA", + "price": 56, + "project": "elasticsearch", + "state": "done", + "time": 1482476400000, + "username": "ckingap", + "percent_uptime": 0.99 + }, + { + "age": 32, + "cost": 23.07, + "country": "NO", + "price": 66, + "project": "opbeat", + "state": "done", + "time": 1488956400000, + "username": "nfreemanaq", + "percent_uptime": 0.71 + }, + { + "age": 21, + "cost": 21.13, + "country": "UY", + "price": 66, + "project": "logstash", + "state": "start", + "time": 1473058800000, + "username": "vandrewsar", + "percent_uptime": 0.98 + }, + { + "age": 46, + "cost": 24.48, + "country": "PH", + "price": 68, + "project": "opbeat", + "state": "start", + "time": 1472540400000, + "username": "jgonzalezas", + "percent_uptime": 0.75 + }, + { + "age": 72, + "cost": 23.11, + "country": "CI", + "price": 61, + "project": "kibana", + "state": "done", + "time": 1481180400000, + "username": "vkingat", + "percent_uptime": 0.97 + }, + { + "age": 75, + "cost": 22.27, + "country": "GH", + "price": 43, + "project": "machine-learning", + "state": "running", + "time": 1468047600000, + "username": "rdeanau", + "percent_uptime": 0.1 + }, + { + "age": 29, + "cost": 22.41, + "country": "ID", + "price": 63, + "project": "beats", + "state": "running", + "time": 1481526000000, + "username": "hfosterav", + "percent_uptime": 0.19 + }, + { + "age": 75, + "cost": 21.44, + "country": "SE", + "price": 63, + "project": "machine-learning", + "state": "start", + "time": 1475564400000, + "username": "fgarciaaw", + "percent_uptime": 0.95 + }, + { + "age": 44, + "cost": 23.87, + "country": "PH", + "price": 62, + "project": "kibana", + "state": "start", + "time": 1464937200000, + "username": "pwhiteax", + "percent_uptime": 0.29 + }, + { + "age": 53, + "cost": 22.79, + "country": "CN", + "price": 47, + "project": "opbeat", + "state": "done", + "time": 1491116400000, + "username": "chuntay", + "percent_uptime": 0.14 + }, + { + "age": 47, + "cost": 22.86, + "country": "CN", + "price": 60, + "project": "machine-learning", + "state": "done", + "time": 1478588400000, + "username": "dfranklinaz", + "percent_uptime": 0.16 + }, + { + "age": 71, + "cost": 24, + "country": "CZ", + "price": 64, + "project": "beats", + "state": "start", + "time": 1480230000000, + "username": "djacksonb0", + "percent_uptime": 0.35 + }, + { + "age": 44, + "cost": 21.93, + "country": "RU", + "price": 67, + "project": "kibana", + "state": "running", + "time": 1460358000000, + "username": "sbutlerb1", + "percent_uptime": 0.21 + }, + { + "age": 32, + "cost": 23.24, + "country": "GR", + "price": 41, + "project": "opbeat", + "state": "done", + "time": 1460962800000, + "username": "nporterb2", + "percent_uptime": 0.16 + }, + { + "age": 55, + "cost": 22.31, + "country": "RU", + "price": 65, + "project": "x-pack", + "state": "running", + "time": 1483167600000, + "username": "sburnsb3", + "percent_uptime": 0.08 + }, + { + "age": 59, + "cost": 23.16, + "country": "JP", + "price": 56, + "project": "elasticsearch", + "state": "done", + "time": 1468911600000, + "username": "jhendersonb4", + "percent_uptime": 0.62 + }, + { + "age": 73, + "cost": 22.79, + "country": "FR", + "price": 63, + "project": "elasticsearch", + "state": "done", + "time": 1479020400000, + "username": "dgonzalesb5", + "percent_uptime": 0.99 + }, + { + "age": 41, + "cost": 24.15, + "country": "ID", + "price": 64, + "project": "x-pack", + "state": "start", + "time": 1478674800000, + "username": "cbarnesb6", + "percent_uptime": 0.26 + }, + { + "age": 25, + "cost": 20.11, + "country": "ID", + "price": 58, + "project": "opbeat", + "state": "done", + "time": 1468652400000, + "username": "mcoxb7", + "percent_uptime": 0.19 + }, + { + "age": 74, + "cost": 24.27, + "country": "CN", + "price": 52, + "project": "opbeat", + "state": "start", + "time": 1478329200000, + "username": "rbowmanb8", + "percent_uptime": 0.4 + }, + { + "age": 43, + "cost": 23.9, + "country": "PE", + "price": 51, + "project": "beats", + "state": "start", + "time": 1472972400000, + "username": "dkingb9", + "percent_uptime": 0.85 + }, + { + "age": 33, + "cost": 21.86, + "country": "CN", + "price": 56, + "project": "machine-learning", + "state": "running", + "time": 1470898800000, + "username": "dwilliamsonba", + "percent_uptime": 0.48 + }, + { + "age": 32, + "cost": 21.96, + "country": "BR", + "price": 51, + "project": "opbeat", + "state": "running", + "time": 1479452400000, + "username": "jmorrisonbb", + "percent_uptime": 0.44 + }, + { + "age": 39, + "cost": 22.6, + "country": "PE", + "price": 58, + "project": "opbeat", + "state": "done", + "time": 1467529200000, + "username": "dcastillobc", + "percent_uptime": 0.46 + }, + { + "age": 30, + "cost": 22.08, + "country": "CN", + "price": 47, + "project": "kibana", + "state": "running", + "time": 1482822000000, + "username": "rgriffinbd", + "percent_uptime": 0.94 + }, + { + "age": 79, + "cost": 21.6, + "country": "VN", + "price": 49, + "project": "kibana", + "state": "running", + "time": 1479193200000, + "username": "ascottbe", + "percent_uptime": 0.33 + }, + { + "age": 71, + "cost": 21.06, + "country": "TH", + "price": 57, + "project": "beats", + "state": "start", + "time": 1475132400000, + "username": "dlynchbf", + "percent_uptime": 0.66 + }, + { + "age": 49, + "cost": 22.18, + "country": "ID", + "price": 54, + "project": "logstash", + "state": "running", + "time": 1471158000000, + "username": "epetersbg", + "percent_uptime": 0.55 + }, + { + "age": 53, + "cost": 22.57, + "country": "LU", + "price": 57, + "project": "opbeat", + "state": "done", + "time": 1477897200000, + "username": "agonzalezbh", + "percent_uptime": 0.24 + }, + { + "age": 23, + "cost": 24.78, + "country": "CN", + "price": 64, + "project": "kibana", + "state": "running", + "time": 1463814000000, + "username": "kcookbi", + "percent_uptime": 0.96 + }, + { + "age": 74, + "cost": 21.34, + "country": "WS", + "price": 47, + "project": "opbeat", + "state": "start", + "time": 1491548400000, + "username": "rjacksonbj", + "percent_uptime": 0.13 + }, + { + "age": 35, + "cost": 23.38, + "country": "RU", + "price": 50, + "project": "logstash", + "state": "done", + "time": 1475391600000, + "username": "cwellsbk", + "percent_uptime": 0.86 + }, + { + "age": 22, + "cost": 25.07, + "country": "PH", + "price": 59, + "project": "beats", + "state": "running", + "time": 1480748400000, + "username": "rgarzabl", + "percent_uptime": 0.42 + }, + { + "age": 37, + "cost": 23.48, + "country": "DK", + "price": 53, + "project": "kibana", + "state": "done", + "time": 1462431600000, + "username": "rramirezbm", + "percent_uptime": 0.8 + }, + { + "age": 66, + "cost": 24.11, + "country": "ID", + "price": 60, + "project": "elasticsearch", + "state": "start", + "time": 1489388400000, + "username": "jperezbn", + "percent_uptime": 0.56 + }, + { + "age": 33, + "cost": 22.4, + "country": "PL", + "price": 54, + "project": "machine-learning", + "state": "running", + "time": 1468998000000, + "username": "kricebo", + "percent_uptime": 0.48 + }, + { + "age": 23, + "cost": 24.47, + "country": "ID", + "price": 73, + "project": "kibana", + "state": "start", + "time": 1487833200000, + "username": "smoorebp", + "percent_uptime": 0.72 + }, + { + "age": 60, + "cost": 25.35, + "country": "PL", + "price": 57, + "project": "opbeat", + "state": "running", + "time": 1478242800000, + "username": "pwhitebq", + "percent_uptime": 0.77 + }, + { + "age": 75, + "cost": 22.58, + "country": "CN", + "price": 42, + "project": "machine-learning", + "state": "done", + "time": 1483340400000, + "username": "tleebr", + "percent_uptime": 0.1 + }, + { + "age": 18, + "cost": 23.18, + "country": "UG", + "price": 53, + "project": "opbeat", + "state": "done", + "time": 1467356400000, + "username": "bfrazierbs", + "percent_uptime": 0.71 + }, + { + "age": 57, + "cost": 23.39, + "country": "RU", + "price": 51, + "project": "beats", + "state": "done", + "time": 1482217200000, + "username": "salvarezbt", + "percent_uptime": 0.75 + }, + { + "age": 23, + "cost": 23.31, + "country": "CN", + "price": 45, + "project": "kibana", + "state": "done", + "time": 1490770800000, + "username": "bgonzalezbu", + "percent_uptime": 0.32 + }, + { + "age": 65, + "cost": 22.43, + "country": "CZ", + "price": 52, + "project": "kibana", + "state": "running", + "time": 1479711600000, + "username": "kdavisbv", + "percent_uptime": 0.83 + }, + { + "age": 31, + "cost": 23.73, + "country": "NI", + "price": 51, + "project": "elasticsearch", + "state": "start", + "time": 1485241200000, + "username": "jburtonbw", + "percent_uptime": 0.27 + }, + { + "age": 50, + "cost": 22.05, + "country": "KM", + "price": 57, + "project": "beats", + "state": "running", + "time": 1482476400000, + "username": "dgutierrezbx", + "percent_uptime": 0.66 + }, + { + "age": 47, + "cost": 22.76, + "country": "BR", + "price": 39, + "project": "machine-learning", + "state": "done", + "time": 1461567600000, + "username": "akelleyby", + "percent_uptime": 0.23 + }, + { + "age": 31, + "cost": 22.57, + "country": "DK", + "price": 48, + "project": "elasticsearch", + "state": "done", + "time": 1488438000000, + "username": "grobertsbz", + "percent_uptime": 0.43 + }, + { + "age": 21, + "cost": 23.62, + "country": "CN", + "price": 65, + "project": "logstash", + "state": "start", + "time": 1487142000000, + "username": "aweaverc0", + "percent_uptime": 0.41 + }, + { + "age": 50, + "cost": 23.85, + "country": "SE", + "price": 51, + "project": "beats", + "state": "start", + "time": 1491202800000, + "username": "charrisonc1", + "percent_uptime": 0.81 + }, + { + "age": 38, + "cost": 23.17, + "country": "PL", + "price": 52, + "project": "elasticsearch", + "state": "done", + "time": 1461826800000, + "username": "jlewisc2", + "percent_uptime": 0.23 + }, + { + "age": 47, + "cost": 22.21, + "country": "JP", + "price": 47, + "project": "machine-learning", + "state": "running", + "time": 1487487600000, + "username": "schavezc3", + "percent_uptime": 0.9 + }, + { + "age": 42, + "cost": 22.45, + "country": "BR", + "price": 56, + "project": "logstash", + "state": "running", + "time": 1462518000000, + "username": "acoxc4", + "percent_uptime": 0.36 + }, + { + "age": 52, + "cost": 21.66, + "country": "NG", + "price": 58, + "project": "elasticsearch", + "state": "running", + "time": 1470380400000, + "username": "jsanchezc5", + "percent_uptime": 0.51 + }, + { + "age": 79, + "cost": 23.36, + "country": "RU", + "price": 59, + "project": "kibana", + "state": "done", + "time": 1469343600000, + "username": "gpricec6", + "percent_uptime": 0.37 + }, + { + "age": 60, + "cost": 22.5, + "country": "CN", + "price": 51, + "project": "opbeat", + "state": "done", + "time": 1466492400000, + "username": "tgarrettc7", + "percent_uptime": 0.85 + }, + { + "age": 30, + "cost": 22.33, + "country": "RU", + "price": 53, + "project": "kibana", + "state": "running", + "time": 1464073200000, + "username": "llawrencec8", + "percent_uptime": 0.42 + }, + { + "age": 60, + "cost": 22.6, + "country": "RU", + "price": 47, + "project": "opbeat", + "state": "done", + "time": 1472540400000, + "username": "mgordonc9", + "percent_uptime": 0.37 + }, + { + "age": 36, + "cost": 23.62, + "country": "PL", + "price": 65, + "project": "beats", + "state": "start", + "time": 1486710000000, + "username": "jmendozaca", + "percent_uptime": 0.9 + }, + { + "age": 69, + "cost": 23.58, + "country": "CN", + "price": 58, + "project": "x-pack", + "state": "start", + "time": 1490857200000, + "username": "dsnydercb", + "percent_uptime": 0.97 + }, + { + "age": 20, + "cost": 22.55, + "country": "RU", + "price": 66, + "project": "x-pack", + "state": "done", + "time": 1473663600000, + "username": "pclarkcc", + "percent_uptime": 0.46 + }, + { + "age": 69, + "cost": 23.92, + "country": "PH", + "price": 60, + "project": "x-pack", + "state": "start", + "time": 1483426800000, + "username": "bkennedycd", + "percent_uptime": 0.22 + }, + { + "age": 73, + "cost": 23.46, + "country": "PH", + "price": 59, + "project": "elasticsearch", + "state": "done", + "time": 1476255600000, + "username": "gwalkerce", + "percent_uptime": 0.08 + }, + { + "age": 28, + "cost": 25.75, + "country": "ID", + "price": 50, + "project": "logstash", + "state": "done", + "time": 1475737200000, + "username": "bruizcf", + "percent_uptime": 0.2 + }, + { + "age": 21, + "cost": 22.5, + "country": "CN", + "price": 44, + "project": "logstash", + "state": "done", + "time": 1465196400000, + "username": "aflorescg", + "percent_uptime": 0.78 + }, + { + "age": 70, + "cost": 20.85, + "country": "MX", + "price": 47, + "project": "logstash", + "state": "start", + "time": 1472108400000, + "username": "eberrych", + "percent_uptime": 0.65 + }, + { + "age": 79, + "cost": 22.12, + "country": "SO", + "price": 57, + "project": "kibana", + "state": "running", + "time": 1486364400000, + "username": "ahudsonci", + "percent_uptime": 0.78 + }, + { + "age": 38, + "cost": 23.02, + "country": "ID", + "price": 50, + "project": "elasticsearch", + "state": "done", + "time": 1487660400000, + "username": "khawkinscj", + "percent_uptime": 0.6 + }, + { + "age": 38, + "cost": 23.25, + "country": "RU", + "price": 47, + "project": "elasticsearch", + "state": "done", + "time": 1486969200000, + "username": "mwagnerck", + "percent_uptime": 0.95 + }, + { + "age": 64, + "cost": 22.15, + "country": "CN", + "price": 57, + "project": "beats", + "state": "running", + "time": 1481353200000, + "username": "kbradleycl", + "percent_uptime": 0.87 + }, + { + "age": 36, + "cost": 24.74, + "country": "CN", + "price": 52, + "project": "beats", + "state": "running", + "time": 1468134000000, + "username": "ejenkinscm", + "percent_uptime": 0.59 + }, + { + "age": 19, + "cost": 22.69, + "country": "ZM", + "price": 59, + "project": "machine-learning", + "state": "done", + "time": 1476601200000, + "username": "cruizcn", + "percent_uptime": 0.32 + }, + { + "age": 53, + "cost": 25.07, + "country": "BR", + "price": 43, + "project": "opbeat", + "state": "running", + "time": 1487487600000, + "username": "ljamesco", + "percent_uptime": 0.43 + }, + { + "age": 26, + "cost": 23.43, + "country": "AE", + "price": 57, + "project": "machine-learning", + "state": "done", + "time": 1470121200000, + "username": "kcarrollcp", + "percent_uptime": 0.06 + }, + { + "age": 44, + "cost": 21.62, + "country": "US", + "price": 69, + "project": "kibana", + "state": "running", + "time": 1470034800000, + "username": "mbryantcq", + "percent_uptime": 0.52 + }, + { + "age": 40, + "cost": 24.76, + "country": "DE", + "price": 40, + "project": "machine-learning", + "state": "running", + "time": 1490770800000, + "username": "jcrawfordcr", + "percent_uptime": 0.67 + }, + { + "age": 23, + "cost": 24.06, + "country": "JP", + "price": 67, + "project": "kibana", + "state": "start", + "time": 1472281200000, + "username": "bsimscs", + "percent_uptime": 0.85 + }, + { + "age": 23, + "cost": 22.84, + "country": "ID", + "price": 50, + "project": "kibana", + "state": "done", + "time": 1474268400000, + "username": "bphillipsct", + "percent_uptime": 0.8 + }, + { + "age": 79, + "cost": 22.51, + "country": "ID", + "price": 71, + "project": "kibana", + "state": "done", + "time": 1482562800000, + "username": "jortizcu", + "percent_uptime": 0.41 + }, + { + "age": 26, + "cost": 22.11, + "country": "ID", + "price": 57, + "project": "machine-learning", + "state": "running", + "time": 1471503600000, + "username": "dmartinezcv", + "percent_uptime": 0.95 + }, + { + "age": 61, + "cost": 21.3, + "country": "BR", + "price": 61, + "project": "machine-learning", + "state": "start", + "time": 1465455600000, + "username": "mgordoncw", + "percent_uptime": 0.2 + }, + { + "age": 68, + "cost": 23.92, + "country": "CN", + "price": 49, + "project": "machine-learning", + "state": "start", + "time": 1488092400000, + "username": "amasoncx", + "percent_uptime": 0.58 + }, + { + "age": 26, + "cost": 24.56, + "country": "UG", + "price": 66, + "project": "machine-learning", + "state": "running", + "time": 1462086000000, + "username": "whowellcy", + "percent_uptime": 0.3 + }, + { + "age": 67, + "cost": 24.98, + "country": "MY", + "price": 45, + "project": "opbeat", + "state": "running", + "time": 1479452400000, + "username": "bhuntcz", + "percent_uptime": 0.43 + }, + { + "age": 49, + "cost": 23.13, + "country": "ID", + "price": 60, + "project": "logstash", + "state": "done", + "time": 1460358000000, + "username": "agardnerd0", + "percent_uptime": 0.05 + }, + { + "age": 18, + "cost": 22.52, + "country": "ET", + "price": 48, + "project": "opbeat", + "state": "done", + "time": 1474700400000, + "username": "nduncand1", + "percent_uptime": 0.18 + }, + { + "age": 35, + "cost": 23.12, + "country": "MY", + "price": 53, + "project": "logstash", + "state": "done", + "time": 1491289200000, + "username": "mhernandezd2", + "percent_uptime": 0.14 + }, + { + "age": 54, + "cost": 23.35, + "country": "CN", + "price": 48, + "project": "machine-learning", + "state": "done", + "time": 1461394800000, + "username": "rcoled3", + "percent_uptime": 0.67 + }, + { + "age": 23, + "cost": 23.54, + "country": "NO", + "price": 48, + "project": "kibana", + "state": "start", + "time": 1474700400000, + "username": "jmarshalld4", + "percent_uptime": 0.52 + }, + { + "age": 66, + "cost": 22.95, + "country": "JM", + "price": 75, + "project": "elasticsearch", + "state": "done", + "time": 1482044400000, + "username": "phuntd5", + "percent_uptime": 0.52 + }, + { + "age": 29, + "cost": 21.87, + "country": "PH", + "price": 59, + "project": "beats", + "state": "running", + "time": 1475737200000, + "username": "adixond6", + "percent_uptime": 0.35 + }, + { + "age": 48, + "cost": 23.39, + "country": "CN", + "price": 58, + "project": "x-pack", + "state": "done", + "time": 1489734000000, + "username": "bgutierrezd7", + "percent_uptime": 0.33 + }, + { + "age": 65, + "cost": 21.78, + "country": "UA", + "price": 57, + "project": "kibana", + "state": "running", + "time": 1463382000000, + "username": "hnelsond8", + "percent_uptime": 0.5 + }, + { + "age": 30, + "cost": 22.99, + "country": "GY", + "price": 51, + "project": "kibana", + "state": "done", + "time": 1460271600000, + "username": "acollinsd9", + "percent_uptime": 0.77 + }, + { + "age": 33, + "cost": 23.3, + "country": "VN", + "price": 57, + "project": "machine-learning", + "state": "done", + "time": 1490770800000, + "username": "tmillerda", + "percent_uptime": 0.78 + }, + { + "age": 26, + "cost": 22.67, + "country": "JP", + "price": 44, + "project": "machine-learning", + "state": "done", + "time": 1480402800000, + "username": "tmasondb", + "percent_uptime": 0.31 + }, + { + "age": 69, + "cost": 24.17, + "country": "PL", + "price": 72, + "project": "x-pack", + "state": "start", + "time": 1477551600000, + "username": "baustindc", + "percent_uptime": 0.21 + }, + { + "age": 53, + "cost": 22.38, + "country": "TH", + "price": 50, + "project": "opbeat", + "state": "running", + "time": 1489129200000, + "username": "dgriffindd", + "percent_uptime": 0.79 + }, + { + "age": 61, + "cost": 22.69, + "country": "AL", + "price": 48, + "project": "machine-learning", + "state": "done", + "time": 1467874800000, + "username": "dryande", + "percent_uptime": 0.02 + }, + { + "age": 57, + "cost": 23.94, + "country": "CN", + "price": 46, + "project": "beats", + "state": "start", + "time": 1460876400000, + "username": "kmurraydf", + "percent_uptime": 0.85 + }, + { + "age": 53, + "cost": 22.52, + "country": "ID", + "price": 42, + "project": "opbeat", + "state": "done", + "time": 1480057200000, + "username": "hdiazdg", + "percent_uptime": 0.15 + }, + { + "age": 64, + "cost": 22.93, + "country": "LT", + "price": 57, + "project": "beats", + "state": "done", + "time": 1483081200000, + "username": "anicholsdh", + "percent_uptime": 0.3 + }, + { + "age": 73, + "cost": 21.81, + "country": "US", + "price": 49, + "project": "elasticsearch", + "state": "running", + "time": 1477724400000, + "username": "wgreendi", + "percent_uptime": 0.23 + }, + { + "age": 47, + "cost": 24.86, + "country": "BR", + "price": 45, + "project": "machine-learning", + "state": "running", + "time": 1483513200000, + "username": "anicholsdj", + "percent_uptime": 0.01 + }, + { + "age": 57, + "cost": 21.42, + "country": "MN", + "price": 69, + "project": "beats", + "state": "start", + "time": 1483340400000, + "username": "fstevensdk", + "percent_uptime": 0.02 + }, + { + "age": 78, + "cost": 22.55, + "country": "CN", + "price": 58, + "project": "beats", + "state": "done", + "time": 1472454000000, + "username": "wfrazierdl", + "percent_uptime": 0.41 + }, + { + "age": 43, + "cost": 22.22, + "country": "ID", + "price": 57, + "project": "beats", + "state": "running", + "time": 1475305200000, + "username": "hbelldm", + "percent_uptime": 0.66 + }, + { + "age": 72, + "cost": 22.9, + "country": "CN", + "price": 47, + "project": "kibana", + "state": "done", + "time": 1480834800000, + "username": "edixondn", + "percent_uptime": 0.5 + }, + { + "age": 40, + "cost": 21.5, + "country": "AR", + "price": 57, + "project": "machine-learning", + "state": "running", + "time": 1480662000000, + "username": "kraydo", + "percent_uptime": 0.98 + }, + { + "age": 36, + "cost": 23.45, + "country": "RU", + "price": 43, + "project": "beats", + "state": "done", + "time": 1485241200000, + "username": "nmurphydp", + "percent_uptime": 0.14 + }, + { + "age": 56, + "cost": 23.03, + "country": "KR", + "price": 62, + "project": "logstash", + "state": "done", + "time": 1483426800000, + "username": "ssimsdq", + "percent_uptime": 0.32 + }, + { + "age": 18, + "cost": 22.57, + "country": "ID", + "price": 52, + "project": "opbeat", + "state": "done", + "time": 1485414000000, + "username": "brusselldr", + "percent_uptime": 0.02 + }, + { + "age": 41, + "cost": 21.47, + "country": "AL", + "price": 56, + "project": "x-pack", + "state": "start", + "time": 1477897200000, + "username": "mmillsds", + "percent_uptime": 0.78 + }, + { + "age": 46, + "cost": 21.8, + "country": "KE", + "price": 74, + "project": "opbeat", + "state": "running", + "time": 1488092400000, + "username": "jdixondt", + "percent_uptime": 0.68 + }, + { + "age": 66, + "cost": 24.32, + "country": "TH", + "price": 49, + "project": "elasticsearch", + "state": "start", + "time": 1479452400000, + "username": "bmurphydu", + "percent_uptime": 0.68 + }, + { + "age": 44, + "cost": 24.61, + "country": "NZ", + "price": 61, + "project": "kibana", + "state": "running", + "time": 1476946800000, + "username": "inicholsdv", + "percent_uptime": 0.6 + }, + { + "age": 64, + "cost": 21.53, + "country": "NL", + "price": 50, + "project": "beats", + "state": "running", + "time": 1464246000000, + "username": "hstanleydw", + "percent_uptime": 0.56 + }, + { + "age": 79, + "cost": 21.6, + "country": "CN", + "price": 63, + "project": "kibana", + "state": "running", + "time": 1479538800000, + "username": "nwatkinsdx", + "percent_uptime": 0.98 + }, + { + "age": 78, + "cost": 23.3, + "country": "PL", + "price": 61, + "project": "beats", + "state": "done", + "time": 1478415600000, + "username": "dmccoydy", + "percent_uptime": 0.09 + }, + { + "age": 33, + "cost": 24.21, + "country": "PA", + "price": 52, + "project": "machine-learning", + "state": "start", + "time": 1470812400000, + "username": "dchavezdz", + "percent_uptime": 0.41 + }, + { + "age": 76, + "cost": 23.57, + "country": "PE", + "price": 65, + "project": "x-pack", + "state": "start", + "time": 1467529200000, + "username": "jphillipse0", + "percent_uptime": 0.98 + }, + { + "age": 41, + "cost": 25.17, + "country": "ID", + "price": 55, + "project": "x-pack", + "state": "running", + "time": 1475046000000, + "username": "ppalmere1", + "percent_uptime": 0.98 + }, + { + "age": 56, + "cost": 22.74, + "country": "ID", + "price": 56, + "project": "logstash", + "state": "done", + "time": 1482476400000, + "username": "knelsone2", + "percent_uptime": 0.53 + }, + { + "age": 78, + "cost": 21.78, + "country": "GR", + "price": 57, + "project": "beats", + "state": "running", + "time": 1479020400000, + "username": "gclarke3", + "percent_uptime": 0.11 + }, + { + "age": 65, + "cost": 21.68, + "country": "VE", + "price": 39, + "project": "kibana", + "state": "running", + "time": 1474182000000, + "username": "rstewarte4", + "percent_uptime": 0.92 + }, + { + "age": 54, + "cost": 23.5, + "country": "CN", + "price": 65, + "project": "machine-learning", + "state": "start", + "time": 1467529200000, + "username": "vramose5", + "percent_uptime": 0.12 + }, + { + "age": 69, + "cost": 23.54, + "country": "CN", + "price": 52, + "project": "x-pack", + "state": "start", + "time": 1460617200000, + "username": "kkennedye6", + "percent_uptime": 1 + }, + { + "age": 64, + "cost": 24.08, + "country": "CN", + "price": 54, + "project": "beats", + "state": "start", + "time": 1463036400000, + "username": "sharveye7", + "percent_uptime": 0.28 + }, + { + "age": 44, + "cost": 24.9, + "country": "NO", + "price": 61, + "project": "kibana", + "state": "running", + "time": 1476514800000, + "username": "jandrewse8", + "percent_uptime": 0.95 + }, + { + "age": 72, + "cost": 24.49, + "country": "HN", + "price": 53, + "project": "kibana", + "state": "start", + "time": 1482130800000, + "username": "gwashingtone9", + "percent_uptime": 0.05 + }, + { + "age": 25, + "cost": 23.14, + "country": "CZ", + "price": 55, + "project": "opbeat", + "state": "done", + "time": 1479193200000, + "username": "tgrahamea", + "percent_uptime": 0.86 + }, + { + "age": 65, + "cost": 23.11, + "country": "GR", + "price": 53, + "project": "kibana", + "state": "done", + "time": 1464332400000, + "username": "awatsoneb", + "percent_uptime": 0.01 + }, + { + "age": 53, + "cost": 21.38, + "country": "ID", + "price": 46, + "project": "opbeat", + "state": "start", + "time": 1472540400000, + "username": "cnicholsec", + "percent_uptime": 0.35 + }, + { + "age": 74, + "cost": 24.07, + "country": "CN", + "price": 60, + "project": "opbeat", + "state": "start", + "time": 1473318000000, + "username": "dhamiltoned", + "percent_uptime": 0.73 + }, + { + "age": 31, + "cost": 22.77, + "country": "ID", + "price": 60, + "project": "elasticsearch", + "state": "done", + "time": 1489820400000, + "username": "pjordanee", + "percent_uptime": 0.48 + }, + { + "age": 32, + "cost": 22.87, + "country": "FR", + "price": 58, + "project": "opbeat", + "state": "done", + "time": 1464159600000, + "username": "rclarkef", + "percent_uptime": 0.81 + }, + { + "age": 63, + "cost": 24.53, + "country": "LI", + "price": 62, + "project": "logstash", + "state": "running", + "time": 1491462000000, + "username": "mgonzaleseg", + "percent_uptime": 0.34 + }, + { + "age": 73, + "cost": 21.39, + "country": "ID", + "price": 57, + "project": "elasticsearch", + "state": "start", + "time": 1473145200000, + "username": "tsnydereh", + "percent_uptime": 0.02 + }, + { + "age": 24, + "cost": 23.36, + "country": "PH", + "price": 54, + "project": "elasticsearch", + "state": "done", + "time": 1475564400000, + "username": "bedwardsei", + "percent_uptime": 0.52 + }, + { + "age": 33, + "cost": 22.73, + "country": "CN", + "price": 53, + "project": "machine-learning", + "state": "done", + "time": 1460358000000, + "username": "preyesej", + "percent_uptime": 0.39 + }, + { + "age": 22, + "cost": 22.35, + "country": "AR", + "price": 44, + "project": "beats", + "state": "running", + "time": 1472713200000, + "username": "aclarkek", + "percent_uptime": 0.77 + }, + { + "age": 27, + "cost": 22.26, + "country": "GH", + "price": 53, + "project": "x-pack", + "state": "running", + "time": 1487314800000, + "username": "wgeorgeel", + "percent_uptime": 0.34 + }, + { + "age": 25, + "cost": 23.06, + "country": "AZ", + "price": 53, + "project": "opbeat", + "state": "done", + "time": 1484204400000, + "username": "telliottem", + "percent_uptime": 0.21 + }, + { + "age": 57, + "cost": 24.79, + "country": "RU", + "price": 49, + "project": "beats", + "state": "running", + "time": 1487314800000, + "username": "lwooden", + "percent_uptime": 0.16 + }, + { + "age": 32, + "cost": 22.63, + "country": "PH", + "price": 53, + "project": "opbeat", + "state": "done", + "time": 1472886000000, + "username": "emitchelleo", + "percent_uptime": 0.35 + }, + { + "age": 73, + "cost": 20.87, + "country": "AR", + "price": 45, + "project": "elasticsearch", + "state": "start", + "time": 1471590000000, + "username": "ccarrep", + "percent_uptime": 0.01 + }, + { + "age": 25, + "cost": 21.37, + "country": "AR", + "price": 70, + "project": "opbeat", + "state": "start", + "time": 1482044400000, + "username": "mfishereq", + "percent_uptime": 0.57 + }, + { + "age": 40, + "cost": 23.42, + "country": "FR", + "price": 53, + "project": "machine-learning", + "state": "done", + "time": 1490943600000, + "username": "tgrayer", + "percent_uptime": 0.99 + }, + { + "age": 62, + "cost": 22.33, + "country": "KP", + "price": 64, + "project": "x-pack", + "state": "running", + "time": 1464332400000, + "username": "pstanleyes", + "percent_uptime": 0.57 + }, + { + "age": 73, + "cost": 23.69, + "country": "CN", + "price": 51, + "project": "elasticsearch", + "state": "start", + "time": 1479366000000, + "username": "nfoxet", + "percent_uptime": 0.81 + }, + { + "age": 21, + "cost": 21.33, + "country": "PT", + "price": 51, + "project": "logstash", + "state": "start", + "time": 1474441200000, + "username": "rstanleyeu", + "percent_uptime": 0 + }, + { + "age": 65, + "cost": 22.93, + "country": "PE", + "price": 50, + "project": "kibana", + "state": "done", + "time": 1476687600000, + "username": "jrobinsonev", + "percent_uptime": 0.18 + }, + { + "age": 21, + "cost": 22.89, + "country": "BD", + "price": 54, + "project": "logstash", + "state": "done", + "time": 1475391600000, + "username": "jrichardsew", + "percent_uptime": 0.32 + }, + { + "age": 24, + "cost": 21.94, + "country": "CN", + "price": 64, + "project": "elasticsearch", + "state": "running", + "time": 1471071600000, + "username": "hwebbex", + "percent_uptime": 0.72 + }, + { + "age": 46, + "cost": 21.95, + "country": "ID", + "price": 61, + "project": "opbeat", + "state": "running", + "time": 1479538800000, + "username": "awestey", + "percent_uptime": 0.64 + }, + { + "age": 64, + "cost": 22.09, + "country": "PL", + "price": 45, + "project": "beats", + "state": "running", + "time": 1462431600000, + "username": "ljacobsez", + "percent_uptime": 0.33 + }, + { + "age": 55, + "cost": 23.6, + "country": "GR", + "price": 54, + "project": "x-pack", + "state": "start", + "time": 1475478000000, + "username": "krussellf0", + "percent_uptime": 0 + }, + { + "age": 55, + "cost": 22.9, + "country": "PL", + "price": 63, + "project": "x-pack", + "state": "done", + "time": 1485154800000, + "username": "amedinaf1", + "percent_uptime": 0.17 + }, + { + "age": 38, + "cost": 22.83, + "country": "CN", + "price": 63, + "project": "elasticsearch", + "state": "done", + "time": 1473577200000, + "username": "tjenkinsf2", + "percent_uptime": 0.18 + }, + { + "age": 64, + "cost": 24.1, + "country": "ID", + "price": 44, + "project": "beats", + "state": "start", + "time": 1482822000000, + "username": "lrileyf3", + "percent_uptime": 0.42 + }, + { + "age": 52, + "cost": 21.41, + "country": "BR", + "price": 50, + "project": "elasticsearch", + "state": "start", + "time": 1480057200000, + "username": "dsimpsonf4", + "percent_uptime": 0.63 + }, + { + "age": 34, + "cost": 23.48, + "country": "BR", + "price": 66, + "project": "x-pack", + "state": "done", + "time": 1481612400000, + "username": "nwoodsf5", + "percent_uptime": 0.82 + }, + { + "age": 65, + "cost": 23.04, + "country": "KR", + "price": 75, + "project": "kibana", + "state": "done", + "time": 1464850800000, + "username": "acruzf6", + "percent_uptime": 0.1 + }, + { + "age": 45, + "cost": 25, + "country": "SE", + "price": 54, + "project": "elasticsearch", + "state": "running", + "time": 1466838000000, + "username": "rmyersf7", + "percent_uptime": 0.47 + }, + { + "age": 29, + "cost": 21.82, + "country": "TL", + "price": 54, + "project": "beats", + "state": "running", + "time": 1474441200000, + "username": "sfowlerf8", + "percent_uptime": 0.02 + }, + { + "age": 51, + "cost": 22.2, + "country": "IL", + "price": 54, + "project": "kibana", + "state": "running", + "time": 1463641200000, + "username": "bsimsf9", + "percent_uptime": 0.66 + }, + { + "age": 23, + "cost": 22.49, + "country": "CN", + "price": 54, + "project": "kibana", + "state": "running", + "time": 1472367600000, + "username": "acampbellfa", + "percent_uptime": 0.99 + }, + { + "age": 35, + "cost": 23.36, + "country": "RU", + "price": 54, + "project": "logstash", + "state": "done", + "time": 1472799600000, + "username": "llarsonfb", + "percent_uptime": 0.63 + }, + { + "age": 32, + "cost": 23, + "country": "CN", + "price": 66, + "project": "opbeat", + "state": "done", + "time": 1479625200000, + "username": "kbanksfc", + "percent_uptime": 0.57 + }, + { + "age": 64, + "cost": 21.07, + "country": "CN", + "price": 56, + "project": "beats", + "state": "start", + "time": 1486882800000, + "username": "jwatkinsfd", + "percent_uptime": 0.64 + }, + { + "age": 23, + "cost": 23.87, + "country": "PT", + "price": 58, + "project": "kibana", + "state": "start", + "time": 1485846000000, + "username": "kfranklinfe", + "percent_uptime": 0.81 + }, + { + "age": 22, + "cost": 21.68, + "country": "MX", + "price": 60, + "project": "beats", + "state": "running", + "time": 1479366000000, + "username": "jhuntff", + "percent_uptime": 0.05 + }, + { + "age": 58, + "cost": 24.67, + "country": "AM", + "price": 57, + "project": "kibana", + "state": "running", + "time": 1488265200000, + "username": "njenkinsfg", + "percent_uptime": 0.32 + }, + { + "age": 78, + "cost": 24.49, + "country": "CN", + "price": 49, + "project": "beats", + "state": "start", + "time": 1464159600000, + "username": "mjenkinsfh", + "percent_uptime": 0.73 + }, + { + "age": 46, + "cost": 23.31, + "country": "JP", + "price": 57, + "project": "opbeat", + "state": "done", + "time": 1465974000000, + "username": "adayfi", + "percent_uptime": 0.55 + }, + { + "age": 68, + "cost": 23.91, + "country": "PF", + "price": 58, + "project": "machine-learning", + "state": "start", + "time": 1479452400000, + "username": "lcoxfj", + "percent_uptime": 0.21 + }, + { + "age": 79, + "cost": 23.67, + "country": "CA", + "price": 62, + "project": "kibana", + "state": "start", + "time": 1479538800000, + "username": "dhansenfk", + "percent_uptime": 0.59 + }, + { + "age": 70, + "cost": 23.46, + "country": "VE", + "price": 66, + "project": "logstash", + "state": "done", + "time": 1464073200000, + "username": "rharrisonfl", + "percent_uptime": 0.57 + }, + { + "age": 71, + "cost": 22.41, + "country": "RS", + "price": 55, + "project": "beats", + "state": "running", + "time": 1472886000000, + "username": "aromerofm", + "percent_uptime": 0.02 + }, + { + "age": 58, + "cost": 22.99, + "country": "BR", + "price": 66, + "project": "kibana", + "state": "done", + "time": 1484550000000, + "username": "hfoxfn", + "percent_uptime": 0.04 + }, + { + "age": 21, + "cost": 23.59, + "country": "UA", + "price": 57, + "project": "logstash", + "state": "start", + "time": 1489906800000, + "username": "hrodriguezfo", + "percent_uptime": 0.24 + }, + { + "age": 34, + "cost": 22.48, + "country": "MK", + "price": 67, + "project": "x-pack", + "state": "running", + "time": 1463382000000, + "username": "kmasonfp", + "percent_uptime": 0.86 + }, + { + "age": 52, + "cost": 23.43, + "country": "CN", + "price": 58, + "project": "elasticsearch", + "state": "done", + "time": 1475478000000, + "username": "mrileyfq", + "percent_uptime": 0.34 + }, + { + "age": 24, + "cost": 23.1, + "country": "NZ", + "price": 64, + "project": "elasticsearch", + "state": "done", + "time": 1472022000000, + "username": "tkellyfr", + "percent_uptime": 0.53 + }, + { + "age": 52, + "cost": 21.59, + "country": "CN", + "price": 72, + "project": "elasticsearch", + "state": "running", + "time": 1490079600000, + "username": "jrileyfs", + "percent_uptime": 0.28 + }, + { + "age": 40, + "cost": 22.7, + "country": "MX", + "price": 58, + "project": "machine-learning", + "state": "done", + "time": 1484204400000, + "username": "mspencerft", + "percent_uptime": 0.09 + }, + { + "age": 34, + "cost": 22.01, + "country": "AL", + "price": 58, + "project": "x-pack", + "state": "running", + "time": 1486191600000, + "username": "kburkefu", + "percent_uptime": 0.44 + }, + { + "age": 66, + "cost": 24.78, + "country": "CN", + "price": 55, + "project": "elasticsearch", + "state": "running", + "time": 1478329200000, + "username": "nturnerfv", + "percent_uptime": 0.14 + }, + { + "age": 62, + "cost": 22.81, + "country": "ES", + "price": 50, + "project": "x-pack", + "state": "done", + "time": 1460530800000, + "username": "jsmithfw", + "percent_uptime": 0.14 + }, + { + "age": 56, + "cost": 23.34, + "country": "PH", + "price": 58, + "project": "logstash", + "state": "done", + "time": 1476082800000, + "username": "jrichardsonfx", + "percent_uptime": 0.59 + }, + { + "age": 32, + "cost": 23.19, + "country": "US", + "price": 67, + "project": "opbeat", + "state": "done", + "time": 1475650800000, + "username": "shernandezfy", + "percent_uptime": 0.08 + }, + { + "age": 37, + "cost": 23.15, + "country": "CN", + "price": 61, + "project": "kibana", + "state": "done", + "time": 1485500400000, + "username": "hjacobsfz", + "percent_uptime": 0.66 + }, + { + "age": 29, + "cost": 22.66, + "country": "EC", + "price": 63, + "project": "beats", + "state": "done", + "time": 1483254000000, + "username": "cbennettg0", + "percent_uptime": 0.36 + }, + { + "age": 48, + "cost": 23.19, + "country": "CM", + "price": 58, + "project": "x-pack", + "state": "done", + "time": 1463900400000, + "username": "aarnoldg1", + "percent_uptime": 0.86 + }, + { + "age": 63, + "cost": 24.93, + "country": "PT", + "price": 61, + "project": "logstash", + "state": "running", + "time": 1472022000000, + "username": "mgilbertg2", + "percent_uptime": 0.56 + }, + { + "age": 31, + "cost": 22.81, + "country": "PA", + "price": 54, + "project": "elasticsearch", + "state": "done", + "time": 1482044400000, + "username": "rcoxg3", + "percent_uptime": 0.77 + }, + { + "age": 72, + "cost": 24.23, + "country": "RU", + "price": 60, + "project": "kibana", + "state": "start", + "time": 1471676400000, + "username": "twhiteg4", + "percent_uptime": 0.94 + }, + { + "age": 42, + "cost": 22.72, + "country": "BR", + "price": 53, + "project": "logstash", + "state": "done", + "time": 1486710000000, + "username": "lcarpenterg5", + "percent_uptime": 0.03 + }, + { + "age": 27, + "cost": 23.16, + "country": "BA", + "price": 70, + "project": "x-pack", + "state": "done", + "time": 1481612400000, + "username": "eharrisong6", + "percent_uptime": 0.69 + }, + { + "age": 46, + "cost": 24.18, + "country": "NP", + "price": 52, + "project": "opbeat", + "state": "start", + "time": 1461222000000, + "username": "hharrisong7", + "percent_uptime": 0.39 + }, + { + "age": 24, + "cost": 22.94, + "country": "PT", + "price": 59, + "project": "elasticsearch", + "state": "done", + "time": 1484377200000, + "username": "jgibsong8", + "percent_uptime": 0.57 + }, + { + "age": 38, + "cost": 21.91, + "country": "BO", + "price": 51, + "project": "elasticsearch", + "state": "running", + "time": 1474527600000, + "username": "rwilliamsg9", + "percent_uptime": 0.32 + }, + { + "age": 77, + "cost": 24.88, + "country": "CN", + "price": 64, + "project": "logstash", + "state": "running", + "time": 1470466800000, + "username": "htaylorga", + "percent_uptime": 0.87 + }, + { + "age": 64, + "cost": 23.03, + "country": "PT", + "price": 64, + "project": "beats", + "state": "done", + "time": 1464764400000, + "username": "vwebbgb", + "percent_uptime": 0.78 + }, + { + "age": 43, + "cost": 21.21, + "country": "JP", + "price": 66, + "project": "beats", + "state": "start", + "time": 1491202800000, + "username": "tbrowngc", + "percent_uptime": 0.91 + }, + { + "age": 73, + "cost": 23.85, + "country": "CN", + "price": 55, + "project": "elasticsearch", + "state": "start", + "time": 1477638000000, + "username": "bmontgomerygd", + "percent_uptime": 0.71 + }, + { + "age": 78, + "cost": 24.05, + "country": "VN", + "price": 59, + "project": "beats", + "state": "start", + "time": 1480921200000, + "username": "jrileyge", + "percent_uptime": 0.89 + }, + { + "age": 44, + "cost": 23.43, + "country": "ID", + "price": 55, + "project": "kibana", + "state": "done", + "time": 1487574000000, + "username": "bpetersgf", + "percent_uptime": 0.16 + }, + { + "age": 31, + "cost": 21.69, + "country": "PH", + "price": 54, + "project": "elasticsearch", + "state": "running", + "time": 1467615600000, + "username": "awilliamsgg", + "percent_uptime": 0.82 + }, + { + "age": 79, + "cost": 22.26, + "country": "CO", + "price": 58, + "project": "kibana", + "state": "running", + "time": 1478588400000, + "username": "bcoxgh", + "percent_uptime": 0.33 + }, + { + "age": 47, + "cost": 24.85, + "country": "PH", + "price": 74, + "project": "machine-learning", + "state": "running", + "time": 1461826800000, + "username": "jchavezgi", + "percent_uptime": 0.93 + }, + { + "age": 19, + "cost": 23.61, + "country": "AZ", + "price": 63, + "project": "machine-learning", + "state": "start", + "time": 1476946800000, + "username": "bstanleygj", + "percent_uptime": 0.97 + }, + { + "age": 49, + "cost": 22.66, + "country": "RU", + "price": 55, + "project": "logstash", + "state": "done", + "time": 1475046000000, + "username": "lortizgk", + "percent_uptime": 0.5 + }, + { + "age": 65, + "cost": 21.86, + "country": "YE", + "price": 33, + "project": "kibana", + "state": "running", + "time": 1462345200000, + "username": "cjohnsongl", + "percent_uptime": 0.1 + }, + { + "age": 30, + "cost": 23.26, + "country": "NZ", + "price": 55, + "project": "kibana", + "state": "done", + "time": 1484636400000, + "username": "sfernandezgm", + "percent_uptime": 0.3 + }, + { + "age": 75, + "cost": 22.78, + "country": "GB", + "price": 54, + "project": "machine-learning", + "state": "done", + "time": 1491721200000, + "username": "astevensgn", + "percent_uptime": 0.73 + }, + { + "age": 57, + "cost": 24.28, + "country": "VE", + "price": 55, + "project": "beats", + "state": "start", + "time": 1480575600000, + "username": "hgreengo", + "percent_uptime": 0.59 + }, + { + "age": 67, + "cost": 21.68, + "country": "FR", + "price": 45, + "project": "opbeat", + "state": "running", + "time": 1485932400000, + "username": "tgutierrezgp", + "percent_uptime": 0.47 + }, + { + "age": 59, + "cost": 25.04, + "country": "PL", + "price": 53, + "project": "elasticsearch", + "state": "running", + "time": 1481266800000, + "username": "rmorenogq", + "percent_uptime": 0.12 + }, + { + "age": 57, + "cost": 23.46, + "country": "PE", + "price": 48, + "project": "beats", + "state": "done", + "time": 1464332400000, + "username": "esandersgr", + "percent_uptime": 0.44 + }, + { + "age": 21, + "cost": 22.72, + "country": "CN", + "price": 49, + "project": "logstash", + "state": "done", + "time": 1477119600000, + "username": "sleegs", + "percent_uptime": 0.69 + }, + { + "age": 74, + "cost": 21.44, + "country": "RU", + "price": 64, + "project": "opbeat", + "state": "start", + "time": 1485414000000, + "username": "ktaylorgt", + "percent_uptime": 0.63 + }, + { + "age": 24, + "cost": 23.26, + "country": "ID", + "price": 44, + "project": "elasticsearch", + "state": "done", + "time": 1482217200000, + "username": "dgeorgegu", + "percent_uptime": 0.65 + }, + { + "age": 27, + "cost": 22.47, + "country": "ID", + "price": 57, + "project": "x-pack", + "state": "running", + "time": 1468134000000, + "username": "swarrengv", + "percent_uptime": 0.24 + }, + { + "age": 62, + "cost": 22.32, + "country": "JP", + "price": 52, + "project": "x-pack", + "state": "running", + "time": 1481353200000, + "username": "sdeangw", + "percent_uptime": 0.29 + }, + { + "age": 36, + "cost": 22.85, + "country": "MO", + "price": 49, + "project": "beats", + "state": "done", + "time": 1483167600000, + "username": "rmyersgx", + "percent_uptime": 0.78 + }, + { + "age": 31, + "cost": 25.49, + "country": "CN", + "price": 64, + "project": "elasticsearch", + "state": "running", + "time": 1469430000000, + "username": "lwilsongy", + "percent_uptime": 0.19 + }, + { + "age": 75, + "cost": 23.08, + "country": "CN", + "price": 57, + "project": "machine-learning", + "state": "done", + "time": 1472713200000, + "username": "friveragz", + "percent_uptime": 0.56 + }, + { + "age": 75, + "cost": 22.93, + "country": "RU", + "price": 66, + "project": "machine-learning", + "state": "done", + "time": 1470553200000, + "username": "awebbh0", + "percent_uptime": 0.33 + }, + { + "age": 18, + "cost": 23.41, + "country": "CN", + "price": 46, + "project": "opbeat", + "state": "done", + "time": 1486105200000, + "username": "fyoungh1", + "percent_uptime": 0.08 + }, + { + "age": 76, + "cost": 22.25, + "country": "PH", + "price": 57, + "project": "x-pack", + "state": "running", + "time": 1474354800000, + "username": "jbakerh2", + "percent_uptime": 0.52 + }, + { + "age": 56, + "cost": 21.42, + "country": "PL", + "price": 66, + "project": "logstash", + "state": "start", + "time": 1461394800000, + "username": "wwalkerh3", + "percent_uptime": 0.35 + }, + { + "age": 23, + "cost": 21.33, + "country": "MX", + "price": 53, + "project": "kibana", + "state": "start", + "time": 1489042800000, + "username": "nwatsonh4", + "percent_uptime": 0.88 + }, + { + "age": 22, + "cost": 23.46, + "country": "PH", + "price": 46, + "project": "beats", + "state": "done", + "time": 1487055600000, + "username": "dsullivanh5", + "percent_uptime": 0.9 + }, + { + "age": 65, + "cost": 21.73, + "country": "GT", + "price": 50, + "project": "kibana", + "state": "running", + "time": 1480489200000, + "username": "jcastilloh6", + "percent_uptime": 1 + }, + { + "age": 20, + "cost": 24.24, + "country": "BR", + "price": 50, + "project": "x-pack", + "state": "start", + "time": 1481266800000, + "username": "rgreeneh7", + "percent_uptime": 0.81 + }, + { + "age": 40, + "cost": 23.22, + "country": "ZA", + "price": 62, + "project": "machine-learning", + "state": "done", + "time": 1469948400000, + "username": "gsmithh8", + "percent_uptime": 0.95 + }, + { + "age": 31, + "cost": 20.87, + "country": "VU", + "price": 65, + "project": "elasticsearch", + "state": "start", + "time": 1486623600000, + "username": "rramosh9", + "percent_uptime": 0.02 + }, + { + "age": 73, + "cost": 21.73, + "country": "DO", + "price": 61, + "project": "elasticsearch", + "state": "running", + "time": 1460876400000, + "username": "chansenha", + "percent_uptime": 0.95 + }, + { + "age": 23, + "cost": 22.63, + "country": "ID", + "price": 64, + "project": "kibana", + "state": "done", + "time": 1488092400000, + "username": "hblackhb", + "percent_uptime": 0.3 + }, + { + "age": 52, + "cost": 22.56, + "country": "RU", + "price": 52, + "project": "elasticsearch", + "state": "done", + "time": 1480662000000, + "username": "ebakerhc", + "percent_uptime": 0.66 + }, + { + "age": 27, + "cost": 22.53, + "country": "VE", + "price": 46, + "project": "x-pack", + "state": "done", + "time": 1480316400000, + "username": "tryanhd", + "percent_uptime": 0.3 + }, + { + "age": 73, + "cost": 23.69, + "country": "MY", + "price": 64, + "project": "elasticsearch", + "state": "start", + "time": 1474009200000, + "username": "adiazhe", + "percent_uptime": 0.16 + }, + { + "age": 62, + "cost": 25.48, + "country": "UA", + "price": 61, + "project": "x-pack", + "state": "running", + "time": 1461394800000, + "username": "darnoldhf", + "percent_uptime": 0.65 + }, + { + "age": 37, + "cost": 24.07, + "country": "PL", + "price": 57, + "project": "kibana", + "state": "start", + "time": 1481785200000, + "username": "cgrayhg", + "percent_uptime": 0.7 + }, + { + "age": 62, + "cost": 23.32, + "country": "GR", + "price": 72, + "project": "x-pack", + "state": "done", + "time": 1465196400000, + "username": "smedinahh", + "percent_uptime": 0.47 + }, + { + "age": 71, + "cost": 22.75, + "country": "GE", + "price": 59, + "project": "beats", + "state": "done", + "time": 1463209200000, + "username": "jmccoyhi", + "percent_uptime": 0.5 + }, + { + "age": 44, + "cost": 22.34, + "country": "CN", + "price": 59, + "project": "kibana", + "state": "running", + "time": 1477551600000, + "username": "ameyerhj", + "percent_uptime": 0.17 + }, + { + "age": 44, + "cost": 20.24, + "country": "PT", + "price": 51, + "project": "kibana", + "state": "done", + "time": 1486969200000, + "username": "wwrighthk", + "percent_uptime": 0.98 + }, + { + "age": 19, + "cost": 23.86, + "country": "FI", + "price": 63, + "project": "machine-learning", + "state": "start", + "time": 1476255600000, + "username": "wtuckerhl", + "percent_uptime": 0.87 + }, + { + "age": 51, + "cost": 24.79, + "country": "NA", + "price": 61, + "project": "kibana", + "state": "running", + "time": 1465023600000, + "username": "greedhm", + "percent_uptime": 0.13 + }, + { + "age": 23, + "cost": 24.51, + "country": "JP", + "price": 61, + "project": "kibana", + "state": "running", + "time": 1480575600000, + "username": "fpaynehn", + "percent_uptime": 0.8 + }, + { + "age": 29, + "cost": 22.18, + "country": "CN", + "price": 54, + "project": "beats", + "state": "running", + "time": 1462431600000, + "username": "aperryho", + "percent_uptime": 0.49 + }, + { + "age": 62, + "cost": 21.38, + "country": "CN", + "price": 51, + "project": "x-pack", + "state": "start", + "time": 1471676400000, + "username": "arobertshp", + "percent_uptime": 0.16 + }, + { + "age": 67, + "cost": 23.81, + "country": "UY", + "price": 68, + "project": "opbeat", + "state": "start", + "time": 1481353200000, + "username": "mallenhq", + "percent_uptime": 0.45 + }, + { + "age": 78, + "cost": 21.55, + "country": "PA", + "price": 49, + "project": "beats", + "state": "running", + "time": 1467356400000, + "username": "mcruzhr", + "percent_uptime": 0.94 + }, + { + "age": 36, + "cost": 23.41, + "country": "VN", + "price": 50, + "project": "beats", + "state": "done", + "time": 1478674800000, + "username": "rwagnerhs", + "percent_uptime": 0.78 + }, + { + "age": 76, + "cost": 24.18, + "country": "CN", + "price": 57, + "project": "x-pack", + "state": "start", + "time": 1483772400000, + "username": "mevansht", + "percent_uptime": 0.3 + }, + { + "age": 59, + "cost": 22.6, + "country": "VE", + "price": 64, + "project": "elasticsearch", + "state": "done", + "time": 1465714800000, + "username": "nknighthu", + "percent_uptime": 0.43 + }, + { + "age": 30, + "cost": 21.37, + "country": "ZM", + "price": 68, + "project": "kibana", + "state": "start", + "time": 1480489200000, + "username": "jharrishv", + "percent_uptime": 0.38 + }, + { + "age": 70, + "cost": 24.13, + "country": "HU", + "price": 50, + "project": "logstash", + "state": "start", + "time": 1470121200000, + "username": "wkimhw", + "percent_uptime": 0.68 + }, + { + "age": 55, + "cost": 22.34, + "country": "CN", + "price": 43, + "project": "x-pack", + "state": "running", + "time": 1485932400000, + "username": "ejacksonhx", + "percent_uptime": 0.6 + }, + { + "age": 54, + "cost": 23.08, + "country": "ID", + "price": 54, + "project": "machine-learning", + "state": "done", + "time": 1484722800000, + "username": "mstewarthy", + "percent_uptime": 0.93 + }, + { + "age": 29, + "cost": 23.4, + "country": "ID", + "price": 65, + "project": "beats", + "state": "done", + "time": 1471330800000, + "username": "psimpsonhz", + "percent_uptime": 0.99 + }, + { + "age": 19, + "cost": 21.08, + "country": "UA", + "price": 51, + "project": "machine-learning", + "state": "start", + "time": 1472367600000, + "username": "jkingi0", + "percent_uptime": 0.82 + }, + { + "age": 49, + "cost": 22.83, + "country": "PL", + "price": 57, + "project": "logstash", + "state": "done", + "time": 1468393200000, + "username": "jrileyi1", + "percent_uptime": 0.68 + }, + { + "age": 56, + "cost": 21.82, + "country": "RU", + "price": 51, + "project": "logstash", + "state": "running", + "time": 1482303600000, + "username": "tdixoni2", + "percent_uptime": 0.33 + }, + { + "age": 67, + "cost": 23.07, + "country": "ID", + "price": 41, + "project": "opbeat", + "state": "done", + "time": 1468652400000, + "username": "jmitchelli3", + "percent_uptime": 0.98 + }, + { + "age": 40, + "cost": 23.65, + "country": "PT", + "price": 53, + "project": "machine-learning", + "state": "start", + "time": 1474614000000, + "username": "dcoxi4", + "percent_uptime": 0.57 + }, + { + "age": 61, + "cost": 23.72, + "country": "CN", + "price": 57, + "project": "machine-learning", + "state": "start", + "time": 1486018800000, + "username": "tporteri5", + "percent_uptime": 0.79 + }, + { + "age": 24, + "cost": 24.68, + "country": "SE", + "price": 74, + "project": "elasticsearch", + "state": "running", + "time": 1469084400000, + "username": "rwagneri6", + "percent_uptime": 0.19 + }, + { + "age": 35, + "cost": 22.38, + "country": "FR", + "price": 51, + "project": "logstash", + "state": "running", + "time": 1490425200000, + "username": "gnelsoni7", + "percent_uptime": 0.67 + }, + { + "age": 38, + "cost": 23.99, + "country": "LA", + "price": 53, + "project": "elasticsearch", + "state": "start", + "time": 1468652400000, + "username": "cmcdonaldi8", + "percent_uptime": 0.82 + }, + { + "age": 60, + "cost": 22.86, + "country": "KE", + "price": 65, + "project": "opbeat", + "state": "done", + "time": 1461654000000, + "username": "hjordani9", + "percent_uptime": 0.82 + }, + { + "age": 79, + "cost": 23.56, + "country": "PH", + "price": 57, + "project": "kibana", + "state": "start", + "time": 1474095600000, + "username": "hwalkeria", + "percent_uptime": 0.39 + }, + { + "age": 54, + "cost": 23.63, + "country": "CN", + "price": 50, + "project": "machine-learning", + "state": "start", + "time": 1479020400000, + "username": "lstanleyib", + "percent_uptime": 0.09 + }, + { + "age": 35, + "cost": 23.24, + "country": "TT", + "price": 63, + "project": "logstash", + "state": "done", + "time": 1479538800000, + "username": "jrogersic", + "percent_uptime": 0.47 + }, + { + "age": 72, + "cost": 21.98, + "country": "JP", + "price": 60, + "project": "kibana", + "state": "running", + "time": 1483254000000, + "username": "aperryid", + "percent_uptime": 0.64 + }, + { + "age": 50, + "cost": 23.65, + "country": "RU", + "price": 48, + "project": "beats", + "state": "start", + "time": 1486364400000, + "username": "mjordanie", + "percent_uptime": 0.98 + }, + { + "age": 59, + "cost": 23.36, + "country": "ID", + "price": 59, + "project": "elasticsearch", + "state": "done", + "time": 1478415600000, + "username": "pcookif", + "percent_uptime": 0.14 + }, + { + "age": 25, + "cost": 22.79, + "country": "UG", + "price": 62, + "project": "opbeat", + "state": "done", + "time": 1489129200000, + "username": "cblackig", + "percent_uptime": 0.27 + }, + { + "age": 39, + "cost": 22.77, + "country": "AR", + "price": 60, + "project": "opbeat", + "state": "done", + "time": 1461913200000, + "username": "djohnsonih", + "percent_uptime": 0.01 + }, + { + "age": 23, + "cost": 20.45, + "country": "PH", + "price": 52, + "project": "kibana", + "state": "done", + "time": 1475132400000, + "username": "bturnerii", + "percent_uptime": 0.82 + }, + { + "age": 46, + "cost": 21.79, + "country": "CN", + "price": 55, + "project": "opbeat", + "state": "running", + "time": 1471849200000, + "username": "colsonij", + "percent_uptime": 0.44 + }, + { + "age": 45, + "cost": 22.68, + "country": "CZ", + "price": 58, + "project": "elasticsearch", + "state": "done", + "time": 1491116400000, + "username": "tmurphyik", + "percent_uptime": 0.58 + }, + { + "age": 54, + "cost": 19.57, + "country": "PH", + "price": 68, + "project": "machine-learning", + "state": "done", + "time": 1463122800000, + "username": "tshawil", + "percent_uptime": 0.57 + }, + { + "age": 76, + "cost": 25.04, + "country": "SE", + "price": 47, + "project": "x-pack", + "state": "running", + "time": 1470726000000, + "username": "lgilbertim", + "percent_uptime": 0.71 + }, + { + "age": 53, + "cost": 23.85, + "country": "GR", + "price": 44, + "project": "opbeat", + "state": "start", + "time": 1474441200000, + "username": "jbakerin", + "percent_uptime": 0.93 + }, + { + "age": 44, + "cost": 23.22, + "country": "MY", + "price": 65, + "project": "kibana", + "state": "done", + "time": 1479279600000, + "username": "jmurphyio", + "percent_uptime": 0.96 + }, + { + "age": 32, + "cost": 23.15, + "country": "SE", + "price": 54, + "project": "opbeat", + "state": "done", + "time": 1481180400000, + "username": "glawrenceip", + "percent_uptime": 0.66 + }, + { + "age": 36, + "cost": 23.06, + "country": "VN", + "price": 56, + "project": "beats", + "state": "done", + "time": 1464937200000, + "username": "jsancheziq", + "percent_uptime": 0.48 + }, + { + "age": 70, + "cost": 22.77, + "country": "TH", + "price": 54, + "project": "logstash", + "state": "done", + "time": 1466233200000, + "username": "mchapmanir", + "percent_uptime": 0.77 + }, + { + "age": 24, + "cost": 23.14, + "country": "BR", + "price": 54, + "project": "elasticsearch", + "state": "done", + "time": 1469775600000, + "username": "sbutleris", + "percent_uptime": 0.13 + }, + { + "age": 50, + "cost": 23.01, + "country": "PT", + "price": 51, + "project": "beats", + "state": "done", + "time": 1477638000000, + "username": "rowensit", + "percent_uptime": 0.4 + }, + { + "age": 76, + "cost": 22.91, + "country": "ID", + "price": 58, + "project": "x-pack", + "state": "done", + "time": 1472713200000, + "username": "nfrankliniu", + "percent_uptime": 0.09 + }, + { + "age": 55, + "cost": 23.46, + "country": "AR", + "price": 63, + "project": "x-pack", + "state": "done", + "time": 1477638000000, + "username": "bwhiteiv", + "percent_uptime": 0.51 + }, + { + "age": 26, + "cost": 21.02, + "country": "ID", + "price": 46, + "project": "machine-learning", + "state": "start", + "time": 1472454000000, + "username": "mrossiw", + "percent_uptime": 0.8 + }, + { + "age": 61, + "cost": 20.32, + "country": "VN", + "price": 52, + "project": "machine-learning", + "state": "done", + "time": 1474700400000, + "username": "pyoungix", + "percent_uptime": 1 + }, + { + "age": 30, + "cost": 21.94, + "country": "BR", + "price": 53, + "project": "kibana", + "state": "running", + "time": 1464591600000, + "username": "rkimiy", + "percent_uptime": 1 + }, + { + "age": 36, + "cost": 22.09, + "country": "RU", + "price": 64, + "project": "beats", + "state": "running", + "time": 1462863600000, + "username": "pwallaceiz", + "percent_uptime": 0.51 + }, + { + "age": 54, + "cost": 21.56, + "country": "ID", + "price": 49, + "project": "machine-learning", + "state": "running", + "time": 1490857200000, + "username": "tadamsj0", + "percent_uptime": 0.56 + }, + { + "age": 56, + "cost": 20.35, + "country": "CN", + "price": 49, + "project": "logstash", + "state": "done", + "time": 1462777200000, + "username": "kmoorej1", + "percent_uptime": 0.25 + }, + { + "age": 55, + "cost": 22.67, + "country": "PT", + "price": 51, + "project": "x-pack", + "state": "done", + "time": 1468566000000, + "username": "abradleyj2", + "percent_uptime": 0.65 + }, + { + "age": 34, + "cost": 23.52, + "country": "SI", + "price": 57, + "project": "x-pack", + "state": "start", + "time": 1481698800000, + "username": "trodriguezj3", + "percent_uptime": 0.56 + }, + { + "age": 39, + "cost": 22.71, + "country": "CN", + "price": 63, + "project": "opbeat", + "state": "done", + "time": 1461999600000, + "username": "jbrownj4", + "percent_uptime": 0.36 + }, + { + "age": 46, + "cost": 24.28, + "country": "BA", + "price": 59, + "project": "opbeat", + "state": "start", + "time": 1485586800000, + "username": "dmccoyj5", + "percent_uptime": 0.16 + }, + { + "age": 19, + "cost": 23.55, + "country": "VN", + "price": 51, + "project": "machine-learning", + "state": "start", + "time": 1490943600000, + "username": "ahansenj6", + "percent_uptime": 0.87 + }, + { + "age": 58, + "cost": 22.23, + "country": "CN", + "price": 51, + "project": "kibana", + "state": "running", + "time": 1461222000000, + "username": "eedwardsj7", + "percent_uptime": 0.48 + }, + { + "age": 49, + "cost": 23.17, + "country": "PL", + "price": 51, + "project": "logstash", + "state": "done", + "time": 1473750000000, + "username": "jfordj8", + "percent_uptime": 0.87 + }, + { + "age": 62, + "cost": 23.59, + "country": "CN", + "price": 65, + "project": "x-pack", + "state": "start", + "time": 1479193200000, + "username": "kharrisj9", + "percent_uptime": 0.55 + }, + { + "age": 78, + "cost": 21.63, + "country": "PL", + "price": 73, + "project": "beats", + "state": "running", + "time": 1479625200000, + "username": "rbradleyja", + "percent_uptime": 0.17 + }, + { + "age": 63, + "cost": 22.74, + "country": "HR", + "price": 56, + "project": "logstash", + "state": "done", + "time": 1478674800000, + "username": "nholmesjb", + "percent_uptime": 0.16 + }, + { + "age": 79, + "cost": 22.79, + "country": "UA", + "price": 51, + "project": "kibana", + "state": "done", + "time": 1470121200000, + "username": "psimsjc", + "percent_uptime": 0.91 + }, + { + "age": 34, + "cost": 22.44, + "country": "PH", + "price": 40, + "project": "x-pack", + "state": "running", + "time": 1474527600000, + "username": "tbanksjd", + "percent_uptime": 0.29 + }, + { + "age": 59, + "cost": 22.2, + "country": "CR", + "price": 56, + "project": "elasticsearch", + "state": "running", + "time": 1482303600000, + "username": "dallenje", + "percent_uptime": 0.21 + }, + { + "age": 40, + "cost": 23.81, + "country": "ID", + "price": 50, + "project": "machine-learning", + "state": "start", + "time": 1460876400000, + "username": "kramosjf", + "percent_uptime": 0.55 + }, + { + "age": 39, + "cost": 22.07, + "country": "ID", + "price": 59, + "project": "opbeat", + "state": "running", + "time": 1463122800000, + "username": "rshawjg", + "percent_uptime": 0.27 + }, + { + "age": 60, + "cost": 22.42, + "country": "NL", + "price": 74, + "project": "opbeat", + "state": "running", + "time": 1480402800000, + "username": "vhilljh", + "percent_uptime": 0.16 + }, + { + "age": 29, + "cost": 23.29, + "country": "ID", + "price": 52, + "project": "beats", + "state": "done", + "time": 1462258800000, + "username": "lholmesji", + "percent_uptime": 0.8 + }, + { + "age": 22, + "cost": 22.52, + "country": "PL", + "price": 60, + "project": "beats", + "state": "done", + "time": 1477551600000, + "username": "pgarrettjj", + "percent_uptime": 0.08 + }, + { + "age": 69, + "cost": 22.94, + "country": "ES", + "price": 55, + "project": "x-pack", + "state": "done", + "time": 1468479600000, + "username": "tstonejk", + "percent_uptime": 0.2 + }, + { + "age": 74, + "cost": 23.1, + "country": "CN", + "price": 61, + "project": "opbeat", + "state": "done", + "time": 1472972400000, + "username": "jgriffinjl", + "percent_uptime": 0.35 + }, + { + "age": 30, + "cost": 20.85, + "country": "CN", + "price": 63, + "project": "kibana", + "state": "start", + "time": 1483426800000, + "username": "sholmesjm", + "percent_uptime": 0.91 + }, + { + "age": 56, + "cost": 23.14, + "country": "CN", + "price": 61, + "project": "logstash", + "state": "done", + "time": 1479193200000, + "username": "khayesjn", + "percent_uptime": 0.85 + }, + { + "age": 69, + "cost": 23.86, + "country": "BG", + "price": 57, + "project": "x-pack", + "state": "start", + "time": 1478761200000, + "username": "jfoxjo", + "percent_uptime": 0.25 + }, + { + "age": 32, + "cost": 22.75, + "country": "CN", + "price": 53, + "project": "opbeat", + "state": "done", + "time": 1460444400000, + "username": "swhitejp", + "percent_uptime": 0.91 + }, + { + "age": 45, + "cost": 21.48, + "country": "PH", + "price": 55, + "project": "elasticsearch", + "state": "start", + "time": 1488610800000, + "username": "hmorganjq", + "percent_uptime": 0.86 + }, + { + "age": 63, + "cost": 23.52, + "country": "CO", + "price": 63, + "project": "logstash", + "state": "start", + "time": 1462172400000, + "username": "agarciajr", + "percent_uptime": 0.47 + }, + { + "age": 48, + "cost": 24.18, + "country": "ID", + "price": 68, + "project": "x-pack", + "state": "start", + "time": 1489734000000, + "username": "sgeorgejs", + "percent_uptime": 0 + }, + { + "age": 18, + "cost": 23.02, + "country": "MX", + "price": 49, + "project": "opbeat", + "state": "done", + "time": 1486796400000, + "username": "agardnerjt", + "percent_uptime": 0.17 + }, + { + "age": 52, + "cost": 25.13, + "country": "CN", + "price": 63, + "project": "elasticsearch", + "state": "running", + "time": 1460703600000, + "username": "dsullivanju", + "percent_uptime": 0.45 + }, + { + "age": 46, + "cost": 23.58, + "country": "CO", + "price": 46, + "project": "opbeat", + "state": "start", + "time": 1464159600000, + "username": "mmoralesjv", + "percent_uptime": 0.02 + }, + { + "age": 42, + "cost": 23.93, + "country": "ID", + "price": 48, + "project": "logstash", + "state": "start", + "time": 1482822000000, + "username": "pgonzalezjw", + "percent_uptime": 0.52 + }, + { + "age": 38, + "cost": 22.12, + "country": "CN", + "price": 64, + "project": "elasticsearch", + "state": "running", + "time": 1475650800000, + "username": "jbanksjx", + "percent_uptime": 0.61 + }, + { + "age": 34, + "cost": 20.84, + "country": "AR", + "price": 52, + "project": "x-pack", + "state": "start", + "time": 1490252400000, + "username": "bricejy", + "percent_uptime": 0.27 + }, + { + "age": 59, + "cost": 22.7, + "country": "CN", + "price": 51, + "project": "elasticsearch", + "state": "done", + "time": 1470121200000, + "username": "eburnsjz", + "percent_uptime": 0.31 + }, + { + "age": 50, + "cost": 23.41, + "country": "CL", + "price": 59, + "project": "beats", + "state": "done", + "time": 1477033200000, + "username": "awallacek0", + "percent_uptime": 0.92 + }, + { + "age": 21, + "cost": 22.31, + "country": "DO", + "price": 69, + "project": "logstash", + "state": "running", + "time": 1472799600000, + "username": "bhamiltonk1", + "percent_uptime": 0.61 + }, + { + "age": 51, + "cost": 22.98, + "country": "TN", + "price": 62, + "project": "kibana", + "state": "done", + "time": 1483945200000, + "username": "lstevensk2", + "percent_uptime": 0.27 + }, + { + "age": 26, + "cost": 23.88, + "country": "XK", + "price": 53, + "project": "machine-learning", + "state": "start", + "time": 1462777200000, + "username": "emartinezk3", + "percent_uptime": 0.38 + }, + { + "age": 72, + "cost": 21.86, + "country": "JP", + "price": 48, + "project": "kibana", + "state": "running", + "time": 1473404400000, + "username": "driverak4", + "percent_uptime": 0.22 + }, + { + "age": 72, + "cost": 22.86, + "country": "CN", + "price": 46, + "project": "kibana", + "state": "done", + "time": 1483772400000, + "username": "khamiltonk5", + "percent_uptime": 0.86 + }, + { + "age": 48, + "cost": 21.64, + "country": "PE", + "price": 64, + "project": "x-pack", + "state": "running", + "time": 1476687600000, + "username": "tandersonk6", + "percent_uptime": 0.32 + }, + { + "age": 54, + "cost": 22.4, + "country": "PK", + "price": 53, + "project": "machine-learning", + "state": "running", + "time": 1486710000000, + "username": "ljenkinsk7", + "percent_uptime": 0.82 + }, + { + "age": 45, + "cost": 22.52, + "country": "RU", + "price": 51, + "project": "elasticsearch", + "state": "done", + "time": 1472540400000, + "username": "asandersk8", + "percent_uptime": 0.06 + }, + { + "age": 22, + "cost": 24.14, + "country": "MN", + "price": 52, + "project": "beats", + "state": "start", + "time": 1470034800000, + "username": "fwilliamsonk9", + "percent_uptime": 0.36 + }, + { + "age": 20, + "cost": 24.37, + "country": "JP", + "price": 67, + "project": "x-pack", + "state": "start", + "time": 1483081200000, + "username": "dortizka", + "percent_uptime": 0.65 + }, + { + "age": 37, + "cost": 24.62, + "country": "BD", + "price": 50, + "project": "kibana", + "state": "running", + "time": 1477983600000, + "username": "jpalmerkb", + "percent_uptime": 0.47 + }, + { + "age": 49, + "cost": 23.75, + "country": "BW", + "price": 40, + "project": "logstash", + "state": "start", + "time": 1482130800000, + "username": "areyeskc", + "percent_uptime": 0.46 + }, + { + "age": 39, + "cost": 22.17, + "country": "PL", + "price": 52, + "project": "opbeat", + "state": "running", + "time": 1463986800000, + "username": "jtuckerkd", + "percent_uptime": 0.78 + }, + { + "age": 71, + "cost": 21.39, + "country": "CN", + "price": 68, + "project": "beats", + "state": "start", + "time": 1485932400000, + "username": "rhickske", + "percent_uptime": 0.77 + }, + { + "age": 39, + "cost": 23.42, + "country": "CN", + "price": 49, + "project": "opbeat", + "state": "done", + "time": 1463122800000, + "username": "cgrahamkf", + "percent_uptime": 0.14 + }, + { + "age": 67, + "cost": 22.17, + "country": "ZA", + "price": 61, + "project": "opbeat", + "state": "running", + "time": 1472713200000, + "username": "jwestkg", + "percent_uptime": 0.6 + }, + { + "age": 56, + "cost": 21.53, + "country": "CN", + "price": 66, + "project": "logstash", + "state": "running", + "time": 1486969200000, + "username": "cpricekh", + "percent_uptime": 0.83 + }, + { + "age": 39, + "cost": 22.95, + "country": "PH", + "price": 45, + "project": "opbeat", + "state": "done", + "time": 1469948400000, + "username": "hyoungki", + "percent_uptime": 0.4 + }, + { + "age": 22, + "cost": 22.89, + "country": "EC", + "price": 59, + "project": "beats", + "state": "done", + "time": 1475737200000, + "username": "lsanderskj", + "percent_uptime": 0.69 + }, + { + "age": 49, + "cost": 22.96, + "country": "SE", + "price": 67, + "project": "logstash", + "state": "done", + "time": 1473836400000, + "username": "mfrazierkk", + "percent_uptime": 0.11 + }, + { + "age": 54, + "cost": 22.97, + "country": "AS", + "price": 60, + "project": "machine-learning", + "state": "done", + "time": 1466146800000, + "username": "sowenskl", + "percent_uptime": 0.28 + }, + { + "age": 68, + "cost": 22.21, + "country": "PA", + "price": 51, + "project": "machine-learning", + "state": "running", + "time": 1475391600000, + "username": "atuckerkm", + "percent_uptime": 0.69 + }, + { + "age": 74, + "cost": 21.47, + "country": "SE", + "price": 56, + "project": "opbeat", + "state": "start", + "time": 1475305200000, + "username": "cstanleykn", + "percent_uptime": 0.05 + }, + { + "age": 63, + "cost": 23.89, + "country": "FR", + "price": 55, + "project": "logstash", + "state": "start", + "time": 1484031600000, + "username": "jgrayko", + "percent_uptime": 0.92 + }, + { + "age": 57, + "cost": 23.97, + "country": "TT", + "price": 59, + "project": "beats", + "state": "start", + "time": 1472454000000, + "username": "ldeankp", + "percent_uptime": 0.51 + }, + { + "age": 43, + "cost": 21.55, + "country": "CN", + "price": 52, + "project": "beats", + "state": "running", + "time": 1463468400000, + "username": "rphillipskq", + "percent_uptime": 0.37 + }, + { + "age": 18, + "cost": 23.64, + "country": "RU", + "price": 62, + "project": "opbeat", + "state": "start", + "time": 1486882800000, + "username": "jnicholskr", + "percent_uptime": 0.65 + }, + { + "age": 54, + "cost": 22.83, + "country": "PT", + "price": 47, + "project": "machine-learning", + "state": "done", + "time": 1490684400000, + "username": "rthomasks", + "percent_uptime": 0.03 + }, + { + "age": 68, + "cost": 22.98, + "country": "JP", + "price": 52, + "project": "machine-learning", + "state": "done", + "time": 1476082800000, + "username": "wdaykt", + "percent_uptime": 0.42 + }, + { + "age": 62, + "cost": 23.17, + "country": "FR", + "price": 67, + "project": "x-pack", + "state": "done", + "time": 1491548400000, + "username": "kboydku", + "percent_uptime": 0.81 + }, + { + "age": 66, + "cost": 21.87, + "country": "NI", + "price": 62, + "project": "elasticsearch", + "state": "running", + "time": 1484550000000, + "username": "kmillskv", + "percent_uptime": 0.33 + }, + { + "age": 77, + "cost": 24.15, + "country": "FR", + "price": 63, + "project": "logstash", + "state": "start", + "time": 1465282800000, + "username": "dporterkw", + "percent_uptime": 0.48 + }, + { + "age": 36, + "cost": 23.24, + "country": "BD", + "price": 43, + "project": "beats", + "state": "done", + "time": 1479193200000, + "username": "rbradleykx", + "percent_uptime": 0.53 + }, + { + "age": 75, + "cost": 23.8, + "country": "CA", + "price": 50, + "project": "machine-learning", + "state": "start", + "time": 1464246000000, + "username": "kbradleyky", + "percent_uptime": 0.9 + }, + { + "age": 72, + "cost": 23.15, + "country": "MD", + "price": 62, + "project": "kibana", + "state": "done", + "time": 1465887600000, + "username": "sortizkz", + "percent_uptime": 0.83 + }, + { + "age": 27, + "cost": 22.38, + "country": "PL", + "price": 51, + "project": "x-pack", + "state": "running", + "time": 1475823600000, + "username": "mrodriguezl0", + "percent_uptime": 0.8 + }, + { + "age": 56, + "cost": 22.82, + "country": "AZ", + "price": 64, + "project": "logstash", + "state": "done", + "time": 1470639600000, + "username": "pwatkinsl1", + "percent_uptime": 0.81 + }, + { + "age": 57, + "cost": 23.17, + "country": "FR", + "price": 62, + "project": "beats", + "state": "done", + "time": 1471158000000, + "username": "jbrooksl2", + "percent_uptime": 0.66 + }, + { + "age": 76, + "cost": 22.55, + "country": "FR", + "price": 69, + "project": "x-pack", + "state": "done", + "time": 1472194800000, + "username": "rgardnerl3", + "percent_uptime": 0.3 + }, + { + "age": 21, + "cost": 23.76, + "country": "SE", + "price": 60, + "project": "logstash", + "state": "start", + "time": 1471935600000, + "username": "adeanl4", + "percent_uptime": 0.5 + }, + { + "age": 64, + "cost": 24.01, + "country": "PL", + "price": 60, + "project": "beats", + "state": "start", + "time": 1471935600000, + "username": "wwarrenl5", + "percent_uptime": 0.68 + }, + { + "age": 58, + "cost": 22.33, + "country": "RU", + "price": 55, + "project": "kibana", + "state": "running", + "time": 1470553200000, + "username": "mellisl6", + "percent_uptime": 0.41 + }, + { + "age": 71, + "cost": 22.93, + "country": "RU", + "price": 53, + "project": "beats", + "state": "done", + "time": 1475564400000, + "username": "kwhitel7", + "percent_uptime": 0.99 + }, + { + "age": 75, + "cost": 24.37, + "country": "EE", + "price": 69, + "project": "machine-learning", + "state": "start", + "time": 1484550000000, + "username": "jburnsl8", + "percent_uptime": 0.89 + }, + { + "age": 74, + "cost": 22.96, + "country": "GR", + "price": 58, + "project": "opbeat", + "state": "done", + "time": 1478156400000, + "username": "dwillisl9", + "percent_uptime": 0.6 + }, + { + "age": 56, + "cost": 24.64, + "country": "US", + "price": 56, + "project": "logstash", + "state": "running", + "time": 1468134000000, + "username": "lfoxla", + "percent_uptime": 0.62 + }, + { + "age": 20, + "cost": 23, + "country": "FR", + "price": 54, + "project": "x-pack", + "state": "done", + "time": 1478934000000, + "username": "mreedlb", + "percent_uptime": 0.2 + }, + { + "age": 32, + "cost": 23.91, + "country": "GR", + "price": 58, + "project": "opbeat", + "state": "start", + "time": 1462086000000, + "username": "cpiercelc", + "percent_uptime": 0.76 + }, + { + "age": 68, + "cost": 22.7, + "country": "CA", + "price": 42, + "project": "machine-learning", + "state": "done", + "time": 1472194800000, + "username": "rreynoldsld", + "percent_uptime": 0.44 + }, + { + "age": 56, + "cost": 23.64, + "country": "PH", + "price": 64, + "project": "logstash", + "state": "start", + "time": 1489906800000, + "username": "mwilsonle", + "percent_uptime": 0.12 + }, + { + "age": 29, + "cost": 24.34, + "country": "PE", + "price": 53, + "project": "beats", + "state": "start", + "time": 1477292400000, + "username": "msimmonslf", + "percent_uptime": 0.16 + }, + { + "age": 23, + "cost": 23.55, + "country": "RU", + "price": 63, + "project": "kibana", + "state": "start", + "time": 1476601200000, + "username": "smyerslg", + "percent_uptime": 0.97 + }, + { + "age": 27, + "cost": 22.07, + "country": "PT", + "price": 52, + "project": "x-pack", + "state": "running", + "time": 1483513200000, + "username": "jowenslh", + "percent_uptime": 0.94 + }, + { + "age": 79, + "cost": 22.69, + "country": "ID", + "price": 54, + "project": "kibana", + "state": "done", + "time": 1470380400000, + "username": "dadamsli", + "percent_uptime": 0.71 + }, + { + "age": 40, + "cost": 22.55, + "country": "UA", + "price": 60, + "project": "machine-learning", + "state": "done", + "time": 1467356400000, + "username": "sdavislj", + "percent_uptime": 0.1 + }, + { + "age": 38, + "cost": 22.83, + "country": "CN", + "price": 49, + "project": "elasticsearch", + "state": "done", + "time": 1491634800000, + "username": "anguyenlk", + "percent_uptime": 0.04 + }, + { + "age": 45, + "cost": 22.83, + "country": "CD", + "price": 55, + "project": "elasticsearch", + "state": "done", + "time": 1474786800000, + "username": "bgreenell", + "percent_uptime": 0.02 + }, + { + "age": 77, + "cost": 23.5, + "country": "BR", + "price": 47, + "project": "logstash", + "state": "start", + "time": 1467183600000, + "username": "jfullerlm", + "percent_uptime": 0.87 + }, + { + "age": 73, + "cost": 23.12, + "country": "CN", + "price": 63, + "project": "elasticsearch", + "state": "done", + "time": 1474527600000, + "username": "jhernandezln", + "percent_uptime": 0.39 + }, + { + "age": 66, + "cost": 21.12, + "country": "BR", + "price": 66, + "project": "elasticsearch", + "state": "start", + "time": 1463554800000, + "username": "lcruzlo", + "percent_uptime": 0.36 + }, + { + "age": 48, + "cost": 23, + "country": "IR", + "price": 44, + "project": "x-pack", + "state": "done", + "time": 1475996400000, + "username": "afloreslp", + "percent_uptime": 0.22 + }, + { + "age": 75, + "cost": 24.27, + "country": "SI", + "price": 57, + "project": "machine-learning", + "state": "start", + "time": 1470898800000, + "username": "trichardslq", + "percent_uptime": 0.94 + }, + { + "age": 49, + "cost": 24.58, + "country": "PH", + "price": 64, + "project": "logstash", + "state": "running", + "time": 1471676400000, + "username": "lweaverlr", + "percent_uptime": 0.45 + }, + { + "age": 76, + "cost": 22.8, + "country": "KN", + "price": 46, + "project": "x-pack", + "state": "done", + "time": 1481094000000, + "username": "hjohnstonls", + "percent_uptime": 0.18 + }, + { + "age": 73, + "cost": 24.34, + "country": "JO", + "price": 69, + "project": "elasticsearch", + "state": "start", + "time": 1485327600000, + "username": "roliverlt", + "percent_uptime": 0.3 + }, + { + "age": 63, + "cost": 23.63, + "country": "RU", + "price": 51, + "project": "logstash", + "state": "start", + "time": 1481180400000, + "username": "jfernandezlu", + "percent_uptime": 0.56 + }, + { + "age": 51, + "cost": 23.79, + "country": "PH", + "price": 67, + "project": "kibana", + "state": "start", + "time": 1470985200000, + "username": "rpattersonlv", + "percent_uptime": 0.64 + }, + { + "age": 27, + "cost": 24.02, + "country": "CN", + "price": 42, + "project": "x-pack", + "state": "start", + "time": 1474354800000, + "username": "rburtonlw", + "percent_uptime": 0.95 + }, + { + "age": 60, + "cost": 22.32, + "country": "CO", + "price": 63, + "project": "opbeat", + "state": "running", + "time": 1481094000000, + "username": "ehickslx", + "percent_uptime": 0.4 + }, + { + "age": 70, + "cost": 22.92, + "country": "MX", + "price": 59, + "project": "logstash", + "state": "done", + "time": 1487833200000, + "username": "mstevensly", + "percent_uptime": 0.62 + }, + { + "age": 37, + "cost": 21.53, + "country": "PH", + "price": 55, + "project": "kibana", + "state": "running", + "time": 1486969200000, + "username": "cbutlerlz", + "percent_uptime": 0.93 + }, + { + "age": 34, + "cost": 22.3, + "country": "FR", + "price": 54, + "project": "x-pack", + "state": "running", + "time": 1472281200000, + "username": "kbarnesm0", + "percent_uptime": 0.57 + }, + { + "age": 43, + "cost": 22.29, + "country": "SV", + "price": 58, + "project": "beats", + "state": "running", + "time": 1479625200000, + "username": "ajohnstonm1", + "percent_uptime": 0.6 + }, + { + "age": 58, + "cost": 22.92, + "country": "ID", + "price": 57, + "project": "kibana", + "state": "done", + "time": 1488438000000, + "username": "afieldsm2", + "percent_uptime": 0.75 + }, + { + "age": 69, + "cost": 24.44, + "country": "PT", + "price": 52, + "project": "x-pack", + "state": "start", + "time": 1463209200000, + "username": "jgilbertm3", + "percent_uptime": 0.87 + }, + { + "age": 43, + "cost": 23.54, + "country": "KZ", + "price": 62, + "project": "beats", + "state": "start", + "time": 1474354800000, + "username": "sgarrettm4", + "percent_uptime": 0.9 + }, + { + "age": 31, + "cost": 22.92, + "country": "RU", + "price": 54, + "project": "elasticsearch", + "state": "done", + "time": 1478847600000, + "username": "hsimsm5", + "percent_uptime": 0.98 + }, + { + "age": 23, + "cost": 23.61, + "country": "MG", + "price": 65, + "project": "kibana", + "state": "start", + "time": 1467529200000, + "username": "ehallm6", + "percent_uptime": 0.52 + }, + { + "age": 35, + "cost": 22.2, + "country": "RU", + "price": 48, + "project": "logstash", + "state": "running", + "time": 1482476400000, + "username": "msimsm7", + "percent_uptime": 0.08 + }, + { + "age": 33, + "cost": 23.94, + "country": "PT", + "price": 42, + "project": "machine-learning", + "state": "start", + "time": 1489215600000, + "username": "djamesm8", + "percent_uptime": 0.09 + }, + { + "age": 65, + "cost": 21.95, + "country": "RU", + "price": 61, + "project": "kibana", + "state": "running", + "time": 1465369200000, + "username": "ahansonm9", + "percent_uptime": 0.9 + }, + { + "age": 31, + "cost": 21.43, + "country": "CN", + "price": 65, + "project": "elasticsearch", + "state": "start", + "time": 1491634800000, + "username": "whunterma", + "percent_uptime": 0.95 + }, + { + "age": 36, + "cost": 23.01, + "country": "ET", + "price": 62, + "project": "beats", + "state": "done", + "time": 1462258800000, + "username": "jstanleymb", + "percent_uptime": 0.65 + }, + { + "age": 52, + "cost": 23.95, + "country": "ID", + "price": 50, + "project": "elasticsearch", + "state": "start", + "time": 1482217200000, + "username": "ngriffinmc", + "percent_uptime": 0.38 + }, + { + "age": 63, + "cost": 23.27, + "country": "SE", + "price": 66, + "project": "logstash", + "state": "done", + "time": 1474354800000, + "username": "talexandermd", + "percent_uptime": 0.64 + }, + { + "age": 68, + "cost": 24.56, + "country": "MX", + "price": 56, + "project": "machine-learning", + "state": "running", + "time": 1481266800000, + "username": "tgonzalezme", + "percent_uptime": 0.24 + }, + { + "age": 78, + "cost": 23.07, + "country": "RU", + "price": 61, + "project": "beats", + "state": "done", + "time": 1478761200000, + "username": "sfreemanmf", + "percent_uptime": 0.25 + }, + { + "age": 65, + "cost": 24.37, + "country": "CN", + "price": 54, + "project": "kibana", + "state": "start", + "time": 1481094000000, + "username": "hhuntmg", + "percent_uptime": 0.78 + }, + { + "age": 65, + "cost": 21.48, + "country": "CZ", + "price": 47, + "project": "kibana", + "state": "start", + "time": 1476342000000, + "username": "sdeanmh", + "percent_uptime": 0.48 + }, + { + "age": 21, + "cost": 23.25, + "country": "RU", + "price": 62, + "project": "logstash", + "state": "done", + "time": 1461567600000, + "username": "kellismi", + "percent_uptime": 0.62 + }, + { + "age": 76, + "cost": 23.03, + "country": "VN", + "price": 59, + "project": "x-pack", + "state": "done", + "time": 1487401200000, + "username": "emillermj", + "percent_uptime": 0.19 + }, + { + "age": 41, + "cost": 23.05, + "country": "PH", + "price": 63, + "project": "x-pack", + "state": "done", + "time": 1462518000000, + "username": "mbaileymk", + "percent_uptime": 0.84 + }, + { + "age": 50, + "cost": 23.57, + "country": "US", + "price": 56, + "project": "beats", + "state": "start", + "time": 1477724400000, + "username": "rfosterml", + "percent_uptime": 0.78 + }, + { + "age": 21, + "cost": 23.43, + "country": "UA", + "price": 69, + "project": "logstash", + "state": "done", + "time": 1486191600000, + "username": "praymm", + "percent_uptime": 0.76 + }, + { + "age": 25, + "cost": 22.65, + "country": "TH", + "price": 56, + "project": "opbeat", + "state": "done", + "time": 1475046000000, + "username": "shuntmn", + "percent_uptime": 0.61 + }, + { + "age": 69, + "cost": 22.23, + "country": "PH", + "price": 63, + "project": "x-pack", + "state": "running", + "time": 1468047600000, + "username": "aromeromo", + "percent_uptime": 0.01 + }, + { + "age": 28, + "cost": 24.8, + "country": "MY", + "price": 44, + "project": "logstash", + "state": "running", + "time": 1476428400000, + "username": "lmeyermp", + "percent_uptime": 0.97 + }, + { + "age": 72, + "cost": 22.49, + "country": "CZ", + "price": 46, + "project": "kibana", + "state": "running", + "time": 1482130800000, + "username": "jreynoldsmq", + "percent_uptime": 0.35 + }, + { + "age": 50, + "cost": 21.4, + "country": "MA", + "price": 38, + "project": "beats", + "state": "start", + "time": 1477119600000, + "username": "bfieldsmr", + "percent_uptime": 0.61 + }, + { + "age": 56, + "cost": 22.34, + "country": "GR", + "price": 53, + "project": "logstash", + "state": "running", + "time": 1461826800000, + "username": "jnguyenms", + "percent_uptime": 0.24 + }, + { + "age": 64, + "cost": 22.22, + "country": "CO", + "price": 62, + "project": "beats", + "state": "running", + "time": 1464678000000, + "username": "tchapmanmt", + "percent_uptime": 0.97 + }, + { + "age": 20, + "cost": 23.03, + "country": "CN", + "price": 61, + "project": "x-pack", + "state": "done", + "time": 1489042800000, + "username": "ajacobsmu", + "percent_uptime": 0.71 + }, + { + "age": 18, + "cost": 23.43, + "country": "CN", + "price": 54, + "project": "opbeat", + "state": "done", + "time": 1460271600000, + "username": "kphillipsmv", + "percent_uptime": 0.29 + }, + { + "age": 30, + "cost": 23.6, + "country": "CO", + "price": 67, + "project": "kibana", + "state": "start", + "time": 1467961200000, + "username": "glongmw", + "percent_uptime": 0.51 + }, + { + "age": 53, + "cost": 23.57, + "country": "PH", + "price": 52, + "project": "opbeat", + "state": "start", + "time": 1479625200000, + "username": "lmitchellmx", + "percent_uptime": 0.99 + }, + { + "age": 68, + "cost": 24.13, + "country": "PL", + "price": 53, + "project": "machine-learning", + "state": "start", + "time": 1486710000000, + "username": "jcarrollmy", + "percent_uptime": 0.14 + }, + { + "age": 55, + "cost": 21.96, + "country": "CN", + "price": 57, + "project": "x-pack", + "state": "running", + "time": 1490079600000, + "username": "wspencermz", + "percent_uptime": 0.48 + }, + { + "age": 35, + "cost": 21.84, + "country": "NO", + "price": 71, + "project": "logstash", + "state": "running", + "time": 1460271600000, + "username": "jfloresn0", + "percent_uptime": 0.8 + }, + { + "age": 34, + "cost": 23.2, + "country": "BR", + "price": 53, + "project": "x-pack", + "state": "done", + "time": 1486969200000, + "username": "jramirezn1", + "percent_uptime": 0.85 + }, + { + "age": 73, + "cost": 24.19, + "country": "CN", + "price": 52, + "project": "elasticsearch", + "state": "start", + "time": 1487919600000, + "username": "plarsonn2", + "percent_uptime": 0.69 + }, + { + "age": 58, + "cost": 23.32, + "country": "PH", + "price": 51, + "project": "kibana", + "state": "done", + "time": 1487055600000, + "username": "mreidn3", + "percent_uptime": 0.83 + }, + { + "age": 21, + "cost": 22.42, + "country": "CN", + "price": 49, + "project": "logstash", + "state": "running", + "time": 1463295600000, + "username": "sfraziern4", + "percent_uptime": 0.98 + }, + { + "age": 39, + "cost": 23.2, + "country": "IT", + "price": 52, + "project": "opbeat", + "state": "done", + "time": 1467442800000, + "username": "agarcian5", + "percent_uptime": 0.82 + }, + { + "age": 50, + "cost": 22.33, + "country": "PL", + "price": 52, + "project": "beats", + "state": "running", + "time": 1473145200000, + "username": "jryann6", + "percent_uptime": 0.92 + }, + { + "age": 43, + "cost": 23, + "country": "IR", + "price": 61, + "project": "beats", + "state": "done", + "time": 1475823600000, + "username": "wmyersn7", + "percent_uptime": 0.56 + }, + { + "age": 67, + "cost": 22.35, + "country": "ID", + "price": 55, + "project": "opbeat", + "state": "running", + "time": 1485327600000, + "username": "btuckern8", + "percent_uptime": 0.26 + }, + { + "age": 50, + "cost": 23.54, + "country": "FR", + "price": 60, + "project": "beats", + "state": "start", + "time": 1489474800000, + "username": "agarcian9", + "percent_uptime": 0.99 + }, + { + "age": 27, + "cost": 23.86, + "country": "RU", + "price": 44, + "project": "x-pack", + "state": "start", + "time": 1488783600000, + "username": "dcampbellna", + "percent_uptime": 0.88 + }, + { + "age": 27, + "cost": 23.1, + "country": "FR", + "price": 52, + "project": "x-pack", + "state": "done", + "time": 1477724400000, + "username": "nwarrennb", + "percent_uptime": 0.93 + }, + { + "age": 33, + "cost": 22.7, + "country": "HU", + "price": 51, + "project": "machine-learning", + "state": "done", + "time": 1474182000000, + "username": "ajenkinsnc", + "percent_uptime": 0.66 + }, + { + "age": 26, + "cost": 23.57, + "country": "PE", + "price": 47, + "project": "machine-learning", + "state": "start", + "time": 1487660400000, + "username": "crichardsnd", + "percent_uptime": 0.18 + }, + { + "age": 39, + "cost": 23.16, + "country": "CN", + "price": 62, + "project": "opbeat", + "state": "done", + "time": 1462431600000, + "username": "edavisne", + "percent_uptime": 0.66 + }, + { + "age": 43, + "cost": 22.96, + "country": "ID", + "price": 71, + "project": "beats", + "state": "done", + "time": 1468825200000, + "username": "cbaileynf", + "percent_uptime": 0.58 + }, + { + "age": 75, + "cost": 23.09, + "country": "PL", + "price": 58, + "project": "machine-learning", + "state": "done", + "time": 1481871600000, + "username": "cpetersng", + "percent_uptime": 0.73 + }, + { + "age": 38, + "cost": 23.48, + "country": "MA", + "price": 53, + "project": "elasticsearch", + "state": "done", + "time": 1462086000000, + "username": "jlanenh", + "percent_uptime": 0.69 + }, + { + "age": 67, + "cost": 23.05, + "country": "CO", + "price": 50, + "project": "opbeat", + "state": "done", + "time": 1476169200000, + "username": "dsimmonsni", + "percent_uptime": 0.05 + }, + { + "age": 47, + "cost": 24.1, + "country": "VN", + "price": 56, + "project": "machine-learning", + "state": "start", + "time": 1490770800000, + "username": "kwarrennj", + "percent_uptime": 0.05 + }, + { + "age": 39, + "cost": 22.49, + "country": "ID", + "price": 69, + "project": "opbeat", + "state": "running", + "time": 1476255600000, + "username": "ptorresnk", + "percent_uptime": 0.43 + }, + { + "age": 78, + "cost": 22.26, + "country": "IR", + "price": 71, + "project": "beats", + "state": "running", + "time": 1489647600000, + "username": "aramireznl", + "percent_uptime": 0.64 + }, + { + "age": 63, + "cost": 22.76, + "country": "AM", + "price": 57, + "project": "logstash", + "state": "done", + "time": 1466665200000, + "username": "jjenkinsnm", + "percent_uptime": 0.69 + }, + { + "age": 28, + "cost": 21.97, + "country": "BR", + "price": 51, + "project": "logstash", + "state": "running", + "time": 1466578800000, + "username": "swalkernn", + "percent_uptime": 0.17 + }, + { + "age": 65, + "cost": 24.83, + "country": "RU", + "price": 45, + "project": "kibana", + "state": "running", + "time": 1486882800000, + "username": "brobertsno", + "percent_uptime": 0.39 + }, + { + "age": 59, + "cost": 22.21, + "country": "CN", + "price": 69, + "project": "elasticsearch", + "state": "running", + "time": 1490943600000, + "username": "bberrynp", + "percent_uptime": 0.97 + }, + { + "age": 62, + "cost": 23.66, + "country": "CN", + "price": 60, + "project": "x-pack", + "state": "start", + "time": 1462777200000, + "username": "lrodrigueznq", + "percent_uptime": 0.3 + }, + { + "age": 77, + "cost": 23.61, + "country": "CN", + "price": 46, + "project": "logstash", + "state": "start", + "time": 1471244400000, + "username": "jreidnr", + "percent_uptime": 0.09 + }, + { + "age": 18, + "cost": 23.58, + "country": "TZ", + "price": 62, + "project": "opbeat", + "state": "start", + "time": 1475132400000, + "username": "jmurrayns", + "percent_uptime": 0.01 + }, + { + "age": 47, + "cost": 24.46, + "country": "VE", + "price": 67, + "project": "machine-learning", + "state": "start", + "time": 1468911600000, + "username": "gtaylornt", + "percent_uptime": 0.65 + }, + { + "age": 23, + "cost": 21.78, + "country": "ID", + "price": 63, + "project": "kibana", + "state": "running", + "time": 1486191600000, + "username": "rgriffinnu", + "percent_uptime": 0.51 + }, + { + "age": 35, + "cost": 23.07, + "country": "IL", + "price": 59, + "project": "logstash", + "state": "done", + "time": 1466838000000, + "username": "sfieldsnv", + "percent_uptime": 0.91 + }, + { + "age": 55, + "cost": 23.21, + "country": "CN", + "price": 69, + "project": "x-pack", + "state": "done", + "time": 1476601200000, + "username": "ereidnw", + "percent_uptime": 0.87 + }, + { + "age": 23, + "cost": 24.26, + "country": "PL", + "price": 45, + "project": "kibana", + "state": "start", + "time": 1464678000000, + "username": "bhawkinsnx", + "percent_uptime": 0.92 + }, + { + "age": 18, + "cost": 22.98, + "country": "CN", + "price": 65, + "project": "opbeat", + "state": "done", + "time": 1474441200000, + "username": "cgrayny", + "percent_uptime": 0.73 + }, + { + "age": 66, + "cost": 22.83, + "country": "MX", + "price": 47, + "project": "elasticsearch", + "state": "done", + "time": 1470466800000, + "username": "fhughesnz", + "percent_uptime": 0.14 + }, + { + "age": 57, + "cost": 22.92, + "country": "NG", + "price": 53, + "project": "beats", + "state": "done", + "time": 1470466800000, + "username": "lwelcho0", + "percent_uptime": 0.53 + }, + { + "age": 80, + "cost": 23.97, + "country": "SE", + "price": 61, + "project": "elasticsearch", + "state": "start", + "time": 1491375600000, + "username": "jwatkinso1", + "percent_uptime": 0.09 + }, + { + "age": 46, + "cost": 23.36, + "country": "JP", + "price": 59, + "project": "opbeat", + "state": "done", + "time": 1481353200000, + "username": "awoodo2", + "percent_uptime": 0.7 + }, + { + "age": 74, + "cost": 21.17, + "country": "CN", + "price": 65, + "project": "opbeat", + "state": "start", + "time": 1486969200000, + "username": "pmatthewso3", + "percent_uptime": 0.48 + }, + { + "age": 36, + "cost": 22.96, + "country": "CZ", + "price": 55, + "project": "beats", + "state": "done", + "time": 1474009200000, + "username": "rhudsono4", + "percent_uptime": 0.63 + }, + { + "age": 62, + "cost": 21.58, + "country": "SE", + "price": 57, + "project": "x-pack", + "state": "running", + "time": 1481094000000, + "username": "rwardo5", + "percent_uptime": 0.38 + }, + { + "age": 54, + "cost": 24.58, + "country": "CN", + "price": 65, + "project": "machine-learning", + "state": "running", + "time": 1486882800000, + "username": "cgomezo6", + "percent_uptime": 0.08 + }, + { + "age": 58, + "cost": 22.56, + "country": "FR", + "price": 52, + "project": "kibana", + "state": "done", + "time": 1468393200000, + "username": "jburtono7", + "percent_uptime": 0.8 + }, + { + "age": 47, + "cost": 23.38, + "country": "IE", + "price": 45, + "project": "machine-learning", + "state": "done", + "time": 1461567600000, + "username": "dcarpentero8", + "percent_uptime": 0.05 + }, + { + "age": 41, + "cost": 23.42, + "country": "ID", + "price": 46, + "project": "x-pack", + "state": "done", + "time": 1485154800000, + "username": "thunto9", + "percent_uptime": 0.09 + }, + { + "age": 47, + "cost": 23.2, + "country": "PL", + "price": 53, + "project": "machine-learning", + "state": "done", + "time": 1489647600000, + "username": "ssnyderoa", + "percent_uptime": 0.03 + }, + { + "age": 80, + "cost": 22.7, + "country": "US", + "price": 57, + "project": "elasticsearch", + "state": "done", + "time": 1465282800000, + "username": "mkimob", + "percent_uptime": 0.67 + }, + { + "age": 22, + "cost": 21.66, + "country": "PH", + "price": 43, + "project": "beats", + "state": "running", + "time": 1462086000000, + "username": "ehansonoc", + "percent_uptime": 0.31 + }, + { + "age": 37, + "cost": 22.29, + "country": "RU", + "price": 56, + "project": "kibana", + "state": "running", + "time": 1463036400000, + "username": "wspencerod", + "percent_uptime": 0.9 + }, + { + "age": 65, + "cost": 23.28, + "country": "ES", + "price": 61, + "project": "kibana", + "state": "done", + "time": 1478934000000, + "username": "khansenoe", + "percent_uptime": 0.02 + }, + { + "age": 64, + "cost": 24.75, + "country": "JP", + "price": 63, + "project": "beats", + "state": "running", + "time": 1473836400000, + "username": "jcruzof", + "percent_uptime": 0.04 + }, + { + "age": 51, + "cost": 22.73, + "country": "PE", + "price": 54, + "project": "kibana", + "state": "done", + "time": 1467097200000, + "username": "tkelleyog", + "percent_uptime": 0.53 + }, + { + "age": 76, + "cost": 23.04, + "country": "RU", + "price": 51, + "project": "x-pack", + "state": "done", + "time": 1468998000000, + "username": "jbrooksoh", + "percent_uptime": 0.2 + }, + { + "age": 31, + "cost": 23.49, + "country": "PH", + "price": 55, + "project": "elasticsearch", + "state": "done", + "time": 1465542000000, + "username": "ncooperoi", + "percent_uptime": 0.4 + }, + { + "age": 78, + "cost": 23.66, + "country": "JP", + "price": 59, + "project": "beats", + "state": "start", + "time": 1475478000000, + "username": "ddiazoj", + "percent_uptime": 0.93 + }, + { + "age": 64, + "cost": 24.02, + "country": "HN", + "price": 57, + "project": "beats", + "state": "start", + "time": 1462345200000, + "username": "kpowellok", + "percent_uptime": 0.9 + }, + { + "age": 72, + "cost": 24.54, + "country": "ID", + "price": 60, + "project": "kibana", + "state": "running", + "time": 1476514800000, + "username": "pporterol", + "percent_uptime": 0.27 + }, + { + "age": 57, + "cost": 21.5, + "country": "DE", + "price": 59, + "project": "beats", + "state": "running", + "time": 1481266800000, + "username": "hgarzaom", + "percent_uptime": 0.52 + }, + { + "age": 71, + "cost": 22.81, + "country": "ZA", + "price": 45, + "project": "beats", + "state": "done", + "time": 1480748400000, + "username": "wevanson", + "percent_uptime": 0.38 + }, + { + "age": 50, + "cost": 24.02, + "country": "GR", + "price": 70, + "project": "beats", + "state": "start", + "time": 1470985200000, + "username": "jlaneoo", + "percent_uptime": 0.51 + }, + { + "age": 23, + "cost": 21.49, + "country": "PH", + "price": 49, + "project": "kibana", + "state": "start", + "time": 1467270000000, + "username": "gfergusonop", + "percent_uptime": 0.91 + }, + { + "age": 23, + "cost": 22.64, + "country": "ID", + "price": 60, + "project": "kibana", + "state": "done", + "time": 1482303600000, + "username": "rwillisoq", + "percent_uptime": 0.26 + }, + { + "age": 80, + "cost": 23.37, + "country": "CN", + "price": 68, + "project": "elasticsearch", + "state": "done", + "time": 1490598000000, + "username": "nfulleror", + "percent_uptime": 0.86 + }, + { + "age": 65, + "cost": 23.47, + "country": "SE", + "price": 48, + "project": "kibana", + "state": "done", + "time": 1484463600000, + "username": "tellisos", + "percent_uptime": 0.92 + }, + { + "age": 38, + "cost": 24.55, + "country": "RS", + "price": 53, + "project": "elasticsearch", + "state": "running", + "time": 1461654000000, + "username": "mfosterot", + "percent_uptime": 0.55 + }, + { + "age": 70, + "cost": 21.01, + "country": "CN", + "price": 66, + "project": "logstash", + "state": "start", + "time": 1484895600000, + "username": "astevensou", + "percent_uptime": 0.08 + }, + { + "age": 65, + "cost": 23.49, + "country": "TH", + "price": 51, + "project": "kibana", + "state": "done", + "time": 1468911600000, + "username": "bdixonov", + "percent_uptime": 0.05 + }, + { + "age": 36, + "cost": 24.22, + "country": "ID", + "price": 45, + "project": "beats", + "state": "start", + "time": 1481785200000, + "username": "fbrooksow", + "percent_uptime": 0.06 + }, + { + "age": 61, + "cost": 23.65, + "country": "UA", + "price": 48, + "project": "machine-learning", + "state": "start", + "time": 1479798000000, + "username": "pbryantox", + "percent_uptime": 0.45 + }, + { + "age": 44, + "cost": 23.09, + "country": "CN", + "price": 53, + "project": "kibana", + "state": "done", + "time": 1471417200000, + "username": "jsullivanoy", + "percent_uptime": 0.45 + }, + { + "age": 27, + "cost": 23.29, + "country": "ID", + "price": 49, + "project": "x-pack", + "state": "done", + "time": 1491375600000, + "username": "revansoz", + "percent_uptime": 0.4 + }, + { + "age": 38, + "cost": 23.81, + "country": "LU", + "price": 56, + "project": "elasticsearch", + "state": "start", + "time": 1465887600000, + "username": "schavezp0", + "percent_uptime": 0.09 + }, + { + "age": 64, + "cost": 23.07, + "country": "CN", + "price": 56, + "project": "beats", + "state": "done", + "time": 1462518000000, + "username": "imorganp1", + "percent_uptime": 0.75 + }, + { + "age": 80, + "cost": 21.95, + "country": "MX", + "price": 49, + "project": "elasticsearch", + "state": "running", + "time": 1468998000000, + "username": "sfullerp2", + "percent_uptime": 0.25 + }, + { + "age": 36, + "cost": 21.16, + "country": "ID", + "price": 56, + "project": "beats", + "state": "start", + "time": 1491202800000, + "username": "hjonesp3", + "percent_uptime": 0.64 + }, + { + "age": 51, + "cost": 23.67, + "country": "SI", + "price": 56, + "project": "kibana", + "state": "start", + "time": 1472454000000, + "username": "abaileyp4", + "percent_uptime": 0.22 + }, + { + "age": 35, + "cost": 23.26, + "country": "IS", + "price": 69, + "project": "logstash", + "state": "done", + "time": 1472540400000, + "username": "chowardp5", + "percent_uptime": 0.4 + }, + { + "age": 72, + "cost": 22.88, + "country": "ZA", + "price": 50, + "project": "kibana", + "state": "done", + "time": 1474441200000, + "username": "jandersonp6", + "percent_uptime": 0.1 + }, + { + "age": 25, + "cost": 23.37, + "country": "RU", + "price": 61, + "project": "opbeat", + "state": "done", + "time": 1472022000000, + "username": "pclarkp7", + "percent_uptime": 0.23 + }, + { + "age": 58, + "cost": 23.99, + "country": "NG", + "price": 48, + "project": "kibana", + "state": "start", + "time": 1484722800000, + "username": "trichardsonp8", + "percent_uptime": 0.87 + }, + { + "age": 63, + "cost": 21.74, + "country": "MY", + "price": 50, + "project": "logstash", + "state": "running", + "time": 1467010800000, + "username": "jleep9", + "percent_uptime": 0.19 + }, + { + "age": 50, + "cost": 22.3, + "country": "SY", + "price": 63, + "project": "beats", + "state": "running", + "time": 1491116400000, + "username": "gbowmanpa", + "percent_uptime": 0.46 + }, + { + "age": 31, + "cost": 22.65, + "country": "CN", + "price": 52, + "project": "elasticsearch", + "state": "done", + "time": 1483686000000, + "username": "hburtonpb", + "percent_uptime": 0.44 + }, + { + "age": 61, + "cost": 22.95, + "country": "SI", + "price": 61, + "project": "machine-learning", + "state": "done", + "time": 1489129200000, + "username": "ewoodspc", + "percent_uptime": 0.04 + }, + { + "age": 61, + "cost": 23.15, + "country": "KE", + "price": 53, + "project": "machine-learning", + "state": "done", + "time": 1467529200000, + "username": "hhawkinspd", + "percent_uptime": 0.69 + }, + { + "age": 76, + "cost": 22.12, + "country": "CN", + "price": 65, + "project": "x-pack", + "state": "running", + "time": 1488178800000, + "username": "ebowmanpe", + "percent_uptime": 0.51 + }, + { + "age": 68, + "cost": 24.14, + "country": "LK", + "price": 57, + "project": "machine-learning", + "state": "start", + "time": 1463554800000, + "username": "bflorespf", + "percent_uptime": 0.16 + }, + { + "age": 33, + "cost": 22.67, + "country": "TH", + "price": 47, + "project": "machine-learning", + "state": "done", + "time": 1464246000000, + "username": "plawsonpg", + "percent_uptime": 0.89 + }, + { + "age": 27, + "cost": 20.8, + "country": "SE", + "price": 69, + "project": "x-pack", + "state": "start", + "time": 1490338800000, + "username": "hfullerph", + "percent_uptime": 0.04 + }, + { + "age": 32, + "cost": 21.8, + "country": "AM", + "price": 56, + "project": "opbeat", + "state": "running", + "time": 1471330800000, + "username": "tfranklinpi", + "percent_uptime": 0.2 + }, + { + "age": 42, + "cost": 23.23, + "country": "BR", + "price": 54, + "project": "logstash", + "state": "done", + "time": 1462086000000, + "username": "jwebbpj", + "percent_uptime": 0.29 + }, + { + "age": 49, + "cost": 24.36, + "country": "MK", + "price": 45, + "project": "logstash", + "state": "start", + "time": 1462345200000, + "username": "cwarrenpk", + "percent_uptime": 0.11 + }, + { + "age": 51, + "cost": 24.68, + "country": "PH", + "price": 54, + "project": "kibana", + "state": "running", + "time": 1463986800000, + "username": "dmurphypl", + "percent_uptime": 0.45 + }, + { + "age": 63, + "cost": 22.54, + "country": "RS", + "price": 62, + "project": "logstash", + "state": "done", + "time": 1472454000000, + "username": "bwestpm", + "percent_uptime": 0.48 + }, + { + "age": 50, + "cost": 24.51, + "country": "AU", + "price": 40, + "project": "beats", + "state": "running", + "time": 1470380400000, + "username": "bhernandezpn", + "percent_uptime": 0.7 + }, + { + "age": 51, + "cost": 23.23, + "country": "JP", + "price": 70, + "project": "kibana", + "state": "done", + "time": 1489474800000, + "username": "jalexanderpo", + "percent_uptime": 0.56 + }, + { + "age": 73, + "cost": 22.16, + "country": "AF", + "price": 63, + "project": "elasticsearch", + "state": "running", + "time": 1476946800000, + "username": "dmorganpp", + "percent_uptime": 0.73 + }, + { + "age": 78, + "cost": 22.69, + "country": "FI", + "price": 59, + "project": "beats", + "state": "done", + "time": 1482908400000, + "username": "lweaverpq", + "percent_uptime": 0.61 + }, + { + "age": 65, + "cost": 21.09, + "country": "BI", + "price": 58, + "project": "kibana", + "state": "start", + "time": 1460876400000, + "username": "jbaileypr", + "percent_uptime": 0.99 + }, + { + "age": 32, + "cost": 23.25, + "country": "RU", + "price": 50, + "project": "opbeat", + "state": "done", + "time": 1471244400000, + "username": "kreyesps", + "percent_uptime": 0.12 + }, + { + "age": 27, + "cost": 22.53, + "country": "PT", + "price": 61, + "project": "x-pack", + "state": "done", + "time": 1487919600000, + "username": "mlynchpt", + "percent_uptime": 0.84 + }, + { + "age": 59, + "cost": 23.47, + "country": "CO", + "price": 48, + "project": "elasticsearch", + "state": "done", + "time": 1465196400000, + "username": "tpiercepu", + "percent_uptime": 0.15 + }, + { + "age": 77, + "cost": 23.02, + "country": "SE", + "price": 47, + "project": "logstash", + "state": "done", + "time": 1480489200000, + "username": "ewebbpv", + "percent_uptime": 0.63 + }, + { + "age": 44, + "cost": 24.28, + "country": "RU", + "price": 64, + "project": "kibana", + "state": "start", + "time": 1480316400000, + "username": "drosspw", + "percent_uptime": 0.56 + }, + { + "age": 34, + "cost": 22.06, + "country": "IR", + "price": 58, + "project": "x-pack", + "state": "running", + "time": 1476601200000, + "username": "jmccoypx", + "percent_uptime": 0.21 + }, + { + "age": 60, + "cost": 21.06, + "country": "AR", + "price": 40, + "project": "opbeat", + "state": "start", + "time": 1467874800000, + "username": "bwhitepy", + "percent_uptime": 0.96 + }, + { + "age": 33, + "cost": 22.08, + "country": "BR", + "price": 44, + "project": "machine-learning", + "state": "running", + "time": 1480662000000, + "username": "jkellypz", + "percent_uptime": 0.55 + }, + { + "age": 59, + "cost": 23.5, + "country": "CZ", + "price": 54, + "project": "elasticsearch", + "state": "start", + "time": 1473231600000, + "username": "darmstrongq0", + "percent_uptime": 0.02 + }, + { + "age": 73, + "cost": 21.15, + "country": "GR", + "price": 52, + "project": "elasticsearch", + "state": "start", + "time": 1481612400000, + "username": "dperryq1", + "percent_uptime": 0.75 + }, + { + "age": 49, + "cost": 22.39, + "country": "TH", + "price": 54, + "project": "logstash", + "state": "running", + "time": 1488178800000, + "username": "dschmidtq2", + "percent_uptime": 0.67 + }, + { + "age": 65, + "cost": 24.42, + "country": "CZ", + "price": 54, + "project": "kibana", + "state": "start", + "time": 1468220400000, + "username": "aandrewsq3", + "percent_uptime": 0.35 + }, + { + "age": 49, + "cost": 21.22, + "country": "GH", + "price": 60, + "project": "logstash", + "state": "start", + "time": 1491030000000, + "username": "ameyerq4", + "percent_uptime": 0.9 + }, + { + "age": 39, + "cost": 23.53, + "country": "ID", + "price": 64, + "project": "opbeat", + "state": "start", + "time": 1484463600000, + "username": "dwoodsq5", + "percent_uptime": 0.96 + }, + { + "age": 19, + "cost": 23.49, + "country": "CN", + "price": 51, + "project": "machine-learning", + "state": "done", + "time": 1467183600000, + "username": "jmooreq6", + "percent_uptime": 0.25 + }, + { + "age": 27, + "cost": 23.14, + "country": "NG", + "price": 56, + "project": "x-pack", + "state": "done", + "time": 1482822000000, + "username": "sspencerq7", + "percent_uptime": 0.39 + }, + { + "age": 30, + "cost": 23.07, + "country": "MX", + "price": 66, + "project": "kibana", + "state": "done", + "time": 1481785200000, + "username": "jtorresq8", + "percent_uptime": 0.26 + }, + { + "age": 67, + "cost": 23.06, + "country": "DO", + "price": 49, + "project": "opbeat", + "state": "done", + "time": 1466924400000, + "username": "mwestq9", + "percent_uptime": 0.6 + }, + { + "age": 38, + "cost": 23.48, + "country": "CN", + "price": 61, + "project": "elasticsearch", + "state": "done", + "time": 1487487600000, + "username": "mnguyenqa", + "percent_uptime": 0.55 + }, + { + "age": 68, + "cost": 23.41, + "country": "MX", + "price": 52, + "project": "machine-learning", + "state": "done", + "time": 1476169200000, + "username": "mroseqb", + "percent_uptime": 0.85 + }, + { + "age": 25, + "cost": 22.11, + "country": "TH", + "price": 39, + "project": "opbeat", + "state": "running", + "time": 1477983600000, + "username": "mjacksonqc", + "percent_uptime": 0.58 + }, + { + "age": 20, + "cost": 22.46, + "country": "ID", + "price": 55, + "project": "x-pack", + "state": "running", + "time": 1487833200000, + "username": "cyoungqd", + "percent_uptime": 0.01 + }, + { + "age": 64, + "cost": 21.55, + "country": "ET", + "price": 60, + "project": "beats", + "state": "running", + "time": 1464850800000, + "username": "cjenkinsqe", + "percent_uptime": 0.68 + }, + { + "age": 25, + "cost": 22.36, + "country": "SE", + "price": 50, + "project": "opbeat", + "state": "running", + "time": 1482822000000, + "username": "jhartqf", + "percent_uptime": 0.18 + }, + { + "age": 45, + "cost": 23.73, + "country": "CN", + "price": 47, + "project": "elasticsearch", + "state": "start", + "time": 1465887600000, + "username": "cgutierrezqg", + "percent_uptime": 0.07 + }, + { + "age": 49, + "cost": 24.47, + "country": "CN", + "price": 63, + "project": "logstash", + "state": "start", + "time": 1487228400000, + "username": "pgarzaqh", + "percent_uptime": 0.49 + }, + { + "age": 72, + "cost": 21.43, + "country": "ID", + "price": 74, + "project": "kibana", + "state": "start", + "time": 1474959600000, + "username": "jbrownqi", + "percent_uptime": 0.92 + }, + { + "age": 48, + "cost": 22.55, + "country": "TH", + "price": 54, + "project": "x-pack", + "state": "done", + "time": 1462863600000, + "username": "jhartqj", + "percent_uptime": 0.18 + }, + { + "age": 80, + "cost": 23.91, + "country": "CN", + "price": 56, + "project": "elasticsearch", + "state": "start", + "time": 1488610800000, + "username": "dscottqk", + "percent_uptime": 0.37 + }, + { + "age": 54, + "cost": 23.68, + "country": "SE", + "price": 58, + "project": "machine-learning", + "state": "start", + "time": 1481785200000, + "username": "wlittleql", + "percent_uptime": 0.14 + }, + { + "age": 18, + "cost": 22.39, + "country": "PH", + "price": 49, + "project": "opbeat", + "state": "running", + "time": 1465974000000, + "username": "sfieldsqm", + "percent_uptime": 0.76 + }, + { + "age": 32, + "cost": 23.4, + "country": "CN", + "price": 66, + "project": "opbeat", + "state": "done", + "time": 1487833200000, + "username": "alarsonqn", + "percent_uptime": 0.42 + }, + { + "age": 71, + "cost": 22.45, + "country": "RU", + "price": 49, + "project": "beats", + "state": "running", + "time": 1487314800000, + "username": "dowensqo", + "percent_uptime": 0.62 + }, + { + "age": 68, + "cost": 22.67, + "country": "PE", + "price": 66, + "project": "machine-learning", + "state": "done", + "time": 1485673200000, + "username": "jolsonqp", + "percent_uptime": 0.73 + }, + { + "age": 45, + "cost": 21.87, + "country": "FR", + "price": 63, + "project": "elasticsearch", + "state": "running", + "time": 1483945200000, + "username": "galvarezqq", + "percent_uptime": 0.25 + }, + { + "age": 74, + "cost": 23.68, + "country": "BR", + "price": 51, + "project": "opbeat", + "state": "start", + "time": 1479279600000, + "username": "rcooperqr", + "percent_uptime": 0.14 + }, + { + "age": 21, + "cost": 22, + "country": "FR", + "price": 55, + "project": "logstash", + "state": "running", + "time": 1473922800000, + "username": "dclarkqs", + "percent_uptime": 0.67 + }, + { + "age": 48, + "cost": 21.99, + "country": "CN", + "price": 66, + "project": "x-pack", + "state": "running", + "time": 1463986800000, + "username": "rdunnqt", + "percent_uptime": 0.23 + }, + { + "age": 58, + "cost": 23.27, + "country": "CN", + "price": 63, + "project": "kibana", + "state": "done", + "time": 1470380400000, + "username": "jpetersqu", + "percent_uptime": 0.44 + }, + { + "age": 26, + "cost": 22.51, + "country": "CN", + "price": 59, + "project": "machine-learning", + "state": "done", + "time": 1476082800000, + "username": "nrobertsqv", + "percent_uptime": 0.4 + }, + { + "age": 29, + "cost": 23.92, + "country": "HT", + "price": 66, + "project": "beats", + "state": "start", + "time": 1490079600000, + "username": "jwestqw", + "percent_uptime": 0.28 + }, + { + "age": 69, + "cost": 23.67, + "country": "AR", + "price": 52, + "project": "x-pack", + "state": "start", + "time": 1475650800000, + "username": "awardqx", + "percent_uptime": 0.59 + }, + { + "age": 66, + "cost": 24.03, + "country": "US", + "price": 74, + "project": "elasticsearch", + "state": "start", + "time": 1479970800000, + "username": "tgilbertqy", + "percent_uptime": 1 + }, + { + "age": 30, + "cost": 24.41, + "country": "HN", + "price": 63, + "project": "kibana", + "state": "start", + "time": 1465455600000, + "username": "jstevensqz", + "percent_uptime": 0.71 + }, + { + "age": 43, + "cost": 22.71, + "country": "ID", + "price": 57, + "project": "beats", + "state": "done", + "time": 1489734000000, + "username": "kmeyerr0", + "percent_uptime": 0.96 + }, + { + "age": 19, + "cost": 23.65, + "country": "PL", + "price": 42, + "project": "machine-learning", + "state": "start", + "time": 1480143600000, + "username": "kpiercer1", + "percent_uptime": 0.76 + }, + { + "age": 48, + "cost": 24.15, + "country": "ID", + "price": 54, + "project": "x-pack", + "state": "start", + "time": 1481958000000, + "username": "dscottr2", + "percent_uptime": 0.76 + }, + { + "age": 19, + "cost": 22.23, + "country": "PT", + "price": 52, + "project": "machine-learning", + "state": "running", + "time": 1474700400000, + "username": "hstewartr3", + "percent_uptime": 0.14 + }, + { + "age": 22, + "cost": 22.95, + "country": "ID", + "price": 53, + "project": "beats", + "state": "done", + "time": 1482649200000, + "username": "ckimr4", + "percent_uptime": 0.09 + }, + { + "age": 26, + "cost": 24.6, + "country": "RU", + "price": 61, + "project": "machine-learning", + "state": "running", + "time": 1486278000000, + "username": "mgutierrezr5", + "percent_uptime": 0.62 + }, + { + "age": 22, + "cost": 25.56, + "country": "TH", + "price": 60, + "project": "beats", + "state": "done", + "time": 1460876400000, + "username": "hgrahamr6", + "percent_uptime": 0.77 + }, + { + "age": 57, + "cost": 21.5, + "country": "ID", + "price": 52, + "project": "beats", + "state": "running", + "time": 1461308400000, + "username": "dfosterr7", + "percent_uptime": 0.67 + }, + { + "age": 22, + "cost": 23.1, + "country": "CN", + "price": 39, + "project": "beats", + "state": "done", + "time": 1468911600000, + "username": "awebbr8", + "percent_uptime": 0.81 + }, + { + "age": 42, + "cost": 23.1, + "country": "GH", + "price": 62, + "project": "logstash", + "state": "done", + "time": 1488438000000, + "username": "lpetersr9", + "percent_uptime": 0.32 + }, + { + "age": 67, + "cost": 22.55, + "country": "ID", + "price": 54, + "project": "opbeat", + "state": "done", + "time": 1486450800000, + "username": "tpattersonra", + "percent_uptime": 0.65 + }, + { + "age": 76, + "cost": 21.94, + "country": "PL", + "price": 46, + "project": "x-pack", + "state": "running", + "time": 1476342000000, + "username": "rsimsrb", + "percent_uptime": 0.17 + }, + { + "age": 76, + "cost": 23.93, + "country": "VE", + "price": 52, + "project": "x-pack", + "state": "start", + "time": 1481612400000, + "username": "spetersonrc", + "percent_uptime": 0.8 + }, + { + "age": 61, + "cost": 22.17, + "country": "ID", + "price": 53, + "project": "machine-learning", + "state": "running", + "time": 1471330800000, + "username": "amontgomeryrd", + "percent_uptime": 0.91 + }, + { + "age": 60, + "cost": 22.7, + "country": "CN", + "price": 66, + "project": "opbeat", + "state": "done", + "time": 1465542000000, + "username": "swelchre", + "percent_uptime": 0.35 + }, + { + "age": 72, + "cost": 24.2, + "country": "FR", + "price": 59, + "project": "kibana", + "state": "start", + "time": 1467961200000, + "username": "cgordonrf", + "percent_uptime": 0.4 + }, + { + "age": 78, + "cost": 24.82, + "country": "NZ", + "price": 62, + "project": "beats", + "state": "running", + "time": 1462777200000, + "username": "dmartinezrg", + "percent_uptime": 0.85 + }, + { + "age": 62, + "cost": 22.55, + "country": "ID", + "price": 48, + "project": "x-pack", + "state": "done", + "time": 1490166000000, + "username": "cwashingtonrh", + "percent_uptime": 0.8 + }, + { + "age": 35, + "cost": 22.99, + "country": "ID", + "price": 60, + "project": "logstash", + "state": "done", + "time": 1475478000000, + "username": "cpayneri", + "percent_uptime": 0.02 + }, + { + "age": 68, + "cost": 22.32, + "country": "CN", + "price": 62, + "project": "machine-learning", + "state": "running", + "time": 1488092400000, + "username": "aperkinsrj", + "percent_uptime": 0.75 + }, + { + "age": 58, + "cost": 24.25, + "country": "RU", + "price": 57, + "project": "kibana", + "state": "start", + "time": 1463468400000, + "username": "swatkinsrk", + "percent_uptime": 0.14 + }, + { + "age": 77, + "cost": 23.67, + "country": "ID", + "price": 41, + "project": "logstash", + "state": "start", + "time": 1466146800000, + "username": "smoorerl", + "percent_uptime": 0.56 + }, + { + "age": 67, + "cost": 22.45, + "country": "ID", + "price": 52, + "project": "opbeat", + "state": "running", + "time": 1484895600000, + "username": "mlopezrm", + "percent_uptime": 0.93 + }, + { + "age": 49, + "cost": 24.46, + "country": "CN", + "price": 47, + "project": "logstash", + "state": "start", + "time": 1474959600000, + "username": "pshawrn", + "percent_uptime": 0.4 + }, + { + "age": 26, + "cost": 21.59, + "country": "CN", + "price": 45, + "project": "machine-learning", + "state": "running", + "time": 1482303600000, + "username": "rwagnerro", + "percent_uptime": 0.1 + }, + { + "age": 36, + "cost": 23.84, + "country": "BR", + "price": 44, + "project": "beats", + "state": "start", + "time": 1488006000000, + "username": "dmatthewsrp", + "percent_uptime": 0.56 + }, + { + "age": 46, + "cost": 23.65, + "country": "CN", + "price": 56, + "project": "opbeat", + "state": "start", + "time": 1476946800000, + "username": "btorresrq", + "percent_uptime": 0.48 + }, + { + "age": 49, + "cost": 22.57, + "country": "ID", + "price": 52, + "project": "logstash", + "state": "done", + "time": 1472367600000, + "username": "elawrencerr", + "percent_uptime": 0.9 + } +] diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/get_demo_rows.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/get_demo_rows.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/get_demo_rows.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/get_demo_rows.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/index.js new file mode 100644 index 0000000000000..41507eaae8e7f --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/index.js @@ -0,0 +1,69 @@ +/* + * 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 { sortBy } from 'lodash'; +import { queryDatatable } from '../../../../../common/lib/datatable/query'; +import { getDemoRows } from './get_demo_rows'; + +export const demodata = () => ({ + name: 'demodata', + aliases: [], + type: 'datatable', + help: 'A mock data set that includes project CI times with usernames, countries and run phases', + context: { + types: ['filter'], + }, + args: { + type: { + types: ['string', 'null'], + aliases: ['_'], + help: 'The name of the demo data set to use', + default: 'ci', + options: ['ci', 'shirts'], + }, + }, + fn: (context, args) => { + const demoRows = getDemoRows(args.type); + + let set = {}; + if (args.type === 'ci') { + set = { + columns: [ + { name: 'time', type: 'date' }, + { name: 'cost', type: 'number' }, + { name: 'username', type: 'string' }, + { name: 'price', type: 'number' }, + { name: 'age', type: 'number' }, + { name: 'country', type: 'string' }, + { name: 'state', type: 'string' }, + { name: 'project', type: 'string' }, + { name: 'percent_uptime', type: 'number' }, + ], + rows: sortBy(demoRows, 'time'), + }; + } else if (args.type === 'shirts') { + set = { + columns: [ + { name: 'size', type: 'string' }, + { name: 'color', type: 'string' }, + { name: 'price', type: 'number' }, + { name: 'cut', type: 'string' }, + ], + rows: demoRows, + }; + } + + const { columns, rows } = set; + return queryDatatable( + { + type: 'datatable', + columns, + rows, + }, + context + ); + }, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/shirts.json b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/shirts.json similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/shirts.json rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/demodata/shirts.json diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/escount.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/escount.js similarity index 94% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/escount.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/escount.js index ab9926f91c687..674f60d5333dc 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/escount.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/escount.js @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { buildESRequest } from '../../../server/lib/build_es_request'; +import { buildESRequest } from '../../../../server/lib/build_es_request'; export const escount = () => ({ name: 'escount', diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/esdocs.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/esdocs.js new file mode 100644 index 0000000000000..725d5f30197f1 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/esdocs.js @@ -0,0 +1,106 @@ +/* + * 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 squel from 'squel'; +import { map, zipObject } from 'lodash'; +import { buildBoolArray } from '../../../../server/lib/build_bool_array'; +import { normalizeType } from '../../../../server/lib/normalize_type'; +import { sanitizeName } from '../../../../server/lib/sanitize_name'; + +export const esdocs = () => ({ + name: 'esdocs', + type: 'datatable', + help: + 'Query elasticsearch and get back raw documents. We recommend you specify the fields you want, ' + + 'especially if you are going to ask for a lot of rows', + context: { + types: ['filter'], + }, + args: { + index: { + types: ['string', 'null'], + default: '_all', + help: 'Specify an index pattern. Eg "logstash-*"', + }, + query: { + types: ['string'], + aliases: ['_', 'q'], + help: 'A Lucene query string', + default: '-_index:.kibana', + }, + sort: { + types: ['string', 'null'], + help: 'Sort directions as "field, direction". Eg "@timestamp, desc" or "bytes, asc"', + }, + fields: { + help: 'Comma separated list of fields. Fewer fields will perform better', + types: ['string', 'null'], + }, + metaFields: { + help: 'Comma separated list of meta fields, eg "_index,_type"', + types: ['string', 'null'], + }, + count: { + types: ['number'], + default: 100, + help: 'The number of docs to pull back. Smaller numbers perform better', + }, + }, + fn: (context, args, handlers) => { + context.and = context.and.concat([ + { + type: 'luceneQueryString', + query: args.query, + }, + ]); + + let query = squel + .select({ + autoQuoteTableNames: true, + autoQuoteFieldNames: true, + autoQuoteAliasNames: true, + nameQuoteCharacter: '"', + }) + .from(args.index.toLowerCase()); + + if (args.fields) { + const fields = args.fields.split(',').map(field => field.trim()); + fields.forEach(field => (query = query.field(field))); + } + + if (args.sort) { + const [sortField, sortOrder] = args.sort.split(',').map(str => str.trim()); + if (sortField) query.order(`"${sortField}"`, sortOrder.toLowerCase() === 'asc'); + } + + return handlers + .elasticsearchClient('transport.request', { + path: '/_xpack/sql?format=json', + method: 'POST', + body: { + fetch_size: args.count, + query: query.toString(), + filter: { + bool: { + must: [{ match_all: {} }, ...buildBoolArray(context.and)], + }, + }, + }, + }) + .then(res => { + const columns = res.columns.map(({ name, type }) => { + return { name: sanitizeName(name), type: normalizeType(type) }; + }); + const columnNames = map(columns, 'name'); + const rows = res.rows.map(row => zipObject(columnNames, row)); + return { + type: 'datatable', + columns, + rows, + }; + }); + }, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/essql/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/essql.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/essql/index.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/essql.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/index.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/index.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/index.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/index.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/index.js new file mode 100644 index 0000000000000..e18d8cf1c5fda --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/index.js @@ -0,0 +1,177 @@ +/* + * 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 uniqBy from 'lodash.uniqby'; +import { evaluate } from 'tinymath'; +import { groupBy, zipObject, omit, values } from 'lodash'; +import moment from 'moment'; +import { pivotObjectArray } from '../../../../../common/lib/pivot_object_array'; +import { unquoteString } from '../../../../../common/lib/unquote_string'; +import { isColumnReference } from './lib/is_column_reference'; +import { getExpressionType } from './lib/get_expression_type'; + +// TODO: pointseries performs poorly, that's why we run it on the server. + +const columnExists = (cols, colName) => cols.includes(unquoteString(colName)); + +export const pointseries = () => ({ + name: 'pointseries', + type: 'pointseries', + help: + 'Turn a datatable into a point series model. Currently we differentiate measure from dimensions by looking for a [TinyMath function](http://canvas.elastic.co/reference/tinymath.html). ' + + 'If you enter a TinyMath expression in your argument, we treat that argument as a measure, otherwise it is a dimension. Dimensions are combined to create unique ' + + 'keys. Measures are then deduplicated by those keys using the specified TinyMath function', + context: { + types: ['datatable'], + }, + args: { + x: { + types: ['string', 'null'], + help: 'The values along the X-axis', + }, + y: { + types: ['string', 'null'], + help: 'The values along the y-axis', + }, + color: { + types: ['string', 'null'], + help: "An expression to use in determining the mark's color", // If you need categorization, transform the field. + }, + size: { + types: ['string', 'null'], + help: 'For elements that support it, the size of the marks', + }, + text: { + types: ['string', 'null'], + help: 'For use in charts that support it, the text to show in the mark', + }, + // In the future it may make sense to add things like shape, or tooltip values, but I think what we have is good for now + // The way the function below is written you can add as many arbitrary named args as you want. + }, + fn: (context, args) => { + // Note: can't replace pivotObjectArray with datatableToMathContext, lose name of non-numeric columns + const columnNames = context.columns.map(col => col.name); + const mathScope = pivotObjectArray(context.rows, columnNames); + const autoQuoteColumn = col => { + if (!columnNames.includes(col)) return col; + return col.match(/\s/) ? `'${col}'` : col; + }; + + const measureNames = []; + const dimensions = []; + const columns = {}; + + // Separates args into dimensions and measures arrays + // by checking if arg is a column reference (dimension) + Object.keys(args).forEach(arg => { + const mathExp = autoQuoteColumn(args[arg]); + + if (mathExp != null && mathExp.trim() !== '') { + const col = { + type: '', + role: '', + expression: mathExp, + }; + + if (isColumnReference(mathExp)) { + // TODO: Do something better if the column does not exist + if (!columnExists(columnNames, mathExp)) return; + + dimensions.push({ + name: arg, + value: mathExp, + }); + col.type = getExpressionType(context.columns, mathExp); + col.role = 'dimension'; + } else { + measureNames.push(arg); + col.type = 'number'; + col.role = 'measure'; + } + + columns[arg] = col; + } + }); + + const PRIMARY_KEY = '%%CANVAS_POINTSERIES_PRIMARY_KEY%%'; + const rows = context.rows.map((row, i) => ({ ...row, [PRIMARY_KEY]: i })); + + function normalizeValue(expression, value) { + switch (getExpressionType(context.columns, expression)) { + case 'string': + return String(value); + case 'number': + return Number(value); + case 'date': + return moment(value).valueOf(); + default: + return value; + } + } + + // Dimensions + // Group rows by their dimension values, using the argument values and preserving the PRIMARY_KEY + // There's probably a better way to do this + const results = rows.reduce((acc, row, i) => { + const newRow = dimensions.reduce( + (acc, { name, value }) => { + try { + acc[name] = args[name] ? normalizeValue(value, evaluate(value, mathScope)[i]) : '_all'; + } catch (e) { + // TODO: handle invalid column names... + // Do nothing if column does not exist + // acc[dimension] = '_all'; + } + return acc; + }, + { [PRIMARY_KEY]: row[PRIMARY_KEY] } + ); + + return Object.assign(acc, { [row[PRIMARY_KEY]]: newRow }); + }, {}); + + // Measures + // First group up all of the distinct dimensioned bits. Each of these will be reduced to just 1 value + // for each measure + const measureKeys = groupBy(rows, row => + dimensions.map(({ name }) => (args[name] ? row[args[name]] : '_all')).join('::%BURLAP%::') + ); + + // Then compute that 1 value for each measure + values(measureKeys).forEach(rows => { + const subtable = { type: 'datatable', columns: context.columns, rows: rows }; + const subScope = pivotObjectArray(subtable.rows, subtable.columns.map(col => col.name)); + const measureValues = measureNames.map(measure => { + try { + const ev = evaluate(args[measure], subScope); + if (Array.isArray(ev)) + throw new Error('Expressions must be wrapped in a function such as sum()'); + + return ev; + } catch (e) { + // TODO: don't catch if eval to Array + return null; + } + }); + + rows.forEach(row => { + Object.assign(results[row[PRIMARY_KEY]], zipObject(measureNames, measureValues)); + }); + }); + + // It only makes sense to uniq the rows in a point series as 2 values can not exist in the exact same place at the same time. + const resultingRows = uniqBy( + values(results).map(row => omit(row, PRIMARY_KEY)), + JSON.stringify + ); + + return { + type: 'pointseries', + columns: columns, + rows: resultingRows, + }; + }, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/lib/get_expression_type.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/lib/get_expression_type.js new file mode 100644 index 0000000000000..4da10af4dd11b --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/lib/get_expression_type.js @@ -0,0 +1,36 @@ +/* + * 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 { parse } from 'tinymath'; +import { getFieldType } from '../../../../../../common/lib/get_field_type'; +import { isColumnReference } from './is_column_reference'; +import { getFieldNames } from './get_field_names'; + +export function getExpressionType(columns, mathExpression) { + // if isColumnReference returns true, then mathExpression is just a string + // referencing a column in a datatable + if (isColumnReference(mathExpression)) return getFieldType(columns, mathExpression); + + const parsedMath = parse(mathExpression); + + if (parsedMath.args) { + const fieldNames = parsedMath.args.reduce(getFieldNames, []); + + if (fieldNames.length > 0) { + const fieldTypes = fieldNames.reduce((types, name) => { + const type = getFieldType(columns, name); + if (type !== 'null' && types.indexOf(type) === -1) return types.concat(type); + + return types; + }, []); + + return fieldTypes.length === 1 ? fieldTypes[0] : 'string'; + } + return 'number'; + } + + return typeof parsedMath; +} diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/lib/get_field_names.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/lib/get_field_names.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/lib/get_field_names.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/lib/get_field_names.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/lib/is_column_reference.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/lib/is_column_reference.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/lib/is_column_reference.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/pointseries/lib/is_column_reference.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/server.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/server.js similarity index 100% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/server.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/server.js diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/timelion.js b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/timelion.js similarity index 94% rename from x-pack/plugins/canvas/canvas_plugin_src/functions/server/timelion.js rename to x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/timelion.js index 58db763bdb690..2779f8e1e2c1d 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/server/timelion.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/server/src/timelion.js @@ -5,8 +5,8 @@ */ import { flatten } from 'lodash'; -import { fetch } from '../../../common/lib/fetch'; -import { buildBoolArray } from '../../../server/lib/build_bool_array'; +import { fetch } from '../../../../common/lib/fetch'; +import { buildBoolArray } from '../../../../server/lib/build_bool_array'; export const timelion = () => ({ name: 'timelion', @@ -42,7 +42,7 @@ export const timelion = () => ({ }, }, type: 'datatable', - help: 'Use timelion to extract one or more timeseries from many sources.', + help: 'Use timelion to extract one or more timeseries from many sources', fn: (context, args, handlers) => { // Timelion requires a time range. Use the time range from the timefilter element in the // workpad, if it exists. Otherwise fall back on the function args. diff --git a/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts/.eslintrc b/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts/.eslintrc deleted file mode 100644 index 2a22ef440bd44..0000000000000 --- a/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts/.eslintrc +++ /dev/null @@ -1,2 +0,0 @@ -env: - jquery: true \ No newline at end of file diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/advanced_filter/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/advanced_filter/index.js index 1b44045f44a70..4b628e5de93f6 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/advanced_filter/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/advanced_filter/index.js @@ -10,7 +10,7 @@ import { AdvancedFilter } from './component'; export const advancedFilter = () => ({ name: 'advanced_filter', - displayName: 'Advanced Filter', + displayName: 'Advanced filter', help: 'Render a Canvas filter expression', reuseDomNode: true, height: 50, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/dropdown_filter/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/dropdown_filter/index.js index caef38781bdb6..863fa41a90be5 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/dropdown_filter/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/dropdown_filter/index.js @@ -12,7 +12,7 @@ import { DropdownFilter } from './component'; export const dropdownFilter = () => ({ name: 'dropdown_filter', - displayName: 'Dropdown Filter', + displayName: 'Dropdown filter', help: 'A dropdown from which you can select values for an "exactly" filter', reuseDomNode: true, height: 50, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/error/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/error/index.js index 23d4b28b89811..45d85f2e3dd6c 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/error/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/error/index.js @@ -12,7 +12,7 @@ import { Popover } from '../../../public/components/popover'; export const error = () => ({ name: 'error', - displayName: 'Error Information', + displayName: 'Error information', help: 'Render error data in a way that is helpful to users', reuseDomNode: true, render(domNode, config, handlers) { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/image.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/image.js index c4a6578c2edfd..8e851fc6fe9ad 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/image.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/image.js @@ -7,7 +7,7 @@ import ReactDOM from 'react-dom'; import React from 'react'; import { elasticLogo } from '../lib/elastic_logo'; -import { isValid } from '../../common/lib/url'; +import { isValidUrl } from '../../common/lib/url'; export const image = () => ({ name: 'image', @@ -15,7 +15,7 @@ export const image = () => ({ help: 'Render an image', reuseDomNode: true, render(domNode, config, handlers) { - const dataurl = isValid(config.dataurl) ? config.dataurl : elasticLogo; + const dataurl = isValidUrl(config.dataurl) ? config.dataurl : elasticLogo; const style = { height: '100%', diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/index.js index dadabdfc6bca3..ec2e863669093 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/index.js @@ -15,6 +15,7 @@ import { markdown } from './markdown'; import { metric } from './metric'; import { pie } from './pie'; import { plot } from './plot'; +import { progress } from './progress'; import { shape } from './shape'; import { table } from './table'; import { timeFilter } from './time_filter'; @@ -32,6 +33,7 @@ export const renderFunctions = [ metric, pie, plot, + progress, shape, table, timeFilter, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/index.js new file mode 100644 index 0000000000000..d7c1885f6388c --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/index.js @@ -0,0 +1,115 @@ +/* + * 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 { getId } from '../../../public/lib/get_id'; +import { shapes } from './shapes'; + +export const progress = () => ({ + name: 'progress', + displayName: 'Progress', + help: 'Reveal a percentage of an element', + reuseDomNode: true, + render(domNode, config, handlers) { + const { shape, value, max, valueColor, barColor, valueWeight, barWeight, label, font } = config; + const percent = value / max; + const shapeDef = shapes[shape]; + const offset = Math.max(valueWeight, barWeight); + + if (shapeDef) { + const parser = new DOMParser(); + const [shapeSvg] = parser + .parseFromString(shapes[shape], 'image/svg+xml') + .getElementsByTagName('svg'); + + const initialViewBox = shapeSvg + .getAttribute('viewBox') + .split(' ') + .map(v => parseInt(v, 10)); + let [minX, minY, width, height] = initialViewBox; + + if (shape !== 'horizontalBar') { + minX -= offset / 2; + width += offset; + } + + if (shape === 'semicircle') { + minY -= offset / 2; + height += offset / 2; + } else if (shape !== 'verticalBar') { + minY -= offset / 2; + height += offset; + } + + shapeSvg.setAttribute('className', 'canvasProgress'); + + const svgId = getId('svg'); + shapeSvg.id = svgId; + + const [bar] = shapeSvg.getElementsByTagName('path'); + bar.setAttribute('className', 'canvasProgress__background'); + bar.setAttribute('fill', 'none'); + bar.setAttribute('stroke', barColor); + bar.setAttribute('stroke-width', `${barWeight}px`); + + const value = bar.cloneNode(true); + value.setAttribute('className', 'canvasProgress__value'); + value.setAttribute('stroke', valueColor); + value.setAttribute('stroke-width', `${valueWeight}px`); + + const length = value.getTotalLength(); + const to = length * (1 - percent); + value.setAttribute('stroke-dasharray', length); + value.setAttribute('stroke-dashoffset', Math.max(0, to)); + + shapeSvg.appendChild(value); + + const [text] = shapeSvg.getElementsByTagName('text'); + + if (label && text) { + text.textContent = label; + text.setAttribute('className', 'canvasProgress__label'); + + if (shape === 'horizontalPill') + text.setAttribute('x', parseInt(text.getAttribute('x'), 10) + offset / 2); + if (shape === 'verticalPill') + text.setAttribute('y', parseInt(text.getAttribute('y'), 10) - offset / 2); + + Object.assign(text.style, font.spec); + shapeSvg.appendChild(text); + domNode.appendChild(shapeSvg); + + const { width: labelWidth, height: labelHeight } = text.getBBox(); + + if (shape === 'horizontalBar' || shape === 'horizontalPill') { + text.setAttribute('x', parseInt(text.getAttribute('x'), 10)); + width += labelWidth; + } + if (shape === 'verticalBar' || shape === 'verticalPill') { + if (labelWidth > width) { + minX = -labelWidth / 2; + width = labelWidth; + } + minY -= labelHeight; + height += labelHeight; + } + } + + shapeSvg.setAttribute('viewBox', [minX, minY, width, height].join(' ')); + shapeSvg.setAttribute('width', domNode.offsetWidth); + shapeSvg.setAttribute('height', domNode.offsetHeight); + + if (domNode.firstChild) domNode.removeChild(domNode.firstChild); + domNode.appendChild(shapeSvg); + + handlers.onResize(() => { + shapeSvg.setAttribute('width', domNode.offsetWidth); + shapeSvg.setAttribute('height', domNode.offsetHeight); + }); + } + + handlers.done(); + }, +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/gauge.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/gauge.svg new file mode 100644 index 0000000000000..1aa07d8c23d73 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/gauge.svg @@ -0,0 +1,4 @@ + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/horizontal_bar.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/horizontal_bar.svg new file mode 100644 index 0000000000000..63e5c8a28d774 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/horizontal_bar.svg @@ -0,0 +1,4 @@ + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/horizontal_pill.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/horizontal_pill.svg new file mode 100644 index 0000000000000..1dcb9e3816e6e --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/horizontal_pill.svg @@ -0,0 +1,4 @@ + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/index.js new file mode 100644 index 0000000000000..cf5a9ecebd2eb --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/index.js @@ -0,0 +1,25 @@ +/* + * 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 gauge from '!!raw-loader!./gauge.svg'; +import horizontalBar from '!!raw-loader!./horizontal_bar.svg'; +import horizontalPill from '!!raw-loader!./horizontal_pill.svg'; +import semicircle from '!!raw-loader!./semicircle.svg'; +import unicorn from '!!raw-loader!./unicorn.svg'; +import verticalBar from '!!raw-loader!./vertical_bar.svg'; +import verticalPill from '!!raw-loader!./vertical_pill.svg'; +import wheel from '!!raw-loader!./wheel.svg'; + +export const shapes = { + gauge, + horizontalBar, + horizontalPill, + semicircle, + unicorn, + verticalBar, + verticalPill, + wheel, +}; diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/semicircle.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/semicircle.svg new file mode 100644 index 0000000000000..5538275825da7 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/semicircle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/unicorn.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/unicorn.svg new file mode 100644 index 0000000000000..a6b2a91f3b5a0 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/unicorn.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/vertical_bar.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/vertical_bar.svg new file mode 100644 index 0000000000000..9d9b20aa5198c --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/vertical_bar.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/vertical_pill.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/vertical_pill.svg new file mode 100644 index 0000000000000..f87b8a06f2ddf --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/vertical_pill.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/wheel.svg b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/wheel.svg new file mode 100644 index 0000000000000..9d1f9ac0c2628 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/progress/shapes/wheel.svg @@ -0,0 +1,4 @@ + + + + diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/register.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/register.js index 2b3c1ca5681bc..28a267505d047 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { renderFunctions } from './index'; renderFunctions.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/repeat_image.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/repeat_image.js index dbc6338d8939c..780e5f8acbe8f 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/repeat_image.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/repeat_image.js @@ -7,18 +7,18 @@ import $ from 'jquery'; import { times } from 'lodash'; import { elasticOutline } from '../lib/elastic_outline'; -import { isValid } from '../../common/lib/url'; +import { isValidUrl } from '../../common/lib/url'; export const repeatImage = () => ({ name: 'repeatImage', - displayName: 'Image Repeat', + displayName: 'Image repeat', help: 'Repeat an image a given number of times', reuseDomNode: true, render(domNode, config, handlers) { const settings = { count: 10, ...config, - image: isValid(config.image) ? config.image : elasticOutline, + image: isValidUrl(config.image) ? config.image : elasticOutline, }; const container = $('
      '); @@ -39,7 +39,7 @@ export const repeatImage = () => ({ if (settings.max && settings.count > settings.max) settings.count = settings.max; times(settings.count, () => container.append(img.cloneNode(true))); - if (isValid(settings.emptyImage)) { + if (isValidUrl(settings.emptyImage)) { if (settings.max == null) throw new Error('max must be set if using an emptyImage'); const emptyImage = new Image(); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/reveal_image/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/reveal_image/index.js index de43c1fff0da8..a74fc6f136437 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/reveal_image/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/reveal_image/index.js @@ -5,12 +5,12 @@ */ import { elasticOutline } from '../../lib/elastic_outline'; -import { isValid } from '../../../common/lib/url'; +import { isValidUrl } from '../../../common/lib/url'; import './reveal_image.scss'; export const revealImage = () => ({ name: 'revealImage', - displayName: 'Image Reveal', + displayName: 'Image reveal', help: 'Reveal a percentage of an image to make a custom gauge-style chart', reuseDomNode: true, render(domNode, config, handlers) { @@ -29,13 +29,13 @@ export const revealImage = () => ({ img.className = 'revealImage__image'; img.style.clipPath = getClipPath(config.percent, config.origin); img.style['-webkit-clip-path'] = getClipPath(config.percent, config.origin); - img.src = isValid(config.image) ? config.image : elasticOutline; + img.src = isValidUrl(config.image) ? config.image : elasticOutline; handlers.onResize(img.onload); // set up the underlay, "empty" image aligner.className = 'revealImageAligner'; aligner.appendChild(img); - if (isValid(config.emptyImage)) { + if (isValidUrl(config.emptyImage)) { // only use empty image if one is provided aligner.style.backgroundImage = `url(${config.emptyImage})`; } diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/shape/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/shape/index.js index f31b39ff0c466..e778a022019f2 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/shape/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/shape/index.js @@ -22,7 +22,8 @@ export const shape = () => ({ if (fill) shapeContent.setAttribute('fill', fill); if (border) shapeContent.setAttribute('stroke', border); - if (borderWidth >= 0) shapeContent.setAttribute('stroke-width', borderWidth); + const strokeWidth = Math.max(borderWidth, 0); + shapeContent.setAttribute('stroke-width', strokeWidth); shapeContent.setAttribute('stroke-miterlimit', 999); shapeContent.setAttribute('vector-effect', 'non-scaling-stroke'); @@ -39,22 +40,28 @@ export const shape = () => ({ const height = domNode.offsetHeight; // adjust viewBox based on border width - let [minX, minY, maxX, maxY] = initialViewBox; + let [minX, minY, shapeWidth, shapeHeight] = initialViewBox; + const borderOffset = strokeWidth; - const xScale = (maxX - minX) / width; - const yScale = (maxY - minY) / height; - const borderOffset = borderWidth / 2; - const xOffset = borderOffset * xScale; - const yOffset = borderOffset * yScale; + if (width) { + const xOffset = (shapeWidth / width) * borderOffset; + minX -= xOffset; + shapeWidth += xOffset * 2; + } else { + shapeWidth = 0; + } - minX -= xOffset; // min-x - minY -= yOffset; // min-y - maxX += xOffset * 2; // width - maxY += yOffset * 2; // height + if (height) { + const yOffset = (shapeHeight / height) * borderOffset; + minY -= yOffset; + shapeHeight += yOffset * 2; + } else { + shapeHeight = 0; + } shapeSvg.setAttribute('width', width); shapeSvg.setAttribute('height', height); - shapeSvg.setAttribute('viewBox', [minX, minY, maxX, maxY].join(' ')); + shapeSvg.setAttribute('viewBox', [minX, minY, shapeWidth, shapeHeight].join(' ')); const oldShape = domNode.firstElementChild; if (oldShape) domNode.removeChild(oldShape); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/table.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/table.js index 09950f743c9d9..3989a13c338fd 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/table.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/table.js @@ -11,7 +11,7 @@ import { Datatable } from '../../public/components/datatable'; export const table = () => ({ name: 'table', - displayName: 'Data Table', + displayName: 'Data table', help: 'Render tabular data as HTML', reuseDomNode: true, render(domNode, config, handlers) { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/text.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/text.js index f5aa833f437d0..3a833fc0c8472 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/text.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/text.js @@ -9,7 +9,7 @@ import React from 'react'; export const text = () => ({ name: 'text', - displayName: 'Plain Text', + displayName: 'Plain text', help: 'Render output as plain text', reuseDomNode: true, render(domNode, { text }, handlers) { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/components/datetime_calendar/datetime_calendar.scss b/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/components/datetime_calendar/datetime_calendar.scss index ec38f0f9c21ee..b08644eaa15c9 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/components/datetime_calendar/datetime_calendar.scss +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/components/datetime_calendar/datetime_calendar.scss @@ -4,4 +4,5 @@ display: inline-grid; height: 100%; border: $euiBorderThin; + grid-template-rows: $euiSizeXL 1fr; } diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/index.js b/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/index.js index d9d1ae3c2d754..cdc4f563e1340 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/time_filter/index.js @@ -12,7 +12,7 @@ import { TimeFilter } from './components/time_filter'; export const timeFilter = () => ({ name: 'time_filter', - displayName: 'Time Filter', + displayName: 'Time filter', help: 'Set a time window', reuseDomNode: true, render(domNode, config, handlers) { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/types/register.js b/x-pack/plugins/canvas/canvas_plugin_src/types/register.js index d5c6e98288e89..e960dd0f6566a 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/types/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/types/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { typeSpecs } from './index'; typeSpecs.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/extended_template.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/extended_template.js index c9729f3911f04..c40f17604f9ff 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/extended_template.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/extended_template.js @@ -65,11 +65,7 @@ export class ExtendedTemplate extends React.PureComponent { return ( - + ); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/index.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/index.js index 31635bf2a5b1e..e8237ecc32314 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/axis_config/index.js @@ -10,7 +10,7 @@ import { ExtendedTemplate } from './extended_template'; export const axisConfig = () => ({ name: 'axisConfig', - displayName: 'Axis Config', + displayName: 'Axis config', help: 'Visualization axis configuration', simpleTemplate: templateFromReactComponent(SimpleTemplate), template: templateFromReactComponent(ExtendedTemplate), diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/index.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/index.js index ded0600cdb3ff..0540a14603460 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/index.js @@ -52,20 +52,23 @@ class DatacolumnArgInput extends Component { const valueNotSet = val => !val || val.length === 0; const updateFunctionValue = () => { + const fn = this.inputRefs.fn.value; + const column = this.inputRefs.column.value; + // if setting size, auto-select the first column if no column is already set - if (this.inputRefs.fn.value === 'size') { - const col = this.inputRefs.column.value || (columns[0] && columns[0].name); - if (col) return onValueChange(`${this.inputRefs.fn.value}(${maybeQuoteValue(col)})`); + if (fn === 'size') { + const col = column || (columns[0] && columns[0].name); + if (col) return onValueChange(`${fn}(${maybeQuoteValue(col)})`); } // this.inputRefs.column is the column selection, if there is no value, do nothing - if (valueNotSet(this.inputRefs.column.value)) return setMathFunction(this.inputRefs.fn.value); + if (valueNotSet(column)) return setMathFunction(fn); // this.inputRefs.fn is the math function to use, if it's not set, just use the value input - if (valueNotSet(this.inputRefs.fn.value)) return onValueChange(this.inputRefs.column.value); + if (valueNotSet(fn)) return onValueChange(column); // this.inputRefs.fn has a value, so use it as a math.js expression - onValueChange(`${this.inputRefs.fn.value}(${maybeQuoteValue(this.inputRefs.column.value)})`); + onValueChange(`${fn}(${maybeQuoteValue(column)})`); }; const column = columns.map(col => col.name).find(colName => colName === mathValue.column) || ''; @@ -92,7 +95,7 @@ class DatacolumnArgInput extends Component { (this.inputRefs.column = ref)} onChange={updateFunctionValue} /> diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/simple_math_function.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/simple_math_function.js index 2af6a7a0d8445..3da639b3669ad 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/simple_math_function.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/datacolumn/simple_math_function.js @@ -24,13 +24,7 @@ export const SimpleMathFunction = ({ onChange, value, inputRef, onlymath }) => { if (!onlymath) options.unshift({ text: 'Value', value: '' }); return ( - + ); }; @@ -40,3 +34,7 @@ SimpleMathFunction.propTypes = { inputRef: PropTypes.func, onlymath: PropTypes.bool, }; + +SimpleMathFunction.defaultProps = { + value: '', +}; diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js index e955f38136cca..d5540d050227f 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js @@ -7,6 +7,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { + EuiForm, EuiFlexGroup, EuiFlexItem, EuiImage, @@ -15,12 +16,15 @@ import { EuiButton, EuiFieldText, } from '@elastic/eui'; -import { Loading } from '../../../../public/components/loading'; + +// TODO: (clintandrewhall) This is a quick fix for #25342 -- we should figure out how to use the overall component. +import { Loading } from '../../../../public/components/loading/loading'; + import { FileUpload } from '../../../../public/components/file_upload'; import { elasticOutline } from '../../../lib/elastic_outline'; import { resolveFromArgs } from '../../../../common/lib/resolve_dataurl'; -import { isValid as isValidHttpUrl } from '../../../../common/lib/httpurl'; -import { encode, isValid as isValidDataUrl } from '../../../../common/lib/dataurl'; +import { isValidHttpUrl } from '../../../../common/lib/httpurl'; +import { encode, isValidDataUrl } from '../../../../common/lib/dataurl'; import { templateFromReactComponent } from '../../../../public/lib/template_from_react_component'; import './image_upload.scss'; @@ -47,13 +51,15 @@ class ImageUpload extends React.Component { }; } + componentDidMount() { + // keep track of whether or not the component is mounted, to prevent rogue setState calls + this._isMounted = true; + } + componentWillUnmount() { this._isMounted = false; } - // keep track of whether or not the component is mounted, to prevent rogue setState calls - _isMounted = true; - handleUpload = files => { const { onAssetAdd, onValueChange } = this.props; const [upload] = files; @@ -106,7 +112,7 @@ class ImageUpload extends React.Component { ); @@ -121,7 +127,7 @@ class ImageUpload extends React.Component { } const pasteImageUrl = urlTypeSrc ? ( -
      + + Set - + ) : null; const shouldPreview = @@ -166,7 +173,7 @@ class ImageUpload extends React.Component { export const imageUpload = () => ({ name: 'imageUpload', - displayName: 'Image Upload', + displayName: 'Image upload', help: 'Select or upload an image', resolveArgValue: true, template: templateFromReactComponent(ImageUpload), diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/palette.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/palette.js index 61c5208b108f5..e0f8e56df8b6f 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/palette.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/palette.js @@ -65,7 +65,7 @@ PaletteArgInput.propTypes = { export const palette = () => ({ name: 'palette', - displayName: 'Color Palette', + displayName: 'Color palette', help: 'Choose a color palette', default: '{palette #882E72 #B178A6 #D6C1DE #1965B0 #5289C7 #7BAFDE #4EB265 #90C987 #CAE0AB #F7EE55 #F6C141 #F1932D #E8601C #DC050C}', diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/register.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/register.js index 4d4585f4ffcf2..2f6708e00cd9c 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { args } from './index'; args.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/select.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/select.js index 7a65f33ef7780..39f0f4da35926 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/select.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/select.js @@ -19,13 +19,7 @@ const SelectArgInput = ({ typeInstance, onValueChange, argValue, argId }) => { }; return ( - + ); }; diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/shape.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/shape.js index 2a71e9b42e480..79ef961275dd8 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/shape.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/shape.js @@ -7,14 +7,17 @@ import React from 'react'; import PropTypes from 'prop-types'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import { shapes } from '../../renderers/shape/shapes'; import { templateFromReactComponent } from '../../../public/lib/template_from_react_component'; import { ShapePickerMini } from '../../../public/components/shape_picker_mini/'; -const ShapeArgInput = ({ onValueChange, argValue }) => ( +const ShapeArgInput = ({ onValueChange, argValue, typeInstance }) => ( - + ); @@ -22,6 +25,9 @@ const ShapeArgInput = ({ onValueChange, argValue }) => ( ShapeArgInput.propTypes = { argValue: PropTypes.any.isRequired, onValueChange: PropTypes.func.isRequired, + typeInstance: PropTypes.shape({ + options: PropTypes.shape({ shapes: PropTypes.object.isRequired }).isRequired, + }).isRequired, }; export const shape = () => ({ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/string.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/string.js index 013b0f19f6ca0..9c117e694a1fd 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/string.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/string.js @@ -57,7 +57,7 @@ EnhancedStringArgInput.propTypes = { export const string = () => ({ name: 'string', - displayName: 'string', + displayName: 'String', help: 'Input short strings', simpleTemplate: templateFromReactComponent(EnhancedStringArgInput), }); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/textarea.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/textarea.js index d0dbfb22a5dd3..8a9593a15cac7 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/textarea.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/textarea.js @@ -63,7 +63,7 @@ EnhancedTextAreaArgInput.propTypes = { export const textarea = () => ({ name: 'textarea', - displayName: 'textarea', + displayName: 'Textarea', help: 'Input long strings', template: templateFromReactComponent(EnhancedTextAreaArgInput), }); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/toggle.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/toggle.js index 15a9b8c7ce347..30092cd7bd56c 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/toggle.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/toggle.js @@ -9,16 +9,17 @@ import PropTypes from 'prop-types'; import { EuiSwitch } from '@elastic/eui'; import { templateFromReactComponent } from '../../../public/lib/template_from_react_component'; -const ToggleArgInput = ({ onValueChange, argValue, argId }) => { +const ToggleArgInput = ({ onValueChange, argValue, argId, renderError }) => { const handleChange = () => onValueChange(!argValue); - + if (typeof argValue !== 'boolean') renderError(); return ; }; ToggleArgInput.propTypes = { onValueChange: PropTypes.func.isRequired, - argValue: PropTypes.bool.isRequired, + argValue: PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.object]).isRequired, argId: PropTypes.string.isRequired, + renderError: PropTypes.func.isRequired, }; export const toggle = () => ({ diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/demodata.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/demodata.js index 66e18c8bf5392..32be8b79d8fc9 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/demodata.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/demodata.js @@ -14,16 +14,16 @@ const DemodataDatasource = () => (

      This data source is connected to every Canvas element by default. Its purpose is to give you some playground data to get started. The demo set contains 4 strings, 3 numbers and a date. - Feel free to experiment and, when you're ready, click the Change Datasource{' '} - link below to connect to your own data. + Feel free to experiment and, when you're ready, click Change your data source{' '} + above to connect to your own data.

      ); export const demodata = () => ({ name: 'demodata', - displayName: 'Demo Data', - help: 'Mock data set with with usernames, prices, projects, countries and phases.', + displayName: 'Demo data', + help: 'Mock data set with usernames, prices, projects, countries, and phases', // Replace this with a better icon when we have time. image: 'logoElasticStack', template: templateFromReactComponent(DemodataDatasource), diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/essql.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/essql.js index 9acfa963c0dab..37c92226eab35 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/essql.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/essql.js @@ -17,7 +17,7 @@ class EssqlDatasource extends PureComponent { else this.props.setInvalid(!query.trim()); } - defaultQuery = 'SELECT * FROM logstash*'; + defaultQuery = 'SELECT * FROM "logstash*"'; getQuery = () => getSimpleArg(this.getArgName(), this.props.args)[0]; @@ -71,7 +71,7 @@ EssqlDatasource.propTypes = { export const essql = () => ({ name: 'essql', displayName: 'Elasticsearch SQL', - help: 'Use Elasticsearch SQL to get a datatable', + help: 'Use Elasticsearch SQL to get a data table', // Replace this with a SQL logo when we have one in EUI image: 'logoElasticsearch', template: templateFromReactComponent(EssqlDatasource), diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/register.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/register.js index 4c6e949b92110..7d882d736df1a 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { datasourceSpecs } from './index'; datasourceSpecs.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/timelion.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/timelion.js index 386b8ce89214f..16f1a70f6763d 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/timelion.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/datasources/timelion.js @@ -99,7 +99,7 @@ TimelionDatasource.propTypes = { export const timelion = () => ({ name: 'timelion', displayName: 'Timelion', - help: 'Use timelion syntax to retrieve a timeseries', + help: 'Use Timelion syntax to retrieve a timeseries', image: 'timelionApp', template: templateFromReactComponent(TimelionDatasource), }); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/models/point_series.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/models/point_series.js index 60fe433ef60b3..ac5ee08d21349 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/models/point_series.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/models/point_series.js @@ -9,7 +9,7 @@ import { getState, getValue } from '../../../public/lib/resolved_arg'; export const pointseries = () => ({ name: 'pointseries', - displayName: 'Dimensions & Measures', + displayName: 'Dimensions & measures', args: [ { name: 'x', @@ -20,7 +20,7 @@ export const pointseries = () => ({ { name: 'y', displayName: 'Y-axis', - help: 'Data along the vertical axis. Usually a number.', + help: 'Data along the vertical axis. Usually a number', argType: 'datacolumn', }, { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/models/register.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/models/register.js index 854d28be96048..ab2ef306f53ef 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/models/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/models/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { modelSpecs } from './index'; modelSpecs.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/register.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/register.js index de693d5c3d52c..6ac3422a018b5 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { transformSpecs } from './index'; transformSpecs.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/sort.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/sort.js index ac19bafc27e5a..a864d4ff55763 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/sort.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/transforms/sort.js @@ -9,11 +9,11 @@ import { getState, getValue } from '../../../public/lib/resolved_arg'; export const sort = () => ({ name: 'sort', - displayName: 'Datatable Sorting', + displayName: 'Datatable sorting', args: [ { name: '_', - displayName: 'Sort Field', + displayName: 'Sort field', argType: 'datacolumn', }, { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/dropdownControl.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/dropdownControl.js index e88f8e8bba369..95370ce177782 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/dropdownControl.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/dropdownControl.js @@ -9,12 +9,12 @@ import { getState, getValue } from '../../../public/lib/resolved_arg'; export const dropdownControl = () => ({ name: 'dropdownControl', - displayName: 'Dropdown Filter', + displayName: 'Dropdown filter', modelArgs: [], args: [ { name: 'valueColumn', - displayName: 'Values Column', + displayName: 'Values column', help: 'Column from which to extract values to make available in the dropdown', argType: 'string', options: { @@ -23,7 +23,7 @@ export const dropdownControl = () => ({ }, { name: 'filterColumn', - displayName: 'Filter Column ', + displayName: 'Filter column ', help: 'Column to which the value selected from the dropdown is applied', argType: 'string', options: { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/getCell.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/getCell.js index f356b74c7127e..2ceffe3efb9f6 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/getCell.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/getCell.js @@ -6,7 +6,7 @@ export const getCell = () => ({ name: 'getCell', - displayName: 'Get Cell', + displayName: 'Get cell', help: 'Grab the first row and first column', modelArgs: ['size'], requiresContext: true, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/index.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/index.js index 7215030a8a001..6e2685dcb9893 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/index.js @@ -5,12 +5,13 @@ */ import { dropdownControl } from './dropdownControl'; +import { getCell } from './getCell'; import { image } from './image'; import { markdown } from './markdown'; import { metric } from './metric'; import { pie } from './pie'; import { plot } from './plot'; -import { getCell } from './getCell'; +import { progress } from './progress'; import { repeatImage } from './repeatImage'; import { revealImage } from './revealImage'; import { render } from './render'; @@ -20,12 +21,13 @@ import { timefilterControl } from './timefilterControl'; export const viewSpecs = [ dropdownControl, + getCell, image, markdown, metric, pie, plot, - getCell, + progress, repeatImage, revealImage, render, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/metric.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/metric.js index e03f4d5359a6b..15da536c56e46 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/metric.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/metric.js @@ -21,14 +21,14 @@ export const metric = () => ({ }, { name: 'metricFont', - displayName: 'Metric Text Settings', + displayName: 'Metric text settings', help: 'Fonts, alignment and color', argType: 'font', default: `{font size=48 family="${openSans.value}" color="#000000" align=center lHeight=48}`, }, { name: 'labelFont', - displayName: 'Label Text Settings', + displayName: 'Label text settings', help: 'Fonts, alignment and color', argType: 'font', default: `{font size=18 family="${openSans.value}" color="#000000" align=center}`, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/pie.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/pie.js index 7c63b4cf559ad..1975aa8005d4f 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/pie.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/pie.js @@ -10,7 +10,7 @@ import { getState, getValue } from '../../../public/lib/resolved_arg'; export const pie = () => ({ name: 'pie', - displayName: 'Chart Style', + displayName: 'Chart style', modelArgs: [['color', { label: 'Slice Labels' }], ['size', { label: 'Slice Angles' }]], args: [ { @@ -19,7 +19,7 @@ export const pie = () => ({ }, { name: 'hole', - displayName: 'Inner Radius', + displayName: 'Inner radius', help: 'Radius of the hole', argType: 'range', default: 50, @@ -37,7 +37,7 @@ export const pie = () => ({ }, { name: 'labelRadius', - displayName: 'Label Radius', + displayName: 'Label radius', help: 'Distance of the labels from the center of the pie', argType: 'range', default: 100, @@ -48,7 +48,7 @@ export const pie = () => ({ }, { name: 'legend', - displayName: 'Legend Position', + displayName: 'Legend position', help: 'Disable or position the legend', argType: 'select', default: 'ne', @@ -74,7 +74,7 @@ export const pie = () => ({ }, { name: 'tilt', - displayName: 'Tilt Angle', + displayName: 'Tilt angle', help: 'Percentage of tilt where 1 is fully vertical and 0 is completely flat', argType: 'percentage', default: 1, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/plot.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/plot.js index e56e2bcfd08c4..1f609155a9cf6 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/plot.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/plot.js @@ -12,7 +12,7 @@ const styleProps = ['lines', 'bars', 'points', 'fill', 'stack']; export const plot = () => ({ name: 'plot', - displayName: 'Chart Style', + displayName: 'Chart style', modelArgs: ['x', 'y', 'color', 'size', 'text'], args: [ { @@ -21,7 +21,7 @@ export const plot = () => ({ }, { name: 'legend', - displayName: 'Legend Position', + displayName: 'Legend position', help: 'Disable or position the legend', argType: 'select', default: 'ne', @@ -31,14 +31,14 @@ export const plot = () => ({ }, { name: 'xaxis', - displayName: 'X-Axis', + displayName: 'X-axis', help: 'Configure or disable the x-axis', argType: 'axisConfig', default: true, }, { name: 'yaxis', - displayName: 'Y-Axis', + displayName: 'Y-axis', help: 'Configure or disable the Y-axis', argType: 'axisConfig', default: true, @@ -50,7 +50,7 @@ export const plot = () => ({ { name: 'defaultStyle', displayName: 'Default style', - help: 'Set the style to be used by default by every series, unless overridden.', + help: 'Set the style to be used by default by every series, unless overridden', argType: 'seriesStyle', default: '{seriesStyle points=5}', options: { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/progress.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/progress.js new file mode 100644 index 0000000000000..bd929a32232d4 --- /dev/null +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/progress.js @@ -0,0 +1,77 @@ +/* + * 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 { openSans } from '../../../common/lib/fonts'; +import { shapes } from '../../renderers/progress/shapes'; + +export const progress = () => ({ + name: 'progress', + displayName: 'Progress', + modelArgs: [['_', { label: 'Value' }]], + requiresContext: false, + args: [ + { + name: 'shape', + argType: 'select', + options: { + choices: Object.keys(shapes).map(key => ({ + value: key, + //turns camel into title case + name: key[0].toUpperCase() + key.slice(1).replace(/([A-Z])/g, ' $1'), + })), + }, + }, + { + name: 'max', + displayName: 'Maximum value', + help: 'Maximum value of the progress element', + argType: 'number', + default: '1', + }, + { + name: 'valueColor', + displayName: 'Progress color', + help: 'Color of the progress bar', + argType: 'color', + default: `#1785b0`, + }, + { + name: 'valueWeight', + displayName: 'Progress weight', + help: 'Thickness of the progress bar', + argType: 'number', + default: '20', + }, + { + name: 'barColor', + displayName: 'Background color', + help: 'Color of the background bar', + argType: 'color', + default: `#f0f0f0`, + }, + { + name: 'barWeight', + displayName: 'Background weight', + help: 'Thickness of the background bar', + argType: 'number', + default: '20', + }, + { + name: 'label', + displayName: 'Label', + help: `Set true/false to show/hide label or provide a string to display as the label`, + argType: 'toggle', + default: 'true', + }, + { + name: 'font', + displayName: 'Label settings', + help: 'Font settings for the label. Technically, you can add other styles as well', + argType: 'font', + default: `{font size=24 family="${openSans.value}" color="#000000" align=center}`, + }, + ], +}); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/register.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/register.js index 9240a4259ea04..b94b31e8bacba 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/register.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/register.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import 'babel-polyfill'; import { viewSpecs } from './index'; viewSpecs.forEach(canvas.register); diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/repeatImage.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/repeatImage.js index 8a9d51e5bc005..95a5c54f8307a 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/repeatImage.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/repeatImage.js @@ -6,7 +6,7 @@ export const repeatImage = () => ({ name: 'repeatImage', - displayName: 'Repeating Image', + displayName: 'Repeating image', help: '', modelArgs: [['_', { label: 'Value' }]], args: [ @@ -18,7 +18,7 @@ export const repeatImage = () => ({ }, { name: 'emptyImage', - displayName: 'Empty Image', + displayName: 'Empty image', help: 'An image to fill up the difference between the value and the max count', argType: 'imageUpload', }, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/revealImage.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/revealImage.js index 58af27ba0ce92..f5369f572c817 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/revealImage.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/revealImage.js @@ -6,7 +6,7 @@ export const revealImage = () => ({ name: 'revealImage', - displayName: 'Reveal Image', + displayName: 'Reveal image', help: '', modelArgs: [['_', { label: 'Value' }]], args: [ @@ -18,7 +18,7 @@ export const revealImage = () => ({ }, { name: 'emptyImage', - displayName: 'Background Image', + displayName: 'Background image', help: 'A background image. Eg, an empty glass', argType: 'imageUpload', }, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/shape.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/shape.js index 70dd12aa0f4b4..3de5bd3d9d63e 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/shape.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/shape.js @@ -14,14 +14,10 @@ export const shape = () => ({ args: [ { name: '_', - displayName: 'Select a Shape', + displayName: 'Select a shape', argType: 'shape', - help: 'A basic shape', options: { - choices: Object.keys(shapes).map(shape => ({ - value: shape, - name: shape, - })), + shapes, }, }, { @@ -38,13 +34,13 @@ export const shape = () => ({ }, { name: 'borderWidth', - displayName: 'Border Width', + displayName: 'Border width', argType: 'number', help: 'Border width', }, { name: 'maintainAspect', - displayName: 'Maintain Aspect Ratio', + displayName: 'Maintain aspect ratio', argType: 'toggle', help: `Select 'true' to maintain aspect ratio`, }, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/table.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/table.js index 59c2d8dbdbef4..cee6b44705682 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/table.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/table.js @@ -6,7 +6,7 @@ export const table = () => ({ name: 'table', - displayName: 'Table Style', + displayName: 'Table style', help: 'Set styling for a Table element', modelArgs: [], args: [ @@ -17,7 +17,7 @@ export const table = () => ({ { name: 'perPage', displayName: 'Rows per page', - help: 'Number of rows to display per table page.', + help: 'Number of rows to display per table page', argType: 'select', default: 10, options: { @@ -27,14 +27,14 @@ export const table = () => ({ { name: 'paginate', displayName: 'Pagination', - help: 'Show or hide pagination controls. If disabled only the first page will be shown.', + help: 'Show or hide pagination controls. If disabled only the first page will be shown', argType: 'toggle', default: true, }, { name: 'showHeader', displayName: 'Header', - help: 'Show or hide the header row with titles for each column.', + help: 'Show or hide the header row with titles for each column', argType: 'toggle', default: true, }, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/timefilterControl.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/timefilterControl.js index 288de400b17f0..d368e933b88df 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/views/timefilterControl.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/views/timefilterControl.js @@ -9,7 +9,7 @@ import { getState, getValue } from '../../../public/lib/resolved_arg'; export const timefilterControl = () => ({ name: 'timefilterControl', - displayName: 'Time Filter', + displayName: 'Time filter', modelArgs: [], args: [ { diff --git a/x-pack/plugins/canvas/common/functions/to.js b/x-pack/plugins/canvas/common/functions/to.js index 142ffe490ca38..6f15569c27a11 100644 --- a/x-pack/plugins/canvas/common/functions/to.js +++ b/x-pack/plugins/canvas/common/functions/to.js @@ -9,7 +9,7 @@ import { castProvider } from '../interpreter/cast'; export const to = () => ({ name: 'to', aliases: [], - help: 'Explicitly cast from one type to another.', + help: 'Explicitly cast from one type to another', context: {}, args: { type: { diff --git a/x-pack/plugins/canvas/common/interpreter/create_error.js b/x-pack/plugins/canvas/common/interpreter/create_error.js new file mode 100644 index 0000000000000..5de9819330dbd --- /dev/null +++ b/x-pack/plugins/canvas/common/interpreter/create_error.js @@ -0,0 +1,13 @@ +/* + * 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 createError = err => ({ + type: 'error', + error: { + stack: process.env.NODE_ENV === 'production' ? undefined : err.stack, + message: typeof err === 'string' ? err : err.message, + }, +}); diff --git a/x-pack/plugins/canvas/common/interpreter/interpret.js b/x-pack/plugins/canvas/common/interpreter/interpret.js index 2777e9d0b80ea..ff7a2547f236f 100644 --- a/x-pack/plugins/canvas/common/interpreter/interpret.js +++ b/x-pack/plugins/canvas/common/interpreter/interpret.js @@ -11,19 +11,7 @@ import { fromExpression } from '../lib/ast'; import { getByAlias } from '../lib/get_by_alias'; import { typesRegistry } from '../lib/types_registry'; import { castProvider } from './cast'; - -const createError = (err, { name, context, args }) => ({ - type: 'error', - error: { - stack: err.stack, - message: typeof err === 'string' ? err : err.message, - }, - info: { - context, - args, - functionName: name, - }, -}); +import { createError } from './create_error'; export function interpretProvider(config) { const { functions, onFunctionNotFound, types } = config; @@ -32,7 +20,7 @@ export function interpretProvider(config) { return interpret; - function interpret(node, context = null) { + async function interpret(node, context = null) { switch (getType(node)) { case 'expression': return invokeChain(node.chain, context); @@ -58,7 +46,11 @@ export function interpretProvider(config) { // in this case, it will try to execute the function in another context if (!fnDef) { chain.unshift(link); - return onFunctionNotFound({ type: 'expression', chain: chain }, context); + try { + return await onFunctionNotFound({ type: 'expression', chain: chain }, context); + } catch (e) { + return createError(e); + } } try { @@ -69,16 +61,15 @@ export function interpretProvider(config) { const newContext = await invokeFunction(fnDef, context, resolvedArgs); // if something failed, just return the failure - if (getType(newContext) === 'error') { - console.log('newContext error', newContext); - return newContext; - } + if (getType(newContext) === 'error') return newContext; // Continue re-invoking chain until it's empty return await invokeChain(chain, newContext); - } catch (err) { - console.error(`common/interpret ${fnName}: invokeChain rejected`, err); - return createError(err, { name: fnName, context, args: fnArgs }); + } catch (e) { + // Everything that throws from a function will hit this + // The interpreter should *never* fail. It should always return a `{type: error}` on failure + e.message = `[${fnName}] > ${e.message}`; + return createError(e); } } @@ -165,6 +156,7 @@ export function interpretProvider(config) { return argAsts.map(argAst => { return async (ctx = context) => { const newContext = await interpret(argAst, ctx); + // This is why when any sub-expression errors, the entire thing errors if (getType(newContext) === 'error') throw newContext.error; return cast(newContext, argDefs[argName].types); }; diff --git a/x-pack/plugins/canvas/common/interpreter/socket_interpret.js b/x-pack/plugins/canvas/common/interpreter/socket_interpret.js index a9ddb8c19c3f9..c8d5acf4fdd52 100644 --- a/x-pack/plugins/canvas/common/interpreter/socket_interpret.js +++ b/x-pack/plugins/canvas/common/interpreter/socket_interpret.js @@ -46,19 +46,14 @@ export function socketInterpreterProvider({ // set a unique message ID so the code knows what response to process const id = uuid(); - return new Promise((resolve, reject) => { + return new Promise(resolve => { const { serialize, deserialize } = serializeProvider(types); - const listener = resp => { - if (resp.error) { - // cast error strings back into error instances - const err = resp.error instanceof Error ? resp.error : new Error(resp.error); - if (resp.stack) err.stack = resp.stack; - reject(err); - } else { - resolve(deserialize(resp.value)); - } - }; + // This will receive {type: [msgSuccess || msgError] value: foo} + // However it doesn't currently do anything with it. Which means `value`, regardless + // of failure or success, needs to be something the interpreters would logically return + // er, a primative or a {type: foo} object + const listener = resp => resolve(deserialize(resp.value)); socket.once(`resp:${id}`, listener); diff --git a/x-pack/plugins/canvas/common/lib/__tests__/autocomplete.js b/x-pack/plugins/canvas/common/lib/__tests__/autocomplete.js new file mode 100644 index 0000000000000..72d79adf2a030 --- /dev/null +++ b/x-pack/plugins/canvas/common/lib/__tests__/autocomplete.js @@ -0,0 +1,187 @@ +/* + * 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 expect from 'expect.js'; +import { functionSpecs } from '../../../__tests__/fixtures/function_specs'; +import { getAutocompleteSuggestions } from '../autocomplete'; + +describe('getAutocompleteSuggestions', () => { + it('should suggest functions', () => { + const suggestions = getAutocompleteSuggestions(functionSpecs, '', 0); + expect(suggestions.length).to.be(functionSpecs.length); + expect(suggestions[0].start).to.be(0); + expect(suggestions[0].end).to.be(0); + }); + + it('should suggest functions filtered by text', () => { + const expression = 'pl'; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, 0); + const nonmatching = suggestions.map(s => s.text).filter(text => !text.includes(expression)); + expect(nonmatching.length).to.be(0); + expect(suggestions[0].start).to.be(0); + expect(suggestions[0].end).to.be(expression.length); + }); + + it('should suggest arguments', () => { + const expression = 'plot '; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const plotFn = functionSpecs.find(spec => spec.name === 'plot'); + expect(suggestions.length).to.be(Object.keys(plotFn.args).length); + expect(suggestions[0].start).to.be(expression.length); + expect(suggestions[0].end).to.be(expression.length); + }); + + it('should suggest arguments filtered by text', () => { + const expression = 'plot axis'; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const plotFn = functionSpecs.find(spec => spec.name === 'plot'); + const matchingArgs = Object.keys(plotFn.args).filter(key => key.includes('axis')); + expect(suggestions.length).to.be(matchingArgs.length); + expect(suggestions[0].start).to.be('plot '.length); + expect(suggestions[0].end).to.be('plot axis'.length); + }); + + it('should suggest values', () => { + const expression = 'shape shape='; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const shapeFn = functionSpecs.find(spec => spec.name === 'shape'); + expect(suggestions.length).to.be(shapeFn.args.shape.options.length); + expect(suggestions[0].start).to.be(expression.length); + expect(suggestions[0].end).to.be(expression.length); + }); + + it('should suggest values filtered by text', () => { + const expression = 'shape shape=ar'; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const shapeFn = functionSpecs.find(spec => spec.name === 'shape'); + const matchingValues = shapeFn.args.shape.options.filter(key => key.includes('ar')); + expect(suggestions.length).to.be(matchingValues.length); + expect(suggestions[0].start).to.be(expression.length - 'ar'.length); + expect(suggestions[0].end).to.be(expression.length); + }); + + it('should suggest functions inside an expression', () => { + const expression = 'if {}'; + const suggestions = getAutocompleteSuggestions( + functionSpecs, + expression, + expression.length - 1 + ); + expect(suggestions.length).to.be(functionSpecs.length); + expect(suggestions[0].start).to.be(expression.length - 1); + expect(suggestions[0].end).to.be(expression.length - 1); + }); + + it('should suggest arguments inside an expression', () => { + const expression = 'if {lt }'; + const suggestions = getAutocompleteSuggestions( + functionSpecs, + expression, + expression.length - 1 + ); + const ltFn = functionSpecs.find(spec => spec.name === 'lt'); + expect(suggestions.length).to.be(Object.keys(ltFn.args).length); + expect(suggestions[0].start).to.be(expression.length - 1); + expect(suggestions[0].end).to.be(expression.length - 1); + }); + + it('should suggest values inside an expression', () => { + const expression = 'if {shape shape=}'; + const suggestions = getAutocompleteSuggestions( + functionSpecs, + expression, + expression.length - 1 + ); + const shapeFn = functionSpecs.find(spec => spec.name === 'shape'); + expect(suggestions.length).to.be(shapeFn.args.shape.options.length); + expect(suggestions[0].start).to.be(expression.length - 1); + expect(suggestions[0].end).to.be(expression.length - 1); + }); + + it('should suggest values inside quotes', () => { + const expression = 'shape shape="ar"'; + const suggestions = getAutocompleteSuggestions( + functionSpecs, + expression, + expression.length - 1 + ); + const shapeFn = functionSpecs.find(spec => spec.name === 'shape'); + const matchingValues = shapeFn.args.shape.options.filter(key => key.includes('ar')); + expect(suggestions.length).to.be(matchingValues.length); + expect(suggestions[0].start).to.be(expression.length - '"ar"'.length); + expect(suggestions[0].end).to.be(expression.length); + }); + + it('should prioritize functions that start with text', () => { + const expression = 't'; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const tableIndex = suggestions.findIndex(suggestion => suggestion.text.includes('table')); + const fontIndex = suggestions.findIndex(suggestion => suggestion.text.includes('font')); + expect(tableIndex).to.be.lessThan(fontIndex); + }); + + it('should prioritize functions that match the previous function type', () => { + const expression = 'plot | '; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const renderIndex = suggestions.findIndex(suggestion => suggestion.text.includes('render')); + const anyIndex = suggestions.findIndex(suggestion => suggestion.text.includes('any')); + expect(renderIndex).to.be.lessThan(anyIndex); + }); + + it('should alphabetize functions', () => { + const expression = ''; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const metricIndex = suggestions.findIndex(suggestion => suggestion.text.includes('metric')); + const anyIndex = suggestions.findIndex(suggestion => suggestion.text.includes('any')); + expect(anyIndex).to.be.lessThan(metricIndex); + }); + + it('should prioritize arguments that start with text', () => { + const expression = 'plot y'; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const yaxisIndex = suggestions.findIndex(suggestion => suggestion.text.includes('yaxis')); + const defaultStyleIndex = suggestions.findIndex(suggestion => + suggestion.text.includes('defaultStyle') + ); + expect(yaxisIndex).to.be.lessThan(defaultStyleIndex); + }); + + it('should prioritize unnamed arguments', () => { + const expression = 'case '; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const whenIndex = suggestions.findIndex(suggestion => suggestion.text.includes('when')); + const thenIndex = suggestions.findIndex(suggestion => suggestion.text.includes('then')); + expect(whenIndex).to.be.lessThan(thenIndex); + }); + + it('should alphabetize arguments', () => { + const expression = 'plot '; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + const yaxisIndex = suggestions.findIndex(suggestion => suggestion.text.includes('yaxis')); + const defaultStyleIndex = suggestions.findIndex(suggestion => + suggestion.text.includes('defaultStyle') + ); + expect(defaultStyleIndex).to.be.lessThan(yaxisIndex); + }); + + it('should quote string values', () => { + const expression = 'shape shape='; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + expect(suggestions[0].text.trim()).to.match(/^".*"$/); + }); + + it('should not quote sub expression value suggestions', () => { + const expression = 'plot font='; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + expect(suggestions[0].text.trim()).to.be('{font}'); + }); + + it('should not quote booleans', () => { + const expression = 'font underline=true'; + const suggestions = getAutocompleteSuggestions(functionSpecs, expression, expression.length); + expect(suggestions[0].text.trim()).to.be('true'); + }); +}); diff --git a/x-pack/plugins/canvas/common/lib/__tests__/get_by_alias.js b/x-pack/plugins/canvas/common/lib/__tests__/get_by_alias.js index f00092d573d68..eaeeeade4cc59 100644 --- a/x-pack/plugins/canvas/common/lib/__tests__/get_by_alias.js +++ b/x-pack/plugins/canvas/common/lib/__tests__/get_by_alias.js @@ -8,46 +8,67 @@ import expect from 'expect.js'; import { getByAlias } from '../get_by_alias'; describe('getByAlias', () => { - const fns = { - foo: { aliases: ['f'] }, - bar: { aliases: ['b'] }, + const fnsObject = { + foo: { name: 'foo', aliases: ['f'] }, + bar: { name: 'bar', aliases: ['b'] }, }; + const fnsArray = [{ name: 'foo', aliases: ['f'] }, { name: 'bar', aliases: ['b'] }]; + it('returns the function by name', () => { - expect(getByAlias(fns, 'foo')).to.be(fns.foo); - expect(getByAlias(fns, 'bar')).to.be(fns.bar); + expect(getByAlias(fnsObject, 'foo')).to.be(fnsObject.foo); + expect(getByAlias(fnsObject, 'bar')).to.be(fnsObject.bar); + expect(getByAlias(fnsArray, 'foo')).to.be(fnsArray[0]); + expect(getByAlias(fnsArray, 'bar')).to.be(fnsArray[1]); }); it('returns the function by alias', () => { - expect(getByAlias(fns, 'f')).to.be(fns.foo); - expect(getByAlias(fns, 'b')).to.be(fns.bar); + expect(getByAlias(fnsObject, 'f')).to.be(fnsObject.foo); + expect(getByAlias(fnsObject, 'b')).to.be(fnsObject.bar); + expect(getByAlias(fnsArray, 'f')).to.be(fnsArray[0]); + expect(getByAlias(fnsArray, 'b')).to.be(fnsArray[1]); }); it('returns the function by case-insensitive name', () => { - expect(getByAlias(fns, 'FOO')).to.be(fns.foo); - expect(getByAlias(fns, 'BAR')).to.be(fns.bar); + expect(getByAlias(fnsObject, 'FOO')).to.be(fnsObject.foo); + expect(getByAlias(fnsObject, 'BAR')).to.be(fnsObject.bar); + expect(getByAlias(fnsArray, 'FOO')).to.be(fnsArray[0]); + expect(getByAlias(fnsArray, 'BAR')).to.be(fnsArray[1]); }); it('returns the function by case-insensitive alias', () => { - expect(getByAlias(fns, 'F')).to.be(fns.foo); - expect(getByAlias(fns, 'B')).to.be(fns.bar); + expect(getByAlias(fnsObject, 'F')).to.be(fnsObject.foo); + expect(getByAlias(fnsObject, 'B')).to.be(fnsObject.bar); + expect(getByAlias(fnsArray, 'F')).to.be(fnsArray[0]); + expect(getByAlias(fnsArray, 'B')).to.be(fnsArray[1]); }); it('handles empty strings', () => { - const emptyStringFns = { '': {} }; - const emptyStringAliasFns = { foo: { aliases: [''] } }; - expect(getByAlias(emptyStringFns, '')).to.be(emptyStringFns['']); - expect(getByAlias(emptyStringAliasFns, '')).to.be(emptyStringAliasFns.foo); + const emptyStringFnsObject = { '': { name: '' } }; + const emptyStringAliasFnsObject = { foo: { name: 'foo', aliases: [''] } }; + expect(getByAlias(emptyStringFnsObject, '')).to.be(emptyStringFnsObject['']); + expect(getByAlias(emptyStringAliasFnsObject, '')).to.be(emptyStringAliasFnsObject.foo); + + const emptyStringFnsArray = [{ name: '' }]; + const emptyStringAliasFnsArray = [{ name: 'foo', aliases: [''] }]; + expect(getByAlias(emptyStringFnsArray, '')).to.be(emptyStringFnsArray[0]); + expect(getByAlias(emptyStringAliasFnsArray, '')).to.be(emptyStringAliasFnsArray[0]); }); it('handles "undefined" strings', () => { - const emptyStringFns = { undefined: {} }; - const emptyStringAliasFns = { foo: { aliases: ['undefined'] } }; - expect(getByAlias(emptyStringFns, 'undefined')).to.be(emptyStringFns.undefined); - expect(getByAlias(emptyStringAliasFns, 'undefined')).to.be(emptyStringAliasFns.foo); + const undefinedFnsObject = { undefined: { name: 'undefined' } }; + const undefinedAliasFnsObject = { foo: { name: 'undefined', aliases: ['undefined'] } }; + expect(getByAlias(undefinedFnsObject, 'undefined')).to.be(undefinedFnsObject.undefined); + expect(getByAlias(undefinedAliasFnsObject, 'undefined')).to.be(undefinedAliasFnsObject.foo); + + const emptyStringFnsArray = [{ name: 'undefined' }]; + const emptyStringAliasFnsArray = [{ name: 'foo', aliases: ['undefined'] }]; + expect(getByAlias(emptyStringFnsArray, 'undefined')).to.be(emptyStringFnsArray[0]); + expect(getByAlias(emptyStringAliasFnsArray, 'undefined')).to.be(emptyStringAliasFnsArray[0]); }); it('returns undefined if not found', () => { - expect(getByAlias(fns, 'baz')).to.be(undefined); + expect(getByAlias(fnsObject, 'baz')).to.be(undefined); + expect(getByAlias(fnsArray, 'baz')).to.be(undefined); }); }); diff --git a/x-pack/plugins/canvas/common/lib/__tests__/httpurl.js b/x-pack/plugins/canvas/common/lib/__tests__/httpurl.js index 52ff4ead36a56..5d7397ed87a50 100644 --- a/x-pack/plugins/canvas/common/lib/__tests__/httpurl.js +++ b/x-pack/plugins/canvas/common/lib/__tests__/httpurl.js @@ -5,27 +5,27 @@ */ import expect from 'expect.js'; -import { isValid } from '../httpurl'; +import { isValidHttpUrl } from '../httpurl'; -describe('httpurl.isValid', () => { +describe('httpurl.isValidHttpUrl', () => { it('matches HTTP URLs', () => { - expect(isValid('http://server.com/veggie/hamburger.jpg')).to.be(true); - expect(isValid('https://server.com:4443/veggie/hamburger.jpg')).to.be(true); - expect(isValid('http://user:password@server.com:4443/veggie/hamburger.jpg')).to.be(true); - expect(isValid('http://virtual-machine/veggiehamburger.jpg')).to.be(true); - expect(isValid('https://virtual-machine:44330/veggie.jpg?hamburger')).to.be(true); - expect(isValid('http://192.168.1.50/veggie/hamburger.jpg')).to.be(true); - expect(isValid('https://2600::/veggie/hamburger.jpg')).to.be(true); // ipv6 - expect(isValid('http://2001:4860:4860::8844/veggie/hamburger.jpg')).to.be(true); // ipv6 + expect(isValidHttpUrl('http://server.com/veggie/hamburger.jpg')).to.be(true); + expect(isValidHttpUrl('https://server.com:4443/veggie/hamburger.jpg')).to.be(true); + expect(isValidHttpUrl('http://user:password@server.com:4443/veggie/hamburger.jpg')).to.be(true); + expect(isValidHttpUrl('http://virtual-machine/veggiehamburger.jpg')).to.be(true); + expect(isValidHttpUrl('https://virtual-machine:44330/veggie.jpg?hamburger')).to.be(true); + expect(isValidHttpUrl('http://192.168.1.50/veggie/hamburger.jpg')).to.be(true); + expect(isValidHttpUrl('https://2600::/veggie/hamburger.jpg')).to.be(true); // ipv6 + expect(isValidHttpUrl('http://2001:4860:4860::8844/veggie/hamburger.jpg')).to.be(true); // ipv6 }); it('rejects non-HTTP URLs', () => { - expect(isValid('')).to.be(false); - expect(isValid('http://server.com')).to.be(false); - expect(isValid('file:///Users/programmer/Pictures/hamburger.jpeg')).to.be(false); - expect(isValid('ftp://hostz.com:1111/path/to/image.png')).to.be(false); - expect(isValid('ftp://user:password@host:1111/path/to/image.png')).to.be(false); + expect(isValidHttpUrl('')).to.be(false); + expect(isValidHttpUrl('http://server.com')).to.be(false); + expect(isValidHttpUrl('file:///Users/programmer/Pictures/hamburger.jpeg')).to.be(false); + expect(isValidHttpUrl('ftp://hostz.com:1111/path/to/image.png')).to.be(false); + expect(isValidHttpUrl('ftp://user:password@host:1111/path/to/image.png')).to.be(false); expect( - isValid('data:image/gif;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+...') + isValidHttpUrl('data:image/gif;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+...') ).to.be(false); }); }); diff --git a/x-pack/plugins/canvas/common/lib/arg.js b/x-pack/plugins/canvas/common/lib/arg.js index d220e30d23237..7713fcb342bc2 100644 --- a/x-pack/plugins/canvas/common/lib/arg.js +++ b/x-pack/plugins/canvas/common/lib/arg.js @@ -10,12 +10,13 @@ export function Arg(config) { if (config.name === '_') throw Error('Arg names must not be _. Use it in aliases instead.'); this.name = config.name; this.required = config.required || false; - this.help = config.help; + this.help = config.help || ''; this.types = config.types || []; this.default = config.default; this.aliases = config.aliases || []; this.multi = config.multi == null ? false : config.multi; this.resolve = config.resolve == null ? true : config.resolve; + this.options = config.options || []; this.accepts = type => { if (!this.types.length) return true; return includes(config.types, type); diff --git a/x-pack/plugins/canvas/common/lib/autocomplete.js b/x-pack/plugins/canvas/common/lib/autocomplete.js new file mode 100644 index 0000000000000..d87e199de4671 --- /dev/null +++ b/x-pack/plugins/canvas/common/lib/autocomplete.js @@ -0,0 +1,209 @@ +/* + * 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 { uniq } from 'lodash'; +import { parse } from './grammar'; +import { getByAlias } from './get_by_alias'; + +const MARKER = 'CANVAS_SUGGESTION_MARKER'; + +/** + * Generates the AST with the given expression and then returns the function and argument definitions + * at the given position in the expression, if there are any. + */ +export function getFnArgDefAtPosition(specs, expression, position) { + const text = expression.substr(0, position) + MARKER + expression.substr(position); + try { + const ast = parse(text, { addMeta: true }); + const { ast: newAst, fnIndex, argName } = getFnArgAtPosition(ast, position); + const fn = newAst.node.chain[fnIndex].node; + + const fnDef = getByAlias(specs, fn.function.replace(MARKER, '')); + if (fnDef && argName) { + const argDef = getByAlias(fnDef.args, argName); + return { fnDef, argDef }; + } + return { fnDef }; + } catch (e) { + // Fail silently + } + return []; +} + +/** + * Gets a list of suggestions for the given expression at the given position. It does this by + * inserting a marker at the given position, then parsing the resulting expression. This way we can + * see what the marker would turn into, which tells us what sorts of things to suggest. For + * example, if the marker turns into a function name, then we suggest functions. If it turns into + * an unnamed argument, we suggest argument names. If it turns into a value, we suggest values. + */ +export function getAutocompleteSuggestions(specs, expression, position) { + const text = expression.substr(0, position) + MARKER + expression.substr(position); + try { + const ast = parse(text, { addMeta: true }); + const { ast: newAst, fnIndex, argName, argIndex } = getFnArgAtPosition(ast, position); + const fn = newAst.node.chain[fnIndex].node; + + if (fn.function.includes(MARKER)) return getFnNameSuggestions(specs, newAst, fnIndex); + + if (argName === '_') return getArgNameSuggestions(specs, newAst, fnIndex, argName, argIndex); + + if (argName) return getArgValueSuggestions(specs, newAst, fnIndex, argName, argIndex); + } catch (e) { + // Fail silently + } + return []; +} + +/** + * Get the function and argument (if there is one) at the given position. + */ +function getFnArgAtPosition(ast, position) { + const fnIndex = ast.node.chain.findIndex(fn => fn.start <= position && position <= fn.end); + const fn = ast.node.chain[fnIndex]; + for (const [argName, argValues] of Object.entries(fn.node.arguments)) { + for (let argIndex = 0; argIndex < argValues.length; argIndex++) { + const value = argValues[argIndex]; + if (value.start <= position && position <= value.end) { + if (value.node !== null && value.node.type === 'expression') + return getFnArgAtPosition(value, position); + return { ast, fnIndex, argName, argIndex }; + } + } + } + return { ast, fnIndex }; +} + +function getFnNameSuggestions(specs, ast, fnIndex) { + // Filter the list of functions by the text at the marker + const { start, end, node: fn } = ast.node.chain[fnIndex]; + const query = fn.function.replace(MARKER, ''); + const matchingFnDefs = specs.filter(({ name }) => textMatches(name, query)); + + // Sort by whether or not the function expects the previous function's return type, then by + // whether or not the function name starts with the text at the marker, then alphabetically + const prevFn = ast.node.chain[fnIndex - 1]; + const prevFnDef = prevFn && getByAlias(specs, prevFn.node.function); + const prevFnType = prevFnDef && prevFnDef.type; + const comparator = combinedComparator( + prevFnTypeComparator(prevFnType), + invokeWithProp(startsWithComparator(query), 'name'), + invokeWithProp(alphanumericalComparator, 'name') + ); + const fnDefs = matchingFnDefs.sort(comparator); + + return fnDefs.map(fnDef => { + return { type: 'function', text: fnDef.name + ' ', start, end: end - MARKER.length, fnDef }; + }); +} + +function getArgNameSuggestions(specs, ast, fnIndex, argName, argIndex) { + // Get the list of args from the function definition + const fn = ast.node.chain[fnIndex].node; + const fnDef = getByAlias(specs, fn.function); + if (!fnDef) return []; + + // We use the exact text instead of the value because it is always a string and might be quoted + const { text, start, end } = fn.arguments[argName][argIndex]; + + // Filter the list of args by the text at the marker + const query = text.replace(MARKER, ''); + const matchingArgDefs = Object.values(fnDef.args).filter(({ name }) => textMatches(name, query)); + + // Filter the list of args by those which aren't already present (unless they allow multi) + const argEntries = Object.entries(fn.arguments).map(([name, values]) => { + return [name, values.filter(value => !value.text.includes(MARKER))]; + }); + const unusedArgDefs = matchingArgDefs.filter(argDef => { + if (argDef.multi) return true; + return !argEntries.some(([name, values]) => { + return values.length && (name === argDef.name || argDef.aliases.includes(name)); + }); + }); + + // Sort by whether or not the arg is also the unnamed, then by whether or not the arg name starts + // with the text at the marker, then alphabetically + const comparator = combinedComparator( + unnamedArgComparator, + invokeWithProp(startsWithComparator(query), 'name'), + invokeWithProp(alphanumericalComparator, 'name') + ); + const argDefs = unusedArgDefs.sort(comparator); + + return argDefs.map(argDef => { + return { type: 'argument', text: argDef.name + '=', start, end: end - MARKER.length, argDef }; + }); +} + +function getArgValueSuggestions(specs, ast, fnIndex, argName, argIndex) { + // Get the list of values from the argument definition + const fn = ast.node.chain[fnIndex].node; + const fnDef = getByAlias(specs, fn.function); + if (!fnDef) return []; + const argDef = getByAlias(fnDef.args, argName); + if (!argDef) return []; + + // Get suggestions from the argument definition, including the default + const { start, end, node } = fn.arguments[argName][argIndex]; + const query = node.replace(MARKER, ''); + const suggestions = uniq(argDef.options.concat(argDef.default || [])); + + // Filter the list of suggestions by the text at the marker + const filtered = suggestions.filter(option => textMatches(String(option), query)); + + // Sort by whether or not the value starts with the text at the marker, then alphabetically + const comparator = combinedComparator(startsWithComparator(query), alphanumericalComparator); + const sorted = filtered.sort(comparator); + + return sorted.map(value => { + const text = maybeQuote(value) + ' '; + return { start, end: end - MARKER.length, type: 'value', text }; + }); +} + +function textMatches(text, query) { + return text.toLowerCase().includes(query.toLowerCase().trim()); +} + +function maybeQuote(value) { + if (typeof value === 'string') { + if (value.match(/^\{.*\}$/)) return value; + return `"${value.replace(/"/g, '\\"')}"`; + } + return value; +} + +function prevFnTypeComparator(prevFnType) { + return (a, b) => + Boolean(b.context.types && b.context.types.includes(prevFnType)) - + Boolean(a.context.types && a.context.types.includes(prevFnType)); +} + +function unnamedArgComparator(a, b) { + return b.aliases.includes('_') - a.aliases.includes('_'); +} + +function alphanumericalComparator(a, b) { + if (a < b) return -1; + if (a > b) return 1; + return 0; +} + +function startsWithComparator(query) { + return (a, b) => String(b).startsWith(query) - String(a).startsWith(query); +} + +function combinedComparator(...comparators) { + return (a, b) => + comparators.reduce((acc, comparator) => { + if (acc !== 0) return acc; + return comparator(a, b); + }, 0); +} + +function invokeWithProp(fn, prop) { + return (...args) => fn(...args.map(arg => arg[prop])); +} diff --git a/x-pack/plugins/canvas/common/lib/constants.js b/x-pack/plugins/canvas/common/lib/constants.js index 1e15dff2da8f8..e20f4b4f166d0 100644 --- a/x-pack/plugins/canvas/common/lib/constants.js +++ b/x-pack/plugins/canvas/common/lib/constants.js @@ -13,3 +13,4 @@ export const API_ROUTE_WORKPAD = `${API_ROUTE}/workpad`; export const LOCALSTORAGE_LASTPAGE = 'canvas:lastpage'; export const FETCH_TIMEOUT = 30000; // 30 seconds export const CANVAS_USAGE_TYPE = 'canvas'; +export const SECURITY_AUTH_MESSAGE = 'Authentication failed'; diff --git a/x-pack/plugins/canvas/common/lib/datatable/index.js b/x-pack/plugins/canvas/common/lib/datatable/index.js new file mode 100644 index 0000000000000..4f5acf61eb119 --- /dev/null +++ b/x-pack/plugins/canvas/common/lib/datatable/index.js @@ -0,0 +1,7 @@ +/* + * 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 * from './query'; diff --git a/x-pack/plugins/canvas/common/lib/dataurl.js b/x-pack/plugins/canvas/common/lib/dataurl.js index d8d995e148d2e..72eca8cc7f5b1 100644 --- a/x-pack/plugins/canvas/common/lib/dataurl.js +++ b/x-pack/plugins/canvas/common/lib/dataurl.js @@ -11,7 +11,7 @@ const dataurlRegex = /^data:([a-z]+\/[a-z0-9-+.]+)(;[a-z-]+=[a-z0-9-]+)?(;([a-z0 export const imageTypes = ['image/svg+xml', 'image/jpeg', 'image/png', 'image/gif']; -export function parse(str, withData = false) { +export function parseDataUrl(str, withData = false) { if (typeof str !== 'string') return; const matches = str.match(dataurlRegex); @@ -34,7 +34,7 @@ export function parse(str, withData = false) { }; } -export function isValid(str) { +export function isValidDataUrl(str) { return dataurlRegex.test(str); } diff --git a/x-pack/plugins/canvas/common/lib/get_by_alias.js b/x-pack/plugins/canvas/common/lib/get_by_alias.js index ff705f07af516..c9986a5024008 100644 --- a/x-pack/plugins/canvas/common/lib/get_by_alias.js +++ b/x-pack/plugins/canvas/common/lib/get_by_alias.js @@ -6,16 +6,15 @@ /** * This is used for looking up function/argument definitions. It looks through - * the given object for a case-insensitive match, which could be either the - * name of the key itself, or something under the `aliases` property. + * the given object/array for a case-insensitive match, which could be either the + * `name` itself, or something under the `aliases` property. */ export function getByAlias(specs, name) { const lowerCaseName = name.toLowerCase(); - const key = Object.keys(specs).find(key => { - if (key.toLowerCase() === lowerCaseName) return true; - return (specs[key].aliases || []).some(alias => { + return Object.values(specs).find(({ name, aliases }) => { + if (name.toLowerCase() === lowerCaseName) return true; + return (aliases || []).some(alias => { return alias.toLowerCase() === lowerCaseName; }); }); - if (typeof key !== undefined) return specs[key]; } diff --git a/x-pack/plugins/canvas/common/lib/grammar.js b/x-pack/plugins/canvas/common/lib/grammar.js index c72312321af60..2e87b52d68f22 100644 --- a/x-pack/plugins/canvas/common/lib/grammar.js +++ b/x-pack/plugins/canvas/common/lib/grammar.js @@ -145,18 +145,18 @@ function peg$parse(input, options) { peg$c1 = peg$literalExpectation("|", false), peg$c2 = function(first, fn) { return fn; }, peg$c3 = function(first, rest) { - return { + return addMeta({ type: 'expression', chain: [first].concat(rest) - }; + }, text(), location()); }, peg$c4 = peg$otherExpectation("function"), peg$c5 = function(name, arg_list) { - return { + return addMeta({ type: 'function', function: name, arguments: arg_list - }; + }, text(), location()); }, peg$c6 = "=", peg$c7 = peg$literalExpectation("=", false), @@ -173,25 +173,28 @@ function peg$parse(input, options) { peg$c14 = "}", peg$c15 = peg$literalExpectation("}", false), peg$c16 = function(expression) { return expression; }, - peg$c17 = function(arg) { return arg; }, - peg$c18 = function(args) { + peg$c17 = function(value) { + return addMeta(value, text(), location()); + }, + peg$c18 = function(arg) { return arg; }, + peg$c19 = function(args) { return args.reduce((accumulator, { name, value }) => ({ ...accumulator, [name]: (accumulator[name] || []).concat(value) }), {}); }, - peg$c19 = /^[a-zA-Z0-9_\-]/, - peg$c20 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false), - peg$c21 = function(name) { + peg$c20 = /^[a-zA-Z0-9_\-]/, + peg$c21 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false), + peg$c22 = function(name) { return name.join(''); }, - peg$c22 = peg$otherExpectation("literal"), - peg$c23 = "\"", - peg$c24 = peg$literalExpectation("\"", false), - peg$c25 = function(chars) { return chars.join(''); }, - peg$c26 = "'", - peg$c27 = peg$literalExpectation("'", false), - peg$c28 = function(string) { // this also matches nulls, booleans, and numbers + peg$c23 = peg$otherExpectation("literal"), + peg$c24 = "\"", + peg$c25 = peg$literalExpectation("\"", false), + peg$c26 = function(chars) { return chars.join(''); }, + peg$c27 = "'", + peg$c28 = peg$literalExpectation("'", false), + peg$c29 = function(string) { // this also matches nulls, booleans, and numbers var result = string.join(''); // Sort of hacky, but PEG doesn't have backtracking so // a null/boolean/number rule is hard to read, and performs worse @@ -201,19 +204,19 @@ function peg$parse(input, options) { if (isNaN(Number(result))) return result; // 5bears return Number(result); }, - peg$c29 = /^[ \t\r\n]/, - peg$c30 = peg$classExpectation([" ", "\t", "\r", "\n"], false, false), - peg$c31 = "\\", - peg$c32 = peg$literalExpectation("\\", false), - peg$c33 = /^["'(){}<>[\]$`|= \t\n\r]/, - peg$c34 = peg$classExpectation(["\"", "'", "(", ")", "{", "}", "<", ">", "[", "]", "$", "`", "|", "=", " ", "\t", "\n", "\r"], false, false), - peg$c35 = function(sequence) { return sequence; }, - peg$c36 = /^[^"'(){}<>[\]$`|= \t\n\r]/, - peg$c37 = peg$classExpectation(["\"", "'", "(", ")", "{", "}", "<", ">", "[", "]", "$", "`", "|", "=", " ", "\t", "\n", "\r"], true, false), - peg$c38 = /^[^"]/, - peg$c39 = peg$classExpectation(["\""], true, false), - peg$c40 = /^[^']/, - peg$c41 = peg$classExpectation(["'"], true, false), + peg$c30 = /^[ \t\r\n]/, + peg$c31 = peg$classExpectation([" ", "\t", "\r", "\n"], false, false), + peg$c32 = "\\", + peg$c33 = peg$literalExpectation("\\", false), + peg$c34 = /^["'(){}<>[\]$`|= \t\n\r]/, + peg$c35 = peg$classExpectation(["\"", "'", "(", ")", "{", "}", "<", ">", "[", "]", "$", "`", "|", "=", " ", "\t", "\n", "\r"], false, false), + peg$c36 = function(sequence) { return sequence; }, + peg$c37 = /^[^"'(){}<>[\]$`|= \t\n\r]/, + peg$c38 = peg$classExpectation(["\"", "'", "(", ")", "{", "}", "<", ">", "[", "]", "$", "`", "|", "=", " ", "\t", "\n", "\r"], true, false), + peg$c39 = /^[^"]/, + peg$c40 = peg$classExpectation(["\""], true, false), + peg$c41 = /^[^']/, + peg$c42 = peg$classExpectation(["'"], true, false), peg$currPos = 0, peg$savedPos = 0, @@ -352,63 +355,90 @@ function peg$parse(input, options) { } function peg$parseexpression() { - var s0, s1, s2, s3, s4, s5; + var s0, s1, s2, s3, s4, s5, s6, s7; s0 = peg$currPos; - s1 = peg$parsefunction(); + s1 = peg$parsespace(); + if (s1 === peg$FAILED) { + s1 = null; + } if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 124) { - s4 = peg$c0; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c1); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parsefunction(); - if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c2(s1, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; + s2 = peg$parsefunction(); + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$currPos; if (input.charCodeAt(peg$currPos) === 124) { - s4 = peg$c0; + s5 = peg$c0; peg$currPos++; } else { - s4 = peg$FAILED; + s5 = peg$FAILED; if (peg$silentFails === 0) { peg$fail(peg$c1); } } - if (s4 !== peg$FAILED) { - s5 = peg$parsefunction(); + if (s5 !== peg$FAILED) { + s6 = peg$parsespace(); + if (s6 === peg$FAILED) { + s6 = null; + } + if (s6 !== peg$FAILED) { + s7 = peg$parsefunction(); + if (s7 !== peg$FAILED) { + peg$savedPos = s4; + s5 = peg$c2(s2, s7); + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 124) { + s5 = peg$c0; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { peg$fail(peg$c1); } + } if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c2(s1, s5); - s3 = s4; + s6 = peg$parsespace(); + if (s6 === peg$FAILED) { + s6 = null; + } + if (s6 !== peg$FAILED) { + s7 = peg$parsefunction(); + if (s7 !== peg$FAILED) { + peg$savedPos = s4; + s5 = peg$c2(s2, s7); + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } } else { - peg$currPos = s3; - s3 = peg$FAILED; + peg$currPos = s4; + s4 = peg$FAILED; } + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c3(s2, s3); + s0 = s1; } else { - peg$currPos = s3; - s3 = peg$FAILED; + peg$currPos = s0; + s0 = peg$FAILED; } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; } else { peg$currPos = s0; s0 = peg$FAILED; @@ -422,26 +452,17 @@ function peg$parse(input, options) { } function peg$parsefunction() { - var s0, s1, s2, s3; + var s0, s1, s2; peg$silentFails++; s0 = peg$currPos; - s1 = peg$parsespace(); - if (s1 === peg$FAILED) { - s1 = null; - } + s1 = peg$parseidentifier(); if (s1 !== peg$FAILED) { - s2 = peg$parseidentifier(); + s2 = peg$parsearg_list(); if (s2 !== peg$FAILED) { - s3 = peg$parsearg_list(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } + peg$savedPos = s0; + s1 = peg$c5(s1, s2); + s0 = s1; } else { peg$currPos = s0; s0 = peg$FAILED; @@ -522,7 +543,7 @@ function peg$parse(input, options) { } function peg$parseargument() { - var s0, s1, s2, s3, s4, s5, s6; + var s0, s1, s2, s3, s4; s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 36) { @@ -544,37 +565,19 @@ function peg$parse(input, options) { if (peg$silentFails === 0) { peg$fail(peg$c13); } } if (s2 !== peg$FAILED) { - s3 = peg$parsespace(); - if (s3 === peg$FAILED) { - s3 = null; - } + s3 = peg$parseexpression(); if (s3 !== peg$FAILED) { - s4 = peg$parseexpression(); + if (input.charCodeAt(peg$currPos) === 125) { + s4 = peg$c14; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { peg$fail(peg$c15); } + } if (s4 !== peg$FAILED) { - s5 = peg$parsespace(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s6 = peg$c14; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c15); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c16(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } + peg$savedPos = s0; + s1 = peg$c16(s3); + s0 = s1; } else { peg$currPos = s0; s0 = peg$FAILED; @@ -592,7 +595,13 @@ function peg$parse(input, options) { s0 = peg$FAILED; } if (s0 === peg$FAILED) { - s0 = peg$parseliteral(); + s0 = peg$currPos; + s1 = peg$parseliteral(); + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c17(s1); + } + s0 = s1; } return s0; @@ -609,7 +618,7 @@ function peg$parse(input, options) { s4 = peg$parseargument_assignment(); if (s4 !== peg$FAILED) { peg$savedPos = s2; - s3 = peg$c17(s4); + s3 = peg$c18(s4); s2 = s3; } else { peg$currPos = s2; @@ -627,7 +636,7 @@ function peg$parse(input, options) { s4 = peg$parseargument_assignment(); if (s4 !== peg$FAILED) { peg$savedPos = s2; - s3 = peg$c17(s4); + s3 = peg$c18(s4); s2 = s3; } else { peg$currPos = s2; @@ -645,7 +654,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c18(s1); + s1 = peg$c19(s1); s0 = s1; } else { peg$currPos = s0; @@ -664,22 +673,22 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = []; - if (peg$c19.test(input.charAt(peg$currPos))) { + if (peg$c20.test(input.charAt(peg$currPos))) { s2 = input.charAt(peg$currPos); peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c20); } + if (peg$silentFails === 0) { peg$fail(peg$c21); } } if (s2 !== peg$FAILED) { while (s2 !== peg$FAILED) { s1.push(s2); - if (peg$c19.test(input.charAt(peg$currPos))) { + if (peg$c20.test(input.charAt(peg$currPos))) { s2 = input.charAt(peg$currPos); peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c20); } + if (peg$silentFails === 0) { peg$fail(peg$c21); } } } } else { @@ -687,7 +696,7 @@ function peg$parse(input, options) { } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c21(s1); + s1 = peg$c22(s1); } s0 = s1; @@ -705,7 +714,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c22); } + if (peg$silentFails === 0) { peg$fail(peg$c23); } } return s0; @@ -716,11 +725,11 @@ function peg$parse(input, options) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c23; + s1 = peg$c24; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c24); } + if (peg$silentFails === 0) { peg$fail(peg$c25); } } if (s1 !== peg$FAILED) { s2 = []; @@ -731,15 +740,15 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c23; + s3 = peg$c24; peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c24); } + if (peg$silentFails === 0) { peg$fail(peg$c25); } } if (s3 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c25(s2); + s1 = peg$c26(s2); s0 = s1; } else { peg$currPos = s0; @@ -756,11 +765,11 @@ function peg$parse(input, options) { if (s0 === peg$FAILED) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c26; + s1 = peg$c27; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c27); } + if (peg$silentFails === 0) { peg$fail(peg$c28); } } if (s1 !== peg$FAILED) { s2 = []; @@ -771,15 +780,15 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c26; + s3 = peg$c27; peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c27); } + if (peg$silentFails === 0) { peg$fail(peg$c28); } } if (s3 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c25(s2); + s1 = peg$c26(s2); s0 = s1; } else { peg$currPos = s0; @@ -814,7 +823,7 @@ function peg$parse(input, options) { } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c28(s1); + s1 = peg$c29(s1); } s0 = s1; @@ -825,22 +834,22 @@ function peg$parse(input, options) { var s0, s1; s0 = []; - if (peg$c29.test(input.charAt(peg$currPos))) { + if (peg$c30.test(input.charAt(peg$currPos))) { s1 = input.charAt(peg$currPos); peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c30); } + if (peg$silentFails === 0) { peg$fail(peg$c31); } } if (s1 !== peg$FAILED) { while (s1 !== peg$FAILED) { s0.push(s1); - if (peg$c29.test(input.charAt(peg$currPos))) { + if (peg$c30.test(input.charAt(peg$currPos))) { s1 = input.charAt(peg$currPos); peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c30); } + if (peg$silentFails === 0) { peg$fail(peg$c31); } } } } else { @@ -855,32 +864,32 @@ function peg$parse(input, options) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c31; + s1 = peg$c32; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c32); } + if (peg$silentFails === 0) { peg$fail(peg$c33); } } if (s1 !== peg$FAILED) { - if (peg$c33.test(input.charAt(peg$currPos))) { + if (peg$c34.test(input.charAt(peg$currPos))) { s2 = input.charAt(peg$currPos); peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c34); } + if (peg$silentFails === 0) { peg$fail(peg$c35); } } if (s2 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 92) { - s2 = peg$c31; + s2 = peg$c32; peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c32); } + if (peg$silentFails === 0) { peg$fail(peg$c33); } } } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c35(s2); + s1 = peg$c36(s2); s0 = s1; } else { peg$currPos = s0; @@ -891,12 +900,12 @@ function peg$parse(input, options) { s0 = peg$FAILED; } if (s0 === peg$FAILED) { - if (peg$c36.test(input.charAt(peg$currPos))) { + if (peg$c37.test(input.charAt(peg$currPos))) { s0 = input.charAt(peg$currPos); peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c37); } + if (peg$silentFails === 0) { peg$fail(peg$c38); } } } @@ -908,32 +917,32 @@ function peg$parse(input, options) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c31; + s1 = peg$c32; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c32); } + if (peg$silentFails === 0) { peg$fail(peg$c33); } } if (s1 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 34) { - s2 = peg$c23; + s2 = peg$c24; peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c24); } + if (peg$silentFails === 0) { peg$fail(peg$c25); } } if (s2 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 92) { - s2 = peg$c31; + s2 = peg$c32; peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c32); } + if (peg$silentFails === 0) { peg$fail(peg$c33); } } } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c35(s2); + s1 = peg$c36(s2); s0 = s1; } else { peg$currPos = s0; @@ -944,12 +953,12 @@ function peg$parse(input, options) { s0 = peg$FAILED; } if (s0 === peg$FAILED) { - if (peg$c38.test(input.charAt(peg$currPos))) { + if (peg$c39.test(input.charAt(peg$currPos))) { s0 = input.charAt(peg$currPos); peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c39); } + if (peg$silentFails === 0) { peg$fail(peg$c40); } } } @@ -961,32 +970,32 @@ function peg$parse(input, options) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c31; + s1 = peg$c32; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c32); } + if (peg$silentFails === 0) { peg$fail(peg$c33); } } if (s1 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 39) { - s2 = peg$c26; + s2 = peg$c27; peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c27); } + if (peg$silentFails === 0) { peg$fail(peg$c28); } } if (s2 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 92) { - s2 = peg$c31; + s2 = peg$c32; peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c32); } + if (peg$silentFails === 0) { peg$fail(peg$c33); } } } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$c35(s2); + s1 = peg$c36(s2); s0 = s1; } else { peg$currPos = s0; @@ -997,18 +1006,25 @@ function peg$parse(input, options) { s0 = peg$FAILED; } if (s0 === peg$FAILED) { - if (peg$c40.test(input.charAt(peg$currPos))) { + if (peg$c41.test(input.charAt(peg$currPos))) { s0 = input.charAt(peg$currPos); peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c41); } + if (peg$silentFails === 0) { peg$fail(peg$c42); } } } return s0; } + + function addMeta(node, text, { start: { offset: start }, end: { offset: end } }) { + if (!options.addMeta) return node; + return { node, text, start, end }; + } + + peg$result = peg$startRuleFunction(); if (peg$result !== peg$FAILED && peg$currPos === input.length) { diff --git a/x-pack/plugins/canvas/common/lib/grammar.peg b/x-pack/plugins/canvas/common/lib/grammar.peg index 9701bec23e2b8..fea9564b67a27 100644 --- a/x-pack/plugins/canvas/common/lib/grammar.peg +++ b/x-pack/plugins/canvas/common/lib/grammar.peg @@ -7,28 +7,35 @@ * You shouldn't be futzing around in the grammar very often anyway. */ +{ + function addMeta(node, text, { start: { offset: start }, end: { offset: end } }) { + if (!options.addMeta) return node; + return { node, text, start, end }; + } +} + /* ----- Expressions ----- */ start = expression expression - = first:function rest:('|' fn:function { return fn; })* { - return { + = space? first:function rest:('|' space? fn:function { return fn; })* { + return addMeta({ type: 'expression', chain: [first].concat(rest) - }; + }, text(), location()); } /* ----- Functions ----- */ function "function" - = space? name:identifier arg_list:arg_list { - return { + = name:identifier arg_list:arg_list { + return addMeta({ type: 'function', function: name, arguments: arg_list - }; + }, text(), location()); } /* ----- Arguments ----- */ @@ -42,8 +49,10 @@ argument_assignment } argument - = '$'? '{' space? expression:expression space? '}' { return expression; } - / literal + = '$'? '{' expression:expression '}' { return expression; } + / value:literal { + return addMeta(value, text(), location()); + } arg_list = args:(space arg:argument_assignment { return arg; })* space? { diff --git a/x-pack/plugins/canvas/common/lib/hex_to_rgb.js b/x-pack/plugins/canvas/common/lib/hex_to_rgb.js new file mode 100644 index 0000000000000..1bb0acfd45cab --- /dev/null +++ b/x-pack/plugins/canvas/common/lib/hex_to_rgb.js @@ -0,0 +1,18 @@ +/* + * 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 hexToRgb = hex => { + const shorthandHexColor = /^#?([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i; + const hexColor = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i; + + const shorthandMatches = shorthandHexColor.exec(hex); + if (shorthandMatches) return shorthandMatches.slice(1, 4).map(hex => parseInt(hex + hex, 16)); + + const hexMatches = hexColor.exec(hex); + if (hexMatches) return hexMatches.slice(1, 4).map(hex => parseInt(hex, 16)); + + return null; +}; diff --git a/x-pack/plugins/canvas/common/lib/httpurl.js b/x-pack/plugins/canvas/common/lib/httpurl.js index 524a4caaecf51..3902395fec3d6 100644 --- a/x-pack/plugins/canvas/common/lib/httpurl.js +++ b/x-pack/plugins/canvas/common/lib/httpurl.js @@ -7,6 +7,6 @@ // A cheap regex to distinguish an HTTP URL string from a data URL string const httpurlRegex = /^https?:\/\/\S+(?:[0-9]+)?\/\S{1,}/; -export function isValid(str) { +export function isValidHttpUrl(str) { return httpurlRegex.test(str); } diff --git a/x-pack/plugins/canvas/common/lib/index.js b/x-pack/plugins/canvas/common/lib/index.js new file mode 100644 index 0000000000000..5d56a5026590d --- /dev/null +++ b/x-pack/plugins/canvas/common/lib/index.js @@ -0,0 +1,39 @@ +/* + * 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 * from './datatable'; +export * from './arg'; +export * from './ast'; +export * from './autocomplete'; +export * from './constants'; +export * from './dataurl'; +export * from './errors'; +export * from './expression_form_handlers'; +export * from './fetch'; +export * from './find_in_object'; +export * from './fn'; +export * from './fonts'; +export * from './functions_registry'; +export * from './get_by_alias'; +export * from './get_colors_from_palette'; +export * from './get_field_type'; +export * from './get_legend_config'; +export * from './get_type'; +export * from './grammar'; +export * from './handlebars'; +export * from './hex_to_rgb'; +export * from './httpurl'; +export * from './latest_change'; +export * from './missing_asset'; +export * from './palettes'; +export * from './pivot_object_array'; +export * from './registry'; +export * from './resolve_dataurl'; +export * from './serialize'; +export * from './type'; +export * from './types_registry'; +export * from './unquote_string'; +export * from './url'; diff --git a/x-pack/plugins/canvas/common/lib/resolve_dataurl.js b/x-pack/plugins/canvas/common/lib/resolve_dataurl.js index c292fc7deb2c7..ef33a09e004f8 100644 --- a/x-pack/plugins/canvas/common/lib/resolve_dataurl.js +++ b/x-pack/plugins/canvas/common/lib/resolve_dataurl.js @@ -5,7 +5,7 @@ */ import { get } from 'lodash'; -import { isValid } from '../../common/lib/url'; +import { isValidUrl } from '../../common/lib/url'; import { missingImage } from '../../common/lib/missing_asset'; /* @@ -15,11 +15,11 @@ import { missingImage } from '../../common/lib/missing_asset'; */ export const resolveFromArgs = (args, defaultDataurl = null) => { const dataurl = get(args, 'dataurl.0', null); - return isValid(dataurl) ? dataurl : defaultDataurl; + return isValidUrl(dataurl) ? dataurl : defaultDataurl; }; export const resolveWithMissingImage = (img, alt = null) => { - if (isValid(img)) return img; + if (isValidUrl(img)) return img; if (img === null) return alt; return missingImage; }; diff --git a/x-pack/plugins/canvas/common/lib/url.js b/x-pack/plugins/canvas/common/lib/url.js index b5efb09f8711d..bed5e30cbff3b 100644 --- a/x-pack/plugins/canvas/common/lib/url.js +++ b/x-pack/plugins/canvas/common/lib/url.js @@ -4,9 +4,9 @@ * you may not use this file except in compliance with the Elastic License. */ -import { isValid as isValidDataUrl } from '../../common/lib/dataurl'; -import { isValid as isValidHttpUrl } from '../../common/lib/httpurl'; +import { isValidDataUrl } from '../../common/lib/dataurl'; +import { isValidHttpUrl } from '../../common/lib/httpurl'; -export function isValid(url) { +export function isValidUrl(url) { return isValidDataUrl(url) || isValidHttpUrl(url); } diff --git a/x-pack/plugins/canvas/index.js b/x-pack/plugins/canvas/index.js index 8f702ed972e16..b92e29341a14b 100644 --- a/x-pack/plugins/canvas/index.js +++ b/x-pack/plugins/canvas/index.js @@ -20,17 +20,15 @@ export function canvas(kibana) { title: 'Canvas', description: 'Data driven workpads', icon: 'plugins/canvas/icon.svg', + euiIconType: 'canvasApp', main: 'plugins/canvas/app', }, styleSheetPaths: `${__dirname}/public/style/index.scss`, hacks: [ // window.onerror override 'plugins/canvas/lib/window_error_handler.js', - - // Client side plugins go here - 'plugins/canvas/lib/load_expression_types.js', - 'plugins/canvas/lib/load_transitions.js', ], + home: ['plugins/canvas/register_feature'], mappings, }, diff --git a/x-pack/plugins/canvas/init.js b/x-pack/plugins/canvas/init.js index bc41ff43c8ebb..1ef56fac4e97c 100644 --- a/x-pack/plugins/canvas/init.js +++ b/x-pack/plugins/canvas/init.js @@ -5,12 +5,13 @@ */ import { routes } from './server/routes'; -import { functionsRegistry } from './common/lib/functions_registry'; +import { functionsRegistry } from './common/lib'; import { commonFunctions } from './common/functions'; -import { loadServerPlugins } from './server/lib/load_server_plugins'; +import { populateServerRegistries } from './server/lib/server_registries'; import { registerCanvasUsageCollector } from './server/usage'; +import { loadSampleData } from './server/sample_data'; -export default function(server /*options*/) { +export default async function(server /*options*/) { server.injectUiAppVars('canvas', () => { const config = server.config(); const basePath = config.get('server.basePath'); @@ -29,6 +30,10 @@ export default function(server /*options*/) { // There are some common functions that use private APIs, load them here commonFunctions.forEach(func => functionsRegistry.register(func)); - loadServerPlugins().then(() => routes(server)); registerCanvasUsageCollector(server); + loadSampleData(server); + + // Do not initialize the app until the registries are populated + await populateServerRegistries(['serverFunctions', 'types']); + routes(server); } diff --git a/x-pack/plugins/canvas/package.json b/x-pack/plugins/canvas/package.json deleted file mode 100644 index f6b55e0340779..0000000000000 --- a/x-pack/plugins/canvas/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "canvas", - "version": "7.0.0-alpha1", - "description": "Data driven workpads for kibana", - "main": "index.js", - "kibana": { - "version": "kibana" - }, - "scripts": { - "kbn": "node ../../../scripts/kbn", - "start": "../../node_modules/.bin/gulp canvas:dev", - "lint": "node ../../../scripts/eslint '*.js' '__tests__/**/*.js' 'tasks/**/*.js' 'server/**/*.js' 'common/**/*.js' 'public/**/*.{js,jsx}' 'canvas_plugin_src/**/*.{js,jsx}' --ignore-pattern 'canvas_plugin_src/lib/flot-charts/**/*' --ignore-pattern 'common/lib/grammar.js' --ignore-pattern 'canvas_plugin/**/*'", - "test": "../../node_modules/.bin/gulp canvas:test", - "test:common": "../../node_modules/.bin/gulp canvas:test:common", - "test:server": "../../node_modules/.bin/gulp canvas:test:server", - "test:browser": "../../node_modules/.bin/gulp canvas:test:browser", - "test:plugins": "../../node_modules/.bin/gulp canvas:test:plugins", - "test:dev": "../../node_modules/.bin/gulp canvas:test:dev", - "peg:build": "../../node_modules/.bin/gulp canvas:peg:build", - "peg:dev": "../../node_modules/.bin/gulp canvas:peg:dev", - "build": "echo Run build from x-pack root; exit 1", - "build:plugins": "../../node_modules/.bin/gulp canvas:plugins:build" - } -} diff --git a/x-pack/plugins/canvas/public/.eslintrc b/x-pack/plugins/canvas/public/.eslintrc deleted file mode 100644 index 5c9fc4c255341..0000000000000 --- a/x-pack/plugins/canvas/public/.eslintrc +++ /dev/null @@ -1,2 +0,0 @@ -env: - browser: true diff --git a/x-pack/plugins/canvas/public/angular/services/index.js b/x-pack/plugins/canvas/public/angular/services/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/canvas/public/angular/services/store.js b/x-pack/plugins/canvas/public/angular/services/store.js index 181f9bf75cbb0..d008a9af9b174 100644 --- a/x-pack/plugins/canvas/public/angular/services/store.js +++ b/x-pack/plugins/canvas/public/angular/services/store.js @@ -5,17 +5,11 @@ */ import { uiModules } from 'ui/modules'; -import uniqBy from 'lodash.uniqby'; import { createStore } from '../../state/store'; import { getInitialState } from '../../state/initial_state'; -import { functionsRegistry } from '../../../common/lib/functions_registry'; const app = uiModules.get('apps/canvas'); app.service('canvasStore', (kbnVersion, basePath, reportingBrowserType, serverFunctions) => { - // this is effectively what happens to serverFunctions - const clientFunctionsPOJO = JSON.parse(JSON.stringify(functionsRegistry.toArray())); - const functionDefinitions = uniqBy(serverFunctions.concat(clientFunctionsPOJO), 'name'); - const initialState = getInitialState(); // Set the defaults from Kibana plugin @@ -23,7 +17,7 @@ app.service('canvasStore', (kbnVersion, basePath, reportingBrowserType, serverFu kbnVersion, basePath, reportingBrowserType, - functionDefinitions, + serverFunctions, ready: false, }; diff --git a/x-pack/plugins/canvas/public/app.js b/x-pack/plugins/canvas/public/app.js index 0880e01e4a523..9a6fbbb26b7eb 100644 --- a/x-pack/plugins/canvas/public/app.js +++ b/x-pack/plugins/canvas/public/app.js @@ -19,5 +19,9 @@ import 'uiExports/savedObjectTypes'; import 'uiExports/spyModes'; import 'uiExports/fieldFormats'; +// load application code +import './lib/load_expression_types'; +import './lib/load_transitions'; + // load the application chrome.setRootController('canvas', CanvasRootController); diff --git a/x-pack/plugins/canvas/public/apps/home/home_app.js b/x-pack/plugins/canvas/public/apps/home/home_app.js index b2d1e1810c52a..74080e5c7e217 100644 --- a/x-pack/plugins/canvas/public/apps/home/home_app.js +++ b/x-pack/plugins/canvas/public/apps/home/home_app.js @@ -7,13 +7,17 @@ import React from 'react'; import { EuiPage, EuiPageBody, EuiPageContent } from '@elastic/eui'; import { WorkpadLoader } from '../../components/workpad_loader'; +import { setDocTitle } from '../../lib/doc_title'; -export const HomeApp = () => ( - - - - {}} /> - - - -); +export const HomeApp = () => { + setDocTitle('Canvas'); + return ( + + + + {}} /> + + + + ); +}; diff --git a/x-pack/plugins/canvas/public/apps/workpad/routes.js b/x-pack/plugins/canvas/public/apps/workpad/routes.js index 98607304ba1ab..1efe744f36889 100644 --- a/x-pack/plugins/canvas/public/apps/workpad/routes.js +++ b/x-pack/plugins/canvas/public/apps/workpad/routes.js @@ -11,6 +11,7 @@ import { setWorkpad } from '../../state/actions/workpad'; import { setAssets, resetAssets } from '../../state/actions/assets'; import { gotoPage } from '../../state/actions/pages'; import { getWorkpad } from '../../state/selectors/workpad'; +import { setCanUserWrite } from '../../state/actions/transient'; import { WorkpadApp } from './workpad_app'; export const routes = [ @@ -29,6 +30,10 @@ export const routes = [ router.redirectTo('loadWorkpad', { id: newWorkpad.id, page: 1 }); } catch (err) { notify.error(err, { title: `Couldn't create workpad` }); + // TODO: remove this and switch to checking user privileges when canvas loads when granular app privileges are introduced + // https://github.com/elastic/kibana/issues/20277 + if (err.response.status === 403) dispatch(setCanUserWrite(false)); + router.redirectTo('home'); } }, meta: { @@ -48,6 +53,13 @@ export const routes = [ const { assets, ...workpad } = fetchedWorkpad; dispatch(setWorkpad(workpad)); dispatch(setAssets(assets)); + + // tests if user has permissions to write to workpads + // TODO: remove this and switch to checking user privileges when canvas loads when granular app privileges are introduced + // https://github.com/elastic/kibana/issues/20277 + workpadService.update(params.id, fetchedWorkpad).catch(err => { + if (err.response.status === 403) dispatch(setCanUserWrite(false)); + }); } catch (err) { notify.error(err, { title: `Couldn't load workpad with ID` }); return router.redirectTo('home'); diff --git a/x-pack/plugins/canvas/public/apps/workpad/workpad_app/index.js b/x-pack/plugins/canvas/public/apps/workpad/workpad_app/index.js index 90db6af85154e..119c071e3866d 100644 --- a/x-pack/plugins/canvas/public/apps/workpad/workpad_app/index.js +++ b/x-pack/plugins/canvas/public/apps/workpad/workpad_app/index.js @@ -8,8 +8,8 @@ import { connect } from 'react-redux'; import { compose, branch, renderComponent } from 'recompose'; import { initializeWorkpad } from '../../../state/actions/workpad'; import { selectElement } from '../../../state/actions/transient'; -import { getEditing, getAppReady } from '../../../state/selectors/app'; -import { getWorkpad } from '../../../state/selectors/workpad'; +import { canUserWrite, getAppReady } from '../../../state/selectors/app'; +import { getWorkpad, isWriteable } from '../../../state/selectors/workpad'; import { LoadWorkpad } from './load_workpad'; import { WorkpadApp as Component } from './workpad_app'; @@ -17,7 +17,7 @@ const mapStateToProps = state => { const appReady = getAppReady(state); return { - editing: getEditing(state), + isWriteable: isWriteable(state) && canUserWrite(state), appReady: typeof appReady === 'object' ? appReady : { ready: appReady }, workpad: getWorkpad(state), }; diff --git a/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.js b/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.js index 1d5dcc5d20553..49ef7ed97e07f 100644 --- a/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.js +++ b/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.js @@ -13,7 +13,7 @@ import { WorkpadHeader } from '../../../components/workpad_header'; export class WorkpadApp extends React.PureComponent { static propTypes = { - editing: PropTypes.bool, + isWriteable: PropTypes.bool.isRequired, deselectElement: PropTypes.func, initializeWorkpad: PropTypes.func.isRequired, }; @@ -23,7 +23,7 @@ export class WorkpadApp extends React.PureComponent { } render() { - const { editing, deselectElement } = this.props; + const { isWriteable, deselectElement } = this.props; return (
      @@ -42,18 +42,16 @@ export class WorkpadApp extends React.PureComponent {
      - {editing && ( + {isWriteable && (
      )} - {editing ? ( -
      - -
      - ) : null} +
      + +
      ); diff --git a/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.scss b/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.scss index f0e62358b3405..9b289151ee6dd 100644 --- a/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.scss +++ b/x-pack/plugins/canvas/public/apps/workpad/workpad_app/workpad_app.scss @@ -56,6 +56,7 @@ width: 350px; background: darken($euiColorLightestShade, 2%); display: flex; + position: relative; .euiPanel { margin-bottom: $euiSizeS; diff --git a/x-pack/plugins/canvas/public/components/app/app.js b/x-pack/plugins/canvas/public/components/app/app.js index 10c7e9dd1b111..0f933ace4b6e2 100644 --- a/x-pack/plugins/canvas/public/components/app/app.js +++ b/x-pack/plugins/canvas/public/components/app/app.js @@ -8,6 +8,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { routes } from '../../apps'; import { shortcutManager } from '../../lib/shortcut_manager'; +import { getWindow } from '../../lib/get_window'; import { Router } from '../router'; export class App extends React.PureComponent { @@ -26,6 +27,16 @@ export class App extends React.PureComponent { return { shortcuts: shortcutManager }; } + componentDidMount() { + const win = getWindow(); + win.canvasInitErrorHandler && win.canvasInitErrorHandler(); + } + + componentWillUnmount() { + const win = getWindow(); + win.canvasRestoreErrorHandler && win.canvasRestoreErrorHandler(); + } + renderError = () => { console.error(this.props.appState); diff --git a/x-pack/plugins/canvas/public/components/app/index.js b/x-pack/plugins/canvas/public/components/app/index.js index 60b77f3e749c4..5f633169604d6 100644 --- a/x-pack/plugins/canvas/public/components/app/index.js +++ b/x-pack/plugins/canvas/public/components/app/index.js @@ -6,7 +6,10 @@ import { connect } from 'react-redux'; import { compose, withProps } from 'recompose'; -import { getAppReady } from '../../state/selectors/app'; +import { createSocket } from '../../socket'; +import { initialize as initializeInterpreter } from '../../lib/interpreter'; +import { populateBrowserRegistries } from '../../lib/browser_registries'; +import { getAppReady, getBasePath } from '../../state/selectors/app'; import { appReady, appError } from '../../state/actions/app'; import { trackRouteChange } from './track_route_change'; import { App as Component } from './app'; @@ -17,18 +20,42 @@ const mapStateToProps = state => { return { appState: typeof appState === 'object' ? appState : { ready: appState }, + basePath: getBasePath(state), }; }; -const mapDispatchToProps = { - setAppReady: appReady, - setAppError: appError, +const mapDispatchToProps = dispatch => ({ + // TODO: the correct socket path should come from upstream, using the constant here is not ideal + setAppReady: basePath => async () => { + try { + // initialize the socket and interpreter + await createSocket(basePath); + await populateBrowserRegistries(); + await initializeInterpreter(); + + // set app state to ready + dispatch(appReady()); + } catch (e) { + dispatch(appError(e)); + } + }, + setAppError: payload => dispatch(appError(payload)), +}); + +const mergeProps = (stateProps, dispatchProps, ownProps) => { + return { + ...ownProps, + ...stateProps, + ...dispatchProps, + setAppReady: dispatchProps.setAppReady(stateProps.basePath), + }; }; export const App = compose( connect( mapStateToProps, - mapDispatchToProps + mapDispatchToProps, + mergeProps ), withProps(() => ({ onRouteChange: trackRouteChange, diff --git a/x-pack/plugins/canvas/public/components/arg_form/arg_form.js b/x-pack/plugins/canvas/public/components/arg_form/arg_form.js index c7b4582d6c766..594875ed3cbdc 100644 --- a/x-pack/plugins/canvas/public/components/arg_form/arg_form.js +++ b/x-pack/plugins/canvas/public/components/arg_form/arg_form.js @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import React from 'react'; +import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { compose, branch, renderComponent } from 'recompose'; import { ErrorBoundary } from '../enhance/error_boundary'; @@ -29,101 +29,112 @@ const branches = [ ]; // This is what is being generated by render() from the Arg class. It is called in FunctionForm -const ArgFormComponent = props => { - const { - argId, - argTypeInstance, - templateProps, - valueMissing, - label, - setLabel, - onValueRemove, - workpad, - renderError, - setRenderError, - resolvedArgValue, - } = props; - - return ( - - {({ error, resetErrorState }) => { - const { template, simpleTemplate } = argTypeInstance.argType; - const hasError = Boolean(error) || renderError; - - const argumentProps = { - ...templateProps, - resolvedArgValue, - defaultValue: argTypeInstance.default, - - renderError: () => { - // TODO: don't do this - // It's an ugly hack to avoid React's render cycle and ensure the error happens on the next tick - // This is important; Otherwise we end up updating state in the middle of a render cycle - Promise.resolve().then(() => { - // Provide templates with a renderError method, and wrap the error in a known error type - // to stop Kibana's window.error from being called - // see window_error_handler.js for details, - setRenderError(true); - }); - }, - error: hasError, - setLabel, - resetErrorState: () => { - resetErrorState(); - setRenderError(false); - }, - label, - workpad, - argId, - }; - - const expandableLabel = Boolean(hasError || template); - - const simpleArg = ( - - - - ); - - const extendedArg = ( -
      - -
      - ); - - return ( -
      - + {({ error, resetErrorState }) => { + const { template, simpleTemplate } = argTypeInstance.argType; + const hasError = Boolean(error) || renderError; + + const argumentProps = { + ...templateProps, + resolvedArgValue, + defaultValue: argTypeInstance.default, + + renderError: () => { + // TODO: don't do this + // It's an ugly hack to avoid React's render cycle and ensure the error happens on the next tick + // This is important; Otherwise we end up updating state in the middle of a render cycle + Promise.resolve().then(() => { + // Provide templates with a renderError method, and wrap the error in a known error type + // to stop Kibana's window.error from being called + // see window_error_handler.js for details, + this._isMounted && setRenderError(true); + }); + }, + error: hasError, + setLabel: label => this._isMounted && setLabel(label), + resetErrorState: () => { + resetErrorState(); + this._isMounted && setRenderError(false); + }, + label, + workpad, + argId, + }; + + const expandableLabel = Boolean(hasError || template); + + const simpleArg = ( + - {extendedArg} - -
      - ); - }} -
      - ); -}; + + + ); + + const extendedArg = ( +
      + +
      + ); + + return ( +
      + + {extendedArg} + +
      + ); + }} + + ); + } +} ArgFormComponent.propTypes = { argId: PropTypes.string.isRequired, diff --git a/x-pack/plugins/canvas/public/components/asset_manager/asset_manager.js b/x-pack/plugins/canvas/public/components/asset_manager/asset_manager.js index 0c97e048659d2..30281d27e1b9b 100644 --- a/x-pack/plugins/canvas/public/components/asset_manager/asset_manager.js +++ b/x-pack/plugins/canvas/public/components/asset_manager/asset_manager.js @@ -125,7 +125,11 @@ export class AssetManager extends React.PureComponent { const assetModal = isModalVisible ? ( - + Manage workpad assets @@ -153,7 +157,7 @@ export class AssetManager extends React.PureComponent { cannot be determined at this time.

      - + {this.props.assets.map(this.renderAsset)} diff --git a/x-pack/plugins/canvas/public/components/autocomplete/autocomplete.js b/x-pack/plugins/canvas/public/components/autocomplete/autocomplete.js new file mode 100644 index 0000000000000..439556334c3e4 --- /dev/null +++ b/x-pack/plugins/canvas/public/components/autocomplete/autocomplete.js @@ -0,0 +1,249 @@ +/* + * 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. + */ + +/*disabling eslint because of these jsx-a11y errors(https://www.npmjs.com/package/eslint-plugin-jsx-a11y): +181:7 error Elements with the 'combobox' interactive role must be focusable jsx-a11y/interactive-supports-focus + 187:9 error Elements with the ARIA role "combobox" must have the following attributes defined: aria-controls,aria-expanded jsx-a11y/role-has-required-aria-props + 209:23 error Elements with the 'option' interactive role must be focusable jsx-a11y/interactive-supports-focus + 218:25 error Elements with the ARIA role "option" must have the following attributes defined: aria-selected jsx-a11y/role-has-required-aria-props +*/ +/* eslint-disable jsx-a11y/interactive-supports-focus */ +/* eslint-disable jsx-a11y/role-has-required-aria-props */ + +import React from 'react'; +import PropTypes from 'prop-types'; +import { EuiFlexGroup, EuiFlexItem, EuiPanel, keyCodes } from '@elastic/eui'; + +/** + * An autocomplete component. Currently this is only used for the expression editor but in theory + * it could be extended to any autocomplete-related component. It expects these props: + * + * header: The header node + * items: The list of items for autocompletion + * onSelect: The function to invoke when an item is selected (passing in the item) + * children: Any child nodes, which should include the text input itself + * reference: A function that is passed the selected item which generates a reference node + */ +export class Autocomplete extends React.Component { + static propTypes = { + header: PropTypes.node, + items: PropTypes.array, + onSelect: PropTypes.func, + children: PropTypes.node, + reference: PropTypes.func, + }; + + constructor() { + super(); + this.state = { + isOpen: false, + isFocused: false, + isMousedOver: false, + selectedIndex: -1, + }; + + // These are used for automatically scrolling items into view when selected + this.containerRef = null; + this.itemRefs = []; + } + + componentDidUpdate(prevProps, prevState) { + if ( + this.props.items && + prevProps.items !== this.props.items && + this.props.items.length === 1 && + this.state.selectedIndex !== 0 + ) + this.selectFirst(); + + if (prevState.selectedIndex !== this.state.selectedIndex) this.scrollIntoView(); + } + + selectFirst() { + this.setState({ selectedIndex: 0 }); + } + + isVisible() { + const { isOpen, isFocused, isMousedOver } = this.state; + const { items, reference } = this.props; + + // We have to check isMousedOver because the blur event fires before the click event, which + // means if we didn't keep track of isMousedOver, we wouldn't even get the click event + const visible = isOpen && (isFocused || isMousedOver); + const hasItems = items && items.length; + const hasReference = reference(this.getSelectedItem()); + + return visible && (hasItems || hasReference); + } + + getSelectedItem() { + return this.props.items && this.props.items[this.state.selectedIndex]; + } + + selectPrevious() { + const { items } = this.props; + const { selectedIndex } = this.state; + if (selectedIndex > 0) this.setState({ selectedIndex: selectedIndex - 1 }); + else this.setState({ selectedIndex: items.length - 1 }); + } + + selectNext() { + const { items } = this.props; + const { selectedIndex } = this.state; + if (selectedIndex >= 0 && selectedIndex < items.length - 1) + this.setState({ selectedIndex: selectedIndex + 1 }); + else this.setState({ selectedIndex: 0 }); + } + + scrollIntoView() { + const { + containerRef, + itemRefs, + state: { selectedIndex }, + } = this; + const itemRef = itemRefs[selectedIndex]; + if (!containerRef || !itemRef) return; + containerRef.scrollTop = Math.max( + Math.min(containerRef.scrollTop, itemRef.offsetTop), + itemRef.offsetTop + itemRef.offsetHeight - containerRef.offsetHeight + ); + } + + onSubmit = () => { + const { selectedIndex } = this.state; + const { items, onSelect } = this.props; + onSelect(items[selectedIndex]); + this.setState({ selectedIndex: -1 }); + }; + + /** + * Handle key down events for the menu, including selecting the previous and next items, making + * the item selection, closing the menu, etc. + */ + onKeyDown = e => { + const { ESCAPE, TAB, ENTER, UP, DOWN, LEFT, RIGHT } = keyCodes; + const { keyCode } = e; + const { items } = this.props; + const { isOpen, selectedIndex } = this.state; + + if ([ESCAPE, LEFT, RIGHT].includes(keyCode)) this.setState({ isOpen: false }); + + if ([TAB, ENTER].includes(keyCode) && isOpen && selectedIndex >= 0) { + e.preventDefault(); + this.onSubmit(); + } else if (keyCode === UP && items.length > 0 && isOpen) { + e.preventDefault(); + this.selectPrevious(); + } else if (keyCode === DOWN && items.length > 0 && isOpen) { + e.preventDefault(); + this.selectNext(); + } else if (e.key === 'Backspace') { + this.setState({ isOpen: true }); + } else if (!['Shift', 'Control', 'Alt', 'Meta'].includes(e.key)) { + this.setState({ selectedIndex: -1 }); + } + }; + + /** + * On key press (character keys), show the menu. We don't want to willy nilly show the menu + * whenever ANY key down event happens (like arrow keys) cuz that would be just downright + * annoying. + */ + onKeyPress = () => { + this.setState({ isOpen: true }); + }; + + onFocus = () => { + this.setState({ + isFocused: true, + }); + }; + + onBlur = () => { + this.setState({ + isFocused: false, + }); + }; + + onMouseDown = () => { + this.setState({ + isOpen: false, + }); + }; + + onMouseEnter = () => { + this.setState({ + isMousedOver: true, + }); + }; + + onMouseLeave = () => { + this.setState({ isMousedOver: false }); + }; + + render() { + const { header, items, reference } = this.props; + return ( +
      + {this.isVisible() ? ( + + + {items && items.length ? ( + +
      (this.containerRef = ref)} + role="listbox" + > + {header} + {items.map((item, i) => ( +
      (this.itemRefs[i] = ref)} + className={ + 'autocompleteItem' + + (this.state.selectedIndex === i ? ' autocompleteItem--isActive' : '') + } + onMouseEnter={() => this.setState({ selectedIndex: i })} + onClick={this.onSubmit} + role="option" + > + {item.text} +
      + ))} +
      +
      + ) : ( + '' + )} + +
      {reference(this.getSelectedItem())}
      +
      +
      +
      + ) : ( + '' + )} +
      {this.props.children}
      +
      + ); + } +} diff --git a/x-pack/plugins/canvas/public/components/autocomplete/autocomplete.scss b/x-pack/plugins/canvas/public/components/autocomplete/autocomplete.scss new file mode 100644 index 0000000000000..c9da34d87d0a1 --- /dev/null +++ b/x-pack/plugins/canvas/public/components/autocomplete/autocomplete.scss @@ -0,0 +1,51 @@ +.autocomplete { + position: relative; +} + +.autocompletePopup { + position: absolute; + top: -262px; + height: 260px; + width: 100%; +} + +.autocompleteItems { + border-right: $euiBorderThin; +} + +.autocompleteItems, .autocompleteReference { + height: 258px; + overflow: auto; + @include euiScrollBar; +} + +.autocompleteReference { + padding: $euiSizeS $euiSizeM; + background-color: tintOrShade($euiColorLightestShade, 65%, 20%); +} + +.autocompleteItem { + padding: $euiSizeS $euiSizeM; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-family: $euiCodeFontFamily; + font-weight: $euiFontWeightRegular; +} + +.autocompleteItem--isActive { + color: $euiColorPrimary; + background-color: $euiFocusBackgroundColor; +} + +.autocompleteType { + padding: $euiSizeS; +} + +.autocompleteTable .euiTable { + background-color: transparent; +} + +.autocompleteDescList .euiDescriptionList__description { + margin-right: $euiSizeS; +} \ No newline at end of file diff --git a/x-pack/plugins/canvas/public/components/autocomplete/index.js b/x-pack/plugins/canvas/public/components/autocomplete/index.js new file mode 100644 index 0000000000000..d897737e6f686 --- /dev/null +++ b/x-pack/plugins/canvas/public/components/autocomplete/index.js @@ -0,0 +1,7 @@ +/* + * 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 { Autocomplete } from './autocomplete'; diff --git a/x-pack/plugins/canvas/public/components/border_connection/border_connection.scss b/x-pack/plugins/canvas/public/components/border_connection/border_connection.scss index 3171a25182110..aa5d9ad1e0f41 100644 --- a/x-pack/plugins/canvas/public/components/border_connection/border_connection.scss +++ b/x-pack/plugins/canvas/public/components/border_connection/border_connection.scss @@ -7,5 +7,6 @@ //box-shadow: inset 0 0 1px 2px $euiColorPrimary; border-top: $euiBorderThin; border-left: $euiBorderThin; + border-style: dashed; border-color: #d9d9d9; } diff --git a/x-pack/plugins/canvas/public/components/context_menu/context_menu.js b/x-pack/plugins/canvas/public/components/context_menu/context_menu.js deleted file mode 100644 index 43bbb9288940d..0000000000000 --- a/x-pack/plugins/canvas/public/components/context_menu/context_menu.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 React from 'react'; -import PropTypes from 'prop-types'; - -export const ContextMenu = ({ - items, - onSelect, - itemsStyle, - itemComponent, - children, - isOpen, - selectedIndex, - setSelectedIndex, - onKeyDown, - onKeyPress, -}) => ( -
      - {children} - {isOpen && items.length ? ( -
      - {items.map((item, i) => ( -
      onSelect(item)} - onMouseOver={() => setSelectedIndex(i)} - > - {itemComponent({ item })} -
      - ))} -
      - ) : ( - '' - )} -
      -); - -ContextMenu.propTypes = { - items: PropTypes.array, - onSelect: PropTypes.func, - itemsStyle: PropTypes.object, - itemComponent: PropTypes.func, - children: PropTypes.node, - isOpen: PropTypes.bool, - selectedIndex: PropTypes.number, - setSelectedIndex: PropTypes.func, - onKeyDown: PropTypes.func, - onKeyPress: PropTypes.func, -}; diff --git a/x-pack/plugins/canvas/public/components/context_menu/context_menu.scss b/x-pack/plugins/canvas/public/components/context_menu/context_menu.scss deleted file mode 100644 index f982f8b3deedd..0000000000000 --- a/x-pack/plugins/canvas/public/components/context_menu/context_menu.scss +++ /dev/null @@ -1,28 +0,0 @@ -.contextMenu { - position: relative; - - .contextMenu__items { - position: absolute; - z-index: 1; - width: 100%; - display: flex; - flex-direction: column; - background: $euiColorEmptyShade; - border: $euiBorderThin; - - .contextMenu__item { - padding: $euiSizeS; - background-color: $euiColorEmptyShade; - border: $euiBorderThin; - color: $euiTextColor; - display: flex; - align-self: flex-start; - width: 100%; - - &-isActive { - background-color: $euiColorDarkShade; - color: $euiColorGhost; - } - } - } -} diff --git a/x-pack/plugins/canvas/public/components/context_menu/index.js b/x-pack/plugins/canvas/public/components/context_menu/index.js deleted file mode 100644 index d58137cf03c5e..0000000000000 --- a/x-pack/plugins/canvas/public/components/context_menu/index.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 { compose, withState, withHandlers } from 'recompose'; -import { ContextMenu as Component } from './context_menu'; -import { onKeyDownProvider, onKeyPressProvider } from './key_handlers'; - -export const ContextMenu = compose( - withState('isOpen', 'setIsOpen', true), - withState('selectedIndex', 'setSelectedIndex', -1), - withHandlers({ - onKeyDown: onKeyDownProvider, - onKeyPress: onKeyPressProvider, - }) -)(Component); diff --git a/x-pack/plugins/canvas/public/components/context_menu/key_handlers.js b/x-pack/plugins/canvas/public/components/context_menu/key_handlers.js deleted file mode 100644 index 5b40f9920a409..0000000000000 --- a/x-pack/plugins/canvas/public/components/context_menu/key_handlers.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -/** - * Handle key down events for the menu, including selecting the previous and - * next items, making the item selection, closing the menu, etc. - */ -export const onKeyDownProvider = ({ - items, - onSelect, - isOpen, - setIsOpen, - selectedIndex, - setSelectedIndex, -}) => e => { - if (!isOpen || !items.length) return; - const { key } = e; - if (key === 'ArrowUp') { - e.preventDefault(); - setSelectedIndex((selectedIndex - 1 + items.length) % items.length); - } else if (key === 'ArrowDown') { - e.preventDefault(); - setSelectedIndex((selectedIndex + 1) % items.length); - } else if (['Enter', 'Tab'].includes(key) && selectedIndex >= 0) { - e.preventDefault(); - onSelect(items[selectedIndex]); - setSelectedIndex(-1); - } else if (key === 'Escape') { - setIsOpen(false); - } -}; - -/** - * On key press (character keys), show the menu. We don't want to willy nilly - * show the menu whenever ANY key down event happens (like arrow keys) cuz that - * would be just downright annoying. - */ -export const onKeyPressProvider = ({ setIsOpen, setSelectedIndex }) => () => { - setIsOpen(true); - setSelectedIndex(-1); -}; diff --git a/x-pack/plugins/canvas/public/components/datasource/datasource_preview/datasource_preview.scss b/x-pack/plugins/canvas/public/components/datasource/datasource_preview/datasource_preview.scss index d26c2a9bb50ea..da26e82f78f58 100644 --- a/x-pack/plugins/canvas/public/components/datasource/datasource_preview/datasource_preview.scss +++ b/x-pack/plugins/canvas/public/components/datasource/datasource_preview/datasource_preview.scss @@ -1,5 +1,5 @@ .canvasDatasourcePreview { - max-width: 80vw; + max-width: 1000px; max-height: 60vh; height: 100%; diff --git a/x-pack/plugins/canvas/public/components/datasource/index.js b/x-pack/plugins/canvas/public/components/datasource/index.js index c86f9914f3b69..1b516449c79fa 100644 --- a/x-pack/plugins/canvas/public/components/datasource/index.js +++ b/x-pack/plugins/canvas/public/components/datasource/index.js @@ -9,15 +9,15 @@ import { connect } from 'react-redux'; import { withState, withHandlers, compose } from 'recompose'; import { get } from 'lodash'; import { datasourceRegistry } from '../../expression_types'; +import { getServerFunctions } from '../../state/selectors/app'; import { getSelectedElement, getSelectedPage } from '../../state/selectors/workpad'; -import { getFunctionDefinitions } from '../../state/selectors/app'; import { setArgumentAtIndex, setAstAtIndex, flushContext } from '../../state/actions/elements'; import { Datasource as Component } from './datasource'; const mapStateToProps = state => ({ element: getSelectedElement(state), pageId: getSelectedPage(state), - functionDefinitions: getFunctionDefinitions(state), + functionDefinitions: getServerFunctions(state), }); const mapDispatchToProps = dispatch => ({ diff --git a/x-pack/plugins/canvas/public/components/dom_preview/dom_preview.js b/x-pack/plugins/canvas/public/components/dom_preview/dom_preview.js index 754a67482ee6a..6cadc77109e46 100644 --- a/x-pack/plugins/canvas/public/components/dom_preview/dom_preview.js +++ b/x-pack/plugins/canvas/public/components/dom_preview/dom_preview.js @@ -38,6 +38,8 @@ export class DomPreview extends React.Component { } update = original => () => { + if (!this.content || !this.container) return; + const thumb = original.cloneNode(true); const originalStyle = window.getComputedStyle(original, null); @@ -48,10 +50,11 @@ export class DomPreview extends React.Component { const scale = thumbHeight / originalHeight; const thumbWidth = originalWidth * scale; - if (this.content) { - if (this.content.hasChildNodes()) this.content.removeChild(this.content.firstChild); - this.content.appendChild(thumb); - } + if (this.content.hasChildNodes()) this.content.removeChild(this.content.firstChild); + this.content.appendChild(thumb); + + this.content.style.cssText = `transform: scale(${scale}); transform-origin: top left;`; + this.container.style.cssText = `width: ${thumbWidth}px; height: ${thumbHeight}px;`; // Copy canvas data const originalCanvas = original.querySelectorAll('canvas'); @@ -63,9 +66,6 @@ export class DomPreview extends React.Component { thumbCanvas[i].getContext('2d').drawImage(img, 0, 0) ); } - - this.container.style.cssText = `width: ${thumbWidth}px; height: ${thumbHeight}px;`; - this.content.style.cssText = `transform: scale(${scale}); transform-origin: top left;`; }; render() { diff --git a/x-pack/plugins/canvas/public/components/download/download.js b/x-pack/plugins/canvas/public/components/download/download.js index 29b33f20e2105..e2b39f15d48d1 100644 --- a/x-pack/plugins/canvas/public/components/download/download.js +++ b/x-pack/plugins/canvas/public/components/download/download.js @@ -8,7 +8,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import fileSaver from 'file-saver'; import { toByteArray } from 'base64-js'; -import { parse } from '../../../common/lib/dataurl'; +import { parseDataUrl } from '../../../common/lib/dataurl'; export class Download extends React.PureComponent { static propTypes = { @@ -20,7 +20,7 @@ export class Download extends React.PureComponent { onClick = () => { const { fileName, content } = this.props; - const asset = parse(content, true); + const asset = parseDataUrl(content, true); const assetBlob = new Blob([toByteArray(asset.data)], { type: asset.mimetype }); const ext = asset.extension ? `.${asset.extension}` : ''; fileSaver.saveAs(assetBlob, `canvas-${fileName}${ext}`); diff --git a/x-pack/plugins/canvas/public/components/element_content/invalid_element_type.js b/x-pack/plugins/canvas/public/components/element_content/invalid_element_type.js index 08d8a5294e9a4..33b12ea9b9399 100644 --- a/x-pack/plugins/canvas/public/components/element_content/invalid_element_type.js +++ b/x-pack/plugins/canvas/public/components/element_content/invalid_element_type.js @@ -3,6 +3,10 @@ * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ +/* Disabling eslint because of this jsx-a11y error(https://www.npmjs.com/package/eslint-plugin-jsx-a11y): +11:3 error Non-interactive elements should not be assigned mouse or keyboard event listeners jsx-a11y/no-noninteractive-element-interactions +*/ +/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ import React from 'react'; import PropTypes from 'prop-types'; diff --git a/x-pack/plugins/canvas/public/components/element_content/invalid_expression.js b/x-pack/plugins/canvas/public/components/element_content/invalid_expression.js index 0c17f9ac51732..0dcfd92b637cb 100644 --- a/x-pack/plugins/canvas/public/components/element_content/invalid_expression.js +++ b/x-pack/plugins/canvas/public/components/element_content/invalid_expression.js @@ -4,6 +4,11 @@ * you may not use this file except in compliance with the Elastic License. */ +/* Disabling eslint because of this jsx-a11y error(https://www.npmjs.com/package/eslint-plugin-jsx-a11y): + 11:3 error Non-interactive elements should not be assigned mouse or keyboard event listeners jsx-a11y/no-noninteractive-element-interactions + */ +/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + import React from 'react'; import PropTypes from 'prop-types'; diff --git a/x-pack/plugins/canvas/public/components/element_share_container/element_share_container.js b/x-pack/plugins/canvas/public/components/element_share_container/element_share_container.js index be52438f635fe..e2afd9e2e0459 100644 --- a/x-pack/plugins/canvas/public/components/element_share_container/element_share_container.js +++ b/x-pack/plugins/canvas/public/components/element_share_container/element_share_container.js @@ -22,12 +22,11 @@ export class ElementShareContainer extends React.PureComponent { componentDidMount() { const { functionName, onComplete } = this.props; const isDevelopment = process.env.NODE_ENV !== 'production'; - let t; // check that the done event is called within a certain time if (isDevelopment) { const timeout = 15; // timeout, in seconds - t = setTimeout(() => { + this.timeout = setTimeout(() => { // TODO: show this message in a proper notification console.warn( `done handler not called in render function after ${timeout} seconds: ${functionName}` @@ -37,9 +36,9 @@ export class ElementShareContainer extends React.PureComponent { // dispatches a custom DOM event on the container when the element is complete onComplete(() => { - clearTimeout(t); + clearTimeout(this.timeout); if (!this.sharedItemRef) return; // without this, crazy fast forward/backward paging leads to an error - const ev = new Event('renderComplete'); + const ev = new CustomEvent('renderComplete'); this.sharedItemRef.dispatchEvent(ev); // if the element is finished before reporting is listening for then @@ -52,6 +51,10 @@ export class ElementShareContainer extends React.PureComponent { }); } + componentWillUnmount() { + clearTimeout(this.timeout); + } + render() { // NOTE: the data-shared-item and data-render-complete attributes are used for reporting return ( diff --git a/x-pack/plugins/canvas/public/components/element_types/element_types.js b/x-pack/plugins/canvas/public/components/element_types/element_types.js index dde2d5c51f56f..074ffcaa8cee7 100644 --- a/x-pack/plugins/canvas/public/components/element_types/element_types.js +++ b/x-pack/plugins/canvas/public/components/element_types/element_types.js @@ -34,6 +34,7 @@ export const ElementTypes = ({ elements, onClick, search, setSearch }) => { title={displayName} description={help} onClick={whenClicked} + className="canvasCard" /> ); @@ -51,6 +52,7 @@ export const ElementTypes = ({ elements, onClick, search, setSearch }) => { setSearch(e.target.value)} value={search} diff --git a/x-pack/plugins/canvas/public/components/element_types/element_types.scss b/x-pack/plugins/canvas/public/components/element_types/element_types.scss new file mode 100644 index 0000000000000..bb58a60515c70 --- /dev/null +++ b/x-pack/plugins/canvas/public/components/element_types/element_types.scss @@ -0,0 +1,17 @@ +.canvasCard { + + .euiCard__top { + text-align: center; + width: calc(100% + #{$euiSize}*2); + height: 85px; + margin: calc(-1 * #{$euiSize}) calc(-1 * #{$euiSize}) 0; + } + + .euiCard__image { + max-height: 100%; + max-width: 100%; + width: auto; + left: 0; + top: 0; + } +} \ No newline at end of file diff --git a/x-pack/plugins/canvas/public/components/element_wrapper/index.js b/x-pack/plugins/canvas/public/components/element_wrapper/index.js index b932b3495db98..cbea3b487a4ab 100644 --- a/x-pack/plugins/canvas/public/components/element_wrapper/index.js +++ b/x-pack/plugins/canvas/public/components/element_wrapper/index.js @@ -6,14 +6,13 @@ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; -import { getEditing } from '../../state/selectors/app'; -import { getResolvedArgs, getSelectedPage } from '../../state/selectors/workpad'; +import { getResolvedArgs, getSelectedPage, isWriteable } from '../../state/selectors/workpad'; import { getState, getValue, getError } from '../../lib/resolved_arg'; import { ElementWrapper as Component } from './element_wrapper'; import { createHandlers as createHandlersWithDispatch } from './lib/handlers'; const mapStateToProps = (state, { element }) => ({ - isEditing: getEditing(state), + isWriteable: isWriteable(state), resolvedArg: getResolvedArgs(state, element.id, 'expressionRenderable'), selectedPage: getSelectedPage(state), }); diff --git a/x-pack/plugins/canvas/public/components/error/error.js b/x-pack/plugins/canvas/public/components/error/error.js index c37780657ba29..1db25835b77cb 100644 --- a/x-pack/plugins/canvas/public/components/error/error.js +++ b/x-pack/plugins/canvas/public/components/error/error.js @@ -11,7 +11,6 @@ import { get } from 'lodash'; import { ShowDebugging } from './show_debugging'; export const Error = ({ payload }) => { - const functionName = get(payload, 'info.functionName'); const message = get(payload, 'error.message'); return ( @@ -21,10 +20,7 @@ export const Error = ({ payload }) => { iconType="cross" title="Whoops! Expression failed" > -

      - The function "{functionName}" failed - {message ? ' with the following message:' : '.'} -

      +

      {message ? 'Expression failed with the message:' : ''}

      {message &&

      {message}

      } @@ -33,8 +29,5 @@ export const Error = ({ payload }) => { }; Error.propTypes = { - payload: PropTypes.shape({ - info: PropTypes.object.isRequired, - error: PropTypes.object.isRequired, - }).isRequired, + payload: PropTypes.object.isRequired, }; diff --git a/x-pack/plugins/canvas/public/components/es_field_select/es_field_select.js b/x-pack/plugins/canvas/public/components/es_field_select/es_field_select.js index 3f936b3aca637..b5c1c233da33a 100644 --- a/x-pack/plugins/canvas/public/components/es_field_select/es_field_select.js +++ b/x-pack/plugins/canvas/public/components/es_field_select/es_field_select.js @@ -24,7 +24,7 @@ export const ESFieldSelect = ({ value, fields = [], onChange, onFocus, onBlur }) }} onFocus={onFocus} onBlur={onBlur} - singleSelection + singleSelection={{ asPlainText: true }} isClearable={false} /> ); diff --git a/x-pack/plugins/canvas/public/components/es_index_select/es_index_select.js b/x-pack/plugins/canvas/public/components/es_index_select/es_index_select.js index d871ba1b7d9b1..035cae6fbba06 100644 --- a/x-pack/plugins/canvas/public/components/es_index_select/es_index_select.js +++ b/x-pack/plugins/canvas/public/components/es_index_select/es_index_select.js @@ -27,7 +27,7 @@ export const ESIndexSelect = ({ value, loading, indices, onChange, onFocus, onBl onFocus={onFocus} disabled={loading} options={options} - singleSelection + singleSelection={{ asPlainText: true }} isClearable={false} onCreateOption={input => onChange(input || defaultIndex)} /> diff --git a/x-pack/plugins/canvas/public/components/expression/expression.js b/x-pack/plugins/canvas/public/components/expression/expression.js index d901529616abc..1ee8a5211eb3d 100644 --- a/x-pack/plugins/canvas/public/components/expression/expression.js +++ b/x-pack/plugins/canvas/public/components/expression/expression.js @@ -12,30 +12,53 @@ import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, - EuiSpacer, + EuiSwitch, } from '@elastic/eui'; import { ExpressionInput } from '../expression_input'; -export const Expression = ({ formState, updateValue, setExpression, done, error }) => { +export const Expression = ({ + functionDefinitions, + formState, + updateValue, + setExpression, + done, + error, + isAutocompleteEnabled, + toggleAutocompleteEnabled, +}) => { return ( - - - - + + + - - {formState.dirty ? 'Cancel' : 'Close'} - + - - setExpression(formState.expression)} - size="s" - > - Run - + + + + {formState.dirty ? 'Cancel' : 'Close'} + + setExpression(formState.expression)} + size="s" + > + Run + + @@ -43,9 +66,12 @@ export const Expression = ({ formState, updateValue, setExpression, done, error }; Expression.propTypes = { + functionDefinitions: PropTypes.array, formState: PropTypes.object, updateValue: PropTypes.func, setExpression: PropTypes.func, done: PropTypes.func, error: PropTypes.string, + isAutocompleteEnabled: PropTypes.bool, + toggleAutocompleteEnabled: PropTypes.func, }; diff --git a/x-pack/plugins/canvas/public/components/expression/index.js b/x-pack/plugins/canvas/public/components/expression/index.js index d5f706765380f..18690529d4e80 100644 --- a/x-pack/plugins/canvas/public/components/expression/index.js +++ b/x-pack/plugins/canvas/public/components/expression/index.js @@ -4,6 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ +import { Storage } from 'ui/storage'; import { connect } from 'react-redux'; import { compose, @@ -17,12 +18,17 @@ import { import { getSelectedPage, getSelectedElement } from '../../state/selectors/workpad'; import { setExpression, flushContext } from '../../state/actions/elements'; import { fromExpression } from '../../../common/lib/ast'; +import { getFunctionDefinitions } from '../../lib/function_definitions'; +import { getWindow } from '../../lib/get_window'; import { ElementNotSelected } from './element_not_selected'; import { Expression as Component } from './expression'; +const storage = new Storage(getWindow().localStorage); + const mapStateToProps = state => ({ pageId: getSelectedPage(state), element: getSelectedElement(state), + functionDefinitionsPromise: getFunctionDefinitions(state), }); const mapDispatchToProps = dispatch => ({ @@ -59,6 +65,10 @@ const expressionLifecycle = lifecycle({ }); } }, + componentDidMount() { + const { functionDefinitionsPromise, setFunctionDefinitions } = this.props; + functionDefinitionsPromise.then(defs => setFunctionDefinitions(defs)); + }, }); export const Expression = compose( @@ -67,11 +77,20 @@ export const Expression = compose( mapDispatchToProps, mergeProps ), + withState('functionDefinitions', 'setFunctionDefinitions', []), withState('formState', 'setFormState', ({ expression }) => ({ expression, dirty: false, })), + withState('isAutocompleteEnabled', 'setIsAutocompleteEnabled', () => { + const setting = storage.get('kibana.canvas.isAutocompleteEnabled'); + return setting === null ? true : setting; + }), withHandlers({ + toggleAutocompleteEnabled: ({ isAutocompleteEnabled, setIsAutocompleteEnabled }) => () => { + storage.set('kibana.canvas.isAutocompleteEnabled', !isAutocompleteEnabled); + setIsAutocompleteEnabled(!isAutocompleteEnabled); + }, updateValue: ({ setFormState }) => expression => { setFormState({ expression, diff --git a/x-pack/plugins/canvas/public/components/expression_input/argument_reference.js b/x-pack/plugins/canvas/public/components/expression_input/argument_reference.js new file mode 100644 index 0000000000000..dd72f0080024b --- /dev/null +++ b/x-pack/plugins/canvas/public/components/expression_input/argument_reference.js @@ -0,0 +1,44 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import Markdown from 'markdown-it'; +import { EuiTitle, EuiText, EuiSpacer, EuiDescriptionList } from '@elastic/eui'; + +const md = new Markdown(); + +export const ArgumentReference = ({ argDef }) => ( +
      + +

      {argDef.name}

      +
      + + + + + + +
      +); + +function getHelp(argDef) { + return { __html: md.render(argDef.help) }; +} + +function getArgListItems(argDef) { + const { aliases, types, default: def, required } = argDef; + const items = []; + if (aliases.length) items.push({ title: 'Aliases', description: aliases.join(', ') }); + if (types.length) items.push({ title: 'Types', description: types.join(', ') }); + if (def != null) items.push({ title: 'Default', description: def }); + items.push({ title: 'Required', description: String(Boolean(required)) }); + return items; +} + +ArgumentReference.propTypes = { + argDef: PropTypes.object, +}; diff --git a/x-pack/plugins/canvas/public/components/expression_input/expression_input.js b/x-pack/plugins/canvas/public/components/expression_input/expression_input.js index 1f9a8a9c71453..7ea1aa8f6f698 100644 --- a/x-pack/plugins/canvas/public/components/expression_input/expression_input.js +++ b/x-pack/plugins/canvas/public/components/expression_input/expression_input.js @@ -6,14 +6,23 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { EuiTextArea, EuiFormRow } from '@elastic/eui'; -import { ContextMenu } from '../context_menu'; -import { matchPairsProvider } from './match_pairs'; -import { Suggestion } from './suggestion'; +import { EuiTextArea, EuiFormRow, EuiTitle } from '@elastic/eui'; +import { debounce, startCase } from 'lodash'; +import { Autocomplete } from '../autocomplete'; +import { + getAutocompleteSuggestions, + getFnArgDefAtPosition, +} from '../../../common/lib/autocomplete'; +import { FunctionReference } from './function_reference'; +import { ArgumentReference } from './argument_reference'; export class ExpressionInput extends React.Component { - constructor({ value, onChange }) { + constructor({ value }) { super(); + + this.undoHistory = []; + this.redoHistory = []; + this.state = { selection: { start: value.length, @@ -21,11 +30,6 @@ export class ExpressionInput extends React.Component { }, suggestions: [], }; - - this.matchPairs = matchPairsProvider({ - setValue: onChange, - setSelection: selection => this.setState({ selection }), - }); } componentDidUpdate() { @@ -35,6 +39,53 @@ export class ExpressionInput extends React.Component { this.ref.setSelectionRange(start, end); } + undo() { + if (!this.undoHistory.length) return; + const value = this.undoHistory.pop(); + this.redoHistory.push(this.props.value); + this.props.onChange(value); + } + + redo() { + if (!this.redoHistory.length) return; + const value = this.redoHistory.pop(); + this.undoHistory.push(this.props.value); + this.props.onChange(value); + } + + stash = debounce( + value => { + this.undoHistory.push(value); + this.redoHistory = []; + }, + 500, + { leading: true, trailing: false } + ); + + onKeyDown = e => { + if (e.ctrlKey || e.metaKey) { + if (e.key === 'z') { + e.preventDefault(); + if (e.shiftKey) this.redo(); + else this.undo(); + } + if (e.key === 'y') { + e.preventDefault(); + this.redo(); + } + } + }; + + onSuggestionSelect = item => { + const { text, start, end } = item; + const value = this.props.value.substr(0, start) + text + this.props.value.substr(end); + const selection = { start: start + text.length, end: start + text.length }; + this.updateState({ value, selection }); + + // This is needed for when the suggestion was selected by clicking on it + this.ref.focus(); + }; + onChange = e => { const { target } = e; const { value, selectionStart, selectionEnd } = target; @@ -45,40 +96,46 @@ export class ExpressionInput extends React.Component { this.updateState({ value, selection }); }; - onSuggestionSelect = suggestion => { - const value = - this.props.value.substr(0, suggestion.location.start) + - suggestion.value + - this.props.value.substr(suggestion.location.end); - const selection = { - start: suggestion.location.start + suggestion.value.length, - end: suggestion.location.start + suggestion.value.length, - }; - this.updateState({ value, selection }); - }; - updateState = ({ value, selection }) => { - const suggestions = []; + this.stash(this.props.value); + const suggestions = getAutocompleteSuggestions( + this.props.functionDefinitions, + value, + selection.start + ); this.props.onChange(value); this.setState({ selection, suggestions }); }; - // TODO: Use a hidden div and measure it rather than using hardcoded values - getContextMenuItemsStyle = () => { - const { value } = this.props; - const { - selection: { end }, - } = this.state; - const numberOfNewlines = value.substr(0, end).split('\n').length; - const padding = 12; - const lineHeight = 22; - const textareaHeight = 200; - const top = Math.min(padding + numberOfNewlines * lineHeight, textareaHeight) + 'px'; - return { top }; + getHeader = () => { + const { suggestions } = this.state; + if (!suggestions.length) return ''; + return ( + +

      {startCase(suggestions[0].type)}

      +
      + ); + }; + + getReference = selectedItem => { + const { fnDef, argDef } = selectedItem || {}; + if (argDef) return ; + if (fnDef) return ; + + const { fnDef: fnDefAtPosition, argDef: argDefAtPosition } = getFnArgDefAtPosition( + this.props.functionDefinitions, + this.props.value, + this.state.selection.start + ); + + if (argDefAtPosition) return ; + if (fnDefAtPosition) return ; + + return ''; }; render() { - const { value, error } = this.props; + const { value, error, isAutocompleteEnabled } = this.props; const { suggestions } = this.state; const helpText = error @@ -86,29 +143,43 @@ export class ExpressionInput extends React.Component { : 'This is the coded expression that backs this element. You better know what you are doing here.'; return (
      - - + + {isAutocompleteEnabled ? ( + + (this.ref = ref)} + spellCheck="false" + /> + + ) : ( (this.ref = ref)} + spellCheck="false" /> - - + )} +
      ); } } ExpressionInput.propTypes = { + functionDefinitions: PropTypes.array, value: PropTypes.string, onChange: PropTypes.func, error: PropTypes.string, + isAutocompleteEnabled: PropTypes.bool, }; diff --git a/x-pack/plugins/canvas/public/components/expression_input/function_reference.js b/x-pack/plugins/canvas/public/components/expression_input/function_reference.js new file mode 100644 index 0000000000000..0f9076b7613a8 --- /dev/null +++ b/x-pack/plugins/canvas/public/components/expression_input/function_reference.js @@ -0,0 +1,74 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import Markdown from 'markdown-it'; +import { EuiTitle, EuiText, EuiSpacer, EuiBasicTable, EuiDescriptionList } from '@elastic/eui'; +import { startCase } from 'lodash'; + +const md = new Markdown(); + +export const FunctionReference = ({ fnDef }) => ( +
      + +

      {fnDef.name}

      +
      + + + + + + + + + +
      +); + +function getHelp(fnDef) { + return { __html: md.render(fnDef.help) }; +} + +function getFnListItems(fnDef) { + const { aliases, context, type } = fnDef; + const items = []; + if (aliases.length) items.push({ title: 'Aliases', description: aliases.join(', ') }); + if (context.types) items.push({ title: 'Accepts', description: context.types.join(', ') }); + if (type) items.push({ title: 'Returns', description: type }); + return items; +} + +function getArgItems(args) { + return Object.entries(args).map(([name, argDef]) => ({ + argument: name + (argDef.required ? '*' : ''), + aliases: (argDef.aliases || []).join(', '), + types: (argDef.types || []).join(', '), + default: argDef.default || '', + description: argDef.help || '', + })); +} + +function getArgColumns() { + return ['argument', 'aliases', 'types', 'default', 'description'].map(field => { + const column = { field, name: startCase(field), truncateText: field !== 'description' }; + if (field === 'description') column.width = '50%'; + return column; + }); +} + +FunctionReference.propTypes = { + fnDef: PropTypes.object, +}; diff --git a/x-pack/plugins/canvas/public/components/expression_input/match_pairs.js b/x-pack/plugins/canvas/public/components/expression_input/match_pairs.js deleted file mode 100644 index 01d96f7304b75..0000000000000 --- a/x-pack/plugins/canvas/public/components/expression_input/match_pairs.js +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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. - */ - -/** - * Provides an `onKeyDown` handler that automatically inserts matching pairs. - * Specifically, it does the following: - * - * 1. If we don't have a multi-character selection, and the key is a closer, - * and the character in front of the cursor is the same, simply move the - * cursor forward. - * 2. If the key is an opener, insert the opener at the beginning of the - * selection, and the closer at the end of the selection, and move the - * selection forward. - * 3. If we don't have a multi-character selection, and the backspace is hit, - * and the characters before and after the cursor correspond to a pair, - * remove both characters and move the cursor backward. - */ -export const matchPairsProvider = ({ - pairs = ['()', '[]', '{}', `''`, '""'], - setValue, - setSelection, -}) => { - const openers = pairs.map(pair => pair[0]); - const closers = pairs.map(pair => pair[1]); - return e => { - const { target, key } = e; - const { value, selectionStart, selectionEnd } = target; - if ( - selectionStart === selectionEnd && - closers.includes(key) && - value.charAt(selectionEnd) === key - ) { - // 1. (See above) - e.preventDefault(); - setSelection({ start: selectionStart + 1, end: selectionEnd + 1 }); - } else if (openers.includes(key)) { - // 2. (See above) - e.preventDefault(); - setValue( - value.substr(0, selectionStart) + - key + - value.substring(selectionStart, selectionEnd) + - closers[openers.indexOf(key)] + - value.substr(selectionEnd) - ); - setSelection({ start: selectionStart + 1, end: selectionEnd + 1 }); - } else if ( - selectionStart === selectionEnd && - key === 'Backspace' && - !e.metaKey && - pairs.includes(value.substr(selectionEnd - 1, 2)) - ) { - // 3. (See above) - e.preventDefault(); - setValue(value.substr(0, selectionEnd - 1) + value.substr(selectionEnd + 1)); - setSelection({ start: selectionStart - 1, end: selectionEnd - 1 }); - } - }; -}; diff --git a/x-pack/plugins/canvas/public/components/expression_input/suggestion.js b/x-pack/plugins/canvas/public/components/expression_input/suggestion.js deleted file mode 100644 index ec8b6467a6ad9..0000000000000 --- a/x-pack/plugins/canvas/public/components/expression_input/suggestion.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * 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 React from 'react'; -import PropTypes from 'prop-types'; - -export const Suggestion = ({ item }) => ( -
      -
      {item.name}
      -
      {item.description}
      -
      -); - -Suggestion.propTypes = { - item: PropTypes.object, -}; diff --git a/x-pack/plugins/canvas/public/components/expression_input/suggestion.scss b/x-pack/plugins/canvas/public/components/expression_input/suggestion.scss deleted file mode 100644 index f1748578d1ffa..0000000000000 --- a/x-pack/plugins/canvas/public/components/expression_input/suggestion.scss +++ /dev/null @@ -1,12 +0,0 @@ -.canvasExpressionSuggestion { - display: flex; - - .canvasExpressionSuggestion__name { - width: 120px; - font-weight: bold; - } - - .canvasExpressionSuggestion__desc { - width: calc(100% - 120px); - } -} diff --git a/x-pack/plugins/canvas/public/components/faux_select/faux_select.js b/x-pack/plugins/canvas/public/components/faux_select/faux_select.js deleted file mode 100644 index 87b7f3fddb27e..0000000000000 --- a/x-pack/plugins/canvas/public/components/faux_select/faux_select.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 React from 'react'; -import { PropTypes } from 'prop-types'; -import { EuiIcon, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; - -//TODO: remove this when EUI has a better select component -export const FauxSelect = ({ handleClick, children }) => ( - - {children} - - - - -); - -FauxSelect.propTypes = { - handleClick: PropTypes.func, - children: PropTypes.node, -}; diff --git a/x-pack/plugins/canvas/public/components/faux_select/index.js b/x-pack/plugins/canvas/public/components/faux_select/index.js deleted file mode 100644 index a4c41927ec423..0000000000000 --- a/x-pack/plugins/canvas/public/components/faux_select/index.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - * 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 { pure } from 'recompose'; -import { FauxSelect as Component } from './faux_select'; - -export const FauxSelect = pure(Component); diff --git a/x-pack/plugins/canvas/public/components/font_picker/font_picker.js b/x-pack/plugins/canvas/public/components/font_picker/font_picker.js index ac49383f466ef..20f921b8f606c 100644 --- a/x-pack/plugins/canvas/public/components/font_picker/font_picker.js +++ b/x-pack/plugins/canvas/public/components/font_picker/font_picker.js @@ -6,50 +6,30 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { EuiLink } from '@elastic/eui'; +import { EuiSuperSelect } from '@elastic/eui'; import { fonts } from '../../../common/lib/fonts'; -import { Popover } from '../popover'; -import { FauxSelect } from '../faux_select'; -export const FontPicker = ({ onSelect, value, anchorPosition }) => { - const selected = fonts.find(font => font.value === value) || { label: value, value }; - - // TODO: replace faux select with better EUI custom select or dropdown when it becomes available - const popoverButton = handleClick => ( - -
      {selected.label}
      -
      - ); +export const FontPicker = ({ onSelect, value }) => { + if (value && !fonts.find(font => font.value === value)) { + const label = (value.indexOf(',') >= 0 ? value.split(',')[0] : value).replace(/['"]/g, ''); + fonts.push({ value, label }); + fonts.sort((a, b) => a.label.localeCompare(b.label)); + } return ( - - {() => ( -
      - {fonts.map(font => ( - onSelect(font.value)} - > - {font.label} - - ))} -
      - )} -
      + ({ + value, + inputDisplay:
      {label}
      , + }))} + valueOfSelected={value} + onChange={value => onSelect(value)} + /> ); }; FontPicker.propTypes = { value: PropTypes.string, onSelect: PropTypes.func, - anchorPosition: PropTypes.string, }; diff --git a/x-pack/plugins/canvas/public/components/font_picker/font_picker.scss b/x-pack/plugins/canvas/public/components/font_picker/font_picker.scss deleted file mode 100644 index a777f74217f89..0000000000000 --- a/x-pack/plugins/canvas/public/components/font_picker/font_picker.scss +++ /dev/null @@ -1,20 +0,0 @@ -.canvasFontPicker__wrapper { - // hacky fix until we can use EUI super select - > .euiPopover__anchor { - width: 100%; - } -} - -.canvasFontPicker { - @include euiScrollBar; - - height: 200px; - overflow-y: scroll; - - .canvasFontPicker__font { - display: block; - width: 100%; - padding: $euiSizeXS $euiSize; - color: black; - } -} diff --git a/x-pack/plugins/canvas/public/components/fullscreen/fullscreen.scss b/x-pack/plugins/canvas/public/components/fullscreen/fullscreen.scss index dfc392163cb6a..0cfdcd29ecf94 100644 --- a/x-pack/plugins/canvas/public/components/fullscreen/fullscreen.scss +++ b/x-pack/plugins/canvas/public/components/fullscreen/fullscreen.scss @@ -11,7 +11,8 @@ body.canvas-isFullscreen { } // hide all the interface parts - nav.global-nav, + nav.global-nav, // K6 global side nav + .header-global-wrapper, // K7 global top nav .canvasLayout__stageHeader, .canvasLayout__sidebar, .canvasLayout__footer, @@ -19,7 +20,13 @@ body.canvas-isFullscreen { display: none; } + // remove space for K7 global top nav + .header-global-wrapper + .app-wrapper { + top: 0; + } + .canvasLayout__stageContentOverflow { + display: block; // fixes center alignment for Safari overflow: visible; position: static; top: auto; diff --git a/x-pack/plugins/canvas/public/components/loading/__tests__/loading.js b/x-pack/plugins/canvas/public/components/loading/__tests__/loading.js index 6393730a277d0..bae592801f537 100644 --- a/x-pack/plugins/canvas/public/components/loading/__tests__/loading.js +++ b/x-pack/plugins/canvas/public/components/loading/__tests__/loading.js @@ -8,7 +8,7 @@ import React from 'react'; import expect from 'expect.js'; import { shallow } from 'enzyme'; import { EuiLoadingSpinner, EuiIcon } from '@elastic/eui'; -import { Loading } from '../'; +import { Loading } from '../loading'; describe('', () => { it('uses EuiIcon by default', () => { diff --git a/x-pack/plugins/canvas/public/components/loading/index.js b/x-pack/plugins/canvas/public/components/loading/index.js index 81fedf3287184..9216cb55d83c2 100644 --- a/x-pack/plugins/canvas/public/components/loading/index.js +++ b/x-pack/plugins/canvas/public/components/loading/index.js @@ -4,7 +4,12 @@ * you may not use this file except in compliance with the Elastic License. */ -import { pure } from 'recompose'; +import { connect } from 'react-redux'; +import { getSelectedPage, getPageById } from '../../state/selectors/workpad'; import { Loading as Component } from './loading'; -export const Loading = pure(Component); +const mapStateToProps = state => ({ + backgroundColor: getPageById(state, getSelectedPage(state)).style.background, +}); + +export const Loading = connect(mapStateToProps)(Component); diff --git a/x-pack/plugins/canvas/public/components/loading/loading.js b/x-pack/plugins/canvas/public/components/loading/loading.js index d18766244d1a1..6b108a7606e8a 100644 --- a/x-pack/plugins/canvas/public/components/loading/loading.js +++ b/x-pack/plugins/canvas/public/components/loading/loading.js @@ -6,9 +6,10 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { EuiLoadingSpinner, EuiIcon } from '@elastic/eui'; +import { EuiLoadingSpinner, EuiIcon, isColorDark } from '@elastic/eui'; +import { hexToRgb } from '../../../common/lib/hex_to_rgb'; -export const Loading = ({ animated, text }) => { +export const Loading = ({ animated, text, backgroundColor }) => { if (animated) { return (
      @@ -23,6 +24,8 @@ export const Loading = ({ animated, text }) => { ); } + const rgb = hexToRgb(backgroundColor); + return (
      {text && ( @@ -31,7 +34,7 @@ export const Loading = ({ animated, text }) => {   )} - +
      ); }; @@ -39,6 +42,7 @@ export const Loading = ({ animated, text }) => { Loading.propTypes = { animated: PropTypes.bool, text: PropTypes.string, + backgroundColor: PropTypes.string, }; Loading.defaultProps = { diff --git a/x-pack/plugins/canvas/public/components/page_config/page_config.js b/x-pack/plugins/canvas/public/components/page_config/page_config.js index cbd6cf556ef97..c5b1aee46be07 100644 --- a/x-pack/plugins/canvas/public/components/page_config/page_config.js +++ b/x-pack/plugins/canvas/public/components/page_config/page_config.js @@ -31,9 +31,9 @@ export const PageConfig = ({ page, we use the second page's transition) */} {pageIndex > 0 ? (
      - + setTransition(e.target.value)} /> diff --git a/x-pack/plugins/canvas/public/components/page_manager/index.js b/x-pack/plugins/canvas/public/components/page_manager/index.js index f4f7cad4431c7..7fd393d4d4068 100644 --- a/x-pack/plugins/canvas/public/components/page_manager/index.js +++ b/x-pack/plugins/canvas/public/components/page_manager/index.js @@ -7,10 +7,12 @@ import { connect } from 'react-redux'; import { compose, withState } from 'recompose'; import * as pageActions from '../../state/actions/pages'; -import { getSelectedPage, getWorkpad, getPages } from '../../state/selectors/workpad'; +import { canUserWrite } from '../../state/selectors/app'; +import { getSelectedPage, getWorkpad, getPages, isWriteable } from '../../state/selectors/workpad'; import { PageManager as Component } from './page_manager'; const mapStateToProps = state => ({ + isWriteable: isWriteable(state) && canUserWrite(state), pages: getPages(state), selectedPage: getSelectedPage(state), workpadId: getWorkpad(state).id, diff --git a/x-pack/plugins/canvas/public/components/page_manager/page_manager.js b/x-pack/plugins/canvas/public/components/page_manager/page_manager.js index aabf086fa0023..d15fa26cce0cb 100644 --- a/x-pack/plugins/canvas/public/components/page_manager/page_manager.js +++ b/x-pack/plugins/canvas/public/components/page_manager/page_manager.js @@ -14,6 +14,7 @@ import { PagePreview } from '../page_preview'; export class PageManager extends React.PureComponent { static propTypes = { + isWriteable: PropTypes.bool.isRequired, pages: PropTypes.array.isRequired, workpadId: PropTypes.string.isRequired, addPage: PropTypes.func.isRequired, @@ -31,10 +32,13 @@ export class PageManager extends React.PureComponent { }; componentDidMount() { + // keep track of whether or not the component is mounted, to prevent rogue setState calls + this._isMounted = true; + // gives the tray pop animation time to finish setTimeout(() => { this.scrollToActivePage(); - this.setState({ showTrayPop: false }); + this._isMounted && this.setState({ showTrayPop: false }); }, 1000); } @@ -43,8 +47,16 @@ export class PageManager extends React.PureComponent { if (prevProps.selectedPage !== this.props.selectedPage) setTimeout(this.scrollToActivePage, 0); } + componentWillUnmount() { + this._isMounted = false; + } + scrollToActivePage = () => { if (this.activePageRef && this.pageListRef) { + // not all target browsers support element.scrollTo + // TODO: replace this with something more cross-browser, maybe scrollIntoView + if (!this.pageListRef.scrollTo) return; + const pageOffset = this.activePageRef.offsetLeft; const { left: pageLeft, @@ -73,10 +85,10 @@ export class PageManager extends React.PureComponent { }; confirmDelete = pageId => { - this.props.setDeleteId(pageId); + this._isMounted && this.props.setDeleteId(pageId); }; - resetDelete = () => this.props.setDeleteId(null); + resetDelete = () => this._isMounted && this.props.setDeleteId(null); doDelete = () => { const { previousPage, removePage, deleteId, selectedPage } = this.props; @@ -95,11 +107,11 @@ export class PageManager extends React.PureComponent { }; renderPage = (page, i) => { - const { selectedPage, workpadId, movePage, duplicatePage } = this.props; + const { isWriteable, selectedPage, workpadId, movePage, duplicatePage } = this.props; const pageNumber = i + 1; return ( - + {provided => (
      - - - - - + {isWriteable && ( + + + + + + )} div { @@ -26,6 +19,18 @@ } } + .canvasPageManager__pageList { + @include euiScrollBar; + display: flex; + overflow-x: auto; + overflow-y: hidden; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + } + .canvasPageManager__addPage { width: $euiSizeXXL + $euiSize; background: $euiColorSecondary; @@ -33,7 +38,6 @@ opacity: 0; animation: buttonPop $euiAnimSpeedNormal $euiAnimSlightResistance; animation-fill-mode: forwards; - height: 144px; } .canvasPageManager__addPageTip { @@ -88,6 +92,7 @@ @include euiBottomShadowSmall; position: relative; overflow: hidden; + color: $euiTextColor; .canvasPositionable { position: absolute; diff --git a/x-pack/plugins/canvas/public/components/page_preview/page_preview.js b/x-pack/plugins/canvas/public/components/page_preview/page_preview.js index dfcbc31c54fa2..a69e25e115c33 100644 --- a/x-pack/plugins/canvas/public/components/page_preview/page_preview.js +++ b/x-pack/plugins/canvas/public/components/page_preview/page_preview.js @@ -9,22 +9,32 @@ import PropTypes from 'prop-types'; import { DomPreview } from '../dom_preview'; import { PageControls } from './page_controls'; -export const PagePreview = ({ page, pageNumber, height, duplicatePage, confirmDelete }) => ( +export const PagePreview = ({ + isWriteable, + page, + pageNumber, + height, + duplicatePage, + confirmDelete, +}) => (
      - + {isWriteable && ( + + )}
      ); PagePreview.propTypes = { + isWriteable: PropTypes.bool.isRequired, page: PropTypes.shape({ id: PropTypes.string.isRequired, style: PropTypes.shape({ diff --git a/x-pack/plugins/canvas/public/components/popover/popover.js b/x-pack/plugins/canvas/public/components/popover/popover.js index 19d90de50478b..89de57aa845d9 100644 --- a/x-pack/plugins/canvas/public/components/popover/popover.js +++ b/x-pack/plugins/canvas/public/components/popover/popover.js @@ -62,12 +62,15 @@ export class Popover extends Component { return button(handleClick); }; + const appWrapper = document.querySelector('.app-wrapper'); + return ( {children({ closePopover: this.closePopover })} diff --git a/x-pack/plugins/canvas/public/components/refresh_control/auto_refresh_controls.js b/x-pack/plugins/canvas/public/components/refresh_control/auto_refresh_controls.js index 98e2c9c1f7d16..71ddb93e7d387 100644 --- a/x-pack/plugins/canvas/public/components/refresh_control/auto_refresh_controls.js +++ b/x-pack/plugins/canvas/public/components/refresh_control/auto_refresh_controls.js @@ -26,6 +26,7 @@ import { timeDurationString } from '../../lib/time_duration'; export class AutoRefreshControls extends Component { static propTypes = { + inFlight: PropTypes.bool.isRequired, refreshInterval: PropTypes.number, setRefresh: PropTypes.func.isRequired, disableInterval: PropTypes.func.isRequired, @@ -35,7 +36,7 @@ export class AutoRefreshControls extends Component { refreshInput = null; render() { - const { refreshInterval, setRefresh, doRefresh, disableInterval } = this.props; + const { inFlight, refreshInterval, setRefresh, doRefresh, disableInterval } = this.props; return (
      @@ -60,7 +61,7 @@ export class AutoRefreshControls extends Component { - + Refresh diff --git a/x-pack/plugins/canvas/public/components/refresh_control/refresh_control.js b/x-pack/plugins/canvas/public/components/refresh_control/refresh_control.js index bcf66c46db4a4..cdc41e123d89d 100644 --- a/x-pack/plugins/canvas/public/components/refresh_control/refresh_control.js +++ b/x-pack/plugins/canvas/public/components/refresh_control/refresh_control.js @@ -4,9 +4,9 @@ * you may not use this file except in compliance with the Elastic License. */ -import React from 'react'; +import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; -import { EuiButtonEmpty } from '@elastic/eui'; +import { EuiButtonEmpty, EuiLoadingSpinner } from '@elastic/eui'; import { Popover } from '../popover'; import { AutoRefreshControls } from './auto_refresh_controls'; @@ -36,8 +36,15 @@ export const RefreshControl = ({ inFlight, setRefreshInterval, refreshInterval, const setRefresh = val => setRefreshInterval(getRefreshInterval(val)); const popoverButton = handleClick => ( - - Refresh + +
      + {inFlight && ( + +   + + )} + Refresh +
      ); @@ -50,6 +57,7 @@ export const RefreshControl = ({ inFlight, setRefreshInterval, refreshInterval, {({ closePopover }) => (
      { setRefresh(val); diff --git a/x-pack/plugins/canvas/public/components/rotation_handle/rotation_handle.scss b/x-pack/plugins/canvas/public/components/rotation_handle/rotation_handle.scss index 0f71565666f90..cd52e29e4f411 100644 --- a/x-pack/plugins/canvas/public/components/rotation_handle/rotation_handle.scss +++ b/x-pack/plugins/canvas/public/components/rotation_handle/rotation_handle.scss @@ -7,7 +7,7 @@ width: 0; margin-left: -1px; margin-top: -12px; - border: 1px solid #d9d9d9; + border: 1px dashed #d9d9d9; } .canvasRotationHandle--handle { diff --git a/x-pack/plugins/canvas/public/components/router/router.js b/x-pack/plugins/canvas/public/components/router/router.js index bedae7cc56c53..800c01079fcec 100644 --- a/x-pack/plugins/canvas/public/components/router/router.js +++ b/x-pack/plugins/canvas/public/components/router/router.js @@ -5,6 +5,7 @@ */ import React from 'react'; +import { isClassComponent } from 'recompose'; import PropTypes from 'prop-types'; import { routerProvider } from '../../lib/router_provider'; import { CanvasLoading } from './canvas_loading'; @@ -23,7 +24,7 @@ export class Router extends React.PureComponent { onRouteChange: PropTypes.func, }; - static state = { + state = { router: {}, activeComponent: CanvasLoading, }; @@ -37,11 +38,11 @@ export class Router extends React.PureComponent { // routerProvider is a singleton, and will only ever return one instance const { routes, onRouteChange, onLoad, onError } = this.props; const router = routerProvider(routes); + let firstLoad = true; // when the component in the route changes, render it router.onPathChange(route => { const { pathname } = route.location; - const firstLoad = !this.state; const { component } = route.meta; if (!component) { @@ -54,6 +55,7 @@ export class Router extends React.PureComponent { // if this is the first load, execute the route if (firstLoad) { + firstLoad = false; router .execute() .then(() => onLoad()) @@ -70,9 +72,13 @@ export class Router extends React.PureComponent { } render() { + // show loading if (this.props.showLoading) return React.createElement(CanvasLoading, { msg: this.props.loadingMessage }); - return React.createElement(this.state.activeComponent, {}); + // show the activeComponent + return isClassComponent(this.state.activeComponent) + ? React.createElement(this.state.activeComponent, {}) + : this.state.activeComponent({}); } } diff --git a/x-pack/plugins/canvas/public/components/shape_picker/shape_picker.js b/x-pack/plugins/canvas/public/components/shape_picker/shape_picker.js index e9c4f1ef66df5..1b3111d99b4f0 100644 --- a/x-pack/plugins/canvas/public/components/shape_picker/shape_picker.js +++ b/x-pack/plugins/canvas/public/components/shape_picker/shape_picker.js @@ -7,10 +7,9 @@ import React from 'react'; import PropTypes from 'prop-types'; import { EuiFlexGrid, EuiFlexItem, EuiLink } from '@elastic/eui'; -import { shapes } from '../../../canvas_plugin_src/renderers/shape/shapes'; import { ShapePreview } from '../shape_preview'; -export const ShapePicker = ({ onChange }) => { +export const ShapePicker = ({ shapes, onChange }) => { return ( {Object.keys(shapes) @@ -18,7 +17,7 @@ export const ShapePicker = ({ onChange }) => { .map(shapeKey => ( onChange(shapeKey)}> - + ))} @@ -27,6 +26,6 @@ export const ShapePicker = ({ onChange }) => { }; ShapePicker.propTypes = { - value: PropTypes.string, + shapes: PropTypes.object.isRequired, onChange: PropTypes.func, }; diff --git a/x-pack/plugins/canvas/public/components/shape_picker_mini/shape_picker_mini.js b/x-pack/plugins/canvas/public/components/shape_picker_mini/shape_picker_mini.js index cf9c34adc1fe6..721be28b78efb 100644 --- a/x-pack/plugins/canvas/public/components/shape_picker_mini/shape_picker_mini.js +++ b/x-pack/plugins/canvas/public/components/shape_picker_mini/shape_picker_mini.js @@ -11,10 +11,10 @@ import { Popover } from '../popover'; import { ShapePicker } from '../shape_picker/'; import { ShapePreview } from '../shape_preview'; -export const ShapePickerMini = ({ onChange, value, anchorPosition }) => { +export const ShapePickerMini = ({ shapes, onChange, value, anchorPosition }) => { const button = handleClick => ( - + ); @@ -24,12 +24,13 @@ export const ShapePickerMini = ({ onChange, value, anchorPosition }) => { button={button} anchorPosition={anchorPosition} > - {() => } + {() => } ); }; ShapePickerMini.propTypes = { + shapes: PropTypes.object.isRequired, value: PropTypes.string, onChange: PropTypes.func, anchorPosition: PropTypes.string, diff --git a/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.js b/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.js index ed8ede5d4bac2..f4812f215b5cf 100644 --- a/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.js +++ b/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.js @@ -6,13 +6,32 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { shapes } from '../../../canvas_plugin_src/renderers/shape/shapes'; -export const ShapePreview = ({ value }) => { - // eslint-disable-next-line react/no-danger - return
      ; +export const ShapePreview = ({ shape }) => { + const weight = 5; + const parser = new DOMParser(); + const [shapeSvg] = parser.parseFromString(shape, 'image/svg+xml').getElementsByTagName('svg'); + shapeSvg.setAttribute('fill', 'none'); + shapeSvg.setAttribute('stroke', 'black'); + + const initialViewBox = shapeSvg + .getAttribute('viewBox') + .split(' ') + .map(v => parseInt(v, 10)); + + let [minX, minY, width, height] = initialViewBox; + minX -= weight / 2; + minY -= weight / 2; + width += weight; + height += weight; + shapeSvg.setAttribute('viewBox', [minX, minY, width, height].join(' ')); + + return ( + // eslint-disable-next-line react/no-danger +
      + ); }; ShapePreview.propTypes = { - value: PropTypes.string, + shape: PropTypes.string, }; diff --git a/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.scss b/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.scss index 1e39827d657a2..e2ce2bbdcd358 100644 --- a/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.scss +++ b/x-pack/plugins/canvas/public/components/shape_preview/shape_preview.scss @@ -3,7 +3,6 @@ height: $euiSizeXXL; svg { - fill: black; width: 100%; height: 100%; } diff --git a/x-pack/plugins/canvas/public/components/sidebar/sidebar.scss b/x-pack/plugins/canvas/public/components/sidebar/sidebar.scss index bc31e945cc887..9f42fc5132038 100644 --- a/x-pack/plugins/canvas/public/components/sidebar/sidebar.scss +++ b/x-pack/plugins/canvas/public/components/sidebar/sidebar.scss @@ -6,6 +6,9 @@ max-height: 100vh; overflow-y: auto; overflow-x: hidden; + position: absolute; + top: 0; + bottom: 0; } .canvasSidebar__pop { diff --git a/x-pack/plugins/canvas/public/components/text_style_picker/text_style_picker.js b/x-pack/plugins/canvas/public/components/text_style_picker/text_style_picker.js index 38d34a48d7532..206bb27be2cf4 100644 --- a/x-pack/plugins/canvas/public/components/text_style_picker/text_style_picker.js +++ b/x-pack/plugins/canvas/public/components/text_style_picker/text_style_picker.js @@ -100,7 +100,7 @@ export const TextStylePicker = ({ doChange('size', Number(e.target.value))} options={fontSizes.map(size => ({ text: String(size), value: size }))} /> @@ -156,4 +156,5 @@ TextStylePicker.propTypes = { TextStylePicker.defaultProps = { align: 'left', + size: 14, }; diff --git a/x-pack/plugins/canvas/public/components/toolbar/index.js b/x-pack/plugins/canvas/public/components/toolbar/index.js index a533e032ff765..bc873b6f2854c 100644 --- a/x-pack/plugins/canvas/public/components/toolbar/index.js +++ b/x-pack/plugins/canvas/public/components/toolbar/index.js @@ -7,7 +7,6 @@ import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { compose, withState, getContext, withHandlers } from 'recompose'; -import { getEditing } from '../../state/selectors/app'; import { getWorkpad, @@ -19,7 +18,6 @@ import { import { Toolbar as Component } from './toolbar'; const mapStateToProps = state => ({ - editing: getEditing(state), workpadName: getWorkpadName(state), workpadId: getWorkpad(state).id, totalPages: getWorkpad(state).pages.length, diff --git a/x-pack/plugins/canvas/public/components/toolbar/toolbar.js b/x-pack/plugins/canvas/public/components/toolbar/toolbar.js index 0427016a47a85..e742cbdc53ffb 100644 --- a/x-pack/plugins/canvas/public/components/toolbar/toolbar.js +++ b/x-pack/plugins/canvas/public/components/toolbar/toolbar.js @@ -24,7 +24,6 @@ import { Tray } from './tray'; export const Toolbar = props => { const { - editing, selectedElement, tray, setTray, @@ -63,7 +62,7 @@ export const Toolbar = props => { expression: !elementIsSelected ? null : , }; - return !editing ? null : ( + return (
      {trays[tray] && {trays[tray]}} @@ -122,7 +121,6 @@ export const Toolbar = props => { Toolbar.propTypes = { workpadName: PropTypes.string, - editing: PropTypes.bool, tray: PropTypes.node, setTray: PropTypes.func.isRequired, nextPage: PropTypes.func.isRequired, diff --git a/x-pack/plugins/canvas/public/components/toolbar/toolbar.scss b/x-pack/plugins/canvas/public/components/toolbar/toolbar.scss index 1219a8d1dce5f..f625bff0e4b54 100644 --- a/x-pack/plugins/canvas/public/components/toolbar/toolbar.scss +++ b/x-pack/plugins/canvas/public/components/toolbar/toolbar.scss @@ -1,3 +1,25 @@ +.canvasToolbar { + position: relative; +} + +.canvasTray__toggle { + position: absolute; + top: $euiSize * -1.25; + left: 50%; + background-color: $euiColorLightestShade; + margin: 0; + border-radius: $euiBorderRadius $euiBorderRadius 0 0; + + > .euiFlexItem { + margin: 0; + } + + button { + padding: $euiSizeXS $euiSizeM; + box-shadow: 0 -2px 1px rgba($euiColorFullShade, .10) + } +} + .canvasToolbar__controls { padding: $euiSizeM; height: 100%; diff --git a/x-pack/plugins/canvas/public/components/toolbar/tray/tray.js b/x-pack/plugins/canvas/public/components/toolbar/tray/tray.js index 07cb732f04691..bc8aa5e0dadec 100644 --- a/x-pack/plugins/canvas/public/components/toolbar/tray/tray.js +++ b/x-pack/plugins/canvas/public/components/toolbar/tray/tray.js @@ -11,7 +11,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiButtonIcon } from '@elastic/eui'; export const Tray = ({ children, done }) => { return ( - + diff --git a/x-pack/plugins/canvas/public/components/toolbar/tray/tray.scss b/x-pack/plugins/canvas/public/components/toolbar/tray/tray.scss index 9d8b6d13dde94..beba97760253e 100644 --- a/x-pack/plugins/canvas/public/components/toolbar/tray/tray.scss +++ b/x-pack/plugins/canvas/public/components/toolbar/tray/tray.scss @@ -3,3 +3,8 @@ flex-direction: column; @include euiBottomShadowFlat; } + +.canvasTray__panel { + background-color: $euiColorLightestShade; + border-radius: 0; +} diff --git a/x-pack/plugins/canvas/public/components/workpad/index.js b/x-pack/plugins/canvas/public/components/workpad/index.js index cc6c3ff124615..f99af9679c4b0 100644 --- a/x-pack/plugins/canvas/public/components/workpad/index.js +++ b/x-pack/plugins/canvas/public/components/workpad/index.js @@ -10,7 +10,7 @@ import { compose, withState, withProps, getContext, withHandlers } from 'recompo import { transitionsRegistry } from '../../lib/transitions_registry'; import { undoHistory, redoHistory } from '../../state/actions/history'; import { fetchAllRenderables } from '../../state/actions/elements'; -import { getFullscreen, getEditing } from '../../state/selectors/app'; +import { getFullscreen } from '../../state/selectors/app'; import { getSelectedPageIndex, getAllElements, @@ -25,7 +25,6 @@ const mapStateToProps = state => ({ totalElementCount: getAllElements(state).length, workpad: getWorkpad(state), isFullscreen: getFullscreen(state), - isEditing: getEditing(state), }); const mapDispatchToProps = { diff --git a/x-pack/plugins/canvas/public/components/workpad/workpad.js b/x-pack/plugins/canvas/public/components/workpad/workpad.js index fde969340e1e4..5b761ef377cf2 100644 --- a/x-pack/plugins/canvas/public/components/workpad/workpad.js +++ b/x-pack/plugins/canvas/public/components/workpad/workpad.js @@ -9,6 +9,7 @@ import PropTypes from 'prop-types'; import { Shortcuts } from 'react-shortcuts'; import { WorkpadPage } from '../workpad_page'; import { Fullscreen } from '../fullscreen'; +import { setDocTitle } from '../../lib/doc_title'; export const Workpad = props => { const { @@ -49,6 +50,8 @@ export const Workpad = props => { if (action === 'NEXT') return nextPage(); }; + setDocTitle(workpad.name); + return (
      diff --git a/x-pack/plugins/canvas/public/components/workpad_export/index.js b/x-pack/plugins/canvas/public/components/workpad_export/index.js index 1ef7438f520d5..3e1a1dce70558 100644 --- a/x-pack/plugins/canvas/public/components/workpad_export/index.js +++ b/x-pack/plugins/canvas/public/components/workpad_export/index.js @@ -6,7 +6,7 @@ /* eslint import/no-unresolved: 1 */ // TODO: remove eslint rule when updating to use the linked kibana resolve package -import { jobCompletionNotifications } from 'plugins/reporting/services/job_completion_notifications'; +import { jobCompletionNotifications } from 'plugins/reporting/lib/job_completion_notifications'; import { connect } from 'react-redux'; import { compose, withProps } from 'recompose'; import { getWorkpad, getPages } from '../../state/selectors/workpad'; diff --git a/x-pack/plugins/canvas/public/components/workpad_header/index.js b/x-pack/plugins/canvas/public/components/workpad_header/index.js index 1941fc4bcf3fc..fec9c874744f3 100644 --- a/x-pack/plugins/canvas/public/components/workpad_header/index.js +++ b/x-pack/plugins/canvas/public/components/workpad_header/index.js @@ -6,22 +6,23 @@ import { compose, withState } from 'recompose'; import { connect } from 'react-redux'; -import { getEditing } from '../../state/selectors/app'; -import { getWorkpadName, getSelectedPage } from '../../state/selectors/workpad'; -import { setEditing } from '../../state/actions/transient'; +import { canUserWrite } from '../../state/selectors/app'; +import { getWorkpadName, getSelectedPage, isWriteable } from '../../state/selectors/workpad'; +import { setWriteable } from '../../state/actions/workpad'; import { getAssets } from '../../state/selectors/assets'; import { addElement } from '../../state/actions/elements'; import { WorkpadHeader as Component } from './workpad_header'; const mapStateToProps = state => ({ - editing: getEditing(state), + isWriteable: isWriteable(state) && canUserWrite(state), + canUserWrite: canUserWrite(state), workpadName: getWorkpadName(state), selectedPage: getSelectedPage(state), hasAssets: Object.keys(getAssets(state)).length ? true : false, }); const mapDispatchToProps = dispatch => ({ - setEditing: editing => dispatch(setEditing(editing)), + setWriteable: isWriteable => dispatch(setWriteable(isWriteable)), addElement: pageId => partialElement => dispatch(addElement(pageId, partialElement)), }); @@ -30,7 +31,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => ({ ...dispatchProps, ...ownProps, addElement: dispatchProps.addElement(stateProps.selectedPage), - toggleEditing: () => dispatchProps.setEditing(!stateProps.editing), + toggleWriteable: () => dispatchProps.setWriteable(!stateProps.isWriteable), }); export const WorkpadHeader = compose( diff --git a/x-pack/plugins/canvas/public/components/workpad_header/workpad_header.js b/x-pack/plugins/canvas/public/components/workpad_header/workpad_header.js index c4c75aa09f6db..bae28b72416d9 100644 --- a/x-pack/plugins/canvas/public/components/workpad_header/workpad_header.js +++ b/x-pack/plugins/canvas/public/components/workpad_header/workpad_header.js @@ -24,15 +24,16 @@ import { FullscreenControl } from '../fullscreen_control'; import { RefreshControl } from '../refresh_control'; export const WorkpadHeader = ({ - editing, - toggleEditing, + isWriteable, + canUserWrite, + toggleWriteable, hasAssets, addElement, setShowElementModal, showElementModal, }) => { const keyHandler = action => { - if (action === 'EDITING') toggleEditing(); + if (action === 'EDITING') toggleWriteable(); }; const elementAdd = ( @@ -41,6 +42,7 @@ export const WorkpadHeader = ({ onClose={() => setShowElementModal(false)} className="canvasModal--fixedSize" maxWidth="1000px" + initialFocus=".canvasElements__filter" > { @@ -57,6 +59,11 @@ export const WorkpadHeader = ({ ); + let readOnlyToolTip = ''; + + if (!canUserWrite) readOnlyToolTip = "You don't have permission to edit this workpad"; + else readOnlyToolTip = isWriteable ? 'Hide editing controls' : 'Show editing controls'; + return (
      {showElementModal ? elementAdd : null} @@ -83,24 +90,24 @@ export const WorkpadHeader = ({ - - + {!canUserWrite && ( + + )} + { - toggleEditing(); + toggleWriteable(); }} size="s" - aria-label={editing ? 'Hide editing controls' : 'Show editing controls'} + aria-label={readOnlyToolTip} + isDisabled={!canUserWrite} /> - {editing ? ( + {isWriteable ? ( {hasAssets && ( @@ -127,8 +134,8 @@ export const WorkpadHeader = ({ }; WorkpadHeader.propTypes = { - editing: PropTypes.bool, - toggleEditing: PropTypes.func, + isWriteable: PropTypes.bool, + toggleWriteable: PropTypes.func, hasAssets: PropTypes.bool, addElement: PropTypes.func.isRequired, showElementModal: PropTypes.bool, diff --git a/x-pack/plugins/canvas/public/components/workpad_loader/index.js b/x-pack/plugins/canvas/public/components/workpad_loader/index.js index 8eee65d70df02..6229fd340813a 100644 --- a/x-pack/plugins/canvas/public/components/workpad_loader/index.js +++ b/x-pack/plugins/canvas/public/components/workpad_loader/index.js @@ -10,19 +10,29 @@ import { compose, withState, getContext, withHandlers } from 'recompose'; import fileSaver from 'file-saver'; import * as workpadService from '../../lib/workpad_service'; import { notify } from '../../lib/notify'; +import { canUserWrite } from '../../state/selectors/app'; import { getWorkpad } from '../../state/selectors/workpad'; import { getId } from '../../lib/get_id'; +import { setCanUserWrite } from '../../state/actions/transient'; import { WorkpadLoader as Component } from './workpad_loader'; const mapStateToProps = state => ({ workpadId: getWorkpad(state).id, + canUserWrite: canUserWrite(state), +}); + +const mapDispatchToProps = dispatch => ({ + setCanUserWrite: canUserWrite => dispatch(setCanUserWrite(canUserWrite)), }); export const WorkpadLoader = compose( getContext({ router: PropTypes.object, }), - connect(mapStateToProps), + connect( + mapStateToProps, + mapDispatchToProps + ), withState('workpads', 'setWorkpads', null), withHandlers({ // Workpad creation via navigation @@ -34,6 +44,9 @@ export const WorkpadLoader = compose( props.router.navigateTo('loadWorkpad', { id: workpad.id, page: 1 }); } catch (err) { notify.error(err, { title: `Couldn't upload workpad` }); + // TODO: remove this and switch to checking user privileges when canvas loads when granular app privileges are introduced + // https://github.com/elastic/kibana/issues/20277 + if (err.response.status === 403) props.setCanUserWrite(false); } return; } @@ -72,6 +85,9 @@ export const WorkpadLoader = compose( props.router.navigateTo('loadWorkpad', { id: workpad.id, page: 1 }); } catch (err) { notify.error(err, { title: `Couldn't clone workpad` }); + // TODO: remove this and switch to checking user privileges when canvas loads when granular app privileges are introduced + // https://github.com/elastic/kibana/issues/20277 + if (err.response.status === 403) props.setCanUserWrite(false); } }, @@ -96,8 +112,14 @@ export const WorkpadLoader = compose( ([passes, errors], result) => { if (result.id === loadedWorkpad && !result.err) redirectHome = true; - if (result.err) errors.push(result.id); - else passes.push(result.id); + if (result.err) { + errors.push(result.id); + // TODO: remove this and switch to checking user privileges when canvas loads when granular app privileges are introduced + // https://github.com/elastic/kibana/issues/20277 + if (result.err.response.status === 403) props.setCanUserWrite(false); + } else { + passes.push(result.id); + } return [passes, errors]; }, diff --git a/x-pack/plugins/canvas/public/components/workpad_loader/upload_workpad.js b/x-pack/plugins/canvas/public/components/workpad_loader/upload_workpad.js new file mode 100644 index 0000000000000..c09ea63280cef --- /dev/null +++ b/x-pack/plugins/canvas/public/components/workpad_loader/upload_workpad.js @@ -0,0 +1,43 @@ +/* + * 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 { get } from 'lodash'; +import { getId } from '../../lib/get_id'; +import { notify } from '../../lib/notify'; + +export const uploadWorkpad = (file, onUpload) => { + if (!file) return; + + if (get(file, 'type') !== 'application/json') { + return notify.warning('Only JSON files are accepted', { + title: `Couldn't upload '${file.name || 'file'}'`, + }); + } + // TODO: Clean up this file, this loading stuff can, and should be, abstracted + const reader = new FileReader(); + + // handle reading the uploaded file + reader.onload = () => { + try { + const workpad = JSON.parse(reader.result); + workpad.id = getId('workpad'); + + // sanity check for workpad object + if (!Array.isArray(workpad.pages) || workpad.pages.length === 0 || !workpad.assets) { + throw new Error( + `Some properties required for a Canvas workpad are missing. Edit your JSON file to provide the correct property values and try again.` + ); + } + + onUpload(workpad); + } catch (e) { + notify.error(e, { title: `Couldn't upload '${file.name || 'file'}'` }); + } + }; + + // read the uploaded file + reader.readAsText(file); +}; diff --git a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_create.js b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_create.js index 3caf4d553cca2..77f22a8252dab 100644 --- a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_create.js +++ b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_create.js @@ -8,8 +8,15 @@ import React from 'react'; import PropTypes from 'prop-types'; import { EuiButton } from '@elastic/eui'; -export const WorkpadCreate = ({ createPending, onCreate }) => ( - +export const WorkpadCreate = ({ createPending, onCreate, ...rest }) => ( + Create workpad ); diff --git a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/index.js b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/index.js index f2cce0118c6ed..f2ac90a948a0f 100644 --- a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/index.js +++ b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/index.js @@ -5,38 +5,18 @@ */ import PropTypes from 'prop-types'; -import { compose, withState, withHandlers } from 'recompose'; -import { getId } from '../../../lib/get_id'; +import { compose, withHandlers } from 'recompose'; import { notify } from '../../../lib/notify'; +import { uploadWorkpad } from '../upload_workpad'; import { WorkpadDropzone as Component } from './workpad_dropzone'; export const WorkpadDropzone = compose( - withState('isDropping', 'setDropping', false), withHandlers({ - onDropAccepted: ({ onUpload, setDropping }) => ([file]) => { - // TODO: Clean up this file, this loading stuff can, and should be, abstracted - const reader = new FileReader(); - - // handle reading the uploaded file - reader.onload = () => { - try { - const workpad = JSON.parse(reader.result); - workpad.id = getId('workpad'); - onUpload(workpad); - } catch (e) { - notify.error(e, { title: `Couldn't upload '${file.name || 'file'}'` }); - } - }; - - // read the uploaded file - reader.readAsText(file); - setDropping(false); - }, - onDropRejected: ({ setDropping }) => ([file]) => { + onDropAccepted: ({ onUpload }) => ([file]) => uploadWorkpad(file, onUpload), + onDropRejected: () => ([file]) => { notify.warning('Only JSON files are accepted', { title: `Couldn't upload '${file.name || 'file'}'`, }); - setDropping(false); }, }) )(Component); diff --git a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/workpad_dropzone.js b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/workpad_dropzone.js index 274c8ef2cc9b8..8a616964623db 100644 --- a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/workpad_dropzone.js +++ b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_dropzone/workpad_dropzone.js @@ -8,14 +8,13 @@ import React from 'react'; import PropTypes from 'prop-types'; import Dropzone from 'react-dropzone'; -export const WorkpadDropzone = ({ setDropping, onDropAccepted, onDropRejected, children }) => ( +export const WorkpadDropzone = ({ onDropAccepted, onDropRejected, disabled, children }) => ( setDropping(true)} - onDragLeave={() => setDropping(false)} disableClick + disabled={disabled} className="canvasWorkpad__dropzone" activeClassName="canvasWorkpad__dropzone--active" > @@ -24,9 +23,8 @@ export const WorkpadDropzone = ({ setDropping, onDropAccepted, onDropRejected, c ); WorkpadDropzone.propTypes = { - isDropping: PropTypes.bool.isRequired, - setDropping: PropTypes.func.isRequired, onDropAccepted: PropTypes.func.isRequired, onDropRejected: PropTypes.func.isRequired, + disabled: PropTypes.bool.isRequired, children: PropTypes.node.isRequired, }; diff --git a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_loader.js b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_loader.js index 8987eead96486..af69558f1d7ed 100644 --- a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_loader.js +++ b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_loader.js @@ -10,7 +10,9 @@ import { EuiFlexGroup, EuiFlexItem, EuiBasicTable, + EuiBetaBadge, EuiButtonIcon, + EuiLink, EuiPagination, EuiSpacer, EuiButton, @@ -35,6 +37,7 @@ const formatDate = date => date && moment(date).format('MMM D, YYYY @ h:mma'); export class WorkpadLoader extends React.PureComponent { static propTypes = { workpadId: PropTypes.string.isRequired, + canUserWrite: PropTypes.bool.isRequired, createWorkpad: PropTypes.func.isRequired, findWorkpads: PropTypes.func.isRequired, downloadWorkpad: PropTypes.func.isRequired, @@ -45,8 +48,8 @@ export class WorkpadLoader extends React.PureComponent { }; state = { - deletingWorkpad: false, createPending: false, + deletingWorkpad: false, sortField: '@timestamp', sortDirection: 'desc', selectedWorkpads: [], @@ -56,6 +59,9 @@ export class WorkpadLoader extends React.PureComponent { async componentDidMount() { // on component load, kick off the workpad search this.props.findWorkpads(); + + // keep track of whether or not the component is mounted, to prevent rogue setState calls + this._isMounted = true; } componentWillReceiveProps(newProps) { @@ -64,25 +70,29 @@ export class WorkpadLoader extends React.PureComponent { if (workpadId !== newProps.workpadId) onClose(); } + componentWillUnmount() { + this._isMounted = false; + } + // create new empty workpad createWorkpad = async () => { this.setState({ createPending: true }); await this.props.createWorkpad(); - this.setState({ createPending: false }); + this._isMounted && this.setState({ createPending: false }); }; // create new workpad from uploaded JSON uploadWorkpad = async workpad => { this.setState({ createPending: true }); await this.props.createWorkpad(workpad); - this.setState({ createPending: false }); + this._isMounted && this.setState({ createPending: false }); }; // clone existing workpad cloneWorkpad = async workpad => { this.setState({ createPending: true }); await this.props.cloneWorkpad(workpad.id); - this.setState({ createPending: false }); + this._isMounted && this.setState({ createPending: false }); }; // Workpad remove methods @@ -92,16 +102,18 @@ export class WorkpadLoader extends React.PureComponent { removeWorkpads = () => { const { selectedWorkpads } = this.state; + this.props.removeWorkpads(selectedWorkpads.map(({ id }) => id)).then(remainingIds => { const remainingWorkpads = remainingIds.length > 0 ? selectedWorkpads.filter(({ id }) => remainingIds.includes(id)) : []; - this.setState({ - deletingWorkpad: false, - selectedWorkpads: remainingWorkpads, - }); + this._isMounted && + this.setState({ + deletingWorkpad: false, + selectedWorkpads: remainingWorkpads, + }); }); }; @@ -124,6 +136,7 @@ export class WorkpadLoader extends React.PureComponent { renderWorkpadTable = ({ rows, pageNumber, totalPages, setPage }) => { const { sortField, sortDirection } = this.state; + const { canUserWrite, createPending } = this.props; const actions = [ { @@ -139,11 +152,14 @@ export class WorkpadLoader extends React.PureComponent { - + this.cloneWorkpad(workpad)} aria-label="Clone Workpad" + disabled={!canUserWrite} /> @@ -218,7 +234,7 @@ export class WorkpadLoader extends React.PureComponent { return ( - + + ); + + let deleteButton = ( + + {`Delete (${selectedWorkpads.length})`} + + ); + + const downloadButton = ( + + {`Download (${selectedWorkpads.length})`} + + ); + + let uploadButton = ( + + ); + + if (!canUserWrite) { + createButton = ( + + {createButton} + + ); + deleteButton = ( + + {deleteButton} + + ); + uploadButton = ( + + {uploadButton} + + ); + } + const modalTitle = selectedWorkpads.length === 1 ? `Delete workpad '${selectedWorkpads[0].name}'?` @@ -280,33 +346,30 @@ export class WorkpadLoader extends React.PureComponent {
      - Canvas workpads + + + Canvas workpads + + + + + + + Docs + + + {selectedWorkpads.length > 0 && ( - - - {`Download (${selectedWorkpads.length})`} - - - - - {`Delete (${selectedWorkpads.length})`} - - + {downloadButton} + {deleteButton} )} @@ -320,19 +383,9 @@ export class WorkpadLoader extends React.PureComponent { - - - - - - - + + {uploadButton} + {createButton} diff --git a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_upload.js b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_upload.js index d2be98bada119..56a837d53d08f 100644 --- a/x-pack/plugins/canvas/public/components/workpad_loader/workpad_upload.js +++ b/x-pack/plugins/canvas/public/components/workpad_loader/workpad_upload.js @@ -7,37 +7,14 @@ import React from 'react'; import PropTypes from 'prop-types'; import { EuiFilePicker } from '@elastic/eui'; -import { get } from 'lodash'; -import { getId } from '../../lib/get_id'; -import { notify } from '../../lib/notify'; +import { uploadWorkpad } from './upload_workpad'; -export const WorkpadUpload = ({ onUpload }) => ( +export const WorkpadUpload = ({ onUpload, ...rest }) => ( { - if (get(file, 'type') !== 'application/json') { - return notify.warning('Only JSON files are accepted', { - title: `Couldn't upload '${file.name || 'file'}'`, - }); - } - // TODO: Clean up this file, this loading stuff can, and should be, abstracted - const reader = new FileReader(); - - // handle reading the uploaded file - reader.onload = () => { - try { - const workpad = JSON.parse(reader.result); - workpad.id = getId('workpad'); - onUpload(workpad); - } catch (e) { - notify.error(e, { title: `Couldn't upload '${file.name || 'file'}'` }); - } - }; - - // read the uploaded file - reader.readAsText(file); - }} + onChange={([file]) => uploadWorkpad(file, onUpload)} /> ); diff --git a/x-pack/plugins/canvas/public/components/workpad_page/event_handlers.js b/x-pack/plugins/canvas/public/components/workpad_page/event_handlers.js index c95395d91734c..b6aa9c8da6328 100644 --- a/x-pack/plugins/canvas/public/components/workpad_page/event_handlers.js +++ b/x-pack/plugins/canvas/public/components/workpad_page/event_handlers.js @@ -126,4 +126,5 @@ export const withEventHandlers = withHandlers({ onMouseMove: props => e => handleMouseMove(props.commit, e, props.isEditable), onKeyDown: props => e => handleKeyDown(props.commit, e, props.isEditable, props.remove), onKeyUp: props => e => handleKeyUp(props.commit, e, props.isEditable), + resetHandler: () => () => resetHandler(), }); diff --git a/x-pack/plugins/canvas/public/components/workpad_page/index.js b/x-pack/plugins/canvas/public/components/workpad_page/index.js index bf3e220ddfbbb..6d7d13f155a7e 100644 --- a/x-pack/plugins/canvas/public/components/workpad_page/index.js +++ b/x-pack/plugins/canvas/public/components/workpad_page/index.js @@ -9,14 +9,14 @@ import PropTypes from 'prop-types'; import { compose, withState, withProps } from 'recompose'; import { aeroelastic } from '../../lib/aeroelastic_kibana'; import { removeElements } from '../../state/actions/elements'; -import { getFullscreen, getEditing } from '../../state/selectors/app'; -import { getElements } from '../../state/selectors/workpad'; +import { getFullscreen, canUserWrite } from '../../state/selectors/app'; +import { getElements, isWriteable } from '../../state/selectors/workpad'; import { withEventHandlers } from './event_handlers'; import { WorkpadPage as Component } from './workpad_page'; const mapStateToProps = (state, ownProps) => { return { - isEditable: !getFullscreen(state) && getEditing(state), + isEditable: !getFullscreen(state) && isWriteable(state) && canUserWrite(state), elements: getElements(state, ownProps.page.id), }; }; diff --git a/x-pack/plugins/canvas/public/components/workpad_page/workpad_page.js b/x-pack/plugins/canvas/public/components/workpad_page/workpad_page.js index b94c5b8c2a45f..fc46820aca56f 100644 --- a/x-pack/plugins/canvas/public/components/workpad_page/workpad_page.js +++ b/x-pack/plugins/canvas/public/components/workpad_page/workpad_page.js @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import React from 'react'; +import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { ElementWrapper } from '../element_wrapper'; import { AlignmentGuide } from '../alignment_guide'; @@ -14,105 +14,114 @@ import { BorderConnection } from '../border_connection'; import { BorderResizeHandle } from '../border_resize_handle'; // NOTE: the data-shared-* attributes here are used for reporting -export const WorkpadPage = ({ - page, - className, - animationStyle, - elements, - cursor = 'auto', - height, - width, - isEditable, - onDoubleClick, - onKeyDown, - onKeyUp, - onMouseDown, - onMouseMove, - onMouseUp, - onAnimationEnd, -}) => { - return ( -
      - {elements - .map(element => { - if (element.type === 'annotation') { - if (!isEditable) return; - const props = { - key: element.id, - type: element.type, - transformMatrix: element.transformMatrix, - width: element.width, - height: element.height, - }; +export class WorkpadPage extends PureComponent { + static propTypes = { + page: PropTypes.shape({ + id: PropTypes.string.isRequired, + style: PropTypes.object, + }).isRequired, + className: PropTypes.string.isRequired, + animationStyle: PropTypes.object.isRequired, + elements: PropTypes.arrayOf( + PropTypes.shape({ + id: PropTypes.string.isRequired, + transformMatrix: PropTypes.arrayOf(PropTypes.number).isRequired, + width: PropTypes.number.isRequired, + height: PropTypes.number.isRequired, + type: PropTypes.string, + }) + ).isRequired, + cursor: PropTypes.string, + height: PropTypes.number.isRequired, + width: PropTypes.number.isRequired, + isEditable: PropTypes.bool.isRequired, + onDoubleClick: PropTypes.func, + onKeyDown: PropTypes.func, + onKeyUp: PropTypes.func, + onMouseDown: PropTypes.func, + onMouseMove: PropTypes.func, + onMouseUp: PropTypes.func, + onAnimationEnd: PropTypes.func, + resetHandler: PropTypes.func, + }; - switch (element.subtype) { - case 'alignmentGuide': - return ; - case 'hoverAnnotation': - return ; - case 'rotationHandle': - return ; - case 'resizeHandle': - return ; - case 'resizeConnector': - return ; - default: - return []; - } - } else if (element.subtype !== 'adHocGroup') { - return ; - } - }) - .filter(element => !!element)} -
      - ); -}; + componentWillUnmount() { + this.props.resetHandler(); + } -WorkpadPage.propTypes = { - page: PropTypes.shape({ - id: PropTypes.string.isRequired, - style: PropTypes.object, - }).isRequired, - className: PropTypes.string.isRequired, - animationStyle: PropTypes.object.isRequired, - elements: PropTypes.arrayOf( - PropTypes.shape({ - id: PropTypes.string.isRequired, - transformMatrix: PropTypes.arrayOf(PropTypes.number).isRequired, - width: PropTypes.number.isRequired, - height: PropTypes.number.isRequired, - type: PropTypes.string, - }) - ).isRequired, - cursor: PropTypes.string, - height: PropTypes.number.isRequired, - width: PropTypes.number.isRequired, - isEditable: PropTypes.bool.isRequired, - onDoubleClick: PropTypes.func, - onKeyDown: PropTypes.func, - onKeyUp: PropTypes.func, - onMouseDown: PropTypes.func, - onMouseMove: PropTypes.func, - onMouseUp: PropTypes.func, - onAnimationEnd: PropTypes.func, -}; + render() { + const { + page, + className, + animationStyle, + elements, + cursor = 'auto', + height, + width, + isEditable, + onDoubleClick, + onKeyDown, + onKeyUp, + onMouseDown, + onMouseMove, + onMouseUp, + onAnimationEnd, + } = this.props; + + return ( +
      + {elements + .map(element => { + if (element.type === 'annotation') { + if (!isEditable) return; + const props = { + key: element.id, + type: element.type, + transformMatrix: element.transformMatrix, + width: element.width, + height: element.height, + }; + + switch (element.subtype) { + case 'alignmentGuide': + return ; + case 'hoverAnnotation': + return ; + case 'rotationHandle': + return ; + case 'resizeHandle': + return ; + case 'resizeConnector': + return ; + default: + return []; + } + } else if (element.subtype !== 'adHocGroup') { + return ; + } + }) + .filter(element => !!element)} +
      + ); + } +} diff --git a/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/appearance_form.js b/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/appearance_form.js index 0a400bd03aef3..0ef8cef2a50bc 100644 --- a/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/appearance_form.js +++ b/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/appearance_form.js @@ -37,16 +37,12 @@ export const AppearanceForm = ({ padding, opacity, overflow, onChange }) => { - + - + @@ -59,3 +55,8 @@ AppearanceForm.propTypes = { overflow: PropTypes.oneOf(['hidden', 'visible']), onChange: PropTypes.func.isRequired, }; + +AppearanceForm.defaultProps = { + opacity: 1, + overflow: 'hidden', +}; diff --git a/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/border_form.js b/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/border_form.js index 05807741956c9..7884640831ffe 100644 --- a/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/border_form.js +++ b/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/border_form.js @@ -6,13 +6,26 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { EuiFlexGroup, EuiFormRow, EuiFlexItem, EuiFieldNumber, EuiSelect } from '@elastic/eui'; +import { + EuiFlexGroup, + EuiFormRow, + EuiFlexItem, + EuiFieldNumber, + EuiSuperSelect, +} from '@elastic/eui'; import { ColorPickerMini } from '../../../components/color_picker_mini'; -const styles = ['solid', 'dotted', 'dashed', 'double', 'groove', 'ridge', 'inset', 'outset']; - -const options = [{ value: '', text: '--' }]; -styles.forEach(val => options.push({ value: val, text: val })); +const styles = [ + 'none', + 'solid', + 'dotted', + 'dashed', + 'double', + 'groove', + 'ridge', + 'inset', + 'outset', +]; export const BorderForm = ({ value, radius, onChange, colors }) => { const border = value || ''; @@ -20,9 +33,7 @@ export const BorderForm = ({ value, radius, onChange, colors }) => { const borderWidthVal = borderWidth ? borderWidth.replace('px', '') : ''; const radiusVal = radius ? radius.replace('px', '') : ''; - const namedChange = name => ev => { - const val = ev.target.value; - + const namedChange = name => val => { if (name === 'borderWidth') return onChange('border', `${val}px ${borderStyle} ${borderColor}`); if (name === 'borderStyle') { if (val === '') return onChange('border', `0px`); @@ -30,7 +41,7 @@ export const BorderForm = ({ value, radius, onChange, colors }) => { } if (name === 'borderRadius') return onChange('borderRadius', `${val}px`); - onChange(name, ev.target.value); + onChange(name, val); }; const borderColorChange = color => onChange('border', `${borderWidth} ${borderStyle} ${color}`); @@ -38,16 +49,22 @@ export const BorderForm = ({ value, radius, onChange, colors }) => { return ( - - + + namedChange('borderWidth')(e.target.value)} + /> - ({ + value: style, + inputDisplay:
      , + }))} onChange={namedChange('borderStyle')} /> @@ -55,7 +72,10 @@ export const BorderForm = ({ value, radius, onChange, colors }) => { - + namedChange('borderRadius')(e.target.value)} + /> diff --git a/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/extended_template.js b/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/extended_template.js index 1183b7cbe24b7..bfe0522476f8b 100644 --- a/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/extended_template.js +++ b/x-pack/plugins/canvas/public/expression_types/arg_types/container_style/extended_template.js @@ -31,6 +31,7 @@ export const ExtendedTemplate = ({ getArgValue, setArgValue, workpad }) => (
      Border
      + export const containerStyle = () => ({ name: 'containerStyle', - displayName: 'Container Style', + displayName: 'Container style', help: 'Tweak the appearance of the element container', default: '{containerStyle}', simpleTemplate: templateFromReactComponent(wrap(SimpleTemplate)), diff --git a/x-pack/plugins/canvas/public/expression_types/arg_types/font.js b/x-pack/plugins/canvas/public/expression_types/arg_types/font.js index fc64c9c3a668c..ed1bf29e2514f 100644 --- a/x-pack/plugins/canvas/public/expression_types/arg_types/font.js +++ b/x-pack/plugins/canvas/public/expression_types/arg_types/font.js @@ -53,7 +53,7 @@ FontArgInput.displayName = 'FontArgInput'; export const font = () => ({ name: 'font', - displayName: 'Text Settings', + displayName: 'Text settings', help: 'Set the font, size and color', template: templateFromReactComponent(FontArgInput), default: `{font size=14 family="${openSans.value}" color="#000000" align=left}`, diff --git a/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/extended_template.js b/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/extended_template.js index 2e0c4ede6cc53..8a28f00cfba89 100644 --- a/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/extended_template.js +++ b/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/extended_template.js @@ -45,7 +45,7 @@ export const ExtendedTemplate = props => { {name !== 'defaultStyle' && ( handleChange('label', ev)} /> @@ -57,7 +57,7 @@ export const ExtendedTemplate = props => { handleChange('lines', ev)} /> @@ -68,7 +68,7 @@ export const ExtendedTemplate = props => { handleChange('bars', ev)} /> @@ -79,7 +79,7 @@ export const ExtendedTemplate = props => { handleChange('points', ev)} /> diff --git a/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/index.js b/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/index.js index 829804e2bf88a..8661413c0b1e4 100644 --- a/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/index.js +++ b/x-pack/plugins/canvas/public/expression_types/arg_types/series_style/index.js @@ -35,7 +35,7 @@ EnhancedExtendedTemplate.propTypes = { export const seriesStyle = () => ({ name: 'seriesStyle', - displayName: 'Series Style', + displayName: 'Series style', help: 'Set the style for a selected named series', template: templateFromReactComponent(EnhancedExtendedTemplate), simpleTemplate: templateFromReactComponent(SimpleTemplate), diff --git a/x-pack/plugins/canvas/public/expression_types/datasources/esdocs.js b/x-pack/plugins/canvas/public/expression_types/datasources/esdocs.js index b2675777d3bf1..a2436f0e92681 100644 --- a/x-pack/plugins/canvas/public/expression_types/datasources/esdocs.js +++ b/x-pack/plugins/canvas/public/expression_types/datasources/esdocs.js @@ -115,7 +115,7 @@ EsdocsDatasource.propTypes = { export const esdocs = () => ({ name: 'esdocs', - displayName: 'Elasticsearch Raw Documents', + displayName: 'Elasticsearch raw documents', help: 'Pull back raw documents from elasticsearch', image: 'logoElasticsearch', template: templateFromReactComponent(EsdocsDatasource), diff --git a/x-pack/plugins/canvas/public/functions/asset.js b/x-pack/plugins/canvas/public/functions/asset.js index 4ec4889fc344e..52c9d45e9fd09 100644 --- a/x-pack/plugins/canvas/public/functions/asset.js +++ b/x-pack/plugins/canvas/public/functions/asset.js @@ -14,7 +14,7 @@ export const asset = () => ({ types: ['null'], }, type: 'string', - help: 'Use Canvas workpad asset objects to provide argument values. Usually images.', + help: 'Use Canvas workpad asset objects to provide argument values. Usually images', args: { id: { aliases: ['_'], diff --git a/x-pack/plugins/canvas/public/lib/__tests__/history_provider.js b/x-pack/plugins/canvas/public/lib/__tests__/history_provider.js index bedc4c64fa1f7..c9f89763435d1 100644 --- a/x-pack/plugins/canvas/public/lib/__tests__/history_provider.js +++ b/x-pack/plugins/canvas/public/lib/__tests__/history_provider.js @@ -11,7 +11,6 @@ import { historyProvider } from '../history_provider'; function createState() { return { transient: { - editing: false, selectedPage: 'page-f3ce-4bb7-86c8-0417606d6592', selectedElement: 'element-d88c-4bbd-9453-db22e949b92e', resolvedArgs: {}, @@ -23,7 +22,7 @@ function createState() { }; } -describe('historyProvider', () => { +describe.skip('historyProvider', () => { let history; let state; @@ -169,7 +168,9 @@ describe('historyProvider', () => { }); describe('resetOnChange', () => { - it('removes listeners', () => { + // the history onChange handler was made async and now there's no way to know when the handler was called + // TODO: restore these tests. + it.skip('removes listeners', () => { const createHandler = () => { let callCount = 0; diff --git a/x-pack/plugins/canvas/public/lib/aeroelastic/config.js b/x-pack/plugins/canvas/public/lib/aeroelastic/config.js index a9fc4072683fa..3abc805099d50 100644 --- a/x-pack/plugins/canvas/public/lib/aeroelastic/config.js +++ b/x-pack/plugins/canvas/public/lib/aeroelastic/config.js @@ -14,7 +14,7 @@ const atopZ = 1000; const depthSelect = true; const devColor = 'magenta'; const groupName = 'group'; -const groupResize = false; +const groupResize = true; const guideDistance = 3; const hoverAnnotationName = 'hoverAnnotation'; const intraGroupManipulation = false; diff --git a/x-pack/plugins/canvas/public/lib/aeroelastic/functional.js b/x-pack/plugins/canvas/public/lib/aeroelastic/functional.js index 4f8967503337a..d7ad63032c8a8 100644 --- a/x-pack/plugins/canvas/public/lib/aeroelastic/functional.js +++ b/x-pack/plugins/canvas/public/lib/aeroelastic/functional.js @@ -79,7 +79,11 @@ const not = fun => (...args) => !fun(...args); const removeDuplicates = (idFun, a) => a.filter((d, i) => a.findIndex(s => idFun(s) === idFun(d)) === i); +const epsilon = 1 / 1000; +const applyTolerance = d => Math.round(d / epsilon) * epsilon; + module.exports = { + applyTolerance, disjunctiveUnion, flatten, identity, diff --git a/x-pack/plugins/canvas/public/lib/aeroelastic/layout.js b/x-pack/plugins/canvas/public/lib/aeroelastic/layout.js index 06cef83699154..91df7d4ab9138 100644 --- a/x-pack/plugins/canvas/public/lib/aeroelastic/layout.js +++ b/x-pack/plugins/canvas/public/lib/aeroelastic/layout.js @@ -28,6 +28,7 @@ const matrix2d = require('./matrix2d'); const config = require('./config'); const { + applyTolerance, disjunctiveUnion, identity, flatten, @@ -904,19 +905,31 @@ function resizeAnnotation(shapes, selectedShapes, shape) { // fixme left active: snap wobble. right active: opposite side wobble. const a = snappedA(properShape); const b = snappedB(properShape); - const resizeVertices = - config.groupResize || properShape.type !== 'group' // todo remove the limitation of no group resize - ? [ - [-1, -1, 315], - [1, -1, 45], - [1, 1, 135], - [-1, 1, 225], // corners - [0, -1, 0], - [1, 0, 90], - [0, 1, 180], - [-1, 0, 270], // edge midpoints - ] - : []; + const groupedShape = shape => + shape.parent === properShape.id && + shape.type !== 'annotation' && + shape.subtype !== config.adHocGroupName; + // fixme broaden resizableChild to other multiples of 90 degrees + const resizableChild = shape => + shallowEqual( + matrix.compositeComponent(shape.localTransformMatrix).map(applyTolerance), + matrix.UNITMATRIX + ); + const allowResize = + properShape.type !== 'group' || + (config.groupResize && shapes.filter(groupedShape).every(resizableChild)); + const resizeVertices = allowResize + ? [ + [-1, -1, 315], + [1, -1, 45], + [1, 1, 135], + [-1, 1, 225], // corners + [0, -1, 0], + [1, 0, 90], + [0, 1, 180], + [-1, 0, 270], // edge midpoints + ] + : []; const resizePoints = resizeVertices.map(resizePointAnnotations(shape.id, a, b)); const connectors = connectorVertices.map(resizeEdgeAnnotations(shape.id, a, b)); return [...resizePoints, ...connectors]; @@ -1160,43 +1173,47 @@ const axisAlignedBoundingBoxShape = shapesToBox => { return aabbShape; }; -const resizeGroup = (shapes, selectedShapes) => { - const extending = shape => { - const children = shapes.filter(s => s.parent === shape.id && s.type !== 'annotation'); - const axisAlignedBoundingBox = getAABB(children); - const { a, b, localTransformMatrix, rigTransform } = projectAABB(axisAlignedBoundingBox); - return { - ...shape, - localTransformMatrix, - a, - b, - rigTransform, - deltaLocalTransformMatrix: matrix.multiply( - shape.localTransformMatrix, - matrix.invert(localTransformMatrix) - ), - }; - }; - const extender = (shapes, shape) => { - if (!shape.parent) return shape; - const parent = shapes.find(s => s.id === shape.parent); +const resizeGroup = (shapes, selectedShapes, elements) => { + if (!elements.length) return { shapes, selectedShapes }; + const e = elements[0]; + if (e.subtype !== 'adHocGroup') return { shapes, selectedShapes }; + if (!e.baseAB) { return { - ...shape, - localTransformMatrix: matrix.multiply( - shape.localTransformMatrix, - parent.deltaLocalTransformMatrix - ), + shapes: shapes.map(s => ({ ...s, childBaseAB: null, baseLocalTransformMatrix: null })), + selectedShapes, }; - }; - const extendingIfNeeded = shape => (isAdHocGroup(shape) ? extending(shape) : shape); - const extenderIfNeeded = (shape, i, shapes) => - isAdHocGroup(shape) || shape.type === 'annotation' ? shape : extender(shapes, shape); - const extendingShapes = shapes.map(extendingIfNeeded); + } + const groupScaleX = e.a / e.baseAB[0]; + const groupScaleY = e.b / e.baseAB[1]; + const groupScale = matrix.scale(groupScaleX, groupScaleY, 1); return { - shapes: extendingShapes.map(extenderIfNeeded), - selectedShapes: selectedShapes - .map(extendingIfNeeded) - .map(d => extenderIfNeeded(d, undefined, extendingShapes)), + shapes: shapes.map(s => { + if (s.parent !== e.id || s.type === 'annotation') return s; + const childBaseAB = s.childBaseAB || [s.a, s.b]; + const impliedScale = matrix.scale(...childBaseAB, 1); + const inverseImpliedScale = matrix.invert(impliedScale); + const baseLocalTransformMatrix = s.baseLocalTransformMatrix || s.localTransformMatrix; + const normalizedBaseLocalTransformMatrix = matrix.multiply( + baseLocalTransformMatrix, + impliedScale + ); + const T = matrix.multiply(groupScale, normalizedBaseLocalTransformMatrix); + const backScaler = groupScale.map(d => Math.abs(d)); + const transformShit = matrix.invert(backScaler); + const abTuple = matrix.mvMultiply(matrix.multiply(backScaler, impliedScale), [1, 1, 1, 1]); + return { + ...s, + localTransformMatrix: matrix.multiply( + T, + matrix.multiply(inverseImpliedScale, transformShit) + ), + a: abTuple[0], + b: abTuple[1], + childBaseAB, + baseLocalTransformMatrix, + }; + }), + selectedShapes, }; }; @@ -1212,8 +1229,10 @@ const getLeafs = (descendCondition, allShapes, shapes) => const grouping = select((shapes, selectedShapes) => { const preexistingAdHocGroups = shapes.filter(isAdHocGroup); - const freshSelectedShapes = shapes.filter(idsMatch(selectedShapes)); - const freshNonSelectedShapes = shapes.filter(not(idsMatch(selectedShapes))); + const matcher = idsMatch(selectedShapes); + const selectedFn = shape => matcher(shape) && shape.type !== 'annotation'; + const freshSelectedShapes = shapes.filter(selectedFn); + const freshNonSelectedShapes = shapes.filter(not(selectedFn)); const someSelectedShapesAreGrouped = selectedShapes.some(isOrBelongsToAdHocGroup); const selectionOutsideGroup = !someSelectedShapesAreGrouped; @@ -1228,16 +1247,16 @@ const grouping = select((shapes, selectedShapes) => { } // preserve the current selection if the sole ad hoc group is being manipulated - if ( - selectedShapes.length === 1 && - contentShapes(shapes, selectedShapes)[0].subtype === 'adHocGroup' - ) - return { shapes, selectedShapes }; - + const elements = contentShapes(shapes, selectedShapes); + if (selectedShapes.length === 1 && elements[0].subtype === 'adHocGroup') { + return config.groupResize + ? resizeGroup(shapes, selectedShapes, elements) + : { shapes, selectedShapes }; + } // group items or extend group bounding box (if enabled) if (selectedShapes.length < 2) { // resize the group if needed (ad-hoc group resize is manipulated) - return config.groupResize ? resizeGroup(shapes, selectedShapes) : { shapes, selectedShapes }; + return { shapes, selectedShapes }; } else { // group together the multiple items const group = axisAlignedBoundingBoxShape(freshSelectedShapes); @@ -1351,9 +1370,9 @@ const nextScene = select( const selectedLeafShapes = getLeafs( shape => shape.subtype === config.adHocGroupName, shapes, - selectionState.shapes.map( - s => (s.type === 'annotation' ? shapes.find(ss => ss.id === s.parent) : s) - ) + selectionState.shapes + .map(s => (s.type === 'annotation' ? shapes.find(ss => ss.id === s.parent) : s)) + .filter(identity) ) .filter(shape => shape.type !== 'annotation') .map(s => s.id); diff --git a/x-pack/plugins/canvas/public/lib/aeroelastic/matrix.js b/x-pack/plugins/canvas/public/lib/aeroelastic/matrix.js index 3760f4fbf906f..53c5652c02497 100644 --- a/x-pack/plugins/canvas/public/lib/aeroelastic/matrix.js +++ b/x-pack/plugins/canvas/public/lib/aeroelastic/matrix.js @@ -4,6 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ +/*eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }]*/ + /** * transpose * @@ -231,9 +233,9 @@ const invert = ([a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p]) => { } }; -const translateComponent = a => [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, a[12], a[13], a[14], a[15]]; +const translateComponent = a => [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, a[12], a[13], a[14], 1]; -const compositeComponent = ([a, b, c, d, e, f, g, h, i, j, k, l]) => [ +const compositeComponent = ([a, b, c, d, e, f, g, h, i, j, k, l, _m, _n, _o, p]) => [ a, b, c, @@ -249,7 +251,7 @@ const compositeComponent = ([a, b, c, d, e, f, g, h, i, j, k, l]) => [ 0, 0, 0, - 1, + p, ]; const add = ( diff --git a/x-pack/plugins/canvas/public/lib/browser_registries.js b/x-pack/plugins/canvas/public/lib/browser_registries.js new file mode 100644 index 0000000000000..efceec04d6dce --- /dev/null +++ b/x-pack/plugins/canvas/public/lib/browser_registries.js @@ -0,0 +1,74 @@ +/* + * 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 chrome from 'ui/chrome'; +import $script from 'scriptjs'; +import { typesRegistry } from '../../common/lib/types_registry'; +import { + argTypeRegistry, + datasourceRegistry, + transformRegistry, + modelRegistry, + viewRegistry, +} from '../expression_types'; +import { elementsRegistry } from './elements_registry'; +import { renderFunctionsRegistry } from './render_functions_registry'; +import { functionsRegistry as browserFunctions } from './functions_registry'; +import { loadPrivateBrowserFunctions } from './load_private_browser_functions'; + +const registries = { + browserFunctions: browserFunctions, + commonFunctions: browserFunctions, + elements: elementsRegistry, + types: typesRegistry, + renderers: renderFunctionsRegistry, + transformUIs: transformRegistry, + datasourceUIs: datasourceRegistry, + modelUIs: modelRegistry, + viewUIs: viewRegistry, + argumentUIs: argTypeRegistry, +}; + +let resolve = null; +let called = false; + +const populatePromise = new Promise(_resolve => { + resolve = _resolve; +}); + +export const getBrowserRegistries = () => { + return populatePromise; +}; + +export const populateBrowserRegistries = () => { + if (called) throw new Error('function should only be called once per process'); + called = true; + + // loadPrivateBrowserFunctions is sync. No biggie. + loadPrivateBrowserFunctions(); + + const remainingTypes = Object.keys(registries); + const populatedTypes = {}; + + function loadType() { + const type = remainingTypes.pop(); + window.canvas = window.canvas || {}; + window.canvas.register = d => registries[type].register(d); + + // Load plugins one at a time because each needs a different loader function + // $script will only load each of these once, we so can call this as many times as we need? + const pluginPath = chrome.addBasePath(`/api/canvas/plugins?type=${type}`); + $script(pluginPath, () => { + populatedTypes[type] = registries[type]; + + if (remainingTypes.length) loadType(); + else resolve(populatedTypes); + }); + } + + if (remainingTypes.length) loadType(); + return populatePromise; +}; diff --git a/x-pack/plugins/canvas/public/lib/doc_title.js b/x-pack/plugins/canvas/public/lib/doc_title.js new file mode 100644 index 0000000000000..3f75d18df14d2 --- /dev/null +++ b/x-pack/plugins/canvas/public/lib/doc_title.js @@ -0,0 +1,7 @@ +/* + * 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 setDocTitle = title => (document.title = `${title} - Kibana`); diff --git a/x-pack/plugins/canvas/public/lib/function_definitions.js b/x-pack/plugins/canvas/public/lib/function_definitions.js new file mode 100644 index 0000000000000..c4bc16a4c94c3 --- /dev/null +++ b/x-pack/plugins/canvas/public/lib/function_definitions.js @@ -0,0 +1,15 @@ +/* + * 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 uniqBy from 'lodash.uniqby'; +import { getServerFunctions } from '../state/selectors/app'; +import { getBrowserRegistries } from './browser_registries'; + +export async function getFunctionDefinitions(state) { + const { browserFunctions } = await getBrowserRegistries(); + const serverFunctions = getServerFunctions(state); + return uniqBy(serverFunctions.concat(browserFunctions.toArray()), 'name'); +} diff --git a/x-pack/plugins/canvas/public/lib/interpreter.js b/x-pack/plugins/canvas/public/lib/interpreter.js index 48491be48ef67..36878871b8b15 100644 --- a/x-pack/plugins/canvas/public/lib/interpreter.js +++ b/x-pack/plugins/canvas/public/lib/interpreter.js @@ -6,20 +6,38 @@ import { socketInterpreterProvider } from '../../common/interpreter/socket_interpret'; import { serializeProvider } from '../../common/lib/serialize'; -import { socket } from '../socket'; +import { getSocket } from '../socket'; import { typesRegistry } from '../../common/lib/types_registry'; import { createHandlers } from './create_handlers'; import { functionsRegistry } from './functions_registry'; -import { loadBrowserPlugins } from './load_browser_plugins'; +import { getBrowserRegistries } from './browser_registries'; -// Create the function list -socket.emit('getFunctionList'); -export const getServerFunctions = new Promise(resolve => socket.once('functionList', resolve)); +let socket; +let resolve; +const functionList = new Promise(_resolve => (resolve = _resolve)); + +export async function initialize() { + socket = getSocket(); + + // Listen for interpreter runs + socket.on('run', ({ ast, context, id }) => { + const types = typesRegistry.toJS(); + const { serialize, deserialize } = serializeProvider(types); + interpretAst(ast, deserialize(context)).then(value => { + socket.emit(`resp:${id}`, { value: serialize(value) }); + }); + }); + + // Create the function list + socket.emit('getFunctionList'); + socket.once('functionList', resolve); + return functionList; +} // Use the above promise to seed the interpreter with the functions it can defer to -export function interpretAst(ast, context) { +export async function interpretAst(ast, context) { // Load plugins before attempting to get functions, otherwise this gets racey - return Promise.all([getServerFunctions, loadBrowserPlugins()]) + return Promise.all([functionList, getBrowserRegistries()]) .then(([serverFunctionList]) => { return socketInterpreterProvider({ types: typesRegistry.toJS(), @@ -31,11 +49,3 @@ export function interpretAst(ast, context) { }) .then(interpretFn => interpretFn(ast, context)); } - -socket.on('run', ({ ast, context, id }) => { - const types = typesRegistry.toJS(); - const { serialize, deserialize } = serializeProvider(types); - interpretAst(ast, deserialize(context)).then(value => { - socket.emit(`resp:${id}`, { value: serialize(value) }); - }); -}); diff --git a/x-pack/plugins/canvas/public/lib/load_browser_plugins.js b/x-pack/plugins/canvas/public/lib/load_browser_plugins.js deleted file mode 100644 index 8f1f5b2e90894..0000000000000 --- a/x-pack/plugins/canvas/public/lib/load_browser_plugins.js +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 chrome from 'ui/chrome'; -import $script from 'scriptjs'; -import { typesRegistry } from '../../common/lib/types_registry'; -import { - argTypeRegistry, - datasourceRegistry, - transformRegistry, - modelRegistry, - viewRegistry, -} from '../expression_types'; -import { elementsRegistry } from './elements_registry'; -import { renderFunctionsRegistry } from './render_functions_registry'; -import { functionsRegistry as browserFunctions } from './functions_registry'; -import { loadPrivateBrowserFunctions } from './load_private_browser_functions'; - -const types = { - browserFunctions: browserFunctions, - commonFunctions: browserFunctions, - elements: elementsRegistry, - types: typesRegistry, - renderers: renderFunctionsRegistry, - transformUIs: transformRegistry, - datasourceUIs: datasourceRegistry, - modelUIs: modelRegistry, - viewUIs: viewRegistry, - argumentUIs: argTypeRegistry, -}; - -export const loadBrowserPlugins = () => - new Promise(resolve => { - loadPrivateBrowserFunctions(); - const remainingTypes = Object.keys(types); - function loadType() { - const type = remainingTypes.pop(); - window.canvas = window.canvas || {}; - window.canvas.register = d => types[type].register(d); - // Load plugins one at a time because each needs a different loader function - // $script will only load each of these once, we so can call this as many times as we need? - const pluginPath = chrome.addBasePath(`/api/canvas/plugins?type=${type}`); - $script(pluginPath, () => { - if (remainingTypes.length) loadType(); - else resolve(true); - }); - } - - loadType(); - }); diff --git a/x-pack/plugins/canvas/public/lib/router_provider.js b/x-pack/plugins/canvas/public/lib/router_provider.js index c62f020ac0151..eac87fd51a2a7 100644 --- a/x-pack/plugins/canvas/public/lib/router_provider.js +++ b/x-pack/plugins/canvas/public/lib/router_provider.js @@ -26,6 +26,15 @@ export function routerProvider(routes) { return state || history.getLocation().state; }; + const updateLocation = (name, params, state, replace = false) => { + const currentState = getState(name, params, state); + const method = replace ? 'replace' : 'push'; + + // given a path, go there directly + if (isPath(name)) return history[method](currentState, name); + history[method](currentState, baseRouter.create(name, params)); + }; + // our router is an extended version of the imported router // which mixes in history methods for navigation router = { @@ -36,16 +45,10 @@ export function routerProvider(routes) { getPath: history.getPath, getFullPath: history.getFullPath, navigateTo(name, params, state) { - const currentState = getState(name, params, state); - // given a path, go there directly - if (isPath(name)) return history.push(currentState, name); - history.push(currentState, this.create(name, params)); + updateLocation(name, params, state); }, redirectTo(name, params, state) { - const currentState = getState(name, params, state); - // given a path, go there directly, assuming params is state - if (isPath(name)) return history.replace(currentState, name); - history.replace(currentState, this.create(name, params)); + updateLocation(name, params, state, true); }, onPathChange(fn) { if (componentListener != null) diff --git a/x-pack/plugins/canvas/public/lib/window_error_handler.js b/x-pack/plugins/canvas/public/lib/window_error_handler.js index 0a96f9305bf14..b0b1c14a336d6 100644 --- a/x-pack/plugins/canvas/public/lib/window_error_handler.js +++ b/x-pack/plugins/canvas/public/lib/window_error_handler.js @@ -41,36 +41,42 @@ function showError(err) { body.appendChild(notice); } -// React will delegate to window.onerror, even when errors are caught with componentWillCatch, -// so check for a known custom error type and skip the default error handling when we find one -window.onerror = (...args) => { - const [message, , , , err] = args; +window.canvasInitErrorHandler = () => { + // React will delegate to window.onerror, even when errors are caught with componentWillCatch, + // so check for a known custom error type and skip the default error handling when we find one + window.onerror = (...args) => { + const [message, , , , err] = args; - const isKnownError = Object.keys(knownErrors).find(errorName => { - return err.constructor.name === errorName || message.indexOf(errorName) >= 0; - }); - if (isKnownError) return; + const isKnownError = Object.keys(knownErrors).find(errorName => { + return err.constructor.name === errorName || message.indexOf(errorName) >= 0; + }); + if (isKnownError) return; - // uncaught errors are silenced in dev mode - // NOTE: react provides no way I can tell to distingish that an error came from react, it just - // throws generic Errors. In development mode, it throws those errors even if you catch them in - // an error boundary. This uses in the stack trace to try to detect it, but that stack changes - // between development and production modes. Fortunately, beginWork exists in both, so it uses - // a mix of the runtime mode and checking for another react method (renderRoot) for development - // TODO: this is *super* fragile. If the React method names ever change, which seems kind of likely, - // this check will break. - const isProduction = process.env.NODE_ENV === 'production'; - if (!isProduction) { - // TODO: we should do something here to let the user know something failed, - // but we don't currently have an error logging service - console.error(err); - console.warn(`*** Uncaught error swallowed in dev mode *** + // uncaught errors are silenced in dev mode + // NOTE: react provides no way I can tell to distingish that an error came from react, it just + // throws generic Errors. In development mode, it throws those errors even if you catch them in + // an error boundary. This uses in the stack trace to try to detect it, but that stack changes + // between development and production modes. Fortunately, beginWork exists in both, so it uses + // a mix of the runtime mode and checking for another react method (renderRoot) for development + // TODO: this is *super* fragile. If the React method names ever change, which seems kind of likely, + // this check will break. + const isProduction = process.env.NODE_ENV === 'production'; + if (!isProduction) { + // TODO: we should do something here to let the user know something failed, + // but we don't currently have an error logging service + console.error(err); + console.warn(`*** Uncaught error swallowed in dev mode *** -Check and fix the above error. This will blow up Kibana when run in production mode!`); - showError(err); - return; - } + Check and fix the above error. This will blow up Kibana when run in production mode!`); + showError(err); + return; + } + + // fall back to the default kibana uncaught error handler + oldHandler(...args); + }; +}; - // fall back to the default kibana uncaught error handler - oldHandler(...args); +window.canvasRestoreErrorHandler = () => { + window.onerror = oldHandler; }; diff --git a/x-pack/plugins/canvas/public/register_feature.js b/x-pack/plugins/canvas/public/register_feature.js new file mode 100644 index 0000000000000..658896d104bbd --- /dev/null +++ b/x-pack/plugins/canvas/public/register_feature.js @@ -0,0 +1,41 @@ +/* + * 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. + */ + +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { + FeatureCatalogueRegistryProvider, + FeatureCatalogueCategory, +} from 'ui/registry/feature_catalogue'; + +FeatureCatalogueRegistryProvider.register(() => { + return { + id: 'canvas', + title: 'Canvas', + description: 'Showcase your data in a pixel-perfect way.', + icon: 'canvasApp', + path: '/app/canvas', + showOnHomePage: true, + category: FeatureCatalogueCategory.DATA, + }; +}); diff --git a/x-pack/plugins/canvas/public/socket.js b/x-pack/plugins/canvas/public/socket.js index eb381f17d1f9b..92deedd488c06 100644 --- a/x-pack/plugins/canvas/public/socket.js +++ b/x-pack/plugins/canvas/public/socket.js @@ -4,16 +4,59 @@ * you may not use this file except in compliance with the Elastic License. */ -import chrome from 'ui/chrome'; import io from 'socket.io-client'; import { functionsRegistry } from '../common/lib/functions_registry'; -import { loadBrowserPlugins } from './lib/load_browser_plugins'; +import { getBrowserRegistries } from './lib/browser_registries'; -const basePath = chrome.getBasePath(); -export const socket = io(undefined, { path: `${basePath}/socket.io` }); +const SOCKET_CONNECTION_TIMEOUT = 5000; // timeout in ms +let socket; -socket.on('getFunctionList', () => { - const pluginsLoaded = loadBrowserPlugins(); +export async function createSocket(basePath) { + if (socket != null) return socket; - pluginsLoaded.then(() => socket.emit('functionList', functionsRegistry.toJS())); -}); + return new Promise((resolve, rej) => { + const reject = p => { + socket = null; // reset the socket on errors + rej(p); + }; + + socket = io({ + path: `${basePath}/socket.io`, + transports: ['polling', 'websocket'], + transportOptions: { + polling: { + extraHeaders: { + 'kbn-xsrf': 'professionally-crafted-string-of-text', + }, + }, + }, + timeout: SOCKET_CONNECTION_TIMEOUT, + // ensure socket.io always tries polling first, otherwise auth will fail + rememberUpgrade: false, + }); + + socket.on('getFunctionList', () => { + const pluginsLoaded = getBrowserRegistries(); + pluginsLoaded.then(() => socket.emit('functionList', functionsRegistry.toJS())); + }); + + socket.on('connect', () => { + resolve(); + }); + + function errorHandler(err) { + // 'connectionFailed' returns an object with a reason prop + // other error cases provide their own error + reject(err.reason ? new Error(err.reason) : err); + } + + socket.on('connectionFailed', errorHandler); + socket.on('connect_error', errorHandler); + socket.on('connect_timeout', errorHandler); + }); +} + +export function getSocket() { + if (!socket) throw new Error('getSocket failed, socket has not been created'); + return socket; +} diff --git a/x-pack/plugins/canvas/public/state/actions/transient.js b/x-pack/plugins/canvas/public/state/actions/transient.js index 19d9a76b6a497..93464a23bf500 100644 --- a/x-pack/plugins/canvas/public/state/actions/transient.js +++ b/x-pack/plugins/canvas/public/state/actions/transient.js @@ -6,6 +6,6 @@ import { createAction } from 'redux-actions'; -export const setEditing = createAction('setEditing'); +export const setCanUserWrite = createAction('setCanUserWrite'); export const setFullscreen = createAction('setFullscreen'); export const selectElement = createAction('selectElement'); diff --git a/x-pack/plugins/canvas/public/state/actions/workpad.js b/x-pack/plugins/canvas/public/state/actions/workpad.js index 5f326176999ea..6e41ac36db19c 100644 --- a/x-pack/plugins/canvas/public/state/actions/workpad.js +++ b/x-pack/plugins/canvas/public/state/actions/workpad.js @@ -12,6 +12,7 @@ import { fetchAllRenderables } from './elements'; export const sizeWorkpad = createAction('sizeWorkpad'); export const setName = createAction('setName'); +export const setWriteable = createAction('setWriteable'); export const setColors = createAction('setColors'); export const setRefreshInterval = createAction('setRefreshInterval'); diff --git a/x-pack/plugins/canvas/public/state/defaults.js b/x-pack/plugins/canvas/public/state/defaults.js index 41f79ca60490c..d932bc80a93e0 100644 --- a/x-pack/plugins/canvas/public/state/defaults.js +++ b/x-pack/plugins/canvas/public/state/defaults.js @@ -77,5 +77,6 @@ export const getDefaultWorkpad = () => { '#FFFFFF', 'rgba(255,255,255,0)', // 'transparent' ], + isWriteable: true, }; }; diff --git a/x-pack/plugins/canvas/public/state/initial_state.js b/x-pack/plugins/canvas/public/state/initial_state.js index c9bf04185bd17..e2e553946b308 100644 --- a/x-pack/plugins/canvas/public/state/initial_state.js +++ b/x-pack/plugins/canvas/public/state/initial_state.js @@ -10,8 +10,9 @@ import { getDefaultWorkpad } from './defaults'; export const getInitialState = path => { const state = { app: {}, // Kibana stuff in here + assets: {}, // assets end up here transient: { - editing: true, + canUserWrite: true, fullscreen: false, selectedElement: null, resolvedArgs: {}, diff --git a/x-pack/plugins/canvas/public/state/middleware/aeroelastic.js b/x-pack/plugins/canvas/public/state/middleware/aeroelastic.js index ea9f76550bc32..f2ddac33feff5 100644 --- a/x-pack/plugins/canvas/public/state/middleware/aeroelastic.js +++ b/x-pack/plugins/canvas/public/state/middleware/aeroelastic.js @@ -87,6 +87,8 @@ const updateGlobalPositions = (setPosition, { shapes, gestureEnd }, elems) => { angle: Math.round(matrixToAngle(shape.transformMatrix)), }; + if (1 / newProps.angle === -Infinity) newProps.angle = 0; // recompose.shallowEqual discerns between 0 and -0 + if (!shallowEqual(oldProps, newProps)) setPosition(shape.id, newProps); } }); @@ -161,6 +163,11 @@ export const aeroelastic = ({ dispatch, getState }) => { pages.map(p => p.id).forEach(createStore); } + if (action.type === restoreHistory.toString()) { + aero.clearStores(); + action.payload.workpad.pages.map(p => p.id).forEach(createStore); + } + if (action.type === appReady.toString()) { const pages = getPages(getState()); aero.clearStores(); diff --git a/x-pack/plugins/canvas/public/state/middleware/es_persist.js b/x-pack/plugins/canvas/public/state/middleware/es_persist.js index e36f5d3586f20..52e23a5d6195e 100644 --- a/x-pack/plugins/canvas/public/state/middleware/es_persist.js +++ b/x-pack/plugins/canvas/public/state/middleware/es_persist.js @@ -13,6 +13,7 @@ import * as transientActions from '../actions/transient'; import * as resolvedArgsActions from '../actions/resolved_args'; import { update } from '../../lib/workpad_service'; import { notify } from '../../lib/notify'; +import { canUserWrite } from '../selectors/app'; const workpadChanged = (before, after) => { const workpad = getWorkpad(before); @@ -43,6 +44,9 @@ export const esPersistMiddleware = ({ getState }) => { next(action); const newState = getState(); + // skips the update request if user doesn't have write permissions + if (!canUserWrite(newState)) return; + // if the workpad changed, save it to elasticsearch if (workpadChanged(curState, newState) || assetsChanged(curState, newState)) { const persistedWorkpad = getWorkpadPersisted(getState()); diff --git a/x-pack/plugins/canvas/public/state/middleware/history.js b/x-pack/plugins/canvas/public/state/middleware/history.js index 659b8a640c99c..2bb089a706e5f 100644 --- a/x-pack/plugins/canvas/public/state/middleware/history.js +++ b/x-pack/plugins/canvas/public/state/middleware/history.js @@ -8,9 +8,17 @@ import { isEqual } from 'lodash'; import { routes } from '../../apps'; import { historyProvider } from '../../lib/history_provider'; import { routerProvider } from '../../lib/router_provider'; +import { get as fetchWorkpad } from '../../lib/workpad_service'; import { restoreHistory, undoHistory, redoHistory } from '../actions/history'; import { initializeWorkpad } from '../actions/workpad'; +import { setAssets } from '../actions/assets'; import { isAppReady } from '../selectors/app'; +import { getWorkpad } from '../selectors/workpad'; + +function getHistoryState(state) { + // this is what gets written to browser history + return state.persistent; +} export const historyMiddleware = ({ dispatch, getState }) => { // iterate over routes, injecting redux to action handlers @@ -52,7 +60,19 @@ export const historyMiddleware = ({ dispatch, getState }) => { // only restore the history on popState events with state // this only happens when using back/forward with popState objects - if (isBrowserNav) return dispatch(restoreHistory(historyState)); + if (isBrowserNav) { + // TODO: oof, this sucks. we can't just shove assets into history state because + // firefox is limited to 640k (wat!). so, when we see that the workpad id is changing, + // we instead just restore the assets, which ensures the overall state is correct. + // there must be a better way to handle history though... + const currentWorkpadId = getWorkpad(getState()).id; + if (currentWorkpadId !== historyState.workpad.id) { + const newWorkpad = await fetchWorkpad(historyState.workpad.id); + dispatch(setAssets(newWorkpad.assets)); + } + + return dispatch(restoreHistory(historyState)); + } // execute route action on pushState and popState events if (isUrlChange) return await router.parse(pathname); @@ -99,14 +119,17 @@ export const historyMiddleware = ({ dispatch, getState }) => { // if app switched from not ready to ready, replace current state // this allows the back button to work correctly all the way to first page load if (!isAppReady(oldState) && isAppReady(newState)) { - history.replace(newState.persistent); + history.replace(getHistoryState(newState)); return; } // if the persistent state changed, push it into the history - if (!isEqual(newState.persistent, oldState.persistent)) { + const oldHistoryState = getHistoryState(oldState); + const historyState = getHistoryState(newState); + if (!isEqual(historyState, oldHistoryState)) { + // if there are pending route changes, just replace current route (to avoid extra back/forth history entries) const useReplaceState = handlerState.pendingCount !== 0; - useReplaceState ? history.replace(newState.persistent) : history.push(newState.persistent); + useReplaceState ? history.replace(historyState) : history.push(historyState); } }; }; diff --git a/x-pack/plugins/canvas/public/state/reducers/transient.js b/x-pack/plugins/canvas/public/state/reducers/transient.js index 6c2983fd850e3..a99d85b399c7e 100644 --- a/x-pack/plugins/canvas/public/state/reducers/transient.js +++ b/x-pack/plugins/canvas/public/state/reducers/transient.js @@ -28,8 +28,8 @@ export const transientReducer = handleActions( ); }, - [actions.setEditing]: (transientState, { payload }) => { - return set(transientState, 'editing', Boolean(payload)); + [actions.setCanUserWrite]: (transientState, { payload }) => { + return set(transientState, 'canUserWrite', Boolean(payload)); }, [actions.setFullscreen]: (transientState, { payload }) => { diff --git a/x-pack/plugins/canvas/public/state/reducers/workpad.js b/x-pack/plugins/canvas/public/state/reducers/workpad.js index 799444864fa41..892c541e5f348 100644 --- a/x-pack/plugins/canvas/public/state/reducers/workpad.js +++ b/x-pack/plugins/canvas/public/state/reducers/workpad.js @@ -6,7 +6,7 @@ import { recentlyAccessed } from 'ui/persisted_log'; import { handleActions } from 'redux-actions'; -import { setWorkpad, sizeWorkpad, setColors, setName } from '../actions/workpad'; +import { setWorkpad, sizeWorkpad, setColors, setName, setWriteable } from '../actions/workpad'; import { APP_ROUTE_WORKPAD } from '../../../common/lib/constants'; export const workpadReducer = handleActions( @@ -28,6 +28,10 @@ export const workpadReducer = handleActions( recentlyAccessed.add(`${APP_ROUTE_WORKPAD}/${workpadState.id}`, payload, workpadState.id); return { ...workpadState, name: payload }; }, + + [setWriteable]: (workpadState, { payload }) => { + return { ...workpadState, isWriteable: Boolean(payload) }; + }, }, {} ); diff --git a/x-pack/plugins/canvas/public/state/selectors/__tests__/workpad.js b/x-pack/plugins/canvas/public/state/selectors/__tests__/workpad.js index 0c459fc3faa84..f1ff31874935b 100644 --- a/x-pack/plugins/canvas/public/state/selectors/__tests__/workpad.js +++ b/x-pack/plugins/canvas/public/state/selectors/__tests__/workpad.js @@ -71,6 +71,7 @@ describe('workpad selectors', () => { ], }, ], + isWriteable: false, }, }, }; @@ -85,6 +86,7 @@ describe('workpad selectors', () => { expect(selector.getElementById({}, 'element-1')).to.be(undefined); expect(selector.getResolvedArgs({}, 'element-1')).to.be(undefined); expect(selector.getSelectedResolvedArgs({})).to.be(undefined); + expect(selector.isWriteable({})).to.be(true); }); }); @@ -195,4 +197,10 @@ describe('workpad selectors', () => { expect(arg).to.be(true); }); }); + + describe('isWriteable', () => { + it('returns boolean for if the workpad is writeable', () => { + expect(selector.isWriteable(state)).to.equal(false); + }); + }); }); diff --git a/x-pack/plugins/canvas/public/state/selectors/app.js b/x-pack/plugins/canvas/public/state/selectors/app.js index 3114cb2063440..0f13df85a0353 100644 --- a/x-pack/plugins/canvas/public/state/selectors/app.js +++ b/x-pack/plugins/canvas/public/state/selectors/app.js @@ -7,16 +7,16 @@ import { get } from 'lodash'; // page getters -export function getEditing(state) { - return get(state, 'transient.editing', false); +export function canUserWrite(state) { + return get(state, 'transient.canUserWrite', true); } export function getFullscreen(state) { return get(state, 'transient.fullscreen', false); } -export function getFunctionDefinitions(state) { - return get(state, 'app.functionDefinitions'); +export function getServerFunctions(state) { + return get(state, 'app.serverFunctions'); } export function getAppReady(state) { diff --git a/x-pack/plugins/canvas/public/state/selectors/workpad.js b/x-pack/plugins/canvas/public/state/selectors/workpad.js index 4dff29be51c01..1db0128abab07 100644 --- a/x-pack/plugins/canvas/public/state/selectors/workpad.js +++ b/x-pack/plugins/canvas/public/state/selectors/workpad.js @@ -27,10 +27,15 @@ export function getWorkpadPersisted(state) { assets: getAssets(state), }; } + export function getWorkpadInfo(state) { return omit(getWorkpad(state), ['pages']); } +export function isWriteable(state) { + return get(state, append(workpadRoot, 'isWriteable'), true); +} + // page getters export function getSelectedPageIndex(state) { return get(state, append(workpadRoot, 'page')); diff --git a/x-pack/plugins/canvas/public/style/index.scss b/x-pack/plugins/canvas/public/style/index.scss index c41b5fee9b86b..bf69fba54feb4 100644 --- a/x-pack/plugins/canvas/public/style/index.scss +++ b/x-pack/plugins/canvas/public/style/index.scss @@ -20,20 +20,19 @@ @import '../components/arg_add_popover/arg_add_popover'; @import '../components/arg_form/arg_form'; @import '../components/asset_manager/asset_manager'; +@import '../components/autocomplete/autocomplete'; @import '../components/border_connection/border_connection'; @import '../components/border_resize_handle/border_resize_handle'; @import '../components/color_dot/color_dot'; @import '../components/color_palette/color_palette'; @import '../components/color_picker_mini/color_picker_mini'; -@import '../components/context_menu/context_menu'; @import '../components/datasource/datasource'; @import '../components/datasource/datasource_preview/datasource_preview'; @import '../components/datatable/datatable'; @import '../components/debug/debug'; @import '../components/dom_preview/dom_preview'; @import '../components/element_content/element_content'; -@import '../components/expression_input/suggestion'; -@import '../components/font_picker/font_picker'; +@import '../components/element_types/element_types'; @import '../components/fullscreen/fullscreen'; @import '../components/function_form/function_form'; @import '../components/hover_annotation/hover_annotation'; diff --git a/x-pack/plugins/canvas/public/style/main.scss b/x-pack/plugins/canvas/public/style/main.scss index d3e0b00894c6b..1e9af8278eee0 100644 --- a/x-pack/plugins/canvas/public/style/main.scss +++ b/x-pack/plugins/canvas/public/style/main.scss @@ -24,15 +24,14 @@ .canvasTextArea--code { @include euiScrollBar; font-size: $euiFontSize; - font-family: monospace; + font-family: $euiCodeFontFamily; width: 100%; max-width: 100%; } -#canvas-app body { +#canvas-app { overflow-y: hidden; - // Todo: replace this with EuiToast .window-error { position: absolute; bottom: 10px; diff --git a/x-pack/plugins/canvas/scripts/_helpers.js b/x-pack/plugins/canvas/scripts/_helpers.js new file mode 100644 index 0000000000000..222b38c7eb4e5 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/_helpers.js @@ -0,0 +1,19 @@ +/* + * 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. + */ + +const { resolve } = require('path'); + +exports.runGulpTask = function(name) { + process.chdir(resolve(__dirname, '../../..')); + process.argv.splice(1, 1, require.resolve('gulp/bin/gulp'), name); + require('gulp/bin/gulp'); +}; + +exports.runKibanaScript = function(name, args = []) { + process.chdir(resolve(__dirname, '../../../..')); + process.argv.splice(2, 0, ...args); + require('../../../../scripts/' + name); +}; diff --git a/x-pack/plugins/canvas/scripts/build_plugins.js b/x-pack/plugins/canvas/scripts/build_plugins.js new file mode 100644 index 0000000000000..0c910fc8f0147 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/build_plugins.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:plugins:build'); diff --git a/x-pack/plugins/canvas/scripts/kbn.js b/x-pack/plugins/canvas/scripts/kbn.js new file mode 100644 index 0000000000000..ad7442de4c57b --- /dev/null +++ b/x-pack/plugins/canvas/scripts/kbn.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runKibanaScript('kbn'); diff --git a/x-pack/plugins/canvas/scripts/lint.js b/x-pack/plugins/canvas/scripts/lint.js new file mode 100644 index 0000000000000..336c8be96a231 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/lint.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runKibanaScript('eslint', ['x-pack/plugins/canvas/**/*.{js,jsx}']); diff --git a/x-pack/plugins/canvas/scripts/peg_build.js b/x-pack/plugins/canvas/scripts/peg_build.js new file mode 100644 index 0000000000000..7b880c83b89a1 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/peg_build.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:peg:build'); diff --git a/x-pack/plugins/canvas/scripts/peg_dev.js b/x-pack/plugins/canvas/scripts/peg_dev.js new file mode 100644 index 0000000000000..e14a5216d6ec1 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/peg_dev.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:peg:dev'); diff --git a/x-pack/plugins/canvas/scripts/start.js b/x-pack/plugins/canvas/scripts/start.js new file mode 100644 index 0000000000000..e5cb84a61df4e --- /dev/null +++ b/x-pack/plugins/canvas/scripts/start.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:dev'); diff --git a/x-pack/plugins/canvas/scripts/test.js b/x-pack/plugins/canvas/scripts/test.js new file mode 100644 index 0000000000000..5f036b79e34ff --- /dev/null +++ b/x-pack/plugins/canvas/scripts/test.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:test'); diff --git a/x-pack/plugins/canvas/scripts/test_browser.js b/x-pack/plugins/canvas/scripts/test_browser.js new file mode 100644 index 0000000000000..971a04d9d97c2 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/test_browser.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:test:browser'); diff --git a/x-pack/plugins/canvas/scripts/test_common.js b/x-pack/plugins/canvas/scripts/test_common.js new file mode 100644 index 0000000000000..0bd478c107b7a --- /dev/null +++ b/x-pack/plugins/canvas/scripts/test_common.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:test:common'); diff --git a/x-pack/plugins/canvas/scripts/test_dev.js b/x-pack/plugins/canvas/scripts/test_dev.js new file mode 100644 index 0000000000000..656168b23af4b --- /dev/null +++ b/x-pack/plugins/canvas/scripts/test_dev.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:test:dev'); diff --git a/x-pack/plugins/canvas/scripts/test_plugins.js b/x-pack/plugins/canvas/scripts/test_plugins.js new file mode 100644 index 0000000000000..930b8587975b8 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/test_plugins.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:test:plugins'); diff --git a/x-pack/plugins/canvas/scripts/test_server.js b/x-pack/plugins/canvas/scripts/test_server.js new file mode 100644 index 0000000000000..a05994c4d8606 --- /dev/null +++ b/x-pack/plugins/canvas/scripts/test_server.js @@ -0,0 +1,7 @@ +/* + * 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. + */ + +require('./_helpers').runGulpTask('canvas:test:server'); diff --git a/x-pack/plugins/canvas/server/lib/__tests__/create_handlers.js b/x-pack/plugins/canvas/server/lib/__tests__/create_handlers.js new file mode 100644 index 0000000000000..9dbe0e413a1af --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/__tests__/create_handlers.js @@ -0,0 +1,152 @@ +/* + * 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 expect from 'expect.js'; +import { createHandlers } from '../create_handlers'; +import { SECURITY_AUTH_MESSAGE } from '../../../common/lib/constants'; + +let securityMode = 'pass'; +let isSecurityAvailable = true; +let isSecurityEnabled = true; +const authError = new Error('auth error'); + +const mockRequest = { + headers: 'i can haz headers', +}; + +const mockServer = { + plugins: { + security: { + authenticate: () => ({ + succeeded: () => (securityMode === 'pass' ? true : false), + error: securityMode === 'pass' ? null : authError, + }), + }, + elasticsearch: { + getCluster: () => ({ + callWithRequest: (...args) => Promise.resolve(args), + }), + }, + // TODO: remove this when we use the method exposed by security https://github.com/elastic/kibana/pull/24616 + xpack_main: { + info: { + feature: () => ({ + isAvailable: () => isSecurityAvailable, + isEnabled: () => isSecurityEnabled, + }), + }, + }, + }, + config: () => ({ + has: () => false, + get: val => val, + }), + info: { + uri: 'serveruri', + }, +}; + +describe('server createHandlers', () => { + let handlers; + + beforeEach(() => { + securityMode = 'pass'; + isSecurityEnabled = true; + isSecurityAvailable = true; + handlers = createHandlers(mockRequest, mockServer); + }); + + it('provides helper methods and properties', () => { + expect(handlers).to.have.property('environment', 'server'); + expect(handlers).to.have.property('serverUri'); + expect(handlers).to.have.property('httpHeaders', mockRequest.headers); + expect(handlers).to.have.property('elasticsearchClient'); + }); + + describe('elasticsearchClient', () => { + it('executes callWithRequest', async () => { + const [request, endpoint, payload] = await handlers.elasticsearchClient( + 'endpoint', + 'payload' + ); + expect(request).to.equal(mockRequest); + expect(endpoint).to.equal('endpoint'); + expect(payload).to.equal('payload'); + }); + + it('rejects when authentication check fails', () => { + securityMode = 'fail'; + return handlers + .elasticsearchClient('endpoint', 'payload') + .then(() => { + throw new Error('elasticsearchClient should fail when authentication fails'); + }) + .catch(err => { + expect(err.message).to.be.equal(SECURITY_AUTH_MESSAGE); + }); + }); + + it('works without security plugin in kibana', async () => { + // create server without security plugin + const mockServerClone = { + ...mockServer, + plugins: { ...mockServer.plugins }, + }; + delete mockServerClone.plugins.security; + expect(mockServer.plugins).to.have.property('security'); // confirm original server object + expect(mockServerClone.plugins).to.not.have.property('security'); + + // this shouldn't do anything + securityMode = 'fail'; + + // make sure the method still works + handlers = createHandlers(mockRequest, mockServerClone); + const [request, endpoint, payload] = await handlers.elasticsearchClient( + 'endpoint', + 'payload' + ); + expect(request).to.equal(mockRequest); + expect(endpoint).to.equal('endpoint'); + expect(payload).to.equal('payload'); + }); + + it('works without security available', async () => { + // create server with security unavailable (i.e. when user is on a basic license) + isSecurityAvailable = false; + + // this shouldn't do anything + securityMode = 'fail'; + + // make sure the method still works + handlers = createHandlers(mockRequest, mockServer); + const [request, endpoint, payload] = await handlers.elasticsearchClient( + 'endpoint', + 'payload' + ); + expect(request).to.equal(mockRequest); + expect(endpoint).to.equal('endpoint'); + expect(payload).to.equal('payload'); + }); + + it('works with security disabled in elasticsearch', async () => { + // create server with security disabled + isSecurityEnabled = false; + + // this shouldn't do anything + securityMode = 'fail'; + + // make sure the method still works + handlers = createHandlers(mockRequest, mockServer); + const [request, endpoint, payload] = await handlers.elasticsearchClient( + 'endpoint', + 'payload' + ); + expect(request).to.equal(mockRequest); + expect(endpoint).to.equal('endpoint'); + expect(payload).to.equal('payload'); + }); + }); +}); diff --git a/x-pack/plugins/canvas/server/lib/create_handlers.js b/x-pack/plugins/canvas/server/lib/create_handlers.js index 0825804960dbb..f42f8fbe1a59d 100644 --- a/x-pack/plugins/canvas/server/lib/create_handlers.js +++ b/x-pack/plugins/canvas/server/lib/create_handlers.js @@ -4,7 +4,9 @@ * you may not use this file except in compliance with the Elastic License. */ -import { partial } from 'lodash'; +import boom from 'boom'; +import { SECURITY_AUTH_MESSAGE } from '../../common/lib/constants'; +import { isSecurityEnabled } from './feature_check'; export const createHandlers = (request, server) => { const { callWithRequest } = server.plugins.elasticsearch.getCluster('data'); @@ -17,6 +19,26 @@ export const createHandlers = (request, server) => { ? `${server.info.uri}${config.get('server.basePath')}` : server.info.uri, httpHeaders: request.headers, - elasticsearchClient: partial(callWithRequest, request), + elasticsearchClient: async (...args) => { + // check if the session is valid because continuing to use it + if (isSecurityEnabled(server)) { + try { + const authenticationResult = await server.plugins.security.authenticate(request); + if (!authenticationResult.succeeded()) + throw boom.unauthorized(authenticationResult.error); + } catch (e) { + // if authenticate throws, show error in development + if (process.env.NODE_ENV !== 'production') { + e.message = `elasticsearchClient failed: ${e.message}`; + console.error(e); + } + + // hide all failure information from the user + throw boom.unauthorized(SECURITY_AUTH_MESSAGE); + } + } + + return callWithRequest(request, ...args); + }, }; }; diff --git a/x-pack/plugins/canvas/server/lib/feature_check.js b/x-pack/plugins/canvas/server/lib/feature_check.js new file mode 100644 index 0000000000000..e9cec02923582 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/feature_check.js @@ -0,0 +1,13 @@ +/* + * 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. + */ + +// TODO: replace this when we use the method exposed by security https://github.com/elastic/kibana/pull/24616 +export const isSecurityEnabled = server => { + const kibanaSecurity = server.plugins.security; + const esSecurity = server.plugins.xpack_main.info.feature('security'); + + return kibanaSecurity && esSecurity.isAvailable() && esSecurity.isEnabled(); +}; diff --git a/x-pack/plugins/canvas/server/lib/get_plugin_paths.js b/x-pack/plugins/canvas/server/lib/get_plugin_paths.js index 6ebb5574e57d5..02582e5f749cc 100644 --- a/x-pack/plugins/canvas/server/lib/get_plugin_paths.js +++ b/x-pack/plugins/canvas/server/lib/get_plugin_paths.js @@ -13,31 +13,63 @@ import { pluginPaths } from './plugin_paths'; const lstat = promisify(fs.lstat); const readdir = promisify(fs.readdir); -const kibanaPluginPath = path.resolve(__dirname, '..', '..', '..'); const canvasPluginDirectoryName = 'canvas_plugin'; +const isDirectory = path => + lstat(path) + .then(stat => stat.isDirectory()) + .catch(() => false); + +const isDirname = (p, name) => path.basename(p) === name; + +const getKibanaPluginsPath = () => { + const basePluginPath = path.resolve(__dirname, '..', '..', '..', '..', '..'); + + // find the kibana path in dev mode + if (isDirname(basePluginPath, 'kibana')) return path.join(basePluginPath, 'plugins'); + + // find the kibana path in the build, which lives in node_modules and requires going 1 path up + const buildPluginPath = path.join(basePluginPath, '..'); + if (isDirname(basePluginPath, 'node_modules')) { + const pluginPath = path.join(buildPluginPath, 'plugins'); + return isDirectory(pluginPath) && pluginPath; + } + + return false; +}; + +// These must all exist +const paths = [ + path.resolve(__dirname, '..', '..', '..'), // Canvas core plugins + getKibanaPluginsPath(), // Kibana plugin directory +].filter(Boolean); + export const getPluginPaths = type => { const typePath = pluginPaths[type]; if (!typePath) throw new Error(`Unknown type: ${type}`); - return readdir(kibanaPluginPath) // Get names of everything in Kibana plugin path - .then(names => names.filter(name => name[0] !== '.')) // Filter out names that start with . - .then(names => { - // Get full paths to stuff that might have a canvas plugin of the provided type - return names.map(name => - path.resolve(kibanaPluginPath, name, canvasPluginDirectoryName, ...typePath) - ); - }) + async function findPlugins(directory) { + const isDir = await isDirectory(directory); + if (!isDir) return; + + const names = await readdir(directory); // Get names of everything in the directory + return names + .filter(name => name[0] !== '.') + .map(name => path.resolve(directory, name, canvasPluginDirectoryName, ...typePath)); + } + + return Promise.all(paths.map(findPlugins)) + .then(dirs => + dirs.reduce((list, dir) => { + if (!dir) return list; + return list.concat(dir); + }, []) + ) .then(possibleCanvasPlugins => { // Check how many are directories. If lstat fails it doesn't exist anyway. return Promise.all( // An array - possibleCanvasPlugins.map( - pluginPath => - lstat(pluginPath) - .then(stat => stat.isDirectory()) // Exists and is a directory - .catch(() => false) // I guess it doesn't exist, so whaevs - ) + possibleCanvasPlugins.map(pluginPath => isDirectory(pluginPath)) ).then(isDirectory => possibleCanvasPlugins.filter((pluginPath, i) => isDirectory[i])); }) .then(canvasPluginDirectories => { diff --git a/x-pack/plugins/canvas/server/lib/get_plugin_stream.js b/x-pack/plugins/canvas/server/lib/get_plugin_stream.js index 51f3d234afdb1..6a08e2beeff8e 100644 --- a/x-pack/plugins/canvas/server/lib/get_plugin_stream.js +++ b/x-pack/plugins/canvas/server/lib/get_plugin_stream.js @@ -9,7 +9,9 @@ import ss from 'stream-stream'; import { getPluginPaths } from './get_plugin_paths'; export const getPluginStream = type => { - const stream = ss(); + const stream = ss({ + separator: '\n', + }); getPluginPaths(type).then(files => { files.forEach(file => { diff --git a/x-pack/plugins/canvas/server/lib/get_request.js b/x-pack/plugins/canvas/server/lib/get_request.js new file mode 100644 index 0000000000000..d55421e437fc4 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/get_request.js @@ -0,0 +1,30 @@ +/* + * 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 boom from 'boom'; +import { API_ROUTE } from '../../common/lib/constants'; + +export function getRequest(server, { headers }) { + const url = `${API_ROUTE}/ping`; + + return server + .inject({ + method: 'POST', + url, + headers, + }) + .then(res => { + if (res.statusCode !== 200) { + if (process.env.NODE_ENV !== 'production') { + console.error( + new Error(`Auth request failed: [${res.statusCode}] ${res.result.message}`) + ); + } + throw boom.unauthorized('Failed to authenticate socket connection'); + } + + return res.request; + }); +} diff --git a/x-pack/plugins/canvas/server/lib/load_server_plugins.js b/x-pack/plugins/canvas/server/lib/load_server_plugins.js deleted file mode 100644 index 0373261e96067..0000000000000 --- a/x-pack/plugins/canvas/server/lib/load_server_plugins.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 { typesRegistry } from '../../common/lib/types_registry'; -import { functionsRegistry as serverFunctions } from '../../common/lib/functions_registry'; -import { getPluginPaths } from './get_plugin_paths'; - -const types = { - serverFunctions: serverFunctions, - commonFunctions: serverFunctions, - types: typesRegistry, -}; - -const loaded = new Promise(resolve => { - const remainingTypes = Object.keys(types); - - const loadType = () => { - const type = remainingTypes.pop(); - getPluginPaths(type).then(paths => { - global.canvas = global.canvas || {}; - global.canvas.register = d => types[type].register(d); - - paths.forEach(path => { - require(path); - }); - - global.canvas = undefined; - if (remainingTypes.length) loadType(); - else resolve(true); - }); - }; - - loadType(); -}); - -export const loadServerPlugins = () => loaded; diff --git a/x-pack/plugins/canvas/server/lib/route_expression/browser.js b/x-pack/plugins/canvas/server/lib/route_expression/browser.js new file mode 100644 index 0000000000000..feae107873ac6 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/route_expression/browser.js @@ -0,0 +1,44 @@ +/* + * 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 uuid from 'uuid/v4'; + +export const browser = ({ socket, serialize, deserialize }) => { + // Note that we need to be careful about how many times routeExpressionProvider is called, because of the socket.once below. + // It's too bad we can't get a list of browser plugins on the server + const getClientFunctions = new Promise(resolve => { + socket.emit('getFunctionList'); + socket.once('functionList', resolve); + }); + + return getClientFunctions.then(functions => { + return { + interpret: (ast, context) => { + return new Promise((resolve, reject) => { + const id = uuid(); + const listener = resp => { + if (resp.type === 'msgError') { + const { value } = resp; + // cast error strings back into error instances + const err = value instanceof Error ? value : new Error(value); + if (value.stack) err.stack = value.stack; + // Reject's with a legit error. Check! Environments should always reject with an error when something bad happens + reject(err); + } else { + resolve(deserialize(resp.value)); + } + }; + + // {type: msgSuccess or msgError, value: foo}. Doesn't matter if it's success or error, we do the same thing for now + socket.once(`resp:${id}`, listener); + + socket.emit('run', { ast, context: serialize(context), id }); + }); + }, + getFunctions: () => Object.keys(functions), + }; + }); +}; diff --git a/x-pack/plugins/canvas/server/lib/route_expression/index.js b/x-pack/plugins/canvas/server/lib/route_expression/index.js new file mode 100644 index 0000000000000..3533b55687246 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/route_expression/index.js @@ -0,0 +1,32 @@ +/* + * 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 { createError } from '../../../common/interpreter/create_error'; + +export const routeExpressionProvider = environments => { + async function routeExpression(ast, context = null) { + // List of environments in order of preference + + return Promise.all(environments).then(environments => { + const environmentFunctions = environments.map(env => env.getFunctions()); + + // Grab name of the first function in the chain + const fnName = ast.chain[0].function.toLowerCase(); + + // Check each environment for that function + for (let i = 0; i < environmentFunctions.length; i++) { + if (environmentFunctions[i].includes(fnName)) { + // If we find it, run in that environment, and only that environment + return environments[i].interpret(ast, context).catch(e => createError(e)); + } + } + + // If the function isn't found in any environment, give up + throw new Error(`Function not found: [${fnName}]`); + }); + } + + return routeExpression; +}; diff --git a/x-pack/plugins/canvas/server/lib/route_expression/server.js b/x-pack/plugins/canvas/server/lib/route_expression/server.js new file mode 100644 index 0000000000000..b24e4cb7e5e41 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/route_expression/server.js @@ -0,0 +1,27 @@ +/* + * 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 { getServerRegistries } from '../server_registries'; +import { interpretProvider } from '../../../common/interpreter/interpret'; +import { createHandlers } from '../create_handlers'; + +export const server = async ({ onFunctionNotFound, server, request }) => { + const { serverFunctions, types } = await getServerRegistries(['serverFunctions', 'types']); + + return { + interpret: (ast, context) => { + const interpret = interpretProvider({ + types: types.toJS(), + functions: serverFunctions.toJS(), + handlers: createHandlers(request, server), + onFunctionNotFound, + }); + + return interpret(ast, context); + }, + getFunctions: () => Object.keys(serverFunctions.toJS()), + }; +}; diff --git a/x-pack/plugins/canvas/server/lib/route_expression/thread/babeled.js b/x-pack/plugins/canvas/server/lib/route_expression/thread/babeled.js new file mode 100644 index 0000000000000..b7c1e83beb7c7 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/route_expression/thread/babeled.js @@ -0,0 +1,19 @@ +/* + * 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. + */ + +require('babel-register')({ + ignore: [ + // stolen from kibana/src/setup_node_env/babel_register/register.js + // ignore paths matching `/node_modules/{a}/{b}`, unless `a` + // is `x-pack` and `b` is not `node_modules` + /\/node_modules\/(?!x-pack\/(?!node_modules)([^\/]+))([^\/]+\/[^\/]+)/, + ], + babelrc: false, + presets: [require.resolve('@kbn/babel-preset/node_preset')], +}); + +require('./polyfill'); +require('./worker'); diff --git a/x-pack/plugins/canvas/server/lib/route_expression/thread/index.js b/x-pack/plugins/canvas/server/lib/route_expression/thread/index.js new file mode 100644 index 0000000000000..d3748db02f65c --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/route_expression/thread/index.js @@ -0,0 +1,98 @@ +/* + * 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 { fork } from 'child_process'; +import { resolve } from 'path'; +import uuid from 'uuid/v4'; + +// If the worker doesn't response in 10s, kill it. +const WORKER_TIMEOUT = 20000; +const workerPath = resolve(__dirname, 'babeled.js'); +const heap = {}; +let worker = null; + +export function getWorker() { + if (worker) return worker; + worker = fork(workerPath, {}); + + // 'exit' happens whether we kill the worker or it just dies. + // No need to look for 'error', our worker is intended to be long lived so it isn't running, it's an issue + worker.on('exit', () => { + // Heads up: there is no worker.off + worker = null; + // Restart immediately on exit since node takes a couple seconds to spin up + worker = getWorker(); + }); + + worker.on('message', msg => { + const { type, value, id } = msg; + if (type === 'run') { + const { threadId } = msg; + const { ast, context } = value; + heap[threadId] + .onFunctionNotFound(ast, context) + .then(value => { + worker.send({ type: 'msgSuccess', id, value: value }); + }) + .catch(e => heap[threadId].reject(e)); + } + + if (type === 'msgSuccess' && heap[id]) heap[id].resolve(value); + + // TODO: I don't think it is even possible to hit this + if (type === 'msgError' && heap[id]) heap[id].reject(new Error(value)); + }); + + return worker; +} + +// All serialize/deserialize must occur in here. We should not return serialized stuff to the expressionRouter +export const thread = ({ onFunctionNotFound, serialize, deserialize }) => { + const getWorkerFunctions = new Promise(resolve => { + const worker = getWorker(); + worker.send({ type: 'getFunctions' }); + worker.on('message', msg => { + if (msg.type === 'functionList') resolve(msg.value); + }); + }); + + return getWorkerFunctions.then(functions => { + return { + interpret: (ast, context) => { + const worker = getWorker(); + const id = uuid(); + worker.send({ type: 'run', id, value: { ast, context: serialize(context) } }); + + return new Promise((resolve, reject) => { + heap[id] = { + time: new Date().getTime(), + resolve: value => { + delete heap[id]; + resolve(deserialize(value)); + }, + reject: e => { + delete heap[id]; + reject(e); + }, + onFunctionNotFound: (ast, context) => + onFunctionNotFound(ast, deserialize(context)).then(serialize), + }; + + // + setTimeout(() => { + if (!heap[id]) return; // Looks like this has already been cleared from the heap. + if (worker) worker.kill(); + + // The heap will be cleared because the reject on heap will delete its own id + heap[id].reject(new Error('Request timed out')); + }, WORKER_TIMEOUT); + }); + }, + + getFunctions: () => functions, + }; + }); +}; diff --git a/x-pack/plugins/canvas/server/lib/route_expression/thread/polyfill.js b/x-pack/plugins/canvas/server/lib/route_expression/thread/polyfill.js new file mode 100644 index 0000000000000..be4983e9a37e8 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/route_expression/thread/polyfill.js @@ -0,0 +1,18 @@ +/* + * 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. + */ + +// taken from kibana/src/setup_node_env/babel_register/polyfill.js +// ... +// `babel-preset-env` looks for and rewrites the following import +// statement into a list of import statements based on the polyfills +// necessary for our target environment (the current version of node) +// but since it does that during compilation, `import 'babel-polyfill'` +// must be in a file that is loaded with `require()` AFTER `babel-register` +// is configured. +// +// This is why we have this single statement in it's own file and require +// it from ./babeled.js +import 'babel-polyfill'; diff --git a/x-pack/plugins/canvas/server/lib/route_expression/thread/worker.js b/x-pack/plugins/canvas/server/lib/route_expression/thread/worker.js new file mode 100644 index 0000000000000..d81df410f7af7 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/route_expression/thread/worker.js @@ -0,0 +1,68 @@ +/* + * 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 uuid from 'uuid/v4'; +import { populateServerRegistries } from '../../server_registries'; +import { interpretProvider } from '../../../../common/interpreter/interpret'; +import { serializeProvider } from '../../../../common/lib/serialize'; + +// We actually DO need populateServerRegistries here since this is a different node process +const pluginsReady = populateServerRegistries(['commonFunctions', 'types']); +const heap = {}; + +process.on('message', msg => { + const { type, id, value } = msg; + const threadId = id; + + pluginsReady.then(({ commonFunctions, types }) => { + types = types.toJS(); + const { serialize, deserialize } = serializeProvider(types); + const interpret = interpretProvider({ + types, + functions: commonFunctions.toJS(), + handlers: { environment: 'serverThreaded' }, + onFunctionNotFound: (ast, context) => { + const id = uuid(); + // This needs to send a message to the main thread, and receive a response. Uhg. + process.send({ + type: 'run', + threadId, + id, + value: { + ast, + context: serialize(context), + }, + }); + + // Note that there is no facility to reject here. That's because this would only occur as the result of something that happens in the main thread, and we reject there + return new Promise(resolve => { + heap[id] = { resolve }; + }); + }, + }); + + if (type === 'getFunctions') + process.send({ type: 'functionList', value: Object.keys(commonFunctions.toJS()) }); + + if (type === 'msgSuccess') { + heap[id].resolve(deserialize(value)); + delete heap[id]; + } + + if (type === 'run') { + const { ast, context } = msg.value; + + interpret(ast, deserialize(context)) + .then(value => { + process.send({ type: 'msgSuccess', value: serialize(value), id }); + }) + // TODO: I don't think it is even possible to hit this + .catch(value => { + process.send({ type: 'msgError', value, id }); + }); + } + }); +}); diff --git a/x-pack/plugins/canvas/server/lib/server_registries.js b/x-pack/plugins/canvas/server/lib/server_registries.js new file mode 100644 index 0000000000000..cff63a1138ea3 --- /dev/null +++ b/x-pack/plugins/canvas/server/lib/server_registries.js @@ -0,0 +1,55 @@ +/* + * 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 { typesRegistry } from '../../common/lib/types_registry'; +import { functionsRegistry as serverFunctions } from '../../common/lib/functions_registry'; +import { getPluginPaths } from './get_plugin_paths'; + +const registries = { + serverFunctions: serverFunctions, + commonFunctions: serverFunctions, + types: typesRegistry, +}; + +let resolve = null; +let called = false; + +const populatePromise = new Promise(_resolve => { + resolve = _resolve; +}); + +export const getServerRegistries = () => { + return populatePromise; +}; + +export const populateServerRegistries = types => { + if (called) throw new Error('function should only be called once per process'); + called = true; + if (!types || !types.length) throw new Error('types is required'); + + const remainingTypes = types; + const populatedTypes = {}; + + const loadType = () => { + const type = remainingTypes.pop(); + getPluginPaths(type).then(paths => { + global.canvas = global.canvas || {}; + global.canvas.register = d => registries[type].register(d); + + paths.forEach(path => { + require(path); + }); + + global.canvas = undefined; + populatedTypes[type] = registries[type]; + if (remainingTypes.length) loadType(); + else resolve(populatedTypes); + }); + }; + + if (remainingTypes.length) loadType(); + return populatePromise; +}; diff --git a/x-pack/plugins/canvas/server/routes/es_fields/index.js b/x-pack/plugins/canvas/server/routes/es_fields/index.js index 9ceca324cc017..8c6b53fb2610b 100644 --- a/x-pack/plugins/canvas/server/routes/es_fields/index.js +++ b/x-pack/plugins/canvas/server/routes/es_fields/index.js @@ -14,11 +14,11 @@ export function esFields(server) { server.route({ method: 'GET', path: '/api/canvas/es_fields', - handler: function(request, reply) { + handler: function(request, h) { const { index, fields } = request.query; - if (!index) return reply({ error: '"index" query is required' }).code(400); + if (!index) return h.response({ error: '"index" query is required' }).code(400); - reply(getESFieldTypes(index, fields, partial(callWithRequest, request))); + return getESFieldTypes(index, fields, partial(callWithRequest, request)); }, }); } diff --git a/x-pack/plugins/canvas/server/routes/es_indices/index.js b/x-pack/plugins/canvas/server/routes/es_indices/index.js index 67a92fa72aecd..71ce1122b0c83 100644 --- a/x-pack/plugins/canvas/server/routes/es_indices/index.js +++ b/x-pack/plugins/canvas/server/routes/es_indices/index.js @@ -16,8 +16,8 @@ export function esIndices(server) { server.route({ method: 'GET', path: '/api/canvas/es_indices', - handler: function(request, reply) { - reply(getESIndices(kbnIndex, partial(callWithRequest, request))); + handler: function(request) { + return getESIndices(kbnIndex, partial(callWithRequest, request)); }, }); } diff --git a/x-pack/plugins/canvas/server/routes/get_auth/get_auth_header.js b/x-pack/plugins/canvas/server/routes/get_auth/get_auth_header.js deleted file mode 100644 index 466c601d02204..0000000000000 --- a/x-pack/plugins/canvas/server/routes/get_auth/get_auth_header.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * 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 { insecureAuthRoute } from './insecure_auth_route'; - -// TODO: OMG. No. Need a better way of setting to this than our wacky route thing. -export function getAuthHeader(request, server) { - const basePath = server.config().get('server.basePath') || ''; - const fullPath = `${basePath}${insecureAuthRoute}`; - - return server - .inject({ - method: 'GET', - url: fullPath, - headers: request.headers, - }) - .then(res => res.result); -} diff --git a/x-pack/plugins/canvas/server/routes/get_auth/index.js b/x-pack/plugins/canvas/server/routes/get_auth/index.js deleted file mode 100644 index bdc8e596f6f8b..0000000000000 --- a/x-pack/plugins/canvas/server/routes/get_auth/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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 { insecureAuthRoute } from './insecure_auth_route'; - -// TODO: Fix this first. This route returns decrypts the cookie and returns the basic auth header. It is used because -// the pre-route hapi hook doesn't work on the socket and there are no exposed methods for doing the conversion from cookie -// to auth header. We will need to add that to x-pack security -// In theory this is pretty difficult to exploit, but not impossible. -// -export function getAuth(server) { - server.route({ - method: 'GET', - path: insecureAuthRoute, - handler: function(request, reply) { - reply(request.headers.authorization); - }, - }); -} diff --git a/x-pack/plugins/canvas/server/routes/get_auth/insecure_auth_route.js b/x-pack/plugins/canvas/server/routes/get_auth/insecure_auth_route.js deleted file mode 100644 index 62d78e4eab4a7..0000000000000 --- a/x-pack/plugins/canvas/server/routes/get_auth/insecure_auth_route.js +++ /dev/null @@ -1,9 +0,0 @@ -/* - * 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 uuid from 'uuid/v4'; - -export const insecureAuthRoute = `/api/canvas/ar-${uuid()}`; diff --git a/x-pack/plugins/canvas/server/routes/index.js b/x-pack/plugins/canvas/server/routes/index.js index 6d8cc6aefd839..7ca2610d67c5f 100644 --- a/x-pack/plugins/canvas/server/routes/index.js +++ b/x-pack/plugins/canvas/server/routes/index.js @@ -9,7 +9,6 @@ import { socketApi } from './socket'; import { translate } from './translate'; import { esFields } from './es_fields'; import { esIndices } from './es_indices'; -import { getAuth } from './get_auth'; import { plugins } from './plugins'; export function routes(server) { @@ -18,6 +17,5 @@ export function routes(server) { translate(server); esFields(server); esIndices(server); - getAuth(server); plugins(server); } diff --git a/x-pack/plugins/canvas/server/routes/plugins.js b/x-pack/plugins/canvas/server/routes/plugins.js index 66e73c71876a3..be94ef52ac9e4 100644 --- a/x-pack/plugins/canvas/server/routes/plugins.js +++ b/x-pack/plugins/canvas/server/routes/plugins.js @@ -11,12 +11,12 @@ export function plugins(server) { server.route({ method: 'GET', path: '/api/canvas/plugins', - handler: function(request, reply) { + handler: function(request, h) { const { type } = request.query; - if (!pluginPaths[type]) return reply({ error: 'Invalid type' }).code(400); + if (!pluginPaths[type]) return h.response({ error: 'Invalid type' }).code(400); - reply(getPluginStream(type)); + return getPluginStream(type); }, config: { auth: false, diff --git a/x-pack/plugins/canvas/server/routes/socket.js b/x-pack/plugins/canvas/server/routes/socket.js index bc94da8232835..8e06c25769d4c 100644 --- a/x-pack/plugins/canvas/server/routes/socket.js +++ b/x-pack/plugins/canvas/server/routes/socket.js @@ -5,63 +5,76 @@ */ import socket from 'socket.io'; -import { createHandlers } from '../lib/create_handlers'; -import { socketInterpreterProvider } from '../../common/interpreter/socket_interpret'; import { serializeProvider } from '../../common/lib/serialize'; -import { functionsRegistry } from '../../common/lib/functions_registry'; import { typesRegistry } from '../../common/lib/types_registry'; -import { loadServerPlugins } from '../lib/load_server_plugins'; -import { getAuthHeader } from './get_auth/get_auth_header'; +import { getServerRegistries } from '../lib/server_registries'; +import { routeExpressionProvider } from '../lib/route_expression'; +import { browser } from '../lib/route_expression/browser'; +import { thread } from '../lib/route_expression/thread'; +import { server as serverEnv } from '../lib/route_expression/server'; +import { getRequest } from '../lib/get_request'; +import { API_ROUTE } from '../../common/lib/constants'; + +async function getModifiedRequest(server, socket) { + try { + return await getRequest(server, socket.handshake); + } catch (err) { + // on errors, notify the client and close the connection + socket.emit('connectionFailed', { reason: err.message || 'Socket connection failed' }); + socket.disconnect(true); + return false; + } +} export function socketApi(server) { + // add a POST ping route for `getRequest` to use + // TODO: remove this once we have upstream socket support + server.route({ + method: 'POST', + path: `${API_ROUTE}/ping`, + handler: () => 'pong', + }); + const io = socket(server.listener, { path: '/socket.io' }); - io.on('connection', socket => { - console.log('User connected, attaching handlers'); + io.on('connection', async socket => { + // 'request' is the modified hapi request object + const request = await getModifiedRequest(server, socket); + if (!request) return; // do nothing without the request object - // This is the HAPI request object - const request = socket.handshake; + const types = typesRegistry.toJS(); + const { serialize, deserialize } = serializeProvider(types); - const authHeader = getAuthHeader(request, server); + // I'd love to find a way to generalize all of these, but they each need a different set of things + // Note that ORDER MATTERS here. The environments will be tried in this order. Do not reorder this array. + const routeExpression = routeExpressionProvider([ + thread({ onFunctionNotFound, serialize, deserialize }), + serverEnv({ onFunctionNotFound, request, server }), + browser({ onFunctionNotFound, socket, serialize, deserialize }), + ]); - // Create the function list - socket.emit('getFunctionList'); - const getClientFunctions = new Promise(resolve => socket.once('functionList', resolve)); + function onFunctionNotFound(ast, context) { + return routeExpression(ast, context); + } socket.on('getFunctionList', () => { - loadServerPlugins().then(() => socket.emit('functionList', functionsRegistry.toJS())); + getServerRegistries().then(({ serverFunctions }) => + socket.emit('functionList', serverFunctions.toJS()) + ); }); - const handler = ({ ast, context, id }) => { - Promise.all([getClientFunctions, authHeader]).then(([clientFunctions, authHeader]) => { - if (server.plugins.security) request.headers.authorization = authHeader; - - const types = typesRegistry.toJS(); - const interpret = socketInterpreterProvider({ - types, - functions: functionsRegistry.toJS(), - handlers: createHandlers(request, server), - referableFunctions: clientFunctions, - socket: socket, - }); - - const { serialize, deserialize } = serializeProvider(types); - return interpret(ast, deserialize(context)) - .then(value => { - socket.emit(`resp:${id}`, { value: serialize(value) }); - }) - .catch(e => { - socket.emit(`resp:${id}`, { - error: e.message, - stack: e.stack, - }); - }); - }); + const handler = async ({ ast, context, id }) => { + try { + const value = await routeExpression(ast, deserialize(context)); + socket.emit(`resp:${id}`, { type: 'msgSuccess', value: serialize(value) }); + } catch (err) { + // TODO: I don't think it is possible to hit this right now? Maybe ever? + socket.emit(`resp:${id}`, { type: 'msgError', value: err }); + } }; socket.on('run', handler); socket.on('disconnect', () => { - console.log('User disconnected, removing handlers.'); socket.removeListener('run', handler); }); }); diff --git a/x-pack/plugins/canvas/server/routes/translate.js b/x-pack/plugins/canvas/server/routes/translate.js index f2b412c37e9b9..6125898a7dab9 100644 --- a/x-pack/plugins/canvas/server/routes/translate.js +++ b/x-pack/plugins/canvas/server/routes/translate.js @@ -13,22 +13,21 @@ export function translate(server) { server.route({ method: 'GET', path: '/api/canvas/ast', - handler: function(request, reply) { + handler: function(request, h) { if (!request.query.expression) - return reply({ error: '"expression" query is required' }).code(400); - reply(fromExpression(request.query.expression)); + return h.response({ error: '"expression" query is required' }).code(400); + return fromExpression(request.query.expression); }, }); server.route({ method: 'POST', path: '/api/canvas/expression', - handler: function(request, reply) { + handler: function(request, h) { try { - const exp = toExpression(request.payload); - reply(exp); + return toExpression(request.payload); } catch (e) { - reply({ error: e.message }).code(400); + return h.response({ error: e.message }).code(400); } }, }); diff --git a/x-pack/plugins/canvas/server/routes/workpad.js b/x-pack/plugins/canvas/server/routes/workpad.js index b1d2cfa63477b..e873f99efa74f 100644 --- a/x-pack/plugins/canvas/server/routes/workpad.js +++ b/x-pack/plugins/canvas/server/routes/workpad.js @@ -13,21 +13,19 @@ export function workpad(server) { const { errors: esErrors } = server.plugins.elasticsearch.getCluster('data'); const routePrefix = API_ROUTE_WORKPAD; - function formatResponse(reply, returnResponse = false) { - return resp => { - if (resp.isBoom) return reply(resp); // can't wrap it if it's already a boom error + function formatResponse(resp) { + if (resp.isBoom) return resp; // can't wrap it if it's already a boom error - if (resp instanceof esErrors['400']) return reply(boom.badRequest(resp)); + if (resp instanceof esErrors['400']) return boom.badRequest(resp); - if (resp instanceof esErrors['401']) return reply(boom.unauthorized()); + if (resp instanceof esErrors['401']) return boom.unauthorized(); - if (resp instanceof esErrors['403']) - return reply(boom.forbidden("Sorry, you don't have access to that")); + if (resp instanceof esErrors['403']) + return boom.forbidden("Sorry, you don't have access to that"); - if (resp instanceof esErrors['404']) return reply(boom.wrap(resp, 404)); + if (resp instanceof esErrors['404']) return boom.boomify(resp, { statusCode: 404 }); - return returnResponse ? resp : reply(resp); - }; + return resp; } function createWorkpad(req, id) { @@ -94,15 +92,15 @@ export function workpad(server) { server.route({ method: 'GET', path: `${routePrefix}/{id}`, - handler: function(req, reply) { + handler: function(req) { const savedObjectsClient = req.getSavedObjectsClient(); const { id } = req.params; return savedObjectsClient .get(CANVAS_TYPE, id) .then(obj => obj.attributes) - .then(formatResponse(reply)) - .catch(formatResponse(reply)); + .then(formatResponse) + .catch(formatResponse); }, }); @@ -111,10 +109,10 @@ export function workpad(server) { method: 'POST', path: routePrefix, config: { payload: { allow: 'application/json', maxBytes: 26214400 } }, // 25MB payload limit - handler: function(request, reply) { - createWorkpad(request) - .then(() => reply({ ok: true })) - .catch(formatResponse(reply)); + handler: function(request) { + return createWorkpad(request) + .then(() => ({ ok: true })) + .catch(formatResponse); }, }); @@ -123,10 +121,10 @@ export function workpad(server) { method: 'PUT', path: `${routePrefix}/{id}`, config: { payload: { allow: 'application/json', maxBytes: 26214400 } }, // 25MB payload limit - handler: function(request, reply) { - updateWorkpad(request) - .then(() => reply({ ok: true })) - .catch(formatResponse(reply)); + handler: function(request) { + return updateWorkpad(request) + .then(() => ({ ok: true })) + .catch(formatResponse); }, }); @@ -134,10 +132,10 @@ export function workpad(server) { server.route({ method: 'DELETE', path: `${routePrefix}/{id}`, - handler: function(request, reply) { - deleteWorkpad(request) - .then(() => reply({ ok: true })) - .catch(formatResponse(reply)); + handler: function(request) { + return deleteWorkpad(request) + .then(() => ({ ok: true })) + .catch(formatResponse); }, }); @@ -145,20 +143,20 @@ export function workpad(server) { server.route({ method: 'GET', path: `${routePrefix}/find`, - handler: function(request, reply) { - findWorkpad(request) - .then(formatResponse(reply, true)) + handler: function(request) { + return findWorkpad(request) + .then(formatResponse) .then(resp => { - reply({ + return { total: resp.total, workpads: resp.saved_objects.map(hit => hit.attributes), - }); + }; }) .catch(() => { - reply({ + return { total: 0, workpads: [], - }); + }; }); }, }); diff --git a/x-pack/plugins/canvas/server/sample_data/ecommerce_saved_objects.json b/x-pack/plugins/canvas/server/sample_data/ecommerce_saved_objects.json new file mode 100644 index 0000000000000..d9e7f51215547 --- /dev/null +++ b/x-pack/plugins/canvas/server/sample_data/ecommerce_saved_objects.json @@ -0,0 +1,1218 @@ +[ + { + "id": "workpad-e08b9bdb-ec14-4339-94c4-063bddfd610e", + "type": "canvas-workpad", + "updated_at": "2018-10-22T15:19:02.081Z", + "version": 1, + "attributes": { + "name": "[eCommerce] Revenue Tracking", + "id": "workpad-e08b9bdb-ec14-4339-94c4-063bddfd610e", + "width": 1080, + "height": 720, + "page": 0, + "pages": [ + { + "id": "page-21cffafb-9eda-47f9-b35a-67a92e605abe", + "style": { + "background": "#fff" + }, + "elements": [ + { + "id": "element-3a220f56-0729-4464-b4fd-7975a8396d24", + "position": { + "left": 641, + "top": 97, + "width": 175, + "height": 510, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" sort=\"order_date, desc\" fields=\"customer_gender\" \n| mapColumn \"maleCount\" exp={getCell \"customer_gender\" | if {compare to=\"MALE\"} then=1 else=0} | math \"sum(maleCount) / count(maleCount)\" \n| revealImage origin=\"bottom\" image={asset \"asset-aaa14d64-2c1c-47f2-95c0-21306ee18cba\"} emptyImage={asset \"asset-960c8c6e-da72-412d-9d04-34a98cdb5760\"}" + }, + { + "id": "element-4a3fef74-5d8c-4bbe-8f3f-fe55afdd4b60", + "position": { + "left": 627.5, + "top": 82.5, + "width": 197, + "height": 521, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-8ae4b612-43a3-4846-8f0d-abb9785e95c3\"}" + }, + { + "id": "element-fb2761a1-df28-411a-8614-dbee0f437cfe", + "position": { + "left": 446, + "top": 93, + "width": 238, + "height": 520, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" sort=\"order_date, desc\" fields=\"customer_gender\"\n| mapColumn \"maleCount\" exp={getCell \"customer_gender\" | if {compare to=\"FEMALE\"} then=1 else=0}\n| math \"sum(maleCount) / count(maleCount)\"\n| revealImage origin=\"bottom\" image={asset \"asset-2f64bd10-953d-4163-90e9-a55e9ca4c52a\"} emptyImage={asset \"asset-3a26727a-b756-44be-a82c-273dd85bda09\"}", + "filter": null + }, + { + "id": "element-46b2f8df-f7db-4502-9cd0-b33c1c70b8b1", + "position": { + "left": 275, + "top": 306, + "width": 105, + "height": 102, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Clothing\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"65\" labels=false palette={palette \"#ede9e7\" \"#eb6c66\" gradient=false}" + }, + { + "id": "element-eaa7f9a9-54ca-4c7c-9d27-62312d92a264", + "position": { + "left": 275, + "top": 157, + "width": 105, + "height": 102, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Accessories\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"65\" labels=false palette={palette \"#ede9e7\" \"#eb6c66\" gradient=false}" + }, + { + "id": "element-58dfc1e8-a470-447f-8107-62bebe955475", + "position": { + "left": 275, + "top": 450, + "width": 106, + "height": 102, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Shoes\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"65\" labels=false palette={palette \"#ede9e7\" \"#eb6c66\" gradient=false}" + }, + { + "id": "element-c0a5f8d9-f52f-4e0f-a8a4-08c1b7984bb2", + "position": { + "left": 893.5, + "top": 157, + "width": 105, + "height": 102, + "angle": 0 + }, + "expression": "essql \"SELECT category, COUNT(category) AS count FROM \\\"kibana_sample_data_ecommerce\\\" GROUP BY category\" \n| mapColumn \"category\" fn={if {getCell \"category\" | eq \"Men's Accessories\"} then={getCell \"category\"} else=\"Other\"} \n| ply by=\"category\" fn={math \"sum(count)\" | as \"count\"} | staticColumn \"total\" value={math \"sum(count)\"} \n| mapColumn \"percentage\" fn={math \"round(count/total * 100, 2)\"} \n| pointseries color=\"category\" size=\"percentage\" \n| pie hole=\"65\" labels=false palette={palette \"#f8bd4a\" \"#ede9e7\" gradient=false}" + }, + { + "id": "element-060eb797-c583-4c8f-b0e1-3ab9b58c4cf5", + "position": { + "left": 894, + "top": 305, + "width": 105, + "height": 102, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Clothing\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"65\" labels=false palette={palette \"#f8bd4a\" \"#ede9e7\" gradient=false}" + }, + { + "id": "element-8f811cd0-e4b2-48b3-a96f-b8384179bbfb", + "position": { + "left": 894, + "top": 451, + "width": 105, + "height": 102, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Shoes\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"65\" labels=false palette={palette \"#f8bd4a\" \"#ede9e7\" gradient=false}" + }, + { + "id": "element-c0595f68-81c5-43e7-9ecf-808e8cfe48c0", + "position": { + "left": 298, + "top": 517, + "width": 93, + "height": 44, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-66a89124-fc39-4109-8acd-e1ac7f382e04\"} | render" + }, + { + "id": "element-0a14f255-6445-4860-b41d-d1c0b7ca9c36", + "position": { + "left": 890, + "top": 516, + "width": 102, + "height": 54, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-4acbecf1-e514-4e3b-bce4-61920335941e\"} | render" + }, + { + "id": "element-6aeefa4f-6b4f-4a6c-99ff-2cca052f5be6", + "position": { + "top": 291, + "left": 960, + "height": 121, + "width": 95, + "angle": 12.8 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-ae290f99-dd16-41a4-8191-7dd7be154be6\"} | render" + }, + { + "id": "element-68d9cb72-7a0e-4cac-996a-0ec8356f0df8", + "position": { + "left": 245, + "top": 291, + "width": 62, + "height": 139, + "angle": -1 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-565cd264-9196-4ebd-9d6e-f413f1db734d\"} | render" + }, + { + "id": "element-9bac6c19-517c-46e6-8d71-9273910366d1", + "position": { + "left": 322, + "top": 230, + "width": 60, + "height": 27, + "angle": 10 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-6222f3e0-1dab-4aa9-a06c-63d7732cc5f4\"} | render" + }, + { + "id": "element-a58f99d3-8ea4-474e-9aba-e7ed3e91a178", + "position": { + "left": 892, + "top": 235, + "width": 64, + "height": 24, + "angle": 7 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-f8ac482e-0c7a-4cac-8bcf-6f4f55300081\"} | render" + }, + { + "id": "element-84dec4fd-ee5d-49c0-9600-41b951033e09", + "position": { + "left": 394, + "top": 393.0200895724113, + "width": 94, + "height": 56, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" fields=\"customer_gender\" \n| ply by=\"customer_gender\" expression={rowCount | as \"percentage\"} \n| filterrows {getCell \"customer_gender\" | any {eq \"FEMALE\"}} \n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=48 align=\"center\" color=\"#eb6c66\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-9e0b6230-2bc9-4995-8207-043e3063faeb", + "position": { + "left": 794, + "top": 369, + "width": 94, + "height": 56, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" fields=\"customer_gender\" \n| ply by=\"customer_gender\" expression={rowCount | as \"percentage\"} \n| filterrows {getCell \"customer_gender\" | any {eq \"MALE\"}} \n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=48 align=\"center\" color=\"#f8bd4a\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-2185edff-ac50-4162-b583-3bfd6469e925", + "position": { + "left": -3, + "top": -1, + "width": 214, + "height": 721, + "angle": 0 + }, + "expression": "filters | demodata | markdown \"\" | render containerStyle={containerStyle backgroundColor=\"#ede9e7\"}" + }, + { + "id": "element-71b63f54-0961-4ed2-a85d-45584b48a631", + "position": { + "left": 8, + "top": 35, + "width": 122, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"TOTAL SALES\" font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=18 align=\"left\" color=\"#777\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-61fdb4ce-5dea-4699-b958-6c40e2a2b61a", + "position": { + "left": 398, + "top": 381.5200895724113, + "width": 78, + "height": 23, + "angle": 0 + }, + "expression": "markdown \"WOMEN\" font={font family=\"Avenir\" size=18 align=\"left\" color=\"#999\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-157ab7a7-e3ef-477f-8c97-84c67f7ab28e", + "position": { + "left": 840, + "top": 352, + "width": 46, + "height": 23, + "angle": 0 + }, + "expression": "markdown \"MEN\" font={font family=\"Avenir\" size=18 align=\"left\" color=\"#999\" weight=\"normal\" underline=false italic=false} | render" + }, + { + "id": "element-bfa6f8bc-c083-4817-a682-91eb50fc214d", + "position": { + "left": 299, + "top": 344, + "width": 60, + "height": 34, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Clothing\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Women's Clothing\"}}\n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=24 align=\"center\" color=\"#000\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-73e918d2-14d0-4ed6-9cfe-204ad4eaff24", + "position": { + "left": 300, + "top": 488, + "width": 59, + "height": 30, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Shoes\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Women's Shoes\"}}\n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=24 align=\"center\" color=\"#000\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-d9dd8a8e-3af7-4e59-9115-3fd13c312d39", + "position": { + "left": 297, + "top": 194, + "width": 62, + "height": 37, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Accessories\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Women's Accessories\"}}\n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=24 align=\"center\" color=\"#000\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-af25bb55-818c-4c69-b2ae-45245af131e6", + "position": { + "left": 923, + "top": 194, + "width": 51, + "height": 34, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Accessories\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Men's Accessories\"}}\n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=24 align=\"center\" color=\"#000\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-9e02f39b-14b2-42a4-ae32-a4c292ece6ba", + "position": { + "left": 924, + "top": 343, + "width": 50, + "height": 33, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Clothing\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Men's Clothing\"}}\n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=24 align=\"center\" color=\"#000\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-b5f950b0-bb0f-462d-a92f-35bc3f1f4c39", + "position": { + "left": 921, + "top": 489, + "width": 50, + "height": 33, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Shoes\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Men's Shoes\"}}\n| markdown {getCell \"percentage\"} \"%\" font={font family=\"Avenir\" size=24 align=\"center\" color=\"#000\" weight=\"normal\" underline=false italic=false}" + }, + { + "id": "element-a4d410df-83b8-40dc-987f-e2c1380874a6", + "position": { + "left": -135.50000000000006, + "top": 330.5, + "width": 500, + "height": 217, + "angle": 90 + }, + "expression": "timelion \n \".es(index=kibana_sample_data_ecommerce, metric=sum:taxless_total_price, timefield=order_date)\" interval=\"1d\" from={essql \"SELECT order_date as min FROM kibana_sample_data_ecommerce order by order_date limit 1\" | getCell min} to={essql \"SELECT order_date as max FROM kibana_sample_data_ecommerce order by order_date DESC limit 1\" | getCell max}\n| pointseries x=\"@timestamp\" y=\"value\"\n| plot yaxis=false defaultStyle={seriesStyle points=\"0\" bars=\"50000000\" lines=\"0\" color=\"#62bb96\"} font={font size=12 family=\"Avenir\" color=\"#999\" align=\"left\"}", + "filter": null + }, + { + "id": "element-ccbb192a-725b-4479-a34b-9d70b0fa1a8a", + "position": { + "left": 441, + "top": 93, + "width": 242, + "height": 520, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-93e415d8-82c6-47d4-8c55-e38df329b88b\"}" + }, + { + "id": "element-18fc190c-e46a-408b-a220-8e1745eb77e6", + "position": { + "left": 394, + "top": 451, + "width": 115, + "height": 2, + "angle": 0 + }, + "expression": "markdown \"\" | render containerStyle={containerStyle backgroundColor=\"#000000\"}", + "filter": null + }, + { + "id": "element-1eb4fcd1-f8dd-4bd9-98a6-c5cbd4bcc8dc", + "position": { + "left": 767, + "top": 431, + "width": 119, + "height": 2, + "angle": 0 + }, + "expression": "markdown \"\" | render containerStyle={containerStyle backgroundColor=\"#000000\"}", + "filter": null + }, + { + "id": "element-2f976ef1-abc7-4bd2-82cb-cc114431eaea", + "position": { + "left": 744.5, + "top": 410, + "width": 35, + "height": 50, + "angle": 0 + }, + "expression": "markdown \"## ○\" font={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=14 align=\"center\" color=\"#000000\" weight=\"normal\" underline=false italic=false} | render containerStyle={containerStyle}" + }, + { + "id": "element-532638f8-758e-4cf4-86f0-c4d896e4477d", + "position": { + "left": 497, + "top": 429.4483902138134, + "width": 35, + "height": 50, + "angle": 0 + }, + "expression": "markdown \"## ○\" font={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=14 align=\"center\" color=\"#000000\" weight=\"normal\" underline=false italic=false} | render containerStyle={containerStyle}", + "filter": null + }, + { + "id": "element-62bf98c1-bd0c-40dd-ae44-abbcc50c0ae1", + "position": { + "left": -47, + "top": 410, + "width": 477, + "height": 63, + "angle": 90 + }, + "expression": "timelion \n \".es(index=kibana_sample_data_ecommerce, metric=sum:taxless_total_price, timefield=order_date)\" interval=\"1w\"\n| mapColumn \"value\" fn={math \"round(value,0)\"}\n| staticColumn \"mean\" value={math \"round(mean(value),0)\"}\n| mapColumn \"mean\" \"as\" \"rnd\" fn={math \"round(random(0.9,1.1),2)\"}\n| mapColumn \"value\" \"as\" \"final\" fn={math \"round(multiply(rnd,mean),2)\"}\n| pointseries x=\"@timestamp\" y=\"final\"\n| plot xaxis=false yaxis=false defaultStyle={seriesStyle points=\"0\" bars=\"0\" lines=\"3\" color=\"#eb6c66\"}\n| render containerStyle={containerStyle opacity=\"0.5\"}", + "filter": null + }, + { + "id": "element-e1b5a809-aed3-42e0-8806-46b0e462a9d4", + "position": { + "left": 488, + "top": 661, + "width": 279, + "height": 38, + "angle": 0 + }, + "expression": "markdown \"REVENUE BY CATEGORY\" font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=24 align=\"left\" color=\"#999\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-50ea8d53-383d-4582-9497-0692a81d9df8", + "position": { + "left": -7, + "top": 673, + "width": 219, + "height": 22, + "angle": 0 + }, + "expression": "markdown \"REVENUE BY DAY\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=14 align=\"center\" color=\"#62bb96\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-de932ce1-1c99-448b-bfb4-a98f91add877", + "position": { + "left": -7, + "top": 689, + "width": 219, + "height": 22, + "angle": 0 + }, + "expression": "markdown \"SALES PREDICTION\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=10 align=\"center\" color=\"#eb6c66\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-f5f539dd-1abe-42a9-bb2a-1d2a07ff108c", + "position": { + "left": 286, + "top": 263, + "width": 76, + "height": 16, + "angle": 0 + }, + "expression": "markdown \"ACCESSORIES\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=10 align=\"center\" color=\"#999\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-1eb8a1d1-beff-4d42-8b82-cddc28075bb0", + "position": { + "left": 911, + "top": 262, + "width": 76, + "height": 16, + "angle": 0 + }, + "expression": "markdown \"ACCESSORIES\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=10 align=\"center\" color=\"#999\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-d36fd045-500a-494c-8d1f-281c03a9720d", + "position": { + "left": 909, + "top": 409, + "width": 76, + "height": 16, + "angle": 0 + }, + "expression": "markdown \"CLOTHING\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=10 align=\"center\" color=\"#999\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-3388ba84-9109-4f1e-bb3b-8e7e4247b99e", + "position": { + "left": 291, + "top": 411, + "width": 76, + "height": 16, + "angle": 0 + }, + "expression": "markdown \"CLOTHING\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=10 align=\"center\" color=\"#999\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-4fe5f99e-ffea-4d21-9718-dbfbbd161a64", + "position": { + "left": 910, + "top": 570, + "width": 76, + "height": 16, + "angle": 0 + }, + "expression": "markdown \"SHOES\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=10 align=\"center\" color=\"#999\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-a6b5a208-6a75-42ad-8a1c-aa50359ecd44", + "position": { + "left": 293, + "top": 562, + "width": 76, + "height": 16, + "angle": 0 + }, + "expression": "markdown \"SHOES\" \n font={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=10 align=\"center\" color=\"#999\" weight=\"normal\" underline=false italic=false}", + "filter": null + }, + { + "id": "element-45310e03-f6dd-4283-aa04-8d27a4501665", + "position": { + "left": 5.999999999999915, + "top": 76.5, + "width": 201.00000000000009, + "height": 68.5, + "angle": 0 + }, + "expression": "essql \n query=\"SELECT sum(taxless_total_price) AS sum_total_price FROM \\\"kibana_sample_data_ecommerce\\\"\"\n| math \"sum_total_price\"\n| formatNumber \"$0a\"\n| metric \n metricFont={font family=\"'Avenir', Helvetica, Arial, sans-serif\" size=72 align=\"left\" color=\"#000000\" weight=\"normal\" underline=false italic=false}\n| render" + } + ] + }, + { + "id": "page-f704531f-3a72-4f29-a199-7e00d0c1ffef", + "style": { + "background": "#FAF0DD" + }, + "elements": [ + { + "id": "element-2c7e18fa-480f-4e3b-b4df-f649687229c6", + "position": { + "left": 788, + "top": 112.12093494719988, + "width": 204, + "height": 202, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" sort=\"order_date, desc\" fields=\"customer_gender\" \n| mapColumn \"maleCount\" exp={getCell \"customer_gender\" | if {compare to=\"MALE\"} then=1 else=0} | math \"sum(maleCount) / count(maleCount)\" \n| revealImage origin=\"bottom\" image={asset \"asset-803ec373-2608-4f6f-8cf9-0dbb2f6437ce\"} emptyImage={asset \"asset-18070a2a-cd01-410a-ba89-a4505e2fbc5b\"}" + }, + { + "id": "element-2379c3ca-2c31-4948-8412-d14115500efc", + "position": { + "left": 788, + "top": 369.6303606465582, + "width": 204, + "height": 202, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" sort=\"order_date, desc\" fields=\"customer_gender\" \n| mapColumn \"maleCount\" exp={getCell \"customer_gender\" | if {compare to=\"FEMALE\"} then=1 else=0} | math \"sum(maleCount) / count(maleCount)\" \n| revealImage origin=\"bottom\" image={asset \"asset-e644a484-4097-40b9-a08e-7250ba963059\"} emptyImage={asset \"asset-7e4f7119-b2d8-4527-9bd8-887cb25974e7\"}" + }, + { + "id": "element-3f52813f-7d0e-4ec7-9aad-c731b670d88d", + "position": { + "left": -69, + "top": 400.19203602130153, + "width": 388, + "height": 141, + "angle": 90 + }, + "expression": "timelion \n \".es(index=kibana_sample_data_ecommerce, metric=sum:taxless_total_price, timefield=order_date)\" interval=\"1d\" from={essql \"SELECT order_date as min FROM kibana_sample_data_ecommerce order by order_date limit 1\" | getCell min} to={essql \"SELECT order_date as max FROM kibana_sample_data_ecommerce order by order_date DESC limit 1\" | getCell max}\n| pointseries x=\"@timestamp\" y=\"value\"\n| plot yaxis=false defaultStyle={seriesStyle points=\"0\" bars=\"50000000\" lines=\"0\" color=\"#00A89C\"} \n font={font family=\"gilroy extrabold, Avenir\" size=16 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-dc86d147-0611-4ce8-9b0b-e95fc6f8ab80", + "position": { + "left": 244, + "top": 138, + "width": 157, + "height": 145, + "angle": -45 + }, + "expression": "essql \"SELECT category, COUNT(category) AS count FROM \\\"kibana_sample_data_ecommerce\\\" GROUP BY category\" \n| mapColumn \"category\" fn={if {getCell \"category\" | eq \"Men's Accessories\"} then={getCell \"category\"} else=\"Other\"} \n| ply by=\"category\" fn={math \"sum(count)\" | as \"count\"} | staticColumn \"total\" value={math \"sum(count)\"} \n| mapColumn \"percentage\" fn={math \"round(count/total * 100, 2)\"} \n| pointseries color=\"category\" size=\"percentage\"\n| pie hole=\"85\" labels=false palette={palette \"#00A89C\" \"#CBCBCB\" gradient=false}" + }, + { + "id": "element-29967798-174d-4109-b229-e776b0a4bf8c", + "position": { + "left": 425.5, + "top": 138, + "width": 157, + "height": 145, + "angle": -99 + }, + "expression": "essql \"SELECT category, COUNT(category) AS count FROM \\\"kibana_sample_data_ecommerce\\\" GROUP BY category\" \n| mapColumn \"category\" fn={if {getCell \"category\" | eq \"Men's Clothing\"} then={getCell \"category\"} else=\"Other\"} \n| ply by=\"category\" fn={math \"sum(count)\" | as \"count\"} | staticColumn \"total\" value={math \"sum(count)\"} \n| mapColumn \"percentage\" fn={math \"round(count/total * 100, 2)\"} \n| pointseries color=\"category\" size=\"percentage\"\n| pie hole=\"85\" labels=false palette={palette \"#00A89C\" \"#CBCBCB\" gradient=false}" + }, + { + "id": "element-abaa4e35-cfc0-4171-8c34-0914cea35082", + "position": { + "left": 610, + "top": 136, + "width": 157, + "height": 145, + "angle": -56 + }, + "expression": "essql \"SELECT category, COUNT(category) AS count FROM \\\"kibana_sample_data_ecommerce\\\" GROUP BY category\" \n| mapColumn \"category\" fn={if {getCell \"category\" | eq \"Men's Shoes\"} then={getCell \"category\"} else=\"Other\"} \n| ply by=\"category\" fn={math \"sum(count)\" | as \"count\"} | staticColumn \"total\" value={math \"sum(count)\"} \n| mapColumn \"percentage\" fn={math \"round(count/total * 100, 2)\"} \n| pointseries color=\"category\" size=\"percentage\"\n| pie hole=\"85\" labels=false palette={palette \"#00A89C\" \"#CBCBCB\" gradient=false}" + }, + { + "id": "element-20da5d5d-2b29-4888-a304-a14377d727ec", + "position": { + "left": 245, + "top": 383, + "width": 157, + "height": 145, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Accessories\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"85\" labels=false palette={palette \"#CBCBCB\" \"#F05A24\" gradient=false}" + }, + { + "id": "element-9dd99310-e0a6-4ab7-b049-c7ea63180b4e", + "position": { + "left": 429, + "top": 380, + "width": 157, + "height": 145, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Clothing\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"85\" labels=false palette={palette \"#CBCBCB\" \"#F05A24\" gradient=false}" + }, + { + "id": "element-715b318d-fe6d-42b2-abea-b238b0daa8c7", + "position": { + "left": 610, + "top": 384, + "width": 157, + "height": 145, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Shoes\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 2)'}\n| pointseries color=category size=percentage\n| pie hole=\"85\" labels=false palette={palette \"#CBCBCB\" \"#F05A24\" gradient=false}" + }, + { + "id": "element-9c27c6d0-b9d9-4adb-a5f3-abb7a3403977", + "position": { + "left": 239, + "top": 157, + "width": 172, + "height": 102, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-e79711e8-d9da-45e1-a234-9efe226a444d\"}\n| render" + }, + { + "id": "element-c9b7f707-f27c-44cc-b9f1-e7b693c66702", + "position": { + "left": 463, + "top": 165, + "width": 85, + "height": 86, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-9493e336-1b11-4e61-bad2-716c46194550\"}\n| render" + }, + { + "id": "element-8bcb4071-0012-46da-9316-524c06bb673a", + "position": { + "left": 648, + "top": 165, + "width": 85, + "height": 86, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-23f2bfe9-e58c-4a56-98c6-fad59eecdf74\"}\n| render" + }, + { + "id": "element-3532c81f-a341-4d23-90b6-68912c04ee46", + "position": { + "left": 1016, + "top": 391, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"W\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-2673d24b-2706-4ffe-a38b-5736c3bc616c", + "position": { + "left": 1018, + "top": 420, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"O\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-5d2b6fe8-34a9-49bc-8229-4e1c2b8029e1", + "position": { + "left": 1018, + "top": 446, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"M\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-b67e44c0-afe0-4f15-b521-af0759348dc6", + "position": { + "left": 1020, + "top": 475, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"E\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-370b7910-dd0b-4257-90de-229d25bd6610", + "position": { + "left": 1019, + "top": 504, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"N\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-cbdd2309-101d-4edc-874c-47c3e6c99df5", + "position": { + "left": 1018, + "top": 173, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"M\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-7288cfda-673f-4741-bec2-4675bc4952ed", + "position": { + "left": 1020, + "top": 201, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"E\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-e68822cc-f4b7-48a4-a8b2-86d84d8ddeb1", + "position": { + "left": 1019, + "top": 229, + "width": 78, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"N\" \n font={font family=\"gilroy extrabold, Avenir\" size=24 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-f446c8e1-b65e-4a1f-8476-e80e437a31ec", + "position": { + "left": 240, + "top": 414, + "width": 169, + "height": 100, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-86d05b5e-1a4b-4979-95e9-7071b9923470\"}\n| render" + }, + { + "id": "element-5406c1e9-9626-413c-9eaa-a73ca1e10b8c", + "position": { + "left": 464, + "top": 414, + "width": 85, + "height": 86, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-fdfc9cc7-2c6a-44fe-b9be-c4ff115c92c1\"}\n| render" + }, + { + "id": "element-d3fe9442-583b-4acb-a700-3935adb4316c", + "position": { + "left": 654, + "top": 419, + "width": 74, + "height": 76, + "angle": 0 + }, + "expression": "image mode=\"contain\" dataurl={asset \"asset-58ae3445-4001-45e7-9603-19ec8d41e64e\"}\n| render" + }, + { + "id": "element-28ffc136-8702-4cfc-9643-9825dfd7a6a3", + "position": { + "left": 48, + "top": 247, + "width": 118, + "height": 22, + "angle": 0 + }, + "expression": "markdown \"P R O G R E S S\" \n font={font family=\"gilroy extrabold, Avenir\" size=12 align=\"center\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-c6b853cc-72a3-4110-b40b-359ecb7b1af6", + "position": { + "left": 92, + "top": 268, + "width": 27, + "height": 4, + "angle": 0 + }, + "expression": "markdown \"\"\n| render containerStyle={containerStyle backgroundColor=\"#F05A24\"}" + }, + { + "id": "element-692a539e-0c3b-4e8d-bc3e-3cf84ddd53c7", + "position": { + "left": 90, + "top": 98, + "width": 27, + "height": 4, + "angle": 0 + }, + "expression": "markdown \"\"\n| render containerStyle={containerStyle backgroundColor=\"#F05A24\"}" + }, + { + "id": "element-99bed359-ef39-403d-bcb3-81cf8d1f6c62", + "position": { + "left": 44, + "top": 77, + "width": 118, + "height": 22, + "angle": 0 + }, + "expression": "markdown \"T O T A L\" \n font={font family=\"gilroy extrabold, Avenir\" size=12 align=\"center\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-8d72d271-b12e-41af-a18b-795490cf7f38", + "position": { + "left": 276, + "top": 290, + "width": 93, + "height": 40, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Accessories\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Men's Accessories\"}}\n| markdown {getCell \"percentage\"} font={font family=\"nexa bold, Avenir\" size=36 align=\"center\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-cc17144e-096c-47b1-85dc-047724cc095e", + "position": { + "left": 465, + "top": 291, + "width": 78, + "height": 40, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Clothing\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Men's Clothing\"}}\n| markdown {getCell \"percentage\"} font={font family=\"nexa bold, Avenir\" size=36 align=\"center\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-f38ee1d6-4fd7-4ff9-b304-84663f60fab2", + "position": { + "left": 651, + "top": 290, + "width": 76, + "height": 40, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Men's Shoes\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Men's Shoes\"}}\n| markdown {getCell \"percentage\"} font={font family=\"nexa bold, Avenir\" size=36 align=\"center\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-0b0b1c4a-0acf-40e3-a3f0-3128bd59f45c", + "position": { + "left": 340, + "top": 293, + "width": 47, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=24 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-3efcd68f-7fca-4ad3-aa13-737260ec5436", + "position": { + "left": 525, + "top": 293, + "width": 47, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=24 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-a617cb84-6e50-47c3-bb95-ea67df89d117", + "position": { + "left": 710, + "top": 292, + "width": 47, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=24 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-5426b988-29d6-40aa-b0a2-40a4a0729ef0", + "position": { + "left": 277, + "top": 540, + "width": 93, + "height": 40, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Accessories\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Women's Accessories\"}}\n| markdown {getCell \"percentage\"} \"\" font={font family=\"nexa bold, Avenir\" size=36 align=\"center\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-c1579899-59fc-4960-9bf0-1187b3535593", + "position": { + "left": 461, + "top": 541, + "width": 93, + "height": 40, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Clothing\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Women's Clothing\"}}\n| markdown {getCell \"percentage\"} font={font family=\"nexa bold, Avenir\" size=36 align=\"center\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-31df9407-2156-408d-b9d4-54e32adfdc2b", + "position": { + "left": 644, + "top": 541, + "width": 93, + "height": 40, + "angle": 0 + }, + "expression": "essql 'SELECT category, COUNT(category) AS count FROM \"kibana_sample_data_ecommerce\" GROUP BY category'\n| mapColumn category fn={if {getCell category | eq \"Women's Shoes\"} then={getCell category} else=\"Other\"}\n| ply by=category fn={math 'sum(count)' | as count}\n| staticColumn total value={math 'sum(count)'}\n| mapColumn percentage fn={math 'round(count/total * 100, 0)'}\n| filterrows {getCell \"category\" | any {eq \"Women's Shoes\"}}\n| markdown {getCell \"percentage\"} font={font family=\"nexa bold, Avenir\" size=36 align=\"center\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-d82b37e0-2f8e-48cb-8a85-d3d22b019499", + "position": { + "left": 343, + "top": 543, + "width": 45, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-ae570ea8-06b8-4ffa-a2f1-b7281481779f", + "position": { + "left": 528, + "top": 543, + "width": 45, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-81dd855d-d4fa-4c1c-a72f-6c6ab5b100cf", + "position": { + "left": 711, + "top": 543, + "width": 45, + "height": 29, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=24 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-b8f13a87-b781-42d5-a663-5dbd4f645d6d", + "position": { + "left": 837, + "top": 472, + "width": 91, + "height": 63, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" fields=\"customer_gender\" \n| ply by=\"customer_gender\" expression={rowCount | as \"percentage\"} \n| filterrows {getCell \"customer_gender\" | any {eq \"FEMALE\"}} \n| markdown {getCell \"percentage\"} font={font family=\"nexa bold, Avenir\" size=48 align=\"center\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-86b06b67-893e-4555-ad38-7fba9ea3153b", + "position": { + "left": 837, + "top": 219, + "width": 90, + "height": 72, + "angle": 0 + }, + "expression": "esdocs index=\"kibana_sample_data_ecommerce\" fields=\"customer_gender\" \n| ply by=\"customer_gender\" expression={rowCount | as \"percentage\"} \n| filterrows {getCell \"customer_gender\" | any {eq \"MALE\"}} \n| markdown {getCell \"percentage\"} font={font family=\"nexa bold, Avenir\" size=48 align=\"center\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-507337d9-6e0e-4752-8770-6ebe88e9b3da", + "position": { + "left": 913, + "top": 220, + "width": 44, + "height": 42, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=36 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-19f6b029-a6ef-426e-aa07-8f91ef846a95", + "position": { + "left": 914, + "top": 475, + "width": 44, + "height": 42, + "angle": 0 + }, + "expression": "markdown \"%\" \n font={font family=\"nexa extrabold, Avenir\" size=36 align=\"left\" color=\"#F05A24\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-8ef60cfc-3823-42b6-9651-75a07b8e412d", + "position": { + "left": 19, + "top": 124, + "width": 44, + "height": 42, + "angle": 0 + }, + "expression": "markdown \"$\" \n font={font family=\"nexa bold, Avenir\" size=36 align=\"left\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-3dfda897-cc59-4bf6-ad3d-38f00bd8814b", + "position": { + "left": 362, + "top": 606, + "width": 378, + "height": 92, + "angle": 0 + }, + "expression": "markdown \"ACME Inc.\" font={font family=\"gilroy extrabold, Avenir\" size=72 align=\"center\" color=\"#CDCDCD\" weight=\"bold\" underline=false italic=false}" + }, + { + "id": "element-b336534a-6604-41be-b34a-109d631dcdb2", + "position": { + "left": 27.25, + "top": 133.03796394394163, + "width": 195.5, + "height": 80.08297100325825, + "angle": 0 + }, + "expression": "essql \n query=\"SELECT sum(taxless_total_price) AS sum_total_price FROM \\\"kibana_sample_data_ecommerce\\\"\"\n| math \"sum_total_price\"\n| formatNumber \"0a\"\n| metric \n metricFont={font family=\"nexa bold, Avenir\" size=72 align=\"center\" color=\"#00A89C\" weight=\"bold\" underline=false italic=false}\n| render" + } + ] + } + ], + "colors": [ + "#37988d", + "#c19628", + "#b83c6f", + "#3f9939", + "#1785b0", + "#ca5f35", + "#45bdb0", + "#f2bc33", + "#e74b8b", + "#4fbf48", + "#1ea6dc", + "#fd7643", + "#72cec3", + "#f5cc5d", + "#ec77a8", + "#7acf74", + "#4cbce4", + "#fd986f", + "#a1ded7", + "#f8dd91", + "#f2a4c5", + "#a6dfa2", + "#86d2ed", + "#fdba9f", + "#000000", + "#444444", + "#777777", + "#BBBBBB", + "#FFFFFF", + "rgba(255,255,255,0)" + ], + "@timestamp": "2018-10-22T15:19:02.081Z", + "@created": "2018-10-22T15:19:02.081Z", + "assets": { + "asset-66a89124-fc39-4109-8acd-e1ac7f382e04": { + "id": "asset-66a89124-fc39-4109-8acd-e1ac7f382e04", + "@created": "2018-07-10T18:33:25.683Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAApCAYAAABa3FVTAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWV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xbJdck73q7RbO4E+wc4kakCv7hOhXv8Bv8Bhx/N7xn+MGW4qcvb7TaEgEWhPG4+Ax7czMA/P8AgrCDgoLs5IryEql2z3VbJU+yaHrHmwhuGEz+nd0v2VGduRjWX0O5cVYxApjbGGXIJ2Pb7ce6HYXBhVyfeqm1l4zOZS+LpmVy4MkPecR0fPgmnZyVSjtPDlO0wCKvsoFEAkWIDItg+jq0Nze2yNiMuMNqM75izZD5P6UwjDT6/No9QbF9Du7vsA0anQZ30D8zYfl52gEEb1gM66sPNatNMlsR1+2U2eubMSj3Uhf+niGaq+ZsdvHMpDXepo13iGWgz+sU7ZdBViDPbSwsip4ZOXiPAyg4pWrDYN2B9BuOtMkjZx1LomRAen/K0eYx/+PXF1Ef6FZtneM8HDYPVQ+d6dpFjTWb3KLxDIQ8qNDy0acOyK3jI2nUjKBPLuwfX6Iu6PnUoJ5yieTCLJP5DkkrypdF201ADyUWAHufZh1psB4Xjpw1MXm7mLeuoE0CzmxhCXDxbdIePPswsvOQMmcdP/IJq31hC1a+GYM+qjEEw/5RCxqIWn9JgQR408GqhLviCR9RSiOfHAYYH12g2QJNMeXYJ4PhoN5FuVEY7Y/VszOvcYC/SIztbysrygHF8kdeXMTO4zvMa/gN+zxCmzKc/pgAAAABJRU5ErkJggg==" + }, + "asset-4acbecf1-e514-4e3b-bce4-61920335941e": { + "id": "asset-4acbecf1-e514-4e3b-bce4-61920335941e", + "@created": "2018-07-10T18:34:30.379Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAxCAYAAAAlSqxqAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3Ln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jAGbm/Ty0m0SwVwGbfCOTb+YeQVWoU4rKGuNPzRtjHx97X2Pw9JKLGxlyAFKL+B3VnYaxta2IuRDH19hMbeRWD3LVUkJyCXgYFqcleV7xFfYcY0anPl3ubzKxs1Cy0JFmZ20g5POjTaw9m1CrJ3lHgYxMsHlgEShsgHvclBke18/8R1SRZOJpTAbnsMYy1J9MGlvF8O+1gS2Ek/WQisur1TshBEWvdbAPbmN8PwDPAxwdZKKMLWZ/0nOavuJHi2D8K3j2FJZ4YXIPgk5IEJfbl6m9LxsPEfqqLINxUs8ApgfNZFZFXbw80+kYi5YoAQYtw8w7D0Z610JY9yRu9XAHOVf99FDKmNcivy/fqwyw6WAbzqDb8fEb7J/O20T2cCm2yalBHPjiNqItt+mLrgKjZK1J77rzTDzVRvBof/C7VhBM+OpR3neBTn4tToYE+Zklh5J/vBqLogMuo92tPxpky3/I14ZgBbpaEc1n64thSuifHfT+8fBFuP6kDGOH05qsdg+3EQGYR2Olr+DyVM8nnRuN7bAAAAAElFTkSuQmCC" + }, + "asset-ae290f99-dd16-41a4-8191-7dd7be154be6": { + "id": "asset-ae290f99-dd16-41a4-8191-7dd7be154be6", + "@created": "2018-07-10T18:37:50.932Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAABvCAYAAACOw8xlAAAACXBIWXMAAAsSAAALEgHS3X78AAAMXklEQVR42u1dv4vkyBl90+5gA8PoDgd2tFpQZtDoAuFwZHBm8Clw7O3MxjjQf3C9yTm0nDkwWAPOV3sY7Ow0sWyskcE4EIwGHNhgOK05wxkM46C/mqmtKan1qz5pdlfQ7HbPjKR69ep97/uqVH1ye3uLx3I4rm8B8ADY0qsAUFRlnj2WdpysEXTH9T0AFoBAAtcDcArgEkBDYEP6WQMgqsq8eA96P5BtACGBHNDHBb1q8W9V5nXHORIAzwG8ABBXZd68B71bMgS4MUlFPeI8IYA9Md4GsFur5GxXcA8JAdVUZZ5OOI84R+C4fgTgcwAn75nezs4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vYNQvHk9XJS8Y0zN+QMdERDLZxVNb9NljGNjnhsI3NGpnOFdCWqjaOqr+8DYG0LaBxFNxGBVKOL4G1mBjnKV8iuMja88WZ3vHcvinGJbh/AOxLJk33VgX6AslQI73/G4NdHTUBzwH6jentYMWcJdVfxN6/X2K5LWIXB71maovYnzGmB5C5pG1wPsABOtec5VKBc/CaeA7QuSYzdBZxLZtDLBJIrYWYzpUnrA70jCkrbUuGjIFOo8ge+vDv22IZ25hurMNpP5wMI7bi2jIx8JwJdOMjSsp6QwDhmEfcjTOda9quJVGp5+wIyjeEMbDH7inAJS9s30ekeOZZAil9e3xMiVdclXkwhUxcoHPMzo/yzAPY7eGw2iCees4tE+gxgJcdm/KsLjFTtHs/B9isTKeNed7YF8aQ3Lyh4WMe/CIp2UvlC29OwDmZfrc1ibThWULf3BLjsL1TPRPoVgdzRYd4Lb9n4/4bCEJTm++c3N7eYqlD2azsFe7312pGnCsA8BMcvvH9U6kDfgfgf8T4S6lz6hY5Sk3L36KgKywU+2uJDsiOASDtIxbifuLiCe4nMBrpPClWcqwC9I4OCAi4QnpZJAMBJV3cwfntA72lvhEQ2IEkDfVYKVr6+D8ZoENCDEPqAgAAAABJRU5ErkJggg==" + }, + "asset-565cd264-9196-4ebd-9d6e-f413f1db734d": { + "id": "asset-565cd264-9196-4ebd-9d6e-f413f1db734d", + "@created": "2018-07-10T18:38:37.796Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAACLCAYAAADWBEG8AAAACXBIWXMAAAsSAAALEgHS3X78AAAKXklEQVR42uVdP4zsRhn/xaxQBBIxDRXSm8IFND5TWKI7FymR2JbquYMO06AgRcJJRYWcAkq0KeiIskhpkspPFBQWwusGCkv4QEhAtRdFSJEiXYr9Jjfn89gz9szY9zLS0zvd7Xrn9/2b3/fNN7Ov3N3dYckIwpgBSAAwAK8C+H/bVG/jCQzPwDNSABn9HAH4BZ7IMAG+BnBumyoH8CsAO7KGzY+dgWd0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yEROM8UBTpj+/gct0M40K1WdJadH5+LP8XLgaRAS0GBMLfwwV5HYQxv12lFKzLiFCM3Zlha5AQGQmGC0c8TCTeqtCJidrUXfmbBz8hmKH7NPg1NOmUdXwO/dqq/RXimTwAAAAASUVORK5CYII=" + }, + "asset-6222f3e0-1dab-4aa9-a06c-63d7732cc5f4": { + "id": "asset-6222f3e0-1dab-4aa9-a06c-63d7732cc5f4", + "@created": "2018-07-10T18:39:47.394Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAAcCAYAAADbeRcAAAAACXBIWXMAAAsSAAALEgHS3X78AAAD0ElEQVRYw92YMY/dRBSFv41WIqBI+2giBAVGcYWI4yKW6DIFPf4HOP/ANZV/gktK0yIK09Hh7ZDcGNeWeOmIhBRHAonONGfQPK+f37PXK20Y6cp+z57xnLnn3ntmLoZh4F1ofhCFwA5ourbul/S9uI8g/SDaAQlgZFfAK2APvNBr10AFFF1b798ZkAKXA98APwElUI1B6D0DxLISyI6BXQTSoYwna4C+a+tqA4AxUMg76SnvjABn8nzatXWxGKQfREYDxEAvytirBf3MrvzUR86YaCIPJl1blysXycijN4AeBalOuUDkArCfWc0YSPV+eu5kHYCma+tmg+RUjYFOgvSDKNOEs66t85W0K7u2Tk68aykfb0H5kUdD65QHEy8V8opZChBAHvSAUGPNtUzZsdoqeWmsUmNzA6QfRLni7FbUUR0zAprPeDF2J7NhyzT2IUgnwSRLi+0M0BhINPa4xaJ0vzVC0XRvv3s5Qp/dNvjHH5MnUyUEt9nY2brWGoULwHd+EP186WSlsGtrcwfUyYE3fhDtRl7bqQytAWLrtNE4oewK+E0lzlpx6VCnuAOAdG3d+0F0vdRzKkuhIzyMU5PfKis3ApJJlDSjCkHX1s2lQ52cu2uVJlzOqCjjAHK9sheYwt6fGcfGOs6Nyf6WsWAnO24e8BXwyA+iL4GH+u8x8Avwj+xvXf+SXclrz4CvnfHe+kGUnqGsrDDg4snT51b3VU6MHJuwpctUewX8KRCPdH3PGacHXgN/yB4DnwEvJ8bqjyVAiY1cc82maqxUVNq1dTj25EPnvpxJCo0T6C7NPtXzPfCjQDX6XQD5WOr5QbR3CvgSsVEq5ko/iA52II5gzw5knTrsurZOz0gGlQPWxst+ZuV3wBvgw3EsacUzZfZ+RYhYXW29a81zK4UFGaowe2eI35OadEIHh11bx0eel/JQfMt8kANfAO8Dn7iL9sCmWSmEdKbAVqLFEoCehMBc5k4Azw+iSp5ZU6Ysqz5QeSkF/IZ2zYDMfehQyu7TlpaZ8pQAd3SulWLJQi8axbYHfC6rgMoPosIPot3BVkvUsjuQXpIsWSPYtQOxYr8/s0/seD3X0UdzhJ5GLEEMKyZYlAPejf2ks9X6FfhIgr1ZSFGbRc3KhGLPboyytj3E8pzfNj+cVFFTIHdAC3wM/AB8e855i/qlsuJUpl4pNPo1G4gxXUPVtMapNfbkrLJ6UVR2hbGRKvle9XCzncwW7T+QTok48IJzfmOL/gun/7WKfjV3BnQvQCqOfgderjltu/dtGAaGYeDJ0+eevf+/2b9/hrMMA+Zz7QAAAABJRU5ErkJggg==" + }, + "asset-f8ac482e-0c7a-4cac-8bcf-6f4f55300081": { + "id": "asset-f8ac482e-0c7a-4cac-8bcf-6f4f55300081", + "@created": "2018-07-10T18:40:34.480Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAZCAYAAACGqvb0AAAACXBIWXMAAAsSAAALEgHS3X78AAADxklEQVRYw8WYz4rkVBTGf92IoCATBFEEMVK1Eqoqi6p1Z+HOhXmDrkeo2boxs5ql8Q3iG9QguE6ju4DGrEaIkNm5EUpwbWbz3eH27Zt00nbFA6GKqntzznf+n3PRdR1DtFzvQiAGzCdAAGyco38Dlb63ehLPuYfS95LB0NUI/kVTl0XfCy/6wC/Xuz1wkPA3QGG9FKBq6vJknY+kFIDIUtYGeAEcm7rMx6CUwvd6AoGawt82VgAcgbSpy3YQ/HK9M4dDIJXQp4eaS+9L9C6AfZ81dPYA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yrieDMOqvvG9ND+4Ze6HF6ogBIW+2mnXaE+W3768kPc41yzDHLHBt5TAhH5rEw9RZp/0DQRhNuUS5KO80BWUcyvYKeM9rA+GmgQugzElBGPWU/YoTlAeYGR54WvbgA9oOzpbJ25Hljtkr6D0B0x44+1oUI2Rdqsf2ogfqoXv37i0HXl4o4P3mQRgxYmehMpyzngZhVKNFs3HMosricEu7887HdPi6zRGtmR2YRZRRzbhSahgAAACTSURBVMXks+1wToIwakp6XPvt3zsXG0NnE8p++QO/Wpf0fM7vcympu81oLLIqvK2baKqp9bXSU+OUPa5xdmA2JD2Xk0MOJfU5a8QZSI8TXJbQNScwj02ImVUJ3qUBcsjKEYT2BHNZkmdGZpvmZ5f5zGUYM5Q0AkaEMgQzIXRpaFG7WtODNazSYp5qbEAkp0AoY/0/Lj9iIrgZL+sAAAAASUVORK5CYII=" + }, + "asset-3a26727a-b756-44be-a82c-273dd85bda09": { + "id": "asset-3a26727a-b756-44be-a82c-273dd85bda09", + "@created": "2018-07-13T13:12:56.611Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAH9CAYAAAAODABXAAAACXBIWXMAAAsSAAALEgHS3X78AAAeTElEQVR42u2dXYgs6VnH/xsP8SsynSUYkejUkph4IU6vguYiOpULvQiB07nxIiin90IUQTPRXEgIbB8Eb0TTR7wQBbcn3uQisDMSxIC4NSZCQi7SLRsUMZ5uNgbFZNMdN0sSk4wXVX1OTU1V9Ve9Ve/H7weH3Z090x9vvb96nuf9qieur68FQdKXNJe0pCns4zU0QVAMJX1U0hclfS4Tc0iz2McTREwvI2FP0lskvSP7WSTp7ZK+t+J3npE0oens4Q5N4Dy9TEZJ+nVJ793jNZ7L5J1kURSImHAAsaQLSUcNv+4se90RTUzEhO1EjLN/X0r6sKH3Ocn+9CSd0exETKhmIuleF32Epm8fRmWRchMRzY+YcJtBh1KKOhMx4TY/rXTesUuS7M+Qy0GNCWmkerbjz7DIUtlE0qmkB5I+L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WRb1lKQH2jxAtMoiLde4wYjZl/Q5Q69/ng0wJDS1F1G0VyExgz2GUtmJmpsqudTj1TpcMIADxJQeL4nb9eiQRRYRL7J/IiNAg2IWiXPpS1ySvkwzEec0I0Cz/D94rZO2IQVgBgAAAABJRU5ErkJggg==" + }, + "asset-93e415d8-82c6-47d4-8c55-e38df329b88b": { + "id": "asset-93e415d8-82c6-47d4-8c55-e38df329b88b", + "@created": "2018-07-13T13:13:02.894Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAH9CAYAAAAODABXAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR42u2de6ws2VXef+OMwQKH2wYTTIDcGmjepk8PuIMDTm4Z+INIdm5DTEKCxdQEA1Ygdo8SERRIpoysgBIHt0VkQRLkGmQcXsJ1E4OQgqCuMCSkSaZPyxJ20jB1hQkOIpm+wYkdY+Xmj1p7ep86Vf2qqq7XWtLRzD2nn1X729+31l6Phx48eIBaf2w4mjiADzhADMzWq8VGr0yz7CEFZqdBOADG8vMa4KvlT0vgCWAmAHUVnApMteqA6ANT4AL4E+BPAQ/k5w+A9wI/BPwEsFyvFt5wNAkEuApOBaZaSUAciyx1gU8CPi5s+BeAjwJ35d8vBwbr1WJsMekSCNerxUzAOZXfRcAGCBSoCky140HpAXMgBL4O+Ezg/cCXAJdpBhyOJksgWq8WMwvUoYAwAj4oD32hYVB5jaVe7fPbw3oJWiVTZ8AN+dUDAdNr5D66wF8F/hB4REDrWS8xBZbD0WQDzAVwznA0mQoQXwXcAh5frxa+AD8UH1RNGVMtA5TGD/RIIqlL8RN/xWLNAHhGQGlYEPkb8rw/BL5HAHjXPM8wq7Do08Aj69UiFhCP16tFrHfhvPY8vQSNB+WcbXBmCfwg8ALgLwH/APjU9Wrhi6/51Hq1iNerxUb8ST/FmO8SML5IAO0CkficyOvfkcci4Hb1Lihjql0FpStAGguDvQ74UYshfxb4Y+BvAT8JfCfwIWCT5RsKI0bAdL1aR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mgPBKS2b3hQ25dU4G1fPGFOciQzU1fkDMCULJF3AI8bhpObbqRNWkLZUucCuCT/rHJXlwK1YgD1hcW+F/gl609mkwxKfr+NJItEw9Ek0mh6hcC0dt1XmgjscDTZpPwLUruxmZkR7Irayk3ULgXVgnMjwLSv+4aK0hotSTtXSVvcHnrw4EEWcIy/MK1i9xuOJu8DXgK8RxZKlHF0ghX1M5vBVFhWAX36td+QRL/jCl57gHTn00BQyYwpoBzLxd1UcPMc4LOBVwNfSxIAuhiOJncNSOWhA5HSJhkhAFyVSYXN9IstfXMTSWt6DykwywKmAMGtCpRiphn0r5FEen3Zaafy3r487gbJiPe5puWVDky/CmCKRQJMrQQqA5hWqt2s4oDMNO2jyvsFJigxHE3+OvCbKocq8QXD4WgyH44mnm547WDMGUkzrcp2OpGxg33vsV4tflpvTaVmIqjj9WqhA4EbaM+z2HJG9Z3QpipxGsGaxg90h6PJsuREdAdtllYOMAUw52gb6aKtQZoCzni9Whhf8OkS810dtC9TacD0qbhKQFj5tjJm4wDqA4+StKeMi3QmkHt8S4FZAjBNTuQZAgEecKmZPs2UtsKec5IeQdGJAPWAu3qPy2HMMkbm7dtJfQoWV6udBaBzkaKRBdDpAffX5Oe+lWJtS9TEHvq8L3tZRHJWGJYMxgHbZl0xyTGMSpyWmHX/PAusy5QvaX5ukrQb8fUel2MPs62zK+uGTuVm3iZJEPB0Fkkr2XMj0nYux1xuap2YEjD0/lbDmKasK5YLHR5zsG/dtKmA8fKU11FTU7OAaZLYJR3PpMVtLLBGJMXMS5E3Y9k5Xfl5rjOBglFNrWRgplhwbEkXU8l+IX++awFXa+/U1Cqw/w9uBVY8mCVDhwAAAABJRU5ErkJggg==" + }, + "asset-aaa14d64-2c1c-47f2-95c0-21306ee18cba": { + "id": "asset-aaa14d64-2c1c-47f2-95c0-21306ee18cba", + "@created": "2018-07-13T13:14:32.348Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcAAAH+CAYAAAD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6OOPZ0U6vpvtov+L5DTeK30gPOCxvMfkLO+WqwjqDt6tpDTfq3JuCLnUVGzHTJqGpmIDxk928hpu9bcZRXxt8ZYqvdvyHlcFGtJehPympH3LfpThGv+bR1PjUqMnKGj5k3k3/vbSNednrpPVFFyusEaBr5sFfM3R4za5zrx/aXSIudQ4ecdpwZ+93Wk6745Zfvx0uQMndLXbleR2MSseSfHdu/FyBnoUWXsPwaLpcW5pOqY6bSSImfoWvOtkaipRm8+kfS1pA+RGrRzST9sF/2DmqQvbm9vS4iaLUk/BbzkVaM3Hxgdi/umcKw4z/1vJE0avfmYyHlHaFFGVgei0ZtvXCRtSXoXKYr+arvoL19K9aVEzlXAenPd6M1bCY1N280oXEb6Cu8ljR97hfqsADHbgRuhKqXxcTuRdBVvuukbScvHOvoS0nrolL5KbYBc1Ooq3ukbTUk/PpwTLUHOLnLuLegw8tf4flfQEuTsIOfeglbytyPdIYJ2s5cz4oatKTNW/MO1hqVEztCsUv7yLr3HnqNtZS9njD0xczhz0o3btxG/wi9KiZzrTK/lW9CJpKtIl//LUuQMGT2rzMZuqHjzn8hZM5OcBm6n/gy+WGS76LeRsz5uYu777rmG7kYQ9AI562OW6wBGeMR50+jNq+zldH/5If7qx5mP472g7zyP5427TjHznL4blbc5TCHtU4O6dZgt3U01Xdcs5TtJrfvyqJQlc20n6LknMacqFLeQu+v+aWn/x8U3ruRaSqoee2ugCDk9CXolaVRCxDxirC/0zNaL7hn+ixQj585f+VTHLwZZu8ZngpT+KUrOHUm7uptgHrwQSW9ctK1c6lmiDHKGjqatR/6vpaHT14rk/wDjKM903yVpEAAAAABJRU5ErkJggg==" + }, + "asset-960c8c6e-da72-412d-9d04-34a98cdb5760": { + "id": "asset-960c8c6e-da72-412d-9d04-34a98cdb5760", + "@created": "2018-07-13T13:14:42.533Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKYAAAH+CAYAAAAWInVZAAAACXBIWXMAAAsSAAALEgHS3X78A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Gncwk1l9wE/e6kOkww5iTmW/8FuK9V/yB/HQM1Y6ggxbUjyM9k51XfaPs/7gHJ+13ZrTpoZyuWIGB/HwOzzTnbHSnfrT10v9zvEtv3sBWI2jeCzGn8l+2dTDtuq+euA/d7poW5GLmJuPEaHe4Vfg3kOZVughFps8lbPDCvl0Mf0XfRUkbVPpWZ8N9REwJs2ao5yFNMndaQZZSw/h9g+x237AxnnJGaJmCc/9yTg5w/UXG8zyUHMoVjedg5LSR8CP8NcUpG6mCG2Nawib7NJwJS+i5wTdkm66a/F/vyTwM8wSl1M3/29bSLttlQzSRCKHyMmafwQU4UbQvoih1Tuc2XNMrG2KwNlgZscxKwR86L+ZhA5cxDTV3p9UMSXih5pP+9yIibR8hw5fV0z/ZDLIg7XX3KrZsy0TrwdfaxIWksa5zKO6bq6nGYg5a7POVWzrO+bntt1q2al0UjSioXClzfm0UWviVO0ab5s2/n2jLZbqVm8sfv3O3K65HSiZh62ryVw79u0VgueS/kvTQdXx/5Abrfvjlo5u57EsW6j4wIh3ZLrtdBlm4LLIxF0vZdulsiImL6j6LBLugF3/D9kvsXUGyIv7QAAAABJRU5ErkJggg==" + }, + "asset-8ae4b612-43a3-4846-8f0d-abb9785e95c3": { + "id": "asset-8ae4b612-43a3-4846-8f0d-abb9785e95c3", + "@created": "2018-07-13T13:15:19.432Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAAH/CAYAAADDt5ZPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR42u19b6gt633Wc7ZbE0LwrEsDqQn2zPEuRLF37bnmLqw1uudiiSFUzoB+aBF6JhTltoh3Ai0NCrmTIphPZlJLqYpmTpE2X2zmWMGCxcxRlJRFc+csqrS60junKpZGuHM0YJSE44d53rPeM3vWWvP/fWfN+4PNPmfvtdeaeed5n9+f9/fn1rNnzzAXWa7WCwAuAAtADiDabTc5jGgrt84NoMvV2gJg7babpPRzH0AAIAWQALD55e62m5SvsQE4ABY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QQozeW0AVerbfg/FLCV/Lk3EWjDsoYOR2lP35thZRMT1UjJgciK+50hq6B4drghFGxkDzIFlrr2ZRJ8hD0XgWJ6iJkQElZ9I9lWicpyMAei8bagqrzUxEFEr/x/JM3k2HNxgEwAAAABJRU5ErkJggg==" + }, + "asset-b1602228-f014-402d-88cd-42821af09dcf": { + "id": "asset-b1602228-f014-402d-88cd-42821af09dcf", + "@created": "2018-08-21T18:29:08.616Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/4AAAOeCAYAAAC6aMuXAAAACXBIWXMAABYlAAAWJQFJUiTwAAAgAElEQVR42u3dz2+l11nA8edMbiBVSMejRgJRQa4QqAuQxv8AimHTDYO9B4QXSAghlPwFaPofeMWKhQchsbWZDavWRvkDZiTYsbARaqFAxoaGlPyYl8V7LV/SJPde2zk973M+H2nUBQilJyi93z7POW8ZhiHgq/Tg0e52RMxfPD0+choAAAB1zRwBX1Ho7yz9uR8RpxEh/AEAAIQ/SUIfAAAA4Y/QBwAAQPjz0w79+WdC/y2nAgAAIPwR+gAAAAh/hD4AAADCH6EPAACA8OdzQ39rEfh7Qh8AAED4kyf0r/48dCoAAADCH6EPAACA8EfoAwAAIPwR+gAAAAh/vjD2l0P/bScCAACA8Bf6AAAAIPyFPgAAAMIfoQ8AAIDw5wtDf3sp9HedCAAAAMI/T+jvRMR9pwIAAIDwF/oAAAAg/IU+AAAACP+7DP15ROwJfQAAAIR/ntDfWfrzllMBAABA+At9AAAAEP5CHwAAAIS/0AcAAADh/7mhv7UU+XtCHwAAACYc/p8J/Z2IeOhvJwAAAEw0/IU+AAAAJAp/oQ8AAADJwv/Bo92dGO/nC30AAACYevgvQv/qz9v+dgAAAMCEw1/oAwAAQKLwF/oAAACQKPyFPgAAACQK/wePdrfj/7+8f9+RAgAAwETDX+gDAABAovAX+gAAAJAo/IU+AAAATNuDR7vz5bYvz/70jw5+6ZV77zgaAAAAyOfefw4vtxwDAAAAJA1/RwAAAAB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/AAB6Y+IPAAAAwh8AAACYIqv+QFe86g8AQG9M/AEAACAxE3+gKyb+AAD0xsQfAAAAEjPxB7pi4g8AQG9M/AEAAED4AwAAAFNk1R/oyhDFIQAA0BUTfwAAABD+AAAAwBRZ9Qe64lV/AAB6Y+IPAAAAwh8AAACYIqv+QFes+gMA0BsTfwAAABD+AAAAgPAHAAAAmuKOP9CVIYpDAABA+APkDX8AAOiLVX8AAABIzMQf6IqJPwAAvTHxBwAAAOEPAAAATJFVf6ArXvUHAKA3Jv4AAACQmIk/0BWP+wEAIPwBhD8AAKRh1R8AAACEPwAAACD8AQAAgKa44w90xef8AADojYk/AAAACH8AAABgiqz6A1156QgAAOiMiT8AAAAIfwAAAGCKrPoDXfGqPwAAvTHxBwAAAOEPAAAATJFVf6Arw+AMAADoi4k/AAAAJGbiD3Rl8LYfAACdMfEHAACAxEz8ga74nB8AAL0x8QcAAADhDwAAAEyRVX+gKz7nBwBAb0z8AQAAQPgDAAAAU2TVH+jKy+JVfwAA+mLiDwAAAMIfAAAAmCKr/kBXvOoPAEBvTPwBAABA+AMAAADCHwAAAGiKO/5AV1zxBwBA+ANkDv9SHAIAAF2x6g8AAACJmfgDXfE5PwAAhD9AbmcRceoYAFL+8x2Az/F/4AAoedGIybIAAAAASUVORK5CYII=" + }, + "asset-18070a2a-cd01-410a-ba89-a4505e2fbc5b": { + "id": "asset-18070a2a-cd01-410a-ba89-a4505e2fbc5b", + "@created": "2018-09-06T19:41:55.368Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdwXlbV5Yu7OV+et7sCC4UganBHhuKoKgIDEZgMQJJEVCOgKwIxIpA8HgPxIrAqAgubwT/P8CRTcsECZAA1t7nvO+kb3dVWd91uyXiw9pr/RAA8EK11llELCLi54hYllLOUwMBADA5P2QHAKBftdZ5RPwSEWff/UuvSimrowcCAGCy/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Lw4BQABZDwAEA8aebWQQejESgAQCNgAMAbnEj8Pg+HGmhHwINALiDgAMAdtCOtJzGly6P03AlLYd1PRT03zGFGZvUagCgcwIOAHikWutpTEHH9/El/IDH2sTUoXEdaGxTqwGAwQg4AGCP2k0tpxHxjxB6cLdNfAkzLt1wAgBPJ+AAgANrnR6rmAKPH9vPV3kVcUTbuBFkxBRmbDMLAoC5EnAAQJLW7bFqH4KPsV3GNDPjt5hCja2ZGQBwXAIOAOhM6/g4iel4y99j6vxYhfAj2za+dGT835iOmVw5XgIAfRBwAMBAboQf1z9+335chQDkqa67MLYR8T/xJdDYOlYCAP0TcADAjNy4zjbiSwjy9xv/7Ob/vhTXwUXEdIQk4kt4EY6SAMA8CDgAYMHaHJBrq/hzF8jNYOSm6+DkGLbt42u/ffXrP/17QgsAWJ7/D/Q/pTpuLhLZAAAAAElFTkSuQmCC" + }, + "asset-803ec373-2608-4f6f-8cf9-0dbb2f6437ce": { + "id": "asset-803ec373-2608-4f6f-8cf9-0dbb2f6437ce", + "@created": "2018-09-06T19:42:19.366Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdzXEc2ZU24NNfzH4wFkzRAoEWdNECgbvcNRCR+yYtIGkB2PuMALTLHTkWsNoCQhawZIEwHnyLCwxINn4KQGWezLzPE6EYadQi3mYXgcq3zj33lwCAIfXdQUQcR8TvEbGNpn2VGwgAgCX6JTsAAAvVd+uI+C1KufG9V9G0m7HjAACwbP+RHQCABSnTGkcR8S4iVnf8Vb9FxGakRAAAVMIEBwDP13eHUY6gHEXEwQ7/ixfRtNtBMwEAUBUTHAA8zc20xu8RcfjI//W7iDjZeyYAAKplggOAx3n8tMZdTHEAALA3JjgAeNjzpjXuYooDAIC9McEBwN32N61xm8soUxyXe/51AQCokAkOAP6q746j3HayHvCrHETEm4h4P+DXAACgEiY4ACj6bhVlW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HABxamedxnOTfuTreYqZHHz4fArpNstWZAQCHIeAAgBquuj0+Dz6OouNjqra7H7/nKtTQlQEAAxJwAMDYlI6PywDk3ymhh66P+ra7H+dJ/m/K8M8LN5kAwDgIOABgSsptLpfhx5NcBSCXP3i485Tui22S/81VoLF1ewkAjJ+AAwBaUzpAki9Dj592P1+GIz3Z7H6+SBnqmVyFFzETAwDaIOAAgJ5dhSHJ9eHHT7ne7IY/v0+Xsyyu+/N//uPPXXZfFEILAOjO/w/ZMW6a3QUqBAAAAABJRU5ErkJggg==" + }, + "asset-466fdcbd-f265-4081-bbcc-367bfcfeaf4f": { + "id": "asset-466fdcbd-f265-4081-bbcc-367bfcfeaf4f", + "@created": "2018-09-06T19:43:02.342Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACegAAAWSCAYAAABmZZf9AAAMKGlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkJDQQpcSehOlSJcaWqRKFWyEJJBQQkwIKnZkUYG1oKICNnRVRNG1ALLYsJdFsfcHIiqKLupiA+VNEkBXv/fe9873zb1/zpw55z/nzkxmAFCNZotEWagaANnCXHFMSABjUlIyg/QYIEAVkIE90GFzJCL/6OhwAGX4/U95fwtaQ7luL/P1c/9/FXUuT8IBAImGOJUr4WRDfAgA3JUjEucCQOiBerOZuSKIiZAl0BRDghCby3C6ArvLcKoCh8tt4mKYEKcAoERls8XpAKjIeDHyOOnQj0opxA5CrkAIcTPEPhw+mwvxAMSjs7NzIFa1htg69Ts/6f/wmTrik81OH8GKXOSiFCiQiLLYs//Pcvxvyc6SDscwg43KF4fGyHKW1S0zJ0yGqRCfF6ZGRkGsAfENAVduL8NP+dLQ+CH7jxwJE9YMaAOAUrnswDCIDSA2FWZFhg/pfdIEwSyIYe3ROEEuK04xFuWKc2KG/KOzeJKg2GHMFstjyWyKpZnx/kM+N/F5rGGfTfn8uEQFT/RqniAhEmIViB9IMmPDhmxe5POZkcM2YmmMjDP85hhIEw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Z6qu3wPn/rUvc9ynnO+5zZPbt3fPeeS5z73uSdDIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBHIVuCQL6N1+++25VqoyAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBQ7wKXJAAz6NX7q0D/CRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCB3gTMBvdGBp3KvXIUECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQKAeBVp61oaAXj2OvD4TIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQKECAnqF8qqcAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBOpVQECvXkdevwkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgUAEBvUJ5VU6AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC9SogoFevI6/fBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCogIBeobwqJ0CAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIF6FRDQq9eR128CBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFRAQK9QXpUTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQL0KCOjV68jrNwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgUKiCgVyivygkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgXgUE9Op15PWbAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAoVENArlFflBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCvAgJ69Try+k2AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEChQoI6BXKq3ICBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqFcBAb16HXn9JkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCBQT0CuVVOQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjUq4CAXr2OvH4TIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQKECAnqF8qqcAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBOpVQECvXkdevwkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgUAEBvUJ5VU6AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC9SogoFevI6/fBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCogIBeobwqJ0CAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIF6FRDQq9eR128CBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFRAQK9QXpUTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQL0KCOjV68jrNwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgUKiCgVyivygkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgXgUE9Op15PWbAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAoVENArlFflBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCvAgJ69Try+k2AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEChQoI6BXKq3ICBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqFcBAb16HXn9JkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCBQT0CuVVOQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjUq4CAXr2OvH4TIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQKECAnqF8qqcAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBOpVQECvXkdevwkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgUAEBvUJ5VU6AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC9SogoFevI6/fBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCogIBeobwqJ0CAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIF6FRDQq9eR128CBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFRAQK9QXpUTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQL0KCOjV68jrNwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgUKiCgVyivygkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgXgUE9Op15PWbAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAoVENArlFflBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCvAgJ69Try+k2AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEChQoI6BXKq3ICBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqFcBAb16HXn9JkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCBQT0CuVVOQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjUq4CAXr2OvH4TIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQKECAnqF8qqcAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBOpVQECvXkdevwkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgUAEBvUJ5VU6AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC9SogoFevI6/fBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCogIBeobwqJ0CAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIF6FRDQq9eR128CBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFRAQK9QXpUTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQL0KCOjV68jrNwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgUKiCgVyivygkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgXgUE9Op15PWbAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAoVENArlFflBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCvAgJ69Try+k2AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEChQoI6BXKq3ICBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqFcBAb16HXn9JkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCBQT0CuVVOQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjUq4CAXr2OvH4TIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQKECAnqF8qqcAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBOpVQECvXkdevwkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgUAEBvUJ5VU6AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC9SogoFevI6/fBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCogIBeobwqJ0CAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIF6FRDQq9eR128CBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFRAQK9QXpUTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQL0KCOjV68jrNwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgUKiCgVyivygkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgXgUE9Op15PWbAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAoVENArlFflBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCvAgJ69Try+k2AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEChQoI6BXKq3ICBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqFcBAb16HXn9JkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCBQT0CuVVOQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjUq4CAXr2OvH7XvMD49k1x4sjQtPrZuHBpzOldNKVzR+77Whw7sDfGn3jgzHlNl10bc+cvjtbrX3BmWykPZqrtJ0aGY3zbkxM2qeXy6ybcfrGNE9U5Hc+LXcd+AgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACByhcQ0Kv8MdJCAtMSOPCH742jmx6b1rntr/6h6Hz591303CyMNvz1z8fIv/5TnBgbnfT4huaWaH3Z95RUZ1bJTLQ9u07W9sF/+Gj28Bll4bs+NOWQYlbJ6OP3x8Cf/s9z6ivV85yTPCFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEKh6AQG9qh9CHSAwsUDRIbdslruBj30wTgz0T9yACbbOXbYyun7wzdG0cv0Ee7+1qei2n75S/198IMYfuvv003N+TzdUJ6B3DqMnBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIG6FhDQq+vh1/laFigy5HYqnPdHv3bBWfMms81m0+t5869cMKRXZNtPtyub/W/fr/z46afP+J2FCRe8/QPP2H6xDQJ6FxOynwABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBQPwICevUz1npaZwJFhdyO9++LAx/8xUnDeQ09vTFn/qI4vmPLBY9Z8PMfiIbW9glHpai2n32xCy1ve/q46SxzK6B3Ws9vAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAT2vAQI1KpDNcnfiyNA5vRu9/2sxeuet52zLlnJtXHHukrONC5fGnN5F5xx3+slk4bmsnrYbXnjOeVmYb/CW/+8Z18zqanvxd0XXa//z6WrP+V1U28++yIWWtz193HSWuRXQO63nNwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgICe1wCBOhIY/NI/xPBnP3lOj3t+8p3Rcvl152yb7MlE4bPs2IvVMdlsdVOZoa7ctp/dp4mWt226+sY4tvHhc2b9m84ytxMZTSfod3Z7PSZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEKhOAQG96hw3rSYwLYFyQ24Dn/yDZ8yGV2r4bKJrl3pu1tmJzr9YMHAypIkCg53f98Y4umPTM/o3lRBhdj0BvcnUbSdAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQI1J+AgF79jbke17FAuSG3fb/+1jgx0H9GsKG5JRa9/y/OPL/Qg4lmrWtcf0XMf8t7L3TamX3ltv1MRenBRMv0Lvq1P4uxx++LQ3/9e2cfGlMJEWYnCuidw+cJAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQKCuBQT06nr4db7eBMoNue35hdefQ5YtC9v7hnecs+1CT84Pxk0l4Fdu20+363j/vtj/Gz97+ump32cHBc/vY0NPbyx69x+cc/yFngjoXUjHPgIEC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cpWKzOi40497pa5z/u9y2T9TmLDg3WTmZZv47tmv7ObtLWeZ2ooDeOZWc9yRrw/y3vPe8rZ4SIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjUgoCAXi2Moj4QKFGg3JDb6ctky9b2/+F7nxFgO73/Qr+zQNq8N7yj5KVtT9dVTtsnWpr3YkvWTuecrK0CeqdHzG8CBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEBPa8BAnUkUE7I7XymLKQ3dMvfx5Gv/Mv5uyZ93v7qH4rOl3/fpPsvtKOctk90bimz4U00697FlrkV0LvQKNpHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEKgvAQG9+hpvva1zgYmCatNZ4vZsxiyQNnr/12L0zlvP3nzmcUNzSzRdd1N0vuIHYk7vojPbp/qgnLZPJ2iXtW+ia14s2CegN9WRdTwBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAoHYFBPRqd2z1jMCMC2ThtJMjQ3HswN5oXLE+Gto6omnl+hlvhwsSIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQqAQBAb1KGAVtIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGaExDQq7kh1SECMy8wtvGhmb9ozldsvvTqnGtUHQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQL0LCOjV+ytA/wnkILDnF16fQy2zW0Xby14bXd/1I7PbCFcnQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBCoKQEBvZoaTp0hMDsCAnqz4+6qBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEClS0goFfZ46N1BKpCQECvKoZJIwkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBGZYQEBvhsFdjkAtCgjo1eKo6hMBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEC5AgJ65Qo6nwCBENDzIiBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECDwTAEBvWea2EKAwBQFDv//fzXFMyrv8K7v/rHKa5QWESBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEClCgjoVerIaBcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVLWAgF5VD5/GEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEA9CowfPR4HD4/Fvv4jp7q/ckln9HQ21yOFPhMgQIAAgYoWENCr6OHROAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAg8C2Bw0Nj0Z+CeYPD49/a+M1H11y64BnbbCBAgAABAgRmV0BAb3b9XZ0AAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECJQk8ODGvgset3pZZ3S1m0Xvgkh2EiBAgACBGRYQ0JthcJcjQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQKlCJw4cTIaGi6JiwXzTtfV0dYYa5d3n37qNwECBAgQIFABAgJ6FTAImkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBM4W2N03HH0HR87eVNLjdcu7or2tqaRjHUSAAAECBAgULyCgV7yxKxAgQI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DB05mm/FZda2bGF7zO9pLbMWpxMgQIAAAQJTFRDQm6qY4wkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwAQCI6NH48nthybYM/ubGuc2xBVre2e/IVpAgAABAgTqTEBAr84GXHcJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIH+Bw0NjsXX3YP4V51jjkgXtsXCeWfRyJFUVAQIECBC4qICA3kWJHECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBCYX6D80Gjv3DU1+QAXtuWr9/GhouKSCWqQpBAgQIECgtgUE9Gp7fPWOAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAoU2H9wJPb0DRd4hXyrXtTbFovnt+VbqdoIECBAgACBSQUE9CalsYMAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECEwusPfAkdjXf2TyA3La09PZfGrWu2ymvjzKZavnRXPTnDyqUgcBAgQIECBwEQEBvYsA2U2AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBM4X2L1/OPoGRs7fnPvz5Ys6ore7JU6cOBkPbzqQS/1dHc2xemlnLnWphAABAgQIELiwgIDehX3sJUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC5wjsSuG8AwWH8zraGmP5wo5oOmumu+ya2bXzKCuXdEY2M59CgAABAgQIFCsgoFesr9oJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAoIYEdu4bjv5Dxc6ct3h+WyzqbZtQ7cGNfRNun87GqzcsiEsumc6ZziFAgAABAgRKFRDQK1XKcQQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBQ1wK7UjjvQMHhvJWL08x2XZPPbDc4PBZbdg3mMg4L5rXG0gXtudSlEgIECBAgQGBiAQG9iV1sJUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECZwSKXta2p7MlVizuKGlGu627B+Pw0NiZtpXzYMPK7mhtaSynCucSIECAAAECFxAQ0LsAjl0ECBAgQIAAAQIECBAg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f7jpWvju5cvmeqpFXH853fti49v3ByHh4Yroj1FN+JZaSa9t1y+PlalcVMIECBAgAABAgQIECBAgAABAgQIECBAgAABArUgcOLEydi0fSBGx4/n2p0FPa2xdGF7rnVOpbJjx07EE1sPxvHUvzxKR1tjrF3enUdV6iBAgAABAnUpIKBXl8Ne3Z2uxYDe53btjT+696HqHphptn7dogXx08/aEOs7Zu9NylSavn9sLH734Y3xyO69UzmtZo799GteXjN90RECBAgQIECAAAECBAgQIECAAAECBAgQIECgvgXynmku08yWg82WhZ3tkveyvbM5I+BsW7o+AQIECBAoV0BAr1xB58+IwMbBoXhw4HBsSr+/kWYuG0shqQuVZb098exF8+Pqnu64af68Cx066/t+46HH4s6tO2e9HbPdgB+86rL4kTUrZ7sZF7x+FqT8s4cfj6PjRy94XK3vXJ9Cle+89lmxoLmp1ruqfwQIECBAgAABAgQIECBAgAABAgQIECBAgECNCuzvPxJ7DhzJtXddHc2xemlnrnWWU9nW3YNpNagLf646lfrXLOuKznafD03FzLEECBAgQCATENDzOqhogV994NG4Z/uustt4+ZJF8ZK0ROerly0uu668KtiSlkb9jfsfiX0peKg8LXBNWu72fdddGQ2XXFJxJB9+fFPc8uSWimvXbDWopaUl3nb9s+K583tnqwmuS4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBCYlsDQkfF4ame+n9F1tM6NtSt6ptWeok7Ke6nbprkNsWHVvJgzp/I+yyvKUL0ECBAgQCAPAQG9PBTVkavA327ZHp/duiN9myPfb6xkjWxtbYnXrF0VP7p2dmdqu+PAwfjgPQ/F+Ph4rna1UNnCnq74H9dfFSvb2yqmO79y38Px4M49FdOeSmrIG1Og8ntXLK2kJmkLAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGBSgePHT8aT2w/G+NETkx4znR1XrutNwbWG6Zxa6Dl5L3VbabMEFoqncgIECBAgkJOAgF5OkKopX+Cr+w/Enz/6ZBxMy9gWXbIQ2H9NS6pem5bAneny5b198b/vfiDi5MmZvnTVXC8LUr77xmviq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BAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgEgEC9CrRoqzpAuUGsRXqSL7gtlJT3FYaaDfadr62igX2VTK2nvM+K5ngwGhT2ediwX85BW26QoCe8SeOAD3jTakRAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBCoRIAAvUq0KIsAAqYJEKBnPC0BesabUiMCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIFCJAAF6lWhRFgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIEyBQjQKxOKYggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAghUIkCAXiValEUAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgTAEC9MqEohgCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAAClQgQoFeJFmURQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQKFOAAL0yoSiGAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQCUCBOhVokVZBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMoUIECvTCiKIYAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIFCJAAF6lWhRFgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIEyBQjQKxOKYggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAghUIkCAXiValEUAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgTAEC9MqEohgCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAAClQgQoFeJFmURQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQKFOAAL0yoSiGAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQCUCBOhVokVZBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMoUIECvTCiKIYAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIFCJAAF6lWhRFgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIEyBQjQKxOKYggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAghUIkCAXiValEUAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgTAEC9MqEohgCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAAClQgQoFeJFmURQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQKFOAAL0yoSiGAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQCUCBOhVokVZBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMoUIECvTCiKIYAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIFCJAAF6lWhRFgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIEyBQjQKxOKYggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAghUIkCAXiValEUAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgTAEC9MqEohgCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAAClQgQoFeJFmURQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQKFOAAL0yoSiGAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQCUCBOhVokVZBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMoUIECvTCiKIYAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIFCJAAF6lWhRFgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIEyBQjQKxOKYggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAghUIkCAXiValEUAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgTAEC9MqEohgCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAAClQgQoFeJFmURQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQKFOAAL0yoSiGAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQCUCBOhVokVZBBAwTeDmjVtMq9sOFb9z/hw7dJM+IoAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIDAtgUxmRNLpEUml05J+47V+1tszI6PPkn2tVkXUf/Szfjm6NKkXTW/8x6Gem9SKfnao/+iHc/zD6RCXejidTdlyo3XwjAACCCCAQLUECNCrljTtIIBAUYETb7mz6P5633nREQfJDn5fvQ+T8SGAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCNSxgA6ySyTT2x+pjCST6qGedTBe9jm1PQivVgQ6cM/lcohbBeu5XE5x69fq4XE733g4COKr1cmhXQQQQKCOBQjQq+OTy9AQsJMAAX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ggaQiQIFeUp1OToYESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESKC5ESiaNB7uzRviNu20wcci+/TL4xbPP5AkRix+5g7Uulz+zXHbTz/iOGSddmnc4jEQCaiJQMk7T8K1allCUtIXtEL+LRMBgzHu8YuevQPubZvjFjdt8AjxGXtZ3OIxEAmQQOwJUKAXe8aMQAIkQAIkQAIkQAIkQAIkQAIkQAIkQAIkQAIkQAIkQAIkQAIkQAIkQAIxIWD77GU4F/0YE9/BnObf/QL0LfKDdce8vXKZWM73o/gt51t/QulDT0TWKRfVb+YxCSQ1Adt7z8D52+KEzTHnmvEwde6ZkPiOFfNR+v6kuMbOPP0SWAYfH9eYDEYCJBA7AhToxY4tPZMACZAACZAACZAACZAACZAACZAACZAACZAACZAACZAACZAACZAACZBAzAiUz/4c9m8/iZl/OcfpR4wQFeQSX9mp9Is34Fjwg1yKcWmjSC8umBlEJQT2CHFeVQLFeRknn4uMo0YmlEbRc3fCvXVTXHOwXj4O5h794hqTwUiABGJDgAK92HClVxIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARKIGQH7ktko/+S1mPmXdWwwoODuF6HLzJbtjndj0aR7xNK+f8U7bF289CFiuduRXO62Dgh3kpJAyTtPiWVtlyZsbua+A2E9/6aExfcFdqxZjNIpz/gO47bNufFhmNp3iVs8BiIBEogNAQr0YsOVXkmABEiABEiABEiABEiABEiABEiABEiABEiABEiABEiABEiABEiABEggJgQcq35B6TvPx8R3KKeWEacjc8TZoUzi2ufevQMlz90Dj7MyrnH9g5kPPwbWUVf5N3GfBJKGQMlbT8D1+4qEzcfQqh3ybnoMMBgTloN/4JLXHoZr/Rr/prjs593+NAz5beISi0FIgARiQ4ACvdhwpVcSIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESiDoB5+9LYHvr6aj7DedQ1yJHVM+bHM4s7v2O1YtQ+vazcY/rH9DcbzCs517v38R9EtA0gdoqJ/a8NQGuv/5I6Dxyb3oExn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Oo5MrWyLHaj4QRdRoYKVdEU+hEhiSBoSk5DufaLv5T3vfd7Pe96bc877uzN63q/n6/e85+R6z9/n3bMz/Ov8GI778TeEJz76ofBvvvvv0jEnnBRWn3RaiP8HJz8ECBAgQIAAAQIECBAg0L+AgF7/xlogQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgQEKCOgNcNINmQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgT6FxDQ699YCwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAwQAEBvQFOuiETIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQP8CAnr9G2uBAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAYoIKA3wEk3ZAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBDoX0BAr39jLRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIDAAAUE9AY46YZMgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAv0LCOj1b6wFAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBiggIDeACfdkAkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgfwEBvf6NtUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECAxQQ0BvgpBsyAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECPQvIKDXv7EWCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCAAgJ6A5x0QyZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACB/gUE9Po31gIBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIDFBAQG+Ak27IBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQINC/gIBe/8ZaIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIEBCgjoDXDSDZkAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIE+hcQ0OvfWAsECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgMEABAb0BTrohEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgED/AgJ6/RtrgQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQGKCCgN8BJN2QCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQ6F9AQK9/Yy0QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwAAFBPQGOOmGTGASBX78r26ZxG7p05QJfPRHL5yyHusuAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgMMsCAnqzPLvGRmCKBAT0pmiyJrirAnoTPDm6RoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEBiggoDfASTdkApMoIKA3ibMyfX0S0Ju+OdNjAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAwywICerM8u8ZGYIoEBPSmaLImuKsCehM8ObpGgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQGKCCgN8BJN2QCkyggoDeJszJ9fRLQm74502MCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIDDLAgJ6szy7xkZgigQE9KZosia4qwJ6Ezw5ukaAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAYoIKA3wEmf9CEf3rc3HPj6/QvdXP3s08OKtesX9osb+7/yxZFDK9Y9I6zesnXkWJudfV+4PRza8Vg48E9fWii2+nlnh5XHPyusfdEFC8eabhT7F8vVjSle07VcLDuNPwJ60zhrk9dnAb3JmxM9IkCAAAECBAgQIECAAAECBAgQIEC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fMbR4512UntfpfrGeIj7eN4xbQiwp+liogoLdUQeUJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBcQoI6I1TU10zIxDDev+671/CoR2PhVWnbg0r1j0jrN6ydWbGN4kDEdCbxFmZvj4J6E3fnOkxAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBCYZQEBvVmeXWMjMEUCf/foN6eot7o6qQI/+D0nTmrX9IsAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAYoICA3gAn3ZAJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAoH8BAb3+jbVAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgMUENAb4KQbMgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAj0LyCg17+xFggQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEBggAICegOcdEMmQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgf4FBPT6N9YCAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECAxQQEBvgJNuyAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECDQv4CAXv/GWiBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBAQoI6A1w0g2ZAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBPoXENDr31gLBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIDBAAQG9AU66IRMgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBA/wICev0ba4EAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEBiggoDfASTdkAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEOhfQECvf2MtECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMAABQT0BjjphkyAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC/QsI6PVvrAUCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQGKCAgN4AJ92QCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQKB/AQG9/o21QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIDFBDQG+CkGzIBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQI9C8goNe/sRYIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYIACAnoDnHRDJkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIH+BQT0+jfWAgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgMUEBAb4CTbsgECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAg0L+AgF7/xlogQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgQEKCOgNcNINmQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgT6FxDQ699YCwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAwQAEBvQFOuiETIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQP8CAnr9G2uBAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAYoIKA3wEk3ZAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBDoX0BAr39jLRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIDAAAUE9AY46YZMgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAv0LCOj1b6wFAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBiggIDeACfdkAkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgfwEBvf6NtUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECAxQQ0BvgpBsyAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECPQvIKDXv7EWCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCAAgJ6A5x0QyZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACB/gUE9Po31gIBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIDFBAQG+Ak27IBCZR4Mf/6pZJ7JY+EWgt8NEfvbB1GQUIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACB2RQQ0JvNeTUqAlMnIKA3dVOmwyUCAnolMA4TIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIEBCgjoDXDSDZnAJAoI6E3irOhTFwEBvS5qyhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgdkUENCbzXk1KgJTJyCgN3VTpsMlAgJ6JTAOEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBAQoI6A1w0g2ZwCQKCOhN4qzoUxcBAb0uasoQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIHZFBDQm815NSoCUycgoDd1U6bDJQICeiUwDhMgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgQEKCOgNcNKnZciH9+0NB75+f6Purnn+OY2uS13Upp2s/KoTTwrHzG3Odhu/xrb23fWpcKTNf/rSQrnVzzs7rDz+WWHtiy5YODa0DQG9oc347I5XQG9259bICBAgQIAAgckU2HPoULhn1+5Wnduybm04df4/ZT8PPbkvPDj/n+LPS0+YKx46sv+Zx3cuOl7XRrFA1TjK2i3WUdxP1dm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IAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAqH0IJAAAAVFJREFUAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCQjoVek4R4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEOgoI6HWEU4wAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECFQJCOhV6ThHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ6CgjodYRTjAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIVAkI6FXpOEeAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBDoKCOh1hFOMAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhUCcSA3v8HLMnJsGUNNCMAAAAASUVORK5CYII=" + }, + "asset-e644a484-4097-40b9-a08e-7250ba963059": { + "id": "asset-e644a484-4097-40b9-a08e-7250ba963059", + "@created": "2018-09-06T19:44:43.075Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdTXIbZ7Yu6nVOnP7OO4INR2S/pBEYGkFR3ewUOQJTI5A0AlEjINxBV6wRCB6BUX1EGHsEN88I7m3kRwuS+AOAQH75ZT5PhMNV3vWzYpdJJN5cP/8rAIBJaZt6FhGznb/04z+PiPhHRFQP/NtfPfLXz20dEe0Df30bEf/z1L+2Wm5WZ6sKABiM/5W7AADgZdqm3g0d5unP/xVdGBE//PWp26Y/IroQ5D87/3id/vG6Wm4eClMAgAETcADAgLVNPU//8P7P950VVXwfYHAeq/TndUT83/gWkLTVcrN++N8CAOQg4ACAjH4IMO67LoQX5bjv/LjvBrn/59tqudlmrAsAJkfAAQBnlkKM+9Div6Pbd5FrlwX92qY/1tHtChF+AMCZCDgA4ERSkDFLf/waDy/vhHvr6MKP/8S34MPYCwAcScABAAdKSz1fhSCD89gNPlah4wMA9iLgAIBHtE19P1byKrrlnvf/GPp2v9tjHanjQ7cHAHxPwAEA8V2YMY9vYcYsY0mwj1UIPQAgIgQcAExUGjOZh84MxmcVXejxR3ShxzZrNQDQEwEHAKOXujPm0YUYv6Z/DFOxje8Dj1XWagDgTAQcAIxO29Sz6EKM+zBjlq8aGKRVpMAjIlbVctPmLQcAXk7AAUDxdsZNfg27M+AY6/gWegg8ACiSgAOA4ux0aPwz/bnKWA6MkcADgOIIOAAYvLRD4yKMnEAu64j4d3RhxypzLQDwIAEHAIPUNvU8vnVouHACw3IXXXfHnSstAAyFgAOAQUhjJ7tdGsZOoA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b25974e7", + "@created": "2018-09-06T19:44:52.474Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzd23Wb17U24Ln3+O+jDgJXEPliXQeqIFQFpiqwVIGkCihXQLgCMRUIvl4XZiow0gF2B//Ft2hRMg8gCGAdvucZw8OKh2PPxCYO7zcPEQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAME//U7sAAGA8OecXEfHykT9tm1K6PkU9AMD4BBwAMDN3hA93hRH/KH/8e8sjlfWYTfntrj/+3+/+2PrWr4UoADATAg4AGEDOeVl+uSi/RXwbUtz+43N2HRHbW7/+v/Lrdfm9QAQAOiXgAICGfddtsSy/vwkuFiG0OKZ1+f0mpi6RbZSARAgCAO0RcABAZTnnlzEFFsuI+FtMgcYuOyyo68/AIyL+E1/HaDYppU21qgBgpgQcAHACOedFTN0Wy/gaYtz8McZ0E378Fl/Dj+uU0vaB/w4AsCcBBwAcUOnGWMQUYPzj1q/hxk3nx3VMoy/XIfgAgGcTcADAHm7txlhGxN/LrwUZPMdN8HHT8XFt1wcA7E7AAQCPKOMlNwHGP8NoCad10+3xn5hCj3XdcgCgTQIOALildGYs42uYcbPwE1oi9ACA7wg4AJi1nPMyvg0zFjXrgWdYx9fQY+2SCwBzI+AAYDZudWfchBnLmvXAkW3i606PtX0eAIxOwAHAsMrujGV8DTQsAWXu1vE18FjXLQUADkvAAcAwvgs0lmHcBB6zDoEHAIMQcADQre9GTs5CoAHPtY4p8Lgy0gJAbwQcAHSlLAVdRsS/wsgJHNM2psDj32FpKQAdEHAA0LRbYyf/Kr93shXq2ETEVUT8llK6qlwLAPyFgAOA5pQujZtAQ5cGtOkqvo6zbCrXAgACDgDqK7s0zuLrLg1dGtC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CiXM3+fSsmPNWi9V9b7qc40VkfAAQBcRTVOc46AFwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADe6T9j+ggBdrNYQAAAAABJRU5ErkJggg==" + }, + "asset-e79711e8-d9da-45e1-a234-9efe226a444d": { + "id": "asset-e79711e8-d9da-45e1-a234-9efe226a444d", + "@created": "2018-09-06T20:01:04.447Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdy3Fb17Yu4H+rTv/qRrDhCCxFICgCSz30TFWhLykCSRFI7qOKcA890REIjkB0BMKO4OBEcG9jAoc0zQcILGCux/dVqaiXyWFQANb655hjJgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQJ7/B75mKmIfIcbtAAAAAElFTkSuQmCC" + }, + "asset-9493e336-1b11-4e61-bad2-716c46194550": { + "id": "asset-9493e336-1b11-4e61-bad2-716c46194550", + "@created": "2018-09-06T20:01:22.463Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdT3Ib2ZInar9tNW/u4OGuoJkraHAFRc4wK8As5imuQKkVkDkPM6JmMaNqBWStQOwVJHoHfCt4b3DAy5Qoiv8A+DkR32eWlnmvZUouInAi4hd+PP4RAIzb0M8j4jgi/p/t32fbvwDGbLP96y4i/m9E3MWiu02sB4A9+0d2AQDs2NDPImIeEf8eEaeptQDU52tE/FdE3Mai2yTXAsAOCTgAxmLolyHUAHiLEnYsunV2IQB8nIADoGVDfxQRy4j4PWw7AXivTUT8GRHrWHT3ybUA8E4CDoBWlY6NzyHYANiVTUR80dEB0CYBB0Brhv44Iq6iDAwFYPfuImIVi+4uuxAAXu9/ZBcAwBsM/R8R8S2EGwD7dBwR37ZrLgCN0MEB0ILyZpTrEGwAHNpdRJx54wpA/QQcALUrW1JuIuIouxSAibqPiBNbVgDqZosKQM3KINFvIdwAyHQUZcvKMrsQAJ6ngwOgVuVC+iq7DAC+s/KWFYA6CTgAaiTcAKiZkAOgQgIOgNoM/WmUgaIA1OssFt3X7CIAe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wIAAEBN10l+SdevWg9SmcAxh3E4yhQ5ThtPAgAAQC2rTHHjuvUg1QkccxqHx0mexm4OAAAAvu46yfN0/cvWgxwKgWNu43Cc5EWSs8aTAAAAsEyXme7bWLce5JAIHLsy3c3xNI6tAAAAMFll2rWxajzHQRI4dk3oAAAAuO9WETZ2TuDYlyl0PExy3nYQAAAA9uQiyW/Cxn4IHPs2vbhyluTXJCeNpwEAAGBeV0leJbn0Msp+CRwtvY8dP2U6wnLcchwAAABubZ3pCMofETWaEjiWZHqB5WTz80Om52ZP4tlZAACA1tabn+skf2XaqXHlJZTl+H9eShWRDbbNMgAAAABJRU5ErkJggg==" + }, + "asset-23f2bfe9-e58c-4a56-98c6-fad59eecdf74": { + "id": "asset-23f2bfe9-e58c-4a56-98c6-fad59eecdf74", + "@created": "2018-09-06T20:01:50.445Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdzXFbZ5o24Ntdsx9OBANF0FQEhiIwtcPOZBX2liKQFIHk/akivDs7sSMgHIHYEQgTwWAi+L7FS5iSTIkECOA9P9dVpXLbrZae7lKTOPd5fhIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMCQ/B/l9T8P+kQn9AAAAABJRU5ErkJggg==" + }, + "asset-86d05b5e-1a4b-4979-95e9-7071b9923470": { + "id": "asset-86d05b5e-1a4b-4979-95e9-7071b9923470", + "@created": "2018-09-06T20:17:48.355Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdS3JT2bY27Pdk7PpZXwu2MkL1bVqQogXbVFVJ0wKgBUALgBbgrKiKswUoW4B3XRGp04KzTgv+v7Cmwdxl6zLX5XkiHGSSYI+ULHmtd445ZgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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kvw1z/JOAAAADov9cxc+PQThJu7Ag5juLl3uxBAQcAAECflaMpbks5nN1VsItTf+MSctx4Cwj3crn7CwEHAABAv739/pdwS7twY1WrgGa5eZXk2ltAuJezdj57kQg4AAAAeqt0bzytXcdIrJM87sP1yaV75Fm6wIWHe50IOAAAAPpMuHEYq3SdG9vKdfypWW6ukjyJkOMQztr57JGAAwAAoL+e1y5gBN41y82TZrnpXZBQukl+SNddwsM8FXAAAAD0l5tT7q9Nd1PKq9qFfEuz3LTNcvM4ho8+1E8CDgAAgB7av/6SO1un0k0p97U3fLR3nSYD4YgKAABATzW1CxioRbpwY3DHPkog8ySOrNxH839qVwAAAMC1HE+5m92RlKvahTxECWYet/PZ2yQva9czJDo4AAAAGIP3Qw83vvImOjnuRMABAADQT2Yx3M3rdj772M5nZ7ULeagyf+WP6OK5EwEHAABAP9m9v7vzJJ/b+exp7ULuq53PfknyMWaw3JmAAwAAoJ90cNxPk+RDmWExGO181rTz2cckr2vXMlDbf9SuAAAAgOu189n/i538h1gledYsN70Oi9r57FF0bTzUQgcHAABAf61qFzBw5+mOrPR2lkU7n71I8jnCjYf6JOAAAADor99qFzACZ0k+liChV9r57DLJZe06RuLKERUAAIAec0zloF41y8272kW081mTLtgY7DDUnlk0y82FDg4AAIB+e1+7gBF5W7omqinhxscINw7pTeIWFQAAgL57l2Rbu4gReVEr5NgbJtrbmSADtGiWm22SOKICAADQc+18dp7uwZjDWeWEN6y4KeUo2iQ/7P4f6uAAAADouWa5WaXr5OBwztMNHz164CDcOJon+wGVgAMAAGAAmuXmVZJF7TpG5lGOHHIIN47mollu1vufcEQFAABgQMr8iBe16xiZdb7qBjgE4cbRXDTLzeLrT+rgAAAAGJBmublI8qp2HSPzKMmHQ/6Ewo2jaJM8vi7cSAQcAAAAg9MsN++SPE43KJPDOD/U7SrlyMuHCDcOaZFuoOj6pi9wRAUAAGDA2vnsRZLn6YZm8nCL0iVzLyXccBXs4SySvNldBfstAg4AAIARaOezsyRPk/w73cO17oH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VAHRMwAEAwCSVJabz8vJF3j+VN0S7tIHGHyk3Zc22++ZDnwAwdAIOAAA4UXZ7nL58Vl73LQDZlde/5W5Hk31MwGQJOAAA4Inu7WM6fTu5W1D9Er+dfrvcLZgWYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAY/x8UMsYnnxnA1AAAAABJRU5ErkJggg==" + }, + "asset-58ae3445-4001-45e7-9603-19ec8d41e64e": { + "id": "asset-58ae3445-4001-45e7-9603-19ec8d41e64e", + "@created": "2018-09-06T20:18:30.635Z", + "type": "dataurl", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOzdS3IbV7Yu4FWO0z95R1BwRPaLGoGhERTZzU6RIzA1ApIjID0CsjrZJWsEokcgVD8jjBrBzRrBvY3ctKgHKYBIYOfj+yIUdvnoUMuWB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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJz+P2YumGHSvt1NAAAAAElFTkSuQmCC" + } + } + } + } +] diff --git a/x-pack/plugins/canvas/server/sample_data/flights_saved_objects.json b/x-pack/plugins/canvas/server/sample_data/flights_saved_objects.json new file mode 100644 index 0000000000000..b1d0e25e89b15 --- /dev/null +++ b/x-pack/plugins/canvas/server/sample_data/flights_saved_objects.json @@ -0,0 +1,510 @@ +[ + { + "id": "workpad-a474e74b-aedc-47c3-894a-db77e62c41e0", + "type": "canvas-workpad", + "updated_at": "2018-10-22T14:17:04.040Z", + "version": 1, + "attributes": { + "name": "[Flights] Overview", + "id": "workpad-a474e74b-aedc-47c3-894a-db77e62c41e0", + "width": 1280, + "height": 720, + "page": 0, + "pages": [ + { + "id": "page-261eb6da-4ab2-400d-b1be-b72cbbcf58ff", + "style": { "background": "#f4f4f4" }, + "transition": { "name": "" }, + "elements": [ + { + "id": "element-5929e53d-4dad-49a5-a432-8de3b1d05b82", + "position": { + "left": 855.5, + "top": 185.312409153891, + "width": 407, + "height": 140.250363384436, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#FFFFFF\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-60c9ac53-47a7-4ec2-a975-9d10bbe038bb", + "position": { + "left": 855.5, + "top": 26, + "width": 407, + "height": 140.250363384436, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#FFFFFF\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-f573cae3-0d2b-4265-9a6f-314c865c4e5c", + "position": { + "left": 423.5251242870414, + "top": 26, + "width": 407, + "height": 140.250363384436, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#FFFFFF\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-0f5b4a1f-8107-4f84-a12f-755b41dd1ca9", + "position": { + "left": 1035, + "top": 50.5, + "width": 197, + "height": 99, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(DISTINCT OriginAirportID) as total_airports\nFROM kibana_sample_data_flights\"\n| math \"total_airports\"\n| metric \"AIRPORTS\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"right\" color=\"#43988F\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"right\" color=\"#43988F\" weight=\"normal\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-096136f5-279d-4d29-a784-1bd33243db29", + "position": { + "left": 443.5, + "top": 275.250363384436, + "width": 131, + "height": 33, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"### LONGEST FLIGHT\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=10 align=\"left\" color=\"#FFFFFF\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-3d1e17df-6310-4968-8323-f0bcabf593e3", + "position": { + "left": 1042.5, + "top": 211.84415880749052, + "width": 191, + "height": 92.812409153891, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT MAX(DistanceMiles) as max_distance\nFROM kibana_sample_data_flights\nWHERE DistanceMiles > 0\"\n| math \"max_distance\"\n| formatNumber \"00.0a\"\n| metric \"MILES\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"right\" color=\"#EFB341\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"right\" color=\"#EFB341\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-3604ef7b-8f10-4a5f-a4b9-f123e32960dd", + "position": { + "left": 1036, + "top": -51, + "width": 246, + "height": 50, + "angle": 0 + }, + "expression": "\ntimefilterControl compact=true column=\"timestamp\"\n| render\n", + "filter": "timefilter from=\"now-24h\" to=now column=timestamp" + }, + { + "id": "element-08333e7c-2986-4ee7-b07c-8c07be09c751", + "position": { + "left": -1, + "top": 386.250363384436, + "width": 1283, + "height": 358, + "angle": 0 + }, + "expression": "\nimage mode=\"cover\" dataurl={asset \"asset-2da3aba1-6e0f-4a79-879e-0ab3cfa170d6\"}\n| render\n" + }, + { + "id": "element-90336033-8ca4-4bf5-ad20-94162aec28b6", + "position": { + "left": 26, + "top": 26, + "width": 375.5, + "height": 672.125545076654, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#FFFFFF\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-e0ff80ac-8372-421f-918e-fd9f257b2f32", + "position": { + "left": -27, + "top": -1, + "width": 462, + "height": 699.125545076654, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-9e41d208-ec45-472d-a118-e2e2c811291b\"}\n| render\n" + }, + { + "id": "element-0d68f8e7-dc04-4358-b459-127c42e274b4", + "position": { + "left": 26, + "top": 145, + "width": 375.5, + "height": 153.375181692218, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"rgba(255,255,255,0)\" border=\"#48A8E0\" borderWidth=2 maintainAspect=true\n| render\n" + }, + { + "id": "element-f56821a4-4fd8-4de1-8bb7-6722c9ee5334", + "position": { + "left": 26, + "top": 56, + "width": 375.5, + "height": 44, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"TIME IN AIR\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=36 align=\"center\" color=\"#48A8E0\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-210b8adc-c5fa-412b-b280-146863fc9230", + "position": { + "left": 26, + "top": 330.562772538327, + "width": 375.5, + "height": 153.375181692218, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"rgba(255,255,255,0)\" border=\"#48A8E0\" borderWidth=2 maintainAspect=true\n| render\n", + "filter": null + }, + { + "id": "element-002f28e5-a132-4cbb-b1cb-f13f1cdeaac2", + "position": { + "left": 26, + "top": 509.562772538327, + "width": 375.5, + "height": 153.375181692218, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"rgba(255,255,255,0)\" border=\"#48A8E0\" borderWidth=2 maintainAspect=true\n| render\n", + "filter": null + }, + { + "id": "element-8a1248fa-2c2e-4be4-9e2b-95198279144d", + "position": { + "left": 26, + "top": 366.062772538327, + "width": 375.5, + "height": 65, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT FLOOR((SUM(FlightTimeMin) % 1440) / 60) as hours\nFROM kibana_sample_data_flights\"\n| math \"hours\"\n| formatNumber \"00\"\n| metric\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=48 align=\"center\" color=\"#48A8E0\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-2b890a9d-2f4d-4c4d-8275-ac371190d486", + "position": { + "left": 173.25, + "top": 232.000363384436, + "width": 81, + "height": 39, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"DAYS\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"center\" color=\"#48A8E0\" weight=\"normal\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-b253908c-b8bd-4ea1-a35f-eae5eb1ae63a", + "position": { + "left": 26, + "top": 179.750363384436, + "width": 375.5, + "height": 65, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT FLOOR(SUM(FlightTimeMin)/1440) as total_days\nFROM kibana_sample_data_flights\"\n| math \"total_days\"\n| formatNumber \"00a\"\n| metric\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=48 align=\"center\" color=\"#48A8E0\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-9fb07d44-c181-4d03-a431-492d1977a79c", + "position": { + "left": 26, + "top": 550.750363384436, + "width": 375.5, + "height": 54, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT ((SUM(FlightTimeMin) % 1440) / 60 ) as minutes\nFROM kibana_sample_data_flights\"\n| math \"minutes\"\n| formatNumber \"00\"\n| metric\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=48 align=\"center\" color=\"#48A8E0\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-60733afe-abce-4449-b0dd-5310d8ffffce", + "position": { + "left": 173.25, + "top": 416.9379542305451, + "width": 81, + "height": 39, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"HOURS\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"center\" color=\"#48A8E0\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-b7f3b9e3-2cb2-49e7-8768-b41afe0b49b1", + "position": { + "left": 173.25, + "top": 599.750363384436, + "width": 81, + "height": 39, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"MINS\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"center\" color=\"#48A8E0\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-526d29d1-8d5e-4c15-a5c2-fa23edf580ac", + "position": { + "left": 423.5251242870414, + "top": 185.312409153891, + "width": 407, + "height": 140.250363384436, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#FFFFFF\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-1d11f5a4-95a3-4a50-9191-6beb61bb8fbc", + "position": { + "left": 855.5, + "top": 343.687590846109, + "width": 407, + "height": 140.250363384436, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#FFFFFF\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-cfe6524e-b201-439a-974c-037406b760f6", + "position": { + "left": 616.5251242870414, + "top": 50.5, + "width": 187, + "height": 99, + "angle": 0 + }, + "expression": "\nfilters\n| essql query=\"SELECT COUNT(*) as total_flights\nFROM kibana_sample_data_flights\"\n| math \"total_flights\"\n| formatNumber \"0a]\"\n| metric \"FLIGHTS\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"right\" color=\"#4184A5\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"right\" color=\"#4184A5\" weight=\"normal\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-e162c0b4-9393-43f9-8324-0263f40b4b85", + "position": { + "left": 439.52512428704136, + "top": 40.687590846109, + "width": 78.47487571295858, + "height": 59.312409153891, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-520a03a1-f522-4a18-ad4a-b84e87e4dc44\"}\n| render\n" + }, + { + "id": "element-0c37705e-004f-49c6-abda-9847b762c9f2", + "position": { + "left": 603.5251242870414, + "top": 211.84415880749054, + "width": 200, + "height": 100, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT MIN(DistanceMiles) as min_distance\nFROM kibana_sample_data_flights\nWHERE DistanceMiles > 0\"\n| math \"min_distance\"\n| formatNumber \"00.0a\"\n| metric \"MILES\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"right\" color=\"#7EA030\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"right\" color=\"#7EA030\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-dd0f8a2e-1142-4140-bedb-913cae044204", + "position": { + "left": 439.52512428704136, + "top": 205.68795423054502, + "width": 78.47487571295858, + "height": 45.812409153891, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-08aa2e8f-6c3b-428f-82de-581004292cf0\"}\n| render\n" + }, + { + "id": "element-a81c83c7-8b61-4a1f-8da5-3270821c0089", + "position": { + "left": 435, + "top": 267.875181692218, + "width": 237, + "height": 30.5, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"SHORTEST FLIGHT\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"left\" color=\"#7EA030\" weight=\"normal\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-79393fba-8da9-4884-a280-e2a87e163f1a", + "position": { + "left": 870.7876864305622, + "top": 40.687590846109, + "width": 78.47487571295858, + "height": 59.312409153891, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-11a8022c-c1ac-4bbd-857a-db95fb8ca452\"}\n| render\n" + }, + { + "id": "element-ec914936-fc84-4915-82f7-1ca6b37ddc03", + "position": { + "left": 870.7876864305622, + "top": 262.500363384436, + "width": 237, + "height": 30.5, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"LONGEST FLIGHT\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"left\" color=\"#EFB341\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-8aae2d27-7a8c-4851-9b9c-a66e5b1dda9f", + "position": { + "left": 870.7876864305622, + "top": 198.93795423054502, + "width": 78.47487571295858, + "height": 59.312409153891, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-e73f53c5-fdcc-4232-bd6f-85a06281cf6c\"}\n| render\n", + "filter": null + }, + { + "id": "element-bca09809-6f73-4363-9732-5c86bb28f2f9", + "position": { + "left": 423.5251242870414, + "top": 343.687590846109, + "width": 407, + "height": 140.250363384436, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#FFFFFF\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-b6e7d5e1-3221-4274-ac97-5e0387d090c0", + "position": { + "left": 1033.5, + "top": 365.46897711527254, + "width": 200, + "height": 96.687590846109, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(*) as total_cancellations\nFROM kibana_sample_data_flights\nWHERE Cancelled = true\"\n| math \"total_cancellations\"\n| formatNumber \"0a\"\n| metric \"CANCELLATIONS\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"right\" color=\"#D88734\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"right\" color=\"#D88734\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-7ac04e37-e7aa-42cf-9afe-314ebd6de9d6", + "position": { + "left": 870.7876864305622, + "top": 364.4379542305451, + "width": 78.47487571295858, + "height": 59.312409153891, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-63a49130-fb96-4576-ac31-d86c934234d1\"}\n| render\n", + "filter": null + }, + { + "id": "element-0cf4194e-d460-40a1-a023-775f1946eb16", + "position": { + "left": 600.5251242870414, + "top": 364.4379542305451, + "width": 206, + "height": 105, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(DISTINCT OriginCountry) as total_countries\nFROM kibana_sample_data_flights\"\n| math \"total_countries\"\n| metric \"COUNTRIES\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"right\" color=\"#CB3072\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=24 align=\"right\" color=\"#CB3072\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-41734b58-e7aa-4888-980c-677420b1c736", + "position": { + "left": 439.52512428704136, + "top": 362.06277253832695, + "width": 78.47487571295858, + "height": 59.312409153891, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-4843e3bb-6cb0-43b7-b076-deea9a901fc6\"}\n| render\n", + "filter": null + } + ] + } + ], + "colors": [ + "#37988d", + "#c19628", + "#b83c6f", + "#3f9939", + "#1785b0", + "#ca5f35", + "#45bdb0", + "#f2bc33", + "#e74b8b", + "#4fbf48", + "#1ea6dc", + "#fd7643", + "#72cec3", + "#f5cc5d", + "#ec77a8", + "#7acf74", + "#4cbce4", + "#fd986f", + "#a1ded7", + "#f8dd91", + "#f2a4c5", + "#a6dfa2", + "#86d2ed", + "#fdba9f", + "#000000", + "#444444", + "#777777", + "#BBBBBB", + "rgba(255,255,255,0)" + ], + "@timestamp": "2018-10-31T17:32:39.068Z", + "@created": "2018-10-31T17:25:59.027Z", + "assets": { + "asset-2da3aba1-6e0f-4a79-879e-0ab3cfa170d6": { + "id": "asset-2da3aba1-6e0f-4a79-879e-0ab3cfa170d6", + "@created": "2018-10-13T16:17:38.860Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTUyNC4wOCAzNTUuMTkiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDpub25lO30uY2xzLTJ7Y2xpcC1wYXRoOnVybCgjY2xpcC1wYXRoKTt9LmNscy0xMCwuY2xzLTMsLmNscy00LC5jbHMtNSwuY2xzLTYsLmNscy03e3N0cm9rZTojYWRlZmZmO30uY2xzLTEwLC5jbHMtMywuY2xzLTQsLmNscy01LC5jbHMtNiwuY2xzLTcsLmNscy04LC5jbHMtOXtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9LmNscy0ze2ZpbGw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NywxLjEzbDMuMzYsOC40MUExLjc5LDEuNzksMCwwLDEsMTE4NSw1MjYuNjNaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0yNjQuNykiLz48L2c+PC9nPjwvZz48L3N2Zz4=" + }, + "asset-9e41d208-ec45-472d-a118-e2e2c811291b": { + "id": "asset-9e41d208-ec45-472d-a118-e2e2c811291b", + "@created": "2018-10-13T16:33:38.197Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDU5LjQ0IDI5NS45NSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmU7fS5jbHMtMntjbGlwLXBhdGg6dXJsKCNjbGlwLXBhdGgpO30uY2xzLTN7b3BhY2l0eTowLjQ7fS5jbHMtNHtmaWxsOiNhZGVmZmY7fTwvc3R5bGU+PGNsaXBQYXRoIGlkPSJjbGlwLXBhdGgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTUzKSI+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIyOC4yIiB3aWR0aD0iNDY0LjQ5IiBoZWlnaHQ9IjM4OC4yNiIvPjwvY2xpcFBhdGg+PC9kZWZzPjx0aXRsZT5DbG91ZHM8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGcgY2xhc3M9ImNscy0yIj48ZyBjbGFzcz0iY2xzLTMiPjxwYXRoIGNsYXNzPSJjbHMtNCIgZD0iTTE3NS42NSwzMzUuN2ExNiwxNiwwLDAsMC02LDEuMTUsMjIuMSwyMi4xLDAsMCwwLTM2LjE3LTYuNiwzNC44NywzNC44NywwLDEsMC02OS40NCw2LjM1QT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iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1Ni4zMSA1Ni4zMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7c3Ryb2tlOiMwMDc4YTA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPlBsYW5lIEljb248L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNDkuNTEsNDguOTMsNDEuMjYsMjIuNTIsNTMuNzYsMTBhNS4yOSw1LjI5LDAsMCwwLTcuNDgtNy40N2wtMTIuNSwxMi41TDcuMzgsNi43OUEuNy43LDAsMCwwLDYuNjksN0wxLjIsMTIuNDVhLjcuNywwLDAsMCwwLDFMMTkuODUsMjlsLTcuMjQsNy4yNC03Ljc0LS42YS43MS43MSwwLDAsMC0uNTMuMkwxLjIxLDM5YS42Ny42NywwLDAsMCwuMDgsMUw5LjQ1LDQ2bC4wNywwYy4xMS4xMy4yMi4yNi4zNC4zOHMuMjUuMjMuMzguMzRhLjM2LjM2LDAsMCwwLDAsLjA3TDE2LjMzLDU1YS42OC42OCwwLDAsMCwxLC4wN0wyMC40OSw1MmEuNjcuNjcsMCwwLDAsLjE5LS41NGwtLjU5LTcuNzQsNy4yNC03LjI0TDQyLjg1LDU1LjA2YS42OC42OCwwLDAsMCwxLDBsNS41LTUuNUEuNjYuNjYsMCwwLDAsNDkuNTEsNDguOTNaIi8+PC9nPjwvZz48L3N2Zz4=" + }, + "asset-08aa2e8f-6c3b-428f-82de-581004292cf0": { + "id": "asset-08aa2e8f-6c3b-428f-82de-581004292cf0", + "@created": "2018-10-13T16:42:03.959Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MC44MyAyMi4zNiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmU7c3Ryb2tlOiM3NGEzMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPlNob3J0IGxlbmd0aCBJY29uPC90aXRsZT48ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj48ZyBpZD0iTGF5ZXJfMS0yIiBkYXRhLW5hbWU9IkxheWVyIDEiPjxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjEiIHgyPSIxIiB5Mj0iMjIuMzYiLz48bGluZSBjbGFzcz0iY2xzLTEiIHgxPSI0OS44MyIgeDI9IjQ5LjgzIiB5Mj0iMjIuMzYiLz48bGluZSBjbGFzcz0iY2xzLTEiIHgxPSI1LjY5IiB5MT0iMTEuMTgiIHgyPSIxMC4xNSIgeTI9IjExLjE4Ii8+PGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iMTcuMTciIHkxPSIxMS4xOCIgeDI9IjIxLjYzIiB5Mj0iMTEuMTgiLz48bGluZSBjbGFzcz0iY2xzLTEiIHgxPSIyOC42NSIgeTE9IjExLjE4IiB4Mj0iMzMuMTEiIHkyPSIxMS4xOCIvPjxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjQwLjEzIiB5MT0iMTEuMTgiIHgyPSI0NC41OSIgeTI9IjExLjE4Ii8+PC9nPjwvZz48L3N2Zz4=" + }, + "asset-11a8022c-c1ac-4bbd-857a-db95fb8ca452": { + "id": "asset-11a8022c-c1ac-4bbd-857a-db95fb8ca452", + "@created": "2018-10-13T16:44:44.648Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOC4zOSA1Ny41NyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7c3Ryb2tlOiMwMTliOGY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkxvY2F0aW9uIEljb248L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTkuMTksMUExOC4xOSwxOC4xOSwwLDAsMCwyLjk0LDI3LjM2aDBhMTkuNTEsMTkuNTEsMCwwLDAsMSwxLjc4TDE5LjE5LDU1LjU3LDM0LjM4LDI5LjIxQTE4LjE5LDE4LjE5LDAsMCwwLDE5LjE5LDFabTAsMjMuMjlhNS41Myw1LjUzLDAsMSwxLDUuNTMtNS41M0E1LjUzLDUuNTMsMCwwLDEsMTkuMTksMjQuMjlaIi8+PC9nPjwvZz48L3N2Zz4=" + }, + "asset-e73f53c5-fdcc-4232-bd6f-85a06281cf6c": { + "id": "asset-e73f53c5-fdcc-4232-bd6f-85a06281cf6c", + "@created": "2018-10-13T16:49:36.056Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3Ny40NiAyMi4zNiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmU7c3Ryb2tlOiNmOWIxMTA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkxvbmcgbGVuZ3RoIEljb248L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iMSIgeDI9IjEiIHkyPSIyMi4zNiIvPjxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjUuNjkiIHkxPSIxMS4xOCIgeDI9IjEwLjE1IiB5Mj0iMTEuMTgiLz48bGluZSBjbGFzcz0iY2xzLTEiIHgxPSIxNy4xNyIgeTE9IjExLjE4IiB4Mj0iMjEuNjMiIHkyPSIxMS4xOCIvPjxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjI4LjY1IiB5MT0iMTEuMTgiIHgyPSIzMy4xMSIgeTI9IjExLjE4Ii8+PGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iNDAuMTMiIHkxPSIxMS4xOCIgeDI9IjQ0LjU5IiB5Mj0iMTEuMTgiLz48bGluZSBjbGFzcz0iY2xzLTEiIHgxPSI1MS42MSIgeTE9IjExLjE4IiB4Mj0iNTYuMDgiIHkyPSIxMS4xOCIvPjxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjYzLjA5IiB5MT0iMTEuMTgiIHgyPSI2Ny41NiIgeTI9IjExLjE4Ii8+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMSIgcG9pbnRzPSI2OS41NyA1LjIyIDc2LjA1IDExLjcgNjkuNTcgMTguMTgiLz48L2c+PC9nPjwvc3ZnPg==" + }, + "asset-63a49130-fb96-4576-ac31-d86c934234d1": { + "id": "asset-63a49130-fb96-4576-ac31-d86c934234d1", + "@created": "2018-10-13T16:51:32.983Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMC43NiAzMC43NiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmU7c3Ryb2tlOiNmZTk5MDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPlggSWNvbjwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PGcgaWQ9IkxheWVyXzEtMiIgZGF0YS1uYW1lPSJMYXllciAxIj48bGluZSBjbGFzcz0iY2xzLTEiIHgxPSIzMC4wNSIgeTE9IjAuNzEiIHgyPSIwLjcxIiB5Mj0iMzAuMDUiLz48bGluZSBjbGFzcz0iY2xzLTEiIHgxPSIwLjcxIiB5MT0iMC43MSIgeDI9IjMwLjA1IiB5Mj0iMzAuMDUiLz48L2c+PC9nPjwvc3ZnPg==" + }, + "asset-4843e3bb-6cb0-43b7-b076-deea9a901fc6": { + "id": "asset-4843e3bb-6cb0-43b7-b076-deea9a901fc6", + "@created": "2018-10-13T16:52:44.303Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NC42MiA1MS4wMyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fS5jbHMtMSwuY2xzLTJ7c3Ryb2tlOiNmMzY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9LmNscy0ye2ZpbGw6bm9uZTt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkZsYWcgSWNvbjwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PGcgaWQ9IkxheWVyXzEtMiIgZGF0YS1uYW1lPSJMYXllciAxIj48cG9seWdvbiBjbGFzcz0iY2xzLTEiIHBvaW50cz0iNDIuOTMgMjguMTUgMSAyOC4xNSAxIDEgNDIuOTMgMSAzNS40NyAxNC41OCA0Mi45MyAyOC4xNSIvPjxsaW5lIGNsYXNzPSJjbHMtMiIgeDE9IjEiIHkxPSIxIiB4Mj0iMSIgeTI9IjUxLjAzIi8+PC9nPjwvZz48L3N2Zz4=" + } + } + } + } +] diff --git a/x-pack/plugins/canvas/server/sample_data/index.js b/x-pack/plugins/canvas/server/sample_data/index.js new file mode 100644 index 0000000000000..212d9f5132831 --- /dev/null +++ b/x-pack/plugins/canvas/server/sample_data/index.js @@ -0,0 +1,12 @@ +/* + * 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 ecommerceSavedObjects from './ecommerce_saved_objects.json'; +import flightsSavedObjects from './flights_saved_objects.json'; +import webLogsSavedObjects from './web_logs_saved_objects.json'; +import { loadSampleData } from './load_sample_data'; + +export { loadSampleData, ecommerceSavedObjects, flightsSavedObjects, webLogsSavedObjects }; diff --git a/x-pack/plugins/canvas/server/sample_data/load_sample_data.js b/x-pack/plugins/canvas/server/sample_data/load_sample_data.js new file mode 100644 index 0000000000000..f2f462ed168d6 --- /dev/null +++ b/x-pack/plugins/canvas/server/sample_data/load_sample_data.js @@ -0,0 +1,32 @@ +/* + * 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 { ecommerceSavedObjects, flightsSavedObjects, webLogsSavedObjects } from './index'; + +export function loadSampleData(server) { + const now = new Date(); + const nowTimestamp = now.toISOString(); + function updateCanvasWorkpadTimestamps(savedObjects) { + return savedObjects.map(savedObject => { + if (savedObject.type === 'canvas-workpad') { + savedObject.attributes['@timestamp'] = nowTimestamp; + savedObject.attributes['@created'] = nowTimestamp; + } + + return savedObject; + }); + } + + server.addSavedObjectsToSampleDataset( + 'ecommerce', + updateCanvasWorkpadTimestamps(ecommerceSavedObjects) + ); + server.addSavedObjectsToSampleDataset( + 'flights', + updateCanvasWorkpadTimestamps(flightsSavedObjects) + ); + server.addSavedObjectsToSampleDataset('logs', updateCanvasWorkpadTimestamps(webLogsSavedObjects)); +} diff --git a/x-pack/plugins/canvas/server/sample_data/web_logs_saved_objects.json b/x-pack/plugins/canvas/server/sample_data/web_logs_saved_objects.json new file mode 100644 index 0000000000000..5b4dd9c19fdf3 --- /dev/null +++ b/x-pack/plugins/canvas/server/sample_data/web_logs_saved_objects.json @@ -0,0 +1,746 @@ +[ + { + "id": "workpad-5563cc40-5760-4afe-bf33-9da72fac53b7", + "type": "canvas-workpad", + "updated_at": "2018-10-22T12:41:57.071Z", + "version": 1, + "attributes": { + "name": "[Logs] Web Traffic", + "id": "workpad-5563cc40-5760-4afe-bf33-9da72fac53b7", + "width": 1280, + "height": 720, + "page": 0, + "pages": [ + { + "id": "page-e125ca0b-f6b2-437c-bc4c-918c468fbd9f", + "style": { "background": "#000000" }, + "transition": { "name": "" }, + "elements": [ + { + "id": "element-950e478d-39be-4630-9ebe-d46578951025", + "position": { + "left": 249, + "top": 574.3671875, + "width": 1013.5, + "height": 131.2578125, + "angle": 0 + }, + "expression": "\nshape \"square\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=false\n| render\n" + }, + { + "id": "element-f6d67bd9-7edf-4a4c-944e-019eb2a89e46", + "position": { + "left": 249, + "top": 426.5, + "width": 1013.5, + "height": 131.2578125, + "angle": 0 + }, + "expression": "\nshape \"square\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=false\n| render\n" + }, + { + "id": "element-fa296ebc-3ede-44f1-a027-f9aa0a8ba58b", + "position": { + "left": 249, + "top": 275.87109375, + "width": 1013.5, + "height": 131.2578125, + "angle": 0 + }, + "expression": "\nshape \"square\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=false\n| render\n" + }, + { + "id": "element-21844047-2818-4071-bb9b-59cc68139c5f", + "position": { + "left": 589, + "top": 110.7578125, + "width": 318, + "height": 148.3046875, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#414143\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-a2136689-36d7-4f61-a9c7-5e4e3c89f2ca", + "position": { + "left": 924.5, + "top": 109.28515625, + "width": 318, + "height": 148.3046875, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#414143\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-2e02449b-433e-47c4-84ab-6f702619e21a", + "position": { + "left": 249, + "top": 109.6328125, + "width": 318, + "height": 148.3046875, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#414143\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-0f10bedf-728c-4207-96b8-bbb3021a91f1", + "position": { + "left": 245, + "top": 12, + "width": 1017.5, + "height": 65.90625, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#221F20\" border=\"#777777\" borderWidth=0 maintainAspect=false\n| render\n", + "filter": null + }, + { + "id": "element-4130544d-054a-4600-928a-39f1423788c6", + "position": { + "left": 13.5, + "top": 12, + "width": 211, + "height": 693.625, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#221F20\" border=\"#777777\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-57ffa8a7-f3f3-45bf-a35a-025a7647b8e7", + "position": { + "left": 19.25, + "top": 88.5625, + "width": 109, + "height": 7.25, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#CFD0D2\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=false\n| render\n" + }, + { + "id": "element-4562db88-edbe-45b2-86aa-c549f2e25c98", + "position": { + "left": 671.5, + "top": 303.2421875, + "width": 574, + "height": 89.13671875, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#221F20\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=false\n| render\n" + }, + { + "id": "element-6556fa13-4557-47bc-bb9f-08a525604e13", + "position": { + "left": 56.25, + "top": 13.625, + "width": 168.25, + "height": 149, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#221F20\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=true\n| render\n" + }, + { + "id": "element-671589a9-54b6-46a1-b5e7-363b9d539795", + "position": { + "left": 258, + "top": 24.8125, + "width": 28, + "height": 36, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={\nasset {\nfilters | essql\nquery=\"SELECT host,response\nFROM kibana_sample_data_logs\nWHERE host='artifacts.elastic.co'\nORDER BY timestamp DESC\nLIMIT 1\"|\nalterColumn \"response\" type=\"number\" |\ngetCell \"response\" |\nif {compare lt to=400} then=\"asset-0a807073-d056-4c7b-9bf4-225b71e47243\" else=\"asset-1343672d-7c02-4402-929e-0f8fef69cddd\"\n}\n} | render\n" + }, + { + "id": "element-d98c4bb0-f9ae-4e4a-838d-572b6919a3a2", + "position": { + "left": 20.375, + "top": 68, + "width": 60.25, + "height": 27.8125, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"5XX\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=18 align=\"left\" color=\"#CFD0D2\" weight=\"normal\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-11de34da-7783-4d09-b22f-4ec1f8c957ea", + "position": { + "left": 573, + "top": 459.5, + "width": 79, + "height": 82, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT SUM(bytes) as total_bytes, host\nFROM kibana_sample_data_logs\nGROUP BY host\"\n| pointseries color=\"host\" size=\"total_bytes\"\n| pie hole=60 labels=false legend=false palette={palette \"#346822\" \"#57993F\" \"#C3F99C\" \"#6CBD38\" gradient=true}\n| render\n" + }, + { + "id": "element-a2e808f6-1b2e-4f84-931e-6c38424c5480", + "position": { + "left": 289.5, + "top": 29.4375, + "width": 165, + "height": 26.75, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT host\nFROM kibana_sample_data_logs\nWHERE host='artifacts.elastic.co'\nORDER BY timestamp DESC\nLIMIT 1\"\n| markdown {getCell \"host\"}\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=12 align=\"left\" color=\"#CFD0D2\" size=18 weight=\"lighter\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-bc35a3fe-c896-4898-a7f3-e5778958d6b0", + "position": { + "left": 263.25, + "top": 436.25, + "width": 302, + "height": 110, + "angle": 0 + }, + "expression": "\nfilters\n| essql query=\"SELECT SUM(bytes) as total_bytes\nFROM kibana_sample_data_logs\"\n| math \"total_bytes\"\n| formatNumber \"0.00b\"\n| metric \"BYTES TRANSFERRED\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"left\" color=\"#FFFFFF\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=30 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-a684991f-f179-4fcc-b474-5ed71b0a6f3e", + "position": { + "left": 264.5, + "top": 586.5, + "width": 290.5, + "height": 104, + "angle": 0 + }, + "expression": "\nfilters\n| essql query=\"SELECT COUNT(timestamp) as total_visitors\nFROM kibana_sample_data_logs\"\n| math \"total_visitors\"\n| metric \"TOTAL VISITORS\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"left\" color=\"#FFFFFF\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=30 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-a8a8fa93-8e08-4e9f-b3e4-f4014543fe1f", + "position": { + "left": 515.5, + "top": 29.4375, + "width": 147, + "height": 25.75, + "angle": 0 + }, + "expression": "\nfilters\n| essql query=\"SELECT host\nFROM kibana_sample_data_logs\nWHERE host='www.elastic.co'\"\n| markdown {getCell \"host\"}\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=12 align=\"left\" color=\"#CFD0D2\" size=18 weight=\"lighter\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-38b281b2-ab5e-41ee-aa3e-e48bc3f778df", + "position": { + "left": 719, + "top": 28.625, + "width": 247, + "height": 26.75, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT host\nFROM kibana_sample_data_logs\nWHERE host='cdn.elastic-elastic-elastic.org'\"\n| markdown {getCell \"host\"}\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=12 align=\"left\" color=\"#CFD0D2\" size=18 weight=\"lighter\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-b481bf28-15d3-4f0b-b67b-e268c68bfe9c", + "position": { + "left": 1040.5, + "top": 28.8125, + "width": 209, + "height": 27.375, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT host\nFROM kibana_sample_data_logs\nWHERE host='elastic-elastic-elastic.org'\"\n| markdown {getCell \"host\"}\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=12 align=\"left\" color=\"#CFD0D2\" size=18 weight=\"lighter\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-ebb18e7a-ec51-4072-8453-58fbb883584b", + "position": { + "left": 677.5, + "top": 451.77734375, + "width": 578, + "height": 90.5, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT SUM(bytes) as total_bytes, HOUR_OF_DAY(timestamp) as hour, host\nFROM kibana_sample_data_logs\nGROUP BY host, HOUR_OF_DAY(timestamp)\nORDER BY HOUR_OF_DAY(timestamp) DESC\"\n| pointseries x=\"hour\" y=\"total_bytes\" color=\"host\"\n| plot defaultStyle={seriesStyle bars=0 lines=3 points=0} legend=false xaxis=false yaxis=false palette={palette \"#346822\" \"#57993F\" \"#C3F99C\" \"#6CBD38\" gradient=true}\n| render containerStyle={containerStyle backgroundColor=\"#221F20\"}\n" + }, + { + "id": "element-05a065b5-5f01-4502-9f91-fdfc3de1b456", + "position": { + "left": 677.5, + "top": 594.875, + "width": 578, + "height": 87.25, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(timestamp) as total_visitors, HOUR_OF_DAY(timestamp) as hour, host\nFROM kibana_sample_data_logs\nGROUP BY host, HOUR_OF_DAY(timestamp)\nORDER BY HOUR_OF_DAY(timestamp) DESC\"\n| pointseries x=\"hour\" y=\"total_visitors\" color=\"host\"\n| plot defaultStyle={seriesStyle bars=0 lines=3 points=0} legend=false xaxis=false yaxis=false palette={palette \"#C83C5C\" \"#D56F79\" \"#F6C4C5\" \"#F1A3A6\" gradient=true}\n| render containerStyle={containerStyle backgroundColor=\"#221F20\"}\n" + }, + { + "id": "element-ce1da927-2d4f-413e-85e9-4fd1106b5207", + "position": { + "left": 573, + "top": 604.5, + "width": 79, + "height": 82, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(timestamp) as total_visitors, host\nFROM kibana_sample_data_logs\nGROUP BY host\"\n| pointseries color=\"host\" size=\"total_visitors\"\n| pie hole=60 labels=false legend=false palette={palette \"#C83C5C\" \"#D56F79\" \"#F6C4C5\" \"#F1A3A6\" gradient=true}\n| render\n", + "filter": null + }, + { + "id": "element-acccadaf-3ce8-4ca6-8205-4529d42c1eef", + "position": { + "left": 677, + "top": 290.62109375, + "width": 562, + "height": 101.7578125, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(timestamp) as total_errors, timestamp\nFROM kibana_sample_data_logs\nWHERE tags LIKE '%warning%'\nGROUP BY timestamp\nORDER BY timestamp DESC\"\n| pointseries x=\"timestamp\" y=\"total_errors\"\n| plot defaultStyle={seriesStyle bars=\"1\" lines=\"0\" points=0 color=\"#E9782F\"} legend=false xaxis=false yaxis=false\n| render\n" + }, + { + "id": "element-1ae8ea70-993a-4503-916a-ce98717054f6", + "position": { + "left": 680.5, + "top": 290.62109375, + "width": 562, + "height": 101.7578125, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(timestamp) as total_errors, timestamp\nFROM kibana_sample_data_logs\nWHERE tags LIKE '%error%'\nGROUP BY timestamp\nORDER BY timestamp DESC\"\n| pointseries x=\"timestamp\" y=\"total_errors\"\n| plot defaultStyle={seriesStyle bars=\"1\" lines=\"0\" points=0 color=\"#F2C242\"} legend=false xaxis=false yaxis=false\n| render\n" + }, + { + "id": "element-70a2bca6-de31-4bee-81b1-b18528820645", + "position": { + "left": 264.5, + "top": 287.4375, + "width": 215, + "height": 104.94140625, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(timestamp) as total_errors\nFROM kibana_sample_data_logs\nWHERE tags LIKE '%warning%' OR tags LIKE '%error%'\"\n| math \"total_errors\"\n| metric \"TOTAL ISSUES\"\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=60 align=\"left\" color=\"#FFFFFF\" weight=\"normal\" underline=false italic=false}\nlabelFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=30 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-5b36cc1b-e0d6-4ddc-bf16-849fc41e1f16", + "position": { + "left": 562.5, + "top": 294.1953125, + "width": 100, + "height": 98.18359375, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(timestamp) as total_errors\nFROM kibana_sample_data_logs\nWHERE tags LIKE '%warning%' OR tags LIKE '%error%'\"\n| math \"sum(total_errors / 100)\"\n| revealImage origin=\"bottom\" image={asset \"asset-a1e77720-eb0b-42a0-a1c0-a159035e4f26\"} emptyImage={asset \"asset-d2cca77f-ba40-4acb-beff-38fab19c7b65\"}\n| render\n" + }, + { + "id": "element-9d5e9c4b-a7f5-459b-ab15-cfcd1d1d00c9", + "position": { + "left": 319.5, + "top": 120.17578125, + "width": 239, + "height": 39.68359375, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"MACHINE\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=30 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-d575ce4e-4aa5-4c54-993a-ca56890e434f", + "position": { + "left": 259.5, + "top": 171.69140625, + "width": 295.5, + "height": 80.12109375, + "angle": 0 + }, + "expression": "\nfilters\n| esdocs index=\"kibana_sample_data_logs\" sort=\"timestamp, desc\" fields=\"machine.os, machine.ram\" count=1\n| markdown \"**OS:** \" {getCell \"machine.os\"} \"\\\n **RAM:** \" {getCell \"machine.ram\" | formatNumber \"00.0b\"}\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=20 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render containerStyle={containerStyle padding=\"5px\"}\n" + }, + { + "id": "element-6f777a39-f934-4263-94ea-4f1d48f3849c", + "position": { + "left": 604.75, + "top": 171.69140625, + "width": 298, + "height": 83.74609375, + "angle": 0 + }, + "expression": "\nfilters\n| esdocs index=\"kibana_sample_data_logs\" sort=\"timestamp, desc\" fields=\"request\" count=1\n| markdown {getCell \"request\"}\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=20 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render containerStyle={containerStyle padding=\"5px\"}\n" + }, + { + "id": "element-7bfcdb0f-3533-4e50-a94a-f0487f374bff", + "position": { + "left": 941.5, + "top": 171.69140625, + "width": 284, + "height": 80.12109375, + "angle": 0 + }, + "expression": "\nfilters\n| esdocs index=\"kibana_sample_data_logs\" sort=\"timestamp, desc\" fields=\"geo.src, geo.dest\" count=1\n| markdown \"**ORIGIN COUNTRY:** \" {getCell \"geo.src\"} \"\\\n **DESTINATION:** \" {getCell \"geo.dest\"}\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=20 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render containerStyle={containerStyle padding=\"5px\"}\n" + }, + { + "id": "element-db2d0540-f734-421e-a9a5-7f6e9eef0bd7", + "position": { + "left": 986.5, + "top": -50.75, + "width": 285, + "height": 50, + "angle": 0 + }, + "expression": "\ntimefilterControl compact=true column=\"timestamp\"\n| render\n", + "filter": "timefilter from=\"now-24h\" to=now column=timestamp" + }, + { + "id": "element-a29b5f31-3204-4174-a511-5869648ccae0", + "position": { + "left": 73.75, + "top": 34.2578125, + "width": 133.25, + "height": 108.609375, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#C83C5B\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=true\n| render\n" + }, + { + "id": "element-c509ce21-e729-4aa5-b892-f4be441cde26", + "position": { + "left": 94.875, + "top": 64, + "width": 91, + "height": 49.125, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(*) as response_code\nFROM kibana_sample_data_logs\nWHERE response >= 500\"\n| math \"response_code\"\n| metric\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=48 align=\"center\" color=\"#FFFFFF\" weight=\"bold\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-d27ad090-4e58-4d9c-aef7-ccb8ca043758", + "position": { + "left": 20.375, + "top": 612.625, + "width": 109, + "height": 7.25, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#CFD0D2\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=false\n| render\n" + }, + { + "id": "element-99baa692-12dc-4d8d-9d78-05cb1aa7f7a8", + "position": { + "left": 21.1875, + "top": 436.25, + "width": 109, + "height": 7.25, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#CFD0D2\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=false\n| render\n" + }, + { + "id": "element-f0412810-61fb-4ab8-ba9f-a69ba344d4d7", + "position": { + "left": 20.25, + "top": 251.8125, + "width": 109, + "height": 7.25, + "angle": 0 + }, + "expression": "\nshape \"square\" fill=\"#CFD0D2\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=false\n| render\n" + }, + { + "id": "element-42587f38-4f6e-4a23-9ade-d0f23449efba", + "position": { + "left": 56.25, + "top": 183.4375, + "width": 168.25, + "height": 149, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#221F20\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=true\n| render\n" + }, + { + "id": "element-40d243ea-088c-4e17-b797-c47c8b94e282", + "position": { + "left": 56.25, + "top": 369, + "width": 168.25, + "height": 149, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#221F20\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=true\n| render\n" + }, + { + "id": "element-349aaa30-c164-4b95-b5aa-891a43e7b693", + "position": { + "left": 56.25, + "top": 541.5, + "width": 168.25, + "height": 149, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#221F20\" border=\"#CFD0D2\" borderWidth=2 maintainAspect=true\n| render\n" + }, + { + "id": "element-e92c89d9-4ddd-499c-8367-94271da02b3d", + "position": { + "left": 73.75, + "top": 203.6328125, + "width": 133.25, + "height": 108.609375, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#E9782F\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=true\n| render\n" + }, + { + "id": "element-f827824d-fc40-4905-937d-060e9748acce", + "position": { + "left": 74.75, + "top": 389.1953125, + "width": 133.25, + "height": 108.609375, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#F2C242\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=true\n| render\n" + }, + { + "id": "element-f7e459a0-613e-43f4-9ced-d5f4ae6f3c47", + "position": { + "left": 74.75, + "top": 561.9453125, + "width": 133.25, + "height": 108.609375, + "angle": 0 + }, + "expression": "\nshape \"circle\" fill=\"#6CBD38\" border=\"rgba(255,255,255,0)\" borderWidth=0 maintainAspect=true\n| render\n" + }, + { + "id": "element-f5760f24-d9cb-42e8-ae60-13c60335f049", + "position": { + "left": 21.1875, + "top": 590.1875, + "width": 61.375, + "height": 25.8125, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"2XX\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=18 align=\"left\" color=\"#CFD0D2\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-5e9998b3-7c27-4f4a-8f61-6b857339e07e", + "position": { + "left": 21.1875, + "top": 413.59375, + "width": 50.625, + "height": 26.28125, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"3XX\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=18 align=\"left\" color=\"#CFD0D2\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-744e0e58-e1be-4919-a9fb-eaa46c5d8aaa", + "position": { + "left": 19.25, + "top": 228.4375, + "width": 54.5, + "height": 30.625, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"4XX\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=18 align=\"left\" color=\"#CFD0D2\" weight=\"normal\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-9f7bea99-8c0c-49b1-b8a3-9af26eb0466d", + "position": { + "left": 94.875, + "top": 228.4375, + "width": 91, + "height": 59, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(*) as response_code\nFROM kibana_sample_data_logs\nWHERE response >= 400 AND response < 500\"\n| math \"unique(response_code)\"\n| metric\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=48 align=\"center\" color=\"#FFFFFF\" weight=\"bold\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-607512ac-3d83-4d36-87c1-d5f13502f084", + "position": { + "left": 97.5, + "top": 418.25, + "width": 88.375, + "height": 59, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(*) as response_code\nFROM kibana_sample_data_logs\nWHERE response >= 300 AND response < 400\"\n| math \"response_code\"\n| metric\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=48 align=\"center\" color=\"#FFFFFF\" weight=\"bold\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-3cc56225-d739-4279-97f2-5c179fb013a5", + "position": { + "left": 94.875, + "top": 590.1875, + "width": 91, + "height": 59, + "angle": 0 + }, + "expression": "\nfilters\n| essql\nquery=\"SELECT COUNT(*) as response_code\nFROM kibana_sample_data_logs\nWHERE response >= 200 AND response < 300\"\n| math \"response_code\"\n| formatNumber \"0a\"\n| metric\nmetricFont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=48 align=\"center\" color=\"#FFFFFF\" weight=\"bold\" underline=false italic=false}\n| render\n" + }, + { + "id": "element-f7d5956f-287d-4ac6-bcfb-fca6f8ebe63e", + "position": { + "left": 479.5, + "top": 24, + "width": 28, + "height": 36, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={\nasset {\nfilters | essql\nquery=\"SELECT host,response\nFROM kibana_sample_data_logs\nWHERE host='www.elastic.co'\nORDER BY timestamp DESC\nLIMIT 1\"|\nalterColumn \"response\" type=\"number\" |\ngetCell \"response\" |\nif {compare lt to=400} then=\"asset-0a807073-d056-4c7b-9bf4-225b71e47243\" else=\"asset-1343672d-7c02-4402-929e-0f8fef69cddd\"\n}\n} | render\n", + "filter": null + }, + { + "id": "element-254cc607-c924-49f4-a7f7-737480b4a056", + "position": { + "left": 682.5, + "top": 24.5, + "width": 28, + "height": 36, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={\nasset {\nfilters | essql\nquery=\"SELECT host,response\nFROM kibana_sample_data_logs\nWHERE host='cdn.elastic-elastic-elastic.org'\nORDER BY timestamp DESC\nLIMIT 1\"|\nalterColumn \"response\" type=\"number\" |\ngetCell \"response\" |\nif {compare lt to=400} then=\"asset-0a807073-d056-4c7b-9bf4-225b71e47243\" else=\"asset-1343672d-7c02-4402-929e-0f8fef69cddd\"\n}\n} | render\n", + "filter": null + }, + { + "id": "element-96aa263d-8222-4adc-94ff-2277a1f55dff", + "position": { + "left": 1001.5, + "top": 24, + "width": 28, + "height": 36, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={\nasset {\nfilters | essql\nquery=\"SELECT host,response\nFROM kibana_sample_data_logs\nWHERE host='elastic-elastic-elastic.org'\nORDER BY timestamp DESC\nLIMIT 1\"|\nalterColumn \"response\" type=\"number\" |\ngetCell \"response\" |\nif {compare lt to=400} then=\"asset-0a807073-d056-4c7b-9bf4-225b71e47243\" else=\"asset-1343672d-7c02-4402-929e-0f8fef69cddd\"\n}\n} | render\n", + "filter": null + }, + { + "id": "element-618ced11-d0da-4603-ae0b-77a5bb35e6c4", + "position": { + "left": 263.25, + "top": 128.658203125, + "width": 45, + "height": 28.25, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-e9118351-dcc5-4a27-a7fc-f15eb308999b\"}\n| render\n" + }, + { + "id": "element-0f3c5e51-24b8-421e-b151-0c0229f80550", + "position": { + "left": 658.5, + "top": 119.525390625, + "width": 220, + "height": 37.3828125, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"REQUEST\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=30 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-98d5f63a-ef33-415a-a1ec-44a5564c239f", + "position": { + "left": 996.5, + "top": 117.525390625, + "width": 220, + "height": 43.68359375, + "angle": 0 + }, + "expression": "\nfilters\n| demodata\n| markdown \"GEO\"\nfont={font family=\"'Open Sans', Helvetica, Arial, sans-serif\" size=30 align=\"left\" color=\"#FFFFFF\" weight=\"lighter\" underline=false italic=false}\n| render\n", + "filter": null + }, + { + "id": "element-88f2579a-50af-4330-baaf-e751092588a3", + "position": { + "left": 604.75, + "top": 129.30859375, + "width": 45, + "height": 28.25, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-c2128a19-e5ba-450c-99c0-a68abbdfa684\"}\n| render\n", + "filter": null + }, + { + "id": "element-eed60428-2b80-4558-8bcc-40b516fa63d4", + "position": { + "left": 942.5, + "top": 124.7421875, + "width": 45, + "height": 29.25, + "angle": 0 + }, + "expression": "\nimage mode=\"contain\" dataurl={asset \"asset-86622ebc-32db-40fa-8310-262c85a10979\"}\n| render\n", + "filter": null + } + ] + } + ], + "colors": [ + "#37988d", + "#c19628", + "#b83c6f", + "#3f9939", + "#1785b0", + "#ca5f35", + "#45bdb0", + "#f2bc33", + "#e74b8b", + "#4fbf48", + "#1ea6dc", + "#fd7643", + "#72cec3", + "#f5cc5d", + "#ec77a8", + "#7acf74", + "#4cbce4", + "#fd986f", + "#a1ded7", + "#f8dd91", + "#f2a4c5", + "#a6dfa2", + "#86d2ed", + "#fdba9f", + "#000000", + "#444444", + "#777777", + "#BBBBBB", + "#FFFFFF", + "rgba(255,255,255,0)" + ], + "@timestamp": "2018-10-31T17:56:10.178Z", + "@created": "2018-10-31T17:53:56.695Z", + "assets": { + "asset-a1e77720-eb0b-42a0-a1c0-a159035e4f26": { + "id": "asset-a1e77720-eb0b-42a0-a1c0-a159035e4f26", + "@created": "2018-10-13T10:48:32.499Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MS41MyA4Ny4yOSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNkOTI4NTk7fS5jbHMtMntmaWxsOiNmOTcxMDA7fS5jbHMtM3tmaWxsOiNmOWMxMDA7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5GaXJlIENvbG9yPC90aXRsZT48ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj48ZyBpZD0iTGF5ZXJfMi0yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTMwLjc3LDBoMFM2MS41MywyNy43MSw2MS41Myw1Ni41M2MwLDE5LjI3LTEzLjc3LDMwLjc3LTMwLjc3LDMwLjc3aDBBMzAuOCwzMC44LDAsMCwxLDAsNTYuNTNDMCwyOC42OCwzMC43NywwLDMwLjc3LDBaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMzAuNzcsMjBoMHMyMy43LDIxLjM0LDIzLjcsNDMuNTRjMCwxNC44NC0xMC42MSwyMy43LTIzLjcsMjMuN2gwYTIzLjczLDIzLjczLDAsMCwxLTIzLjctMjMuN0M3LjA3LDQyLjE0LDMwLjc3LDIwLDMwLjc3LDIwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTMwLjc3LDUyLjA3aDBTNDMuMTgsNjMuMjUsNDMuMTgsNzQuODhjMCw3Ljc3LTUuNTYsMTIuNDItMTIuNDIsMTIuNDJoMEExMi40MywxMi40MywwLDAsMSwxOC4zNSw3NC44OEMxOC4zNSw2My42NCwzMC43Nyw1Mi4wNywzMC43Nyw1Mi4wN1oiLz48L2c+PC9nPjwvc3ZnPg==" + }, + "asset-d2cca77f-ba40-4acb-beff-38fab19c7b65": { + "id": "asset-d2cca77f-ba40-4acb-beff-38fab19c7b65", + "@created": "2018-10-13T10:48:37.615Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MS41MyA4Ny4yOSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM2ZDZlNzE7fS5jbHMtMntmaWxsOiM5Mzk1OTg7fS5jbHMtM3tmaWxsOiNiY2JlYzA7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5GaXJlIEdyYXk8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8yLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMzAuNzcsMGgwQTEyNi4yNSwxMjYuMjUsMCwwLDEsNDguMzIsMjAuNTNjNi45MSwxMC4xMywxMy4yMiwyMi45NSwxMy4yMiwzNiwwLDE5LjI3LTEzLjc3LDMwLjc3LTMwLjc3LDMwLjc3aDBBMzAuOCwzMC44LDAsMCwxLDAsNTYuNTNDMCwyOC42OCwzMC43NywwLDMwLjc3LDBaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMzAuNzcsMjBoMHMyMy43LDIxLjM0LDIzLjcsNDMuNTRjMCwxNC44NC0xMC42MSwyMy43LTIzLjcsMjMuN2gwYTIzLjczLDIzLjczLDAsMCwxLTIzLjctMjMuN0M3LjA3LDQyLjE0LDMwLjc3LDIwLDMwLjc3LDIwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTMwLjc3LDUyLjA3aDBTNDMuMTgsNjMuMjUsNDMuMTgsNzQuODhjMCw3Ljc3LTUuNTYsMTIuNDItMTIuNDIsMTIuNDJoMEExMi40MywxMi40MywwLDAsMSwxOC4zNSw3NC44OEMxOC4zNSw2My42NCwzMC43Nyw1Mi4wNywzMC43Nyw1Mi4wN1oiLz48L2c+PC9nPjwvc3ZnPg==" + }, + "asset-1343672d-7c02-4402-929e-0f8fef69cddd": { + "id": "asset-1343672d-7c02-4402-929e-0f8fef69cddd", + "@created": "2018-10-13T14:50:42.520Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNC44NiAyNC44NiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNkOTI4NTk7fS5jbHMtMntmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjNweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPlBpbmsgWDwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PGcgaWQ9IkxheWVyXzItMiIgZGF0YS1uYW1lPSJMYXllciAyIj48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEyLjQzIiBjeT0iMTIuNDMiIHI9IjEyLjQzIi8+PGxpbmUgY2xhc3M9ImNscy0yIiB4MT0iMTYuNzYiIHkxPSI4LjA5IiB4Mj0iOC4wOSIgeTI9IjE2Ljc2Ii8+PGxpbmUgY2xhc3M9ImNscy0yIiB4MT0iOC4wOSIgeTE9IjguMDkiIHgyPSIxNi43NiIgeTI9IjE2Ljc2Ii8+PC9nPjwvZz48L3N2Zz4=" + }, + "asset-0a807073-d056-4c7b-9bf4-225b71e47243": { + "id": "asset-0a807073-d056-4c7b-9bf4-225b71e47243", + "@created": "2018-10-13T14:50:49.318Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNC44NiAyNC44NiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM0OGMxMDA7fS5jbHMtMntmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjNweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkdyZWVuIGNoZWNrPC90aXRsZT48ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj48ZyBpZD0iTGF5ZXJfMi0yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMTIuNDMiIGN5PSIxMi40MyIgcj0iMTIuNDMiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSIxOC43NCIgeTE9IjguNTMiIHgyPSIxMC4wNyIgeTI9IjE3LjIiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSI2LjgzIiB5MT0iMTIuMzUiIHgyPSIxMS45MyIgeTI9IjE3LjQ1Ii8+PC9nPjwvZz48L3N2Zz4=" + }, + "asset-86622ebc-32db-40fa-8310-262c85a10979": { + "id": "asset-86622ebc-32db-40fa-8310-262c85a10979", + "@created": "2018-10-13T15:01:15.036Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNy45NCAyOS43Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzQxNDA0MjtzdHJva2U6I2ZmZjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4O308L3N0eWxlPjwvZGVmcz48dGl0bGU+R2VvIEljb248L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8yLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIxIiB5PSI3LjM1IiB3aWR0aD0iMzUuOTQiIGhlaWdodD0iMjEuMzYiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yMy41OCwxOS43aDBTMTcsMTMuNzYsMTcsNy41OUE2LjMsNi4zLDAsMCwxLDIzLjU4LDFoMGE2LjYsNi42LDAsMCwxLDYuNTksNi41OUMzMC4xOCwxMy41NiwyMy41OCwxOS43LDIzLjU4LDE5LjdaIi8+PC9nPjwvZz48L3N2Zz4=" + }, + "asset-c2128a19-e5ba-450c-99c0-a68abbdfa684": { + "id": "asset-c2128a19-e5ba-450c-99c0-a68abbdfa684", + "@created": "2018-10-13T15:02:05.173Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMS44MyAyNi4zOSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM0MTQwNDI7c3Ryb2tlOiNmZmY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPlJlcXVlc3QgSWNvbjwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PGcgaWQ9IkxheWVyXzItMiIgZGF0YS1uYW1lPSJMYXllciAyIj48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zMC44MywxSDFWMjUuMjNhLjE2LjE2LDAsMCwwLC4yOC4xMkw3LjY2LDE5SDMwLjgzWiIvPjwvZz48L2c+PC9zdmc+" + }, + "asset-e9118351-dcc5-4a27-a7fc-f15eb308999b": { + "id": "asset-e9118351-dcc5-4a27-a7fc-f15eb308999b", + "@created": "2018-10-13T15:02:24.299Z", + "type": "dataurl", + "value": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MC44MSAyNS4zMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM0MTQwNDI7c3Ryb2tlOiNmZmY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPk1hY2hpbmUgSWNvbjwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PGcgaWQ9IkxheWVyXzItMiIgZGF0YS1uYW1lPSJMYXllciAyIj48cmVjdCBjbGFzcz0iY2xzLTEiIHg9IjUuMTgiIHk9IjEiIHdpZHRoPSIyOS44MyIgaGVpZ2h0PSIxNy45NiIvPjxsaW5lIGNsYXNzPSJjbHMtMSIgeTE9IjI0LjMxIiB4Mj0iNDAuODEiIHkyPSIyNC4zMSIvPjwvZz48L2c+PC9zdmc+" + } + } + } + } +] diff --git a/x-pack/plugins/canvas/server/usage/collector.js b/x-pack/plugins/canvas/server/usage/collector.js index f0c55e6ae0a62..a4e73ffe85071 100644 --- a/x-pack/plugins/canvas/server/usage/collector.js +++ b/x-pack/plugins/canvas/server/usage/collector.js @@ -138,7 +138,7 @@ export function registerCanvasUsageCollector(server) { index, ignoreUnavailable: true, filterPath: ['hits.hits._source.canvas-workpad'], - body: { query: { term: { type: { value: CANVAS_TYPE } } } }, + body: { query: { bool: { filter: { term: { type: CANVAS_TYPE } } } } }, }; const esResponse = await callCluster('search', searchParams); diff --git a/x-pack/plugins/canvas/tasks/helpers/babelhook.js b/x-pack/plugins/canvas/tasks/helpers/babelhook.js index 5afe3b1d4507e..ebae405457d3e 100644 --- a/x-pack/plugins/canvas/tasks/helpers/babelhook.js +++ b/x-pack/plugins/canvas/tasks/helpers/babelhook.js @@ -6,8 +6,9 @@ const { resolve } = require('path'); const register = require('babel-register'); - const options = { + babelrc: false, + presets: [require.resolve('@kbn/babel-preset/node_preset')], sourceMaps: false, plugins: [ [ diff --git a/x-pack/plugins/canvas/tasks/helpers/webpack.plugins.js b/x-pack/plugins/canvas/tasks/helpers/webpack.plugins.js index db3000672e520..c53eccd87bd97 100644 --- a/x-pack/plugins/canvas/tasks/helpers/webpack.plugins.js +++ b/x-pack/plugins/canvas/tasks/helpers/webpack.plugins.js @@ -5,6 +5,7 @@ */ const path = require('path'); +const CopyWebpackPlugin = require('copy-webpack-plugin'); const sourceDir = path.resolve(__dirname, '../../canvas_plugin_src'); const buildDir = path.resolve(__dirname, '../../canvas_plugin'); @@ -20,9 +21,12 @@ module.exports = { 'uis/arguments/all': path.join(sourceDir, 'uis/arguments/register.js'), 'functions/browser/all': path.join(sourceDir, 'functions/browser/register.js'), 'functions/common/all': path.join(sourceDir, 'functions/common/register.js'), - 'functions/server/all': path.join(sourceDir, 'functions/server/register.js'), 'types/all': path.join(sourceDir, 'types/register.js'), }, + + // there were problems with the node and web targets since this code is actually + // targetting both the browser and node.js. If there was a hybrid target we'd use + // it, but this seems to work either way. target: 'webworker', output: { @@ -33,6 +37,7 @@ module.exports = { resolve: { extensions: ['.js', '.json'], + mainFields: ['browser', 'main'], }, plugins: [ @@ -47,73 +52,31 @@ module.exports = { }); this.plugin('done', function(stats) { - if (stats.compilation.errors && stats.compilation.errors.length) { - if (isWatch) console.error(stats.compilation.errors[0]); - else throw stats.compilation.errors[0]; - } + if (!stats.hasErrors()) return; + const errorMessage = stats.toString('errors-only'); + if (isWatch) console.error(errorMessage); + else throw new Error(errorMessage); }); }, + new CopyWebpackPlugin([ + { + from: `${sourceDir}/functions/server/`, + to: `${buildDir}/functions/server/`, + ignore: '**/__tests__/**', + }, + ]), ], module: { rules: [ - // There's some React 15 propTypes funny business in EUI, this strips out propTypes and fixes it - { - test: /(@elastic\/eui|moment)\/.*\.js$/, - loaders: 'babel-loader', - options: { - babelrc: false, - presets: [ - 'react', - [ - 'env', - { - targets: { - node: 'current', - }, - }, - ], - ], - plugins: [ - 'transform-react-remove-prop-types', // specifically this, strips out propTypes - 'pegjs-inline-precompile', - 'transform-object-rest-spread', - 'transform-async-to-generator', - 'transform-class-properties', - [ - 'inline-react-svg', - { - ignorePattern: 'images/*', - svgo: { - plugins: [{ cleanupIDs: false }, { removeViewBox: false }], - }, - }, - ], - ], - }, - }, { test: /\.js$/, + exclude: [/node_modules/], loaders: 'babel-loader', options: { - plugins: [ - 'transform-object-rest-spread', - 'transform-async-to-generator', - 'transform-class-properties', - ], - presets: [ - 'react', - [ - 'env', - { - targets: { - node: 'current', - }, - }, - ], - ], + babelrc: false, + presets: [require.resolve('@kbn/babel-preset/webpack_preset')], }, - exclude: [/node_modules/], }, { test: /\.(png|jpg|gif|jpeg|svg)$/, diff --git a/x-pack/plugins/canvas/tasks/mocks/noop.js b/x-pack/plugins/canvas/tasks/mocks/noop.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/canvas/tasks/plugins.js b/x-pack/plugins/canvas/tasks/plugins.js index dd2dcabf23972..991b4d85c6ec5 100644 --- a/x-pack/plugins/canvas/tasks/plugins.js +++ b/x-pack/plugins/canvas/tasks/plugins.js @@ -4,13 +4,17 @@ * you may not use this file except in compliance with the Elastic License. */ +import path from 'path'; // eslint-disable-next-line import/no-extraneous-dependencies import webpack from 'webpack'; +import del from 'del'; import webpackConfig from './helpers/webpack.plugins'; const devtool = 'inline-cheap-module-source-map'; +const buildDir = path.resolve(__dirname, '../canvas_plugin'); export default function pluginsTasks(gulp, { log, colors }) { + log(buildDir); const onComplete = done => (err, stats) => { if (err) { done && done(err); @@ -22,16 +26,20 @@ export default function pluginsTasks(gulp, { log, colors }) { }; gulp.task('canvas:plugins:build', function(done) { - webpack({ ...webpackConfig, devtool }, onComplete(done)); + del(buildDir).then(() => webpack({ ...webpackConfig, devtool }, onComplete(done))); }); // eslint-disable-next-line no-unused-vars gulp.task('canvas:plugins:dev', function(done /* added to make gulp async */) { log(`${colors.green.bold('canvas:plugins')} Starting initial build, this will take a while`); - webpack({ ...webpackConfig, devtool, watch: true }, (err, stats) => { - onComplete()(err, stats); - }); + del(buildDir).then(() => + webpack({ ...webpackConfig, devtool, watch: true }, (err, stats) => { + onComplete()(err, stats); + }) + ); }); - gulp.task('canvas:plugins:build-prod', done => webpack(webpackConfig, onComplete(done))); + gulp.task('canvas:plugins:build-prod', function(done) { + del(buildDir).then(() => webpack(webpackConfig, onComplete(done))); + }); } diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.delete_auto_follow_pattern.json b/x-pack/plugins/console_extensions/spec/generated/ccr.delete_auto_follow_pattern.json new file mode 100644 index 0000000000000..36c50a37c8658 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.delete_auto_follow_pattern.json @@ -0,0 +1,11 @@ +{ + "ccr.delete_auto_follow_pattern": { + "methods": [ + "DELETE" + ], + "patterns": [ + "_ccr/auto_follow/{name}" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.follow.json b/x-pack/plugins/console_extensions/spec/generated/ccr.follow.json new file mode 100644 index 0000000000000..704cb082161ae --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.follow.json @@ -0,0 +1,11 @@ +{ + "ccr.follow": { + "methods": [ + "PUT" + ], + "patterns": [ + "{index}/_ccr/follow" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.follow_stats.json b/x-pack/plugins/console_extensions/spec/generated/ccr.follow_stats.json new file mode 100644 index 0000000000000..47553262c95d2 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.follow_stats.json @@ -0,0 +1,11 @@ +{ + "ccr.follow_stats": { + "methods": [ + "GET" + ], + "patterns": [ + "{index}/_ccr/stats" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.get_auto_follow_pattern.json b/x-pack/plugins/console_extensions/spec/generated/ccr.get_auto_follow_pattern.json new file mode 100644 index 0000000000000..3f988d9796f0e --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.get_auto_follow_pattern.json @@ -0,0 +1,12 @@ +{ + "ccr.get_auto_follow_pattern": { + "methods": [ + "GET" + ], + "patterns": [ + "_ccr/auto_follow", + "_ccr/auto_follow/{name}" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.pause_follow.json b/x-pack/plugins/console_extensions/spec/generated/ccr.pause_follow.json new file mode 100644 index 0000000000000..4dcb0fdaf9b87 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.pause_follow.json @@ -0,0 +1,11 @@ +{ + "ccr.pause_follow": { + "methods": [ + "POST" + ], + "patterns": [ + "{index}/_ccr/pause_follow" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.put_auto_follow_pattern.json b/x-pack/plugins/console_extensions/spec/generated/ccr.put_auto_follow_pattern.json new file mode 100644 index 0000000000000..26a197d17d711 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.put_auto_follow_pattern.json @@ -0,0 +1,11 @@ +{ + "ccr.put_auto_follow_pattern": { + "methods": [ + "PUT" + ], + "patterns": [ + "_ccr/auto_follow/{name}" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.resume_follow.json b/x-pack/plugins/console_extensions/spec/generated/ccr.resume_follow.json new file mode 100644 index 0000000000000..00b889d0d5f9a --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.resume_follow.json @@ -0,0 +1,11 @@ +{ + "ccr.resume_follow": { + "methods": [ + "POST" + ], + "patterns": [ + "{index}/_ccr/resume_follow" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.stats.json b/x-pack/plugins/console_extensions/spec/generated/ccr.stats.json new file mode 100644 index 0000000000000..f9d389c99e590 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.stats.json @@ -0,0 +1,11 @@ +{ + "ccr.stats": { + "methods": [ + "GET" + ], + "patterns": [ + "_ccr/stats" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/generated/ccr.unfollow.json b/x-pack/plugins/console_extensions/spec/generated/ccr.unfollow.json new file mode 100644 index 0000000000000..9d9d6868a2fc9 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/generated/ccr.unfollow.json @@ -0,0 +1,11 @@ +{ + "ccr.unfollow": { + "methods": [ + "POST" + ], + "patterns": [ + "{index}/_ccr/unfollow" + ], + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html" + } +} diff --git a/x-pack/plugins/console_extensions/spec/overrides/ccr.follow.json b/x-pack/plugins/console_extensions/spec/overrides/ccr.follow.json new file mode 100644 index 0000000000000..f95b6618fe516 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/overrides/ccr.follow.json @@ -0,0 +1,18 @@ +{ + "ccr.follow": { + "data_autocomplete_rules": { + "remote_cluster" : "", + "leader_index" : "", + "max_read_request_operation_count": "", + "max_outstanding_read_requests": "", + "max_read_request_size": "", + "max_write_request_operation_count": "", + "max_write_request_size": "", + "max_outstanding_write_requests": "", + "max_write_buffer_count": "", + "max_write_buffer_size": "", + "max_retry_delay": "", + "read_poll_timeout": "" + } + } +} diff --git a/x-pack/plugins/console_extensions/spec/overrides/ccr.put_auto_follow_pattern.json b/x-pack/plugins/console_extensions/spec/overrides/ccr.put_auto_follow_pattern.json new file mode 100644 index 0000000000000..2f050efa6016a --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/overrides/ccr.put_auto_follow_pattern.json @@ -0,0 +1,19 @@ +{ + "ccr.put_auto_follow_pattern": { + "data_autocomplete_rules": { + "remote_cluster" : "", + "leader_index_patterns" : "", + "follow_index_pattern" : "", + "max_read_request_operation_count": "", + "max_outstanding_read_requests": "", + "max_read_request_size": "", + "max_write_request_operation_count": "", + "max_write_request_size": "", + "max_outstanding_write_requests": "", + "max_write_buffer_count": "", + "max_write_buffer_size": "", + "max_retry_delay": "", + "read_poll_timeout": "" + } + } +} diff --git a/x-pack/plugins/console_extensions/spec/overrides/ccr.resume_follow.json b/x-pack/plugins/console_extensions/spec/overrides/ccr.resume_follow.json new file mode 100644 index 0000000000000..06d917343cda7 --- /dev/null +++ b/x-pack/plugins/console_extensions/spec/overrides/ccr.resume_follow.json @@ -0,0 +1,16 @@ +{ + "ccr.resume_follow": { + "data_autocomplete_rules": { + "max_read_request_operation_count": "", + "max_outstanding_read_requests": "", + "max_read_request_size": "", + "max_write_request_operation_count": "", + "max_write_request_size": "", + "max_outstanding_write_requests": "", + "max_write_buffer_count": "", + "max_write_buffer_size": "", + "max_retry_delay": "", + "read_poll_timeout": "" + } + } +} diff --git a/x-pack/plugins/dashboard_mode/server/__tests__/dashboard_mode_request_interceptor.js b/x-pack/plugins/dashboard_mode/server/__tests__/dashboard_mode_request_interceptor.js index e0ff4b3c0c600..b8c46c9e97f15 100644 --- a/x-pack/plugins/dashboard_mode/server/__tests__/dashboard_mode_request_interceptor.js +++ b/x-pack/plugins/dashboard_mode/server/__tests__/dashboard_mode_request_interceptor.js @@ -26,21 +26,21 @@ function setup() { }; const server = new Hapi.Server(); - server.connection({ port: 0 }); // attach the extension server.ext(createDashboardModeRequestInterceptor(dashboardViewerApp)); // allow the extension to fake "render an app" - server.decorate('reply', 'renderApp', function (app) { - this({ renderApp: true, app }); + server.decorate('toolkit', 'renderApp', function (app) { + // `this` is the `h` response toolkit + return this.response({ renderApp: true, app }); }); server.route({ path: '/app/{appId}', method: 'GET', - handler(req, reply) { - reply.renderApp({ name: req.params.appId }); + handler(req, h) { + return h.renderApp({ name: req.params.appId }); } }); @@ -48,8 +48,8 @@ function setup() { server.route({ path: '/{path*}', method: 'GET', - handler(req, reply) { - reply({ catchAll: true, path: `/${req.params.path}` }); + handler(req) { + return { catchAll: true, path: `/${req.params.path}` }; } }); diff --git a/x-pack/plugins/dashboard_mode/server/dashboard_mode_request_interceptor.js b/x-pack/plugins/dashboard_mode/server/dashboard_mode_request_interceptor.js index 60de6bec0f57a..275922deb3d60 100644 --- a/x-pack/plugins/dashboard_mode/server/dashboard_mode_request_interceptor.js +++ b/x-pack/plugins/dashboard_mode/server/dashboard_mode_request_interceptor.js @@ -23,7 +23,7 @@ export function createDashboardModeRequestInterceptor(dashboardViewerApp) { return { type: 'onPostAuth', - method(request, reply) { + async method(request, h) { const { auth, url } = request; const isAppRequest = url.path.startsWith('/app/'); @@ -33,15 +33,14 @@ export function createDashboardModeRequestInterceptor(dashboardViewerApp) { // that app and none others. Here we are intercepting all other routing and ensuring the viewer // app is the only one ever rendered. // Read more about Dashboard Only Mode here: https://github.com/elastic/x-pack-kibana/issues/180 - reply.renderApp(dashboardViewerApp); - return; + const response = await h.renderApp(dashboardViewerApp); + return response.takeover(); } - reply(Boom.notFound()); - return; + throw Boom.notFound(); } - reply.continue(); + return h.continue; } }; } diff --git a/x-pack/plugins/graph/index.js b/x-pack/plugins/graph/index.js index 5950713f582a5..b87bd3f37deeb 100644 --- a/x-pack/plugins/graph/index.js +++ b/x-pack/plugins/graph/index.js @@ -21,6 +21,7 @@ export function graph(kibana) { title: 'Graph', order: 9000, icon: 'plugins/graph/icon.png', + euiIconType: 'graphApp', description: 'Graph exploration', main: 'plugins/graph/app', }, diff --git a/x-pack/plugins/graph/public/app.js b/x-pack/plugins/graph/public/app.js index 4190401822493..f7fa2f01bf288 100644 --- a/x-pack/plugins/graph/public/app.js +++ b/x-pack/plugins/graph/public/app.js @@ -80,7 +80,7 @@ uiRoutes return savedObjectsClient.find({ type: 'index-pattern', - fields: ['title'], + fields: ['title', 'type'], perPage: 10000 }).then(response => response.savedObjects); }, @@ -112,7 +112,7 @@ uiRoutes return savedObjectsClient.find({ type: 'index-pattern', - fields: ['title'], + fields: ['title', 'type'], perPage: 10000 }).then(response => response.savedObjects); }, @@ -657,7 +657,7 @@ app.controller('graphuiPlugin', function ($scope, $route, $interval, $http, kbnU } } - $scope.indices = $route.current.locals.indexPatterns; + $scope.indices = $route.current.locals.indexPatterns.filter(indexPattern => !indexPattern.get('type')); $scope.setDetail = function (data) { diff --git a/x-pack/plugins/graph/public/templates/settings.html b/x-pack/plugins/graph/public/templates/settings.html index 7b1f50d94a9d6..225c08692bed7 100644 --- a/x-pack/plugins/graph/public/templates/settings.html +++ b/x-pack/plugins/graph/public/templates/settings.html @@ -277,7 +277,6 @@ class="form-control input-sm" min="1" max="500000" - step="1000" id="qIndexSampleSize" ng-model="exploreControls.sampleSize" > diff --git a/x-pack/plugins/graph/server/lib/es/call_es_graph_explore_api.js b/x-pack/plugins/graph/server/lib/es/call_es_graph_explore_api.js index a20afb3d8d34e..142d4ea266eae 100644 --- a/x-pack/plugins/graph/server/lib/es/call_es_graph_explore_api.js +++ b/x-pack/plugins/graph/server/lib/es/call_es_graph_explore_api.js @@ -35,6 +35,6 @@ export async function callEsGraphExploreApi({ callCluster, index, query }) { throw Boom.badRequest(relevantCause.reason); } - throw Boom.wrap(error); + throw Boom.boomify(error); } } diff --git a/x-pack/plugins/graph/server/lib/es/call_es_search_api.js b/x-pack/plugins/graph/server/lib/es/call_es_search_api.js index 7636304a7469d..67fb5d115c374 100644 --- a/x-pack/plugins/graph/server/lib/es/call_es_search_api.js +++ b/x-pack/plugins/graph/server/lib/es/call_es_search_api.js @@ -16,6 +16,6 @@ export async function callEsSearchApi({ callCluster, index, body }) { }) }; } catch (error) { - throw Boom.wrap(error, error.statusCode || 500); + throw Boom.boomify(error, { statusCode: error.statusCode || 500 }); } } diff --git a/x-pack/plugins/graph/server/lib/pre/get_call_cluster_pre.js b/x-pack/plugins/graph/server/lib/pre/get_call_cluster_pre.js index 67a25727c0503..383170a13d4cf 100644 --- a/x-pack/plugins/graph/server/lib/pre/get_call_cluster_pre.js +++ b/x-pack/plugins/graph/server/lib/pre/get_call_cluster_pre.js @@ -6,8 +6,8 @@ export const getCallClusterPre = { assign: 'callCluster', - method(request, reply) { + method(request) { const cluster = request.server.plugins.elasticsearch.getCluster('data'); - reply((...args) => cluster.callWithRequest(request, ...args)); + return (...args) => cluster.callWithRequest(request, ...args); } }; diff --git a/x-pack/plugins/graph/server/lib/pre/verify_api_access_pre.js b/x-pack/plugins/graph/server/lib/pre/verify_api_access_pre.js index f253fdadae20a..a26e7247d6287 100644 --- a/x-pack/plugins/graph/server/lib/pre/verify_api_access_pre.js +++ b/x-pack/plugins/graph/server/lib/pre/verify_api_access_pre.js @@ -6,14 +6,14 @@ import Boom from 'boom'; -export function verifyApiAccessPre(request, reply) { +export function verifyApiAccessPre(request, h) { const xpackInfo = request.server.plugins.xpack_main.info; const graph = xpackInfo.feature('graph'); const licenseCheckResults = graph.getLicenseCheckResults(); if (licenseCheckResults.showAppLink && licenseCheckResults.enableAppLink) { - reply(); + return null; } else { - reply(Boom.forbidden(licenseCheckResults.message)); + throw Boom.forbidden(licenseCheckResults.message); } } diff --git a/x-pack/plugins/graph/server/routes/graph_explore.js b/x-pack/plugins/graph/server/routes/graph_explore.js index 49248814a048f..7f77903dd7050 100644 --- a/x-pack/plugins/graph/server/routes/graph_explore.js +++ b/x-pack/plugins/graph/server/routes/graph_explore.js @@ -26,12 +26,12 @@ export const graphExploreRoute = { query: Joi.object().required().unknown(true) }).default() }, - handler(request, reply) { - reply(callEsGraphExploreApi({ + handler(request) { + return callEsGraphExploreApi({ callCluster: request.pre.callCluster, index: request.payload.index, query: request.payload.query, - })); + }); } } }; diff --git a/x-pack/plugins/graph/server/routes/search_proxy.js b/x-pack/plugins/graph/server/routes/search_proxy.js index fc95c73ce8f2d..55bdb3af056f5 100644 --- a/x-pack/plugins/graph/server/routes/search_proxy.js +++ b/x-pack/plugins/graph/server/routes/search_proxy.js @@ -27,12 +27,12 @@ export const searchProxyRoute = { body: Joi.object().unknown(true).default() }).default() }, - handler(request, reply) { - reply(callEsSearchApi({ + handler(request) { + return callEsSearchApi({ callCluster: request.pre.callCluster, index: request.payload.index, body: request.payload.body - })); + }); } } }; diff --git a/x-pack/plugins/grokdebugger/common/constants/index.js b/x-pack/plugins/grokdebugger/common/constants/index.js index 12e440d7ed858..c37101b73078a 100644 --- a/x-pack/plugins/grokdebugger/common/constants/index.js +++ b/x-pack/plugins/grokdebugger/common/constants/index.js @@ -6,4 +6,4 @@ export { ROUTES } from './routes'; export { PLUGIN } from './plugin'; -export { EDITOR } from './editor'; +export { EDITOR } from './editor'; \ No newline at end of file diff --git a/x-pack/plugins/grokdebugger/public/register_feature.js b/x-pack/plugins/grokdebugger/public/register_feature.js index 0dcca799136e7..82cd43bcbbcf7 100644 --- a/x-pack/plugins/grokdebugger/public/register_feature.js +++ b/x-pack/plugins/grokdebugger/public/register_feature.js @@ -8,11 +8,21 @@ import { FeatureCatalogueRegistryProvider, FeatureCatalogueCategory } from 'ui/registry/feature_catalogue'; -FeatureCatalogueRegistryProvider.register(() => { +FeatureCatalogueRegistryProvider.register(i18n => { return { id: 'grokdebugger', - title: 'Grok Debugger', - description: 'Simulate and debug grok patterns for data transformation on ingestion.', + title: i18n('xpack.grokDebugger.registryProviderTitle', { + defaultMessage: '{grokLogParsingTool} Debugger', + values: { + grokLogParsingTool: 'Grok' + } + }), + description: i18n('xpack.grokDebugger.registryProviderDescription', { + defaultMessage: 'Simulate and debug {grokLogParsingTool} patterns for data transformation on ingestion.', + values: { + grokLogParsingTool: 'grok' + } + }), icon: 'grokApp', path: '/app/kibana#/dev_tools/grokdebugger', showOnHomePage: false, diff --git a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/custom_patterns_input/custom_patterns_input.js b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/custom_patterns_input/custom_patterns_input.js index e18af08b8ae66..87df1976b7dc8 100644 --- a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/custom_patterns_input/custom_patterns_input.js +++ b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/custom_patterns_input/custom_patterns_input.js @@ -15,6 +15,7 @@ import { EuiSpacer } from '@elastic/eui'; import { EDITOR } from '../../../../../common/constants'; +import { FormattedMessage } from '@kbn/i18n/react'; export function CustomPatternsInput({ value, onChange }) { const sampleCustomPatterns = `POSTFIX_QUEUEID [0-9A-F]{10,11} @@ -23,14 +24,24 @@ MSG message-id=<%{GREEDYDATA}>`; return ( + )} data-test-subj="btnToggleCustomPatternsInput" > + )} > { sampleCustomPatterns } diff --git a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_input/event_input.js b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_input/event_input.js index 2db505f3a3248..00ee2dbd9074c 100644 --- a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_input/event_input.js +++ b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_input/event_input.js @@ -11,11 +11,17 @@ import { EuiCodeEditor } from '@elastic/eui'; import { EDITOR } from '../../../../../common/constants'; +import { FormattedMessage } from '@kbn/i18n/react'; export function EventInput({ value, onChange }) { return ( + )} fullWidth data-test-subj="aceEventInput" > diff --git a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_output/event_output.js b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_output/event_output.js index 973f3728b5f89..f669ac7a61fdd 100644 --- a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_output/event_output.js +++ b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/event_output/event_output.js @@ -10,11 +10,17 @@ import { EuiPanel, EuiCodeEditor } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export function EventOutput({ value }) { return ( + )} fullWidth data-test-subj="aceEventOutput" > diff --git a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/grok_debugger/grok_debugger.js b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/grok_debugger/grok_debugger.js index dddb75336edaa..c42a66cdf561c 100644 --- a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/grok_debugger/grok_debugger.js +++ b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/grok_debugger/grok_debugger.js @@ -20,6 +20,7 @@ import { CustomPatternsInput } from '../custom_patterns_input'; import { EventOutput } from '../event_output'; import { GrokdebuggerRequest } from '../../../../models/grokdebugger_request'; import { toastNotifications } from 'ui/notify'; +import { FormattedMessage } from '@kbn/i18n/react'; export class GrokDebugger extends React.Component { constructor(props) { @@ -123,7 +124,10 @@ export class GrokDebugger extends React.Component { isDisabled={this.isSimulateDisabled()} data-test-subj="btnSimulate" > - Simulate + diff --git a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/pattern_input/pattern_input.js b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/pattern_input/pattern_input.js index 03411edddd25b..bb06da7183b9a 100644 --- a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/pattern_input/pattern_input.js +++ b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/components/pattern_input/pattern_input.js @@ -12,11 +12,17 @@ import { } from '@elastic/eui'; import { EDITOR } from '../../../../../common/constants'; import { GrokMode } from '../../../../lib/ace'; +import { FormattedMessage } from '@kbn/i18n/react'; export function PatternInput({ value, onChange }) { return ( + )} fullWidth data-test-subj="acePatternInput" > diff --git a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/directives/grokdebugger/grokdebugger.js b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/directives/grokdebugger/grokdebugger.js index c59f1c0ed56e6..33e5c561d63a3 100644 --- a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/directives/grokdebugger/grokdebugger.js +++ b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/directives/grokdebugger/grokdebugger.js @@ -9,6 +9,7 @@ import 'plugins/grokdebugger/services/grokdebugger'; import { GrokDebugger } from '../../components/grok_debugger'; import { render } from 'react-dom'; import React from 'react'; +import { I18nProvider } from '@kbn/i18n/react'; const app = uiModules.get('xpack/grokdebugger'); @@ -18,7 +19,7 @@ app.directive('grokdebugger', function ($injector) { return { restrict: 'E', link: (scope, el) => { - render(, el[0]); + render(, el[0]); } }; }); diff --git a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/register.js b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/register.js index 896c6f3278efa..9d8b26bf66b41 100644 --- a/x-pack/plugins/grokdebugger/public/sections/grokdebugger/register.js +++ b/x-pack/plugins/grokdebugger/public/sections/grokdebugger/register.js @@ -7,12 +7,14 @@ import { DevToolsRegistryProvider } from 'ui/registry/dev_tools'; import { XPackInfoProvider } from 'plugins/xpack_main/services/xpack_info'; -DevToolsRegistryProvider.register((Private) => { +DevToolsRegistryProvider.register((Private, i18n) => { const xpackInfo = Private(XPackInfoProvider); return { order: 6, name: 'grokdebugger', - display: 'Grok Debugger', + display: i18n('xpack.grokDebugger.displayName', { + defaultMessage: 'Grok Debugger', + }), url: '#/dev_tools/grokdebugger', disabled: !xpackInfo.get('features.grokdebugger.enableLink', false), tooltipContent: xpackInfo.get('features.grokdebugger.message') diff --git a/x-pack/plugins/grokdebugger/server/lib/call_with_request_factory/call_with_request_factory.js b/x-pack/plugins/grokdebugger/server/lib/call_with_request_factory/call_with_request_factory.js index b9a77a1a0362b..7359a831994f9 100644 --- a/x-pack/plugins/grokdebugger/server/lib/call_with_request_factory/call_with_request_factory.js +++ b/x-pack/plugins/grokdebugger/server/lib/call_with_request_factory/call_with_request_factory.js @@ -6,7 +6,7 @@ import { once } from 'lodash'; -const callWithRequest = once((server) => { +const callWithRequest = once(server => { const cluster = server.plugins.elasticsearch.getCluster('data'); return cluster.callWithRequest; }); diff --git a/x-pack/plugins/grokdebugger/server/lib/check_license/check_license.js b/x-pack/plugins/grokdebugger/server/lib/check_license/check_license.js index be2429e3cc577..b5c970b83e421 100644 --- a/x-pack/plugins/grokdebugger/server/lib/check_license/check_license.js +++ b/x-pack/plugins/grokdebugger/server/lib/check_license/check_license.js @@ -4,6 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ +import { i18n } from '@kbn/i18n'; + export function checkLicense(xpackLicenseInfo) { // If, for some reason, we cannot get the license information // from Elasticsearch, assume worst case and disable the Watcher UI @@ -11,7 +13,12 @@ export function checkLicense(xpackLicenseInfo) { return { enableLink: false, enableAPIRoute: false, - message: 'You cannot use the Grok Debugger because license information is not available at this time.' + message: i18n.translate('xpack.grokDebugger.unavailableLicenseInformationMessage', { + defaultMessage: 'You cannot use the {grokLogParsingTool} Debugger because license information is not available at this time.', + values: { + grokLogParsingTool: 'Grok' + } + }), }; } @@ -23,7 +30,13 @@ export function checkLicense(xpackLicenseInfo) { return { enableLink: false, enableAPIRoute: false, - message: `You cannot use the Grok Debugger because your ${licenseType} license has expired.` + message: i18n.translate('xpack.grokDebugger.licenseHasExpiredMessage', { + defaultMessage: 'You cannot use the {grokLogParsingTool} Debugger because your {licenseType} license has expired.', + values: { + licenseType, + grokLogParsingTool: 'Grok' + }, + }), }; } diff --git a/x-pack/plugins/grokdebugger/server/lib/error_wrappers/wrap_es_error.js b/x-pack/plugins/grokdebugger/server/lib/error_wrappers/wrap_es_error.js index ccf42d31ba46f..dfcd4e3b1e17c 100644 --- a/x-pack/plugins/grokdebugger/server/lib/error_wrappers/wrap_es_error.js +++ b/x-pack/plugins/grokdebugger/server/lib/error_wrappers/wrap_es_error.js @@ -14,5 +14,5 @@ import Boom from 'boom'; * @return Object Boom error response */ export function wrapEsError(err) { - return Boom.wrap(err, err.statusCode); + return Boom.boomify(err, { statusCode: err.statusCode }); } diff --git a/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js b/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js index 234bcca38f600..9196b8b813470 100644 --- a/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js +++ b/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js @@ -34,31 +34,29 @@ describe('license_pre_routing_factory', () => { }; }); - it ('replies with 403', (done) => { + it('replies with 403', async () => { const licensePreRouting = licensePreRoutingFactory(mockServer); const stubRequest = {}; - licensePreRouting(stubRequest, (response) => { + expect(() => licensePreRouting(stubRequest)).to.throwException((response) => { expect(response).to.be.an(Error); expect(response.isBoom).to.be(true); expect(response.output.statusCode).to.be(403); - done(); }); }); }); - describe('isAvailable is true', () => { + describe('isAvailable is true', async () => { beforeEach(() => { mockLicenseCheckResults = { isAvailable: true }; }); - it ('replies with nothing', (done) => { + it('replies with forbidden', async () => { const licensePreRouting = licensePreRoutingFactory(mockServer); const stubRequest = {}; - licensePreRouting(stubRequest, (response) => { + expect(() => licensePreRouting(stubRequest)).to.throwException((response) => { expect(response).to.eql(Boom.forbidden()); - done(); }); }); }); diff --git a/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/license_pre_routing_factory.js b/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/license_pre_routing_factory.js index 7d11251353120..8a2ef40b86ffe 100644 --- a/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/license_pre_routing_factory.js +++ b/x-pack/plugins/grokdebugger/server/lib/license_pre_routing_factory/license_pre_routing_factory.js @@ -11,13 +11,13 @@ export const licensePreRoutingFactory = (server) => { const xpackMainPlugin = server.plugins.xpack_main; // License checking and enable/disable logic - function licensePreRouting(request, reply) { + function licensePreRouting() { const licenseCheckResults = xpackMainPlugin.info.feature(PLUGIN.ID).getLicenseCheckResults(); if (!licenseCheckResults.enableAPIRoute) { - reply(Boom.forbidden(licenseCheckResults.message)); - } else { - reply(); + throw Boom.forbidden(licenseCheckResults.message); } + + return null; } return licensePreRouting; diff --git a/x-pack/plugins/grokdebugger/server/models/grokdebugger_response/grokdebugger_response.js b/x-pack/plugins/grokdebugger/server/models/grokdebugger_response/grokdebugger_response.js index 575a2700dc589..2b4d60fd55a45 100644 --- a/x-pack/plugins/grokdebugger/server/models/grokdebugger_response/grokdebugger_response.js +++ b/x-pack/plugins/grokdebugger/server/models/grokdebugger_response/grokdebugger_response.js @@ -5,6 +5,7 @@ */ import { get, isEmpty, omit } from 'lodash'; +import { i18n } from '@kbn/i18n'; /** * This model captures the grok debugger response from upstream to be passed to @@ -21,7 +22,14 @@ export class GrokdebuggerResponse { const docs = get(upstreamGrokdebuggerResponse, 'docs'); const error = docs[0].error; if (!isEmpty(error)) { - const opts = { 'error': 'Provided Grok patterns do not match data in the input' }; + const opts = { 'error': i18n.translate( + 'xpack.grokDebugger.patternsErrorMessage', { + defaultMessage: 'Provided {grokLogParsingTool} patterns do not match data in the input', + values: { + grokLogParsingTool: 'Grok' + } + } + ), }; return new GrokdebuggerResponse(opts); } const structuredEvent = omit(get(docs, '0.doc._source'), 'rawEvent'); diff --git a/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.js b/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.js index 1af538f01e481..23295c3af4555 100644 --- a/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.js +++ b/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.js @@ -22,15 +22,15 @@ export function registerGrokSimulateRoute(server) { server.route({ path: '/api/grokdebugger/simulate', method: 'POST', - handler: (request, reply) => { + handler: (request) => { const callWithRequest = callWithRequestFactory(server, request); const grokdebuggerRequest = GrokdebuggerRequest.fromDownstreamJSON(request.payload); return simulateGrok(callWithRequest, grokdebuggerRequest.upstreamJSON) .then((simulateResponseFromES) => { const grokdebuggerResponse = GrokdebuggerResponse.fromUpstreamJSON(simulateResponseFromES); - reply({ grokdebuggerResponse }); + return { grokdebuggerResponse }; }) - .catch(e => reply(wrapEsError(e))); + .catch(e => wrapEsError(e)); }, config: { pre: [ licensePreRouting ] diff --git a/x-pack/plugins/index_management/__jest__/components/__snapshots__/index_table.test.js.snap b/x-pack/plugins/index_management/__jest__/components/__snapshots__/index_table.test.js.snap index f81a3d1d7c6a4..46a5b473be734 100644 --- a/x-pack/plugins/index_management/__jest__/components/__snapshots__/index_table.test.js.snap +++ b/x-pack/plugins/index_management/__jest__/components/__snapshots__/index_table.test.js.snap @@ -90,51 +90,51 @@ Array [ exports[`index table should show the right context menu options when more than one closed index is selected 1`] = ` Array [ - "Open {entity}", - "Delete {entity}", + "Open indices", + "Delete indices", ] `; exports[`index table should show the right context menu options when more than one open index is selected 1`] = ` Array [ - "Close {entity}", - "Force merge {entity}", - "Refresh {entity}", - "Clear {entity} cache", - "Flush {entity}", - "Delete {entity}", + "Close indices", + "Force merge indices", + "Refresh indices", + "Clear indices cache", + "Flush indices", + "Delete indices", ] `; exports[`index table should show the right context menu options when one index is selected and closed 1`] = ` Array [ - "Show {entity} settings", - "Show {entity} mapping", - "Edit {entity} settings", - "Open {entity}", - "Delete {entity}", + "Show index settings", + "Show index mapping", + "Edit index settings", + "Open index", + "Delete index", ] `; exports[`index table should show the right context menu options when one index is selected and open 1`] = ` Array [ - "Show {entity} settings", - "Show {entity} mapping", - "Show {entity} stats", - "Edit {entity} settings", - "Close {entity}", - "Force merge {entity}", - "Refresh {entity}", - "Clear {entity} cache", - "Flush {entity}", - "Delete {entity}", + "Show index settings", + "Show index mapping", + "Show index stats", + "Edit index settings", + "Close index", + "Force merge index", + "Refresh index", + "Clear index cache", + "Flush index", + "Delete index", ] `; exports[`index table should show the right context menu options when one open and one closed index is selected 1`] = ` Array [ - "Open {entity}", - "Delete {entity}", + "Open indices", + "Delete indices", ] `; diff --git a/x-pack/plugins/index_management/index.js b/x-pack/plugins/index_management/index.js index c3d3e8fe1caf5..4408428364b83 100644 --- a/x-pack/plugins/index_management/index.js +++ b/x-pack/plugins/index_management/index.js @@ -18,6 +18,7 @@ export function indexManagement(kibana) { publicDir: resolve(__dirname, 'public'), require: ['kibana', 'elasticsearch', 'xpack_main'], uiExports: { + styleSheetPaths: `${__dirname}/public/index.scss`, managementSections: [ 'plugins/index_management', ] diff --git a/x-pack/plugins/index_management/public/_index_management.scss b/x-pack/plugins/index_management/public/_index_management.scss new file mode 100644 index 0000000000000..4012126e64e5a --- /dev/null +++ b/x-pack/plugins/index_management/public/_index_management.scss @@ -0,0 +1,17 @@ +#indReactRoot { + background-color: $euiColorLightestShade; +} + +.indTable__link { + text-align: left; +} + +.indTable__horizontalScrollContainer { + overflow-x: auto; + max-width: 100%; + height: 100vh; +} +.indTable__horizontalScroll { + min-width: 800px; + width: 100%; +} \ No newline at end of file diff --git a/x-pack/plugins/index_management/public/index.scss b/x-pack/plugins/index_management/public/index.scss new file mode 100644 index 0000000000000..e5fcf114bcc08 --- /dev/null +++ b/x-pack/plugins/index_management/public/index.scss @@ -0,0 +1,13 @@ +// Import the EUI global scope so we can use EUI constants +@import 'ui/public/styles/_styling_constants'; + +// Index management plugin styles + +// Prefix all styles with "ind" to avoid conflicts. +// Examples +// indChart +// indChart__legend +// indChart__legend--small +// indChart__legend-isLoading + +@import 'index_management'; \ No newline at end of file diff --git a/x-pack/plugins/index_management/public/main.html b/x-pack/plugins/index_management/public/main.html index a32b3e94ec0dd..6c13c980e8371 100644 --- a/x-pack/plugins/index_management/public/main.html +++ b/x-pack/plugins/index_management/public/main.html @@ -1,3 +1,3 @@ -
      +
      diff --git a/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/detail_panel.js b/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/detail_panel.js index eba3e6c75d56b..0f4875b3dc6a5 100644 --- a/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/detail_panel.js +++ b/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/detail_panel.js @@ -5,7 +5,7 @@ */ import React, { Component } from 'react'; -import { injectI18n } from '@kbn/i18n/react'; +import { FormattedMessage } from '@kbn/i18n/react'; import { Route } from 'react-router-dom'; import { ShowJson } from './show_json'; import { Summary } from './summary'; @@ -30,7 +30,7 @@ function capitalizeFirstLetter(string) { } const tabs = ['Summary', 'Settings', 'Mapping', 'Stats', 'Edit settings']; -export class DetailPanelUi extends Component { +export class DetailPanel extends Component { renderTabs() { const { panelType, indexName, indexStatus, openDetailPanel } = this.props; @@ -51,7 +51,7 @@ export class DetailPanelUi extends Component { } render() { - const { panelType, indexName, closeDetailPanel, intl } = this.props; + const { panelType, indexName, closeDetailPanel } = this.props; if (!panelType) { return null; } @@ -95,10 +95,7 @@ export class DetailPanelUi extends Component { anchorPosition="upRight" detailPanel={true} iconType="arrowUp" - label={intl.formatMessage({ - id: 'xpack.idxMgmt.detailPanel.manageContextMenuLabel', - defaultMessage: 'Manage', - })} + label={} /> )} /> @@ -109,5 +106,3 @@ export class DetailPanelUi extends Component { ); } } - -export const DetailPanel = injectI18n(DetailPanelUi); \ No newline at end of file diff --git a/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/summary/summary.js b/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/summary/summary.js index 7346ab6650f65..4813a67b53485 100644 --- a/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/summary/summary.js +++ b/x-pack/plugins/index_management/public/sections/index_list/components/detail_panel/summary/summary.js @@ -38,6 +38,9 @@ const HEADERS = { }), primary_size: i18n.translate('xpack.idxMgmt.summary.headers.primaryStorageSizeHeader', { defaultMessage: 'Primary Storage Size', + }), + aliases: i18n.translate('xpack.idxMgmt.summary.headers.aliases', { + defaultMessage: 'Aliases' }) }; @@ -46,10 +49,13 @@ export class Summary extends React.PureComponent { const { index } = this.props; return Object.keys(HEADERS).map(fieldName => { const value = index[fieldName]; - const content = - fieldName === "health" ? ( - {value} - ) : value; + let content = value; + if(fieldName === 'health') { + content = {value}; + } + if(Array.isArray(content)) { + content = content.join(', '); + } return [ {HEADERS[fieldName]}: diff --git a/x-pack/plugins/index_management/public/sections/index_list/components/index_actions_context_menu/index_actions_context_menu.js b/x-pack/plugins/index_management/public/sections/index_list/components/index_actions_context_menu/index_actions_context_menu.js index 9c0a381a1d19c..7c5339b53f75f 100644 --- a/x-pack/plugins/index_management/public/sections/index_list/components/index_actions_context_menu/index_actions_context_menu.js +++ b/x-pack/plugins/index_management/public/sections/index_list/components/index_actions_context_menu/index_actions_context_menu.js @@ -285,8 +285,8 @@ class IndexActionsContextMenuUi extends Component {

      {' '} {entity}: @@ -377,8 +377,8 @@ class IndexActionsContextMenuUi extends Component {

      {' '} {entity}: @@ -459,6 +459,7 @@ class IndexActionsContextMenuUi extends Component { panelPaddingSize="none" withTitle anchorPosition={anchorPosition} + repositionOnScroll > diff --git a/x-pack/plugins/index_management/public/sections/index_list/components/index_list/index_list.js b/x-pack/plugins/index_management/public/sections/index_list/components/index_list/index_list.js index 8ebae49b11238..19e8b4f071cbf 100644 --- a/x-pack/plugins/index_management/public/sections/index_list/components/index_list/index_list.js +++ b/x-pack/plugins/index_management/public/sections/index_list/components/index_list/index_list.js @@ -29,7 +29,7 @@ export class IndexList extends React.PureComponent { render() { return ( -

      +
      diff --git a/x-pack/plugins/index_management/public/sections/index_list/components/index_table/index_table.js b/x-pack/plugins/index_management/public/sections/index_list/components/index_table/index_table.js index 49ba4ef3bedb2..df501ef98ff32 100644 --- a/x-pack/plugins/index_management/public/sections/index_list/components/index_table/index_table.js +++ b/x-pack/plugins/index_management/public/sections/index_list/components/index_table/index_table.js @@ -168,7 +168,7 @@ export class IndexTableUi extends Component { } else if (fieldName === 'name') { return ( { openDetailPanel(value); @@ -284,12 +284,10 @@ export class IndexTableUi extends Component { id="checkboxShowSystemIndices" checked={showSystemIndices} onChange={event => showSystemIndicesChanged(event.target.checked)} - label={ - intl.formatMessage({ - id: 'xpack.idxMgmt.indexTable.systemIndicesSwitchLabel', - defaultMessage: 'Include system indices', - }) - } + label={} /> @@ -324,7 +322,12 @@ export class IndexTableUi extends Component { defaultMessage: 'Search', }) } - aria-label="Search indices" + aria-label={ + intl.formatMessage({ + id: 'xpack.idxMgmt.indexTable.systemIndicesSearchIndicesAriaLabel', + defaultMessage: 'Search indices', + }) + } /> diff --git a/x-pack/plugins/index_management/public/styles/table.less b/x-pack/plugins/index_management/public/styles/table.less index a93fe289f9b63..6ac08e744951d 100644 --- a/x-pack/plugins/index_management/public/styles/table.less +++ b/x-pack/plugins/index_management/public/styles/table.less @@ -2,23 +2,23 @@ background-color: #F5F5F5; } -.indexTable__link { +.indTable__link { text-align: left; } .indexTable__header--name { width: 25%; } -.indexTableHorizontalScrollContainer { +.indTable__horizontalScrollContainer { overflow-x: auto; max-width: 100%; height: 100vh; } -.indexTableHorizontalScroll { +.indTable__horizontalScroll { min-width: 800px; width: 100%; } -.indexDetail__codeBlock { +.indDetail__codeBlock { background: transparent; } diff --git a/x-pack/plugins/index_management/server/lib/call_with_request_factory/call_with_request_factory.js b/x-pack/plugins/index_management/server/lib/call_with_request_factory/call_with_request_factory.js index b9a77a1a0362b..7359a831994f9 100644 --- a/x-pack/plugins/index_management/server/lib/call_with_request_factory/call_with_request_factory.js +++ b/x-pack/plugins/index_management/server/lib/call_with_request_factory/call_with_request_factory.js @@ -6,7 +6,7 @@ import { once } from 'lodash'; -const callWithRequest = once((server) => { +const callWithRequest = once(server => { const cluster = server.plugins.elasticsearch.getCluster('data'); return cluster.callWithRequest; }); diff --git a/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_custom_error.js b/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_custom_error.js index 890a366ac65c1..3295113d38ee5 100644 --- a/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_custom_error.js +++ b/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_custom_error.js @@ -14,5 +14,5 @@ import Boom from 'boom'; * @return Object Boom error response */ export function wrapCustomError(err, statusCode) { - return Boom.wrap(err, statusCode); + return Boom.boomify(err, { statusCode }); } diff --git a/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_es_error.js b/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_es_error.js index 3d69ff19a6c84..2df2e4b802e1a 100644 --- a/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_es_error.js +++ b/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_es_error.js @@ -20,11 +20,11 @@ export function wrapEsError(err, statusCodeToMessageMap = {}) { // If no custom message if specified for the error's status code, just // wrap the error as a Boom error response and return it if (!statusCodeToMessageMap[statusCode]) { - return Boom.wrap(err, err.statusCode); + return Boom.boomify(err, { statusCode }); } // Otherwise, use the custom message to create a Boom error response and // return it const message = statusCodeToMessageMap[statusCode]; - return Boom.create(statusCode, message); -} \ No newline at end of file + return new Boom(message, { statusCode }); +} diff --git a/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_unknown_error.js b/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_unknown_error.js index ca72fa0030922..4b865880ae20d 100644 --- a/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_unknown_error.js +++ b/x-pack/plugins/index_management/server/lib/error_wrappers/wrap_unknown_error.js @@ -13,5 +13,5 @@ import Boom from 'boom'; * @return Object Boom error response */ export function wrapUnknownError(err) { - return Boom.wrap(err); + return Boom.boomify(err); } \ No newline at end of file diff --git a/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js b/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js index b72f8cc769731..359b3fb2ce6f4 100644 --- a/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js +++ b/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js @@ -40,14 +40,13 @@ describe('license_pre_routing_factory', () => { }; }); - it ('replies with 403', (done) => { + it ('replies with 403', () => { const licensePreRouting = licensePreRoutingFactory(mockServer); const stubRequest = {}; - licensePreRouting(stubRequest, (response) => { + expect(() => licensePreRouting(stubRequest)).to.throwException((response) => { expect(response).to.be.an(Error); expect(response.isBoom).to.be(true); expect(response.output.statusCode).to.be(403); - done(); }); }); }); @@ -59,13 +58,11 @@ describe('license_pre_routing_factory', () => { }; }); - it ('replies with nothing', (done) => { + it ('replies with nothing', () => { const licensePreRouting = licensePreRoutingFactory(mockServer); const stubRequest = {}; - licensePreRouting(stubRequest, (response) => { - expect(response).to.be(undefined); - done(); - }); + const response = licensePreRouting(stubRequest); + expect(response).to.be(null); }); }); }); diff --git a/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/license_pre_routing_factory.js b/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/license_pre_routing_factory.js index b3720ab265393..11e01304b6e5c 100644 --- a/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/license_pre_routing_factory.js +++ b/x-pack/plugins/index_management/server/lib/license_pre_routing_factory/license_pre_routing_factory.js @@ -12,16 +12,15 @@ export const licensePreRoutingFactory = once((server) => { const xpackMainPlugin = server.plugins.xpack_main; // License checking and enable/disable logic - function licensePreRouting(request, reply) { + function licensePreRouting() { const licenseCheckResults = xpackMainPlugin.info.feature(PLUGIN.ID).getLicenseCheckResults(); if (!licenseCheckResults.isAvailable) { const error = new Error(licenseCheckResults.message); const statusCode = 403; - const wrappedError = wrapCustomError(error, statusCode); - reply(wrappedError); - } else { - reply(); + throw wrapCustomError(error, statusCode); } + + return null; } return licensePreRouting; diff --git a/x-pack/plugins/index_management/server/routes/api/indices/fetch_aliases.js b/x-pack/plugins/index_management/server/routes/api/indices/fetch_aliases.js new file mode 100644 index 0000000000000..2f0b622e5048c --- /dev/null +++ b/x-pack/plugins/index_management/server/routes/api/indices/fetch_aliases.js @@ -0,0 +1,13 @@ +/* + * 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 async function fetchAliases(callWithRequest) { + const results = await callWithRequest('cat.aliases', { format: 'json' }); + return results.reduce((hash, { index, alias }) => { + (hash[index] = hash[index] || []).push(alias); + return hash; + }, {}); +} diff --git a/x-pack/plugins/index_management/server/routes/api/indices/fetch_aliases.test.js b/x-pack/plugins/index_management/server/routes/api/indices/fetch_aliases.test.js new file mode 100644 index 0000000000000..1371758b78fcd --- /dev/null +++ b/x-pack/plugins/index_management/server/routes/api/indices/fetch_aliases.test.js @@ -0,0 +1,43 @@ +/* + * 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 sinon from 'sinon'; +import { fetchAliases } from './fetch_aliases'; + +describe('fetching aliases', () => { + const fetchFn = fetchAliases; + + test('should return map of aliases for indices', async () => { + const retVal = [ + { index: 'test1Index', alias: 'test1Alias' }, + { index: 'test2Index', alias: 'test1Alias' }, + { index: 'test3Index', alias: 'test2Alias' }, + { index: 'test3Index', alias: 'test3Alias' }, + ]; + const mockCallWithRequest = sinon.spy(() => {return retVal;}); + + const results = await fetchFn(mockCallWithRequest); + + expect(mockCallWithRequest.called); + expect(results).toBeDefined(); + expect(results).toMatchObject({ + test1Index: ['test1Alias'], + test2Index: ['test1Alias'], + test3Index: ['test2Alias', 'test3Alias'], + }); + + }); + + test('should return an empty object if no aliases exist', async () => { + const mockCallWithRequest = sinon.spy(() => {return [];}); + + const results = await fetchFn(mockCallWithRequest); + + expect(mockCallWithRequest.called); + expect(results).toBeDefined(); + expect(results).toMatchObject({}); + }); +}); diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_clear_cache_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_clear_cache_route.js index 0260c5f3023ea..5dc22f023eb5c 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_clear_cache_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_clear_cache_route.js @@ -30,7 +30,7 @@ export function registerClearCacheRoute(server) { server.route({ path: '/api/index_management/indices/clear_cache', method: 'POST', - handler: async (request, reply) => { + handler: async (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const indices = getIndexArrayFromPayload(request.payload); @@ -38,13 +38,13 @@ export function registerClearCacheRoute(server) { await clearCache(callWithRequest, indices); //TODO: Should we check acknowledged = true? - reply(); + return h.response(); } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_close_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_close_route.js index b2e96cd6b796c..763429de6d3e4 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_close_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_close_route.js @@ -30,7 +30,7 @@ export function registerCloseRoute(server) { server.route({ path: '/api/index_management/indices/close', method: 'POST', - handler: async (request, reply) => { + handler: async (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const indices = getIndexArrayFromPayload(request.payload); @@ -38,13 +38,13 @@ export function registerCloseRoute(server) { await closeIndices(callWithRequest, indices); //TODO: Should we check acknowledged = true? - reply(); + return h.response(); } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_delete_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_delete_route.js index 58e1d99224057..a2b2c87662959 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_delete_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_delete_route.js @@ -30,19 +30,19 @@ export function registerDeleteRoute(server) { server.route({ path: '/api/index_management/indices/delete', method: 'POST', - handler: async (request, reply) => { + handler: async (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const indices = getIndexArrayFromPayload(request.payload); try { await deleteIndices(callWithRequest, indices); - reply(); + return h.response(); } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_flush_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_flush_route.js index 4d59552bf5374..f66691b9577f1 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_flush_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_flush_route.js @@ -31,7 +31,7 @@ export function registerFlushRoute(server) { server.route({ path: '/api/index_management/indices/flush', method: 'POST', - handler: async (request, reply) => { + handler: async (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const indices = getIndexArrayFromPayload(request.payload); @@ -39,13 +39,13 @@ export function registerFlushRoute(server) { await flushIndices(callWithRequest, indices); //TODO: Should we check acknowledged = true? - reply(); + return h.response(); } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_forcemerge_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_forcemerge_route.js index 7328101ebaa99..dcc926353d07b 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_forcemerge_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_forcemerge_route.js @@ -28,7 +28,7 @@ export function registerForcemergeRoute(server) { server.route({ path: '/api/index_management/indices/forcemerge', method: 'POST', - handler: async (request, reply) => { + handler: async (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const { payload } = request; const { indices = [], maxNumSegments } = payload; @@ -36,13 +36,13 @@ export function registerForcemergeRoute(server) { await forcemergeIndices(callWithRequest, indices, maxNumSegments); //TODO: Should we check acknowledged = true? - reply(); + return h.response(); } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_list_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_list_route.js index 37794c7e91b9e..fefb5fc91a843 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_list_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_list_route.js @@ -7,9 +7,10 @@ import { callWithRequestFactory } from '../../../lib/call_with_request_factory'; import { isEsErrorFactory } from '../../../lib/is_es_error_factory'; import { wrapEsError, wrapUnknownError } from '../../../lib/error_wrappers'; -import { licensePreRoutingFactory } from'../../../lib/license_pre_routing_factory'; +import { licensePreRoutingFactory } from '../../../lib/license_pre_routing_factory'; +import { fetchAliases } from './fetch_aliases'; -function formatHits(hits) { +function formatHits(hits, aliases) { return hits.map(hit => { return { health: hit.health, @@ -22,6 +23,7 @@ function formatHits(hits) { documents_deleted: hit["docs.deleted"], size: hit["store.size"], primary_size: hit["pri.store.size"], + aliases: aliases.hasOwnProperty(hit.index) ? aliases[hit.index] : 'none', }; }); } @@ -41,23 +43,24 @@ export function registerListRoute(server) { server.route({ path: '/api/index_management/indices', method: 'GET', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); try { + const aliases = await fetchAliases(callWithRequest); const hits = await fetchIndices(callWithRequest); - const response = formatHits(hits); - reply(response); + const response = formatHits(hits, aliases); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { - pre: [ licensePreRouting ] + pre: [licensePreRouting] } }); } diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_open_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_open_route.js index 9a8e164e0f627..bbf38d4a51adf 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_open_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_open_route.js @@ -30,7 +30,7 @@ export function registerOpenRoute(server) { server.route({ path: '/api/index_management/indices/open', method: 'POST', - handler: async (request, reply) => { + handler: async (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const indices = getIndexArrayFromPayload(request.payload); @@ -38,13 +38,13 @@ export function registerOpenRoute(server) { await openIndices(callWithRequest, indices); //TODO: Should we check acknowledged = true? - reply(); + return h.response(); } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_refresh_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_refresh_route.js index 666197834248c..49414f70a6588 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_refresh_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_refresh_route.js @@ -29,7 +29,7 @@ export function registerRefreshRoute(server) { server.route({ path: '/api/index_management/indices/refresh', method: 'POST', - handler: async (request, reply) => { + handler: async (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const indices = getIndexArrayFromPayload(request.payload); @@ -37,13 +37,13 @@ export function registerRefreshRoute(server) { await refreshIndices(callWithRequest, indices); //TODO: Should we check acknowledged = true? - reply(); + return h.response(); } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_reload_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_reload_route.js index 8d8431535eb6b..bf2fe6c558867 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_reload_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_reload_route.js @@ -8,12 +8,13 @@ import { callWithRequestFactory } from '../../../lib/call_with_request_factory'; import { isEsErrorFactory } from '../../../lib/is_es_error_factory'; import { wrapEsError, wrapUnknownError } from '../../../lib/error_wrappers'; import { licensePreRoutingFactory } from'../../../lib/license_pre_routing_factory'; +import { fetchAliases } from './fetch_aliases'; function getIndexNamesFromPayload(payload) { return payload.indexNames || []; } -function formatHits(hits) { +function formatHits(hits, aliases) { return hits.map(hit => { return { health: hit.health, @@ -26,6 +27,7 @@ function formatHits(hits) { documents_deleted: hit["docs.deleted"], size: hit["store.size"], primary_size: hit["pri.store.size"], + aliases: aliases.hasOwnProperty(hit.index) ? aliases[hit.index] : 'none', }; }); } @@ -46,20 +48,21 @@ export function registerReloadRoute(server) { server.route({ path: '/api/index_management/indices/reload', method: 'POST', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); const indexNames = getIndexNamesFromPayload(request.payload); try { - const hits = await fetchIndices(callWithRequest, indexNames); - const response = formatHits(hits); - reply(response); + const indices = await fetchIndices(callWithRequest, indexNames); + const aliases = await fetchAliases(callWithRequest); + const response = formatHits(indices, aliases); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_settings_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_settings_route.js index a9208a9f1f297..c15e9f51d6464 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_settings_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_settings_route.js @@ -46,20 +46,20 @@ export function registerSettingsRoute(server) { server.route({ path: '/api/index_management/indices/settings', method: 'POST', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); const indexNames = getIndexNamesFromPayload(request.payload); try { const hits = await fetchSettings(callWithRequest, indexNames); const response = formatHits(hits); - reply(response); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/indices/register_shards_route.js b/x-pack/plugins/index_management/server/routes/api/indices/register_shards_route.js index b4b2a585743b9..0d56e2146b612 100644 --- a/x-pack/plugins/index_management/server/routes/api/indices/register_shards_route.js +++ b/x-pack/plugins/index_management/server/routes/api/indices/register_shards_route.js @@ -46,20 +46,20 @@ export function registerShardsRoute(server) { server.route({ path: '/api/index_management/indices/shards', method: 'POST', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); const indexNames = getIndexNamesFromPayload(request.payload); try { const hits = await fetchShards(callWithRequest, indexNames); const response = formatHits(hits); - reply(response); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.js b/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.js index 93bb8a405ca26..c988fdb159119 100644 --- a/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.js +++ b/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.js @@ -33,7 +33,7 @@ export function registerMappingRoute(server) { server.route({ path: '/api/index_management/mapping/{indexName}', method: 'GET', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); const { indexName } = request.params; @@ -41,13 +41,13 @@ export function registerMappingRoute(server) { const hit = await fetchMapping(callWithRequest, indexName); const response = formatHit(hit, indexName); - reply(response); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.js b/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.js index 0493cd650b8ec..658ab109fd7c6 100644 --- a/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.js +++ b/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.js @@ -35,20 +35,20 @@ export function registerLoadRoute(server) { server.route({ path: '/api/index_management/settings/{indexName}', method: 'GET', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); const { indexName } = request.params; try { const hit = await fetchSettings(callWithRequest, indexName); const response = formatHit(hit); - reply(response); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.js b/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.js index 5a3816481406b..49904d741f057 100644 --- a/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.js +++ b/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.js @@ -29,18 +29,18 @@ export function registerUpdateRoute(server) { server.route({ path: '/api/index_management/settings/{indexName}', method: 'PUT', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); const { indexName } = request.params; try { const response = await updateSettings(callWithRequest, indexName, request.payload); - reply(response); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.js b/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.js index 163b240782e02..a0a0455e273c8 100644 --- a/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.js +++ b/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.js @@ -34,7 +34,7 @@ export function registerStatsRoute(server) { server.route({ path: '/api/index_management/stats/{indexName}', method: 'GET', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); const { indexName } = request.params; @@ -42,13 +42,13 @@ export function registerStatsRoute(server) { const hit = await fetchStats(callWithRequest, indexName); const response = formatHit(hit, indexName); - reply(response); + return response; } catch (err) { if (isEsError(err)) { - return reply(wrapEsError(err)); + throw wrapEsError(err); } - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/infra/common/graphql/introspection.json b/x-pack/plugins/infra/common/graphql/introspection.json new file mode 100644 index 0000000000000..cd3e36a84c306 --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/introspection.json @@ -0,0 +1,2666 @@ +{ + "__schema": { + "queryType": { "name": "Query" }, + "mutationType": null, + "subscriptionType": null, + "types": [ + { + "kind": "OBJECT", + "name": "Query", + "description": "", + "fields": [ + { + "name": "source", + "description": "Get an infrastructure data source by id", + "args": [ + { + "name": "id", + "description": "The id of the source", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraSource", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "allSources", + "description": "Get a list of all infrastructure data sources", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraSource", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "ID", + "description": + "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraSource", + "description": "A source of infrastructure data", + "fields": [ + { + "name": "id", + "description": "The id of the source", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "configuration", + "description": "The raw configuration of the source", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraSourceConfiguration", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "The status of the source", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraSourceStatus", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "capabilitiesByNode", + "description": "A hierarchy of capabilities available on nodes", + "args": [ + { + "name": "nodeName", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "nodeType", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "InfraNodeType", "ofType": null } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraNodeCapability", "ofType": null } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "logEntriesAround", + "description": "A consecutive span of log entries surrounding a point in time", + "args": [ + { + "name": "key", + "description": "The sort key that corresponds to the point in time", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "INPUT_OBJECT", "name": "InfraTimeKeyInput", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "countBefore", + "description": "The maximum number of preceding to return", + "type": { "kind": "SCALAR", "name": "Int", "ofType": null }, + "defaultValue": "0" + }, + { + "name": "countAfter", + "description": "The maximum number of following to return", + "type": { "kind": "SCALAR", "name": "Int", "ofType": null }, + "defaultValue": "0" + }, + { + "name": "filterQuery", + "description": "The query to filter the log entries by", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + }, + { + "name": "highlightQuery", + "description": "The query to highlight the log entries with", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraLogEntryInterval", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "logEntriesBetween", + "description": "A consecutive span of log entries within an interval", + "args": [ + { + "name": "startKey", + "description": "The sort key that corresponds to the start of the interval", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "INPUT_OBJECT", "name": "InfraTimeKeyInput", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "endKey", + "description": "The sort key that corresponds to the end of the interval", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "INPUT_OBJECT", "name": "InfraTimeKeyInput", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "filterQuery", + "description": "The query to filter the log entries by", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + }, + { + "name": "highlightQuery", + "description": "The query to highlight the log entries with", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraLogEntryInterval", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "logSummaryBetween", + "description": "A consecutive span of summary buckets within an interval", + "args": [ + { + "name": "start", + "description": + "The millisecond timestamp that corresponds to the start of the interval", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "end", + "description": + "The millisecond timestamp that corresponds to the end of the interval", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "bucketSize", + "description": "The size of each bucket in milliseconds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "filterQuery", + "description": "The query to filter the log entries by", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraLogSummaryInterval", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "map", + "description": "A hierarchy of hosts, pods, containers, services or arbitrary groups", + "args": [ + { + "name": "timerange", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "InfraTimerangeInput", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "filterQuery", + "description": "", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + } + ], + "type": { "kind": "OBJECT", "name": "InfraResponse", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metrics", + "description": "", + "args": [ + { + "name": "nodeId", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "nodeType", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "InfraNodeType", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "timerange", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "InfraTimerangeInput", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "metrics", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "InfraMetric", "ofType": null } + } + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraMetricData", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraSourceConfiguration", + "description": "A set of configuration options for an infrastructure data source", + "fields": [ + { + "name": "metricAlias", + "description": "The alias to read metric data from", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "logAlias", + "description": "The alias to read log data from", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fields", + "description": "The field mapping to use for this source", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraSourceFields", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "String", + "description": + "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraSourceFields", + "description": "A mapping of semantic fields to their document counterparts", + "fields": [ + { + "name": "container", + "description": "The field to identify a container by", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "host", + "description": "The fields to identify a host by", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": + "The fields that may contain the log event message. The first field found win.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pod", + "description": "The field to identify a pod by", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "tiebreaker", + "description": + "The field to use as a tiebreaker for log events that have identical timestamps", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "timestamp", + "description": "The field to use as a timestamp for metrics and logs", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraSourceStatus", + "description": "The status of an infrastructure data source", + "fields": [ + { + "name": "metricAliasExists", + "description": "Whether the configured metric alias exists", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "logAliasExists", + "description": "Whether the configured log alias exists", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metricIndicesExist", + "description": + "Whether the configured alias or wildcard pattern resolve to any metric indices", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "logIndicesExist", + "description": + "Whether the configured alias or wildcard pattern resolve to any log indices", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metricIndices", + "description": "The list of indices in the metric alias", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "logIndices", + "description": "The list of indices in the log alias", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "indexFields", + "description": "The list of fields defined in the index mappings", + "args": [ + { + "name": "indexType", + "description": "", + "type": { "kind": "ENUM", "name": "InfraIndexType", "ofType": null }, + "defaultValue": "ANY" + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraIndexField", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Boolean", + "description": "The `Boolean` scalar type represents `true` or `false`.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "InfraIndexType", + "description": "", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { "name": "ANY", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "LOGS", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "METRICS", "description": "", "isDeprecated": false, "deprecationReason": null } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraIndexField", + "description": "A descriptor of a field in an index", + "fields": [ + { + "name": "name", + "description": "The name of the field", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "The type of the field's values as recognized by Kibana", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "searchable", + "description": "Whether the field's values can be efficiently searched for", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "aggregatable", + "description": "Whether the field's values can be aggregated", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "InfraNodeType", + "description": "", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { "name": "pod", "description": "", "isDeprecated": false, "deprecationReason": null }, + { + "name": "container", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { "name": "host", "description": "", "isDeprecated": false, "deprecationReason": null } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraNodeCapability", + "description": + "One specific capability available on a node. A capability corresponds to a fileset or metricset", + "fields": [ + { + "name": "name", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "source", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "InfraTimeKeyInput", + "description": "", + "fields": null, + "inputFields": [ + { + "name": "time", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "tiebreaker", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Float", + "description": + "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Int", + "description": + "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraLogEntryInterval", + "description": "A consecutive sequence of log entries", + "fields": [ + { + "name": "start", + "description": + "The key corresponding to the start of the interval covered by the entries", + "args": [], + "type": { "kind": "OBJECT", "name": "InfraTimeKey", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "end", + "description": + "The key corresponding to the end of the interval covered by the entries", + "args": [], + "type": { "kind": "OBJECT", "name": "InfraTimeKey", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hasMoreBefore", + "description": "Whether there are more log entries available before the start", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hasMoreAfter", + "description": "Whether there are more log entries available after the end", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "filterQuery", + "description": "The query the log entries were filtered by", + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "highlightQuery", + "description": "The query the log entries were highlighted with", + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entries", + "description": "A list of the log entries", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraLogEntry", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraTimeKey", + "description": "A representation of the log entry's position in the event stream", + "fields": [ + { + "name": "time", + "description": "The timestamp of the event that the log entry corresponds to", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "tiebreaker", + "description": "The tiebreaker that disambiguates events with the same timestamp", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraLogEntry", + "description": "A log entry", + "fields": [ + { + "name": "key", + "description": + "A unique representation of the log entry's position in the event stream", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraTimeKey", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "gid", + "description": "The log entry's id", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "source", + "description": "The source id", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "A list of the formatted log entry segments", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "UNION", "name": "InfraLogMessageSegment", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "UNION", + "name": "InfraLogMessageSegment", + "description": "A segment of the log entry message", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": [ + { "kind": "OBJECT", "name": "InfraLogMessageFieldSegment", "ofType": null }, + { "kind": "OBJECT", "name": "InfraLogMessageConstantSegment", "ofType": null } + ] + }, + { + "kind": "OBJECT", + "name": "InfraLogMessageFieldSegment", + "description": "A segment of the log entry message that was derived from a field", + "fields": [ + { + "name": "field", + "description": "The field the segment was derived from", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "value", + "description": "The segment's message", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "highlights", + "description": "A list of highlighted substrings of the value", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraLogMessageConstantSegment", + "description": "A segment of the log entry message that was derived from a field", + "fields": [ + { + "name": "constant", + "description": "The segment's message", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraLogSummaryInterval", + "description": "A consecutive sequence of log summary buckets", + "fields": [ + { + "name": "start", + "description": + "The millisecond timestamp corresponding to the start of the interval covered by the summary", + "args": [], + "type": { "kind": "SCALAR", "name": "Float", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "end", + "description": + "The millisecond timestamp corresponding to the end of the interval covered by the summary", + "args": [], + "type": { "kind": "SCALAR", "name": "Float", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "filterQuery", + "description": "The query the log entries were filtered by", + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "buckets", + "description": "A list of the log entries", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraLogSummaryBucket", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraLogSummaryBucket", + "description": "A log summary bucket", + "fields": [ + { + "name": "start", + "description": "The start timestamp of the bucket", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "end", + "description": "The end timestamp of the bucket", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entriesCount", + "description": "The number of entries inside the bucket", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Int", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "InfraTimerangeInput", + "description": "", + "fields": null, + "inputFields": [ + { + "name": "interval", + "description": + "The interval string to use for last bucket. The format is '{value}{unit}'. For example '5m' would return the metrics for the last 5 minutes of the timespan.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "to", + "description": "The end of the timerange", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "from", + "description": "The beginning of the timerange", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraResponse", + "description": "", + "fields": [ + { + "name": "nodes", + "description": "", + "args": [ + { + "name": "path", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "INPUT_OBJECT", "name": "InfraPathInput", "ofType": null } + } + } + }, + "defaultValue": null + }, + { + "name": "metric", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "INPUT_OBJECT", "name": "InfraMetricInput", "ofType": null } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraNode", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "InfraPathInput", + "description": "", + "fields": null, + "inputFields": [ + { + "name": "type", + "description": "The type of path", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "InfraPathType", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "label", + "description": + "The label to use in the results for the group by for the terms group by", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + }, + { + "name": "field", + "description": + "The field to group by from a terms aggregation, this is ignored by the filter type", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null + }, + { + "name": "filters", + "description": "The fitlers for the filter group by", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "INPUT_OBJECT", "name": "InfraPathFilterInput", "ofType": null } + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "InfraPathType", + "description": "", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { "name": "terms", "description": "", "isDeprecated": false, "deprecationReason": null }, + { + "name": "filters", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { "name": "hosts", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "pods", "description": "", "isDeprecated": false, "deprecationReason": null }, + { + "name": "containers", + "description": "", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "InfraPathFilterInput", + "description": "A group by filter", + "fields": null, + "inputFields": [ + { + "name": "label", + "description": + "The label for the filter, this will be used as the group name in the final results", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "defaultValue": null + }, + { + "name": "query", + "description": "The query string query", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "InfraMetricInput", + "description": "", + "fields": null, + "inputFields": [ + { + "name": "type", + "description": "The type of metric", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "InfraMetricType", "ofType": null } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "InfraMetricType", + "description": "", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { "name": "count", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "cpu", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "load", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "memory", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "tx", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "rx", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "logRate", "description": "", "isDeprecated": false, "deprecationReason": null } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraNode", + "description": "", + "fields": [ + { + "name": "path", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraNodePath", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metric", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraNodeMetric", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraNodePath", + "description": "", + "fields": [ + { + "name": "value", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraNodeMetric", + "description": "", + "fields": [ + { + "name": "name", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "InfraMetricType", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "value", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "InfraMetric", + "description": "", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "hostSystemOverview", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostCpuUsage", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostFilesystem", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostK8sOverview", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostK8sCpuCap", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostK8sDiskCap", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostK8sMemoryCap", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostK8sPodCap", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostLoad", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostMemoryUsage", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hostNetworkTraffic", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "podOverview", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "podCpuUsage", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "podMemoryUsage", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "podLogUsage", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "podNetworkTraffic", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "containerOverview", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "containerCpuKernel", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "containerCpuUsage", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "containerDiskIOOps", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "containerDiskIOBytes", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "containerMemory", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "containerNetworkTraffic", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nginxHits", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nginxRequestRate", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nginxActiveConnections", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nginxRequestsPerConnection", + "description": "", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraMetricData", + "description": "", + "fields": [ + { + "name": "id", + "description": "", + "args": [], + "type": { "kind": "ENUM", "name": "InfraMetric", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "series", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraDataSeries", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraDataSeries", + "description": "", + "fields": [ + { + "name": "id", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "data", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "InfraDataPoint", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InfraDataPoint", + "description": "", + "fields": [ + { + "name": "timestamp", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Float", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "value", + "description": "", + "args": [], + "type": { "kind": "SCALAR", "name": "Float", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Schema", + "description": + "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", + "fields": [ + { + "name": "types", + "description": "A list of all types supported by this server.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "queryType", + "description": "The type that query operations will be rooted at.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mutationType", + "description": + "If this server supports mutation, the type that mutation operations will be rooted at.", + "args": [], + "type": { "kind": "OBJECT", "name": "__Type", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "subscriptionType", + "description": + "If this server support subscription, the type that subscription operations will be rooted at.", + "args": [], + "type": { "kind": "OBJECT", "name": "__Type", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "directives", + "description": "A list of all directives supported by this server.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Directive", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Type", + "description": + "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", + "fields": [ + { + "name": "kind", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "__TypeKind", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fields", + "description": null, + "args": [ + { + "name": "includeDeprecated", + "description": null, + "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null }, + "defaultValue": "false" + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Field", "ofType": null } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "interfaces", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "possibleTypes", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "enumValues", + "description": null, + "args": [ + { + "name": "includeDeprecated", + "description": null, + "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null }, + "defaultValue": "false" + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__EnumValue", "ofType": null } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "inputFields", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__InputValue", "ofType": null } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ofType", + "description": null, + "args": [], + "type": { "kind": "OBJECT", "name": "__Type", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "__TypeKind", + "description": "An enum describing what kind of type a given `__Type` is.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "SCALAR", + "description": "Indicates this type is a scalar.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "OBJECT", + "description": + "Indicates this type is an object. `fields` and `interfaces` are valid fields.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INTERFACE", + "description": + "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNION", + "description": "Indicates this type is a union. `possibleTypes` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ENUM", + "description": "Indicates this type is an enum. `enumValues` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INPUT_OBJECT", + "description": + "Indicates this type is an input object. `inputFields` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "LIST", + "description": "Indicates this type is a list. `ofType` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NON_NULL", + "description": "Indicates this type is a non-null. `ofType` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Field", + "description": + "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "args", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__InputValue", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isDeprecated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationReason", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__InputValue", + "description": + "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "defaultValue", + "description": + "A GraphQL-formatted string representing the default value for this input value.", + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__EnumValue", + "description": + "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isDeprecated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationReason", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Directive", + "description": + "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "locations", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "ENUM", "name": "__DirectiveLocation", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "args", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "OBJECT", "name": "__InputValue", "ofType": null } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "onOperation", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": true, + "deprecationReason": "Use `locations`." + }, + { + "name": "onFragment", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": true, + "deprecationReason": "Use `locations`." + }, + { + "name": "onField", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "isDeprecated": true, + "deprecationReason": "Use `locations`." + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "__DirectiveLocation", + "description": + "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "QUERY", + "description": "Location adjacent to a query operation.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MUTATION", + "description": "Location adjacent to a mutation operation.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SUBSCRIPTION", + "description": "Location adjacent to a subscription operation.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIELD", + "description": "Location adjacent to a field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FRAGMENT_DEFINITION", + "description": "Location adjacent to a fragment definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FRAGMENT_SPREAD", + "description": "Location adjacent to a fragment spread.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INLINE_FRAGMENT", + "description": "Location adjacent to an inline fragment.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SCHEMA", + "description": "Location adjacent to a schema definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SCALAR", + "description": "Location adjacent to a scalar definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "OBJECT", + "description": "Location adjacent to an object type definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIELD_DEFINITION", + "description": "Location adjacent to a field definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ARGUMENT_DEFINITION", + "description": "Location adjacent to an argument definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INTERFACE", + "description": "Location adjacent to an interface definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNION", + "description": "Location adjacent to a union definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ENUM", + "description": "Location adjacent to an enum definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ENUM_VALUE", + "description": "Location adjacent to an enum value definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INPUT_OBJECT", + "description": "Location adjacent to an input object type definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INPUT_FIELD_DEFINITION", + "description": "Location adjacent to an input object field definition.", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "InfraOperator", + "description": "", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { "name": "gt", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "gte", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "lt", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "lte", "description": "", "isDeprecated": false, "deprecationReason": null }, + { "name": "eq", "description": "", "isDeprecated": false, "deprecationReason": null } + ], + "possibleTypes": null + } + ], + "directives": [ + { + "name": "skip", + "description": + "Directs the executor to skip this field or fragment when the `if` argument is true.", + "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], + "args": [ + { + "name": "if", + "description": "Skipped when true.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "defaultValue": null + } + ] + }, + { + "name": "include", + "description": + "Directs the executor to include this field or fragment only when the `if` argument is true.", + "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], + "args": [ + { + "name": "if", + "description": "Included when true.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } + }, + "defaultValue": null + } + ] + }, + { + "name": "deprecated", + "description": "Marks an element of a GraphQL schema as no longer supported.", + "locations": ["FIELD_DEFINITION", "ENUM_VALUE"], + "args": [ + { + "name": "reason", + "description": + "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).", + "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": "\"No longer supported\"" + } + ] + } + ] + } +} diff --git a/x-pack/plugins/infra/common/graphql/root/index.ts b/x-pack/plugins/infra/common/graphql/root/index.ts new file mode 100644 index 0000000000000..47417b6376307 --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/root/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { rootSchema } from './schema.gql'; diff --git a/x-pack/plugins/infra/common/graphql/root/schema.gql.ts b/x-pack/plugins/infra/common/graphql/root/schema.gql.ts new file mode 100644 index 0000000000000..0819f2e2808b8 --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/root/schema.gql.ts @@ -0,0 +1,18 @@ +/* + * 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 gql from 'graphql-tag'; + +export const rootSchema = gql` + schema { + query: Query + #mutation: Mutation + } + + type Query + + #type Mutation +`; diff --git a/x-pack/plugins/infra/common/graphql/shared/fragments.gql_query.ts b/x-pack/plugins/infra/common/graphql/shared/fragments.gql_query.ts new file mode 100644 index 0000000000000..44a5be6a85638 --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/shared/fragments.gql_query.ts @@ -0,0 +1,16 @@ +/* + * 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 gql from 'graphql-tag'; + +export const sharedFragments = { + InfraTimeKey: gql` + fragment InfraTimeKeyFields on InfraTimeKey { + time + tiebreaker + } + `, +}; diff --git a/x-pack/plugins/infra/common/graphql/shared/index.ts b/x-pack/plugins/infra/common/graphql/shared/index.ts new file mode 100644 index 0000000000000..56c8675e76caf --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/shared/index.ts @@ -0,0 +1,8 @@ +/* + * 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 { sharedFragments } from './fragments.gql_query'; +export { sharedSchema } from './schema.gql'; diff --git a/x-pack/plugins/infra/common/graphql/shared/schema.gql.ts b/x-pack/plugins/infra/common/graphql/shared/schema.gql.ts new file mode 100644 index 0000000000000..fd86e605b8747 --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/shared/schema.gql.ts @@ -0,0 +1,34 @@ +/* + * 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 gql from 'graphql-tag'; + +export const sharedSchema = gql` + "A representation of the log entry's position in the event stream" + type InfraTimeKey { + "The timestamp of the event that the log entry corresponds to" + time: Float! + "The tiebreaker that disambiguates events with the same timestamp" + tiebreaker: Float! + } + + input InfraTimeKeyInput { + time: Float! + tiebreaker: Float! + } + + enum InfraIndexType { + ANY + LOGS + METRICS + } + + enum InfraNodeType { + pod + container + host + } +`; diff --git a/x-pack/plugins/infra/common/graphql/typed_resolvers.ts b/x-pack/plugins/infra/common/graphql/typed_resolvers.ts new file mode 100644 index 0000000000000..50b169601894b --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/typed_resolvers.ts @@ -0,0 +1,82 @@ +/* + * 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 { GraphQLResolveInfo } from 'graphql'; + +type BasicResolver = ( + parent: any, + args: Args, + context: any, + info: GraphQLResolveInfo +) => Promise | Result; + +type InfraResolverResult = + | Promise + | Promise<{ [P in keyof R]: () => Promise }> + | { [P in keyof R]: () => Promise } + | { [P in keyof R]: () => R[P] } + | R; + +export type InfraResolvedResult = Resolver extends InfraResolver< + infer Result, + any, + any, + any +> + ? Result + : never; + +export type SubsetResolverWithFields = R extends BasicResolver< + Array, + infer ArgsInArray +> + ? BasicResolver< + Array>>, + ArgsInArray + > + : R extends BasicResolver + ? BasicResolver>, Args> + : never; + +export type SubsetResolverWithoutFields = R extends BasicResolver< + Array, + infer ArgsInArray +> + ? BasicResolver< + Array>>, + ArgsInArray + > + : R extends BasicResolver + ? BasicResolver>, Args> + : never; + +export type InfraResolver = ( + parent: Parent, + args: Args, + context: Context, + info: GraphQLResolveInfo +) => InfraResolverResult; + +export type InfraResolverOf = Resolver extends BasicResolver< + infer Result, + infer Args +> + ? InfraResolver + : never; + +export type InfraResolverWithFields< + Resolver, + Parent, + Context, + IncludedFields extends string +> = InfraResolverOf, Parent, Context>; + +export type InfraResolverWithoutFields< + Resolver, + Parent, + Context, + ExcludedFields extends string +> = InfraResolverOf, Parent, Context>; diff --git a/x-pack/plugins/infra/common/graphql/types.ts b/x-pack/plugins/infra/common/graphql/types.ts new file mode 100644 index 0000000000000..c79280bd7f43b --- /dev/null +++ b/x-pack/plugins/infra/common/graphql/types.ts @@ -0,0 +1,858 @@ +/* tslint:disable */ +import { GraphQLResolveInfo } from 'graphql'; + +type Resolver = ( + parent: any, + args: Args, + context: any, + info: GraphQLResolveInfo +) => Promise | Result; + +export interface Query { + source: InfraSource /** Get an infrastructure data source by id */; + allSources: InfraSource[] /** Get a list of all infrastructure data sources */; +} +/** A source of infrastructure data */ +export interface InfraSource { + id: string /** The id of the source */; + configuration: InfraSourceConfiguration /** The raw configuration of the source */; + status: InfraSourceStatus /** The status of the source */; + capabilitiesByNode: (InfraNodeCapability | null)[] /** A hierarchy of capabilities available on nodes */; + logEntriesAround: InfraLogEntryInterval /** A consecutive span of log entries surrounding a point in time */; + logEntriesBetween: InfraLogEntryInterval /** A consecutive span of log entries within an interval */; + logSummaryBetween: InfraLogSummaryInterval /** A consecutive span of summary buckets within an interval */; + map?: InfraResponse | null /** A hierarchy of hosts, pods, containers, services or arbitrary groups */; + metrics: InfraMetricData[]; +} +/** A set of configuration options for an infrastructure data source */ +export interface InfraSourceConfiguration { + metricAlias: string /** The alias to read metric data from */; + logAlias: string /** The alias to read log data from */; + fields: InfraSourceFields /** The field mapping to use for this source */; +} +/** A mapping of semantic fields to their document counterparts */ +export interface InfraSourceFields { + container: string /** The field to identify a container by */; + host: string /** The fields to identify a host by */; + message: string[] /** The fields that may contain the log event message. The first field found win. */; + pod: string /** The field to identify a pod by */; + tiebreaker: string /** The field to use as a tiebreaker for log events that have identical timestamps */; + timestamp: string /** The field to use as a timestamp for metrics and logs */; +} +/** The status of an infrastructure data source */ +export interface InfraSourceStatus { + metricAliasExists: boolean /** Whether the configured metric alias exists */; + logAliasExists: boolean /** Whether the configured log alias exists */; + metricIndicesExist: boolean /** Whether the configured alias or wildcard pattern resolve to any metric indices */; + logIndicesExist: boolean /** Whether the configured alias or wildcard pattern resolve to any log indices */; + metricIndices: string[] /** The list of indices in the metric alias */; + logIndices: string[] /** The list of indices in the log alias */; + indexFields: InfraIndexField[] /** The list of fields defined in the index mappings */; +} +/** A descriptor of a field in an index */ +export interface InfraIndexField { + name: string /** The name of the field */; + type: string /** The type of the field's values as recognized by Kibana */; + searchable: boolean /** Whether the field's values can be efficiently searched for */; + aggregatable: boolean /** Whether the field's values can be aggregated */; +} +/** One specific capability available on a node. A capability corresponds to a fileset or metricset */ +export interface InfraNodeCapability { + name: string; + source: string; +} +/** A consecutive sequence of log entries */ +export interface InfraLogEntryInterval { + start?: InfraTimeKey | null /** The key corresponding to the start of the interval covered by the entries */; + end?: InfraTimeKey | null /** The key corresponding to the end of the interval covered by the entries */; + hasMoreBefore: boolean /** Whether there are more log entries available before the start */; + hasMoreAfter: boolean /** Whether there are more log entries available after the end */; + filterQuery?: string | null /** The query the log entries were filtered by */; + highlightQuery?: string | null /** The query the log entries were highlighted with */; + entries: InfraLogEntry[] /** A list of the log entries */; +} +/** A representation of the log entry's position in the event stream */ +export interface InfraTimeKey { + time: number /** The timestamp of the event that the log entry corresponds to */; + tiebreaker: number /** The tiebreaker that disambiguates events with the same timestamp */; +} +/** A log entry */ +export interface InfraLogEntry { + key: InfraTimeKey /** A unique representation of the log entry's position in the event stream */; + gid: string /** The log entry's id */; + source: string /** The source id */; + message: InfraLogMessageSegment[] /** A list of the formatted log entry segments */; +} +/** A segment of the log entry message that was derived from a field */ +export interface InfraLogMessageFieldSegment { + field: string /** The field the segment was derived from */; + value: string /** The segment's message */; + highlights: string[] /** A list of highlighted substrings of the value */; +} +/** A segment of the log entry message that was derived from a field */ +export interface InfraLogMessageConstantSegment { + constant: string /** The segment's message */; +} +/** A consecutive sequence of log summary buckets */ +export interface InfraLogSummaryInterval { + start?: + | number + | null /** The millisecond timestamp corresponding to the start of the interval covered by the summary */; + end?: + | number + | null /** The millisecond timestamp corresponding to the end of the interval covered by the summary */; + filterQuery?: string | null /** The query the log entries were filtered by */; + buckets: InfraLogSummaryBucket[] /** A list of the log entries */; +} +/** A log summary bucket */ +export interface InfraLogSummaryBucket { + start: number /** The start timestamp of the bucket */; + end: number /** The end timestamp of the bucket */; + entriesCount: number /** The number of entries inside the bucket */; +} + +export interface InfraResponse { + nodes: InfraNode[]; +} + +export interface InfraNode { + path: InfraNodePath[]; + metric: InfraNodeMetric; +} + +export interface InfraNodePath { + value: string; +} + +export interface InfraNodeMetric { + name: InfraMetricType; + value: number; +} + +export interface InfraMetricData { + id?: InfraMetric | null; + series: InfraDataSeries[]; +} + +export interface InfraDataSeries { + id: string; + data: InfraDataPoint[]; +} + +export interface InfraDataPoint { + timestamp: number; + value?: number | null; +} + +export namespace QueryResolvers { + export interface Resolvers { + source?: SourceResolver /** Get an infrastructure data source by id */; + allSources?: AllSourcesResolver /** Get a list of all infrastructure data sources */; + } + + export type SourceResolver = Resolver; + export interface SourceArgs { + id: string /** The id of the source */; + } + + export type AllSourcesResolver = Resolver; +} +/** A source of infrastructure data */ +export namespace InfraSourceResolvers { + export interface Resolvers { + id?: IdResolver /** The id of the source */; + configuration?: ConfigurationResolver /** The raw configuration of the source */; + status?: StatusResolver /** The status of the source */; + capabilitiesByNode?: CapabilitiesByNodeResolver /** A hierarchy of capabilities available on nodes */; + logEntriesAround?: LogEntriesAroundResolver /** A consecutive span of log entries surrounding a point in time */; + logEntriesBetween?: LogEntriesBetweenResolver /** A consecutive span of log entries within an interval */; + logSummaryBetween?: LogSummaryBetweenResolver /** A consecutive span of summary buckets within an interval */; + map?: MapResolver /** A hierarchy of hosts, pods, containers, services or arbitrary groups */; + metrics?: MetricsResolver; + } + + export type IdResolver = Resolver; + export type ConfigurationResolver = Resolver; + export type StatusResolver = Resolver; + export type CapabilitiesByNodeResolver = Resolver< + (InfraNodeCapability | null)[], + CapabilitiesByNodeArgs + >; + export interface CapabilitiesByNodeArgs { + nodeName: string; + nodeType: InfraNodeType; + } + + export type LogEntriesAroundResolver = Resolver; + export interface LogEntriesAroundArgs { + key: InfraTimeKeyInput /** The sort key that corresponds to the point in time */; + countBefore?: number | null /** The maximum number of preceding to return */; + countAfter?: number | null /** The maximum number of following to return */; + filterQuery?: string | null /** The query to filter the log entries by */; + highlightQuery?: string | null /** The query to highlight the log entries with */; + } + + export type LogEntriesBetweenResolver = Resolver; + export interface LogEntriesBetweenArgs { + startKey: InfraTimeKeyInput /** The sort key that corresponds to the start of the interval */; + endKey: InfraTimeKeyInput /** The sort key that corresponds to the end of the interval */; + filterQuery?: string | null /** The query to filter the log entries by */; + highlightQuery?: string | null /** The query to highlight the log entries with */; + } + + export type LogSummaryBetweenResolver = Resolver; + export interface LogSummaryBetweenArgs { + start: number /** The millisecond timestamp that corresponds to the start of the interval */; + end: number /** The millisecond timestamp that corresponds to the end of the interval */; + bucketSize: number /** The size of each bucket in milliseconds */; + filterQuery?: string | null /** The query to filter the log entries by */; + } + + export type MapResolver = Resolver; + export interface MapArgs { + timerange: InfraTimerangeInput; + filterQuery?: string | null; + } + + export type MetricsResolver = Resolver; + export interface MetricsArgs { + nodeId: string; + nodeType: InfraNodeType; + timerange: InfraTimerangeInput; + metrics: InfraMetric[]; + } +} +/** A set of configuration options for an infrastructure data source */ +export namespace InfraSourceConfigurationResolvers { + export interface Resolvers { + metricAlias?: MetricAliasResolver /** The alias to read metric data from */; + logAlias?: LogAliasResolver /** The alias to read log data from */; + fields?: FieldsResolver /** The field mapping to use for this source */; + } + + export type MetricAliasResolver = Resolver; + export type LogAliasResolver = Resolver; + export type FieldsResolver = Resolver; +} +/** A mapping of semantic fields to their document counterparts */ +export namespace InfraSourceFieldsResolvers { + export interface Resolvers { + container?: ContainerResolver /** The field to identify a container by */; + host?: HostResolver /** The fields to identify a host by */; + message?: MessageResolver /** The fields that may contain the log event message. The first field found win. */; + pod?: PodResolver /** The field to identify a pod by */; + tiebreaker?: TiebreakerResolver /** The field to use as a tiebreaker for log events that have identical timestamps */; + timestamp?: TimestampResolver /** The field to use as a timestamp for metrics and logs */; + } + + export type ContainerResolver = Resolver; + export type HostResolver = Resolver; + export type MessageResolver = Resolver; + export type PodResolver = Resolver; + export type TiebreakerResolver = Resolver; + export type TimestampResolver = Resolver; +} +/** The status of an infrastructure data source */ +export namespace InfraSourceStatusResolvers { + export interface Resolvers { + metricAliasExists?: MetricAliasExistsResolver /** Whether the configured metric alias exists */; + logAliasExists?: LogAliasExistsResolver /** Whether the configured log alias exists */; + metricIndicesExist?: MetricIndicesExistResolver /** Whether the configured alias or wildcard pattern resolve to any metric indices */; + logIndicesExist?: LogIndicesExistResolver /** Whether the configured alias or wildcard pattern resolve to any log indices */; + metricIndices?: MetricIndicesResolver /** The list of indices in the metric alias */; + logIndices?: LogIndicesResolver /** The list of indices in the log alias */; + indexFields?: IndexFieldsResolver /** The list of fields defined in the index mappings */; + } + + export type MetricAliasExistsResolver = Resolver; + export type LogAliasExistsResolver = Resolver; + export type MetricIndicesExistResolver = Resolver; + export type LogIndicesExistResolver = Resolver; + export type MetricIndicesResolver = Resolver; + export type LogIndicesResolver = Resolver; + export type IndexFieldsResolver = Resolver; + export interface IndexFieldsArgs { + indexType?: InfraIndexType | null; + } +} +/** A descriptor of a field in an index */ +export namespace InfraIndexFieldResolvers { + export interface Resolvers { + name?: NameResolver /** The name of the field */; + type?: TypeResolver /** The type of the field's values as recognized by Kibana */; + searchable?: SearchableResolver /** Whether the field's values can be efficiently searched for */; + aggregatable?: AggregatableResolver /** Whether the field's values can be aggregated */; + } + + export type NameResolver = Resolver; + export type TypeResolver = Resolver; + export type SearchableResolver = Resolver; + export type AggregatableResolver = Resolver; +} +/** One specific capability available on a node. A capability corresponds to a fileset or metricset */ +export namespace InfraNodeCapabilityResolvers { + export interface Resolvers { + name?: NameResolver; + source?: SourceResolver; + } + + export type NameResolver = Resolver; + export type SourceResolver = Resolver; +} +/** A consecutive sequence of log entries */ +export namespace InfraLogEntryIntervalResolvers { + export interface Resolvers { + start?: StartResolver /** The key corresponding to the start of the interval covered by the entries */; + end?: EndResolver /** The key corresponding to the end of the interval covered by the entries */; + hasMoreBefore?: HasMoreBeforeResolver /** Whether there are more log entries available before the start */; + hasMoreAfter?: HasMoreAfterResolver /** Whether there are more log entries available after the end */; + filterQuery?: FilterQueryResolver /** The query the log entries were filtered by */; + highlightQuery?: HighlightQueryResolver /** The query the log entries were highlighted with */; + entries?: EntriesResolver /** A list of the log entries */; + } + + export type StartResolver = Resolver; + export type EndResolver = Resolver; + export type HasMoreBeforeResolver = Resolver; + export type HasMoreAfterResolver = Resolver; + export type FilterQueryResolver = Resolver; + export type HighlightQueryResolver = Resolver; + export type EntriesResolver = Resolver; +} +/** A representation of the log entry's position in the event stream */ +export namespace InfraTimeKeyResolvers { + export interface Resolvers { + time?: TimeResolver /** The timestamp of the event that the log entry corresponds to */; + tiebreaker?: TiebreakerResolver /** The tiebreaker that disambiguates events with the same timestamp */; + } + + export type TimeResolver = Resolver; + export type TiebreakerResolver = Resolver; +} +/** A log entry */ +export namespace InfraLogEntryResolvers { + export interface Resolvers { + key?: KeyResolver /** A unique representation of the log entry's position in the event stream */; + gid?: GidResolver /** The log entry's id */; + source?: SourceResolver /** The source id */; + message?: MessageResolver /** A list of the formatted log entry segments */; + } + + export type KeyResolver = Resolver; + export type GidResolver = Resolver; + export type SourceResolver = Resolver; + export type MessageResolver = Resolver; +} +/** A segment of the log entry message that was derived from a field */ +export namespace InfraLogMessageFieldSegmentResolvers { + export interface Resolvers { + field?: FieldResolver /** The field the segment was derived from */; + value?: ValueResolver /** The segment's message */; + highlights?: HighlightsResolver /** A list of highlighted substrings of the value */; + } + + export type FieldResolver = Resolver; + export type ValueResolver = Resolver; + export type HighlightsResolver = Resolver; +} +/** A segment of the log entry message that was derived from a field */ +export namespace InfraLogMessageConstantSegmentResolvers { + export interface Resolvers { + constant?: ConstantResolver /** The segment's message */; + } + + export type ConstantResolver = Resolver; +} +/** A consecutive sequence of log summary buckets */ +export namespace InfraLogSummaryIntervalResolvers { + export interface Resolvers { + start?: StartResolver /** The millisecond timestamp corresponding to the start of the interval covered by the summary */; + end?: EndResolver /** The millisecond timestamp corresponding to the end of the interval covered by the summary */; + filterQuery?: FilterQueryResolver /** The query the log entries were filtered by */; + buckets?: BucketsResolver /** A list of the log entries */; + } + + export type StartResolver = Resolver; + export type EndResolver = Resolver; + export type FilterQueryResolver = Resolver; + export type BucketsResolver = Resolver; +} +/** A log summary bucket */ +export namespace InfraLogSummaryBucketResolvers { + export interface Resolvers { + start?: StartResolver /** The start timestamp of the bucket */; + end?: EndResolver /** The end timestamp of the bucket */; + entriesCount?: EntriesCountResolver /** The number of entries inside the bucket */; + } + + export type StartResolver = Resolver; + export type EndResolver = Resolver; + export type EntriesCountResolver = Resolver; +} + +export namespace InfraResponseResolvers { + export interface Resolvers { + nodes?: NodesResolver; + } + + export type NodesResolver = Resolver; + export interface NodesArgs { + path: InfraPathInput[]; + metric: InfraMetricInput; + } +} + +export namespace InfraNodeResolvers { + export interface Resolvers { + path?: PathResolver; + metric?: MetricResolver; + } + + export type PathResolver = Resolver; + export type MetricResolver = Resolver; +} + +export namespace InfraNodePathResolvers { + export interface Resolvers { + value?: ValueResolver; + } + + export type ValueResolver = Resolver; +} + +export namespace InfraNodeMetricResolvers { + export interface Resolvers { + name?: NameResolver; + value?: ValueResolver; + } + + export type NameResolver = Resolver; + export type ValueResolver = Resolver; +} + +export namespace InfraMetricDataResolvers { + export interface Resolvers { + id?: IdResolver; + series?: SeriesResolver; + } + + export type IdResolver = Resolver; + export type SeriesResolver = Resolver; +} + +export namespace InfraDataSeriesResolvers { + export interface Resolvers { + id?: IdResolver; + data?: DataResolver; + } + + export type IdResolver = Resolver; + export type DataResolver = Resolver; +} + +export namespace InfraDataPointResolvers { + export interface Resolvers { + timestamp?: TimestampResolver; + value?: ValueResolver; + } + + export type TimestampResolver = Resolver; + export type ValueResolver = Resolver; +} + +export interface InfraTimeKeyInput { + time: number; + tiebreaker: number; +} + +export interface InfraTimerangeInput { + interval: string /** The interval string to use for last bucket. The format is '{value}{unit}'. For example '5m' would return the metrics for the last 5 minutes of the timespan. */; + to: number /** The end of the timerange */; + from: number /** The beginning of the timerange */; +} + +export interface InfraPathInput { + type: InfraPathType /** The type of path */; + label?: + | string + | null /** The label to use in the results for the group by for the terms group by */; + field?: + | string + | null /** The field to group by from a terms aggregation, this is ignored by the filter type */; + filters?: InfraPathFilterInput[] | null /** The fitlers for the filter group by */; +} +/** A group by filter */ +export interface InfraPathFilterInput { + label: string /** The label for the filter, this will be used as the group name in the final results */; + query: string /** The query string query */; +} + +export interface InfraMetricInput { + type: InfraMetricType /** The type of metric */; +} +export interface SourceQueryArgs { + id: string /** The id of the source */; +} +export interface CapabilitiesByNodeInfraSourceArgs { + nodeName: string; + nodeType: InfraNodeType; +} +export interface LogEntriesAroundInfraSourceArgs { + key: InfraTimeKeyInput /** The sort key that corresponds to the point in time */; + countBefore?: number | null /** The maximum number of preceding to return */; + countAfter?: number | null /** The maximum number of following to return */; + filterQuery?: string | null /** The query to filter the log entries by */; + highlightQuery?: string | null /** The query to highlight the log entries with */; +} +export interface LogEntriesBetweenInfraSourceArgs { + startKey: InfraTimeKeyInput /** The sort key that corresponds to the start of the interval */; + endKey: InfraTimeKeyInput /** The sort key that corresponds to the end of the interval */; + filterQuery?: string | null /** The query to filter the log entries by */; + highlightQuery?: string | null /** The query to highlight the log entries with */; +} +export interface LogSummaryBetweenInfraSourceArgs { + start: number /** The millisecond timestamp that corresponds to the start of the interval */; + end: number /** The millisecond timestamp that corresponds to the end of the interval */; + bucketSize: number /** The size of each bucket in milliseconds */; + filterQuery?: string | null /** The query to filter the log entries by */; +} +export interface MapInfraSourceArgs { + timerange: InfraTimerangeInput; + filterQuery?: string | null; +} +export interface MetricsInfraSourceArgs { + nodeId: string; + nodeType: InfraNodeType; + timerange: InfraTimerangeInput; + metrics: InfraMetric[]; +} +export interface IndexFieldsInfraSourceStatusArgs { + indexType?: InfraIndexType | null; +} +export interface NodesInfraResponseArgs { + path: InfraPathInput[]; + metric: InfraMetricInput; +} + +export enum InfraIndexType { + ANY = 'ANY', + LOGS = 'LOGS', + METRICS = 'METRICS', +} + +export enum InfraNodeType { + pod = 'pod', + container = 'container', + host = 'host', +} + +export enum InfraPathType { + terms = 'terms', + filters = 'filters', + hosts = 'hosts', + pods = 'pods', + containers = 'containers', +} + +export enum InfraMetricType { + count = 'count', + cpu = 'cpu', + load = 'load', + memory = 'memory', + tx = 'tx', + rx = 'rx', + logRate = 'logRate', +} + +export enum InfraMetric { + hostSystemOverview = 'hostSystemOverview', + hostCpuUsage = 'hostCpuUsage', + hostFilesystem = 'hostFilesystem', + hostK8sOverview = 'hostK8sOverview', + hostK8sCpuCap = 'hostK8sCpuCap', + hostK8sDiskCap = 'hostK8sDiskCap', + hostK8sMemoryCap = 'hostK8sMemoryCap', + hostK8sPodCap = 'hostK8sPodCap', + hostLoad = 'hostLoad', + hostMemoryUsage = 'hostMemoryUsage', + hostNetworkTraffic = 'hostNetworkTraffic', + podOverview = 'podOverview', + podCpuUsage = 'podCpuUsage', + podMemoryUsage = 'podMemoryUsage', + podLogUsage = 'podLogUsage', + podNetworkTraffic = 'podNetworkTraffic', + containerOverview = 'containerOverview', + containerCpuKernel = 'containerCpuKernel', + containerCpuUsage = 'containerCpuUsage', + containerDiskIOOps = 'containerDiskIOOps', + containerDiskIOBytes = 'containerDiskIOBytes', + containerMemory = 'containerMemory', + containerNetworkTraffic = 'containerNetworkTraffic', + nginxHits = 'nginxHits', + nginxRequestRate = 'nginxRequestRate', + nginxActiveConnections = 'nginxActiveConnections', + nginxRequestsPerConnection = 'nginxRequestsPerConnection', +} + +export enum InfraOperator { + gt = 'gt', + gte = 'gte', + lt = 'lt', + lte = 'lte', + eq = 'eq', +} +/** A segment of the log entry message */ +export type InfraLogMessageSegment = InfraLogMessageFieldSegment | InfraLogMessageConstantSegment; + +export namespace CapabilitiesQuery { + export type Variables = { + sourceId: string; + nodeId: string; + nodeType: InfraNodeType; + }; + + export type Query = { + __typename?: 'Query'; + source: Source; + }; + + export type Source = { + __typename?: 'InfraSource'; + id: string; + capabilitiesByNode: (CapabilitiesByNode | null)[]; + }; + + export type CapabilitiesByNode = { + __typename?: 'InfraNodeCapability'; + name: string; + source: string; + }; +} +export namespace MetricsQuery { + export type Variables = { + sourceId: string; + timerange: InfraTimerangeInput; + metrics: InfraMetric[]; + nodeId: string; + nodeType: InfraNodeType; + }; + + export type Query = { + __typename?: 'Query'; + source: Source; + }; + + export type Source = { + __typename?: 'InfraSource'; + id: string; + metrics: Metrics[]; + }; + + export type Metrics = { + __typename?: 'InfraMetricData'; + id?: InfraMetric | null; + series: Series[]; + }; + + export type Series = { + __typename?: 'InfraDataSeries'; + id: string; + data: Data[]; + }; + + export type Data = { + __typename?: 'InfraDataPoint'; + timestamp: number; + value?: number | null; + }; +} +export namespace WaffleNodesQuery { + export type Variables = { + sourceId: string; + timerange: InfraTimerangeInput; + filterQuery?: string | null; + metric: InfraMetricInput; + path: InfraPathInput[]; + }; + + export type Query = { + __typename?: 'Query'; + source: Source; + }; + + export type Source = { + __typename?: 'InfraSource'; + id: string; + map?: Map | null; + }; + + export type Map = { + __typename?: 'InfraResponse'; + nodes: Nodes[]; + }; + + export type Nodes = { + __typename?: 'InfraNode'; + path: Path[]; + metric: Metric; + }; + + export type Path = { + __typename?: 'InfraNodePath'; + value: string; + }; + + export type Metric = { + __typename?: 'InfraNodeMetric'; + name: InfraMetricType; + value: number; + }; +} +export namespace LogEntries { + export type Variables = { + sourceId?: string | null; + timeKey: InfraTimeKeyInput; + countBefore?: number | null; + countAfter?: number | null; + filterQuery?: string | null; + }; + + export type Query = { + __typename?: 'Query'; + source: Source; + }; + + export type Source = { + __typename?: 'InfraSource'; + id: string; + logEntriesAround: LogEntriesAround; + }; + + export type LogEntriesAround = { + __typename?: 'InfraLogEntryInterval'; + start?: Start | null; + end?: End | null; + hasMoreBefore: boolean; + hasMoreAfter: boolean; + entries: Entries[]; + }; + + export type Start = InfraTimeKeyFields.Fragment; + + export type End = InfraTimeKeyFields.Fragment; + + export type Entries = { + __typename?: 'InfraLogEntry'; + gid: string; + key: Key; + message: Message[]; + }; + + export type Key = { + __typename?: 'InfraTimeKey'; + time: number; + tiebreaker: number; + }; + + export type Message = + | InfraLogMessageFieldSegmentInlineFragment + | InfraLogMessageConstantSegmentInlineFragment; + + export type InfraLogMessageFieldSegmentInlineFragment = { + __typename?: 'InfraLogMessageFieldSegment'; + field: string; + value: string; + }; + + export type InfraLogMessageConstantSegmentInlineFragment = { + __typename?: 'InfraLogMessageConstantSegment'; + constant: string; + }; +} +export namespace LogSummary { + export type Variables = { + sourceId?: string | null; + start: number; + end: number; + bucketSize: number; + filterQuery?: string | null; + }; + + export type Query = { + __typename?: 'Query'; + source: Source; + }; + + export type Source = { + __typename?: 'InfraSource'; + id: string; + logSummaryBetween: LogSummaryBetween; + }; + + export type LogSummaryBetween = { + __typename?: 'InfraLogSummaryInterval'; + start?: number | null; + end?: number | null; + buckets: Buckets[]; + }; + + export type Buckets = { + __typename?: 'InfraLogSummaryBucket'; + start: number; + end: number; + entriesCount: number; + }; +} +export namespace SourceQuery { + export type Variables = { + sourceId?: string | null; + }; + + export type Query = { + __typename?: 'Query'; + source: Source; + }; + + export type Source = { + __typename?: 'InfraSource'; + configuration: Configuration; + status: Status; + }; + + export type Configuration = { + __typename?: 'InfraSourceConfiguration'; + metricAlias: string; + logAlias: string; + fields: Fields; + }; + + export type Fields = { + __typename?: 'InfraSourceFields'; + container: string; + host: string; + pod: string; + }; + + export type Status = { + __typename?: 'InfraSourceStatus'; + indexFields: IndexFields[]; + logIndicesExist: boolean; + metricIndicesExist: boolean; + }; + + export type IndexFields = { + __typename?: 'InfraIndexField'; + name: string; + type: string; + searchable: boolean; + aggregatable: boolean; + }; +} + +export namespace InfraTimeKeyFields { + export type Fragment = { + __typename?: 'InfraTimeKey'; + time: number; + tiebreaker: number; + }; +} diff --git a/x-pack/plugins/infra/common/http_api/index.ts b/x-pack/plugins/infra/common/http_api/index.ts new file mode 100644 index 0000000000000..90afdcb43ffb1 --- /dev/null +++ b/x-pack/plugins/infra/common/http_api/index.ts @@ -0,0 +1,8 @@ +/* + * 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 * from './search_results_api'; +export * from './search_summary_api'; diff --git a/x-pack/plugins/infra/common/http_api/search_results_api.ts b/x-pack/plugins/infra/common/http_api/search_results_api.ts new file mode 100644 index 0000000000000..b866a7e1ab088 --- /dev/null +++ b/x-pack/plugins/infra/common/http_api/search_results_api.ts @@ -0,0 +1,37 @@ +/* + * 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 { LogEntryFieldsMapping, LogEntryTime } from '../log_entry'; +import { SearchResult } from '../log_search_result'; +import { TimedApiResponse } from './timed_api'; + +interface CommonSearchResultsPostPayload { + indices: string[]; + fields: LogEntryFieldsMapping; + query: string; +} + +export interface AdjacentSearchResultsApiPostPayload extends CommonSearchResultsPostPayload { + target: LogEntryTime; + before: number; + after: number; +} + +export interface AdjacentSearchResultsApiPostResponse extends TimedApiResponse { + results: { + before: SearchResult[]; + after: SearchResult[]; + }; +} + +export interface ContainedSearchResultsApiPostPayload extends CommonSearchResultsPostPayload { + start: LogEntryTime; + end: LogEntryTime; +} + +export interface ContainedSearchResultsApiPostResponse extends TimedApiResponse { + results: SearchResult[]; +} diff --git a/x-pack/plugins/infra/common/http_api/search_summary_api.ts b/x-pack/plugins/infra/common/http_api/search_summary_api.ts new file mode 100644 index 0000000000000..90e8fa8e78bc0 --- /dev/null +++ b/x-pack/plugins/infra/common/http_api/search_summary_api.ts @@ -0,0 +1,26 @@ +/* + * 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 { LogEntryFieldsMapping } from '../log_entry'; +import { SearchSummaryBucket } from '../log_search_summary'; +import { SummaryBucketSize } from '../log_summary'; +import { TimedApiResponse } from './timed_api'; + +export interface SearchSummaryApiPostPayload { + bucketSize: { + unit: SummaryBucketSize; + value: number; + }; + fields: LogEntryFieldsMapping; + indices: string[]; + start: number; + end: number; + query: string; +} + +export interface SearchSummaryApiPostResponse extends TimedApiResponse { + buckets: SearchSummaryBucket[]; +} diff --git a/x-pack/plugins/infra/common/http_api/timed_api.ts b/x-pack/plugins/infra/common/http_api/timed_api.ts new file mode 100644 index 0000000000000..7d0f227f0d0b1 --- /dev/null +++ b/x-pack/plugins/infra/common/http_api/timed_api.ts @@ -0,0 +1,13 @@ +/* + * 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 interface ApiResponseTimings { + [timing: string]: number; +} + +export interface TimedApiResponse { + timings: ApiResponseTimings; +} diff --git a/x-pack/plugins/infra/common/log_entry/index.ts b/x-pack/plugins/infra/common/log_entry/index.ts new file mode 100644 index 0000000000000..ba5b67eb7c07c --- /dev/null +++ b/x-pack/plugins/infra/common/log_entry/index.ts @@ -0,0 +1,8 @@ +/* + * 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 * from './log_entry'; +export * from './log_entry_list'; diff --git a/x-pack/plugins/infra/common/log_entry/log_entry.ts b/x-pack/plugins/infra/common/log_entry/log_entry.ts new file mode 100644 index 0000000000000..be9de2c8828c5 --- /dev/null +++ b/x-pack/plugins/infra/common/log_entry/log_entry.ts @@ -0,0 +1,63 @@ +/* + * 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 { TimeKey } from '../time'; + +export interface LogEntry { + gid: string; + origin: LogEntryOrigin; + fields: LogEntryFields; +} + +export interface LogEntryOrigin { + id: string; + index: string; + type: string; +} + +export interface LogEntryFields extends LogEntryTime { + message: string; +} + +export type LogEntryTime = TimeKey; +// export interface LogEntryTime { +// tiebreaker: number; +// time: number; +// } + +export interface LogEntryFieldsMapping { + message: string; + tiebreaker: string; + time: string; +} + +export function getLogEntryKey(entry: LogEntry) { + return { + gid: entry.gid, + tiebreaker: entry.fields.tiebreaker, + time: entry.fields.time, + }; +} + +export function isEqual(time1: LogEntryTime, time2: LogEntryTime) { + return time1.time === time2.time && time1.tiebreaker === time2.tiebreaker; +} + +export function isLess(time1: LogEntryTime, time2: LogEntryTime) { + return ( + time1.time < time2.time || (time1.time === time2.time && time1.tiebreaker < time2.tiebreaker) + ); +} + +export function isLessOrEqual(time1: LogEntryTime, time2: LogEntryTime) { + return ( + time1.time < time2.time || (time1.time === time2.time && time1.tiebreaker <= time2.tiebreaker) + ); +} + +export function isBetween(min: LogEntryTime, max: LogEntryTime, operand: LogEntryTime) { + return isLessOrEqual(min, operand) && isLessOrEqual(operand, max); +} diff --git a/x-pack/plugins/infra/common/log_entry/log_entry_list.ts b/x-pack/plugins/infra/common/log_entry/log_entry_list.ts new file mode 100644 index 0000000000000..a546d4566fed1 --- /dev/null +++ b/x-pack/plugins/infra/common/log_entry/log_entry_list.ts @@ -0,0 +1,43 @@ +/* + * 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 { + getLogEntryKey, + isEqual, + isLess, + isLessOrEqual, + LogEntry, + LogEntryTime, +} from './log_entry'; + +export type LogEntryList = LogEntry[]; + +export function getIndexNearLogEntry(logEntries: LogEntryList, key: LogEntryTime, highest = false) { + let minIndex = 0; + let maxIndex = logEntries.length; + let currentIndex: number; + let currentKey: LogEntryTime; + + while (minIndex < maxIndex) { + currentIndex = (minIndex + maxIndex) >>> 1; // tslint:disable-line:no-bitwise + currentKey = getLogEntryKey(logEntries[currentIndex]); + + if ((highest ? isLessOrEqual : isLess)(currentKey, key)) { + minIndex = currentIndex + 1; + } else { + maxIndex = currentIndex; + } + } + + return maxIndex; +} + +export function getIndexOfLogEntry(logEntries: LogEntry[], key: LogEntryTime) { + const index = getIndexNearLogEntry(logEntries, key); + const logEntry = logEntries[index]; + + return logEntry && isEqual(key, getLogEntryKey(logEntry)) ? index : null; +} diff --git a/x-pack/plugins/infra/common/log_search_result/index.ts b/x-pack/plugins/infra/common/log_search_result/index.ts new file mode 100644 index 0000000000000..6795cc1543798 --- /dev/null +++ b/x-pack/plugins/infra/common/log_search_result/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { + getSearchResultIndexBeforeTime, + getSearchResultIndexAfterTime, + getSearchResultKey, + SearchResult, +} from './log_search_result'; diff --git a/x-pack/plugins/infra/common/log_search_result/log_search_result.ts b/x-pack/plugins/infra/common/log_search_result/log_search_result.ts new file mode 100644 index 0000000000000..a56a9d8e3531c --- /dev/null +++ b/x-pack/plugins/infra/common/log_search_result/log_search_result.ts @@ -0,0 +1,30 @@ +/* + * 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 { bisector } from 'd3-array'; + +import { compareToTimeKey, TimeKey } from '../time'; + +export interface SearchResult { + gid: string; + fields: TimeKey; + matches: SearchResultFieldMatches; +} + +export interface SearchResultFieldMatches { + [field: string]: string[]; +} + +export const getSearchResultKey = (result: SearchResult) => + ({ + gid: result.gid, + tiebreaker: result.fields.tiebreaker, + time: result.fields.time, + } as TimeKey); + +const searchResultTimeBisector = bisector(compareToTimeKey(getSearchResultKey)); +export const getSearchResultIndexBeforeTime = searchResultTimeBisector.left; +export const getSearchResultIndexAfterTime = searchResultTimeBisector.right; diff --git a/x-pack/plugins/infra/common/log_search_summary/index.ts b/x-pack/plugins/infra/common/log_search_summary/index.ts new file mode 100644 index 0000000000000..4ba04cb3ea6a4 --- /dev/null +++ b/x-pack/plugins/infra/common/log_search_summary/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { SearchSummaryBucket } from './log_search_summary'; diff --git a/x-pack/plugins/infra/common/log_search_summary/log_search_summary.ts b/x-pack/plugins/infra/common/log_search_summary/log_search_summary.ts new file mode 100644 index 0000000000000..72cf643311798 --- /dev/null +++ b/x-pack/plugins/infra/common/log_search_summary/log_search_summary.ts @@ -0,0 +1,14 @@ +/* + * 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 { SearchResult } from '../log_search_result'; + +export interface SearchSummaryBucket { + start: number; + end: number; + count: number; + representative: SearchResult; +} diff --git a/x-pack/plugins/infra/common/log_summary/index.ts b/x-pack/plugins/infra/common/log_summary/index.ts new file mode 100644 index 0000000000000..3fb97a5cc20d0 --- /dev/null +++ b/x-pack/plugins/infra/common/log_summary/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './log_summary'; diff --git a/x-pack/plugins/infra/common/log_summary/log_summary.ts b/x-pack/plugins/infra/common/log_summary/log_summary.ts new file mode 100644 index 0000000000000..79d8fcc9fa60f --- /dev/null +++ b/x-pack/plugins/infra/common/log_summary/log_summary.ts @@ -0,0 +1,13 @@ +/* + * 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 interface LogSummaryBucket { + count: number; + end: number; + start: number; +} + +export type SummaryBucketSize = 'y' | 'M' | 'w' | 'd' | 'h' | 'm' | 's'; diff --git a/x-pack/plugins/infra/common/log_text_scale/index.ts b/x-pack/plugins/infra/common/log_text_scale/index.ts new file mode 100644 index 0000000000000..7fee2bbd398bd --- /dev/null +++ b/x-pack/plugins/infra/common/log_text_scale/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './log_text_scale'; diff --git a/x-pack/plugins/infra/common/log_text_scale/log_text_scale.ts b/x-pack/plugins/infra/common/log_text_scale/log_text_scale.ts new file mode 100644 index 0000000000000..ec33776f2a764 --- /dev/null +++ b/x-pack/plugins/infra/common/log_text_scale/log_text_scale.ts @@ -0,0 +1,15 @@ +/* + * 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 type TextScale = 'small' | 'medium' | 'large'; + +export function getLabelOfTextScale(textScale: TextScale) { + return textScale.charAt(0).toUpperCase() + textScale.slice(1); +} + +export function isTextScale(maybeTextScale: string): maybeTextScale is TextScale { + return ['small', 'medium', 'large'].includes(maybeTextScale); +} diff --git a/x-pack/plugins/infra/common/time/index.ts b/x-pack/plugins/infra/common/time/index.ts new file mode 100644 index 0000000000000..6365ecd1a55b3 --- /dev/null +++ b/x-pack/plugins/infra/common/time/index.ts @@ -0,0 +1,10 @@ +/* + * 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 * from './time'; +export * from './time_unit'; +export * from './time_scale'; +export * from './time_key'; diff --git a/x-pack/plugins/infra/common/time/time.ts b/x-pack/plugins/infra/common/time/time.ts new file mode 100644 index 0000000000000..dc5ffd1c2c427 --- /dev/null +++ b/x-pack/plugins/infra/common/time/time.ts @@ -0,0 +1,13 @@ +/* + * 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 { timeFormat } from 'd3-time-format'; + +const formatDate = timeFormat('%Y-%m-%d %H:%M:%S.%L'); + +export function formatTime(time: number) { + return formatDate(new Date(time)); +} diff --git a/x-pack/plugins/infra/common/time/time_key.ts b/x-pack/plugins/infra/common/time/time_key.ts new file mode 100644 index 0000000000000..58b058ab5e953 --- /dev/null +++ b/x-pack/plugins/infra/common/time/time_key.ts @@ -0,0 +1,79 @@ +/* + * 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 { ascending, bisector } from 'd3-array'; +import pick from 'lodash/fp/pick'; + +export interface TimeKey { + time: number; + tiebreaker: number; + gid?: string; +} + +export type Comparator = (firstValue: any, secondValue: any) => number; + +export const isTimeKey = (value: any): value is TimeKey => + value && + typeof value === 'object' && + typeof value.time === 'number' && + typeof value.tiebreaker === 'number'; + +export const pickTimeKey = (value: T): TimeKey => + pick(['time', 'tiebreaker'], value); + +export function compareTimeKeys( + firstKey: TimeKey, + secondKey: TimeKey, + compareValues: Comparator = ascending +): number { + const timeComparison = compareValues(firstKey.time, secondKey.time); + + if (timeComparison === 0) { + const tiebreakerComparison = compareValues(firstKey.tiebreaker, secondKey.tiebreaker); + + if ( + tiebreakerComparison === 0 && + typeof firstKey.gid !== 'undefined' && + typeof secondKey.gid !== 'undefined' + ) { + return compareValues(firstKey.gid, secondKey.gid); + } + + return tiebreakerComparison; + } + + return timeComparison; +} + +export const compareToTimeKey = ( + keyAccessor: (value: Value) => TimeKey, + compareValues?: Comparator +) => (value: Value, key: TimeKey) => compareTimeKeys(keyAccessor(value), key, compareValues); + +export const getIndexAtTimeKey = ( + keyAccessor: (value: Value) => TimeKey, + compareValues?: Comparator +) => { + const comparator = compareToTimeKey(keyAccessor, compareValues); + const collectionBisector = bisector(comparator); + + return (collection: Value[], key: TimeKey): number | null => { + const index = collectionBisector.left(collection, key); + + if (index >= collection.length) { + return null; + } + + if (comparator(collection[index], key) !== 0) { + return null; + } + + return index; + }; +}; + +export const timeKeyIsBetween = (min: TimeKey, max: TimeKey, operand: TimeKey) => + compareTimeKeys(min, operand) <= 0 && compareTimeKeys(max, operand) >= 0; diff --git a/x-pack/plugins/infra/common/time/time_scale.ts b/x-pack/plugins/infra/common/time/time_scale.ts new file mode 100644 index 0000000000000..0381f294f81cb --- /dev/null +++ b/x-pack/plugins/infra/common/time/time_scale.ts @@ -0,0 +1,37 @@ +/* + * 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 { TimeUnit, timeUnitLabels } from './time_unit'; + +export interface TimeScale { + unit: TimeUnit; + value: number; +} + +export const getMillisOfScale = (scale: TimeScale) => scale.unit * scale.value; + +export const getLabelOfScale = (scale: TimeScale) => `${scale.value}${timeUnitLabels[scale.unit]}`; + +export const decomposeIntoUnits = (time: number, units: TimeUnit[]) => + units.reduce((result, unitMillis) => { + const offset = result.reduce( + (accumulatedOffset, timeScale) => accumulatedOffset + getMillisOfScale(timeScale), + 0 + ); + const value = Math.floor((time - offset) / unitMillis); + + if (value > 0) { + return [ + ...result, + { + unit: unitMillis, + value, + }, + ]; + } else { + return result; + } + }, []); diff --git a/x-pack/plugins/infra/common/time/time_unit.ts b/x-pack/plugins/infra/common/time/time_unit.ts new file mode 100644 index 0000000000000..4273a9fcf2ef3 --- /dev/null +++ b/x-pack/plugins/infra/common/time/time_unit.ts @@ -0,0 +1,41 @@ +/* + * 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 enum TimeUnit { + Millisecond = 1, + Second = Millisecond * 1000, + Minute = Second * 60, + Hour = Minute * 60, + Day = Hour * 24, + Month = Day * 30, + Year = Month * 12, +} + +export type ElasticsearchTimeUnit = 's' | 'm' | 'h' | 'd' | 'M' | 'y'; + +export const timeUnitLabels = { + [TimeUnit.Millisecond]: 'ms', + [TimeUnit.Second]: 's', + [TimeUnit.Minute]: 'm', + [TimeUnit.Hour]: 'h', + [TimeUnit.Day]: 'd', + [TimeUnit.Month]: 'M', + [TimeUnit.Year]: 'y', +}; + +export const elasticSearchTimeUnits: { + [key: string]: ElasticsearchTimeUnit; +} = { + [TimeUnit.Second]: 's', + [TimeUnit.Minute]: 'm', + [TimeUnit.Hour]: 'h', + [TimeUnit.Day]: 'd', + [TimeUnit.Month]: 'M', + [TimeUnit.Year]: 'y', +}; + +export const getElasticSearchTimeUnit = (scale: TimeUnit): ElasticsearchTimeUnit => + elasticSearchTimeUnits[scale]; diff --git a/x-pack/plugins/infra/common/typed_json.ts b/x-pack/plugins/infra/common/typed_json.ts new file mode 100644 index 0000000000000..ca32bf0b46250 --- /dev/null +++ b/x-pack/plugins/infra/common/typed_json.ts @@ -0,0 +1,13 @@ +/* + * 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 type JsonValue = null | boolean | number | string | JsonObject | JsonArray; + +export interface JsonArray extends Array {} + +export interface JsonObject { + [key: string]: JsonValue; +} diff --git a/x-pack/plugins/infra/docs/arch.md b/x-pack/plugins/infra/docs/arch.md new file mode 100644 index 0000000000000..f3d7312a3491d --- /dev/null +++ b/x-pack/plugins/infra/docs/arch.md @@ -0,0 +1,106 @@ +# Adapter Based Architecture + +## Terms + +In this arch, we use 3 main terms to describe the code: + +- **Libs / Domain Libs** - Business logic & data formatting (though complex formatting might call utils) +- **Adapters** - code that directly calls 3rd party APIs and data sources, exposing clean easy to stub APIs +- **Composition Files** - composes adapters into libs based on where the code is running +- **Implementation layer** - The API such as rest endpoints or graphql schema on the server, and the state management / UI on the client + +## Arch Visual Example + +![Arch Visual Overview](/docs/assets/arch.png) + +## Code Guidelines + +### Libs & Domain Libs: + +This term is used to describe the location of business logic. Each use-case in your app should maintain its own lib. + +Now there are 2 types of libs. A "regular lib" would be something like a lib for interacting with Kibana APIs, with something like a parent app adapter. The other is a "domain lib", and would be something like a hosts, or logging lib that might have composed into it an Elasicsearch adapter. + +For the cases on this application, we might have a Logs, Hosts, Containers, Services, ParentApp, and Settings libs, just as an example. Libs should only have 1 Lib per use-case. + +Libs have, composed into them, adapters, as well as access to other libs. The inter-dependencies on other libs and adapters are explicitly expressed in the types of the lib's constructor arguments to provide static type checking and improve testability. In the following example AdapterInterface would define the required interface of an adapter composed into this lib. Likewise LibInterface would declare the inter-dependency this lib has on other libs: + +```ts +new (adapter: AdapterInterface, otherLibs: { lib1: Lib1Interface; lib2: Lib2Interface }): LibInterface +``` + +Libs must not contain code that depends on APIs and behavior specific to the runtime environment. Any such code should be extracted into an adapter. Any code that does not meet this requirement should be inside an adapter. + +### Adapters + +Adapters are the location of any code to interact with any data sources, or 3rd party API / dependency. An example of code that belongs to an adapter would be anything that interacts with Kibana, or Elasticsearch. This would also include things like, for instance, the browser's local storage. + +**The interface exposed by an adapter should be as domain-specific as possible to reduce the risk of leaking abstraction from the "adapted" technology. Therefore a method like `getHosts()` would be preferable to a `runQuery(filterArgs)` method.** This way the output can be well typed and easily stubbed out in an alternate adapter. This will result in vast improvements in testing reliability and code quality. + +Even adapters though should have required dependencies injected into them for as much as is reasonable. Though this is something that is up to the specific adapter as to what is best on a case-by-case basis. + +An app will in most cases have multiple types of each adapter. As an example, a Lib might have an Elasticsearch-backed adapter as well as an adapter backed by an in-memory store, both of which expose the same interface. This way you can compose a lib to use an in-memory adapter to functional or unit tests in order to have isolated tests that are cleaner / faster / more accurate. + +Adapters can at times be composed into another adapter. This behavior though should be kept to a strict minimum. + +**Acceptable:** + +- An Elasticsearch adapter being passed into Hosts, K8, and logging adapters. The Elasticsearch adapter would then never be exposed directly to a lib. + +**Unacceptable:** + +- A K8 adapter being composed into a hosts adapter, but then k8 also being exposed to a lib. + +The former is acceptable only to abstract shared code between adapters. It is clear that this is acceptable because only other adapters use this code. + +The latter being a "code smell" that indicates there is ether too much logic in your adapter that should be in a lib, or the adapters API is insufficient and should be reconsidered. + +### Composition files + +These files will import all libs and their required adapters to instantiate them in the correct order while passing in the respective dependencies. For a contrived but realistic example, a dev_ui composition file that composes an Elasticsearch adapter into Logs, Hosts, and Services libs, and a dev-ui adapter into ParentApp, and a local-storage adapter into Settings. Then another composition file for Kibana might compose other compatible adapters for use with the Kibana APIs. + +composition files simply export a compose method that returns the composed and initialized libs. + +## File structure + +An example structure might be... + +``` +|-- infra-ui + |-- common + | |-- types.ts + | + |-- server + | |-- lib + | | |-- adapters + | | | |-- hosts + | | | | |-- elasticsearch.ts + | | | | |-- fake_data.ts + | | | | + | | | |-- logs + | | | | |-- elasticsearch.ts + | | | | |-- fake_data.ts + | | | | + | | | |-- parent_app + | | | | |-- kibana_angular // if an adapter has more than one file... + | | | | | |-- index.html + | | | | | |-- index.ts + | | | | | + | | | | |-- ui_harness.ts + | | | | + | | |-- domains + | | | |-- hosts.ts + | | | |-- logs.ts + | | | + | | |-- compose + | | | |-- dev.ts + | | | |-- kibana.ts + | | | + | | |-- parent_app.ts // a non-domain lib + | | |-- lib.ts // a file containing lib type defs + |-- public + | | ## SAME STRUCTURE AS SERVER +``` + +Note that in the above adapters have a folder for each adapter type, then inside the implementation of the adapters. The implementation can be a single file, or a directory where index.js is the class that exposes the adapter. +`libs/compose/` contains the composition files diff --git a/x-pack/plugins/infra/docs/arch_client.md b/x-pack/plugins/infra/docs/arch_client.md new file mode 100644 index 0000000000000..2be9de469f0ee --- /dev/null +++ b/x-pack/plugins/infra/docs/arch_client.md @@ -0,0 +1,132 @@ +# Client Architecture + +All rules described in the [server-side architecture documentation](docs/arch.md) apply to the client as well. As shown below, the directory structure additionally accommodates the front-end-specific concepts like components and containers. + +## Apps + +The `apps` folder contains the entry point for the UI code, such as for use in Kibana or testing. + +## Components + +- Components should be stateless wherever possible with pages and containers holding state. +- Small (less than ~30 lines of JSX and less than ~120 lines total) components should simply get their own file. +- If a component gets too large to reason about, and/or needs multiple child components that are only used in this one place, place them all in a folder. +- All components, please use Styled-Components. This also applies to small tweaks to EUI, just use `styled(Component)` and the `attrs` method for always used props. For example: + +```jsx +export const Toolbar = styled(EuiPanel).attrs({ + paddingSize: 'none', + grow: false, +})` + margin: -2px; +`; +``` + +However, components that tweak EUI should go into `/public/components/eui/${componentName}`. + +If using an EUI component that has not yet been typed, types should be placed into `/types/eui.d.ts` + +## Containers (Also: [see GraphQL docs](docs/graphql.md)) + +- HOC's based on Apollo. +- One folder per data type e.g. `host`. Folder name should be singular. +- One file per query type. + +## Pages + +- Ideally one file per page, if more files are needed, move into folder containing the page and a layout file. +- Pages are class based components. +- Should hold most state, and any additional route logic. +- Are the only files where components are wrapped by containers. For example: + +```jsx +// Simple usage +const FancyLogPage = withSearchResults(class FancyLogPage extends React.Component { + render() { + return ( + <> + + + + <> + ); + } +}); +``` + +OR, for more complex scenarios: + +```jsx +// Advanced usage +const ConnectedToolbar = compose( + withTimeMutation, + withCurrentTime +)(Toolbar); + +const ConnectedLogView = compose( + withLogEntries, + withSearchResults, +)(LogView); + +const ConnectedSearchBar = compose( + withSearchMutation +)(SearchBar); + +interface FancyLogPageProps {} + +class FancyLogPage extends React.Component { + render() { + return ( + <> + + + + <> + ); + } +}; +``` + +## Transforms + +- If you need to do some complex data transforms, it is better to put them here than in a utility or lib. Simpler transforms are probably easier to keep in a container. +- One file per transform + +## File structure + +``` +|-- infra-ui + |-- common + | |-- types.ts + | + |-- public + | |-- components // + | | |-- eui // staging area for eui customizations before pushing upstream + | | |-- layout // any layout components should be placed in here + | | |-- button.tsx + | | |-- mega_table // Where mega table is used directly with a data prop, not a composable table + | | |-- index.ts + | | |-- row.tsx + | | |-- table.tsx + | | |-- cell.tsx + | | + | |-- containers + | | |-- host + | | | |-- index.ts + | | | |-- with_all_hosts.ts + | | | |-- transforms + | | | |-- hosts_to_waffel.ts + | | | + | | |-- pod + | | |-- index.ts + | | |-- with_all_pods.ts + | | + | |-- pages + | | |-- home.tsx // the initial page of a plugin is always the `home` page + | | |-- hosts.tsx + | | |-- logging.tsx + | | + | |-- utils // utils folder for what utils folders are for ;) + | | + | |-- lib // covered in [Our code and arch](docs/arch.md) +``` diff --git a/x-pack/plugins/infra/docs/assets/arch.png b/x-pack/plugins/infra/docs/assets/arch.png new file mode 100644 index 0000000000000..878c7d1aa16d4 Binary files /dev/null and b/x-pack/plugins/infra/docs/assets/arch.png differ diff --git a/x-pack/plugins/infra/docs/graphql.md b/x-pack/plugins/infra/docs/graphql.md new file mode 100644 index 0000000000000..5584a5ce7c0d1 --- /dev/null +++ b/x-pack/plugins/infra/docs/graphql.md @@ -0,0 +1,53 @@ +# GraphQL In Infra UI + +- The combined graphql schema collected from both the `public` and `server` directories is exported to `common/all.gql_schema.ts` for the purpose of automatic type generation only. + +## Server + +- Under `/server/graphql` there are files for each domain of data's graph schema and resolvers. + - Each file has 2 exports `${domain}Schema` e.g. `fieldsSchema`, and `create${domain}Resolvers` e.g. `createFieldResolvers` +- `/server/infra_server.ts` imports all schema and resolvers and passing the full schema to the server +- Resolvers should be used to call composed libs, rather than directly performing any meaningful amount of data processing. +- Resolvers should, however, only pass the required data into libs; that is to say all args for example would not be passed into a lib unless all were needed. + +## Client + +- Under `/public/containers/${domain}/` there is a file for each container. Each file has two exports, the query name e.g. `AllHosts` and the apollo HOC in the pattern of `with${queryName}` e.g. `withAllHosts`. This is done for two reasons: + + 1. It makes the code uniform, thus easier to reason about later. + 2. If reformatting the data using a transform, it lets us re-type the data clearly. + +- Containers should use the apollo props callback to pass ONLY the props and data needed to children. e.g. + + ```ts + import { Hosts, Pods, HostsAndPods } from '../../common/types'; + + // used to generate the `HostsAndPods` type imported above + export const hostsAndPods = gql` + # ... + `; + + type HostsAndPodsProps = { + hosts: Hosts; + pods: Pods; + } + + export const withHostsAndPods = graphql< + {}, + HostsAndPods.Query, + HostsAndPods.Variables, + HostsAndPodsProps + >(hostsAndPods, { + props: ({ data, ownProps }) => ({ + hosts: hostForMap(data && data.hosts ? data.hosts : []), +  pods: podsFromHosts(data && data.hosts ? data.hosts : []) + ...ownProps, + }), + }); + ``` + + as `ownProps` are the props passed to the wrapped component, they should just be forwarded. + +## Types + +- The command `yarn build-graphql-types` derives the schema, query and mutation types and stores them in `common/types.ts` for use on both the client and server. diff --git a/x-pack/plugins/infra/index.ts b/x-pack/plugins/infra/index.ts new file mode 100644 index 0000000000000..6a436d45a84f4 --- /dev/null +++ b/x-pack/plugins/infra/index.ts @@ -0,0 +1,58 @@ +/* + * 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 JoiNamespace from 'joi'; +import { resolve } from 'path'; + +import { getConfigSchema, initServerWithKibana, KbnServer } from './server/kibana.index'; + +const APP_ID = 'infra'; + +export function infra(kibana: any) { + return new kibana.Plugin({ + id: APP_ID, + configPrefix: 'xpack.infra', + publicDir: resolve(__dirname, 'public'), + require: ['kibana', 'elasticsearch'], + uiExports: { + app: { + description: 'Explore your infrastructure', + icon: 'plugins/infra/images/infra_mono_white.svg', + main: 'plugins/infra/app', + title: 'Infrastructure', + listed: false, + url: `/app/${APP_ID}#/home`, + }, + home: ['plugins/infra/register_feature'], + links: [ + { + description: 'Explore your infrastructure', + icon: 'plugins/infra/images/infra_mono_white.svg', + euiIconType: 'infraApp', + id: 'infra:home', + order: 8000, + title: 'Infrastructure', + url: `/app/${APP_ID}#/home`, + }, + { + description: 'Explore your logs', + icon: 'plugins/infra/images/logging_mono_white.svg', + euiIconType: 'loggingApp', + id: 'infra:logs', + order: 8001, + title: 'Logs', + url: `/app/${APP_ID}#/logs`, + }, + ], + }, + config(Joi: typeof JoiNamespace) { + return getConfigSchema(Joi); + }, + init(server: KbnServer) { + initServerWithKibana(server); + }, + }); +} diff --git a/x-pack/plugins/infra/package.json b/x-pack/plugins/infra/package.json new file mode 100644 index 0000000000000..9fc5f210e6cab --- /dev/null +++ b/x-pack/plugins/infra/package.json @@ -0,0 +1,19 @@ +{ + "author": "Elastic", + "name": "infra", + "version": "7.0.0", + "private": true, + "license": "Elastic-License", + "scripts": { + "build-graphql-types": "node scripts/generate_types_from_graphql.js" + }, + "devDependencies": { + "@types/boom": "7.2.0", + "@types/lodash": "^4.14.110" + }, + "dependencies": { + "@types/color": "^3.0.0", + "boom": "3.1.1", + "lodash": "^4.17.10" + } +} diff --git a/x-pack/plugins/infra/public/app.ts b/x-pack/plugins/infra/public/app.ts new file mode 100644 index 0000000000000..255c51c9e48ce --- /dev/null +++ b/x-pack/plugins/infra/public/app.ts @@ -0,0 +1,7 @@ +/* + * 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 './apps/kibana_app'; diff --git a/x-pack/plugins/infra/public/apps/kibana_app.ts b/x-pack/plugins/infra/public/apps/kibana_app.ts new file mode 100644 index 0000000000000..ac705801175f3 --- /dev/null +++ b/x-pack/plugins/infra/public/apps/kibana_app.ts @@ -0,0 +1,11 @@ +/* + * 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 'uiExports/autocompleteProviders'; + +import { compose } from '../lib/compose/kibana_compose'; +import { startApp } from './start_app'; +startApp(compose()); diff --git a/x-pack/plugins/infra/public/apps/start_app.tsx b/x-pack/plugins/infra/public/apps/start_app.tsx new file mode 100644 index 0000000000000..da32e65e8ffb0 --- /dev/null +++ b/x-pack/plugins/infra/public/apps/start_app.tsx @@ -0,0 +1,42 @@ +/* + * 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 { createHashHistory } from 'history'; +import React from 'react'; +import { ApolloProvider } from 'react-apollo'; +import { Provider as ReduxStoreProvider } from 'react-redux'; +import { BehaviorSubject } from 'rxjs'; +import { pluck } from 'rxjs/operators'; +import { ThemeProvider } from 'styled-components'; + +// TODO use theme provided from parentApp when kibana supports it +import { EuiErrorBoundary } from '@elastic/eui'; +import * as euiVars from '@elastic/eui/dist/eui_theme_k6_light.json'; +import { InfraFrontendLibs } from '../lib/lib'; +import { PageRouter } from '../routes'; +import { createStore } from '../store'; + +export async function startApp(libs: InfraFrontendLibs) { + const history = createHashHistory(); + + const libs$ = new BehaviorSubject(libs); + const store = createStore({ + apolloClient: libs$.pipe(pluck('apolloClient')), + observableApi: libs$.pipe(pluck('observableApi')), + }); + + libs.framework.render( + + + + + + + + + + ); +} diff --git a/x-pack/plugins/infra/public/apps/testing_app.ts b/x-pack/plugins/infra/public/apps/testing_app.ts new file mode 100644 index 0000000000000..bcd7d0e592644 --- /dev/null +++ b/x-pack/plugins/infra/public/apps/testing_app.ts @@ -0,0 +1,9 @@ +/* + * 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 { compose } from '../lib/compose/testing_compose'; +import { startApp } from './start_app'; +startApp(compose()); diff --git a/x-pack/plugins/infra/public/components/auto_sizer.tsx b/x-pack/plugins/infra/public/components/auto_sizer.tsx new file mode 100644 index 0000000000000..674a54338dcf1 --- /dev/null +++ b/x-pack/plugins/infra/public/components/auto_sizer.tsx @@ -0,0 +1,166 @@ +/* + * 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 isEqual from 'lodash/fp/isEqual'; +import React from 'react'; +import ResizeObserver from 'resize-observer-polyfill'; + +interface Measurement { + width?: number; + height?: number; +} + +interface Measurements { + bounds: Measurement; + content: Measurement; +} + +interface AutoSizerProps { + detectAnyWindowResize?: boolean; + bounds?: boolean; + content?: boolean; + onResize?: (size: Measurements) => void; + children: ( + args: { measureRef: (instance: HTMLElement | null) => any } & Measurements + ) => React.ReactNode; +} + +interface AutoSizerState { + boundsMeasurement: Measurement; + contentMeasurement: Measurement; +} + +export class AutoSizer extends React.PureComponent { + public element: HTMLElement | null = null; + public resizeObserver: ResizeObserver | null = null; + public windowWidth: number = -1; + + public readonly state = { + boundsMeasurement: { + height: void 0, + width: void 0, + }, + contentMeasurement: { + height: void 0, + width: void 0, + }, + }; + + constructor(props: AutoSizerProps) { + super(props); + if (this.props.detectAnyWindowResize) { + window.addEventListener('resize', this.updateMeasurement); + } + this.resizeObserver = new ResizeObserver(entries => { + entries.forEach(entry => { + if (entry.target === this.element) { + this.measure(entry); + } + }); + }); + } + + public componentWillUnmount() { + if (this.resizeObserver) { + this.resizeObserver.disconnect(); + this.resizeObserver = null; + } + if (this.props.detectAnyWindowResize) { + window.removeEventListener('resize', this.updateMeasurement); + } + } + + public measure = (entry: ResizeObserverEntry | null) => { + if (!this.element) { + return; + } + + const { content = true, bounds = false } = this.props; + const { + boundsMeasurement: previousBoundsMeasurement, + contentMeasurement: previousContentMeasurement, + } = this.state; + + const boundsRect = bounds ? this.element.getBoundingClientRect() : null; + const boundsMeasurement = boundsRect + ? { + height: this.element.getBoundingClientRect().height, + width: this.element.getBoundingClientRect().width, + } + : previousBoundsMeasurement; + + if ( + this.props.detectAnyWindowResize && + boundsMeasurement && + boundsMeasurement.width && + this.windowWidth !== -1 && + this.windowWidth > window.innerWidth + ) { + const gap = this.windowWidth - window.innerWidth; + boundsMeasurement.width = boundsMeasurement.width - gap; + } + this.windowWidth = window.innerWidth; + const contentRect = content && entry ? entry.contentRect : null; + const contentMeasurement = + contentRect && entry + ? { + height: entry.contentRect.height, + width: entry.contentRect.width, + } + : previousContentMeasurement; + + if ( + isEqual(boundsMeasurement, previousBoundsMeasurement) && + isEqual(contentMeasurement, previousContentMeasurement) + ) { + return; + } + + requestAnimationFrame(() => { + if (!this.resizeObserver) { + return; + } + + this.setState({ boundsMeasurement, contentMeasurement }); + + if (this.props.onResize) { + this.props.onResize({ + bounds: boundsMeasurement, + content: contentMeasurement, + }); + } + }); + }; + + public render() { + const { children } = this.props; + const { boundsMeasurement, contentMeasurement } = this.state; + + return children({ + bounds: boundsMeasurement, + content: contentMeasurement, + measureRef: this.storeRef, + }); + } + + private updateMeasurement = () => { + window.setTimeout(() => { + this.measure(null); + }, 0); + }; + + private storeRef = (element: HTMLElement | null) => { + if (this.element && this.resizeObserver) { + this.resizeObserver.unobserve(this.element); + } + + if (element && this.resizeObserver) { + this.resizeObserver.observe(element); + } + + this.element = element; + }; +} diff --git a/x-pack/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx b/x-pack/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx new file mode 100644 index 0000000000000..982de13ad9685 --- /dev/null +++ b/x-pack/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx @@ -0,0 +1,305 @@ +/* + * 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 { + EuiFieldSearch, + EuiFieldSearchProps, + EuiOutsideClickDetector, + EuiPanel, +} from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; + +import { AutocompleteSuggestion } from 'ui/autocomplete_providers'; + +import { composeStateUpdaters } from '../../utils/typed_react'; +import { SuggestionItem } from './suggestion_item'; + +interface AutocompleteFieldProps { + isLoadingSuggestions: boolean; + isValid: boolean; + loadSuggestions: (value: string, cursorPosition: number, maxCount?: number) => void; + onSubmit?: (value: string) => void; + onChange?: (value: string) => void; + placeholder?: string; + suggestions: AutocompleteSuggestion[]; + value: string; +} + +interface AutocompleteFieldState { + areSuggestionsVisible: boolean; + isFocused: boolean; + selectedIndex: number | null; +} + +export class AutocompleteField extends React.Component< + AutocompleteFieldProps, + AutocompleteFieldState +> { + public readonly state: AutocompleteFieldState = { + areSuggestionsVisible: false, + isFocused: false, + selectedIndex: null, + }; + + private inputElement: HTMLInputElement | null = null; + + public render() { + const { suggestions, isLoadingSuggestions, isValid, placeholder, value } = this.props; + const { areSuggestionsVisible, selectedIndex } = this.state; + + return ( + + + + {areSuggestionsVisible && !isLoadingSuggestions && suggestions.length > 0 ? ( + + {suggestions.map((suggestion, suggestionIndex) => ( + + ))} + + ) : null} + + + ); + } + + public componentDidUpdate(prevProps: AutocompleteFieldProps, prevState: AutocompleteFieldState) { + const hasNewValue = prevProps.value !== this.props.value; + const hasNewSuggestions = prevProps.suggestions !== this.props.suggestions; + + if (hasNewValue) { + this.updateSuggestions(); + } + + if (hasNewSuggestions && this.state.isFocused) { + this.showSuggestions(); + } + } + + private handleChangeInputRef = (element: HTMLInputElement | null) => { + this.inputElement = element; + }; + + private handleChange = (evt: React.ChangeEvent) => { + this.changeValue(evt.currentTarget.value); + }; + + private handleKeyDown = (evt: React.KeyboardEvent) => { + const { suggestions } = this.props; + + switch (evt.key) { + case 'ArrowUp': + evt.preventDefault(); + if (suggestions.length > 0) { + this.setState( + composeStateUpdaters(withSuggestionsVisible, withPreviousSuggestionSelected) + ); + } + break; + case 'ArrowDown': + evt.preventDefault(); + if (suggestions.length > 0) { + this.setState(composeStateUpdaters(withSuggestionsVisible, withNextSuggestionSelected)); + } else { + this.updateSuggestions(); + } + break; + case 'Enter': + evt.preventDefault(); + if (this.state.selectedIndex !== null) { + this.applySelectedSuggestion(); + } else { + this.submit(); + } + break; + case 'Escape': + evt.preventDefault(); + this.setState(withSuggestionsHidden); + break; + } + }; + + private handleKeyUp = (evt: React.KeyboardEvent) => { + switch (evt.key) { + case 'ArrowLeft': + case 'ArrowRight': + case 'Home': + case 'End': + this.updateSuggestions(); + break; + } + }; + + private handleFocus = () => { + this.setState(composeStateUpdaters(withSuggestionsVisible, withFocused)); + }; + + private handleBlur = () => { + this.setState(composeStateUpdaters(withSuggestionsHidden, withUnfocused)); + }; + + private selectSuggestionAt = (index: number) => () => { + this.setState(withSuggestionAtIndexSelected(index)); + }; + + private applySelectedSuggestion = () => { + if (this.state.selectedIndex !== null) { + this.applySuggestionAt(this.state.selectedIndex)(); + } + }; + + private applySuggestionAt = (index: number) => () => { + const { value, suggestions } = this.props; + const selectedSuggestion = suggestions[index]; + + if (!selectedSuggestion) { + return; + } + + const newValue = + value.substr(0, selectedSuggestion.start) + + selectedSuggestion.text + + value.substr(selectedSuggestion.end); + + this.setState(withSuggestionsHidden); + this.changeValue(newValue); + this.focusInputElement(); + }; + + private changeValue = (value: string) => { + const { onChange } = this.props; + + if (onChange) { + onChange(value); + } + }; + + private focusInputElement = () => { + if (this.inputElement) { + this.inputElement.focus(); + } + }; + + private showSuggestions = () => { + this.setState(withSuggestionsVisible); + }; + + private submit = () => { + const { isValid, onSubmit, value } = this.props; + + if (isValid && onSubmit) { + onSubmit(value); + } + + this.setState(withSuggestionsHidden); + }; + + private updateSuggestions = () => { + const inputCursorPosition = this.inputElement ? this.inputElement.selectionStart || 0 : 0; + this.props.loadSuggestions(this.props.value, inputCursorPosition, 10); + }; +} + +const withPreviousSuggestionSelected = ( + state: AutocompleteFieldState, + props: AutocompleteFieldProps +): AutocompleteFieldState => ({ + ...state, + selectedIndex: + props.suggestions.length === 0 + ? null + : state.selectedIndex !== null + ? (state.selectedIndex + props.suggestions.length - 1) % props.suggestions.length + : Math.max(props.suggestions.length - 1, 0), +}); + +const withNextSuggestionSelected = ( + state: AutocompleteFieldState, + props: AutocompleteFieldProps +): AutocompleteFieldState => ({ + ...state, + selectedIndex: + props.suggestions.length === 0 + ? null + : state.selectedIndex !== null + ? (state.selectedIndex + 1) % props.suggestions.length + : 0, +}); + +const withSuggestionAtIndexSelected = (suggestionIndex: number) => ( + state: AutocompleteFieldState, + props: AutocompleteFieldProps +): AutocompleteFieldState => ({ + ...state, + selectedIndex: + props.suggestions.length === 0 + ? null + : suggestionIndex >= 0 && suggestionIndex < props.suggestions.length + ? suggestionIndex + : 0, +}); + +const withSuggestionsVisible = (state: AutocompleteFieldState) => ({ + ...state, + areSuggestionsVisible: true, +}); + +const withSuggestionsHidden = (state: AutocompleteFieldState) => ({ + ...state, + areSuggestionsVisible: false, + selectedIndex: null, +}); + +const withFocused = (state: AutocompleteFieldState) => ({ + ...state, + isFocused: true, +}); + +const withUnfocused = (state: AutocompleteFieldState) => ({ + ...state, + isFocused: false, +}); + +const FixedEuiFieldSearch: React.SFC< + React.InputHTMLAttributes & + EuiFieldSearchProps & { + inputRef?: (element: HTMLInputElement | null) => void; + onSearch: (value: string) => void; + } +> = EuiFieldSearch as any; + +const AutocompleteContainer = styled.div` + position: relative; +`; + +const SuggestionsPanel = styled(EuiPanel).attrs({ + paddingSize: 'none', + hasShadow: true, +})` + position: absolute; + width: 100%; + margin-top: 2px; + overflow: hidden; +`; diff --git a/x-pack/plugins/infra/public/components/autocomplete_field/index.ts b/x-pack/plugins/infra/public/components/autocomplete_field/index.ts new file mode 100644 index 0000000000000..16def61958d78 --- /dev/null +++ b/x-pack/plugins/infra/public/components/autocomplete_field/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './autocomplete_field'; diff --git a/x-pack/plugins/infra/public/components/autocomplete_field/suggestion_item.tsx b/x-pack/plugins/infra/public/components/autocomplete_field/suggestion_item.tsx new file mode 100644 index 0000000000000..09112ede6fa11 --- /dev/null +++ b/x-pack/plugins/infra/public/components/autocomplete_field/suggestion_item.tsx @@ -0,0 +1,124 @@ +/* + * 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 { EuiIcon } from '@elastic/eui'; +import { tint } from 'polished'; +import React from 'react'; +import styled from 'styled-components'; + +import { AutocompleteSuggestion } from 'ui/autocomplete_providers'; + +interface SuggestionItemProps { + isSelected?: boolean; + onClick?: React.MouseEventHandler; + onMouseEnter?: React.MouseEventHandler; + suggestion: AutocompleteSuggestion; +} + +export class SuggestionItem extends React.Component { + public static defaultProps: Partial = { + isSelected: false, + }; + + public render() { + const { isSelected, onClick, onMouseEnter, suggestion } = this.props; + + return ( + + + + + {suggestion.text} + + + ); + } +} + +const SuggestionItemContainer = styled.div<{ + isSelected?: boolean; +}>` + display: flex; + flex-direction: row; + font-size: ${props => props.theme.eui.euiFontSizeS}; + height: ${props => props.theme.eui.euiSizeXl}; + white-space: nowrap; + background-color: ${props => + props.isSelected ? props.theme.eui.euiColorLightestShade : 'transparent'}; +`; + +const SuggestionItemField = styled.div` + align-items: center; + cursor: pointer; + display: flex; + flex-direction: row; + height: ${props => props.theme.eui.euiSizeXl}; + padding: ${props => props.theme.eui.euiSizeXs}; +`; + +const SuggestionItemIconField = SuggestionItemField.extend<{ suggestionType: string }>` + background-color: ${props => tint(0.1, getEuiIconColor(props.theme, props.suggestionType))}; + color: ${props => getEuiIconColor(props.theme, props.suggestionType)}; + flex: 0 0 auto; + justify-content: center; + width: ${props => props.theme.eui.euiSizeXl}; +`; + +const SuggestionItemTextField = SuggestionItemField.extend` + flex: 2 0 0; + font-family: ${props => props.theme.eui.euiCodeFontFamily}; +`; + +const SuggestionItemDescriptionField = SuggestionItemField.extend` + flex: 3 0 0; + + p { + display: inline; + + span { + font-family: ${props => props.theme.eui.euiCodeFontFamily}; + } + } +`; + +const getEuiIconType = (suggestionType: string) => { + switch (suggestionType) { + case 'field': + return 'kqlField'; + case 'value': + return 'kqlValue'; + case 'recentSearch': + return 'search'; + case 'conjunction': + return 'kqlSelector'; + case 'operator': + return 'kqlOperand'; + default: + return 'empty'; + } +}; + +const getEuiIconColor = (theme: any, suggestionType: string): string => { + switch (suggestionType) { + case 'field': + return theme.eui.euiColorVis7; + case 'value': + return theme.eui.euiColorVis0; + case 'operator': + return theme.eui.euiColorVis1; + case 'conjunction': + return theme.eui.euiColorVis2; + case 'recentSearch': + default: + return theme.eui.euiColorMediumShade; + } +}; diff --git a/x-pack/plugins/infra/public/components/beta_badge_header_section.tsx b/x-pack/plugins/infra/public/components/beta_badge_header_section.tsx new file mode 100644 index 0000000000000..3512afe18acfe --- /dev/null +++ b/x-pack/plugins/infra/public/components/beta_badge_header_section.tsx @@ -0,0 +1,35 @@ +/* + * 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 { EuiBetaBadge, EuiHeaderSection } from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; + +interface BetaBadgeHeaderSectionProps { + tooltipContent?: React.ReactNode; +} + +export const BetaBadgeHeaderSection: React.SFC = ({ + tooltipContent = 'Please help us improve by reporting issues or bugs in the Kibana repo.', +}) => ( + + + +); + +export const InfrastructureBetaBadgeHeaderSection = () => ( + +); + +export const LogsBetaBadgeHeaderSection = () => ( + +); + +const VerticallyCenteredHeaderSection = styled(EuiHeaderSection)` + padding-left: ${props => props.theme.eui.euiSizeS}; + padding-right: ${props => props.theme.eui.euiSizeS}; + align-items: center; +`; diff --git a/x-pack/plugins/infra/public/components/empty_page.tsx b/x-pack/plugins/infra/public/components/empty_page.tsx new file mode 100644 index 0000000000000..44e4ac30d0de5 --- /dev/null +++ b/x-pack/plugins/infra/public/components/empty_page.tsx @@ -0,0 +1,40 @@ +/* + * 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 { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; + +interface EmptyPageProps { + message: string; + title: string; + actionLabel: string; + actionUrl: string; + 'data-test-subj'?: string; +} + +export const EmptyPage: React.SFC = ({ + actionLabel, + actionUrl, + message, + title, + ...rest +}) => ( + {title}} + body={

      {message}

      } + actions={ + + {actionLabel} + + } + {...rest} + /> +); + +const CenteredEmptyPrompt = styled(EuiEmptyPrompt)` + align-self: center; +`; diff --git a/x-pack/plugins/infra/public/components/eui/index.ts b/x-pack/plugins/infra/public/components/eui/index.ts new file mode 100644 index 0000000000000..f1623ce98c727 --- /dev/null +++ b/x-pack/plugins/infra/public/components/eui/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { Toolbar } from './toolbar'; diff --git a/x-pack/plugins/infra/public/components/eui/toolbar/index.ts b/x-pack/plugins/infra/public/components/eui/toolbar/index.ts new file mode 100644 index 0000000000000..f1623ce98c727 --- /dev/null +++ b/x-pack/plugins/infra/public/components/eui/toolbar/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { Toolbar } from './toolbar'; diff --git a/x-pack/plugins/infra/public/components/eui/toolbar/toolbar.tsx b/x-pack/plugins/infra/public/components/eui/toolbar/toolbar.tsx new file mode 100644 index 0000000000000..9d7005091bd75 --- /dev/null +++ b/x-pack/plugins/infra/public/components/eui/toolbar/toolbar.tsx @@ -0,0 +1,21 @@ +/* + * 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 { EuiPanel } from '@elastic/eui'; + +import styled from 'styled-components'; + +export const Toolbar = styled(EuiPanel).attrs({ + grow: false, + paddingSize: 'none', +})` + border-top: none; + border-right: none; + border-left: none; + border-radius: 0; + padding: ${props => props.theme.eui.euiSizeS} ${props => props.theme.eui.euiSizeL}; + z-index: 1; +`; diff --git a/x-pack/plugins/infra/public/components/header.tsx b/x-pack/plugins/infra/public/components/header.tsx new file mode 100644 index 0000000000000..38c71741ab4b9 --- /dev/null +++ b/x-pack/plugins/infra/public/components/header.tsx @@ -0,0 +1,45 @@ +/* + * 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 { + EuiBreadcrumbDefinition, + EuiHeader, + EuiHeaderBreadcrumbs, + EuiHeaderSection, +} from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; + +interface HeaderProps { + breadcrumbs?: EuiBreadcrumbDefinition[]; + appendSections?: React.ReactNode; +} + +export class Header extends React.PureComponent { + private staticBreadcrumbs = [ + { + href: '#/', + text: 'Infrastructure', + }, + ]; + + public render() { + const { breadcrumbs = [], appendSections = null } = this.props; + + return ( + + + + + {appendSections} + + ); + } +} + +const HeaderWrapper = styled(EuiHeader)` + height: 29px; +`; diff --git a/x-pack/plugins/infra/public/components/loading/index.tsx b/x-pack/plugins/infra/public/components/loading/index.tsx new file mode 100644 index 0000000000000..143ef5b2ece25 --- /dev/null +++ b/x-pack/plugins/infra/public/components/loading/index.tsx @@ -0,0 +1,47 @@ +/* + * 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 { EuiLoadingChart, EuiPanel, EuiText } from '@elastic/eui'; +import * as React from 'react'; +import styled from 'styled-components'; + +interface InfraLoadingProps { + text: string; + height: number | string; + width: number | string; +} + +export class InfraLoadingPanel extends React.PureComponent { + public render() { + const { height, text, width } = this.props; + return ( + + + + + +

      {text}

      +
      +
      +
      +
      + ); + } +} + +export const InfraLoadingStaticPanel = styled.div` + position: relative; + overflow: hidden; + display: flex; + flex-direction: column; + justify-content: center; +`; + +export const InfraLoadingStaticContentPanel = styled.div` + flex: 0 0 auto; + align-self: center; + text-align: center; +`; diff --git a/x-pack/plugins/infra/public/components/loading_page.tsx b/x-pack/plugins/infra/public/components/loading_page.tsx new file mode 100644 index 0000000000000..606f1fb69aa55 --- /dev/null +++ b/x-pack/plugins/infra/public/components/loading_page.tsx @@ -0,0 +1,35 @@ +/* + * 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 { + EuiFlexGroup, + EuiFlexItem, + EuiLoadingSpinner, + EuiPageBody, + EuiPageContent, +} from '@elastic/eui'; +import React from 'react'; + +import { FlexPage } from './page'; + +interface LoadingPageProps { + message?: string; +} + +export const LoadingPage = ({ message }: LoadingPageProps) => ( + + + + + + + + {message} + + + + +); diff --git a/x-pack/plugins/infra/public/components/logging/log_customization_menu.tsx b/x-pack/plugins/infra/public/components/logging/log_customization_menu.tsx new file mode 100644 index 0000000000000..2e444460fff9e --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_customization_menu.tsx @@ -0,0 +1,65 @@ +/* + * 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 { EuiButtonEmpty, EuiPopover } from '@elastic/eui'; +import * as React from 'react'; +import styled from 'styled-components'; + +interface LogCustomizationMenuState { + isShown: boolean; +} + +export class LogCustomizationMenu extends React.Component<{}, LogCustomizationMenuState> { + public readonly state = { + isShown: false, + }; + + public show = () => { + this.setState({ + isShown: true, + }); + }; + + public hide = () => { + this.setState({ + isShown: false, + }); + }; + + public toggleVisibility = () => { + this.setState(state => ({ + isShown: !state.isShown, + })); + }; + + public render() { + const { children } = this.props; + const { isShown } = this.state; + + const menuButton = ( + + Customize + + ); + + return ( + + {children} + + ); + } +} + +const CustomizationMenuContent = styled.div` + min-width: 200px; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/density_chart.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap/density_chart.tsx new file mode 100644 index 0000000000000..bf524678e7f2b --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/density_chart.tsx @@ -0,0 +1,64 @@ +/* + * 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 { scaleLinear, scaleTime } from 'd3-scale'; +import { area, curveMonotoneY } from 'd3-shape'; +import max from 'lodash/fp/max'; +import * as React from 'react'; +import styled from 'styled-components'; + +import { SummaryBucket } from './types'; + +interface DensityChartProps { + buckets: SummaryBucket[]; + end: number; + start: number; + width: number; + height: number; +} + +export const DensityChart: React.SFC = ({ + buckets, + start, + end, + width, + height, +}) => { + if (start >= end || height <= 0 || width <= 0 || buckets.length <= 0) { + return null; + } + + const yScale = scaleTime() + .domain([start, end]) + .range([0, height]); + + const xMax = max(buckets.map(bucket => bucket.entriesCount)) || 0; + const xScale = scaleLinear() + .domain([0, xMax]) + .range([0, width / 2]); + + const path = area() + .x0(xScale(0)) + .x1(bucket => xScale(bucket.entriesCount)) + .y(bucket => yScale((bucket.start + bucket.end) / 2)) + .curve(curveMonotoneY); + const pathData = path(buckets); + + return ( + + + + + ); +}; + +const PositiveAreaPath = styled.path` + fill: ${props => props.theme.eui.euiColorLightShade}; +`; + +const NegativeAreaPath = styled.path` + fill: ${props => props.theme.eui.euiColorLightestShade}; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/highlighted_interval.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap/highlighted_interval.tsx new file mode 100644 index 0000000000000..67981d1b5e9bf --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/highlighted_interval.tsx @@ -0,0 +1,43 @@ +/* + * 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 * as React from 'react'; +import styled from 'styled-components'; + +interface HighlightedIntervalProps { + className?: string; + getPositionOfTime: (time: number) => number; + start: number; + end: number; + width: number; +} + +export const HighlightedInterval: React.SFC = ({ + className, + end, + getPositionOfTime, + start, + width, +}) => { + const yStart = getPositionOfTime(start); + const yEnd = getPositionOfTime(end); + + return ( + + ); +}; + +HighlightedInterval.displayName = 'HighlightedInterval'; + +const HighlightPolygon = styled.polygon` + fill: ${props => props.theme.eui.euiColorPrimary}; + fill-opacity: 0.3; + stroke: ${props => props.theme.eui.euiColorPrimary}; + stroke-width: 1; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/index.ts b/x-pack/plugins/infra/public/components/logging/log_minimap/index.ts new file mode 100644 index 0000000000000..8798a5fd022f2 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { LogMinimap } from './log_minimap'; diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/log_minimap.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap/log_minimap.tsx new file mode 100644 index 0000000000000..85f47cd4eb1e1 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/log_minimap.tsx @@ -0,0 +1,166 @@ +/* + * 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 { scaleLinear } from 'd3-scale'; +import * as React from 'react'; +import styled from 'styled-components'; + +import { LogEntryTime } from '../../../../common/log_entry'; +// import { SearchSummaryBucket } from '../../../../common/log_search_summary'; +import { DensityChart } from './density_chart'; +import { HighlightedInterval } from './highlighted_interval'; +// import { SearchMarkers } from './search_markers'; +import { TimeRuler } from './time_ruler'; +import { SummaryBucket } from './types'; + +interface LogMinimapProps { + className?: string; + height: number; + highlightedInterval: { + end: number; + start: number; + } | null; + jumpToTarget: (params: LogEntryTime) => any; + reportVisibleInterval: ( + params: { + start: number; + end: number; + bucketsOnPage: number; + pagesBeforeStart: number; + pagesAfterEnd: number; + } + ) => any; + intervalSize: number; + summaryBuckets: SummaryBucket[]; + // searchSummaryBuckets?: SearchSummaryBucket[]; + target: number | null; + width: number; +} + +export class LogMinimap extends React.Component { + public handleClick: React.MouseEventHandler = event => { + const svgPosition = event.currentTarget.getBoundingClientRect(); + const clickedYPosition = event.clientY - svgPosition.top; + const clickedTime = Math.floor(this.getYScale().invert(clickedYPosition)); + + this.props.jumpToTarget({ + tiebreaker: 0, + time: clickedTime, + }); + }; + + public getYScale = () => { + const { height, intervalSize, target } = this.props; + + const domainStart = target ? target - intervalSize / 2 : 0; + const domainEnd = target ? target + intervalSize / 2 : 0; + return scaleLinear() + .domain([domainStart, domainEnd]) + .range([0, height]); + }; + + public getPositionOfTime = (time: number) => { + const { height, intervalSize } = this.props; + + const [minTime] = this.getYScale().domain(); + + return ((time - minTime) * height) / intervalSize; + }; + + public updateVisibleInterval = () => { + const { summaryBuckets, intervalSize } = this.props; + const [minTime, maxTime] = this.getYScale().domain(); + + const firstBucket = summaryBuckets[0]; + const lastBucket = summaryBuckets[summaryBuckets.length - 1]; + + const pagesBeforeStart = firstBucket ? (minTime - firstBucket.start) / intervalSize : 0; + const pagesAfterEnd = lastBucket ? (lastBucket.end - maxTime) / intervalSize : 0; + const bucketsOnPage = firstBucket + ? (maxTime - minTime) / (firstBucket.end - firstBucket.start) + : 0; + + this.props.reportVisibleInterval({ + end: Math.ceil(maxTime), + start: Math.floor(minTime), + bucketsOnPage, + pagesBeforeStart, + pagesAfterEnd, + }); + }; + + public componentDidUpdate(prevProps: LogMinimapProps) { + const hasNewTarget = prevProps.target !== this.props.target; + const hasNewIntervalSize = prevProps.intervalSize !== this.props.intervalSize; + + if (hasNewTarget || hasNewIntervalSize) { + this.updateVisibleInterval(); + } + } + + public render() { + const { + className, + height, + highlightedInterval, + // jumpToTarget, + summaryBuckets, + // searchSummaryBuckets, + width, + } = this.props; + + const [minTime, maxTime] = this.getYScale().domain(); + + return ( + + + + + + {highlightedInterval ? ( + + ) : null} + {/* + + */} + + ); + } +} + +const MinimapBackground = styled.rect` + fill: ${props => props.theme.eui.euiColorLightestShade}; +`; + +const MinimapBorder = styled.line` + stroke: ${props => props.theme.eui.euiColorMediumShade}; + stroke-width: 1px; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/search_marker.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap/search_marker.tsx new file mode 100644 index 0000000000000..70cfc5ddac799 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/search_marker.tsx @@ -0,0 +1,114 @@ +/* + * 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 * as React from 'react'; +import styled, { keyframes } from 'styled-components'; + +import { LogEntryTime } from '../../../../common/log_entry'; +import { SearchSummaryBucket } from '../../../../common/log_search_summary'; +import { SearchMarkerTooltip } from './search_marker_tooltip'; + +interface SearchMarkerProps { + bucket: SearchSummaryBucket; + height: number; + width: number; + jumpToTarget: (target: LogEntryTime) => void; +} + +interface SearchMarkerState { + hoveredPosition: ClientRect | null; +} + +export class SearchMarker extends React.PureComponent { + public readonly state = { + hoveredPosition: null, + }; + + public handleClick: React.MouseEventHandler = evt => { + evt.stopPropagation(); + + this.props.jumpToTarget(this.props.bucket.representative.fields); + }; + + public handleMouseEnter: React.MouseEventHandler = evt => { + this.setState({ + hoveredPosition: evt.currentTarget.getBoundingClientRect(), + }); + }; + + public handleMouseLeave: React.MouseEventHandler = () => { + this.setState({ + hoveredPosition: null, + }); + }; + + public render() { + const { bucket, height, width } = this.props; + const { hoveredPosition } = this.state; + + const bulge = + bucket.count > 1 ? ( + + ) : ( + <> + + + + ); + + return ( + <> + {hoveredPosition ? ( + + {bucket.count} {bucket.count === 1 ? 'search result' : 'search results'} + + ) : null} + + + {bulge} + + + ); + } +} + +const fadeInAnimation = keyframes` + from { + opacity: 0; + } + to { + opacity: 1; + } +`; + +const SearchMarkerGroup = styled.g` + animation: ${fadeInAnimation} ${props => props.theme.eui.euiAnimSpeedExtraSlow} ease-in both; +`; + +const SearchMarkerBackgroundRect = styled.rect` + fill: ${props => props.theme.eui.euiColorSecondary}; + opacity: 0; + transition: opacity ${props => props.theme.eui.euiAnimSpeedNormal} ease-in; + + ${SearchMarkerGroup}:hover & { + opacity: 0.2; + } +`; + +const SearchMarkerForegroundRect = styled.rect` + fill: ${props => props.theme.eui.euiColorSecondary}; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/search_marker_tooltip.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap/search_marker_tooltip.tsx new file mode 100644 index 0000000000000..1f995947dfd4e --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/search_marker_tooltip.tsx @@ -0,0 +1,53 @@ +/* + * 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 { calculatePopoverPosition, EuiPortal } from '@elastic/eui'; +import * as React from 'react'; + +import { AutoSizer } from '../../auto_sizer'; + +interface SearchMarkerTooltipProps { + markerPosition: ClientRect; +} + +export class SearchMarkerTooltip extends React.PureComponent { + public render() { + const { children, markerPosition } = this.props; + + return ( + +
      + + {({ measureRef, bounds: { width, height } }) => { + const { top, left } = + width && height + ? calculatePopoverPosition(markerPosition, { width, height }, 'left', 16, [ + 'left', + ]) + : { + left: -9999, // render off-screen before the first measurement + top: 0, + }; + + return ( +
      + {children} +
      + ); + }} +
      +
      +
      + ); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/search_markers.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap/search_markers.tsx new file mode 100644 index 0000000000000..8ad3947cc5a23 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/search_markers.tsx @@ -0,0 +1,53 @@ +/* + * 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 classNames from 'classnames'; +import { scaleTime } from 'd3-scale'; +import * as React from 'react'; + +import { LogEntryTime } from '../../../../common/log_entry'; +import { SearchSummaryBucket } from '../../../../common/log_search_summary'; +import { SearchMarker } from './search_marker'; + +interface SearchMarkersProps { + buckets: SearchSummaryBucket[]; + className?: string; + end: number; + start: number; + width: number; + height: number; + jumpToTarget: (target: LogEntryTime) => void; +} + +export class SearchMarkers extends React.PureComponent { + public render() { + const { buckets, start, end, width, height, jumpToTarget, className } = this.props; + const classes = classNames('minimapSearchMarkers', className); + + if (start >= end || height <= 0 || Object.keys(buckets).length <= 0) { + return null; + } + + const yScale = scaleTime() + .domain([start, end]) + .range([0, height]); + + return ( + + {buckets.map(bucket => ( + + + + ))} + + ); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/time_ruler.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap/time_ruler.tsx new file mode 100644 index 0000000000000..0577dba01e09b --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/time_ruler.tsx @@ -0,0 +1,57 @@ +/* + * 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 { scaleTime } from 'd3-scale'; +import * as React from 'react'; +import styled from 'styled-components'; + +interface TimeRulerProps { + end: number; + height: number; + start: number; + tickCount: number; + width: number; +} + +export const TimeRuler: React.SFC = ({ end, height, start, tickCount, width }) => { + const yScale = scaleTime() + .domain([start, end]) + .range([0, height]); + + const ticks = yScale.ticks(tickCount); + const formatTick = yScale.tickFormat(); + + return ( + + {ticks.map((tick, tickIndex) => { + const y = yScale(tick); + return ( + + + {formatTick(tick)} + + + + ); + })} + + ); +}; + +TimeRuler.displayName = 'TimeRuler'; + +const TimeRulerTickLabel = styled.text` + font-size: ${props => props.theme.eui.euiFontSizeXs}; + line-height: ${props => props.theme.eui.euiLineHeight}; + color: ${props => props.theme.eui.euiTextColor}; +`; + +const TimeRulerGridLine = styled.line` + stroke: ${props => props.theme.eui.euiColorMediumShade}; + stroke-dasharray: 2, 2; + stroke-opacity: 0.5; + stroke-width: 1px; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap/types.ts b/x-pack/plugins/infra/public/components/logging/log_minimap/types.ts new file mode 100644 index 0000000000000..ac3ea48bc4b16 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap/types.ts @@ -0,0 +1,11 @@ +/* + * 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 interface SummaryBucket { + start: number; + end: number; + entriesCount: number; +} diff --git a/x-pack/plugins/infra/public/components/logging/log_minimap_scale_controls.tsx b/x-pack/plugins/infra/public/components/logging/log_minimap_scale_controls.tsx new file mode 100644 index 0000000000000..b195fd3af005a --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_minimap_scale_controls.tsx @@ -0,0 +1,59 @@ +/* + * 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 { EuiFormRow, EuiRadioGroup } from '@elastic/eui'; +import * as React from 'react'; + +interface IntervalSizeDescriptor { + label: string; + intervalSize: number; +} + +interface LogMinimapScaleControlsProps { + availableIntervalSizes: IntervalSizeDescriptor[]; + intervalSize: number; + setIntervalSize: (intervalSize: number) => any; +} + +export class LogMinimapScaleControls extends React.PureComponent { + public handleScaleChange = (intervalSizeDescriptorKey: string) => { + const { availableIntervalSizes, setIntervalSize } = this.props; + const [sizeDescriptor] = availableIntervalSizes.filter( + intervalKeyEquals(intervalSizeDescriptorKey) + ); + + if (sizeDescriptor) { + setIntervalSize(sizeDescriptor.intervalSize); + } + }; + + public render() { + const { availableIntervalSizes, intervalSize } = this.props; + const [currentSizeDescriptor] = availableIntervalSizes.filter(intervalSizeEquals(intervalSize)); + + return ( + + ({ + id: getIntervalSizeDescriptorKey(sizeDescriptor), + label: sizeDescriptor.label, + }))} + onChange={this.handleScaleChange} + idSelected={getIntervalSizeDescriptorKey(currentSizeDescriptor)} + /> + + ); + } +} + +const getIntervalSizeDescriptorKey = (sizeDescriptor: IntervalSizeDescriptor) => + `${sizeDescriptor.intervalSize}`; + +const intervalKeyEquals = (key: string) => (sizeDescriptor: IntervalSizeDescriptor) => + getIntervalSizeDescriptorKey(sizeDescriptor) === key; + +const intervalSizeEquals = (size: number) => (sizeDescriptor: IntervalSizeDescriptor) => + sizeDescriptor.intervalSize === size; diff --git a/x-pack/plugins/infra/public/components/logging/log_search_controls/index.ts b/x-pack/plugins/infra/public/components/logging/log_search_controls/index.ts new file mode 100644 index 0000000000000..bc2800f18e2b9 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_search_controls/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { LogSearchControls } from './log_search_controls'; diff --git a/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_buttons.tsx b/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_buttons.tsx new file mode 100644 index 0000000000000..5c24a36fac669 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_buttons.tsx @@ -0,0 +1,71 @@ +/* + * 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 { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import classNames from 'classnames'; +import * as React from 'react'; + +import { LogEntryTime } from '../../../../common/log_entry'; + +interface LogSearchButtonsProps { + className?: string; + jumpToTarget: (target: LogEntryTime) => void; + previousSearchResult: LogEntryTime | null; + nextSearchResult: LogEntryTime | null; +} + +export class LogSearchButtons extends React.PureComponent { + public handleJumpToPreviousSearchResult: React.MouseEventHandler = () => { + const { jumpToTarget, previousSearchResult } = this.props; + + if (previousSearchResult) { + jumpToTarget(previousSearchResult); + } + }; + + public handleJumpToNextSearchResult: React.MouseEventHandler = () => { + const { jumpToTarget, nextSearchResult } = this.props; + + if (nextSearchResult) { + jumpToTarget(nextSearchResult); + } + }; + + public render() { + const { className, previousSearchResult, nextSearchResult } = this.props; + + const classes = classNames('searchButtons', className); + const hasPreviousSearchResult = !!previousSearchResult; + const hasNextSearchResult = !!nextSearchResult; + + return ( + + + + Previous + + + + + Next + + + + ); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_controls.tsx b/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_controls.tsx new file mode 100644 index 0000000000000..d61fde2aaa881 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_controls.tsx @@ -0,0 +1,63 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import classNames from 'classnames'; +import * as React from 'react'; + +import { LogEntryTime } from '../../../../common/log_entry'; +import { LogSearchButtons } from './log_search_buttons'; +import { LogSearchInput } from './log_search_input'; + +interface LogSearchControlsProps { + className?: string; + clearSearch: () => any; + isLoadingSearchResults: boolean; + previousSearchResult: LogEntryTime | null; + nextSearchResult: LogEntryTime | null; + jumpToTarget: (target: LogEntryTime) => any; + search: (query: string) => any; +} + +export class LogSearchControls extends React.PureComponent { + public render() { + const { + className, + clearSearch, + isLoadingSearchResults, + previousSearchResult, + nextSearchResult, + jumpToTarget, + search, + } = this.props; + + const classes = classNames('searchControls', className); + + return ( + + + + + + + + + ); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_input.tsx b/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_input.tsx new file mode 100644 index 0000000000000..95f4b7bdfc65b --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_search_controls/log_search_input.tsx @@ -0,0 +1,75 @@ +/* + * 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 { EuiFieldSearch } from '@elastic/eui'; +import classNames from 'classnames'; +import * as React from 'react'; +import styled from 'styled-components'; + +interface LogSearchInputProps { + className?: string; + isLoading: boolean; + onSearch: (query: string) => void; + onClear: () => void; +} + +interface LogSearchInputState { + query: string; +} + +export class LogSearchInput extends React.PureComponent { + public readonly state = { + query: '', + }; + + public handleSubmit: React.FormEventHandler = evt => { + evt.preventDefault(); + + const { query } = this.state; + + if (query === '') { + this.props.onClear(); + } else { + this.props.onSearch(this.state.query); + } + }; + + public handleChangeQuery: React.ChangeEventHandler = evt => { + this.setState({ + query: evt.target.value, + }); + }; + + public render() { + const { className, isLoading } = this.props; + const { query } = this.state; + + const classes = classNames('loggingSearchInput', className); + + return ( +
      + + + ); + } +} + +const PlainSearchField = styled(EuiFieldSearch)` + background: transparent; + box-shadow: none; + + &:focus { + box-shadow: inset 0 -2px 0 0 ${props => props.theme.eui.euiColorPrimary}; + } +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_statusbar.tsx b/x-pack/plugins/infra/public/components/logging/log_statusbar.tsx new file mode 100644 index 0000000000000..95749c62d0756 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_statusbar.tsx @@ -0,0 +1,23 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import styled from 'styled-components'; + +export const LogStatusbar = styled(EuiFlexGroup).attrs({ + alignItems: 'center', + gutterSize: 'none', + justifyContent: 'flexEnd', +})` + padding: ${props => props.theme.eui.euiSizeS}; + border-top: ${props => props.theme.eui.euiBorderThin}; + max-height: 48px; + min-height: 48px; + background-color: ${props => props.theme.eui.euiColorEmptyShade}; + flex-direction: row; +`; + +export const LogStatusbarItem = EuiFlexItem; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_scale_controls.tsx b/x-pack/plugins/infra/public/components/logging/log_text_scale_controls.tsx new file mode 100644 index 0000000000000..089142891a36e --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_scale_controls.tsx @@ -0,0 +1,41 @@ +/* + * 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 { EuiFormRow, EuiRadioGroup } from '@elastic/eui'; +import * as React from 'react'; + +import { getLabelOfTextScale, isTextScale, TextScale } from '../../../common/log_text_scale'; + +interface LogTextScaleControlsProps { + availableTextScales: TextScale[]; + textScale: TextScale; + setTextScale: (scale: TextScale) => any; +} + +export class LogTextScaleControls extends React.PureComponent { + public setTextScale = (textScale: string) => { + if (isTextScale(textScale)) { + this.props.setTextScale(textScale); + } + }; + + public render() { + const { availableTextScales, textScale } = this.props; + + return ( + + ({ + id: availableTextScale.toString(), + label: getLabelOfTextScale(availableTextScale), + }))} + idSelected={textScale} + onChange={this.setTextScale} + /> + + ); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/empty_view.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/empty_view.tsx new file mode 100644 index 0000000000000..d4f0a51a0bc7c --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/empty_view.tsx @@ -0,0 +1,31 @@ +/* + * 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 { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; +import * as React from 'react'; + +interface LogTextStreamEmptyViewProps { + reload: () => void; +} + +export class LogTextStreamEmptyView extends React.PureComponent { + public render() { + const { reload } = this.props; + + return ( + There are no log messages to display.} + titleSize="m" + body={

      Try adjusting your filter.

      } + actions={ + + Check for new data + + } + /> + ); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/index.ts b/x-pack/plugins/infra/public/components/logging/log_text_stream/index.ts new file mode 100644 index 0000000000000..77781b58a3ccd --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { ScrollableLogTextStreamView } from './scrollable_log_text_stream_view'; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/item.ts b/x-pack/plugins/infra/public/components/logging/log_text_stream/item.ts new file mode 100644 index 0000000000000..75ee65aa2c3e0 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/item.ts @@ -0,0 +1,47 @@ +/* + * 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 { bisector } from 'd3-array'; + +import { getLogEntryKey, LogEntry } from '../../../../common/log_entry'; +import { SearchResult } from '../../../../common/log_search_result'; +import { compareToTimeKey, TimeKey } from '../../../../common/time'; + +export type StreamItem = LogEntryStreamItem; + +export interface LogEntryStreamItem { + kind: 'logEntry'; + logEntry: LogEntry; + searchResult: SearchResult | undefined; +} + +export function getStreamItemTimeKey(item: StreamItem) { + switch (item.kind) { + case 'logEntry': + return getLogEntryKey(item.logEntry); + } +} + +export function getStreamItemId(item: StreamItem) { + const { time, tiebreaker, gid } = getStreamItemTimeKey(item); + + return `${time}:${tiebreaker}:${gid}`; +} + +export function parseStreamItemId(id: string) { + const idFragments = id.split(':'); + + return { + gid: idFragments.slice(2).join(':'), + tiebreaker: parseInt(idFragments[1], 10), + time: parseInt(idFragments[0], 10), + }; +} + +const streamItemTimeBisector = bisector(compareToTimeKey(getStreamItemTimeKey)); + +export const getStreamItemBeforeTimeKey = (streamItems: StreamItem[], key: TimeKey) => + streamItems[Math.min(streamItemTimeBisector.left(streamItems, key), streamItems.length - 1)]; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/item_date_field.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_date_field.tsx new file mode 100644 index 0000000000000..82f8057b08fce --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_date_field.tsx @@ -0,0 +1,64 @@ +/* + * 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 { darken } from 'polished'; +import * as React from 'react'; +import { css } from 'styled-components'; + +import { TextScale } from '../../../../common/log_text_scale'; +import { tintOrShade } from '../../../utils/styles'; +import { LogTextStreamItemField } from './item_field'; + +interface LogTextStreamItemDateFieldProps { + children: string; + hasHighlights: boolean; + isHovered: boolean; + scale: TextScale; +} + +export class LogTextStreamItemDateField extends React.PureComponent< + LogTextStreamItemDateFieldProps, + {} +> { + public render() { + const { children, hasHighlights, isHovered, scale } = this.props; + + return ( + + {children} + + ); + } +} + +const highlightedFieldStyle = css` + background-color: ${props => + tintOrShade(props.theme.eui.euiTextColor, props.theme.eui.euiColorSecondary, 0.15)}; + border-color: ${props => props.theme.eui.euiColorSecondary}; +`; + +const hoveredFieldStyle = css` + background-color: ${props => darken(0.05, props.theme.eui.euiColorHighlight)}; + border-color: ${props => darken(0.2, props.theme.eui.euiColorHighlight)}; + color: ${props => props.theme.eui.euiColorFullShade}; +`; + +const LogTextStreamItemDateFieldWrapper = LogTextStreamItemField.extend.attrs<{ + hasHighlights: boolean; + isHovered: boolean; +}>({})` + background-color: ${props => props.theme.eui.euiColorLightestShade}; + border-right: solid 2px ${props => props.theme.eui.euiColorLightShade}; + color: ${props => props.theme.eui.euiColorDarkShade}; + white-space: pre; + + ${props => (props.hasHighlights ? highlightedFieldStyle : '')}; + ${props => (props.isHovered ? hoveredFieldStyle : '')}; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/item_field.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_field.tsx new file mode 100644 index 0000000000000..c9d360fc116a7 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_field.tsx @@ -0,0 +1,23 @@ +/* + * 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 styled from 'styled-components'; + +import { switchProp } from '../../../utils/styles'; + +export const LogTextStreamItemField = styled.div.attrs<{ + scale?: 'small' | 'medium' | 'large'; +}>({})` + font-size: ${props => + switchProp('scale', { + large: props.theme.eui.euiFontSizeM, + medium: props.theme.eui.euiFontSizeS, + small: props.theme.eui.euiFontSizeXs, + [switchProp.default]: props.theme.eui.euiFontSize, + })}; + line-height: ${props => props.theme.eui.euiLineHeight}; + padding: 2px ${props => props.theme.eui.euiSize}; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/item_message_field.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_message_field.tsx new file mode 100644 index 0000000000000..1c411adaf4e1c --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_message_field.tsx @@ -0,0 +1,109 @@ +/* + * 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 { darken } from 'polished'; +import * as React from 'react'; +import styled, { css } from 'styled-components'; + +import { TextScale } from '../../../../common/log_text_scale'; +import { tintOrShade } from '../../../utils/styles'; +import { LogTextStreamItemField } from './item_field'; + +interface LogTextStreamItemMessageFieldProps { + children: string; + highlights: string[]; + isHovered: boolean; + isWrapped: boolean; + scale: TextScale; +} + +export class LogTextStreamItemMessageField extends React.PureComponent< + LogTextStreamItemMessageFieldProps, + {} +> { + public render() { + const { children, highlights, isHovered, isWrapped, scale } = this.props; + + const hasHighlights = highlights.length > 0; + const content = hasHighlights ? renderHighlightFragments(children, highlights) : children; + return ( + + {content} + + ); + } +} + +const renderHighlightFragments = (text: string, highlights: string[]): React.ReactNode[] => { + const renderedHighlights = highlights.reduce( + ({ lastFragmentEnd, renderedFragments }, highlight) => { + const fragmentStart = text.indexOf(highlight, lastFragmentEnd); + return { + lastFragmentEnd: fragmentStart + highlight.length, + renderedFragments: [ + ...renderedFragments, + text.slice(lastFragmentEnd, fragmentStart), + {highlight}, + ], + }; + }, + { + lastFragmentEnd: 0, + renderedFragments: [], + } as { + lastFragmentEnd: number; + renderedFragments: React.ReactNode[]; + } + ); + + return [...renderedHighlights.renderedFragments, text.slice(renderedHighlights.lastFragmentEnd)]; +}; + +const highlightedFieldStyle = css` + background-color: ${props => + tintOrShade(props.theme.eui.euiTextColor, props.theme.eui.euiColorSecondary, 0.15)}; +`; + +const hoveredFieldStyle = css` + background-color: ${props => darken(0.05, props.theme.eui.euiColorHighlight)}; +`; + +const wrappedFieldStyle = css` + overflow: visible; + white-space: pre-wrap; +`; + +const unwrappedFieldStyle = css` + overflow: hidden; + white-space: pre; +`; + +const LogTextStreamItemMessageFieldWrapper = LogTextStreamItemField.extend.attrs<{ + hasHighlights: boolean; + isHovered: boolean; + isWrapped?: boolean; +}>({})` + flex-grow: 1; + text-overflow: ellipsis; + background-color: ${props => props.theme.eui.euiColorEmptyShade}; + + ${props => (props.hasHighlights ? highlightedFieldStyle : '')}; + ${props => (props.isHovered ? hoveredFieldStyle : '')}; + ${props => (props.isWrapped ? wrappedFieldStyle : unwrappedFieldStyle)}; +`; + +const HighlightSpan = styled.span` + display: inline-block; + padding: 0 ${props => props.theme.eui.euiSizeXs}; + background-color: ${props => props.theme.eui.euiColorSecondary}; + color: ${props => props.theme.eui.euiColorGhost}; + font-weight: ${props => props.theme.eui.euiFontWeightMedium}; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/item_view.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_view.tsx new file mode 100644 index 0000000000000..c4a75771fa5a0 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/item_view.tsx @@ -0,0 +1,34 @@ +/* + * 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 * as React from 'react'; + +import { TextScale } from '../../../../common/log_text_scale'; +import { StreamItem } from './item'; +import { LogTextStreamLogEntryItemView } from './log_entry_item_view'; + +interface StreamItemProps { + item: StreamItem; + scale: TextScale; + wrap: boolean; +} + +export const LogTextStreamItemView = React.forwardRef( + ({ item, scale, wrap }, ref) => { + switch (item.kind) { + case 'logEntry': + return ( + + ); + } + } +); diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/loading_item_view.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/loading_item_view.tsx new file mode 100644 index 0000000000000..6b89004d97f56 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/loading_item_view.tsx @@ -0,0 +1,126 @@ +/* + * 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 { EuiButtonEmpty, EuiIcon, EuiProgress, EuiText } from '@elastic/eui'; +import * as React from 'react'; +import styled from 'styled-components'; + +import { RelativeTime } from './relative_time'; + +interface LogTextStreamLoadingItemViewProps { + alignment: 'top' | 'bottom'; + className?: string; + hasMore: boolean; + isLoading: boolean; + isStreaming: boolean; + lastStreamingUpdate: number | null; + onLoadMore?: () => void; +} + +export class LogTextStreamLoadingItemView extends React.PureComponent< + LogTextStreamLoadingItemViewProps, + {} +> { + public render() { + const { + alignment, + className, + hasMore, + isLoading, + isStreaming, + lastStreamingUpdate, + onLoadMore, + } = this.props; + + if (isStreaming) { + return ( + + + Streaming new entries + + {lastStreamingUpdate ? ( + + + last updated{' '} + ago + + + ) : null} + + ); + } else if (isLoading) { + return ( + + Loading additional entries + + ); + } else if (!hasMore) { + return ( + + No additional entries found + {onLoadMore ? ( + + Load again + + ) : null} + + ); + } else { + return null; + } + } +} + +interface ProgressEntryProps { + alignment: 'top' | 'bottom'; + className?: string; + color: 'subdued' | 'primary'; + isLoading: boolean; +} + +// tslint:disable-next-line:max-classes-per-file +class ProgressEntry extends React.PureComponent { + public render() { + const { alignment, children, className, color, isLoading } = this.props; + + return ( + + + {children} + + ); + } +} + +const ProgressEntryWrapper = styled.div` + align-items: center; + display: flex; + min-height: ${props => props.theme.eui.euiSizeXxl}; + position: relative; +`; + +const ProgressMessage = styled.div` + padding: 8px 16px; +`; + +const AlignedProgress = styled(EuiProgress).attrs<{ + alignment: 'top' | 'bottom'; +}>({})` + top: ${props => (props.alignment === 'top' ? 0 : 'initial')}; + bottom: ${props => (props.alignment === 'top' ? 'initial' : 0)}; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/log_entry_item_view.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/log_entry_item_view.tsx new file mode 100644 index 0000000000000..2e910cad56785 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/log_entry_item_view.tsx @@ -0,0 +1,93 @@ +/* + * 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 * as React from 'react'; +import styled from 'styled-components'; + +import { LogEntry } from '../../../../common/log_entry'; +import { SearchResult } from '../../../../common/log_search_result'; +import { TextScale } from '../../../../common/log_text_scale'; +import { formatTime } from '../../../../common/time'; +import { LogTextStreamItemDateField } from './item_date_field'; +import { LogTextStreamItemMessageField } from './item_message_field'; + +interface LogTextStreamLogEntryItemViewProps { + boundingBoxRef?: React.Ref; + logEntry: LogEntry; + searchResult?: SearchResult; + scale: TextScale; + wrap: boolean; +} + +interface LogTextStreamLogEntryItemViewState { + isHovered: boolean; +} + +export class LogTextStreamLogEntryItemView extends React.PureComponent< + LogTextStreamLogEntryItemViewProps, + LogTextStreamLogEntryItemViewState +> { + public readonly state = { + isHovered: false, + }; + + public handleMouseEnter: React.MouseEventHandler = () => { + this.setState({ + isHovered: true, + }); + }; + + public handleMouseLeave: React.MouseEventHandler = () => { + this.setState({ + isHovered: false, + }); + }; + + public render() { + const { boundingBoxRef, logEntry, scale, searchResult, wrap } = this.props; + const { isHovered } = this.state; + + return ( + + + {formatTime(logEntry.fields.time)} + + + {logEntry.fields.message} + + + ); + } +} + +const LogTextStreamLogEntryItemDiv = styled.div` + font-family: ${props => props.theme.eui.euiCodeFontFamily}; + font-size: ${props => props.theme.eui.euiFontSize}; + line-height: ${props => props.theme.eui.euiLineHeight}; + color: ${props => props.theme.eui.euiTextColor}; + overflow: hidden; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: stretch; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/log_entry_stream_item_view_.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/log_entry_stream_item_view_.tsx new file mode 100644 index 0000000000000..98bc10a6240d9 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/log_entry_stream_item_view_.tsx @@ -0,0 +1,31 @@ +/* + * 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 * as React from 'react'; +import styled from 'styled-components'; + +import { LogEntry } from '../../../../common/log_entry'; + +interface LogEntryStreamItemViewProps { + boundingBoxRef?: React.Ref<{}>; + item: LogEntry; +} + +export class LogEntryStreamItemView extends React.PureComponent { + public render() { + const { boundingBoxRef, item } = this.props; + + return ( + // @ts-ignore: silence error until styled-components supports React.RefObject + {JSON.stringify(item)} + ); + } +} + +const LogEntryDiv = styled.div` + border-top: 1px solid red; + border-bottom: 1px solid green; +`; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/measurable_item_view.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/measurable_item_view.tsx new file mode 100644 index 0000000000000..4ade3be2bd872 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/measurable_item_view.tsx @@ -0,0 +1,58 @@ +/* + * 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 * as React from 'react'; + +export interface Rect { + top: number; + left: number; + width: number; + height: number; +} + +interface MeasureableProps { + children: (measureRef: React.Ref) => React.ReactNode; + register: (key: any, element: MeasurableItemView | null) => void; + registrationKey: any; +} + +export class MeasurableItemView extends React.PureComponent { + public childRef = React.createRef(); + + public getOffsetRect = (): Rect | null => { + const currentElement = this.childRef.current; + + if (currentElement === null) { + return null; + } + + return { + height: currentElement.offsetHeight, + left: currentElement.offsetLeft, + top: currentElement.offsetTop, + width: currentElement.offsetWidth, + }; + }; + + public componentDidMount() { + this.props.register(this.props.registrationKey, this); + } + + public componentWillUnmount() { + this.props.register(this.props.registrationKey, null); + } + + public componentDidUpdate(prevProps: MeasureableProps) { + if (prevProps.registrationKey !== this.props.registrationKey) { + this.props.register(prevProps.registrationKey, null); + this.props.register(this.props.registrationKey, this); + } + } + + public render() { + return this.props.children(this.childRef); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/relative_time.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/relative_time.tsx new file mode 100644 index 0000000000000..247b444a3b6a6 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/relative_time.tsx @@ -0,0 +1,77 @@ +/* + * 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 * as React from 'react'; + +import { decomposeIntoUnits, getLabelOfScale, TimeUnit } from '../../../../common/time'; + +interface RelativeTimeProps { + time: number; + refreshInterval?: number; +} + +interface RelativeTimeState { + currentTime: number; + timeoutId: number | null; +} + +export class RelativeTime extends React.Component { + public readonly state = { + currentTime: Date.now(), + timeoutId: null, + }; + + public updateCurrentTimeEvery = (refreshInterval: number) => { + const nextTimeoutId = window.setTimeout( + this.updateCurrentTimeEvery.bind(this, refreshInterval), + refreshInterval + ); + + this.setState({ + currentTime: Date.now(), + timeoutId: nextTimeoutId, + }); + }; + + public cancelUpdate = () => { + const { timeoutId } = this.state; + + if (timeoutId) { + window.clearTimeout(timeoutId); + this.setState({ + timeoutId: null, + }); + } + }; + + public componentDidMount() { + const { refreshInterval } = this.props; + + if (refreshInterval && refreshInterval > 0) { + this.updateCurrentTimeEvery(refreshInterval); + } + } + + public componentWillUnmount() { + this.cancelUpdate(); + } + + public render() { + const { time } = this.props; + const { currentTime } = this.state; + const timeDifference = Math.abs(currentTime - time); + + const timeFragments = decomposeIntoUnits(timeDifference, unitThresholds); + + if (timeFragments.length === 0) { + return '0s'; + } else { + return timeFragments.map(getLabelOfScale).join(' '); + } + } +} + +const unitThresholds = [TimeUnit.Day, TimeUnit.Hour, TimeUnit.Minute, TimeUnit.Second]; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/scrollable_log_text_stream_view.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/scrollable_log_text_stream_view.tsx new file mode 100644 index 0000000000000..17a80f92b9f8a --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/scrollable_log_text_stream_view.tsx @@ -0,0 +1,192 @@ +/* + * 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 * as React from 'react'; + +import { TextScale } from '../../../../common/log_text_scale'; +import { TimeKey } from '../../../../common/time'; +import { callWithoutRepeats } from '../../../utils/handlers'; +import { InfraLoadingPanel } from '../../loading'; +import { LogTextStreamEmptyView } from './empty_view'; +import { getStreamItemBeforeTimeKey, getStreamItemId, parseStreamItemId, StreamItem } from './item'; +import { LogTextStreamItemView } from './item_view'; +import { LogTextStreamLoadingItemView } from './loading_item_view'; +import { MeasurableItemView } from './measurable_item_view'; +import { VerticalScrollPanel } from './vertical_scroll_panel'; + +interface ScrollableLogTextStreamViewProps { + height: number; + width: number; + items: StreamItem[]; + scale: TextScale; + wrap: boolean; + isReloading: boolean; + isLoadingMore: boolean; + hasMoreBeforeStart: boolean; + hasMoreAfterEnd: boolean; + isStreaming: boolean; + lastLoadedTime: number | null; + target: TimeKey | null; + jumpToTarget: (target: TimeKey) => any; + reportVisibleInterval: ( + params: { + pagesBeforeStart: number; + pagesAfterEnd: number; + startKey: TimeKey | null; + middleKey: TimeKey | null; + endKey: TimeKey | null; + } + ) => any; + loadNewerItems: () => void; +} + +interface ScrollableLogTextStreamViewState { + target: TimeKey | null; + targetId: string | null; +} + +export class ScrollableLogTextStreamView extends React.PureComponent< + ScrollableLogTextStreamViewProps, + ScrollableLogTextStreamViewState +> { + public static getDerivedStateFromProps( + nextProps: ScrollableLogTextStreamViewProps, + prevState: ScrollableLogTextStreamViewState + ): Partial | null { + const hasNewTarget = nextProps.target && nextProps.target !== prevState.target; + const hasItems = nextProps.items.length > 0; + + if (nextProps.isStreaming && hasItems) { + return { + target: nextProps.target, + targetId: getStreamItemId(nextProps.items[nextProps.items.length - 1]), + }; + } else if (hasNewTarget && hasItems) { + return { + target: nextProps.target, + targetId: getStreamItemId(getStreamItemBeforeTimeKey(nextProps.items, nextProps.target!)), + }; + } else if (!nextProps.target || !hasItems) { + return { + target: null, + targetId: null, + }; + } + + return null; + } + + public readonly state = { + target: null, + targetId: null, + }; + + public render() { + const { + items, + height, + width, + scale, + wrap, + isReloading, + isLoadingMore, + hasMoreBeforeStart, + hasMoreAfterEnd, + isStreaming, + lastLoadedTime, + } = this.props; + const { targetId } = this.state; + const hasItems = items.length > 0; + if (isReloading && !hasItems) { + return ; + } else if (!hasItems) { + return ; + } else { + return ( + + {registerChild => ( + <> + + {items.map(item => ( + + {measureRef => ( + + )} + + ))} + + + )} + + ); + } + } + + private handleReload = () => { + const { jumpToTarget, target } = this.props; + + if (target) { + jumpToTarget(target); + } + }; + + private handleLoadNewerItems = () => { + const { loadNewerItems } = this.props; + + if (loadNewerItems) { + loadNewerItems(); + } + }; + + // this is actually a method but not recognized as such + // tslint:disable-next-line:member-ordering + private handleVisibleChildrenChange = callWithoutRepeats( + ({ + topChild, + middleChild, + bottomChild, + pagesAbove, + pagesBelow, + }: { + topChild: string; + middleChild: string; + bottomChild: string; + pagesAbove: number; + pagesBelow: number; + }) => { + this.props.reportVisibleInterval({ + endKey: parseStreamItemId(bottomChild), + middleKey: parseStreamItemId(middleChild), + pagesAfterEnd: pagesBelow, + pagesBeforeStart: pagesAbove, + startKey: parseStreamItemId(topChild), + }); + } + ); +} diff --git a/x-pack/plugins/infra/public/components/logging/log_text_stream/vertical_scroll_panel.tsx b/x-pack/plugins/infra/public/components/logging/log_text_stream/vertical_scroll_panel.tsx new file mode 100644 index 0000000000000..db0a6bd29f1d9 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_stream/vertical_scroll_panel.tsx @@ -0,0 +1,274 @@ +/* + * 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 { bisector } from 'd3-array'; +import sortBy from 'lodash/fp/sortBy'; +import throttle from 'lodash/fp/throttle'; +import * as React from 'react'; +import styled from 'styled-components'; + +import { Rect } from './measurable_item_view'; + +interface VerticalScrollPanelProps { + children?: ( + registerChild: (key: Child, element: MeasurableChild | null) => void + ) => React.ReactNode; + onVisibleChildrenChange?: ( + visibleChildren: { + topChild: Child; + middleChild: Child; + bottomChild: Child; + pagesAbove: number; + pagesBelow: number; + } + ) => void; + target: Child | undefined; + height: number; + width: number; + hideScrollbar?: boolean; +} + +interface VerticalScrollPanelSnapshot { + scrollTarget: Child | undefined; + scrollOffset: number | undefined; +} + +interface MeasurableChild { + getOffsetRect(): Rect | null; +} + +const SCROLL_THROTTLE_INTERVAL = 250; +const ASSUMED_SCROLLBAR_WIDTH = 20; + +export class VerticalScrollPanel extends React.PureComponent< + VerticalScrollPanelProps +> { + public static defaultProps: Partial> = { + hideScrollbar: false, + }; + + public scrollRef = React.createRef(); + public childRefs = new Map(); + public childDimensions = new Map(); + + public handleScroll: React.UIEventHandler = throttle( + SCROLL_THROTTLE_INTERVAL, + () => { + this.reportVisibleChildren(); + } + ); + + public registerChild = (key: any, element: MeasurableChild | null) => { + if (element === null) { + this.childRefs.delete(key); + } else { + this.childRefs.set(key, element); + } + }; + + public updateChildDimensions = () => { + this.childDimensions = new Map( + sortDimensionsByTop( + Array.from(this.childRefs.entries()).reduce( + (accumulatedDimensions, [key, child]) => { + const currentOffsetRect = child.getOffsetRect(); + + if (currentOffsetRect !== null) { + accumulatedDimensions.push([key, currentOffsetRect]); + } + + return accumulatedDimensions; + }, + [] as Array<[any, Rect]> + ) + ) + ); + }; + + public getVisibleChildren = () => { + if (this.scrollRef.current === null || this.childDimensions.size <= 0) { + return; + } + + const { + childDimensions, + props: { height: scrollViewHeight }, + scrollRef: { + current: { scrollTop }, + }, + } = this; + + return getVisibleChildren(Array.from(childDimensions.entries()), scrollViewHeight, scrollTop); + }; + + public getScrollPosition = () => { + if (this.scrollRef.current === null) { + return; + } + + const { + props: { height: scrollViewHeight }, + scrollRef: { + current: { scrollHeight, scrollTop }, + }, + } = this; + + return { + pagesAbove: scrollTop / scrollViewHeight, + pagesBelow: (scrollHeight - scrollTop - scrollViewHeight) / scrollViewHeight, + }; + }; + + public reportVisibleChildren = () => { + const { onVisibleChildrenChange } = this.props; + const visibleChildren = this.getVisibleChildren(); + const scrollPosition = this.getScrollPosition(); + + if (!visibleChildren || !scrollPosition || typeof onVisibleChildrenChange !== 'function') { + return; + } + + onVisibleChildrenChange({ + bottomChild: visibleChildren.bottomChild, + middleChild: visibleChildren.middleChild, + topChild: visibleChildren.topChild, + ...scrollPosition, + }); + }; + + public centerTarget = (target: Child, offset?: number) => { + const { + props: { height: scrollViewHeight }, + childDimensions, + scrollRef, + } = this; + + if (scrollRef.current === null || !target || childDimensions.size <= 0) { + return; + } + + const targetDimensions = childDimensions.get(target); + + if (targetDimensions) { + const targetOffset = typeof offset === 'undefined' ? targetDimensions.height / 2 : offset; + scrollRef.current.scrollTop = targetDimensions.top + targetOffset - scrollViewHeight / 2; + } + }; + + public handleUpdatedChildren = (target: Child | undefined, offset: number | undefined) => { + this.updateChildDimensions(); + if (!!target) { + this.centerTarget(target, offset); + } + this.reportVisibleChildren(); + }; + + public componentDidMount() { + this.handleUpdatedChildren(this.props.target, undefined); + } + + public getSnapshotBeforeUpdate( + prevProps: VerticalScrollPanelProps + ): VerticalScrollPanelSnapshot { + if (prevProps.target !== this.props.target && this.props.target) { + return { + scrollOffset: undefined, + scrollTarget: this.props.target, + }; + } else { + const visibleChildren = this.getVisibleChildren(); + + if (visibleChildren) { + return { + scrollOffset: visibleChildren.middleChildOffset, + scrollTarget: visibleChildren.middleChild, + }; + } + } + + return { + scrollOffset: undefined, + scrollTarget: undefined, + }; + } + + public componentDidUpdate( + prevProps: VerticalScrollPanelProps, + prevState: {}, + snapshot: VerticalScrollPanelSnapshot + ) { + this.handleUpdatedChildren(snapshot.scrollTarget, snapshot.scrollOffset); + } + + public componentWillUnmount() { + this.childRefs.clear(); + } + + public render() { + const { children, height, width, hideScrollbar } = this.props; + const scrollbarOffset = hideScrollbar ? ASSUMED_SCROLLBAR_WIDTH : 0; + + return ( + + {typeof children === 'function' ? children(this.registerChild) : null} + + ); + } +} + +const ScrollPanelWrapper = styled.div.attrs<{ scrollbarOffset?: number }>({})` + overflow-x: hidden; + overflow-y: scroll; + position: relative; + padding-right: ${props => props.scrollbarOffset || 0}px; + + & * { + overflow-anchor: none; + } +`; + +const getVisibleChildren = ( + childDimensions: Array<[Child, Rect]>, + scrollViewHeight: number, + scrollTop: number +) => { + const middleChildIndex = Math.min( + getChildIndexBefore(childDimensions, scrollTop + scrollViewHeight / 2), + childDimensions.length - 1 + ); + + const topChildIndex = Math.min( + getChildIndexBefore(childDimensions, scrollTop, 0, middleChildIndex), + childDimensions.length - 1 + ); + + const bottomChildIndex = Math.min( + getChildIndexBefore(childDimensions, scrollTop + scrollViewHeight, middleChildIndex), + childDimensions.length - 1 + ); + + return { + bottomChild: childDimensions[bottomChildIndex][0], + bottomChildOffset: childDimensions[bottomChildIndex][1].top - scrollTop - scrollViewHeight, + middleChild: childDimensions[middleChildIndex][0], + middleChildOffset: scrollTop + scrollViewHeight / 2 - childDimensions[middleChildIndex][1].top, + topChild: childDimensions[topChildIndex][0], + topChildOffset: childDimensions[topChildIndex][1].top - scrollTop, + }; +}; + +const sortDimensionsByTop = sortBy<[any, Rect]>('1.top'); + +const getChildIndexBefore = bisector<[any, Rect], number>(([key, rect]) => rect.top + rect.height) + .left; diff --git a/x-pack/plugins/infra/public/components/logging/log_text_wrap_controls.tsx b/x-pack/plugins/infra/public/components/logging/log_text_wrap_controls.tsx new file mode 100644 index 0000000000000..7500780961e74 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_text_wrap_controls.tsx @@ -0,0 +1,29 @@ +/* + * 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 { EuiFormRow, EuiSwitch } from '@elastic/eui'; +import * as React from 'react'; + +interface LogTextWrapControlsProps { + wrap: boolean; + setTextWrap: (scale: boolean) => any; +} + +export class LogTextWrapControls extends React.PureComponent { + public toggleWrap = () => { + this.props.setTextWrap(!this.props.wrap); + }; + + public render() { + const { wrap } = this.props; + + return ( + + + + ); + } +} diff --git a/x-pack/plugins/infra/public/components/logging/log_time_controls.tsx b/x-pack/plugins/infra/public/components/logging/log_time_controls.tsx new file mode 100644 index 0000000000000..9d719168bcb39 --- /dev/null +++ b/x-pack/plugins/infra/public/components/logging/log_time_controls.tsx @@ -0,0 +1,84 @@ +/* + * 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 { EuiDatePicker, EuiFilterButton, EuiFilterGroup } from '@elastic/eui'; +import moment, { Moment } from 'moment'; +import React from 'react'; +import styled from 'styled-components'; + +const noop = () => undefined; + +interface LogTimeControlsProps { + currentTime: number | null; + startLiveStreaming: (interval: number) => any; + stopLiveStreaming: () => any; + isLiveStreaming: boolean; + jumpToTime: (time: number) => any; +} + +export class LogTimeControls extends React.PureComponent { + public render() { + const { currentTime, isLiveStreaming } = this.props; + + const currentMoment = currentTime ? moment(currentTime) : null; + + if (isLiveStreaming) { + return ( + + + + + + Stop streaming + + + ); + } else { + return ( + + + + + + Stream live + + + ); + } + } + + private handleChangeDate = (date: Moment | null) => { + if (date !== null) { + this.props.jumpToTime(date.valueOf()); + } + }; + + private startLiveStreaming = () => { + this.props.startLiveStreaming(5000); + }; + + private stopLiveStreaming = () => { + this.props.stopLiveStreaming(); + }; +} + +const InlineWrapper = styled.div` + display: inline-block; +`; diff --git a/x-pack/plugins/infra/public/components/metrics/index.tsx b/x-pack/plugins/infra/public/components/metrics/index.tsx new file mode 100644 index 0000000000000..c9475ef4a48f0 --- /dev/null +++ b/x-pack/plugins/infra/public/components/metrics/index.tsx @@ -0,0 +1,84 @@ +/* + * 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 { EuiPageContentBody, EuiTitle } from '@elastic/eui'; +import React from 'react'; + +import { InfraMetricData } from '../../../common/graphql/types'; +import { InfraMetricLayout, InfraMetricLayoutSection } from '../../pages/metrics/layouts/types'; +import { metricTimeActions } from '../../store'; +import { InfraLoadingPanel } from '../loading'; +import { Section } from './section'; + +interface Props { + metrics: InfraMetricData[]; + layouts: InfraMetricLayout[]; + loading: boolean; + nodeName: string; + onChangeRangeTime?: (time: metricTimeActions.MetricRangeTimeState) => void; +} + +interface State { + crosshairValue: number | null; +} + +export class Metrics extends React.PureComponent { + public readonly state = { + crosshairValue: null, + }; + + public render() { + if (this.props.loading) { + return ( + + ); + } + return {this.props.layouts.map(this.renderLayout)}; + } + + private renderLayout = (layout: InfraMetricLayout) => { + return ( + + + +

      {`${layout.label} Overview`}

      +
      +
      + {layout.sections.map(this.renderSection(layout))} +
      + ); + }; + + private renderSection = (layout: InfraMetricLayout) => (section: InfraMetricLayoutSection) => { + let sectionProps = {}; + if (section.type === 'chart') { + const { onChangeRangeTime } = this.props; + sectionProps = { + onChangeRangeTime, + crosshairValue: this.state.crosshairValue, + onCrosshairUpdate: this.onCrosshairUpdate, + }; + } + return ( +
      + ); + }; + + private onCrosshairUpdate = (crosshairValue: number) => { + this.setState({ + crosshairValue, + }); + }; +} diff --git a/x-pack/plugins/infra/public/components/metrics/section.tsx b/x-pack/plugins/infra/public/components/metrics/section.tsx new file mode 100644 index 0000000000000..89170d053b3a9 --- /dev/null +++ b/x-pack/plugins/infra/public/components/metrics/section.tsx @@ -0,0 +1,38 @@ +/* + * 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 React from 'react'; +import { InfraMetricData } from '../../../common/graphql/types'; +import { InfraMetricLayoutSection } from '../../pages/metrics/layouts/types'; +import { metricTimeActions } from '../../store'; +import { sections } from './sections'; + +interface Props { + section: InfraMetricLayoutSection; + metrics: InfraMetricData[]; + onChangeRangeTime?: (time: metricTimeActions.MetricRangeTimeState) => void; + crosshairValue?: number; + onCrosshairUpdate?: (crosshairValue: number) => void; +} + +export class Section extends React.PureComponent { + public render() { + const metric = this.props.metrics.find(m => m.id === this.props.section.id); + if (!metric) { + return null; + } + let sectionProps = {}; + if (this.props.section.type === 'chart') { + sectionProps = { + onChangeRangeTime: this.props.onChangeRangeTime, + crosshairValue: this.props.crosshairValue, + onCrosshairUpdate: this.props.onCrosshairUpdate, + }; + } + const Component = sections[this.props.section.type]; + return ; + } +} diff --git a/x-pack/plugins/infra/public/components/metrics/sections/chart_section.tsx b/x-pack/plugins/infra/public/components/metrics/sections/chart_section.tsx new file mode 100644 index 0000000000000..290656b707d78 --- /dev/null +++ b/x-pack/plugins/infra/public/components/metrics/sections/chart_section.tsx @@ -0,0 +1,236 @@ +/* + * 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 { EuiIcon, EuiPageContentBody, EuiTitle } from '@elastic/eui'; +import { + EuiAreaSeries, + EuiBarSeries, + EuiCrosshairX, + EuiDataPoint, + EuiLineSeries, + EuiSeriesChart, + EuiSeriesChartProps, + EuiSeriesProps, + EuiXAxis, + EuiYAxis, +} from '@elastic/eui/lib/experimental'; +import Color from 'color'; +import { get } from 'lodash'; +import moment from 'moment'; +import React, { ReactText } from 'react'; +import { InfraDataSeries, InfraMetricData } from '../../../../common/graphql/types'; +import { InfraFormatter, InfraFormatterType } from '../../../lib/lib'; +import { + InfraMetricLayoutSection, + InfraMetricLayoutVisualizationType, +} from '../../../pages/metrics/layouts/types'; +import { metricTimeActions } from '../../../store'; +import { createFormatter } from '../../../utils/formatters'; + +const MARGIN_LEFT = 60; +const chartComponentsByType = { + [InfraMetricLayoutVisualizationType.line]: EuiLineSeries, + [InfraMetricLayoutVisualizationType.area]: EuiAreaSeries, + [InfraMetricLayoutVisualizationType.bar]: EuiBarSeries, +}; + +interface Props { + section: InfraMetricLayoutSection; + metric: InfraMetricData; + onChangeRangeTime?: (time: metricTimeActions.MetricRangeTimeState) => void; + crosshairValue?: number; + onCrosshairUpdate?: (crosshairValue: number) => void; +} + +const isInfraMetricLayoutVisualizationType = ( + subject: any +): subject is InfraMetricLayoutVisualizationType => { + return InfraMetricLayoutVisualizationType[subject] != null; +}; + +const getChartName = (section: InfraMetricLayoutSection, seriesId: string) => { + return get(section, ['visConfig', 'seriesOverrides', seriesId, 'name'], seriesId); +}; + +const getChartColor = (section: InfraMetricLayoutSection, seriesId: string): string | undefined => { + const color = new Color( + get(section, ['visConfig', 'seriesOverrides', seriesId, 'color'], '#999') + ); + return color.hex().toString(); +}; + +const getChartType = (section: InfraMetricLayoutSection, seriesId: string) => { + const value = get(section, ['visConfig', 'type']); + const overrideValue = get(section, ['visConfig', 'seriesOverrides', seriesId, 'type']); + if (isInfraMetricLayoutVisualizationType(overrideValue)) { + return overrideValue; + } + if (isInfraMetricLayoutVisualizationType(value)) { + return value; + } + return InfraMetricLayoutVisualizationType.line; +}; + +const getFormatter = (formatter: InfraFormatterType, formatterTemplate: string) => ( + val: ReactText +) => { + if (val == null) { + return ''; + } + return createFormatter(formatter, formatterTemplate)(val); +}; + +const titleFormatter = (dataPoints: EuiDataPoint[]) => { + if (dataPoints.length > 0) { + const [firstDataPoint] = dataPoints; + const { originalValues } = firstDataPoint; + return { + title: , + value: moment(originalValues.x).format('lll'), + }; + } +}; + +const createItemsFormatter = ( + formatter: InfraFormatter, + labels: string[], + seriesColors: string[] +) => (dataPoints: EuiDataPoint[]) => { + return dataPoints.map(d => { + return { + title: ( + + + {labels[d.seriesIndex]} + + ), + value: formatter(d.y), + }; + }); +}; + +const seriesHasLessThen2DataPoints = (series: InfraDataSeries): boolean => { + return series.data.length < 2; +}; + +export class ChartSection extends React.PureComponent { + public render() { + const { crosshairValue, section, metric, onCrosshairUpdate } = this.props; + const { visConfig } = section; + const crossHairProps = { + crosshairValue, + onCrosshairUpdate, + }; + const chartProps: EuiSeriesChartProps = { + xType: 'time', + showCrosshair: false, + showDefaultAxis: false, + enableSelectionBrush: true, + onSelectionBrushEnd: this.handleSelectionBrushEnd, + }; + const stacked = visConfig && visConfig.stacked; + if (stacked) { + chartProps.stackBy = 'y'; + } + const bounds = visConfig && visConfig.bounds; + if (bounds) { + chartProps.yDomain = [bounds.min, bounds.max]; + } + if (!metric) { + chartProps.statusText = 'Missing data'; + } + if (metric.series.some(seriesHasLessThen2DataPoints)) { + chartProps.statusText = + 'Not enough data points to render chart, try increasing the time range.'; + } + const formatter = get(visConfig, 'formatter', InfraFormatterType.number); + const formatterTemplate = get(visConfig, 'formatterTemplate', '{{value}}'); + const formatterFunction = getFormatter(formatter, formatterTemplate); + const seriesLabels = get(metric, 'series', [] as InfraDataSeries[]).map(s => + getChartName(section, s.id) + ); + const seriesColors = get(metric, 'series', [] as InfraDataSeries[]).map( + s => getChartColor(section, s.id) || '' + ); + const itemsFormatter = createItemsFormatter(formatterFunction, seriesLabels, seriesColors); + return ( + + +

      {section.label}

      +
      +
      + + + + + {metric && + metric.series.map(series => { + if (!series || series.data.length < 2) { + return null; + } + const data = series.data.map(d => { + return { x: d.timestamp, y: d.value || 0, y0: 0 }; + }); + const chartType = getChartType(section, series.id); + const name = getChartName(section, series.id); + const seriesProps: EuiSeriesProps = { + data, + name, + lineSize: 2, + }; + const color = getChartColor(section, series.id); + if (color) { + seriesProps.color = color; + } + const EuiChartComponent = chartComponentsByType[chartType]; + return ( + + ); + })} + +
      +
      + ); + } + + private handleSelectionBrushEnd = (area: Area) => { + const { onChangeRangeTime } = this.props; + const { startX, endX } = area.domainArea; + if (onChangeRangeTime) { + onChangeRangeTime({ + to: endX.valueOf(), + from: startX.valueOf(), + } as metricTimeActions.MetricRangeTimeState); + } + }; +} + +interface DomainArea { + startX: moment.Moment; + endX: moment.Moment; + startY: number; + endY: number; +} + +interface DrawArea { + x0: number; + x1: number; + y0: number; + y1: number; +} + +interface Area { + domainArea: DomainArea; + drawArea: DrawArea; +} diff --git a/x-pack/plugins/infra/public/components/metrics/sections/gauges_section.tsx b/x-pack/plugins/infra/public/components/metrics/sections/gauges_section.tsx new file mode 100644 index 0000000000000..af58fe80230d4 --- /dev/null +++ b/x-pack/plugins/infra/public/components/metrics/sections/gauges_section.tsx @@ -0,0 +1,103 @@ +/* + * 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 { + EuiFlexItem, + EuiPageContentBody, + EuiPanel, + EuiProgress, + EuiSpacer, + EuiText, + EuiTitle, +} from '@elastic/eui'; +import { get, last, max } from 'lodash'; +import React, { ReactText } from 'react'; +import styled from 'styled-components'; +import { InfraMetricData } from '../../../../common/graphql/types'; +import { InfraFormatterType } from '../../../lib/lib'; +import { InfraMetricLayoutSection } from '../../../pages/metrics/layouts/types'; +import { createFormatter } from '../../../utils/formatters'; + +interface Props { + section: InfraMetricLayoutSection; + metric: InfraMetricData; +} + +const getFormatter = (section: InfraMetricLayoutSection, seriesId: string) => (val: ReactText) => { + if (val == null) { + return ''; + } + const defaultFormatter = get(section, ['visConfig', 'formatter'], InfraFormatterType.number); + const defaultFormatterTemplate = get(section, ['visConfig', 'formatterTemplate'], '{{value}}'); + const formatter = get( + section, + ['visConfig', 'seriesOverrides', seriesId, 'formatter'], + defaultFormatter + ); + const formatterTemplate = get( + section, + ['visConfig', 'seriesOverrides', seriesId, 'formatterTemplate'], + defaultFormatterTemplate + ); + return createFormatter(formatter, formatterTemplate)(val); +}; + +export class GaugesSection extends React.PureComponent { + public render() { + const { metric, section } = this.props; + return ( + + + + {metric.series.map(series => { + const lastDataPoint = last(series.data); + if (!lastDataPoint) { + return null; + } + const formatter = getFormatter(section, series.id); + const value = formatter(lastDataPoint.value || 0); + const name = get( + section, + ['visConfig', 'seriesOverrides', series.id, 'name'], + series.id + ); + const dataMax = max(series.data.map(d => d.value || 0)); + const gaugeMax = get( + section, + ['visConfig', 'seriesOverrides', series.id, 'gaugeMax'], + dataMax + ); + return ( + + + + {name} + + +

      {value}

      +
      + +
      +
      + ); + })} +
      + +
      + ); + } +} + +const GroupBox = styled.div` + display: flex; + flex-flow: row wrap; + justify-content: space-evenly; +`; diff --git a/x-pack/plugins/infra/public/components/metrics/sections/index.ts b/x-pack/plugins/infra/public/components/metrics/sections/index.ts new file mode 100644 index 0000000000000..7c12ff7520566 --- /dev/null +++ b/x-pack/plugins/infra/public/components/metrics/sections/index.ts @@ -0,0 +1,14 @@ +/* + * 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 { InfraMetricLayoutSectionType } from '../../../pages/metrics/layouts/types'; +import { ChartSection } from './chart_section'; +import { GaugesSection } from './gauges_section'; + +export const sections = { + [InfraMetricLayoutSectionType.chart]: ChartSection, + [InfraMetricLayoutSectionType.gauges]: GaugesSection, +}; diff --git a/x-pack/plugins/infra/public/components/metrics/time_controls.tsx b/x-pack/plugins/infra/public/components/metrics/time_controls.tsx new file mode 100644 index 0000000000000..f9209fbb16ccd --- /dev/null +++ b/x-pack/plugins/infra/public/components/metrics/time_controls.tsx @@ -0,0 +1,209 @@ +/* + * 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 { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import moment, { Moment } from 'moment'; +import React from 'react'; +import styled from 'styled-components'; + +import { RangeDatePicker, RecentlyUsed } from '../range_date_picker'; + +import { metricTimeActions } from '../../store'; + +interface MetricsTimeControlsProps { + currentTimeRange: metricTimeActions.MetricRangeTimeState; + isLiveStreaming?: boolean; + onChangeRangeTime?: (time: metricTimeActions.MetricRangeTimeState) => void; + startLiveStreaming?: () => void; + stopLiveStreaming?: () => void; +} + +interface MetricsTimeControlsState { + showGoButton: boolean; + to: moment.Moment | undefined; + from: moment.Moment | undefined; + recentlyUsed: RecentlyUsed[]; +} + +export class MetricsTimeControls extends React.Component< + MetricsTimeControlsProps, + MetricsTimeControlsState +> { + public dateRangeRef: React.RefObject = React.createRef(); + public readonly state = { + showGoButton: false, + to: moment().millisecond(this.props.currentTimeRange.to), + from: moment().millisecond(this.props.currentTimeRange.from), + recentlyUsed: [], + }; + public render() { + const { currentTimeRange, isLiveStreaming } = this.props; + const { showGoButton, to, from, recentlyUsed } = this.state; + + const liveStreamingButton = ( + + + {isLiveStreaming ? ( + + Stop refreshing + + ) : ( + + Auto-refresh + + )} + + + Reset + + + ); + + const goColor = from && to && from > to ? 'danger' : 'primary'; + const appendButton = showGoButton ? ( + + + + Go + + + + Cancel + + + ) : ( + liveStreamingButton + ); + + return ( + + + {appendButton} + + ); + } + + private handleChangeDate = ( + from: Moment | undefined, + to: Moment | undefined, + search: boolean + ) => { + const { onChangeRangeTime } = this.props; + const duration = moment.duration(from && to ? from.diff(to) : 0); + const milliseconds = duration.asMilliseconds(); + if (to && from && onChangeRangeTime && search && to > from) { + this.setState({ + showGoButton: false, + to, + from, + }); + onChangeRangeTime({ + to: to && to.valueOf(), + from: from && from.valueOf(), + } as metricTimeActions.MetricRangeTimeState); + } else if (milliseconds !== 0) { + this.setState({ + showGoButton: true, + to, + from, + }); + } + }; + + private searchRangeTime = () => { + const { onChangeRangeTime } = this.props; + const { to, from, recentlyUsed } = this.state; + if (to && from && onChangeRangeTime && to > from) { + this.setState({ + ...this.state, + showGoButton: false, + recentlyUsed: [ + ...recentlyUsed, + ...[ + { + type: 'date-range', + text: [from.format('L LTS'), to.format('L LTS')], + }, + ], + ], + }); + onChangeRangeTime({ + to: to.valueOf(), + from: from.valueOf(), + } as metricTimeActions.MetricRangeTimeState); + } + }; + + private startLiveStreaming = () => { + const { startLiveStreaming } = this.props; + + if (startLiveStreaming) { + startLiveStreaming(); + } + }; + + private stopLiveStreaming = () => { + const { stopLiveStreaming } = this.props; + + if (stopLiveStreaming) { + stopLiveStreaming(); + } + }; + + private cancelSearch = () => { + const { onChangeRangeTime } = this.props; + const to = moment(this.props.currentTimeRange.to); + const from = moment(this.props.currentTimeRange.from); + + this.setState({ + ...this.state, + showGoButton: false, + to, + from, + }); + this.dateRangeRef.current.resetRangeDate(from, to); + if (onChangeRangeTime) { + onChangeRangeTime({ + to: to && to.valueOf(), + from: from && from.valueOf(), + } as metricTimeActions.MetricRangeTimeState); + } + }; + + private resetSearch = () => { + const { onChangeRangeTime } = this.props; + const to = moment(); + const from = moment().subtract(1, 'hour'); + if (onChangeRangeTime) { + onChangeRangeTime({ + to: to.valueOf(), + from: from.valueOf(), + } as metricTimeActions.MetricRangeTimeState); + } + }; +} +const MetricsTimeControlsContainer = styled.div` + display: flex; + justify-content: right; + flex-flow: row wrap; + & > div:first-child { + margin-right: 0.5rem; + } +`; diff --git a/x-pack/plugins/infra/public/components/page.tsx b/x-pack/plugins/infra/public/components/page.tsx new file mode 100644 index 0000000000000..c4b608e2e9c64 --- /dev/null +++ b/x-pack/plugins/infra/public/components/page.tsx @@ -0,0 +1,26 @@ +/* + * 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 { EuiPage } from '@elastic/eui'; +import styled from 'styled-components'; + +export const ColumnarPage = styled.div` + display: flex; + flex-direction: column; + align-items: stretch; + flex: 1 0 0%; +`; + +export const PageContent = styled.div` + flex: 1 0 0%; + display: flex; + flex-direction: row; + background-color: ${props => props.theme.eui.euiColorEmptyShade}; +`; + +export const FlexPage = styled(EuiPage)` + flex: 1 0 0%; +`; diff --git a/x-pack/plugins/infra/public/components/range_date_picker/index.tsx b/x-pack/plugins/infra/public/components/range_date_picker/index.tsx new file mode 100644 index 0000000000000..698b8fde1af72 --- /dev/null +++ b/x-pack/plugins/infra/public/components/range_date_picker/index.tsx @@ -0,0 +1,416 @@ +/* + * 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 { find } from 'lodash'; +import moment from 'moment'; +import React, { Fragment } from 'react'; + +import { + EuiButton, + EuiButtonEmpty, + EuiDatePicker, + EuiDatePickerRange, + EuiFieldNumber, + EuiFlexGrid, + EuiFlexGroup, + EuiFlexItem, + EuiFormControlLayout, + EuiFormRow, + EuiHorizontalRule, + EuiIcon, + EuiLink, + EuiPopover, + EuiSelect, + EuiSpacer, + EuiText, + EuiTitle, +} from '@elastic/eui'; + +const commonDates = [ + 'Today', + 'Yesterday', + 'This week', + 'Week to date', + 'This month', + 'Month to date', + 'This year', + 'Year to date', +]; + +interface RangeDatePickerProps { + startDate: moment.Moment | undefined; + endDate: moment.Moment | undefined; + onChangeRangeTime: ( + from: moment.Moment | undefined, + to: moment.Moment | undefined, + search: boolean + ) => void; + recentlyUsed: RecentlyUsed[]; + disabled?: boolean; + isLoading?: boolean; + ref?: React.RefObject; +} + +export interface RecentlyUsed { + type: string; + text: string | string[]; +} + +interface RangeDatePickerState { + startDate: moment.Moment | undefined; + endDate: moment.Moment | undefined; + isPopoverOpen: boolean; + recentlyUsed: RecentlyUsed[]; + quickSelectTime: number; + quickSelectUnit: string; +} + +export class RangeDatePicker extends React.PureComponent< + RangeDatePickerProps, + RangeDatePickerState +> { + public readonly state = { + startDate: this.props.startDate, + endDate: this.props.endDate, + isPopoverOpen: false, + recentlyUsed: [], + quickSelectTime: 1, + quickSelectUnit: 'hours', + }; + + public render() { + const { isLoading, disabled } = this.props; + const { startDate, endDate } = this.state; + const quickSelectButton = ( + + + + ); + + const commonlyUsed = this.renderCommonlyUsed(commonDates); + const recentlyUsed = this.renderRecentlyUsed([ + ...this.state.recentlyUsed, + ...this.props.recentlyUsed, + ]); + + const quickSelectPopover = ( + +
      + {this.renderQuickSelect()} + + {commonlyUsed} + + {recentlyUsed} +
      +
      + ); + + return ( + + endDate : false} + fullWidth + aria-label="Start date" + disabled={disabled} + shouldCloseOnSelect + showTimeSelect + /> + } + endDateControl={ + endDate : false} + fullWidth + disabled={disabled} + isLoading={isLoading} + aria-label="End date" + shouldCloseOnSelect + showTimeSelect + popperPlacement="top-end" + /> + } + /> + + ); + } + + public resetRangeDate(startDate: moment.Moment, endDate: moment.Moment) { + this.setState({ + ...this.state, + startDate, + endDate, + }); + } + + private handleChangeStart = (date: moment.Moment | null) => { + if (date && this.state.startDate !== date) { + this.props.onChangeRangeTime(date, this.state.endDate, false); + this.setState({ + startDate: date, + }); + } + }; + + private handleChangeEnd = (date: moment.Moment | null) => { + if (date && this.state.endDate !== date) { + this.props.onChangeRangeTime(this.state.startDate, date, false); + this.setState({ + endDate: date, + }); + } + }; + + private onButtonClick = () => { + this.setState({ + isPopoverOpen: !this.state.isPopoverOpen, + }); + }; + + private closePopover = (type: string, from?: string, to?: string) => { + const { startDate, endDate, recentlyUsed } = this.managedStartEndDateFromType(type, from, to); + this.setState( + { + ...this.state, + isPopoverOpen: false, + startDate, + endDate, + recentlyUsed, + }, + () => { + if (type) { + this.props.onChangeRangeTime(startDate, endDate, true); + } + } + ); + }; + + private managedStartEndDateFromType(type: string, from?: string, to?: string) { + let { startDate, endDate } = this.state; + let recentlyUsed: RecentlyUsed[] = this.state.recentlyUsed; + let textJustUsed = type; + + if (type === 'quick-select') { + textJustUsed = `Last ${this.state.quickSelectTime} ${singularize( + this.state.quickSelectUnit, + this.state.quickSelectTime + )}`; + startDate = moment().subtract(this.state.quickSelectTime, this.state + .quickSelectUnit as moment.unitOfTime.DurationConstructor); + endDate = moment(); + } else if (type === 'Today') { + startDate = moment().startOf('day'); + endDate = moment() + .startOf('day') + .add(24, 'hour'); + } else if (type === 'Yesterday') { + startDate = moment() + .subtract(1, 'day') + .startOf('day'); + endDate = moment() + .subtract(1, 'day') + .startOf('day') + .add(24, 'hour'); + } else if (type === 'This week') { + startDate = moment().startOf('week'); + endDate = moment() + .startOf('week') + .add(1, 'week'); + } else if (type === 'Week to date') { + startDate = moment().subtract(1, 'week'); + endDate = moment(); + } else if (type === 'This month') { + startDate = moment().startOf('month'); + endDate = moment() + .startOf('month') + .add(1, 'month'); + } else if (type === 'Month to date') { + startDate = moment().subtract(1, 'month'); + endDate = moment(); + } else if (type === 'This year') { + startDate = moment().startOf('year'); + endDate = moment() + .startOf('year') + .add(1, 'year'); + } else if (type === 'Year to date') { + startDate = moment().subtract(1, 'year'); + endDate = moment(); + } else if (type === 'date-range' && to && from) { + startDate = moment(from); + endDate = moment(to); + } + + if (textJustUsed !== undefined && !find(recentlyUsed, ['text', textJustUsed])) { + recentlyUsed.unshift({ type, text: textJustUsed }); + recentlyUsed = recentlyUsed.slice(0, 5); + } + + return { + startDate, + endDate, + recentlyUsed, + }; + } + + private renderQuickSelect = () => { + const lastOptions = [ + { value: 'seconds', text: singularize('seconds', this.state.quickSelectTime) }, + { value: 'minutes', text: singularize('minutes', this.state.quickSelectTime) }, + { value: 'hours', text: singularize('hours', this.state.quickSelectTime) }, + { value: 'days', text: singularize('days', this.state.quickSelectTime) }, + { value: 'weeks', text: singularize('weeks', this.state.quickSelectTime) }, + { value: 'months', text: singularize('months', this.state.quickSelectTime) }, + { value: 'years', text: singularize('years', this.state.quickSelectTime) }, + ]; + + return ( + + + Quick select + + + + + + Last + + + + + { + this.onChange('quickSelectTime', arg); + }} + /> + + + + + { + this.onChange('quickSelectUnit', arg); + }} + /> + + + + + this.closePopover('quick-select')} style={{ minWidth: 0 }}> + Apply + + + + + + ); + }; + + private onChange = (stateType: string, args: any) => { + let value = args.currentTarget.value; + + if (stateType === 'quickSelectTime' && value !== '') { + value = parseInt(args.currentTarget.value, 10); + } + this.setState({ + ...this.state, + [stateType]: value, + }); + }; + + private renderCommonlyUsed = (recentlyCommonDates: string[]) => { + const links = recentlyCommonDates.map(date => { + return ( + + this.closePopover(date)}>{date} + + ); + }); + + return ( + + + Commonly used + + + + + {links} + + + + ); + }; + + private renderRecentlyUsed = (recentDates: RecentlyUsed[]) => { + const links = recentDates.map((date: RecentlyUsed) => { + let dateRange; + let dateLink = ( + this.closePopover(date.type)}>{dateRange || date.text} + ); + if (typeof date.text !== 'string') { + dateRange = `${date.text[0]} – ${date.text[1]}`; + dateLink = ( + this.closePopover(date.type, date.text[0], date.text[1])}> + {dateRange || date.type} + + ); + } + + return ( + + {dateLink} + + ); + }); + + return ( + + + Recently used date ranges + + + + + {links} + + + + ); + }; +} + +const singularize = (str: string, qty: number) => (qty === 1 ? str.slice(0, -1) : str); diff --git a/x-pack/plugins/infra/public/components/waffle/gradient_legend.tsx b/x-pack/plugins/infra/public/components/waffle/gradient_legend.tsx new file mode 100644 index 0000000000000..24ec7bafd391f --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/gradient_legend.tsx @@ -0,0 +1,100 @@ +/* + * 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 React from 'react'; +import styled from 'styled-components'; +import { + InfraFormatter, + InfraWaffleMapBounds, + InfraWaffleMapGradientLegend, + InfraWaffleMapGradientRule, +} from '../../lib/lib'; + +interface Props { + legend: InfraWaffleMapGradientLegend; + bounds: InfraWaffleMapBounds; + formatter: InfraFormatter; +} + +const createTickRender = (bounds: InfraWaffleMapBounds, formatter: InfraFormatter) => ( + rule: InfraWaffleMapGradientRule, + index: number +) => { + const value = rule.value === 0 ? bounds.min : bounds.max * rule.value; + const style = { left: `${rule.value * 100}%` }; + const label = formatter(value); + return ( + + + {label} + + ); +}; + +export const GradientLegend: React.SFC = ({ legend, bounds, formatter }) => { + const maxValue = legend.rules.reduce((acc, rule) => { + return acc < rule.value ? rule.value : acc; + }, 0); + const colorStops = legend.rules.map(rule => { + const percent = (rule.value / maxValue) * 100; + return `${rule.color} ${percent}%`; + }); + const style = { + background: `linear-gradient(to right, ${colorStops})`, + }; + return ( + + {legend.rules.map(createTickRender(bounds, formatter))} + + ); +}; + +const GradientLegendContainer = styled.div` + position: absolute; + height: 10px; + bottom: 0; + left: 0; + right: 0; +`; + +const GradientLegendTick = styled.div` + position: absolute; + bottom: 0; + top: -18px; +`; + +const GradientLegendTickLine = styled.div` + position: absolute; + background-color: ${props => props.theme.eui.euiBorderColor}; + width: 1px; + left: 0; + top: 15px; + bottom: 0; + ${GradientLegendTick}:first-child { + top: 2px; + } + ${GradientLegendTick}:last-child { + top: 2px; + } +`; + +const GradientLegendTickLabel = styled.div` + position: absolute; + font-size: 11px; + text-align: center; + top: 0; + left: 0; + white-space: nowrap; + transform: translate(-50%, 0); + ${GradientLegendTick}:first-child & { + padding-left: 5px; + transform: translate(0, 0); + } + ${GradientLegendTick}:last-child & { + padding-right: 5px; + transform: translate(-100%, 0); + } +`; diff --git a/x-pack/plugins/infra/public/components/waffle/group_name.tsx b/x-pack/plugins/infra/public/components/waffle/group_name.tsx new file mode 100644 index 0000000000000..5e4cd29a65f48 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/group_name.tsx @@ -0,0 +1,102 @@ +/* + * 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 { EuiLink, EuiToolTip } from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; +import { InfraPathType } from '../../../common/graphql/types'; +import { InfraWaffleMapGroup, InfraWaffleMapOptions } from '../../lib/lib'; + +interface Props { + onDrilldown: (filter: string) => void; + group: InfraWaffleMapGroup; + isChild?: boolean; + options: InfraWaffleMapOptions; +} + +export class GroupName extends React.PureComponent { + public render() { + const { group, isChild } = this.props; + const linkStyle = { + fontSize: isChild ? '0.85em' : '1em', + }; + return ( + + + + + + {group.name} + + + + {group.count} + + + ); + } + + private handleClick = (event: React.MouseEvent) => { + event.preventDefault(); + const { groupBy } = this.props.options; + // When groupBy is empty that means there is nothing todo so let's just do nothing. + if (groupBy.length === 0) { + return; + } + const currentPath = this.props.isChild && groupBy.length > 1 ? groupBy[1] : groupBy[0]; + if (currentPath.type === InfraPathType.terms && currentPath.field) { + this.props.onDrilldown(`${currentPath.field}: "${this.props.group.name}"`); + } + if (currentPath.type === InfraPathType.filters && currentPath.filters) { + const currentFilter = currentPath.filters.find(f => f.label === this.props.group.name); + if (currentFilter) { + this.props.onDrilldown(currentFilter.query); + } + } + }; +} + +const GroupNameContainer = styled.div` + position: relative; + text-align: center + font-size: 16px; + margin-bottom: 5px; + top: 20px; + display: flex; + justify-content: center; + padding: 0 10px; +`; + +interface InnerProps { + isChild?: boolean; +} + +const Inner = styled('div')` + border: 1px solid ${props => props.theme.eui.euiBorderColor}; + background-color: ${props => + props.isChild ? props.theme.eui.euiColorLightestShade : props.theme.eui.euiColorEmptyShade}; + border-radius: 4px; + box-shadow: 0px 2px 0px 0px ${props => props.theme.eui.euiBorderColor}; + display: flex; + align-items: center; + justify-content: center; + overflow: hidden; +`; + +const Name = styled.div` + flex: 1 1 auto; + padding: 6px 10px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +`; + +const Count = styled.div` + flex: 0 0 auto; + border-left: 1px solid ${props => props.theme.eui.euiBorderColor}; + padding: 6px 10px; + font-size: 0.85em; + font-weight: normal; +`; diff --git a/x-pack/plugins/infra/public/components/waffle/group_of_groups.tsx b/x-pack/plugins/infra/public/components/waffle/group_of_groups.tsx new file mode 100644 index 0000000000000..a835bd4355168 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/group_of_groups.tsx @@ -0,0 +1,64 @@ +/* + * 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 React from 'react'; +import styled from 'styled-components'; +import { InfraNodeType, InfraTimerangeInput } from '../../../common/graphql/types'; +import { + InfraWaffleMapBounds, + InfraWaffleMapGroupOfGroups, + InfraWaffleMapOptions, +} from '../../lib/lib'; +import { GroupName } from './group_name'; +import { GroupOfNodes } from './group_of_nodes'; + +interface Props { + onDrilldown: (filter: string) => void; + options: InfraWaffleMapOptions; + group: InfraWaffleMapGroupOfGroups; + formatter: (val: number) => string; + bounds: InfraWaffleMapBounds; + nodeType: InfraNodeType; + timeRange: InfraTimerangeInput; +} + +export const GroupOfGroups: React.SFC = props => { + return ( + + + + {props.group.groups.map(group => ( + + ))} + + + ); +}; + +const GroupOfGroupsContainer = styled.div` + margin: 0 10px; +`; + +const Groups = styled.div` + display: flex; + background-color: rgba(0, 0, 0, 0.05); + flex-wrap: wrap; + justify-content: center; + padding: 20px 10px 10px; + border-radius: 4px; + border: 1px solid ${props => props.theme.eui.euiBorderColor}; + box-shadow: 0 1px 7px rgba(0, 0, 0, 0.1); +`; diff --git a/x-pack/plugins/infra/public/components/waffle/group_of_nodes.tsx b/x-pack/plugins/infra/public/components/waffle/group_of_nodes.tsx new file mode 100644 index 0000000000000..613c958c76836 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/group_of_nodes.tsx @@ -0,0 +1,74 @@ +/* + * 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 React from 'react'; +import styled from 'styled-components'; +import { InfraNodeType, InfraTimerangeInput } from '../../../common/graphql/types'; +import { + InfraWaffleMapBounds, + InfraWaffleMapGroupOfNodes, + InfraWaffleMapOptions, +} from '../../lib/lib'; +import { GroupName } from './group_name'; +import { Node } from './node'; + +interface Props { + onDrilldown: (filter: string) => void; + options: InfraWaffleMapOptions; + group: InfraWaffleMapGroupOfNodes; + formatter: (val: number) => string; + isChild: boolean; + bounds: InfraWaffleMapBounds; + nodeType: InfraNodeType; + timeRange: InfraTimerangeInput; +} + +export const GroupOfNodes: React.SFC = ({ + group, + options, + formatter, + onDrilldown, + isChild = false, + bounds, + nodeType, + timeRange, +}) => { + const width = group.width > 200 ? group.width : 200; + return ( + + + + {group.nodes.map(node => ( + + ))} + + + ); +}; + +const GroupOfNodesContainer = styled.div` + margin: 0 10px; +`; + +const Nodes = styled.div` + display: flex; + background-color: rgba(0, 0, 0, 0.05); + flex-wrap: wrap; + justify-content: center; + padding: 20px 10px 10px; + border-radius: 4px; + border: 1px solid ${props => props.theme.eui.euiBorderColor}; + box-shadow: 0 1px 7px rgba(0, 0, 0, 0.1); +`; diff --git a/x-pack/plugins/infra/public/components/waffle/index.tsx b/x-pack/plugins/infra/public/components/waffle/index.tsx new file mode 100644 index 0000000000000..bf72fc86b412b --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/index.tsx @@ -0,0 +1,228 @@ +/* + * 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 { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; +import { get, max, min } from 'lodash'; +import React from 'react'; +import styled from 'styled-components'; +import { InfraMetricType, InfraNodeType, InfraTimerangeInput } from '../../../common/graphql/types'; +import { + isWaffleMapGroupWithGroups, + isWaffleMapGroupWithNodes, +} from '../../containers/waffle/type_guards'; +import { + InfraFormatterType, + InfraWaffleData, + InfraWaffleMapBounds, + InfraWaffleMapGroup, + InfraWaffleMapOptions, +} from '../../lib/lib'; +import { KueryFilterQuery } from '../../store/local/waffle_filter'; +import { createFormatter } from '../../utils/formatters'; +import { AutoSizer } from '../auto_sizer'; +import { InfraLoadingPanel } from '../loading'; +import { GroupOfGroups } from './group_of_groups'; +import { GroupOfNodes } from './group_of_nodes'; +import { Legend } from './legend'; +import { applyWaffleMapLayout } from './lib/apply_wafflemap_layout'; + +interface Props { + options: InfraWaffleMapOptions; + nodeType: InfraNodeType; + map: InfraWaffleData; + loading: boolean; + reload: () => void; + onDrilldown: (filter: KueryFilterQuery) => void; + timeRange: InfraTimerangeInput; +} + +interface MetricFormatter { + formatter: InfraFormatterType; + template: string; + bounds?: { min: number; max: number }; +} + +interface MetricFormatters { + [key: string]: MetricFormatter; +} + +const METRIC_FORMATTERS: MetricFormatters = { + [InfraMetricType.count]: { formatter: InfraFormatterType.number, template: '{{value}}' }, + [InfraMetricType.cpu]: { + formatter: InfraFormatterType.percent, + template: '{{value}}', + bounds: { min: 0, max: 1 }, + }, + [InfraMetricType.memory]: { + formatter: InfraFormatterType.percent, + template: '{{value}}', + bounds: { min: 0, max: 1 }, + }, + [InfraMetricType.rx]: { formatter: InfraFormatterType.bits, template: '{{value}}/s' }, + [InfraMetricType.tx]: { formatter: InfraFormatterType.bits, template: '{{value}}/s' }, + [InfraMetricType.logRate]: { + formatter: InfraFormatterType.abbreviatedNumber, + template: '{{value}}/s', + }, +}; + +const extractValuesFromMap = (groups: InfraWaffleMapGroup[], values: number[] = []): number[] => { + return groups.reduce((acc: number[], group: InfraWaffleMapGroup) => { + if (isWaffleMapGroupWithGroups(group)) { + return acc.concat(extractValuesFromMap(group.groups, values)); + } + if (isWaffleMapGroupWithNodes(group)) { + return acc.concat( + group.nodes.map(node => { + return node.metric.value || 0; + }) + ); + } + return acc; + }, values); +}; + +const calculateBoundsFromMap = (map: InfraWaffleData): InfraWaffleMapBounds => { + const values = extractValuesFromMap(map); + return { min: min(values), max: max(values) }; +}; + +export class Waffle extends React.Component { + public render() { + const { loading, map, reload, timeRange } = this.props; + if (loading) { + return ; + } else if (!loading && map && map.length === 0) { + return ( + There is no data to display.} + titleSize="m" + body={

      Try adjusting your time or filter.

      } + actions={ + { + reload(); + }} + > + Check for new data + + } + data-test-subj="noMetricsDataPrompt" + /> + ); + } + const { metric } = this.props.options; + const metricFormatter = get( + METRIC_FORMATTERS, + metric.type, + METRIC_FORMATTERS[InfraMetricType.count] + ); + const bounds = (metricFormatter && metricFormatter.bounds) || calculateBoundsFromMap(map); + return ( + + {({ measureRef, content: { width = 0, height = 0 } }) => { + const groupsWithLayout = applyWaffleMapLayout(map, width, height); + return ( + measureRef(el)} + data-test-subj="waffleMap" + > + + {groupsWithLayout.map(this.renderGroup(bounds, timeRange))} + + + + ); + }} + + ); + } + + // TODO: Change this to a real implimentation using the tickFormatter from the prototype as an example. + private formatter = (val: string | number) => { + const { metric } = this.props.options; + const metricFormatter = get( + METRIC_FORMATTERS, + metric.type, + METRIC_FORMATTERS[InfraMetricType.count] + ); + if (val == null) { + return ''; + } + const formatter = createFormatter(metricFormatter.formatter, metricFormatter.template); + return formatter(val); + }; + + private handleDrilldown = (filter: string) => { + this.props.onDrilldown({ + kind: 'kuery', + expression: filter, + }); + return; + }; + + private renderGroup = (bounds: InfraWaffleMapBounds, timeRange: InfraTimerangeInput) => ( + group: InfraWaffleMapGroup + ) => { + if (isWaffleMapGroupWithGroups(group)) { + return ( + + ); + } + if (isWaffleMapGroupWithNodes(group)) { + return ( + + ); + } + }; +} + +const WaffleMapOuterContiner = styled.div` + flex: 1 0 0%; + display: flex; + justify-content: center; + flex-direction: column; + overflow-x: hidden; + overflow-y: auto; +`; + +const WaffleMapInnerContainer = styled.div` + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + align-content: flex-start; + padding: 10px; +`; + +const CenteredEmptyPrompt = styled(EuiEmptyPrompt)` + align-self: center; +`; diff --git a/x-pack/plugins/infra/public/components/waffle/legend.tsx b/x-pack/plugins/infra/public/components/waffle/legend.tsx new file mode 100644 index 0000000000000..2ce97372a9726 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/legend.tsx @@ -0,0 +1,34 @@ +/* + * 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 React from 'react'; +import styled from 'styled-components'; +import { InfraFormatter, InfraWaffleMapBounds, InfraWaffleMapLegend } from '../../lib/lib'; +import { GradientLegend } from './gradient_legend'; +import { isInfraWaffleMapGradientLegend, isInfraWaffleMapStepLegend } from './lib/type_guards'; +import { StepLegend } from './steps_legend'; +interface Props { + legend: InfraWaffleMapLegend; + bounds: InfraWaffleMapBounds; + formatter: InfraFormatter; +} + +export const Legend: React.SFC = ({ legend, bounds, formatter }) => { + return ( + + {isInfraWaffleMapGradientLegend(legend) && ( + + )} + {isInfraWaffleMapStepLegend(legend) && } + + ); +}; + +const LegendContainer = styled.div` + position: absolute; + bottom: 10px; + left: 10px; + right: 10px; +`; diff --git a/x-pack/plugins/infra/public/components/waffle/lib/apply_wafflemap_layout.ts b/x-pack/plugins/infra/public/components/waffle/lib/apply_wafflemap_layout.ts new file mode 100644 index 0000000000000..5f3c06fcfbba7 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/lib/apply_wafflemap_layout.ts @@ -0,0 +1,106 @@ +/* + * 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 { first, sortBy } from 'lodash'; +import { + isWaffleMapGroupWithGroups, + isWaffleMapGroupWithNodes, +} from '../../../containers/waffle/type_guards'; +import { InfraWaffleMapGroup } from '../../../lib/lib'; +import { sizeOfSquares } from './size_of_squares'; + +export function getColumns(n: number, w = 1, h = 1) { + const pageRatio = w / h; + const ratio = pageRatio > 1.2 ? 1.2 : pageRatio; + const width = Math.ceil(Math.sqrt(n)); + return Math.ceil(width * ratio); +} + +export function getTotalItems(groups: InfraWaffleMapGroup[]) { + if (!groups) { + return 0; + } + return groups.reduce((acc, group) => { + if (isWaffleMapGroupWithGroups(group)) { + return group.groups.reduce((total, subGroup) => subGroup.nodes.length + total, acc); + } + if (isWaffleMapGroupWithNodes(group)) { + return group.nodes.length + acc; + } + return acc; + }, 0); +} + +export function getLargestCount(groups: InfraWaffleMapGroup[]) { + if (!groups) { + return 0; + } + return groups.reduce((total, group) => { + if (isWaffleMapGroupWithGroups(group)) { + return group.groups.reduce((subTotal, subGroup) => { + if (isWaffleMapGroupWithNodes(subGroup)) { + return subTotal > subGroup.nodes.length ? subTotal : subGroup.nodes.length; + } + return subTotal; + }, total); + } + if (isWaffleMapGroupWithNodes(group)) { + return total > group.nodes.length ? total : group.nodes.length; + } + return total; + }, 0); +} + +const getTotalItemsOfGroup = (group: InfraWaffleMapGroup): number => getTotalItems([group]); + +export function applyWaffleMapLayout( + groups: InfraWaffleMapGroup[], + width: number, + height: number +): InfraWaffleMapGroup[] { + if (groups.length === 0) { + return []; + } + const levels = isWaffleMapGroupWithGroups(first(groups)) ? 2 : 1; + const totalItems = getTotalItems(groups); + const squareSize = Math.round(sizeOfSquares(width, height, totalItems, levels)); + const largestCount = getLargestCount(groups); + return sortBy(groups, getTotalItemsOfGroup) + .reverse() + .map(group => { + if (isWaffleMapGroupWithGroups(group)) { + const columns = getColumns(largestCount, width, height); + const groupOfNodes = group.groups; + const subGroups = sortBy(groupOfNodes, getTotalItemsOfGroup) + .reverse() + .filter(isWaffleMapGroupWithNodes) + .map(subGroup => { + return { + ...subGroup, + count: subGroup.nodes.length, + columns, + width: columns * squareSize, + squareSize, + }; + }); + return { + ...group, + groups: subGroups, + count: getTotalItems([group]), + squareSize, + }; + } + if (isWaffleMapGroupWithNodes(group)) { + const columns = getColumns(Math.max(group.nodes.length, largestCount), width, height); + return { + ...group, + count: group.nodes.length, + squareSize, + width: columns * squareSize, + }; + } + return group; + }); +} diff --git a/x-pack/plugins/infra/public/components/waffle/lib/color_from_value.ts b/x-pack/plugins/infra/public/components/waffle/lib/color_from_value.ts new file mode 100644 index 0000000000000..c6bfd45502f3d --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/lib/color_from_value.ts @@ -0,0 +1,88 @@ +/* + * 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 { eq, first, gt, gte, last, lt, lte, sortBy } from 'lodash'; +import { mix } from 'polished'; +import { + InfraWaffleMapBounds, + InfraWaffleMapGradientLegend, + InfraWaffleMapLegend, + InfraWaffleMapRuleOperator, + InfraWaffleMapStepLegend, +} from '../../../lib/lib'; +import { isInfraWaffleMapGradientLegend, isInfraWaffleMapStepLegend } from './type_guards'; + +const OPERATOR_TO_FN = { + [InfraWaffleMapRuleOperator.eq]: eq, + [InfraWaffleMapRuleOperator.lt]: lt, + [InfraWaffleMapRuleOperator.lte]: lte, + [InfraWaffleMapRuleOperator.gte]: gte, + [InfraWaffleMapRuleOperator.gt]: gt, +}; + +export const colorFromValue = ( + legend: InfraWaffleMapLegend, + value: number | string, + bounds: InfraWaffleMapBounds, + defaultColor = 'rgba(0, 179, 164, 1)' +): string => { + if (isInfraWaffleMapStepLegend(legend)) { + return calculateStepColor(legend, value, defaultColor); + } + if (isInfraWaffleMapGradientLegend(legend)) { + return calculateGradientColor(legend, value, bounds, defaultColor); + } + return defaultColor; +}; + +const normalizeValue = (min: number, max: number, value: number): number => { + return (value - min) / (max - min); +}; + +export const calculateStepColor = ( + legend: InfraWaffleMapStepLegend, + value: number | string, + defaultColor = 'rgba(0, 179, 164, 1)' +): string => { + return sortBy(legend.rules, 'sortBy').reduce((color: string, rule) => { + const operatorFn = OPERATOR_TO_FN[rule.operator]; + if (operatorFn(value, rule.value)) { + return rule.color; + } + return color; + }, defaultColor); +}; + +export const calculateGradientColor = ( + legend: InfraWaffleMapGradientLegend, + value: number | string, + bounds: InfraWaffleMapBounds, + defaultColor = 'rgba(0, 179, 164, 1)' +): string => { + if (legend.rules.length === 0) { + return defaultColor; + } + if (legend.rules.length === 1) { + return last(legend.rules).color; + } + const { min, max } = bounds; + const sortedRules = sortBy(legend.rules, 'value'); + const normValue = normalizeValue(min, max, Number(value)); + const startRule = sortedRules.reduce((acc, rule) => { + if (rule.value <= normValue) { + return rule; + } + return acc; + }, first(sortedRules)); + const endRule = sortedRules.filter(r => r !== startRule).find(r => r.value >= normValue); + if (!endRule) { + return startRule.color; + } + + const mixValue = normalizeValue(startRule.value, endRule.value, normValue); + + return mix(mixValue, endRule.color, startRule.color); +}; diff --git a/x-pack/plugins/infra/public/components/waffle/lib/size_of_squares.ts b/x-pack/plugins/infra/public/components/waffle/lib/size_of_squares.ts new file mode 100644 index 0000000000000..d96a376d50581 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/lib/size_of_squares.ts @@ -0,0 +1,38 @@ +/* + * 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 SCALE_FACTOR = 0.6; +export const MAX_SIZE = Infinity; +export const MIN_SIZE = 24; + +export function sizeOfSquares( + width: number, + height: number, + totalItems: number, + levels = 1 +): number { + const levelFactor = levels > 1 ? levels * 0.7 : 1; + const scale = SCALE_FACTOR / levelFactor; + const x = width * scale; + const y = height * scale; + const possibleX = Math.ceil(Math.sqrt((totalItems * x) / y)); + let newX; + let newY; + if (Math.floor((possibleX * y) / x) * possibleX < totalItems) { + newX = y / Math.ceil((possibleX * y) / x); + } else { + newX = x / possibleX; + } + const possibleY = Math.ceil(Math.sqrt((totalItems * y) / x)); + if (Math.floor((possibleY * x) / y) * possibleY < totalItems) { + // does not fit + newY = x / Math.ceil((x * possibleY) / y); + } else { + newY = y / possibleY; + } + const size = Math.max(newX, newY); + return Math.min(Math.max(size, MIN_SIZE), MAX_SIZE); +} diff --git a/x-pack/plugins/infra/public/components/waffle/lib/type_guards.ts b/x-pack/plugins/infra/public/components/waffle/lib/type_guards.ts new file mode 100644 index 0000000000000..aff16374ae262 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/lib/type_guards.ts @@ -0,0 +1,19 @@ +/* + * 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 { + InfraWaffleMapGradientLegend, + InfraWaffleMapLegendMode, + InfraWaffleMapStepLegend, +} from '../../../lib/lib'; +export function isInfraWaffleMapStepLegend(subject: any): subject is InfraWaffleMapStepLegend { + return subject.type && subject.type === InfraWaffleMapLegendMode.step; +} +export function isInfraWaffleMapGradientLegend( + subject: any +): subject is InfraWaffleMapGradientLegend { + return subject.type && subject.type === InfraWaffleMapLegendMode.gradient; +} diff --git a/x-pack/plugins/infra/public/components/waffle/node.tsx b/x-pack/plugins/infra/public/components/waffle/node.tsx new file mode 100644 index 0000000000000..b4129565bf958 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/node.tsx @@ -0,0 +1,147 @@ +/* + * 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 { EuiToolTip } from '@elastic/eui'; +import { darken, readableColor } from 'polished'; +import React from 'react'; +import styled from 'styled-components'; +import { InfraTimerangeInput } from 'x-pack/plugins/infra/common/graphql/types'; +import { InfraNodeType } from '../../../server/lib/adapters/nodes'; +import { InfraWaffleMapBounds, InfraWaffleMapNode, InfraWaffleMapOptions } from '../../lib/lib'; +import { colorFromValue } from './lib/color_from_value'; +import { NodeContextMenu } from './node_context_menu'; + +const initialState = { + isPopoverOpen: false, +}; + +type State = Readonly; + +interface Props { + squareSize: number; + options: InfraWaffleMapOptions; + node: InfraWaffleMapNode; + formatter: (val: number) => string; + bounds: InfraWaffleMapBounds; + nodeType: InfraNodeType; + timeRange: InfraTimerangeInput; +} + +export class Node extends React.PureComponent { + public readonly state: State = initialState; + public render() { + const { nodeType, node, options, squareSize, bounds, formatter, timeRange } = this.props; + const { isPopoverOpen } = this.state; + const { metric } = node; + const valueMode = squareSize > 110; + const rawValue = (metric && metric.value) || 0; + const color = colorFromValue(options.legend, rawValue, bounds); + const value = formatter(rawValue); + return ( + + + + + + {valueMode && ( + + + {value} + + )} + + + + + + ); + } + + private togglePopover = () => { + this.setState(prevState => ({ isPopoverOpen: !prevState.isPopoverOpen })); + }; + + private closePopover = () => { + this.setState({ isPopoverOpen: false }); + }; +} + +const NodeContainer = styled.div` + position: relative; +`; + +interface ColorProps { + color: string; +} + +const SquareOuter = styled('div')` + position: absolute; + top: 4px; + left: 4px; + bottom: 4px; + right: 4px; + background-color: ${props => darken(0.1, props.color)}; + border-radius: 3px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2); +`; + +const SquareInner = styled('div')` + cursor: pointer; + position: absolute; + top: 0; + right: 0; + bottom: 2px; + left: 0; + border-radius: 3px; + background-color: ${props => props.color}; +`; + +const ValueInner = styled.div` + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + display: flex; + line-height: 1.2em; + align-items: center; + align-content: center; + padding: 1em; + overflow: hidden; + flex-wrap: wrap; +`; + +const Value = styled('div')` + font-weight: bold; + font-size: 0.9em; + text-align: center; + width: 100%; + flex: 1 0 auto; + line-height: 1.2em; + color: ${props => readableColor(props.color)}; +`; + +const Label = styled('div')` + text-overflow: ellipsis; + font-size: 0.7em; + margin-bottom: 0.7em; + text-align: center; + width: 100%; + flex: 1 0 auto; + white-space: nowrap; + overflow: hidden; + color: ${props => readableColor(props.color)}; +`; diff --git a/x-pack/plugins/infra/public/components/waffle/node_context_menu.tsx b/x-pack/plugins/infra/public/components/waffle/node_context_menu.tsx new file mode 100644 index 0000000000000..2de114dfe22c2 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/node_context_menu.tsx @@ -0,0 +1,85 @@ +/* + * 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 { EuiContextMenu, EuiContextMenuPanelDescriptor, EuiPopover } from '@elastic/eui'; +import React from 'react'; + +import { InfraNodeType, InfraTimerangeInput } from '../../../common/graphql/types'; +import { InfraWaffleMapNode, InfraWaffleMapOptions } from '../../lib/lib'; +import { getNodeDetailUrl, getNodeLogsUrl } from '../../pages/link_to'; + +interface Props { + options: InfraWaffleMapOptions; + timeRange: InfraTimerangeInput; + node: InfraWaffleMapNode; + nodeType: InfraNodeType; + isPopoverOpen: boolean; + closePopover: () => void; +} + +export const NodeContextMenu: React.SFC = ({ + options, + timeRange, + children, + node, + isPopoverOpen, + closePopover, + nodeType, +}) => { + const nodeName = node.path.length > 0 ? node.path[node.path.length - 1].value : undefined; + const nodeLogsUrl = nodeName + ? getNodeLogsUrl({ + nodeType, + nodeName, + time: timeRange.to, + }) + : undefined; + const nodeDetailUrl = nodeName + ? getNodeDetailUrl({ + nodeType, + nodeName, + from: timeRange.from, + to: timeRange.to, + }) + : undefined; + + const panels: EuiContextMenuPanelDescriptor[] = [ + { + id: 0, + title: '', + items: [ + ...(nodeLogsUrl + ? [ + { + name: `View logs`, + href: nodeLogsUrl, + }, + ] + : []), + ...(nodeDetailUrl + ? [ + { + name: `View metrics`, + href: nodeDetailUrl, + }, + ] + : []), + ], + }, + ]; + + return ( + + + + ); +}; diff --git a/x-pack/plugins/infra/public/components/waffle/steps_legend.tsx b/x-pack/plugins/infra/public/components/waffle/steps_legend.tsx new file mode 100644 index 0000000000000..12964989e1b18 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/steps_legend.tsx @@ -0,0 +1,81 @@ +/* + * 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 { darken } from 'polished'; +import React from 'react'; +import styled from 'styled-components'; +import { + InfraFormatter, + InfraWaffleMapRuleOperator, + InfraWaffleMapStepLegend, + InfraWaffleMapStepRule, +} from '../../lib/lib'; + +const OPERATORS = { + [InfraWaffleMapRuleOperator.gte]: '>=', + [InfraWaffleMapRuleOperator.gt]: '>', + [InfraWaffleMapRuleOperator.lte]: '<=', + [InfraWaffleMapRuleOperator.lt]: '<', + [InfraWaffleMapRuleOperator.eq]: '=', +}; + +interface Props { + legend: InfraWaffleMapStepLegend; + formatter: InfraFormatter; +} + +const createStep = (formatter: InfraFormatter) => (rule: InfraWaffleMapStepRule, index: number) => { + const label = + rule.label != null ? rule.label : `${OPERATORS[rule.operator]} ${formatter(rule.value)}`; + const squareStyle = { backgroundColor: darken(0.4, rule.color) }; + const squareInnerStyle = { backgroundColor: rule.color }; + return ( + + + + + {label} + + ); +}; + +export const StepLegend: React.SFC = ({ legend, formatter }) => { + return {legend.rules.map(createStep(formatter))}; +}; + +const StepLegendContainer = styled.div` + display: flex; + padding: 10px; +`; + +const StepContainer = styled.div` + display: flex; + margin-right: 20px + align-items: center; +`; + +const StepSquare = styled.div` + position: relative; + width: 24px; + height: 24px; + flex: 0 0 auto; + margin-right: 5px; + border-radius: 3px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2); +`; + +const StepSquareInner = styled.div` + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 2px; + border-radius: 3px; +`; + +const StepLabel = styled.div` + font-size: 12px; +`; diff --git a/x-pack/plugins/infra/public/components/waffle/waffle_group_by_controls.tsx b/x-pack/plugins/infra/public/components/waffle/waffle_group_by_controls.tsx new file mode 100644 index 0000000000000..d07ec7bedc2a1 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/waffle_group_by_controls.tsx @@ -0,0 +1,132 @@ +/* + * 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 { + EuiBadge, + EuiContextMenu, + EuiContextMenuPanelDescriptor, + EuiFilterButton, + EuiFilterGroup, + EuiPopover, +} from '@elastic/eui'; +import React from 'react'; +import { InfraNodeType, InfraPathInput, InfraPathType } from '../../../common/graphql/types'; + +interface Props { + nodeType: InfraNodeType; + groupBy: InfraPathInput[]; + onChange: (groupBy: InfraPathInput[]) => void; +} + +const OPTIONS = { + [InfraNodeType.pod]: [ + { text: 'Namespace', type: InfraPathType.terms, field: 'kubernetes.namespace' }, + { text: 'Node', type: InfraPathType.terms, field: 'kubernetes.node.name' }, + ], + [InfraNodeType.container]: [ + { text: 'Host', type: InfraPathType.terms, field: 'host.name' }, + { text: 'Availability Zone', type: InfraPathType.terms, field: 'meta.cloud.availability_zone' }, + { text: 'Machine Type', type: InfraPathType.terms, field: 'meta.cloud.machine_type' }, + { text: 'Project ID', type: InfraPathType.terms, field: 'meta.cloud.project_id' }, + { text: 'Provider', type: InfraPathType.terms, field: 'meta.cloud.provider' }, + ], + [InfraNodeType.host]: [ + { text: 'Availability Zone', type: InfraPathType.terms, field: 'meta.cloud.availability_zone' }, + { text: 'Machine Type', type: InfraPathType.terms, field: 'meta.cloud.machine_type' }, + { text: 'Project ID', type: InfraPathType.terms, field: 'meta.cloud.project_id' }, + { text: 'Cloud Provider', type: InfraPathType.terms, field: 'meta.cloud.provider' }, + ], +}; + +const initialState = { + isPopoverOpen: false, +}; +type State = Readonly; + +export class WaffleGroupByControls extends React.PureComponent { + public readonly state: State = initialState; + public render() { + const { nodeType, groupBy } = this.props; + const options = OPTIONS[nodeType]; + if (!options.length) { + throw Error(`Unable to select group by options for ${nodeType}`); + } + const panels: EuiContextMenuPanelDescriptor[] = [ + { + id: 'firstPanel', + title: 'Select up to two groupings', + items: options.map(o => { + const icon = groupBy.some(g => g.field === o.field) ? 'check' : 'empty'; + const panel = { name: o.text, onClick: this.handleClick(o.field), icon }; + return panel; + }), + }, + ]; + const buttonBody = + groupBy.length > 0 + ? groupBy + .map(g => options.find(o => o.field === g.field)) + .filter(o => o != null) + // In this map the `o && o.field` is totally unnecessary but Typescript is + // too stupid to realize that the filter above prevents the next map from being null + .map(o => ( + + {o && o.text} + + )) + : 'All'; + const button = ( + + Group By: {buttonBody} + + ); + + return ( + + + + + + ); + } + + private handleRemove = (field: string) => () => { + const { groupBy } = this.props; + this.props.onChange(groupBy.filter(g => g.field !== field)); + // We need to close the panel after we rmeove the pill icon otherwise + // it will remain open because the click is still captured by the EuiFilterButton + setTimeout(() => this.handleClose()); + }; + + private handleClose = () => { + this.setState({ isPopoverOpen: false }); + }; + + private handleToggle = () => { + this.setState(state => ({ isPopoverOpen: !state.isPopoverOpen })); + }; + + private handleClick = (field: string) => () => { + const { groupBy } = this.props; + if (groupBy.some(g => g.field === field)) { + this.handleRemove(field)(); + } else if (this.props.groupBy.length < 2) { + this.props.onChange([...groupBy, { type: InfraPathType.terms, field }]); + this.handleClose(); + } + }; +} diff --git a/x-pack/plugins/infra/public/components/waffle/waffle_metric_controls.tsx b/x-pack/plugins/infra/public/components/waffle/waffle_metric_controls.tsx new file mode 100644 index 0000000000000..fe9b015e62457 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/waffle_metric_controls.tsx @@ -0,0 +1,106 @@ +/* + * 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 { + EuiContextMenu, + EuiContextMenuPanelDescriptor, + EuiFilterButton, + EuiFilterGroup, + EuiPopover, +} from '@elastic/eui'; +import React from 'react'; +import { InfraMetricInput, InfraMetricType, InfraNodeType } from '../../../common/graphql/types'; +interface Props { + nodeType: InfraNodeType; + metric: InfraMetricInput; + onChange: (metric: InfraMetricInput) => void; +} + +const OPTIONS = { + [InfraNodeType.pod]: [ + { text: 'CPU Usage', value: InfraMetricType.cpu }, + { text: 'Memory Usage', value: InfraMetricType.memory }, + { text: 'Inbound Traffic', value: InfraMetricType.rx }, + { text: 'Outbound Traffic', value: InfraMetricType.tx }, + ], + [InfraNodeType.container]: [ + { text: 'CPU Usage', value: InfraMetricType.cpu }, + { text: 'Memory Usage', value: InfraMetricType.memory }, + { text: 'Inbound Traffic', value: InfraMetricType.rx }, + { text: 'Outbound Traffic', value: InfraMetricType.tx }, + ], + [InfraNodeType.host]: [ + { text: 'CPU Usage', value: InfraMetricType.cpu }, + { text: 'Memory Usage', value: InfraMetricType.memory }, + { text: 'Load', value: InfraMetricType.load }, + { text: 'Inbound Traffic', value: InfraMetricType.rx }, + { text: 'Outbound Traffic', value: InfraMetricType.tx }, + { text: 'Log Rate', value: InfraMetricType.logRate }, + ], +}; + +const initialState = { + isPopoverOpen: false, +}; +type State = Readonly; + +export class WaffleMetricControls extends React.PureComponent { + public readonly state: State = initialState; + public render() { + const { metric } = this.props; + const options = OPTIONS[this.props.nodeType]; + const value = metric.type; + if (!options.length || !value) { + throw Error('Unable to select options or value for metric.'); + } + const currentLabel = options.find(o => o.value === metric.type); + if (!currentLabel) { + return 'null'; + } + const panels: EuiContextMenuPanelDescriptor[] = [ + { + id: 0, + title: '', + items: options.map(o => { + const icon = o.value === metric.type ? 'check' : 'empty'; + const panel = { name: o.text, onClick: this.handleClick(o.value), icon }; + return panel; + }), + }, + ]; + const button = ( + + Metric: {currentLabel.text} + + ); + + return ( + + + + + + ); + } + private handleClose = () => { + this.setState({ isPopoverOpen: false }); + }; + + private handleToggle = () => { + this.setState(state => ({ isPopoverOpen: !state.isPopoverOpen })); + }; + + private handleClick = (value: InfraMetricType) => () => { + this.props.onChange({ type: value }); + this.handleClose(); + }; +} diff --git a/x-pack/plugins/infra/public/components/waffle/waffle_node_type_switcher.tsx b/x-pack/plugins/infra/public/components/waffle/waffle_node_type_switcher.tsx new file mode 100644 index 0000000000000..e1071261a8de6 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/waffle_node_type_switcher.tsx @@ -0,0 +1,45 @@ +/* + * 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 { EuiKeyPadMenu, EuiKeyPadMenuItem } from '@elastic/eui'; +import React from 'react'; +import { + InfraMetricInput, + InfraMetricType, + InfraNodeType, + InfraPathInput, +} from '../../../common/graphql/types'; + +interface Props { + nodeType: InfraNodeType; + changeNodeType: (nodeType: InfraNodeType) => void; + changeGroupBy: (groupBy: InfraPathInput[]) => void; + changeMetric: (metric: InfraMetricInput) => void; +} + +export class WaffleNodeTypeSwitcher extends React.PureComponent { + public render() { + return ( + + + + + + + + + + + + ); + } + + private handleClick = (nodeType: InfraNodeType) => () => { + this.props.changeNodeType(nodeType); + this.props.changeGroupBy([]); + this.props.changeMetric({ type: InfraMetricType.cpu }); + }; +} diff --git a/x-pack/plugins/infra/public/components/waffle/waffle_time_controls.tsx b/x-pack/plugins/infra/public/components/waffle/waffle_time_controls.tsx new file mode 100644 index 0000000000000..6331f86d24331 --- /dev/null +++ b/x-pack/plugins/infra/public/components/waffle/waffle_time_controls.tsx @@ -0,0 +1,82 @@ +/* + * 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 { EuiButtonEmpty, EuiDatePicker, EuiFormControlLayout } from '@elastic/eui'; +import moment, { Moment } from 'moment'; +import React from 'react'; + +interface WaffleTimeControlsProps { + currentTime: number; + isLiveStreaming?: boolean; + onChangeTime?: (time: number) => void; + startLiveStreaming?: () => void; + stopLiveStreaming?: () => void; +} + +export class WaffleTimeControls extends React.Component { + public render() { + const { currentTime, isLiveStreaming } = this.props; + + const currentMoment = moment(currentTime); + + const liveStreamingButton = isLiveStreaming ? ( + + Stop refreshing + + ) : ( + + Auto-refresh + + ); + + return ( + + + + ); + } + + private handleChangeDate = (time: Moment | null) => { + const { onChangeTime } = this.props; + + if (onChangeTime && time) { + onChangeTime(time.valueOf()); + } + }; + + private startLiveStreaming = () => { + const { startLiveStreaming } = this.props; + + if (startLiveStreaming) { + startLiveStreaming(); + } + }; + + private stopLiveStreaming = () => { + const { stopLiveStreaming } = this.props; + + if (stopLiveStreaming) { + stopLiveStreaming(); + } + }; +} diff --git a/x-pack/plugins/infra/public/containers/capabilities/capabilities.gql_query.ts b/x-pack/plugins/infra/public/containers/capabilities/capabilities.gql_query.ts new file mode 100644 index 0000000000000..53845b463c0b5 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/capabilities/capabilities.gql_query.ts @@ -0,0 +1,19 @@ +/* + * 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 gql from 'graphql-tag'; + +export const capabilitiesQuery = gql` + query CapabilitiesQuery($sourceId: ID!, $nodeId: String!, $nodeType: InfraNodeType!) { + source(id: $sourceId) { + id + capabilitiesByNode(nodeName: $nodeId, nodeType: $nodeType) { + name + source + } + } + } +`; diff --git a/x-pack/plugins/infra/public/containers/capabilities/with_capabilites.tsx b/x-pack/plugins/infra/public/containers/capabilities/with_capabilites.tsx new file mode 100644 index 0000000000000..efdcb0e70e1d8 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/capabilities/with_capabilites.tsx @@ -0,0 +1,88 @@ +/* + * 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 _ from 'lodash'; + +import React from 'react'; +import { Query } from 'react-apollo'; +import { CapabilitiesQuery, InfraNodeType } from '../../../common/graphql/types'; +import { InfraMetricLayout } from '../../pages/metrics/layouts/types'; +import { capabilitiesQuery } from './capabilities.gql_query'; + +interface WithCapabilitiesProps { + children: (args: WithCapabilitiesArgs) => React.ReactNode; + layouts: InfraMetricLayout[]; + nodeType: InfraNodeType; + nodeId: string; + sourceId: string; +} + +interface WithCapabilitiesArgs { + filteredLayouts: InfraMetricLayout[]; + error?: string | undefined; + loading: boolean; +} + +export const WithCapabilities = ({ + children, + layouts, + nodeType, + nodeId, + sourceId, +}: WithCapabilitiesProps) => { + return ( + + query={capabilitiesQuery} + fetchPolicy="no-cache" + variables={{ + sourceId, + nodeType, + nodeId, + }} + > + {({ data, error, loading }) => { + const capabilities = data && data.source && data.source.capabilitiesByNode; + const filteredLayouts = getFilteredLayouts(layouts, capabilities); + return children({ + filteredLayouts, + error: error && error.message, + loading, + }); + }} + + ); +}; + +const getFilteredLayouts = ( + layouts: InfraMetricLayout[], + capabilities: Array | undefined +): InfraMetricLayout[] => { + if (!capabilities) { + return layouts; + } + + const metricCapabilities: Array = capabilities + .filter(cap => cap && cap.source === 'metrics') + .map(cap => cap && cap.name); + + // After filtering out sections that can't be displayed, a layout may end up empty and can be removed. + const filteredLayouts = layouts + .map(layout => getFilteredLayout(layout, metricCapabilities)) + .filter(layout => layout.sections.length > 0); + return filteredLayouts; +}; + +const getFilteredLayout = ( + layout: InfraMetricLayout, + metricCapabilities: Array +): InfraMetricLayout => { + // A section is only displayed if at least one of its requirements is met + // All others are filtered out. + const filteredSections = layout.sections.filter( + section => _.intersection(section.requires, metricCapabilities).length > 0 + ); + return { ...layout, sections: filteredSections }; +}; diff --git a/x-pack/plugins/infra/public/containers/host/index.ts b/x-pack/plugins/infra/public/containers/host/index.ts new file mode 100644 index 0000000000000..706f05c80ed0d --- /dev/null +++ b/x-pack/plugins/infra/public/containers/host/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { AllHosts } from './with_all_hosts'; +export { withAllHosts } from './with_all_hosts'; + +export const hostQueries = { + AllHosts, +}; diff --git a/x-pack/plugins/infra/public/containers/host/with_all_hosts.ts b/x-pack/plugins/infra/public/containers/host/with_all_hosts.ts new file mode 100644 index 0000000000000..de4a7fb22b7bb --- /dev/null +++ b/x-pack/plugins/infra/public/containers/host/with_all_hosts.ts @@ -0,0 +1,30 @@ +/* + * 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 { graphql } from 'react-apollo'; +// import gql from 'graphql-tag'; +// import { GetAllHosts } from '../../../common/graphql/types'; + +// type ChildProps = { +// hosts: GetAllHosts.Query['hosts']; +// }; + +export const AllHosts = null; + +export const withAllHosts: any = (wrappedComponent: any) => wrappedComponent; +// export const withAllHosts = graphql< +// {}, +// GetAllHosts.Query, +// GetAllHosts.Variables, +// ChildProps +// >(AllHosts, { +// props: ({ data, ownProps }) => { +// return { +// hosts: data && data.hosts ? data.hosts : [], +// ...ownProps, +// }; +// }, +// }); diff --git a/x-pack/plugins/infra/public/containers/logs/with_log_filter.tsx b/x-pack/plugins/infra/public/containers/logs/with_log_filter.tsx new file mode 100644 index 0000000000000..fba0075c3c3b3 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/logs/with_log_filter.tsx @@ -0,0 +1,79 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; + +import { logFilterActions, logFilterSelectors, State } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { replaceStateKeyInQueryString, UrlStateContainer } from '../../utils/url_state'; + +const withLogFilter = connect( + (state: State) => ({ + filterQuery: logFilterSelectors.selectLogFilterQuery(state), + filterQueryDraft: logFilterSelectors.selectLogFilterQueryDraft(state), + isFilterQueryDraftValid: logFilterSelectors.selectIsLogFilterQueryDraftValid(state), + }), + bindPlainActionCreators({ + applyFilterQuery: logFilterActions.applyLogFilterQuery, + applyFilterQueryFromKueryExpression: (expression: string) => + logFilterActions.applyLogFilterQuery({ + kind: 'kuery', + expression, + }), + setFilterQueryDraft: logFilterActions.setLogFilterQueryDraft, + setFilterQueryDraftFromKueryExpression: (expression: string) => + logFilterActions.setLogFilterQueryDraft({ + kind: 'kuery', + expression, + }), + }) +); + +export const WithLogFilter = asChildFunctionRenderer(withLogFilter); + +/** + * Url State + */ + +type LogFilterUrlState = ReturnType; + +export const WithLogFilterUrlState = () => ( + + {({ applyFilterQuery, filterQuery }) => ( + { + if (urlState) { + applyFilterQuery(urlState); + } + }} + onInitialize={urlState => { + if (urlState) { + applyFilterQuery(urlState); + } + }} + /> + )} + +); + +const mapToFilterQuery = (value: any): LogFilterUrlState | undefined => + value && value.kind === 'kuery' && typeof value.expression === 'string' + ? { + kind: value.kind, + expression: value.expression, + } + : undefined; + +export const replaceLogFilterInQueryString = (expression: string) => + replaceStateKeyInQueryString('logFilter', { + kind: 'kuery', + expression, + }); diff --git a/x-pack/plugins/infra/public/containers/logs/with_log_minimap.tsx b/x-pack/plugins/infra/public/containers/logs/with_log_minimap.tsx new file mode 100644 index 0000000000000..a5ad500eaeb45 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/logs/with_log_minimap.tsx @@ -0,0 +1,101 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; +import { createSelector } from 'reselect'; + +import { logMinimapActions, logMinimapSelectors, State } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { UrlStateContainer } from '../../utils/url_state'; + +export const withLogMinimap = connect( + (state: State) => ({ + availableIntervalSizes, + intervalSize: logMinimapSelectors.selectMinimapIntervalSize(state), + urlState: selectMinimapUrlState(state), + }), + bindPlainActionCreators({ + setIntervalSize: logMinimapActions.setMinimapIntervalSize, + }) +); + +export const WithLogMinimap = asChildFunctionRenderer(withLogMinimap); + +export const availableIntervalSizes = [ + { + label: '1 Year', + intervalSize: 1000 * 60 * 60 * 24 * 365, + }, + { + label: '1 Month', + intervalSize: 1000 * 60 * 60 * 24 * 30, + }, + { + label: '1 Week', + intervalSize: 1000 * 60 * 60 * 24 * 7, + }, + { + label: '1 Day', + intervalSize: 1000 * 60 * 60 * 24, + }, + { + label: '1 Hour', + intervalSize: 1000 * 60 * 60, + }, + { + label: '1 Minute', + intervalSize: 1000 * 60, + }, +]; + +/** + * Url State + */ + +interface LogMinimapUrlState { + intervalSize?: ReturnType; +} + +export const WithLogMinimapUrlState = () => ( + + {({ urlState, setIntervalSize }) => ( + { + if (newUrlState && newUrlState.intervalSize) { + setIntervalSize(newUrlState.intervalSize); + } + }} + onInitialize={newUrlState => { + if (newUrlState && newUrlState.intervalSize) { + setIntervalSize(newUrlState.intervalSize); + } + }} + /> + )} + +); + +const mapToUrlState = (value: any): LogMinimapUrlState | undefined => + value + ? { + intervalSize: mapToIntervalSizeUrlState(value.intervalSize), + } + : undefined; + +const mapToIntervalSizeUrlState = (value: any) => + value && typeof value === 'number' ? value : undefined; + +const selectMinimapUrlState = createSelector( + logMinimapSelectors.selectMinimapIntervalSize, + intervalSize => ({ + intervalSize, + }) +); diff --git a/x-pack/plugins/infra/public/containers/logs/with_log_position.tsx b/x-pack/plugins/infra/public/containers/logs/with_log_position.tsx new file mode 100644 index 0000000000000..a548ae62facb0 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/logs/with_log_position.tsx @@ -0,0 +1,125 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; +import { createSelector } from 'reselect'; + +import { pickTimeKey } from '../../../common/time'; +import { logPositionActions, logPositionSelectors, State } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { replaceStateKeyInQueryString, UrlStateContainer } from '../../utils/url_state'; + +export const withLogPosition = connect( + (state: State) => ({ + firstVisiblePosition: logPositionSelectors.selectFirstVisiblePosition(state), + isAutoReloading: logPositionSelectors.selectIsAutoReloading(state), + lastVisiblePosition: logPositionSelectors.selectFirstVisiblePosition(state), + targetPosition: logPositionSelectors.selectTargetPosition(state), + urlState: selectPositionUrlState(state), + visibleTimeInterval: logPositionSelectors.selectVisibleTimeInterval(state), + visibleMidpoint: logPositionSelectors.selectVisibleMidpointOrTarget(state), + visibleMidpointTime: logPositionSelectors.selectVisibleMidpointOrTargetTime(state), + }), + bindPlainActionCreators({ + jumpToTargetPosition: logPositionActions.jumpToTargetPosition, + jumpToTargetPositionTime: logPositionActions.jumpToTargetPositionTime, + reportVisiblePositions: logPositionActions.reportVisiblePositions, + reportVisibleSummary: logPositionActions.reportVisibleSummary, + startLiveStreaming: logPositionActions.startAutoReload, + stopLiveStreaming: logPositionActions.stopAutoReload, + }) +); + +export const WithLogPosition = asChildFunctionRenderer(withLogPosition, { + onCleanup: ({ stopLiveStreaming }) => stopLiveStreaming(), +}); + +/** + * Url State + */ + +interface LogPositionUrlState { + position?: ReturnType; + streamLive?: ReturnType; +} + +export const WithLogPositionUrlState = () => ( + + {({ + jumpToTargetPosition, + jumpToTargetPositionTime, + startLiveStreaming, + stopLiveStreaming, + urlState, + }) => ( + { + if (newUrlState && newUrlState.position) { + jumpToTargetPosition(newUrlState.position); + } + if (newUrlState && newUrlState.streamLive) { + startLiveStreaming(5000); + } else if ( + newUrlState && + typeof newUrlState.streamLive !== 'undefined' && + !newUrlState.streamLive + ) { + stopLiveStreaming(); + } + }} + onInitialize={initialUrlState => { + if (initialUrlState && initialUrlState.position) { + jumpToTargetPosition(initialUrlState.position); + } else { + jumpToTargetPositionTime(Date.now()); + } + if (initialUrlState && initialUrlState.streamLive) { + startLiveStreaming(5000); + } + }} + /> + )} + +); + +const selectPositionUrlState = createSelector( + logPositionSelectors.selectVisibleMidpointOrTarget, + logPositionSelectors.selectIsAutoReloading, + (position, streamLive) => ({ + position: position ? pickTimeKey(position) : null, + streamLive, + }) +); + +const mapToUrlState = (value: any): LogPositionUrlState | undefined => + value + ? { + position: mapToPositionUrlState(value.position), + streamLive: mapToStreamLiveUrlState(value.streamLive), + } + : undefined; + +const mapToPositionUrlState = (value: any) => + value && (typeof value.time === 'number' && typeof value.tiebreaker === 'number') + ? pickTimeKey(value) + : undefined; + +const mapToStreamLiveUrlState = (value: any) => (typeof value === 'boolean' ? value : undefined); + +export const replaceLogPositionInQueryString = (time: number) => + Number.isNaN(time) + ? (value: string) => value + : replaceStateKeyInQueryString('logPosition', { + position: { + time, + tiebreaker: 0, + }, + }); diff --git a/x-pack/plugins/infra/public/containers/logs/with_log_search_controls_props.ts b/x-pack/plugins/infra/public/containers/logs/with_log_search_controls_props.ts new file mode 100644 index 0000000000000..e387da9575426 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/logs/with_log_search_controls_props.ts @@ -0,0 +1,35 @@ +/* + * 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. + */ + +/** + * Temporary Workaround + * This is not a well-designed container. It only exists to enable quick + * migration of the redux-based logging ui into the infra-ui codebase. It will + * be removed during the refactoring to graphql/apollo. + */ +import { connect } from 'react-redux'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; + +import { + // searchActions, + // searchResultsSelectors, + // sharedSelectors, + logPositionActions, + State, +} from '../../store'; + +export const withLogSearchControlsProps = connect( + (state: State) => ({ + // isLoadingSearchResults: searchResultsSelectors.selectIsLoadingSearchResults(state), + // nextSearchResult: sharedSelectors.selectNextSearchResultKey(state), + // previousSearchResult: sharedSelectors.selectPreviousSearchResultKey(state), + }), + bindPlainActionCreators({ + // clearSearch: searchActions.clearSearch, + jumpToTarget: logPositionActions.jumpToTargetPosition, + // search: searchActions.search, + }) +); diff --git a/x-pack/plugins/infra/public/containers/logs/with_log_textview.tsx b/x-pack/plugins/infra/public/containers/logs/with_log_textview.tsx new file mode 100644 index 0000000000000..5d22bc481b783 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/logs/with_log_textview.tsx @@ -0,0 +1,91 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; +import { createSelector } from 'reselect'; + +import { TextScale } from '../../../common/log_text_scale'; +import { logTextviewActions, logTextviewSelectors, State } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { UrlStateContainer } from '../../utils/url_state'; + +const availableTextScales = ['large', 'medium', 'small'] as TextScale[]; + +export const withLogTextview = connect( + (state: State) => ({ + availableTextScales, + textScale: logTextviewSelectors.selectTextviewScale(state), + urlState: selectTextviewUrlState(state), + wrap: logTextviewSelectors.selectTextviewWrap(state), + }), + bindPlainActionCreators({ + setTextScale: logTextviewActions.setTextviewScale, + setTextWrap: logTextviewActions.setTextviewWrap, + }) +); + +export const WithLogTextview = asChildFunctionRenderer(withLogTextview); + +/** + * Url State + */ + +interface LogTextviewUrlState { + textScale?: ReturnType; + wrap?: ReturnType; +} + +export const WithLogTextviewUrlState = () => ( + + {({ urlState, setTextScale, setTextWrap }) => ( + { + if (newUrlState && newUrlState.textScale) { + setTextScale(newUrlState.textScale); + } + if (newUrlState && typeof newUrlState.wrap !== 'undefined') { + setTextWrap(newUrlState.wrap); + } + }} + onInitialize={newUrlState => { + if (newUrlState && newUrlState.textScale) { + setTextScale(newUrlState.textScale); + } + if (newUrlState && typeof newUrlState.wrap !== 'undefined') { + setTextWrap(newUrlState.wrap); + } + }} + /> + )} + +); + +const mapToUrlState = (value: any): LogTextviewUrlState | undefined => + value + ? { + textScale: mapToTextScaleUrlState(value.textScale), + wrap: mapToWrapUrlState(value.wrap), + } + : undefined; + +const mapToTextScaleUrlState = (value: any) => + availableTextScales.includes(value) ? (value as TextScale) : undefined; + +const mapToWrapUrlState = (value: any) => (typeof value === 'boolean' ? value : undefined); + +const selectTextviewUrlState = createSelector( + logTextviewSelectors.selectTextviewScale, + logTextviewSelectors.selectTextviewWrap, + (textScale, wrap) => ({ + textScale, + wrap, + }) +); diff --git a/x-pack/plugins/infra/public/containers/logs/with_stream_items.ts b/x-pack/plugins/infra/public/containers/logs/with_stream_items.ts new file mode 100644 index 0000000000000..78f655430d3c8 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/logs/with_stream_items.ts @@ -0,0 +1,68 @@ +/* + * 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 { connect } from 'react-redux'; +import { createSelector } from 'reselect'; + +import { SearchResult } from '../../../common/log_search_result'; +import { logEntriesActions, logEntriesSelectors, logPositionSelectors, State } from '../../store'; +import { LogEntry, LogEntryMessageSegment } from '../../utils/log_entry'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; + +export const withStreamItems = connect( + (state: State) => ({ + isReloading: logEntriesSelectors.selectIsReloadingEntries(state), + isLoadingMore: logEntriesSelectors.selectIsLoadingMoreEntries(state), + hasMoreBeforeStart: logEntriesSelectors.selectHasMoreBeforeStart(state), + hasMoreAfterEnd: logEntriesSelectors.selectHasMoreAfterEnd(state), + lastLoadedTime: logEntriesSelectors.selectEntriesLastLoadedTime(state), + items: selectItems(state), + }), + bindPlainActionCreators({ + loadNewerEntries: logEntriesActions.loadNewerEntries, + }) +); + +export const WithStreamItems = asChildFunctionRenderer(withStreamItems); + +const selectItems = createSelector( + logEntriesSelectors.selectEntries, + logEntriesSelectors.selectIsReloadingEntries, + logPositionSelectors.selectIsAutoReloading, + // searchResultsSelectors.selectSearchResultsById, + (logEntries, isReloading, isAutoReloading /*, searchResults*/) => + isReloading && !isAutoReloading + ? [] + : logEntries.map(logEntry => + createLogEntryStreamItem(logEntry /*, searchResults[logEntry.gid] || null*/) + ) +); + +const createLogEntryStreamItem = (logEntry: LogEntry, searchResult?: SearchResult) => ({ + kind: 'logEntry' as 'logEntry', + logEntry: { + gid: logEntry.gid, + origin: { + id: logEntry.gid, + index: '', + type: '', + }, + fields: { + time: logEntry.key.time, + tiebreaker: logEntry.key.tiebreaker, + message: logEntry.message.map(formatMessageSegment).join(''), + }, + }, + searchResult, +}); + +const formatMessageSegment = (messageSegment: LogEntryMessageSegment): string => + messageSegment.__typename === 'InfraLogMessageFieldSegment' + ? messageSegment.value + : messageSegment.__typename === 'InfraLogMessageConstantSegment' + ? messageSegment.constant + : 'failed to format message'; diff --git a/x-pack/plugins/infra/public/containers/logs/with_summary.ts b/x-pack/plugins/infra/public/containers/logs/with_summary.ts new file mode 100644 index 0000000000000..424da80b460df --- /dev/null +++ b/x-pack/plugins/infra/public/containers/logs/with_summary.ts @@ -0,0 +1,22 @@ +/* + * 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 { connect } from 'react-redux'; + +import { logSummaryActions, logSummarySelectors, State } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; + +export const withSummary = connect( + (state: State) => ({ + buckets: logSummarySelectors.selectSummaryBuckets(state), + }), + bindPlainActionCreators({ + load: logSummaryActions.loadSummary, + }) +); + +export const WithSummary = asChildFunctionRenderer(withSummary); diff --git a/x-pack/plugins/infra/public/containers/metrics/metrics.gql_query.ts b/x-pack/plugins/infra/public/containers/metrics/metrics.gql_query.ts new file mode 100644 index 0000000000000..2a5cc0219e81a --- /dev/null +++ b/x-pack/plugins/infra/public/containers/metrics/metrics.gql_query.ts @@ -0,0 +1,31 @@ +/* + * 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 gql from 'graphql-tag'; + +export const metricsQuery = gql` + query MetricsQuery( + $sourceId: ID! + $timerange: InfraTimerangeInput! + $metrics: [InfraMetric!]! + $nodeId: ID! + $nodeType: InfraNodeType! + ) { + source(id: $sourceId) { + id + metrics(nodeId: $nodeId, timerange: $timerange, metrics: $metrics, nodeType: $nodeType) { + id + series { + id + data { + timestamp + value + } + } + } + } + } +`; diff --git a/x-pack/plugins/infra/public/containers/metrics/with_metrics.tsx b/x-pack/plugins/infra/public/containers/metrics/with_metrics.tsx new file mode 100644 index 0000000000000..9f44a24f4893c --- /dev/null +++ b/x-pack/plugins/infra/public/containers/metrics/with_metrics.tsx @@ -0,0 +1,79 @@ +/* + * 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 React from 'react'; +import { Query } from 'react-apollo'; +import { + InfraMetric, + InfraMetricData, + InfraNodeType, + InfraTimerangeInput, + MetricsQuery, +} from '../../../common/graphql/types'; +import { InfraMetricLayout } from '../../pages/metrics/layouts/types'; +import { metricsQuery } from './metrics.gql_query'; + +interface WithMetricsArgs { + metrics: InfraMetricData[]; + error?: string | undefined; + loading: boolean; +} + +interface WithMetricsProps { + children: (args: WithMetricsArgs) => React.ReactNode; + layouts: InfraMetricLayout[]; + nodeType: InfraNodeType; + nodeId: string; + sourceId: string; + timerange: InfraTimerangeInput; +} + +export const WithMetrics = ({ + children, + layouts, + sourceId, + timerange, + nodeType, + nodeId, +}: WithMetricsProps) => { + const metrics = layouts.reduce( + (acc, item) => { + return acc.concat(item.sections.map(s => s.id)); + }, + [] as InfraMetric[] + ); + + return ( + + query={metricsQuery} + fetchPolicy="no-cache" + variables={{ + sourceId, + metrics, + nodeType, + nodeId, + timerange, + }} + > + {({ data, error, loading }) => { + return children({ + metrics: filterOnlyInfraMetricData(data && data.source && data.source.metrics), + error: error && error.message, + loading, + }); + }} + + ); +}; + +const filterOnlyInfraMetricData = ( + metrics: Array | undefined +): InfraMetricData[] => { + if (!metrics) { + return []; + } + return metrics.filter(m => m !== null).map(m => m as InfraMetricData); +}; diff --git a/x-pack/plugins/infra/public/containers/metrics/with_metrics_time.tsx b/x-pack/plugins/infra/public/containers/metrics/with_metrics_time.tsx new file mode 100644 index 0000000000000..a6c7e94f2be16 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/metrics/with_metrics_time.tsx @@ -0,0 +1,108 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; +import { createSelector } from 'reselect'; + +import { metricTimeActions, metricTimeSelectors, State } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { replaceStateKeyInQueryString, UrlStateContainer } from '../../utils/url_state'; + +export const withMetricsTime = connect( + (state: State) => ({ + currentTimeRange: metricTimeSelectors.selectRangeTime(state), + isAutoReloading: metricTimeSelectors.selectIsAutoReloading(state), + urlState: selectTimeUrlState(state), + }), + bindPlainActionCreators({ + setRangeTime: metricTimeActions.setRangeTime, + startMetricsAutoReload: metricTimeActions.startMetricsAutoReload, + stopMetricsAutoReload: metricTimeActions.stopMetricsAutoReload, + }) +); + +export const WithMetricsTime = asChildFunctionRenderer(withMetricsTime, { + onCleanup: ({ stopMetricsAutoReload }) => stopMetricsAutoReload(), +}); + +/** + * Url State + */ + +interface MetricTimeUrlState { + time?: ReturnType; + autoReload?: ReturnType; +} + +export const WithMetricsTimeUrlState = () => ( + + {({ setRangeTime, startMetricsAutoReload, stopMetricsAutoReload, urlState }) => ( + { + if (newUrlState && newUrlState.time) { + setRangeTime(newUrlState.time); + } + if (newUrlState && newUrlState.autoReload) { + startMetricsAutoReload(); + } else if ( + newUrlState && + typeof newUrlState.autoReload !== 'undefined' && + !newUrlState.autoReload + ) { + stopMetricsAutoReload(); + } + }} + onInitialize={initialUrlState => { + if (initialUrlState && initialUrlState.time) { + setRangeTime(initialUrlState.time); + } + if (initialUrlState && initialUrlState.autoReload) { + startMetricsAutoReload(); + } + }} + /> + )} + +); + +const selectTimeUrlState = createSelector( + metricTimeSelectors.selectRangeTime, + metricTimeSelectors.selectIsAutoReloading, + (time, autoReload) => ({ + time, + autoReload, + }) +); + +const mapToUrlState = (value: any): MetricTimeUrlState | undefined => + value + ? { + time: mapToTimeUrlState(value.time), + autoReload: mapToAutoReloadUrlState(value.autoReload), + } + : undefined; + +const mapToTimeUrlState = (value: any) => + value && (typeof value.to === 'number' && typeof value.from === 'number') ? value : undefined; + +const mapToAutoReloadUrlState = (value: any) => (typeof value === 'boolean' ? value : undefined); + +export const replaceMetricTimeInQueryString = (from: number, to: number) => + Number.isNaN(from) || Number.isNaN(to) + ? (value: string) => value + : replaceStateKeyInQueryString('metricTime', { + autoReload: false, + time: { + interval: '>=1m', + from, + to, + }, + }); diff --git a/x-pack/plugins/infra/public/containers/waffle/index.ts b/x-pack/plugins/infra/public/containers/waffle/index.ts new file mode 100644 index 0000000000000..738a2f7347ce4 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/index.ts @@ -0,0 +1,8 @@ +/* + * 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 * from './with_waffle_filters'; +export * from './with_waffle_nodes'; diff --git a/x-pack/plugins/infra/public/containers/waffle/nodes_to_wafflemap.ts b/x-pack/plugins/infra/public/containers/waffle/nodes_to_wafflemap.ts new file mode 100644 index 0000000000000..6dad5d0b9405b --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/nodes_to_wafflemap.ts @@ -0,0 +1,117 @@ +/* + * 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 { first, last } from 'lodash'; +import { InfraNode, InfraNodePath } from '../../../common/graphql/types'; +import { + InfraWaffleMapGroup, + InfraWaffleMapGroupOfGroups, + InfraWaffleMapGroupOfNodes, + InfraWaffleMapNode, +} from '../../lib/lib'; +import { isWaffleMapGroupWithGroups, isWaffleMapGroupWithNodes } from './type_guards'; + +function createId(path: InfraNodePath[]) { + return path.map(p => p.value).join('/'); +} + +function findOrCreateGroupWithNodes( + groups: InfraWaffleMapGroup[], + path: InfraNodePath[] +): InfraWaffleMapGroupOfNodes { + const id = path.length === 0 ? '__all__' : createId(path); + /** + * If the group is going to be a top level group then we can just + * look for the full id. Otherwise we need to find the parent group and + * then look for the group in it's sub groups. + */ + if (path.length === 2) { + const parentId = first(path).value; + const existingParentGroup = groups.find(g => g.id === parentId); + if (isWaffleMapGroupWithGroups(existingParentGroup)) { + const existingSubGroup = existingParentGroup.groups.find(g => g.id === id); + if (isWaffleMapGroupWithNodes(existingSubGroup)) { + return existingSubGroup; + } + } + } + const existingGroup = groups.find(g => g.id === id); + if (isWaffleMapGroupWithNodes(existingGroup)) { + return existingGroup; + } + return { + id, + name: id === '__all__' ? 'All' : last(path).value, + count: 0, + width: 0, + squareSize: 0, + nodes: [], + }; +} + +function findOrCreateGroupWithGroups( + groups: InfraWaffleMapGroup[], + path: InfraNodePath[] +): InfraWaffleMapGroupOfGroups { + const id = path.length === 0 ? '__all__' : createId(path); + const existingGroup = groups.find(g => g.id === id); + if (isWaffleMapGroupWithGroups(existingGroup)) { + return existingGroup; + } + return { + id, + name: id === '__all__' ? 'All' : last(path).value, + count: 0, + width: 0, + squareSize: 0, + groups: [], + }; +} + +function createWaffleMapNode(node: InfraNode): InfraWaffleMapNode { + return { + id: node.path.map(p => p.value).join('/'), + path: node.path, + name: last(node.path).value, + metric: node.metric, + }; +} + +function withoutGroup(group: InfraWaffleMapGroup) { + return (subject: InfraWaffleMapGroup) => { + return subject.id !== group.id; + }; +} + +export function nodesToWaffleMap(nodes: InfraNode[]): InfraWaffleMapGroup[] { + return nodes.reduce((groups: InfraWaffleMapGroup[], node: InfraNode) => { + const waffleNode = createWaffleMapNode(node); + if (node.path.length === 2) { + const parentGroup = findOrCreateGroupWithNodes( + groups, + node.path.slice(0, node.path.length - 1) + ); + parentGroup.nodes.push(waffleNode); + return groups.filter(withoutGroup(parentGroup)).concat([parentGroup]); + } + if (node.path.length === 3) { + const parentGroup = findOrCreateGroupWithNodes( + groups, + node.path.slice(0, node.path.length - 1) + ); + parentGroup.nodes.push(waffleNode); + const topGroup = findOrCreateGroupWithGroups( + groups, + node.path.slice(0, node.path.length - 2) + ); + topGroup.groups = topGroup.groups.filter(withoutGroup(parentGroup)).concat([parentGroup]); + return groups.filter(withoutGroup(topGroup)).concat([topGroup]); + } + const allGroup = findOrCreateGroupWithNodes(groups, []); + allGroup.nodes.push(waffleNode); + return groups.filter(withoutGroup(allGroup)).concat([allGroup]); + }, []); +} diff --git a/x-pack/plugins/infra/public/containers/waffle/type_guards.ts b/x-pack/plugins/infra/public/containers/waffle/type_guards.ts new file mode 100644 index 0000000000000..3e21e3a56a6c6 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/type_guards.ts @@ -0,0 +1,15 @@ +/* + * 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 { InfraWaffleMapGroupOfGroups, InfraWaffleMapGroupOfNodes } from '../../lib/lib'; + +export function isWaffleMapGroupWithNodes(subject: any): subject is InfraWaffleMapGroupOfNodes { + return subject && subject.nodes != null && Array.isArray(subject.nodes); +} + +export function isWaffleMapGroupWithGroups(subject: any): subject is InfraWaffleMapGroupOfGroups { + return subject && subject.groups != null && Array.isArray(subject.groups); +} diff --git a/x-pack/plugins/infra/public/containers/waffle/waffle_nodes.gql_query.ts b/x-pack/plugins/infra/public/containers/waffle/waffle_nodes.gql_query.ts new file mode 100644 index 0000000000000..8da5b160603e7 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/waffle_nodes.gql_query.ts @@ -0,0 +1,32 @@ +/* + * 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 gql from 'graphql-tag'; + +export const waffleNodesQuery = gql` + query WaffleNodesQuery( + $sourceId: ID! + $timerange: InfraTimerangeInput! + $filterQuery: String + $metric: InfraMetricInput! + $path: [InfraPathInput!]! + ) { + source(id: $sourceId) { + id + map(timerange: $timerange, filterQuery: $filterQuery) { + nodes(path: $path, metric: $metric) { + path { + value + } + metric { + name + value + } + } + } + } + } +`; diff --git a/x-pack/plugins/infra/public/containers/waffle/with_waffle_filters.tsx b/x-pack/plugins/infra/public/containers/waffle/with_waffle_filters.tsx new file mode 100644 index 0000000000000..80f912574c72b --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/with_waffle_filters.tsx @@ -0,0 +1,74 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; + +import { sharedSelectors, State, waffleFilterActions, waffleFilterSelectors } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { UrlStateContainer } from '../../utils/url_state'; + +export const withWaffleFilter = connect( + (state: State) => ({ + filterQuery: waffleFilterSelectors.selectWaffleFilterQuery(state), + filterQueryDraft: waffleFilterSelectors.selectWaffleFilterQueryDraft(state), + filterQueryAsJson: sharedSelectors.selectWaffleFilterQueryAsJson(state), + isFilterQueryDraftValid: waffleFilterSelectors.selectIsWaffleFilterQueryDraftValid(state), + }), + bindPlainActionCreators({ + applyFilterQuery: waffleFilterActions.applyWaffleFilterQuery, + applyFilterQueryFromKueryExpression: (expression: string) => + waffleFilterActions.applyWaffleFilterQuery({ + kind: 'kuery', + expression, + }), + setFilterQueryDraft: waffleFilterActions.setWaffleFilterQueryDraft, + setFilterQueryDraftFromKueryExpression: (expression: string) => + waffleFilterActions.setWaffleFilterQueryDraft({ + kind: 'kuery', + expression, + }), + }) +); + +export const WithWaffleFilter = asChildFunctionRenderer(withWaffleFilter); + +/** + * Url State + */ + +type WaffleFilterUrlState = ReturnType; + +export const WithWaffleFilterUrlState = () => ( + + {({ applyFilterQuery, filterQuery }) => ( + { + if (urlState) { + applyFilterQuery(urlState); + } + }} + onInitialize={urlState => { + if (urlState) { + applyFilterQuery(urlState); + } + }} + /> + )} + +); + +const mapToUrlState = (value: any): WaffleFilterUrlState | undefined => + value && value.kind === 'kuery' && typeof value.expression === 'string' + ? { + kind: value.kind, + expression: value.expression, + } + : undefined; diff --git a/x-pack/plugins/infra/public/containers/waffle/with_waffle_nodes.tsx b/x-pack/plugins/infra/public/containers/waffle/with_waffle_nodes.tsx new file mode 100644 index 0000000000000..f8a5a7a607917 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/with_waffle_nodes.tsx @@ -0,0 +1,76 @@ +/* + * 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 React from 'react'; +import { Query } from 'react-apollo'; + +import { + InfraMetricInput, + InfraPathInput, + InfraPathType, + InfraTimerangeInput, + WaffleNodesQuery, +} from '../../../common/graphql/types'; +import { InfraNodeType } from '../../../server/lib/adapters/nodes'; +import { InfraWaffleMapGroup } from '../../lib/lib'; +import { nodesToWaffleMap } from './nodes_to_wafflemap'; +import { waffleNodesQuery } from './waffle_nodes.gql_query'; + +interface WithWaffleNodesArgs { + nodes: InfraWaffleMapGroup[]; + loading: boolean; + refetch: () => void; +} + +interface WithWaffleNodesProps { + children: (args: WithWaffleNodesArgs) => React.ReactNode; + filterQuery: string | null | undefined; + metric: InfraMetricInput; + groupBy: InfraPathInput[]; + nodeType: InfraNodeType; + sourceId: string; + timerange: InfraTimerangeInput; +} + +const NODE_TYPE_TO_PATH_TYPE = { + [InfraNodeType.container]: InfraPathType.containers, + [InfraNodeType.host]: InfraPathType.hosts, + [InfraNodeType.pod]: InfraPathType.pods, +}; + +export const WithWaffleNodes = ({ + children, + filterQuery, + metric, + groupBy, + nodeType, + sourceId, + timerange, +}: WithWaffleNodesProps) => ( + + query={waffleNodesQuery} + fetchPolicy="no-cache" + notifyOnNetworkStatusChange + variables={{ + sourceId, + metric, + path: [...groupBy, { type: NODE_TYPE_TO_PATH_TYPE[nodeType] }], + timerange, + filterQuery, + }} + > + {({ data, loading, refetch }) => + children({ + loading, + nodes: + data && data.source && data.source.map && data.source.map.nodes + ? nodesToWaffleMap(data.source.map.nodes) + : [], + refetch, + }) + } + +); diff --git a/x-pack/plugins/infra/public/containers/waffle/with_waffle_options.tsx b/x-pack/plugins/infra/public/containers/waffle/with_waffle_options.tsx new file mode 100644 index 0000000000000..0136ac6cf5fee --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/with_waffle_options.tsx @@ -0,0 +1,115 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; +import { createSelector } from 'reselect'; +import { InfraMetricInput, InfraMetricType, InfraPathType } from '../../../common/graphql/types'; +import { InfraNodeType } from '../../../server/lib/adapters/nodes'; +import { State, waffleOptionsActions, waffleOptionsSelectors } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { UrlStateContainer } from '../../utils/url_state'; + +const selectOptionsUrlState = createSelector( + waffleOptionsSelectors.selectMetric, + waffleOptionsSelectors.selectGroupBy, + waffleOptionsSelectors.selectNodeType, + (metric, groupBy, nodeType) => ({ + metric, + groupBy, + nodeType, + }) +); + +export const withWaffleOptions = connect( + (state: State) => ({ + metric: waffleOptionsSelectors.selectMetric(state), + groupBy: waffleOptionsSelectors.selectGroupBy(state), + nodeType: waffleOptionsSelectors.selectNodeType(state), + urlState: selectOptionsUrlState(state), + }), + bindPlainActionCreators({ + changeMetric: waffleOptionsActions.changeMetric, + changeGroupBy: waffleOptionsActions.changeGroupBy, + changeNodeType: waffleOptionsActions.changeNodeType, + }) +); + +export const WithWaffleOptions = asChildFunctionRenderer(withWaffleOptions); + +/** + * Url State + */ + +interface WaffleOptionsUrlState { + metric?: ReturnType; + groupBy?: ReturnType; + nodeType?: ReturnType; +} + +export const WithWaffleOptionsUrlState = () => ( + + {({ changeMetric, urlState, changeGroupBy, changeNodeType }) => ( + { + if (newUrlState && newUrlState.metric) { + changeMetric(newUrlState.metric); + } + if (newUrlState && newUrlState.groupBy) { + changeGroupBy(newUrlState.groupBy); + } + if (newUrlState && newUrlState.nodeType) { + changeNodeType(newUrlState.nodeType); + } + }} + onInitialize={initialUrlState => { + if (initialUrlState && initialUrlState.metric) { + changeMetric(initialUrlState.metric); + } + if (initialUrlState && initialUrlState.groupBy) { + changeGroupBy(initialUrlState.groupBy); + } + if (initialUrlState && initialUrlState.nodeType) { + changeNodeType(initialUrlState.nodeType); + } + }} + /> + )} + +); + +const mapToUrlState = (value: any): WaffleOptionsUrlState | undefined => + value + ? { + metric: mapToMetricUrlState(value.metric), + groupBy: mapToGroupByUrlState(value.groupBy), + nodeType: mapToNodeTypeUrlState(value.nodeType), + } + : undefined; + +const isInfraMetricInput = (subject: any): subject is InfraMetricInput => { + return subject != null && subject.type != null && InfraMetricType[subject.type] != null; +}; + +const isInfraPathInput = (subject: any): subject is InfraPathType => { + return subject != null && subject.type != null && InfraPathType[subject.type] != null; +}; + +const mapToMetricUrlState = (subject: any) => { + return subject && isInfraMetricInput(subject) ? subject : undefined; +}; + +const mapToGroupByUrlState = (subject: any) => { + return subject && Array.isArray(subject) && subject.every(isInfraPathInput) ? subject : undefined; +}; + +const mapToNodeTypeUrlState = (subject: any) => { + return subject && InfraNodeType[subject] ? subject : undefined; +}; diff --git a/x-pack/plugins/infra/public/containers/waffle/with_waffle_time.tsx b/x-pack/plugins/infra/public/containers/waffle/with_waffle_time.tsx new file mode 100644 index 0000000000000..293f6184af21b --- /dev/null +++ b/x-pack/plugins/infra/public/containers/waffle/with_waffle_time.tsx @@ -0,0 +1,96 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; +import { createSelector } from 'reselect'; + +import { State, waffleTimeActions, waffleTimeSelectors } from '../../store'; +import { asChildFunctionRenderer } from '../../utils/typed_react'; +import { bindPlainActionCreators } from '../../utils/typed_redux'; +import { UrlStateContainer } from '../../utils/url_state'; + +export const withWaffleTime = connect( + (state: State) => ({ + currentTime: waffleTimeSelectors.selectCurrentTime(state), + currentTimeRange: waffleTimeSelectors.selectCurrentTimeRange(state), + isAutoReloading: waffleTimeSelectors.selectIsAutoReloading(state), + urlState: selectTimeUrlState(state), + }), + bindPlainActionCreators({ + jumpToTime: waffleTimeActions.jumpToTime, + startAutoReload: waffleTimeActions.startAutoReload, + stopAutoReload: waffleTimeActions.stopAutoReload, + }) +); + +export const WithWaffleTime = asChildFunctionRenderer(withWaffleTime, { + onCleanup: ({ stopAutoReload }) => stopAutoReload(), +}); + +/** + * Url State + */ + +interface WaffleTimeUrlState { + time?: ReturnType; + autoReload?: ReturnType; +} + +export const WithWaffleTimeUrlState = () => ( + + {({ jumpToTime, startAutoReload, stopAutoReload, urlState }) => ( + { + if (newUrlState && newUrlState.time) { + jumpToTime(newUrlState.time); + } + if (newUrlState && newUrlState.autoReload) { + startAutoReload(); + } else if ( + newUrlState && + typeof newUrlState.autoReload !== 'undefined' && + !newUrlState.autoReload + ) { + stopAutoReload(); + } + }} + onInitialize={initialUrlState => { + if (initialUrlState) { + jumpToTime(initialUrlState.time ? initialUrlState.time : Date.now()); + } + if (initialUrlState && initialUrlState.autoReload) { + startAutoReload(); + } + }} + /> + )} + +); + +const selectTimeUrlState = createSelector( + waffleTimeSelectors.selectCurrentTime, + waffleTimeSelectors.selectIsAutoReloading, + (time, autoReload) => ({ + time, + autoReload, + }) +); + +const mapToUrlState = (value: any): WaffleTimeUrlState | undefined => + value + ? { + time: mapToTimeUrlState(value.time), + autoReload: mapToAutoReloadUrlState(value.autoReload), + } + : undefined; + +const mapToTimeUrlState = (value: any) => (value && typeof value === 'number' ? value : undefined); + +const mapToAutoReloadUrlState = (value: any) => (typeof value === 'boolean' ? value : undefined); diff --git a/x-pack/plugins/infra/public/containers/with_kibana_chrome.tsx b/x-pack/plugins/infra/public/containers/with_kibana_chrome.tsx new file mode 100644 index 0000000000000..a298f3f1c4d7d --- /dev/null +++ b/x-pack/plugins/infra/public/containers/with_kibana_chrome.tsx @@ -0,0 +1,28 @@ +/* + * 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. + */ + +/* + * + * 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 React from 'react'; +import chrome from 'ui/chrome'; + +import { RendererFunction } from '../utils/typed_react'; + +interface WithKibanaChromeProps { + children: RendererFunction<{ + basePath: string; + }>; +} + +export const WithKibanaChrome: React.SFC = ({ children }) => + children({ + basePath: chrome.getBasePath(), + }); diff --git a/x-pack/plugins/infra/public/containers/with_kuery_autocompletion.tsx b/x-pack/plugins/infra/public/containers/with_kuery_autocompletion.tsx new file mode 100644 index 0000000000000..b3d062aeed080 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/with_kuery_autocompletion.tsx @@ -0,0 +1,108 @@ +/* + * 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 React from 'react'; +import { connect } from 'react-redux'; + +import { AutocompleteSuggestion, getAutocompleteProvider } from 'ui/autocomplete_providers'; +import { StaticIndexPattern } from 'ui/index_patterns'; + +import { sourceSelectors, State } from '../store'; +import { RendererFunction } from '../utils/typed_react'; + +const withIndexPattern = connect((state: State) => ({ + indexPattern: sourceSelectors.selectDerivedIndexPattern(state), +})); + +interface WithKueryAutocompletionLifecycleProps { + children: RendererFunction<{ + isLoadingSuggestions: boolean; + loadSuggestions: (expression: string, cursorPosition: number, maxSuggestions?: number) => void; + suggestions: AutocompleteSuggestion[]; + }>; + indexPattern: StaticIndexPattern; +} + +interface WithKueryAutocompletionLifecycleState { + // lacking cancellation support in the autocompletion api, + // this is used to keep older, slower requests from clobbering newer ones + currentRequest: { + expression: string; + cursorPosition: number; + } | null; + suggestions: AutocompleteSuggestion[]; +} + +export const WithKueryAutocompletion = withIndexPattern( + class WithKueryAutocompletionLifecycle extends React.Component< + WithKueryAutocompletionLifecycleProps, + WithKueryAutocompletionLifecycleState + > { + public readonly state: WithKueryAutocompletionLifecycleState = { + currentRequest: null, + suggestions: [], + }; + + public render() { + const { currentRequest, suggestions } = this.state; + + return this.props.children({ + isLoadingSuggestions: currentRequest !== null, + loadSuggestions: this.loadSuggestions, + suggestions, + }); + } + + private loadSuggestions = async ( + expression: string, + cursorPosition: number, + maxSuggestions?: number + ) => { + const { indexPattern } = this.props; + const autocompletionProvider = getAutocompleteProvider('kuery'); + const config = { + get: () => true, + }; + + if (!autocompletionProvider) { + return; + } + + const getSuggestions = autocompletionProvider({ + config, + indexPatterns: [indexPattern], + boolFilter: [], + }); + + this.setState({ + currentRequest: { + expression, + cursorPosition, + }, + suggestions: [], + }); + + const suggestions = await getSuggestions({ + query: expression, + selectionStart: cursorPosition, + selectionEnd: cursorPosition, + }); + + this.setState( + state => + state.currentRequest && + state.currentRequest.expression !== expression && + state.currentRequest.cursorPosition !== cursorPosition + ? state // ignore this result, since a newer request is in flight + : { + ...state, + currentRequest: null, + suggestions: maxSuggestions ? suggestions.slice(0, maxSuggestions) : suggestions, + } + ); + }; + } +); diff --git a/x-pack/plugins/infra/public/containers/with_options.tsx b/x-pack/plugins/infra/public/containers/with_options.tsx new file mode 100644 index 0000000000000..0e92a6ef43edb --- /dev/null +++ b/x-pack/plugins/infra/public/containers/with_options.tsx @@ -0,0 +1,95 @@ +/* + * 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 moment from 'moment'; +import React from 'react'; + +import { InfraMetricType, InfraPathType } from '../../common/graphql/types'; +import { + InfraFormatterType, + InfraOptions, + InfraWaffleMapLegendMode, + // InfraWaffleMapRuleOperator, +} from '../lib/lib'; +import { RendererFunction } from '../utils/typed_react'; + +const initialState = { + options: { + sourceId: 'default', + timerange: { + interval: '1m', + to: moment.utc().valueOf(), + from: moment + .utc() + .subtract(1, 'h') + .valueOf(), + }, + wafflemap: { + formatter: InfraFormatterType.percent, + formatTemplate: '{{value}}', + metric: { type: InfraMetricType.cpu }, + path: [{ type: InfraPathType.hosts }], + /* + legend: { + type: InfraWaffleMapLegendMode.step, + rules: [ + { + value: 0, + color: '#00B3A4', + operator: InfraWaffleMapRuleOperator.gte, + label: 'Ok', + }, + { + value: 10000, + color: '#DB1374', + operator: InfraWaffleMapRuleOperator.gte, + label: 'Over 10,000', + }, + ], + }, + */ + legend: { + type: InfraWaffleMapLegendMode.gradient, + rules: [ + { + value: 0, + color: '#D9D9D9', + }, + { + value: 0.65, + color: '#00B3A4', + }, + { + value: 0.8, + color: '#E6C220', + }, + { + value: 1, + color: '#DB1374', + }, + ], + }, + }, + } as InfraOptions, +}; + +interface WithOptionsProps { + children: RendererFunction; +} + +type State = Readonly; + +export const withOptions =

      (WrappedComponent: React.ComponentType

      ) => ( + {args => } +); + +export class WithOptions extends React.Component { + public readonly state: State = initialState; + + public render() { + return this.props.children(this.state.options); + } +} diff --git a/x-pack/plugins/infra/public/containers/with_source.ts b/x-pack/plugins/infra/public/containers/with_source.ts new file mode 100644 index 0000000000000..9674cda59575c --- /dev/null +++ b/x-pack/plugins/infra/public/containers/with_source.ts @@ -0,0 +1,18 @@ +/* + * 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 { connect } from 'react-redux'; + +import { sourceSelectors, State } from '../store'; +import { asChildFunctionRenderer } from '../utils/typed_react'; + +export const withSource = connect((state: State) => ({ + configuredFields: sourceSelectors.selectSourceFields(state), + logIndicesExist: sourceSelectors.selectSourceLogIndicesExist(state), + metricIndicesExist: sourceSelectors.selectSourceMetricIndicesExist(state), +})); + +export const WithSource = asChildFunctionRenderer(withSource); diff --git a/x-pack/plugins/infra/public/containers/with_state_from_location.tsx b/x-pack/plugins/infra/public/containers/with_state_from_location.tsx new file mode 100644 index 0000000000000..b8c8c85d96631 --- /dev/null +++ b/x-pack/plugins/infra/public/containers/with_state_from_location.tsx @@ -0,0 +1,126 @@ +/* + * 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 { Location } from 'history'; +import omit from 'lodash/fp/omit'; +import { parse as parseQueryString, stringify as stringifyQueryString } from 'querystring'; +import React from 'react'; +import { RouteComponentProps, withRouter } from 'react-router'; +import { decode_object, encode_object } from 'rison-node'; +import { Omit } from '../lib/lib'; + +interface AnyObject { + [key: string]: any; +} + +interface WithStateFromLocationOptions { + mapLocationToState: (location: Location) => StateInLocation; + mapStateToLocation: (state: StateInLocation, location: Location) => Location; +} + +type InjectedPropsFromLocation = Partial & { + pushStateInLocation?: (state: StateInLocation) => void; + replaceStateInLocation?: (state: StateInLocation) => void; +}; + +export const withStateFromLocation = ({ + mapLocationToState, + mapStateToLocation, +}: WithStateFromLocationOptions) => < + WrappedComponentProps extends InjectedPropsFromLocation +>( + WrappedComponent: React.ComponentType +) => { + const wrappedName = WrappedComponent.displayName || WrappedComponent.name; + + return withRouter( + class WithStateFromLocation extends React.PureComponent< + RouteComponentProps<{}> & + Omit> + > { + public static displayName = `WithStateFromLocation(${wrappedName})`; + + public render() { + const { location } = this.props; + const otherProps = omit(['location', 'history', 'match', 'staticContext'], this.props); + + const stateFromLocation = mapLocationToState(location); + + return ( + + ); + } + + private pushStateInLocation = (state: StateInLocation) => { + const { history, location } = this.props; + + const newLocation = mapStateToLocation(state, this.props.location); + + if (newLocation !== location) { + history.push(newLocation); + } + }; + + private replaceStateInLocation = (state: StateInLocation) => { + const { history, location } = this.props; + + const newLocation = mapStateToLocation(state, this.props.location); + + if (newLocation !== location) { + history.replace(newLocation); + } + }; + } + ); +}; + +const decodeRisonAppState = (queryValues: { _a?: string }): AnyObject => { + try { + return queryValues && queryValues._a ? decode_object(queryValues._a) : {}; + } catch (error) { + if (error instanceof Error && error.message.startsWith('rison decoder error')) { + return {}; + } + throw error; + } +}; + +const encodeRisonAppState = (state: AnyObject) => ({ + _a: encode_object(state), +}); + +export const mapRisonAppLocationToState = ( + mapState: (risonAppState: AnyObject) => State = (state: AnyObject) => state as State +) => (location: Location): State => { + const queryValues = parseQueryString(location.search.substring(1)); + const decodedState = decodeRisonAppState(queryValues); + return mapState(decodedState); +}; + +export const mapStateToRisonAppLocation = ( + mapState: (state: State) => AnyObject = (state: State) => state +) => (state: State, location: Location): Location => { + const previousQueryValues = parseQueryString(location.search.substring(1)); + const previousState = decodeRisonAppState(previousQueryValues); + + const encodedState = encodeRisonAppState({ + ...previousState, + ...mapState(state), + }); + const newQueryValues = stringifyQueryString({ + ...previousQueryValues, + ...encodedState, + }); + return { + ...location, + search: `?${newQueryValues}`, + }; +}; diff --git a/x-pack/plugins/infra/public/images/docker.svg b/x-pack/plugins/infra/public/images/docker.svg new file mode 100644 index 0000000000000..e4499c8ce275d --- /dev/null +++ b/x-pack/plugins/infra/public/images/docker.svg @@ -0,0 +1,12 @@ + + + + Shape + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/x-pack/plugins/infra/public/images/hosts.svg b/x-pack/plugins/infra/public/images/hosts.svg new file mode 100644 index 0000000000000..d04e953d90fa3 --- /dev/null +++ b/x-pack/plugins/infra/public/images/hosts.svg @@ -0,0 +1,12 @@ + + + + picto-server-orange + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/x-pack/plugins/infra/public/images/infra_mono_white.svg b/x-pack/plugins/infra/public/images/infra_mono_white.svg new file mode 100644 index 0000000000000..168ca6c03f18d --- /dev/null +++ b/x-pack/plugins/infra/public/images/infra_mono_white.svg @@ -0,0 +1,15 @@ + + + + infra-mono + Created with Sketch. + + + + + + + + + + diff --git a/x-pack/plugins/infra/public/images/k8.svg b/x-pack/plugins/infra/public/images/k8.svg new file mode 100644 index 0000000000000..2509bd9e8e6b0 --- /dev/null +++ b/x-pack/plugins/infra/public/images/k8.svg @@ -0,0 +1,13 @@ + + + + k8 + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/x-pack/plugins/infra/public/images/logging_mono_white.svg b/x-pack/plugins/infra/public/images/logging_mono_white.svg new file mode 100644 index 0000000000000..0b7363ea16e8e --- /dev/null +++ b/x-pack/plugins/infra/public/images/logging_mono_white.svg @@ -0,0 +1,18 @@ + + + + logging-mono + Created with Sketch. + + + + + + + + + + + + + diff --git a/x-pack/plugins/infra/public/images/services.svg b/x-pack/plugins/infra/public/images/services.svg new file mode 100644 index 0000000000000..52a8db8126ee7 --- /dev/null +++ b/x-pack/plugins/infra/public/images/services.svg @@ -0,0 +1,9 @@ + + + Shape + Created with Sketch. + + + + + \ No newline at end of file diff --git a/x-pack/plugins/infra/public/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/infra/public/lib/adapters/framework/kibana_framework_adapter.ts new file mode 100644 index 0000000000000..d8f62a10856ee --- /dev/null +++ b/x-pack/plugins/infra/public/lib/adapters/framework/kibana_framework_adapter.ts @@ -0,0 +1,188 @@ +/* + * 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 { IModule, IScope } from 'angular'; +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; + +import { UIRoutes as KibanaUIRoutes } from 'ui/routes'; + +import { + InfraBufferedKibanaServiceCall, + InfraFrameworkAdapter, + InfraKibanaAdapterServiceRefs, + InfraKibanaUIConfig, + InfraTimezoneProvider, + InfraUiKibanaAdapterScope, +} from '../../lib'; + +const ROOT_ELEMENT_ID = 'react-infra-root'; +const BREADCRUMBS_ELEMENT_ID = 'react-infra-breadcrumbs'; + +export class InfraKibanaFrameworkAdapter implements InfraFrameworkAdapter { + public appState: object; + public dateFormat?: string; + public kbnVersion?: string; + public scaledDateFormat?: string; + public timezone?: string; + + private adapterService: KibanaAdapterServiceProvider; + private timezoneProvider: InfraTimezoneProvider; + private rootComponent: React.ReactElement | null = null; + private breadcrumbsComponent: React.ReactElement | null = null; + + constructor( + uiModule: IModule, + uiRoutes: KibanaUIRoutes, + timezoneProvider: InfraTimezoneProvider + ) { + this.adapterService = new KibanaAdapterServiceProvider(); + this.timezoneProvider = timezoneProvider; + this.appState = {}; + this.register(uiModule, uiRoutes); + } + + public setUISettings = (key: string, value: any) => { + this.adapterService.callOrBuffer(({ config }) => { + config.set(key, value); + }); + }; + + public render = (component: React.ReactElement) => { + this.adapterService.callOrBuffer(() => (this.rootComponent = component)); + }; + + public renderBreadcrumbs = (component: React.ReactElement) => { + this.adapterService.callOrBuffer(() => (this.breadcrumbsComponent = component)); + }; + + private register = (adapterModule: IModule, uiRoutes: KibanaUIRoutes) => { + adapterModule.provider('kibanaAdapter', this.adapterService); + + adapterModule.directive('infraUiKibanaAdapter', () => ({ + controller: ($scope: InfraUiKibanaAdapterScope, $element: JQLite) => ({ + $onDestroy: () => { + const targetRootElement = $element[0].querySelector(`#${ROOT_ELEMENT_ID}`); + const targetBreadcrumbsElement = $element[0].querySelector(`#${ROOT_ELEMENT_ID}`); + + if (targetRootElement) { + ReactDOM.unmountComponentAtNode(targetRootElement); + } + + if (targetBreadcrumbsElement) { + ReactDOM.unmountComponentAtNode(targetBreadcrumbsElement); + } + }, + $onInit: () => { + $scope.topNavMenu = []; + }, + $postLink: () => { + $scope.$watchGroup( + [ + () => this.breadcrumbsComponent, + () => $element[0].querySelector(`#${BREADCRUMBS_ELEMENT_ID}`), + ], + ([breadcrumbsComponent, targetElement]) => { + if (!targetElement) { + return; + } + + if (breadcrumbsComponent) { + ReactDOM.render(breadcrumbsComponent, targetElement); + } else { + ReactDOM.unmountComponentAtNode(targetElement); + } + } + ); + $scope.$watchGroup( + [() => this.rootComponent, () => $element[0].querySelector(`#${ROOT_ELEMENT_ID}`)], + ([rootComponent, targetElement]) => { + if (!targetElement) { + return; + } + + if (rootComponent) { + ReactDOM.render(rootComponent, targetElement); + } else { + ReactDOM.unmountComponentAtNode(targetElement); + } + } + ); + }, + }), + scope: true, + template: ` +

      + `, + })); + + adapterModule.run(( + config: InfraKibanaUIConfig, + kbnVersion: string, + Private: (provider: Provider) => Provider, + // @ts-ignore: inject kibanaAdapter to force eager instatiation + kibanaAdapter: any + ) => { + this.timezone = Private(this.timezoneProvider)(); + this.kbnVersion = kbnVersion; + this.dateFormat = config.get('dateFormat'); + this.scaledDateFormat = config.get('dateFormat:scaled'); + }); + + uiRoutes.enable(); + + uiRoutes.otherwise({ + reloadOnSearch: false, + template: + '', + }); + }; +} + +// tslint:disable-next-line: max-classes-per-file +class KibanaAdapterServiceProvider { + public serviceRefs: InfraKibanaAdapterServiceRefs | null = null; + public bufferedCalls: Array> = []; + + public $get($rootScope: IScope, config: InfraKibanaUIConfig) { + this.serviceRefs = { + config, + rootScope: $rootScope, + }; + + this.applyBufferedCalls(this.bufferedCalls); + + return this; + } + + public callOrBuffer(serviceCall: (serviceRefs: InfraKibanaAdapterServiceRefs) => void) { + if (this.serviceRefs !== null) { + this.applyBufferedCalls([serviceCall]); + } else { + this.bufferedCalls.push(serviceCall); + } + } + + public applyBufferedCalls( + bufferedCalls: Array> + ) { + if (!this.serviceRefs) { + return; + } + + this.serviceRefs.rootScope.$apply(() => { + bufferedCalls.forEach(serviceCall => { + if (!this.serviceRefs) { + return; + } + return serviceCall(this.serviceRefs); + }); + }); + } +} diff --git a/x-pack/plugins/infra/public/lib/adapters/framework/testing_framework_adapter.ts b/x-pack/plugins/infra/public/lib/adapters/framework/testing_framework_adapter.ts new file mode 100644 index 0000000000000..da56c7b97b226 --- /dev/null +++ b/x-pack/plugins/infra/public/lib/adapters/framework/testing_framework_adapter.ts @@ -0,0 +1,29 @@ +/* + * 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 { InfraFrameworkAdapter } from '../../lib'; + +export class InfraTestingFrameworkAdapter implements InfraFrameworkAdapter { + public appState?: object; + public dateFormat?: string; + public kbnVersion?: string; + public scaledDateFormat?: string; + public timezone?: string; + + constructor() { + this.appState = {}; + } + + public render() { + return; + } + public renderBreadcrumbs() { + return; + } + public setUISettings() { + return; + } +} diff --git a/x-pack/plugins/infra/public/lib/adapters/observable_api/kibana_observable_api.ts b/x-pack/plugins/infra/public/lib/adapters/observable_api/kibana_observable_api.ts new file mode 100644 index 0000000000000..157a7ebe9fedf --- /dev/null +++ b/x-pack/plugins/infra/public/lib/adapters/observable_api/kibana_observable_api.ts @@ -0,0 +1,45 @@ +/* + * 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 { ajax } from 'rxjs/ajax'; +import { map } from 'rxjs/operators'; + +import { + InfraObservableApi, + InfraObservableApiPostParams, + InfraObservableApiResponse, +} from '../../lib'; + +export class InfraKibanaObservableApiAdapter implements InfraObservableApi { + private basePath: string; + private defaultHeaders: { + [headerName: string]: string; + }; + + constructor({ basePath, xsrfToken }: { basePath: string; xsrfToken: string }) { + this.basePath = basePath; + this.defaultHeaders = { + 'kbn-version': xsrfToken, + }; + } + + public post = ({ + url, + body, + }: InfraObservableApiPostParams): InfraObservableApiResponse => + ajax({ + body: body ? JSON.stringify(body) : undefined, + headers: { + ...this.defaultHeaders, + 'Content-Type': 'application/json', + }, + method: 'POST', + responseType: 'json', + timeout: 30000, + url: `${this.basePath}/api/${url}`, + withCredentials: true, + }).pipe(map(({ response, status }) => ({ response, status }))); +} diff --git a/x-pack/plugins/infra/public/lib/compose/kibana_compose.ts b/x-pack/plugins/infra/public/lib/compose/kibana_compose.ts new file mode 100644 index 0000000000000..3ce48d9a31b96 --- /dev/null +++ b/x-pack/plugins/infra/public/lib/compose/kibana_compose.ts @@ -0,0 +1,69 @@ +/* + * 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 'ui/autoload/all'; +// @ts-ignore: path dynamic for kibana +import chrome from 'ui/chrome'; +// @ts-ignore: path dynamic for kibana +import { uiModules } from 'ui/modules'; +import uiRoutes from 'ui/routes'; +// @ts-ignore: path dynamic for kibana +import { timezoneProvider } from 'ui/vis/lib/timezone'; + +import { InfraKibanaObservableApiAdapter } from '../adapters/observable_api/kibana_observable_api'; + +import introspectionQueryResultData from '../../../common/graphql/introspection.json'; +import { InfraKibanaFrameworkAdapter } from '../adapters/framework/kibana_framework_adapter'; +import { InfraFrontendLibs } from '../lib'; + +import { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inmemory'; +import ApolloClient from 'apollo-client'; +import { ApolloLink } from 'apollo-link'; +import { HttpLink } from 'apollo-link-http'; +import { withClientState } from 'apollo-link-state'; + +export function compose(): InfraFrontendLibs { + const cache = new InMemoryCache({ + fragmentMatcher: new IntrospectionFragmentMatcher({ + introspectionQueryResultData, + }), + }); + + const observableApi = new InfraKibanaObservableApiAdapter({ + basePath: chrome.getBasePath(), + xsrfToken: chrome.getXsrfToken(), + }); + + const graphQLOptions = { + cache, + link: ApolloLink.from([ + withClientState({ + cache, + resolvers: {}, + }), + new HttpLink({ + credentials: 'same-origin', + headers: { + 'kbn-xsrf': chrome.getXsrfToken(), + }, + uri: `${chrome.getBasePath()}/api/infra/graphql`, + }), + ]), + }; + + const apolloClient = new ApolloClient(graphQLOptions); + + const infraModule = uiModules.get('app/infa'); + + const framework = new InfraKibanaFrameworkAdapter(infraModule, uiRoutes, timezoneProvider); + + const libs: InfraFrontendLibs = { + apolloClient, + framework, + observableApi, + }; + return libs; +} diff --git a/x-pack/plugins/infra/public/lib/compose/testing_compose.ts b/x-pack/plugins/infra/public/lib/compose/testing_compose.ts new file mode 100644 index 0000000000000..14fd66d378121 --- /dev/null +++ b/x-pack/plugins/infra/public/lib/compose/testing_compose.ts @@ -0,0 +1,59 @@ +/* + * 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 'ui/autoload/all'; +// @ts-ignore: path dynamic for kibana +import chrome from 'ui/chrome'; +// @ts-ignore: path dynamic for kibana +import { uiModules } from 'ui/modules'; +import uiRoutes from 'ui/routes'; +// @ts-ignore: path dynamic for kibana +import { timezoneProvider } from 'ui/vis/lib/timezone'; + +import { InMemoryCache } from 'apollo-cache-inmemory'; +import ApolloClient from 'apollo-client'; +import { SchemaLink } from 'apollo-link-schema'; +import { addMockFunctionsToSchema, makeExecutableSchema } from 'graphql-tools'; +import { InfraKibanaFrameworkAdapter } from '../adapters/framework/kibana_framework_adapter'; +import { InfraKibanaObservableApiAdapter } from '../adapters/observable_api/kibana_observable_api'; +import { InfraFrontendLibs } from '../lib'; + +export function compose(): InfraFrontendLibs { + const infraModule = uiModules.get('app/infa'); + const observableApi = new InfraKibanaObservableApiAdapter({ + basePath: chrome.getBasePath(), + xsrfToken: chrome.getXsrfToken(), + }); + const framework = new InfraKibanaFrameworkAdapter(infraModule, uiRoutes, timezoneProvider); + const typeDefs = ` + Query {} +`; + + const mocks = { + Mutation: () => undefined, + Query: () => undefined, + }; + + const schema = makeExecutableSchema({ typeDefs }); + addMockFunctionsToSchema({ + mocks, + schema, + }); + + const cache = new InMemoryCache((window as any).__APOLLO_CLIENT__); + + const apolloClient = new ApolloClient({ + cache, + link: new SchemaLink({ schema }), + }); + + const libs: InfraFrontendLibs = { + apolloClient, + framework, + observableApi, + }; + return libs; +} diff --git a/x-pack/plugins/infra/public/lib/lib.ts b/x-pack/plugins/infra/public/lib/lib.ts new file mode 100644 index 0000000000000..0df859fa81446 --- /dev/null +++ b/x-pack/plugins/infra/public/lib/lib.ts @@ -0,0 +1,204 @@ +/* + * 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 { IModule, IScope } from 'angular'; +import { NormalizedCacheObject } from 'apollo-cache-inmemory'; +import ApolloClient from 'apollo-client'; +import { AxiosRequestConfig } from 'axios'; +import React from 'react'; +import { Observable } from 'rxjs'; +import { + InfraMetricInput, + InfraNodeMetric, + InfraNodePath, + InfraPathInput, + InfraTimerangeInput, + SourceQuery, +} from '../../common/graphql/types'; + +export interface InfraFrontendLibs { + framework: InfraFrameworkAdapter; + apolloClient: InfraApolloClient; + observableApi: InfraObservableApi; +} + +export type InfraTimezoneProvider = () => string; + +export type InfraApolloClient = ApolloClient; + +export interface InfraFrameworkAdapter { + // Insstance vars + appState?: object; + dateFormat?: string; + kbnVersion?: string; + scaledDateFormat?: string; + timezone?: string; + + // Methods + setUISettings(key: string, value: any): void; + render(component: React.ReactElement): void; + renderBreadcrumbs(component: React.ReactElement): void; +} + +export interface InfraFramworkAdapterConstructable { + new (uiModule: IModule, timezoneProvider: InfraTimezoneProvider): InfraFrameworkAdapter; +} + +// TODO: replace AxiosRequestConfig with something more defined +export type InfraRequestConfig = AxiosRequestConfig; + +export interface InfraApiAdapter { + get(url: string, config?: InfraRequestConfig | undefined): Promise; + post(url: string, data?: any, config?: AxiosRequestConfig | undefined): Promise; + delete(url: string, config?: InfraRequestConfig | undefined): Promise; + put(url: string, data?: any, config?: InfraRequestConfig | undefined): Promise; +} + +export interface InfraObservableApiPostParams { + url: string; + body?: RequestBody; +} + +export type InfraObservableApiResponse = Observable<{ + status: number; + response: BodyType; +}>; + +export interface InfraObservableApi { + post( + params: InfraObservableApiPostParams + ): InfraObservableApiResponse; +} + +export interface InfraUiKibanaAdapterScope extends IScope { + breadcrumbs: any[]; + topNavMenu: any[]; +} + +export interface InfraKibanaUIConfig { + get(key: string): any; + set(key: string, value: any): Promise; +} + +export interface InfraKibanaAdapterServiceRefs { + config: InfraKibanaUIConfig; + rootScope: IScope; +} + +export type InfraBufferedKibanaServiceCall = (serviceRefs: ServiceRefs) => void; + +export interface InfraField { + name: string; + type: string; + searchable: boolean; + aggregatable: boolean; +} + +export type InfraWaffleData = InfraWaffleMapGroup[]; + +export interface InfraWaffleMapNode { + id: string; + name: string; + path: InfraNodePath[]; + metric: InfraNodeMetric; +} + +export type InfraWaffleMapGroup = InfraWaffleMapGroupOfNodes | InfraWaffleMapGroupOfGroups; + +export interface InfraWaffleMapGroupBase { + id: string; + name: string; + count: number; + width: number; + squareSize: number; +} + +export interface InfraWaffleMapGroupOfGroups extends InfraWaffleMapGroupBase { + groups: InfraWaffleMapGroupOfNodes[]; +} + +export interface InfraWaffleMapGroupOfNodes extends InfraWaffleMapGroupBase { + nodes: InfraWaffleMapNode[]; +} + +export interface InfraWaffleMapStepRule { + value: number; + operator: InfraWaffleMapRuleOperator; + color: string; + label?: string; +} + +export interface InfraWaffleMapGradientRule { + value: number; + color: string; +} + +export enum InfraWaffleMapLegendMode { + step = 'step', + gradient = 'gradient', +} + +export interface InfraWaffleMapStepLegend { + type: InfraWaffleMapLegendMode.step; + rules: InfraWaffleMapStepRule[]; +} + +export interface InfraWaffleMapGradientLegend { + type: InfraWaffleMapLegendMode.gradient; + rules: InfraWaffleMapGradientRule[]; +} + +export type InfraWaffleMapLegend = InfraWaffleMapStepLegend | InfraWaffleMapGradientLegend; + +export enum InfraWaffleMapRuleOperator { + gt = 'gt', + gte = 'gte', + lt = 'lt', + lte = 'lte', + eq = 'eq', +} + +export interface InfraWaffleMapOptions { + fields?: SourceQuery.Fields | null; + formatter: InfraFormatterType; + formatTemplate: string; + metric: InfraMetricInput; + path: InfraPathInput[]; + groupBy: InfraPathInput[]; + legend: InfraWaffleMapLegend; +} + +export interface InfraOptions { + sourceId: string; + timerange: InfraTimerangeInput; + wafflemap: InfraWaffleMapOptions; +} + +export type Omit = Pick>; + +export interface InfraWaffleMapBounds { + min: number; + max: number; +} + +export type InfraFormatter = (value: string | number) => string; +export enum InfraFormatterType { + number = 'number', + abbreviatedNumber = 'abbreviatedNumber', + bytes = 'bytes', + bits = 'bits', + percent = 'percent', +} + +export enum InfraWaffleMapDataFormat { + bytesDecimal = 'bytesDecimal', + bytesBinaryIEC = 'bytesBinaryIEC', + bytesBinaryJEDEC = 'bytesBinaryJEDEC', + bitsDecimal = 'bitsDecimal', + bitsBinaryIEC = 'bitsBinaryIEC', + bitsBinaryJEDEC = 'bitsBinaryJEDEC', + abbreviatedNumber = 'abbreviatedNumber', +} diff --git a/x-pack/plugins/infra/public/pages/404.tsx b/x-pack/plugins/infra/public/pages/404.tsx new file mode 100644 index 0000000000000..956bf90e84927 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/404.tsx @@ -0,0 +1,13 @@ +/* + * 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 React from 'react'; + +export class NotFoundPage extends React.PureComponent { + public render() { + return
      No content found
      ; + } +} diff --git a/x-pack/plugins/infra/public/pages/error.tsx b/x-pack/plugins/infra/public/pages/error.tsx new file mode 100644 index 0000000000000..75b158c42c5a1 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/error.tsx @@ -0,0 +1,59 @@ +/* + * 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 { + EuiCallOut, + EuiPage, + EuiPageBody, + EuiPageContent, + EuiPageHeader, + EuiPageHeaderSection, + EuiTitle, +} from '@elastic/eui'; +import React from 'react'; +import styled from 'styled-components'; +import { Header } from '../components/header'; +import { ColumnarPage, PageContent } from '../components/page'; + +const DetailPageContent = styled(PageContent)` + overflow: auto; + background-color: ${props => props.theme.eui.euiColorLightestShade}; +`; + +interface Props { + message: string; +} + +export const Error: React.SFC = ({ message }) => { + return ( + +
      + + + + + ); +}; + +export const ErrorPageBody: React.SFC<{ message: string }> = ({ message }) => { + return ( + + + + + +

      Oops!

      +
      +
      +
      + + +

      Please click the back button and try again.

      +
      +
      +
      +
      + ); +}; diff --git a/x-pack/plugins/infra/public/pages/home/index.tsx b/x-pack/plugins/infra/public/pages/home/index.tsx new file mode 100644 index 0000000000000..9032b30d42266 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/home/index.tsx @@ -0,0 +1,56 @@ +/* + * 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 React from 'react'; + +import { HomePageContent } from './page_content'; +import { HomeToolbar } from './toolbar'; + +import { EmptyPage } from '../../components/empty_page'; +import { Header } from '../../components/header'; +import { ColumnarPage } from '../../components/page'; + +import { InfrastructureBetaBadgeHeaderSection } from '../../components/beta_badge_header_section'; +import { WithWaffleFilterUrlState } from '../../containers/waffle/with_waffle_filters'; +import { WithWaffleOptionsUrlState } from '../../containers/waffle/with_waffle_options'; +import { WithWaffleTimeUrlState } from '../../containers/waffle/with_waffle_time'; +import { WithKibanaChrome } from '../../containers/with_kibana_chrome'; +import { WithSource } from '../../containers/with_source'; + +export class HomePage extends React.PureComponent { + public render() { + return ( + + + {({ metricIndicesExist }) => + metricIndicesExist || metricIndicesExist === null ? ( + <> + + + +
      } /> + + + + ) : ( + + {({ basePath }) => ( + + )} + + ) + } + + + ); + } +} diff --git a/x-pack/plugins/infra/public/pages/home/page_content.tsx b/x-pack/plugins/infra/public/pages/home/page_content.tsx new file mode 100644 index 0000000000000..43fcaab282e98 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/home/page_content.tsx @@ -0,0 +1,62 @@ +/* + * 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 React from 'react'; + +import { PageContent } from '../../components/page'; +import { Waffle } from '../../components/waffle'; + +import { WithWaffleFilter } from '../../containers/waffle/with_waffle_filters'; +import { WithWaffleNodes } from '../../containers/waffle/with_waffle_nodes'; +import { WithWaffleOptions } from '../../containers/waffle/with_waffle_options'; +import { WithWaffleTime } from '../../containers/waffle/with_waffle_time'; +import { WithOptions } from '../../containers/with_options'; +import { WithSource } from '../../containers/with_source'; + +export const HomePageContent: React.SFC = () => ( + + + {({ configuredFields }) => ( + + {({ wafflemap, sourceId }) => ( + + {({ filterQueryAsJson, applyFilterQuery }) => ( + + {({ currentTimeRange, isAutoReloading }) => ( + + {({ metric, groupBy, nodeType }) => ( + + {({ nodes, loading, refetch }) => ( + 0 && isAutoReloading ? false : loading} + nodeType={nodeType} + options={{ ...wafflemap, metric, fields: configuredFields, groupBy }} + reload={refetch} + onDrilldown={applyFilterQuery} + timeRange={currentTimeRange} + /> + )} + + )} + + )} + + )} + + )} + + )} + + +); diff --git a/x-pack/plugins/infra/public/pages/home/toolbar.tsx b/x-pack/plugins/infra/public/pages/home/toolbar.tsx new file mode 100644 index 0000000000000..5abccd9f9763d --- /dev/null +++ b/x-pack/plugins/infra/public/pages/home/toolbar.tsx @@ -0,0 +1,114 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'; +import React from 'react'; + +import { AutocompleteField } from '../../components/autocomplete_field'; +import { Toolbar } from '../../components/eui/toolbar'; +import { WaffleTimeControls } from '../../components/waffle/waffle_time_controls'; + +import { InfraNodeType } from '../../../common/graphql/types'; +import { WaffleGroupByControls } from '../../components/waffle/waffle_group_by_controls'; +import { WaffleMetricControls } from '../../components/waffle/waffle_metric_controls'; +import { WaffleNodeTypeSwitcher } from '../../components/waffle/waffle_node_type_switcher'; +import { WithWaffleFilter } from '../../containers/waffle/with_waffle_filters'; +import { WithWaffleOptions } from '../../containers/waffle/with_waffle_options'; +import { WithWaffleTime } from '../../containers/waffle/with_waffle_time'; +import { WithKueryAutocompletion } from '../../containers/with_kuery_autocompletion'; + +const TITLES = { + [InfraNodeType.host]: 'Hosts', + [InfraNodeType.pod]: 'Kubernetes Pods', + [InfraNodeType.container]: 'Docker Containers', +}; + +export const HomeToolbar: React.SFC = () => ( + + + + + {({ nodeType }) => ( + +

      {TITLES[nodeType]}

      +
      + )} +
      + +

      Showing the last 1 minute of data from the time period

      +
      +
      + + {({ nodeType, changeNodeType, changeGroupBy, changeMetric }) => ( + + + + )} + +
      + + + + {({ isLoadingSuggestions, loadSuggestions, suggestions }) => ( + + {({ + applyFilterQueryFromKueryExpression, + filterQueryDraft, + isFilterQueryDraftValid, + setFilterQueryDraftFromKueryExpression, + }) => ( + + )} + + )} + + + + {({ changeMetric, changeGroupBy, groupBy, metric, nodeType }) => ( + + + + + + + + + )} + + + + {({ currentTime, isAutoReloading, jumpToTime, startAutoReload, stopAutoReload }) => ( + + )} + + + +
      +); diff --git a/x-pack/plugins/infra/public/pages/link_to/index.ts b/x-pack/plugins/infra/public/pages/link_to/index.ts new file mode 100644 index 0000000000000..4c8051f8da73e --- /dev/null +++ b/x-pack/plugins/infra/public/pages/link_to/index.ts @@ -0,0 +1,9 @@ +/* + * 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 { LinkToPage } from './link_to'; +export { getNodeLogsUrl, RedirectToNodeLogs } from './redirect_to_node_logs'; +export { getNodeDetailUrl, RedirectToNodeDetail } from './redirect_to_node_detail'; diff --git a/x-pack/plugins/infra/public/pages/link_to/link_to.tsx b/x-pack/plugins/infra/public/pages/link_to/link_to.tsx new file mode 100644 index 0000000000000..e00013a354747 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/link_to/link_to.tsx @@ -0,0 +1,35 @@ +/* + * 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 React from 'react'; +import { match as RouteMatch, Redirect, Route, Switch } from 'react-router-dom'; + +import { RedirectToNodeDetail } from './redirect_to_node_detail'; +import { RedirectToNodeLogs } from './redirect_to_node_logs'; + +interface LinkToPageProps { + match: RouteMatch<{}>; +} + +export class LinkToPage extends React.Component { + public render() { + const { match } = this.props; + + return ( + + + + + + ); + } +} diff --git a/x-pack/plugins/infra/public/pages/link_to/query_params.ts b/x-pack/plugins/infra/public/pages/link_to/query_params.ts new file mode 100644 index 0000000000000..8b28b7df113ac --- /dev/null +++ b/x-pack/plugins/infra/public/pages/link_to/query_params.ts @@ -0,0 +1,24 @@ +/* + * 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 { Location } from 'history'; + +import { getParamFromQueryString, getQueryStringFromLocation } from '../../utils/url_state'; + +export const getTimeFromLocation = (location: Location) => { + const timeParam = getParamFromQueryString(getQueryStringFromLocation(location), 'time'); + return timeParam ? parseFloat(timeParam) : NaN; +}; + +export const getToFromLocation = (location: Location) => { + const timeParam = getParamFromQueryString(getQueryStringFromLocation(location), 'to'); + return timeParam ? parseFloat(timeParam) : NaN; +}; + +export const getFromFromLocation = (location: Location) => { + const timeParam = getParamFromQueryString(getQueryStringFromLocation(location), 'from'); + return timeParam ? parseFloat(timeParam) : NaN; +}; diff --git a/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_detail.tsx b/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_detail.tsx new file mode 100644 index 0000000000000..889412dfba874 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_detail.tsx @@ -0,0 +1,45 @@ +/* + * 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 React from 'react'; +import { Redirect, RouteComponentProps } from 'react-router-dom'; +import { InfraNodeType } from 'x-pack/plugins/infra/common/graphql/types'; +import { replaceMetricTimeInQueryString } from '../../containers/metrics/with_metrics_time'; +import { getFromFromLocation, getToFromLocation } from './query_params'; + +type RedirectToNodeDetailProps = RouteComponentProps<{ + nodeName: string; + nodeType: InfraNodeType; +}>; + +export const RedirectToNodeDetail = ({ + match: { + params: { nodeName, nodeType }, + }, + location, +}: RedirectToNodeDetailProps) => { + const searchString = replaceMetricTimeInQueryString( + getFromFromLocation(location), + getToFromLocation(location) + )(''); + + return ; +}; + +export const getNodeDetailUrl = ({ + nodeType, + nodeName, + to, + from, +}: { + nodeType: InfraNodeType; + nodeName: string; + to?: number; + from?: number; +}) => { + const args = to && from ? `?to=${to}&from=${from}` : ''; + return `#/link-to/${nodeType}-detail/${nodeName}${args}`; +}; diff --git a/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx b/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx new file mode 100644 index 0000000000000..821bb1126658d --- /dev/null +++ b/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx @@ -0,0 +1,53 @@ +/* + * 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 compose from 'lodash/fp/compose'; +import React from 'react'; +import { Redirect, RouteComponentProps } from 'react-router-dom'; + +import { InfraNodeType } from 'x-pack/plugins/infra/common/graphql/types'; +import { LoadingPage } from '../../components/loading_page'; +import { replaceLogFilterInQueryString } from '../../containers/logs/with_log_filter'; +import { replaceLogPositionInQueryString } from '../../containers/logs/with_log_position'; +import { WithSource } from '../../containers/with_source'; +import { getTimeFromLocation } from './query_params'; + +type RedirectToNodeLogsProps = RouteComponentProps<{ + nodeName: string; + nodeType: InfraNodeType; +}>; + +export const RedirectToNodeLogs = ({ + match: { + params: { nodeName, nodeType }, + }, + location, +}: RedirectToNodeLogsProps) => ( + + {({ configuredFields }) => { + if (!configuredFields) { + return ; + } + + const searchString = compose( + replaceLogFilterInQueryString(`${configuredFields[nodeType]}: ${nodeName}`), + replaceLogPositionInQueryString(getTimeFromLocation(location)) + )(''); + + return ; + }} + +); + +export const getNodeLogsUrl = ({ + nodeName, + nodeType, + time, +}: { + nodeName: string; + nodeType: InfraNodeType; + time?: number; +}) => [`#/link-to/${nodeType}-logs/`, nodeName, ...(time ? [`?time=${time}`] : [])].join(''); diff --git a/x-pack/plugins/infra/public/pages/logs/index.ts b/x-pack/plugins/infra/public/pages/logs/index.ts new file mode 100644 index 0000000000000..c2ae23acdc9b0 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/logs/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { LogsPage } from './logs'; diff --git a/x-pack/plugins/infra/public/pages/logs/logs.tsx b/x-pack/plugins/infra/public/pages/logs/logs.tsx new file mode 100644 index 0000000000000..7b24cbaa52609 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/logs/logs.tsx @@ -0,0 +1,60 @@ +/* + * 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 React from 'react'; + +import { LogsPageContent } from './page_content'; +import { LogsToolbar } from './toolbar'; + +import { EmptyPage } from '../../components/empty_page'; +import { Header } from '../../components/header'; +import { ColumnarPage } from '../../components/page'; + +import { LogsBetaBadgeHeaderSection } from '../../components/beta_badge_header_section'; +import { WithLogFilterUrlState } from '../../containers/logs/with_log_filter'; +import { WithLogMinimapUrlState } from '../../containers/logs/with_log_minimap'; +import { WithLogPositionUrlState } from '../../containers/logs/with_log_position'; +import { WithLogTextviewUrlState } from '../../containers/logs/with_log_textview'; +import { WithKibanaChrome } from '../../containers/with_kibana_chrome'; +import { WithSource } from '../../containers/with_source'; + +export class LogsPage extends React.Component { + public render() { + return ( + + + {({ logIndicesExist }) => + logIndicesExist || logIndicesExist === null ? ( + <> + + + + +
      } + breadcrumbs={[{ text: 'Logs' }]} + /> + + + + ) : ( + + {({ basePath }) => ( + + )} + + ) + } + + + ); + } +} diff --git a/x-pack/plugins/infra/public/pages/logs/page_content.tsx b/x-pack/plugins/infra/public/pages/logs/page_content.tsx new file mode 100644 index 0000000000000..e2efd2f1a333a --- /dev/null +++ b/x-pack/plugins/infra/public/pages/logs/page_content.tsx @@ -0,0 +1,122 @@ +/* + * 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 React from 'react'; +import styled from 'styled-components'; + +import { AutoSizer } from '../../components/auto_sizer'; +import { LogMinimap } from '../../components/logging/log_minimap'; +import { ScrollableLogTextStreamView } from '../../components/logging/log_text_stream'; +import { PageContent } from '../../components/page'; +import { WithLogMinimap } from '../../containers/logs/with_log_minimap'; +import { WithLogPosition } from '../../containers/logs/with_log_position'; +import { WithLogTextview } from '../../containers/logs/with_log_textview'; +import { WithStreamItems } from '../../containers/logs/with_stream_items'; +import { WithSummary } from '../../containers/logs/with_summary'; + +export const LogsPageContent: React.SFC = () => ( + + + {({ measureRef, content: { width = 0, height = 0 } }) => ( + + + {({ textScale, wrap }) => ( + + {({ + isAutoReloading, + jumpToTargetPosition, + reportVisiblePositions, + targetPosition, + }) => ( + + {({ + hasMoreAfterEnd, + hasMoreBeforeStart, + isLoadingMore, + isReloading, + items, + lastLoadedTime, + loadNewerEntries, + }) => ( + + )} + + )} + + )} + + + )} + + + {({ measureRef, content: { width = 0, height = 0 } }) => { + return ( + + + {({ intervalSize }) => ( + + {({ buckets }) => ( + + {({ + jumpToTargetPosition, + reportVisibleSummary, + visibleMidpointTime, + visibleTimeInterval, + }) => ( + + )} + + )} + + )} + + + ); + }} + + +); + +const LogPageEventStreamColumn = styled.div` + flex: 1 0 0%; + overflow: hidden; + display: flex; + flex-direction: column; +`; + +const LogPageMinimapColumn = styled.div` + flex: 1 0 0%; + overflow: hidden; + min-width: 100px; + max-width: 100px; + display: flex; + flex-direction: column; +`; diff --git a/x-pack/plugins/infra/public/pages/logs/toolbar.tsx b/x-pack/plugins/infra/public/pages/logs/toolbar.tsx new file mode 100644 index 0000000000000..7c7c7004c4674 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/logs/toolbar.tsx @@ -0,0 +1,98 @@ +/* + * 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 { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import React from 'react'; + +import { AutocompleteField } from '../../components/autocomplete_field'; +import { Toolbar } from '../../components/eui'; +import { LogCustomizationMenu } from '../../components/logging/log_customization_menu'; +import { LogMinimapScaleControls } from '../../components/logging/log_minimap_scale_controls'; +import { LogTextScaleControls } from '../../components/logging/log_text_scale_controls'; +import { LogTextWrapControls } from '../../components/logging/log_text_wrap_controls'; +import { LogTimeControls } from '../../components/logging/log_time_controls'; +import { WithLogFilter } from '../../containers/logs/with_log_filter'; +import { WithLogMinimap } from '../../containers/logs/with_log_minimap'; +import { WithLogPosition } from '../../containers/logs/with_log_position'; +import { WithLogTextview } from '../../containers/logs/with_log_textview'; +import { WithKueryAutocompletion } from '../../containers/with_kuery_autocompletion'; + +export const LogsToolbar: React.SFC = () => ( + + + + + {({ isLoadingSuggestions, loadSuggestions, suggestions }) => ( + + {({ + applyFilterQueryFromKueryExpression, + /* filterQuery,*/ + filterQueryDraft, + isFilterQueryDraftValid, + setFilterQueryDraftFromKueryExpression, + }) => ( + + )} + + )} + + + + + + {({ availableIntervalSizes, intervalSize, setIntervalSize }) => ( + + )} + + + {({ availableTextScales, textScale, setTextScale, setTextWrap, wrap }) => ( + <> + + + + )} + + + + + + {({ + visibleMidpointTime, + isAutoReloading, + jumpToTargetPositionTime, + startLiveStreaming, + stopLiveStreaming, + }) => ( + + )} + + + + +); diff --git a/x-pack/plugins/infra/public/pages/metrics/index.tsx b/x-pack/plugins/infra/public/pages/metrics/index.tsx new file mode 100644 index 0000000000000..8e4dd37b84a71 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/metrics/index.tsx @@ -0,0 +1,234 @@ +/* + * 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 React from 'react'; + +import { + EuiHideFor, + EuiPage, + EuiPageBody, + EuiPageContent, + EuiPageHeader, + EuiPageHeaderSection, + EuiPageSideBar, + EuiShowFor, + EuiSideNav, + EuiTitle, +} from '@elastic/eui'; +import styled, { withTheme } from 'styled-components'; +import { InfraNodeType, InfraTimerangeInput } from '../../../common/graphql/types'; +import { AutoSizer } from '../../components/auto_sizer'; +import { InfrastructureBetaBadgeHeaderSection } from '../../components/beta_badge_header_section'; +import { Header } from '../../components/header'; +import { Metrics } from '../../components/metrics'; +import { MetricsTimeControls } from '../../components/metrics/time_controls'; +import { ColumnarPage, PageContent } from '../../components/page'; +import { WithCapabilities } from '../../containers/capabilities/with_capabilites'; +import { WithMetrics } from '../../containers/metrics/with_metrics'; +import { + WithMetricsTime, + WithMetricsTimeUrlState, +} from '../../containers/metrics/with_metrics_time'; +import { WithOptions } from '../../containers/with_options'; +import { Error, ErrorPageBody } from '../error'; +import { layoutCreators } from './layouts'; +import { InfraMetricLayoutSection } from './layouts/types'; + +const DetailPageContent = styled(PageContent)` + overflow: auto; + background-color: ${props => props.theme.eui.euiColorLightestShade}; +`; + +const EuiPageContentWithRelative = styled(EuiPageContent)` + position: relative; +`; + +interface Props { + theme: { eui: any }; + match: { + params: { + type: string; + node: string; + }; + }; +} + +class MetricDetailPage extends React.PureComponent { + public readonly state = { + isSideNavOpenOnMobile: false, + }; + + public render() { + const nodeName = this.props.match.params.node; + const nodeType = this.props.match.params.type as InfraNodeType; + const layoutCreator = layoutCreators[nodeType]; + if (!layoutCreator) { + return ; + } + const layouts = layoutCreator(this.props.theme); + const breadcrumbs = [{ text: nodeName }]; + + return ( + +
      } + breadcrumbs={breadcrumbs} + /> + + + + {({ sourceId }) => ( + + {({ + currentTimeRange, + isAutoReloading, + setRangeTime, + startMetricsAutoReload, + stopMetricsAutoReload, + }) => ( + + {({ filteredLayouts }) => { + return ( + + {({ metrics, error, loading }) => { + if (error) { + return ; + } + const sideNav = filteredLayouts.map(item => { + return { + name: item.label, + id: item.id, + items: item.sections.map(section => ({ + id: section.id as string, + name: section.label, + onClick: this.handleClick(section), + })), + }; + }); + return ( + + + + + + + + + + + + + {({ measureRef, bounds: { width = 0 } }) => { + return ( + + + + + + + +

      {nodeName}

      +
      +
      + +
      +
      +
      + + + 0 && isAutoReloading + ? false + : loading + } + onChangeRangeTime={setRangeTime} + /> + +
      +
      + ); + }} +
      +
      + ); + }} +
      + ); + }} +
      + )} +
      + )} +
      +
      + + ); + } + + private handleClick = (section: InfraMetricLayoutSection) => () => { + const id = section.linkToId || section.id; + const el = document.getElementById(id); + if (el) { + el.scrollIntoView(); + } + }; + + private toggleOpenOnMobile = () => { + this.setState({ + isSideNavOpenOnMobile: !this.state.isSideNavOpenOnMobile, + }); + }; +} + +export const MetricDetail = withTheme(MetricDetailPage); + +const EuiSideNavContainer = styled.div` + position: fixed; + z-index: 1; + height: 88vh; + background-color: #f5f5f5; + padding-left: 16px; + margin-left: -16px; + overflow-y: auto; + overflow-x: hidden; +`; + +const MetricsDetailsPageColumn = styled.div` + flex: 1 0 0%; + display: flex; + flex-direction: column; +`; + +const MetricsTitleTimeRangeContainer = styled.div` + display: flex; + flex-flow: row wrap; + justify-content: space-between; +`; diff --git a/x-pack/plugins/infra/public/pages/metrics/layouts/container.ts b/x-pack/plugins/infra/public/pages/metrics/layouts/container.ts new file mode 100644 index 0000000000000..181f35435b9a7 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/metrics/layouts/container.ts @@ -0,0 +1,131 @@ +/* + * 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 { InfraMetric } from '../../../../common/graphql/types'; +import { InfraFormatterType } from '../../../lib/lib'; +import { nginxLayoutCreator } from './nginx'; +import { + InfraMetricLayoutCreator, + InfraMetricLayoutSectionType, + InfraMetricLayoutVisualizationType, +} from './types'; + +export const containerLayoutCreator: InfraMetricLayoutCreator = theme => [ + { + id: 'containerOverview', + label: 'Container', + sections: [ + { + id: InfraMetric.containerOverview, + label: 'Overview', + requires: ['docker.cpu', 'docker.memory', 'docker.network'], + type: InfraMetricLayoutSectionType.gauges, + visConfig: { + seriesOverrides: { + cpu: { + name: 'CPU Usage', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + memory: { + name: 'Memory Usage', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + rx: { + name: 'Inbound (RX)', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + }, + tx: { + name: 'Outbound (TX)', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + }, + }, + }, + }, + { + id: InfraMetric.containerCpuUsage, + label: 'CPU Usage', + requires: ['docker.cpu'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + stacked: true, + type: InfraMetricLayoutVisualizationType.area, + formatter: InfraFormatterType.percent, + seriesOverrides: { + cpu: { color: theme.eui.euiColorVis1 }, + }, + }, + }, + { + id: InfraMetric.containerMemory, + label: 'Memory Usage', + requires: ['docker.memory'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + stacked: true, + type: InfraMetricLayoutVisualizationType.area, + formatter: InfraFormatterType.percent, + seriesOverrides: { + memory: { color: theme.eui.euiColorVis1 }, + }, + }, + }, + { + id: InfraMetric.containerNetworkTraffic, + label: 'Network Traffic', + requires: ['docker.network'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + type: InfraMetricLayoutVisualizationType.area, + seriesOverrides: { + rx: { color: theme.eui.euiColorVis1, name: 'in' }, + tx: { color: theme.eui.euiColorVis2, name: 'out' }, + }, + }, + }, + { + id: InfraMetric.containerDiskIOOps, + label: 'Disk IO (Ops)', + requires: ['docker.diskio'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.number, + formatterTemplate: '{{value}}/s', + type: InfraMetricLayoutVisualizationType.area, + seriesOverrides: { + read: { color: theme.eui.euiColorVis1, name: 'reads' }, + write: { color: theme.eui.euiColorVis2, name: 'writes' }, + }, + }, + }, + { + id: InfraMetric.containerDiskIOBytes, + label: 'Disk IO (Bytes)', + requires: ['docker.diskio'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.bytes, + formatterTemplate: '{{value}}/s', + type: InfraMetricLayoutVisualizationType.area, + seriesOverrides: { + read: { color: theme.eui.euiColorVis1, name: 'reads' }, + write: { color: theme.eui.euiColorVis2, name: 'writes' }, + }, + }, + }, + ], + }, + ...nginxLayoutCreator(theme), +]; diff --git a/x-pack/plugins/infra/public/pages/metrics/layouts/host.ts b/x-pack/plugins/infra/public/pages/metrics/layouts/host.ts new file mode 100644 index 0000000000000..83c4f6ad52b7d --- /dev/null +++ b/x-pack/plugins/infra/public/pages/metrics/layouts/host.ts @@ -0,0 +1,219 @@ +/* + * 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 { InfraMetric } from '../../../../common/graphql/types'; +import { InfraFormatterType } from '../../../lib/lib'; +import { nginxLayoutCreator } from './nginx'; +import { + InfraMetricLayoutCreator, + InfraMetricLayoutSectionType, + InfraMetricLayoutVisualizationType, +} from './types'; + +export const hostLayoutCreator: InfraMetricLayoutCreator = theme => [ + { + id: 'hostOverview', + label: 'Host', + sections: [ + { + id: InfraMetric.hostSystemOverview, + linkToId: 'hostOverview', + label: 'Overview', + requires: ['system.cpu', 'system.load', 'system.memory', 'system.network'], + type: InfraMetricLayoutSectionType.gauges, + visConfig: { + seriesOverrides: { + cpu: { + name: 'CPU Usage', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + load: { name: 'Load (5m)', color: theme.eui.euiColorFullShade }, + memory: { + name: 'Memory Usage', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + rx: { + name: 'Inbound (RX)', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + }, + tx: { + name: 'Outbound (TX)', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + }, + }, + }, + }, + { + id: InfraMetric.hostCpuUsage, + label: 'CPU Usage', + requires: ['system.cpu'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + stacked: true, + type: InfraMetricLayoutVisualizationType.area, + formatter: InfraFormatterType.percent, + bounds: { min: 0, max: 1 }, + seriesOverrides: { + user: { color: theme.eui.euiColorVis0 }, + system: { color: theme.eui.euiColorVis2 }, + steal: { color: theme.eui.euiColorVis9 }, + irq: { color: theme.eui.euiColorVis4 }, + softirq: { color: theme.eui.euiColorVis6 }, + iowait: { color: theme.eui.euiColorVis7 }, + nice: { color: theme.eui.euiColorVis5 }, + }, + }, + }, + { + id: InfraMetric.hostLoad, + label: 'Load', + requires: ['system.load'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + seriesOverrides: { + load_1m: { color: theme.eui.euiColorVis0, name: '1m' }, + load_5m: { color: theme.eui.euiColorVis1, name: '5m' }, + load_15m: { color: theme.eui.euiColorVis3, name: '15m' }, + }, + }, + }, + { + id: InfraMetric.hostMemoryUsage, + label: 'MemoryUsage', + requires: ['system.memory'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + stacked: true, + formatter: InfraFormatterType.bytes, + type: InfraMetricLayoutVisualizationType.area, + seriesOverrides: { + used: { color: theme.eui.euiColorVis2 }, + free: { color: theme.eui.euiColorVis0 }, + cache: { color: theme.eui.euiColorVis1 }, + }, + }, + }, + { + id: InfraMetric.hostNetworkTraffic, + label: 'Network Traffic', + requires: ['system.network'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + type: InfraMetricLayoutVisualizationType.area, + seriesOverrides: { + rx: { color: theme.eui.euiColorVis1, name: 'in' }, + tx: { color: theme.eui.euiColorVis2, name: 'out' }, + }, + }, + }, + ], + }, + { + id: 'k8sOverview', + label: 'Kubernetes', + sections: [ + { + id: InfraMetric.hostK8sOverview, + linkToId: 'k8sOverview', + label: 'Overview', + requires: ['kubernetes.node'], + type: InfraMetricLayoutSectionType.gauges, + visConfig: { + seriesOverrides: { + cpucap: { + name: 'CPU Capacity', + color: 'secondary', + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + load: { name: 'Load (5m)', color: 'secondary' }, + memorycap: { + name: 'Memory Capacity', + color: 'secondary', + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + podcap: { + name: 'Pod Capacity', + color: 'secondary', + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + diskcap: { + name: 'Disk Capacity', + color: 'secondary', + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + }, + }, + }, + { + id: InfraMetric.hostK8sCpuCap, + label: 'Node CPU Capacity', + requires: ['kubernetes.node'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.abbreviatedNumber, + seriesOverrides: { + capacity: { color: theme.eui.euiColorVis2 }, + used: { color: theme.eui.euiColorVis1, type: InfraMetricLayoutVisualizationType.area }, + }, + }, + }, + { + id: InfraMetric.hostK8sMemoryCap, + label: 'Node Memory Capacity', + requires: ['kubernetes.node'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.bytes, + seriesOverrides: { + capacity: { color: theme.eui.euiColorVis2 }, + used: { color: theme.eui.euiColorVis1, type: InfraMetricLayoutVisualizationType.area }, + }, + }, + }, + { + id: InfraMetric.hostK8sDiskCap, + label: 'Node Disk Capacity', + requires: ['kubernetes.node'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.bytes, + seriesOverrides: { + capacity: { color: theme.eui.euiColorVis2 }, + used: { color: theme.eui.euiColorVis1, type: InfraMetricLayoutVisualizationType.area }, + }, + }, + }, + { + id: InfraMetric.hostK8sPodCap, + label: 'Node Pod Capacity', + requires: ['kubernetes.node'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.number, + seriesOverrides: { + capacity: { color: theme.eui.euiColorVis2 }, + used: { color: theme.eui.euiColorVis1, type: InfraMetricLayoutVisualizationType.area }, + }, + }, + }, + ], + }, + ...nginxLayoutCreator(theme), +]; diff --git a/x-pack/plugins/infra/public/pages/metrics/layouts/index.ts b/x-pack/plugins/infra/public/pages/metrics/layouts/index.ts new file mode 100644 index 0000000000000..d81bde64e230b --- /dev/null +++ b/x-pack/plugins/infra/public/pages/metrics/layouts/index.ts @@ -0,0 +1,20 @@ +/* + * 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 { containerLayoutCreator } from './container'; +import { hostLayoutCreator } from './host'; +import { podLayoutCreator } from './pod'; +import { InfraMetricLayoutCreator } from './types'; + +interface Layouts { + [key: string]: InfraMetricLayoutCreator; +} + +export const layoutCreators: Layouts = { + host: hostLayoutCreator, + pod: podLayoutCreator, + container: containerLayoutCreator, +}; diff --git a/x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts b/x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts new file mode 100644 index 0000000000000..f03580feb72c0 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts @@ -0,0 +1,83 @@ +/* + * 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 { InfraMetric } from '../../../../common/graphql/types'; +import { InfraFormatterType } from '../../../lib/lib'; +import { + InfraMetricLayoutCreator, + InfraMetricLayoutSectionType, + InfraMetricLayoutVisualizationType, +} from './types'; + +export const nginxLayoutCreator: InfraMetricLayoutCreator = theme => [ + { + id: 'nginxOverview', + label: 'Nginx', + requires: ['nginx'], + sections: [ + { + id: InfraMetric.nginxHits, + label: 'Hits', + requires: ['nginx.access'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.abbreviatedNumber, + stacked: true, + seriesOverrides: { + '200s': { color: theme.eui.euiColorVis1, type: InfraMetricLayoutVisualizationType.bar }, + '300s': { color: theme.eui.euiColorVis5, type: InfraMetricLayoutVisualizationType.bar }, + '400s': { color: theme.eui.euiColorVis2, type: InfraMetricLayoutVisualizationType.bar }, + '500s': { color: theme.eui.euiColorVis9, type: InfraMetricLayoutVisualizationType.bar }, + }, + }, + }, + { + id: InfraMetric.nginxRequestRate, + label: 'Request Rate', + requires: ['nginx.statusstub'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.abbreviatedNumber, + formatterTemplate: '{{value}}/s', + seriesOverrides: { + rate: { color: theme.eui.euiColorVis1, type: InfraMetricLayoutVisualizationType.area }, + }, + }, + }, + { + id: InfraMetric.nginxActiveConnections, + label: 'Active Connections', + requires: ['nginx.statusstub'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.abbreviatedNumber, + seriesOverrides: { + connections: { + color: theme.eui.euiColorVis1, + type: InfraMetricLayoutVisualizationType.bar, + }, + }, + }, + }, + { + id: InfraMetric.nginxRequestsPerConnection, + label: 'Requests per Connections', + requires: ['nginx.statusstub'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.abbreviatedNumber, + seriesOverrides: { + reqPerConns: { + color: theme.eui.euiColorVis1, + type: InfraMetricLayoutVisualizationType.bar, + name: 'reqs per conn', + }, + }, + }, + }, + ], + }, +]; diff --git a/x-pack/plugins/infra/public/pages/metrics/layouts/pod.ts b/x-pack/plugins/infra/public/pages/metrics/layouts/pod.ts new file mode 100644 index 0000000000000..8794acee43848 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/metrics/layouts/pod.ts @@ -0,0 +1,100 @@ +/* + * 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 { InfraMetric } from '../../../../common/graphql/types'; +import { InfraFormatterType } from '../../../lib/lib'; +import { nginxLayoutCreator } from './nginx'; +import { + InfraMetricLayoutCreator, + InfraMetricLayoutSectionType, + InfraMetricLayoutVisualizationType, +} from './types'; + +export const podLayoutCreator: InfraMetricLayoutCreator = theme => [ + { + id: 'podOverview', + label: 'Pod Overview', + sections: [ + { + id: InfraMetric.podOverview, + label: 'Pod Overview', + requires: ['kubernetes.pod'], + type: InfraMetricLayoutSectionType.gauges, + visConfig: { + seriesOverrides: { + cpu: { + name: 'CPU Usage', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + memory: { + name: 'Memory Usage', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.percent, + gaugeMax: 1, + }, + rx: { + name: 'Inbound (RX)', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + }, + tx: { + name: 'Outbound (TX)', + color: theme.eui.euiColorFullShade, + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + }, + }, + }, + }, + { + id: InfraMetric.podCpuUsage, + label: 'CPU Usage', + requires: ['kubernetes.pod'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.percent, + seriesOverrides: { + cpu: { color: theme.eui.euiColorVis1, type: InfraMetricLayoutVisualizationType.area }, + }, + }, + }, + { + id: InfraMetric.podMemoryUsage, + label: 'Memory Usage', + requires: ['kubernetes.pod'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.percent, + seriesOverrides: { + memory: { + color: theme.eui.euiColorVis1, + type: InfraMetricLayoutVisualizationType.area, + }, + }, + }, + }, + { + id: InfraMetric.podNetworkTraffic, + label: 'Network Traffic', + requires: ['kubernetes.pod'], + type: InfraMetricLayoutSectionType.chart, + visConfig: { + formatter: InfraFormatterType.bits, + formatterTemplate: '{{value}}/s', + type: InfraMetricLayoutVisualizationType.area, + seriesOverrides: { + rx: { color: theme.eui.euiColorVis1, name: 'in' }, + tx: { color: theme.eui.euiColorVis2, name: 'out' }, + }, + }, + }, + ], + }, + ...nginxLayoutCreator(theme), +]; diff --git a/x-pack/plugins/infra/public/pages/metrics/layouts/types.ts b/x-pack/plugins/infra/public/pages/metrics/layouts/types.ts new file mode 100644 index 0000000000000..d45e505a7d788 --- /dev/null +++ b/x-pack/plugins/infra/public/pages/metrics/layouts/types.ts @@ -0,0 +1,57 @@ +/* + * 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 { InfraMetric } from '../../../../common/graphql/types'; +import { InfraFormatterType } from '../../../lib/lib'; + +export enum InfraMetricLayoutVisualizationType { + line = 'line', + area = 'area', + bar = 'bar', +} + +export enum InfraMetricLayoutSectionType { + chart = 'chart', + gauges = 'gauges', +} + +interface SeriesOverrides { + type?: InfraMetricLayoutVisualizationType; + color: string; + name?: string; + formatter?: InfraFormatterType; + formatterTemplate?: string; +} + +interface SeriesOverrideObject { + [name: string]: SeriesOverrides | undefined; +} + +export interface InfraMetricLayoutVisualizationConfig { + stacked?: boolean; + type?: InfraMetricLayoutVisualizationType; + formatter?: InfraFormatterType; + formatterTemplate?: string; + bounds?: { min: number; max: number }; + seriesOverrides: SeriesOverrideObject; +} + +export interface InfraMetricLayoutSection { + id: InfraMetric; + linkToId?: string; + label: string; + requires: string[]; + visConfig: InfraMetricLayoutVisualizationConfig; + type: InfraMetricLayoutSectionType; +} + +export interface InfraMetricLayout { + id: string; + label: string; + sections: InfraMetricLayoutSection[]; +} + +export type InfraMetricLayoutCreator = (theme: { eui: any }) => InfraMetricLayout[]; diff --git a/x-pack/plugins/infra/public/register_feature.ts b/x-pack/plugins/infra/public/register_feature.ts new file mode 100644 index 0000000000000..a999adc30503a --- /dev/null +++ b/x-pack/plugins/infra/public/register_feature.ts @@ -0,0 +1,34 @@ +/* + * 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 { + FeatureCatalogueCategory, + FeatureCatalogueRegistryProvider, +} from 'ui/registry/feature_catalogue'; + +const APP_ID = 'infra'; + +FeatureCatalogueRegistryProvider.register(() => ({ + id: 'infraops', + title: 'Infrastructure', + description: + 'Explore infrastructure metrics and logs for common servers, containers, and services.', + icon: 'infraApp', + path: `/app/${APP_ID}#home`, + showOnHomePage: true, + category: FeatureCatalogueCategory.DATA, +})); + +FeatureCatalogueRegistryProvider.register(() => ({ + id: 'infralogging', + title: 'Logs', + description: + 'Stream logs in real time or scroll through historical views in a console-like experience.', + icon: 'loggingApp', + path: `/app/${APP_ID}#logs`, + showOnHomePage: true, + category: FeatureCatalogueCategory.DATA, +})); diff --git a/x-pack/plugins/infra/public/routes.tsx b/x-pack/plugins/infra/public/routes.tsx new file mode 100644 index 0000000000000..ca23ebae2279f --- /dev/null +++ b/x-pack/plugins/infra/public/routes.tsx @@ -0,0 +1,34 @@ +/* + * 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 { History } from 'history'; +import React from 'react'; +import { Redirect, Route, Router, Switch } from 'react-router-dom'; + +import { NotFoundPage } from './pages/404'; +import { HomePage } from './pages/home'; +import { LinkToPage } from './pages/link_to'; +import { LogsPage } from './pages/logs'; +import { MetricDetail } from './pages/metrics'; + +interface RouterProps { + history: History; +} + +export const PageRouter: React.SFC = ({ history }) => { + return ( + + + + + + + + + + + ); +}; diff --git a/x-pack/plugins/infra/public/store/actions.ts b/x-pack/plugins/infra/public/store/actions.ts new file mode 100644 index 0000000000000..ee9a2858f1c34 --- /dev/null +++ b/x-pack/plugins/infra/public/store/actions.ts @@ -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. + */ + +export { + logFilterActions, + logMinimapActions, + logPositionActions, + logTextviewActions, + metricTimeActions, + waffleFilterActions, + waffleTimeActions, + waffleOptionsActions, +} from './local'; +export { logEntriesActions, logSummaryActions } from './remote'; diff --git a/x-pack/plugins/infra/public/store/epics.ts b/x-pack/plugins/infra/public/store/epics.ts new file mode 100644 index 0000000000000..4df8e1368ca01 --- /dev/null +++ b/x-pack/plugins/infra/public/store/epics.ts @@ -0,0 +1,13 @@ +/* + * 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 { combineEpics } from 'redux-observable'; + +import { createLocalEpic } from './local'; +import { createRemoteEpic } from './remote'; + +export const createRootEpic = () => + combineEpics(createLocalEpic(), createRemoteEpic()); diff --git a/x-pack/plugins/infra/public/store/index.ts b/x-pack/plugins/infra/public/store/index.ts new file mode 100644 index 0000000000000..025da41ec40d5 --- /dev/null +++ b/x-pack/plugins/infra/public/store/index.ts @@ -0,0 +1,11 @@ +/* + * 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 * from './actions'; +export * from './epics'; +export * from './reducer'; +export * from './selectors'; +export { createStore } from './store'; diff --git a/x-pack/plugins/infra/public/store/local/actions.ts b/x-pack/plugins/infra/public/store/local/actions.ts new file mode 100644 index 0000000000000..8b9e0c9f5b58a --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/actions.ts @@ -0,0 +1,14 @@ +/* + * 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 { logFilterActions } from './log_filter'; +export { logMinimapActions } from './log_minimap'; +export { logPositionActions } from './log_position'; +export { logTextviewActions } from './log_textview'; +export { metricTimeActions } from './metric_time'; +export { waffleFilterActions } from './waffle_filter'; +export { waffleTimeActions } from './waffle_time'; +export { waffleOptionsActions } from './waffle_options'; diff --git a/x-pack/plugins/infra/public/store/local/epic.ts b/x-pack/plugins/infra/public/store/local/epic.ts new file mode 100644 index 0000000000000..274a74b1627c5 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/epic.ts @@ -0,0 +1,18 @@ +/* + * 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 { combineEpics } from 'redux-observable'; + +import { createLogPositionEpic } from './log_position'; +import { createMetricTimeEpic } from './metric_time'; +import { createWaffleTimeEpic } from './waffle_time'; + +export const createLocalEpic = () => + combineEpics( + createLogPositionEpic(), + createWaffleTimeEpic(), + createMetricTimeEpic() + ); diff --git a/x-pack/plugins/infra/public/store/local/index.ts b/x-pack/plugins/infra/public/store/local/index.ts new file mode 100644 index 0000000000000..c2843320bfd0c --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/index.ts @@ -0,0 +1,10 @@ +/* + * 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 * from './actions'; +export * from './epic'; +export * from './reducer'; +export * from './selectors'; diff --git a/x-pack/plugins/infra/public/store/local/log_filter/actions.ts b/x-pack/plugins/infra/public/store/local/log_filter/actions.ts new file mode 100644 index 0000000000000..acf28ab6092c6 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_filter/actions.ts @@ -0,0 +1,15 @@ +/* + * 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 actionCreatorFactory from 'typescript-fsa'; + +import { FilterQuery } from './reducer'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/log_filter'); + +export const setLogFilterQueryDraft = actionCreator('SET_LOG_FILTER_QUERY_DRAFT'); + +export const applyLogFilterQuery = actionCreator('APPLY_LOG_FILTER_QUERY'); diff --git a/x-pack/plugins/infra/public/store/local/log_filter/index.ts b/x-pack/plugins/infra/public/store/local/log_filter/index.ts new file mode 100644 index 0000000000000..369f5f013d669 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_filter/index.ts @@ -0,0 +1,11 @@ +/* + * 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 * as logFilterActions from './actions'; +import * as logFilterSelectors from './selectors'; + +export { logFilterActions, logFilterSelectors }; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/log_filter/reducer.ts b/x-pack/plugins/infra/public/store/local/log_filter/reducer.ts new file mode 100644 index 0000000000000..c541293b6f273 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_filter/reducer.ts @@ -0,0 +1,38 @@ +/* + * 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 { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { applyLogFilterQuery, setLogFilterQueryDraft } from './actions'; + +export interface KueryFilterQuery { + kind: 'kuery'; + expression: string; +} + +export type FilterQuery = KueryFilterQuery; + +export interface LogFilterState { + filterQuery: KueryFilterQuery | null; + filterQueryDraft: KueryFilterQuery | null; +} + +export const initialLogFilterState: LogFilterState = { + filterQuery: null, + filterQueryDraft: null, +}; + +export const logFilterReducer = reducerWithInitialState(initialLogFilterState) + .case(setLogFilterQueryDraft, (state, filterQueryDraft) => ({ + ...state, + filterQueryDraft, + })) + .case(applyLogFilterQuery, (state, filterQuery) => ({ + ...state, + filterQuery, + filterQueryDraft: filterQuery, + })) + .build(); diff --git a/x-pack/plugins/infra/public/store/local/log_filter/selectors.ts b/x-pack/plugins/infra/public/store/local/log_filter/selectors.ts new file mode 100644 index 0000000000000..b8e75e8080cfd --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_filter/selectors.ts @@ -0,0 +1,30 @@ +/* + * 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 { createSelector } from 'reselect'; + +import { fromKueryExpression } from 'ui/kuery'; + +import { LogFilterState } from './reducer'; + +export const selectLogFilterQuery = (state: LogFilterState) => state.filterQuery; + +export const selectLogFilterQueryDraft = (state: LogFilterState) => state.filterQueryDraft; + +export const selectIsLogFilterQueryDraftValid = createSelector( + selectLogFilterQueryDraft, + filterQueryDraft => { + if (filterQueryDraft && filterQueryDraft.kind === 'kuery') { + try { + fromKueryExpression(filterQueryDraft.expression); + } catch (err) { + return false; + } + } + + return true; + } +); diff --git a/x-pack/plugins/infra/public/store/local/log_minimap/actions.ts b/x-pack/plugins/infra/public/store/local/log_minimap/actions.ts new file mode 100644 index 0000000000000..019b1034b2bd9 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_minimap/actions.ts @@ -0,0 +1,11 @@ +/* + * 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 actionCreatorFactory from 'typescript-fsa'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/log_minimap'); + +export const setMinimapIntervalSize = actionCreator('SET_MINIMAP_INTERVAL_SIZE'); diff --git a/x-pack/plugins/infra/public/store/local/log_minimap/index.ts b/x-pack/plugins/infra/public/store/local/log_minimap/index.ts new file mode 100644 index 0000000000000..f75f5a8688f1c --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_minimap/index.ts @@ -0,0 +1,11 @@ +/* + * 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 * as logMinimapActions from './actions'; +import * as logMinimapSelectors from './selectors'; + +export { logMinimapActions, logMinimapSelectors }; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/log_minimap/reducer.ts b/x-pack/plugins/infra/public/store/local/log_minimap/reducer.ts new file mode 100644 index 0000000000000..e9bac97d05a11 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_minimap/reducer.ts @@ -0,0 +1,23 @@ +/* + * 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 { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { setMinimapIntervalSize } from './actions'; + +export interface LogMinimapState { + intervalSize: number; +} + +export const initialLogMinimapState: LogMinimapState = { + intervalSize: 1000 * 60 * 60 * 24, +}; + +export const logMinimapReducer = reducerWithInitialState(initialLogMinimapState) + .case(setMinimapIntervalSize, (state, intervalSize) => ({ + intervalSize, + })) + .build(); diff --git a/x-pack/plugins/infra/public/store/local/log_minimap/selectors.ts b/x-pack/plugins/infra/public/store/local/log_minimap/selectors.ts new file mode 100644 index 0000000000000..76abd4152f125 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_minimap/selectors.ts @@ -0,0 +1,9 @@ +/* + * 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 { LogMinimapState } from './reducer'; + +export const selectMinimapIntervalSize = (state: LogMinimapState) => state.intervalSize; diff --git a/x-pack/plugins/infra/public/store/local/log_position/actions.ts b/x-pack/plugins/infra/public/store/local/log_position/actions.ts new file mode 100644 index 0000000000000..0c677f17dd7ac --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_position/actions.ts @@ -0,0 +1,47 @@ +/* + * 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 actionCreatorFactory from 'typescript-fsa'; + +import { TimeKey } from '../../../../common/time'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/log_position'); + +export const jumpToTargetPosition = actionCreator('JUMP_TO_TARGET_POSITION'); + +export const jumpToTargetPositionTime = (time: number) => + jumpToTargetPosition({ + tiebreaker: 0, + time, + }); + +export interface ReportVisiblePositionsPayload { + pagesAfterEnd: number; + pagesBeforeStart: number; + endKey: TimeKey | null; + middleKey: TimeKey | null; + startKey: TimeKey | null; +} + +export const reportVisiblePositions = actionCreator( + 'REPORT_VISIBLE_POSITIONS' +); + +export interface ReportVisibleSummaryPayload { + start: number; + end: number; + bucketsOnPage: number; + pagesBeforeStart: number; + pagesAfterEnd: number; +} + +export const reportVisibleSummary = actionCreator( + 'REPORT_VISIBLE_SUMMARY' +); + +export const startAutoReload = actionCreator('START_AUTO_RELOAD'); + +export const stopAutoReload = actionCreator('STOP_AUTO_RELOAD'); diff --git a/x-pack/plugins/infra/public/store/local/log_position/epic.ts b/x-pack/plugins/infra/public/store/local/log_position/epic.ts new file mode 100644 index 0000000000000..01b9b6eb0bb42 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_position/epic.ts @@ -0,0 +1,23 @@ +/* + * 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 { Action } from 'redux'; +import { Epic } from 'redux-observable'; +import { timer } from 'rxjs'; +import { exhaustMap, filter, map, takeUntil } from 'rxjs/operators'; + +import { jumpToTargetPositionTime, startAutoReload, stopAutoReload } from './actions'; + +export const createLogPositionEpic = (): Epic => action$ => + action$.pipe( + filter(startAutoReload.match), + exhaustMap(({ payload }) => + timer(0, payload).pipe( + map(() => jumpToTargetPositionTime(Date.now())), + takeUntil(action$.pipe(filter(stopAutoReload.match))) + ) + ) + ); diff --git a/x-pack/plugins/infra/public/store/local/log_position/index.ts b/x-pack/plugins/infra/public/store/local/log_position/index.ts new file mode 100644 index 0000000000000..17e06348d18b2 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_position/index.ts @@ -0,0 +1,12 @@ +/* + * 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 * as logPositionActions from './actions'; +import * as logPositionSelectors from './selectors'; + +export { logPositionActions, logPositionSelectors }; +export * from './epic'; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/log_position/reducer.ts b/x-pack/plugins/infra/public/store/local/log_position/reducer.ts new file mode 100644 index 0000000000000..c87cb432c0442 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_position/reducer.ts @@ -0,0 +1,99 @@ +/* + * 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 { combineReducers } from 'redux'; +import { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { TimeKey } from '../../../../common/time'; +import { + jumpToTargetPosition, + reportVisiblePositions, + reportVisibleSummary, + startAutoReload, + stopAutoReload, +} from './actions'; + +interface ManualTargetPositionUpdatePolicy { + policy: 'manual'; +} + +interface IntervalTargetPositionUpdatePolicy { + policy: 'interval'; + interval: number; +} + +type TargetPositionUpdatePolicy = + | ManualTargetPositionUpdatePolicy + | IntervalTargetPositionUpdatePolicy; + +export interface LogPositionState { + targetPosition: TimeKey | null; + updatePolicy: TargetPositionUpdatePolicy; + visiblePositions: { + startKey: TimeKey | null; + middleKey: TimeKey | null; + endKey: TimeKey | null; + }; + visibleSummary: { + start: number | null; + end: number | null; + }; +} + +export const initialLogPositionState: LogPositionState = { + targetPosition: null, + updatePolicy: { + policy: 'manual', + }, + visiblePositions: { + endKey: null, + middleKey: null, + startKey: null, + }, + visibleSummary: { + start: null, + end: null, + }, +}; + +const targetPositionReducer = reducerWithInitialState(initialLogPositionState.targetPosition).case( + jumpToTargetPosition, + (state, target) => target +); + +const targetPositionUpdatePolicyReducer = reducerWithInitialState( + initialLogPositionState.updatePolicy +) + .case(startAutoReload, (state, interval) => ({ + policy: 'interval', + interval, + })) + .case(stopAutoReload, () => ({ + policy: 'manual', + })); + +const visiblePositionReducer = reducerWithInitialState( + initialLogPositionState.visiblePositions +).case(reportVisiblePositions, (state, { startKey, middleKey, endKey }) => ({ + endKey, + middleKey, + startKey, +})); + +const visibleSummaryReducer = reducerWithInitialState(initialLogPositionState.visibleSummary).case( + reportVisibleSummary, + (state, { start, end }) => ({ + start, + end, + }) +); + +export const logPositionReducer = combineReducers({ + targetPosition: targetPositionReducer, + updatePolicy: targetPositionUpdatePolicyReducer, + visiblePositions: visiblePositionReducer, + visibleSummary: visibleSummaryReducer, +}); diff --git a/x-pack/plugins/infra/public/store/local/log_position/selectors.ts b/x-pack/plugins/infra/public/store/local/log_position/selectors.ts new file mode 100644 index 0000000000000..dd26905d4005f --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_position/selectors.ts @@ -0,0 +1,56 @@ +/* + * 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 { createSelector } from 'reselect'; + +import { LogPositionState } from './reducer'; + +export const selectTargetPosition = (state: LogPositionState) => state.targetPosition; + +export const selectIsAutoReloading = (state: LogPositionState) => + state.updatePolicy.policy === 'interval'; + +export const selectFirstVisiblePosition = (state: LogPositionState) => + state.visiblePositions.startKey ? state.visiblePositions.startKey : null; + +export const selectMiddleVisiblePosition = (state: LogPositionState) => + state.visiblePositions.middleKey ? state.visiblePositions.middleKey : null; + +export const selectLastVisiblePosition = (state: LogPositionState) => + state.visiblePositions.endKey ? state.visiblePositions.endKey : null; + +export const selectVisibleMidpointOrTarget = createSelector( + selectMiddleVisiblePosition, + selectTargetPosition, + (middleVisiblePosition, targetPosition) => { + if (middleVisiblePosition) { + return middleVisiblePosition; + } else if (targetPosition) { + return targetPosition; + } else { + return null; + } + } +); + +export const selectVisibleMidpointOrTargetTime = createSelector( + selectVisibleMidpointOrTarget, + visibleMidpointOrTarget => (visibleMidpointOrTarget ? visibleMidpointOrTarget.time : null) +); + +export const selectVisibleTimeInterval = createSelector( + selectFirstVisiblePosition, + selectLastVisiblePosition, + (firstVisiblePosition, lastVisiblePosition) => + firstVisiblePosition && lastVisiblePosition + ? { + start: firstVisiblePosition.time, + end: lastVisiblePosition.time, + } + : null +); + +export const selectVisibleSummary = (state: LogPositionState) => state.visibleSummary; diff --git a/x-pack/plugins/infra/public/store/local/log_textview/actions.ts b/x-pack/plugins/infra/public/store/local/log_textview/actions.ts new file mode 100644 index 0000000000000..7aa63c8bb7fdd --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_textview/actions.ts @@ -0,0 +1,15 @@ +/* + * 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 actionCreatorFactory from 'typescript-fsa'; + +import { TextScale } from '../../../../common/log_text_scale'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/log_textview'); + +export const setTextviewScale = actionCreator('SET_TEXTVIEW_SCALE'); + +export const setTextviewWrap = actionCreator('SET_TEXTVIEW_WRAP'); diff --git a/x-pack/plugins/infra/public/store/local/log_textview/index.ts b/x-pack/plugins/infra/public/store/local/log_textview/index.ts new file mode 100644 index 0000000000000..cebc58c7c3275 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_textview/index.ts @@ -0,0 +1,11 @@ +/* + * 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 * as logTextviewActions from './actions'; +import * as logTextviewSelectors from './selectors'; + +export { logTextviewActions, logTextviewSelectors }; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/log_textview/reducer.ts b/x-pack/plugins/infra/public/store/local/log_textview/reducer.ts new file mode 100644 index 0000000000000..45ff35cdc4af7 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_textview/reducer.ts @@ -0,0 +1,36 @@ +/* + * 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 { combineReducers } from 'redux'; +import { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { TextScale } from '../../../../common/log_text_scale'; +import { setTextviewScale, setTextviewWrap } from './actions'; + +export interface LogTextviewState { + scale: TextScale; + wrap: boolean; +} + +export const initialLogTextviewState: LogTextviewState = { + scale: 'medium', + wrap: true, +}; + +const textviewScaleReducer = reducerWithInitialState(initialLogTextviewState.scale).case( + setTextviewScale, + (state, scale) => scale +); + +const textviewWrapReducer = reducerWithInitialState(initialLogTextviewState.wrap).case( + setTextviewWrap, + (state, wrap) => wrap +); + +export const logTextviewReducer = combineReducers({ + scale: textviewScaleReducer, + wrap: textviewWrapReducer, +}); diff --git a/x-pack/plugins/infra/public/store/local/log_textview/selectors.ts b/x-pack/plugins/infra/public/store/local/log_textview/selectors.ts new file mode 100644 index 0000000000000..ee701afd4cbcb --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/log_textview/selectors.ts @@ -0,0 +1,11 @@ +/* + * 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 { LogTextviewState } from './reducer'; + +export const selectTextviewScale = (state: LogTextviewState) => state.scale; + +export const selectTextviewWrap = (state: LogTextviewState) => state.wrap; diff --git a/x-pack/plugins/infra/public/store/local/metric_time/actions.ts b/x-pack/plugins/infra/public/store/local/metric_time/actions.ts new file mode 100644 index 0000000000000..8dec727c895c0 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/metric_time/actions.ts @@ -0,0 +1,21 @@ +/* + * 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 actionCreatorFactory from 'typescript-fsa'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/waffle_time'); + +export interface MetricRangeTimeState { + to: number; + from: number; + interval: string; +} + +export const setRangeTime = actionCreator('SET_RANGE_TIME'); + +export const startMetricsAutoReload = actionCreator('START_METRICS_AUTO_RELOAD'); + +export const stopMetricsAutoReload = actionCreator('STOP_METRICS_AUTO_RELOAD'); diff --git a/x-pack/plugins/infra/public/store/local/metric_time/epic.ts b/x-pack/plugins/infra/public/store/local/metric_time/epic.ts new file mode 100644 index 0000000000000..aaecdc42a215b --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/metric_time/epic.ts @@ -0,0 +1,59 @@ +/* + * 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 moment from 'moment'; +import { Action } from 'redux'; +import { Epic } from 'redux-observable'; +import { timer } from 'rxjs'; +import { exhaustMap, filter, map, takeUntil, withLatestFrom } from 'rxjs/operators'; + +import { setRangeTime, startMetricsAutoReload, stopMetricsAutoReload } from './actions'; + +interface MetricTimeEpicDependencies { + selectMetricTimeUpdatePolicyInterval: (state: State) => number | null; + selectMetricRangeFromTimeRange: (state: State) => number | null; +} + +export const createMetricTimeEpic = (): Epic< + Action, + Action, + State, + MetricTimeEpicDependencies +> => ( + action$, + state$, + { selectMetricTimeUpdatePolicyInterval, selectMetricRangeFromTimeRange } +) => { + const updateInterval$ = state$.pipe( + map(selectMetricTimeUpdatePolicyInterval), + filter(isNotNull) + ); + + const range$ = state$.pipe( + map(selectMetricRangeFromTimeRange), + filter(isNotNull) + ); + + return action$.pipe( + filter(startMetricsAutoReload.match), + withLatestFrom(updateInterval$, range$), + exhaustMap(([action, updateInterval, range]) => + timer(0, updateInterval).pipe( + map(() => + setRangeTime({ + from: moment() + .subtract(range, 'ms') + .valueOf(), + to: moment().valueOf(), + interval: '1m', + }) + ), + takeUntil(action$.pipe(filter(stopMetricsAutoReload.match))) + ) + ) + ); +}; + +const isNotNull = (value: T | null): value is T => value !== null; diff --git a/x-pack/plugins/infra/public/store/local/metric_time/index.ts b/x-pack/plugins/infra/public/store/local/metric_time/index.ts new file mode 100644 index 0000000000000..1df7b682d1314 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/metric_time/index.ts @@ -0,0 +1,12 @@ +/* + * 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 * as metricTimeActions from './actions'; +import * as metricTimeSelectors from './selectors'; + +export { metricTimeActions, metricTimeSelectors }; +export * from './epic'; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/metric_time/reducer.ts b/x-pack/plugins/infra/public/store/local/metric_time/reducer.ts new file mode 100644 index 0000000000000..00a4d7d311d0d --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/metric_time/reducer.ts @@ -0,0 +1,63 @@ +/* + * 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 moment from 'moment'; +import { combineReducers } from 'redux'; +import { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { + MetricRangeTimeState, + setRangeTime, + startMetricsAutoReload, + stopMetricsAutoReload, +} from './actions'; + +interface ManualTimeUpdatePolicy { + policy: 'manual'; +} + +interface IntervalTimeUpdatePolicy { + policy: 'interval'; + interval: number; +} + +type TimeUpdatePolicy = ManualTimeUpdatePolicy | IntervalTimeUpdatePolicy; + +export interface MetricTimeState { + timeRange: MetricRangeTimeState; + updatePolicy: TimeUpdatePolicy; +} + +export const initialMetricTimeState: MetricTimeState = { + timeRange: { + from: moment() + .subtract(1, 'hour') + .valueOf(), + to: moment().valueOf(), + interval: '>=1m', + }, + updatePolicy: { + policy: 'manual', + }, +}; + +const timeRangeReducer = reducerWithInitialState(initialMetricTimeState.timeRange).case( + setRangeTime, + (state, { to, from }) => ({ ...state, to, from }) +); + +const updatePolicyReducer = reducerWithInitialState(initialMetricTimeState.updatePolicy) + .case(startMetricsAutoReload, () => ({ + policy: 'interval', + interval: 5000, + })) + .case(stopMetricsAutoReload, () => ({ + policy: 'manual', + })); + +export const metricTimeReducer = combineReducers({ + timeRange: timeRangeReducer, + updatePolicy: updatePolicyReducer, +}); diff --git a/x-pack/plugins/infra/public/store/local/metric_time/selectors.ts b/x-pack/plugins/infra/public/store/local/metric_time/selectors.ts new file mode 100644 index 0000000000000..cac7ac2edca05 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/metric_time/selectors.ts @@ -0,0 +1,19 @@ +/* + * 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 { MetricTimeState } from './reducer'; + +export const selectRangeTime = (state: MetricTimeState) => state.timeRange; + +export const selectIsAutoReloading = (state: MetricTimeState) => + state.updatePolicy.policy === 'interval'; + +export const selectTimeUpdatePolicyInterval = (state: MetricTimeState) => + state.updatePolicy.policy === 'interval' ? state.updatePolicy.interval : null; + +export const selectRangeFromTimeRange = (state: MetricTimeState) => { + const { to, from } = state.timeRange; + return to - from; +}; diff --git a/x-pack/plugins/infra/public/store/local/reducer.ts b/x-pack/plugins/infra/public/store/local/reducer.ts new file mode 100644 index 0000000000000..59e890b748d5e --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/reducer.ts @@ -0,0 +1,53 @@ +/* + * 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 { combineReducers } from 'redux'; + +import { initialLogFilterState, logFilterReducer, LogFilterState } from './log_filter'; +import { initialLogMinimapState, logMinimapReducer, LogMinimapState } from './log_minimap'; +import { initialLogPositionState, logPositionReducer, LogPositionState } from './log_position'; +import { initialLogTextviewState, logTextviewReducer, LogTextviewState } from './log_textview'; +import { initialMetricTimeState, metricTimeReducer, MetricTimeState } from './metric_time'; +import { initialWaffleFilterState, waffleFilterReducer, WaffleFilterState } from './waffle_filter'; +import { + initialWaffleOptionsState, + waffleOptionsReducer, + WaffleOptionsState, +} from './waffle_options'; +import { initialWaffleTimeState, waffleTimeReducer, WaffleTimeState } from './waffle_time'; + +export interface LocalState { + logFilter: LogFilterState; + logMinimap: LogMinimapState; + logPosition: LogPositionState; + logTextview: LogTextviewState; + metricTime: MetricTimeState; + waffleFilter: WaffleFilterState; + waffleTime: WaffleTimeState; + waffleMetrics: WaffleOptionsState; +} + +export const initialLocalState: LocalState = { + logFilter: initialLogFilterState, + logMinimap: initialLogMinimapState, + logPosition: initialLogPositionState, + logTextview: initialLogTextviewState, + metricTime: initialMetricTimeState, + waffleFilter: initialWaffleFilterState, + waffleTime: initialWaffleTimeState, + waffleMetrics: initialWaffleOptionsState, +}; + +export const localReducer = combineReducers({ + logFilter: logFilterReducer, + logMinimap: logMinimapReducer, + logPosition: logPositionReducer, + logTextview: logTextviewReducer, + metricTime: metricTimeReducer, + waffleFilter: waffleFilterReducer, + waffleTime: waffleTimeReducer, + waffleMetrics: waffleOptionsReducer, +}); diff --git a/x-pack/plugins/infra/public/store/local/selectors.ts b/x-pack/plugins/infra/public/store/local/selectors.ts new file mode 100644 index 0000000000000..85188e144ade1 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/selectors.ts @@ -0,0 +1,56 @@ +/* + * 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 { globalizeSelectors } from '../../utils/typed_redux'; +import { logFilterSelectors as innerLogFilterSelectors } from './log_filter'; +import { logMinimapSelectors as innerLogMinimapSelectors } from './log_minimap'; +import { logPositionSelectors as innerLogPositionSelectors } from './log_position'; +import { logTextviewSelectors as innerLogTextviewSelectors } from './log_textview'; +import { metricTimeSelectors as innerMetricTimeSelectors } from './metric_time'; +import { LocalState } from './reducer'; +import { waffleFilterSelectors as innerWaffleFilterSelectors } from './waffle_filter'; +import { waffleOptionsSelectors as innerWaffleOptionsSelectors } from './waffle_options'; +import { waffleTimeSelectors as innerWaffleTimeSelectors } from './waffle_time'; + +export const logFilterSelectors = globalizeSelectors( + (state: LocalState) => state.logFilter, + innerLogFilterSelectors +); + +export const logMinimapSelectors = globalizeSelectors( + (state: LocalState) => state.logMinimap, + innerLogMinimapSelectors +); + +export const logPositionSelectors = globalizeSelectors( + (state: LocalState) => state.logPosition, + innerLogPositionSelectors +); + +export const logTextviewSelectors = globalizeSelectors( + (state: LocalState) => state.logTextview, + innerLogTextviewSelectors +); + +export const metricTimeSelectors = globalizeSelectors( + (state: LocalState) => state.metricTime, + innerMetricTimeSelectors +); + +export const waffleFilterSelectors = globalizeSelectors( + (state: LocalState) => state.waffleFilter, + innerWaffleFilterSelectors +); + +export const waffleTimeSelectors = globalizeSelectors( + (state: LocalState) => state.waffleTime, + innerWaffleTimeSelectors +); + +export const waffleOptionsSelectors = globalizeSelectors( + (state: LocalState) => state.waffleMetrics, + innerWaffleOptionsSelectors +); diff --git a/x-pack/plugins/infra/public/store/local/waffle_filter/actions.ts b/x-pack/plugins/infra/public/store/local/waffle_filter/actions.ts new file mode 100644 index 0000000000000..3f2c8839308c1 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_filter/actions.ts @@ -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 actionCreatorFactory from 'typescript-fsa'; + +import { FilterQuery } from './reducer'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/waffle_filter'); + +export const setWaffleFilterQueryDraft = actionCreator( + 'SET_WAFFLE_FILTER_QUERY_DRAFT' +); + +export const applyWaffleFilterQuery = actionCreator('APPLY_WAFFLE_FILTER_QUERY'); diff --git a/x-pack/plugins/infra/public/store/local/waffle_filter/index.ts b/x-pack/plugins/infra/public/store/local/waffle_filter/index.ts new file mode 100644 index 0000000000000..558314f2aeda8 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_filter/index.ts @@ -0,0 +1,11 @@ +/* + * 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 * as waffleFilterActions from './actions'; +import * as waffleFilterSelectors from './selectors'; + +export { waffleFilterActions, waffleFilterSelectors }; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/waffle_filter/reducer.ts b/x-pack/plugins/infra/public/store/local/waffle_filter/reducer.ts new file mode 100644 index 0000000000000..0f6be7524e081 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_filter/reducer.ts @@ -0,0 +1,38 @@ +/* + * 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 { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { applyWaffleFilterQuery, setWaffleFilterQueryDraft } from './actions'; + +export interface KueryFilterQuery { + kind: 'kuery'; + expression: string; +} + +export type FilterQuery = KueryFilterQuery; + +export interface WaffleFilterState { + filterQuery: KueryFilterQuery | null; + filterQueryDraft: KueryFilterQuery | null; +} + +export const initialWaffleFilterState: WaffleFilterState = { + filterQuery: null, + filterQueryDraft: null, +}; + +export const waffleFilterReducer = reducerWithInitialState(initialWaffleFilterState) + .case(setWaffleFilterQueryDraft, (state, filterQueryDraft) => ({ + ...state, + filterQueryDraft, + })) + .case(applyWaffleFilterQuery, (state, filterQuery) => ({ + ...state, + filterQuery, + filterQueryDraft: filterQuery, + })) + .build(); diff --git a/x-pack/plugins/infra/public/store/local/waffle_filter/selectors.ts b/x-pack/plugins/infra/public/store/local/waffle_filter/selectors.ts new file mode 100644 index 0000000000000..ddad03b44d120 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_filter/selectors.ts @@ -0,0 +1,30 @@ +/* + * 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 { createSelector } from 'reselect'; + +import { fromKueryExpression } from 'ui/kuery'; + +import { WaffleFilterState } from './reducer'; + +export const selectWaffleFilterQuery = (state: WaffleFilterState) => state.filterQuery; + +export const selectWaffleFilterQueryDraft = (state: WaffleFilterState) => state.filterQueryDraft; + +export const selectIsWaffleFilterQueryDraftValid = createSelector( + selectWaffleFilterQueryDraft, + filterQueryDraft => { + if (filterQueryDraft && filterQueryDraft.kind === 'kuery') { + try { + fromKueryExpression(filterQueryDraft.expression); + } catch (err) { + return false; + } + } + + return true; + } +); diff --git a/x-pack/plugins/infra/public/store/local/waffle_options/actions.ts b/x-pack/plugins/infra/public/store/local/waffle_options/actions.ts new file mode 100644 index 0000000000000..04c0a1d112306 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_options/actions.ts @@ -0,0 +1,15 @@ +/* + * 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 actionCreatorFactory from 'typescript-fsa'; +import { InfraMetricInput, InfraPathInput } from '../../../../common/graphql/types'; +import { InfraNodeType } from '../../../../server/lib/adapters/nodes'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/waffle_options'); + +export const changeMetric = actionCreator('CHANGE_METRIC'); +export const changeGroupBy = actionCreator('CHANGE_GROUP_BY'); +export const changeNodeType = actionCreator('CHANGE_NODE_TYPE'); diff --git a/x-pack/plugins/infra/public/store/local/waffle_options/index.ts b/x-pack/plugins/infra/public/store/local/waffle_options/index.ts new file mode 100644 index 0000000000000..3ecf108eb49d4 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_options/index.ts @@ -0,0 +1,11 @@ +/* + * 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 * as waffleOptionsActions from './actions'; +import * as waffleOptionsSelectors from './selector'; + +export { waffleOptionsActions, waffleOptionsSelectors }; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/waffle_options/reducer.ts b/x-pack/plugins/infra/public/store/local/waffle_options/reducer.ts new file mode 100644 index 0000000000000..c736aa47de39c --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_options/reducer.ts @@ -0,0 +1,49 @@ +/* + * 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 { combineReducers } from 'redux'; +import { reducerWithInitialState } from 'typescript-fsa-reducers'; + +import { + InfraMetricInput, + InfraMetricType, + InfraPathInput, +} from '../../../../common/graphql/types'; +import { InfraNodeType } from '../../../../server/lib/adapters/nodes'; +import { changeGroupBy, changeMetric, changeNodeType } from './actions'; + +export interface WaffleOptionsState { + metric: InfraMetricInput; + groupBy: InfraPathInput[]; + nodeType: InfraNodeType; +} + +export const initialWaffleOptionsState: WaffleOptionsState = { + metric: { type: InfraMetricType.cpu }, + groupBy: [], + nodeType: InfraNodeType.host, +}; + +const currentMetricReducer = reducerWithInitialState(initialWaffleOptionsState.metric).case( + changeMetric, + (current, target) => target +); + +const currentGroupByReducer = reducerWithInitialState(initialWaffleOptionsState.groupBy).case( + changeGroupBy, + (current, target) => target +); + +const currentNodeTypeReducer = reducerWithInitialState(initialWaffleOptionsState.nodeType).case( + changeNodeType, + (current, target) => target +); + +export const waffleOptionsReducer = combineReducers({ + metric: currentMetricReducer, + groupBy: currentGroupByReducer, + nodeType: currentNodeTypeReducer, +}); diff --git a/x-pack/plugins/infra/public/store/local/waffle_options/selector.ts b/x-pack/plugins/infra/public/store/local/waffle_options/selector.ts new file mode 100644 index 0000000000000..6889cd6150ab7 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_options/selector.ts @@ -0,0 +1,11 @@ +/* + * 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 { WaffleOptionsState } from './reducer'; + +export const selectMetric = (state: WaffleOptionsState) => state.metric; +export const selectGroupBy = (state: WaffleOptionsState) => state.groupBy; +export const selectNodeType = (state: WaffleOptionsState) => state.nodeType; diff --git a/x-pack/plugins/infra/public/store/local/waffle_time/actions.ts b/x-pack/plugins/infra/public/store/local/waffle_time/actions.ts new file mode 100644 index 0000000000000..fe79f2f536a93 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_time/actions.ts @@ -0,0 +1,15 @@ +/* + * 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 actionCreatorFactory from 'typescript-fsa'; + +const actionCreator = actionCreatorFactory('x-pack/infra/local/waffle_time'); + +export const jumpToTime = actionCreator('JUMP_TO_TIME'); + +export const startAutoReload = actionCreator('START_AUTO_RELOAD'); + +export const stopAutoReload = actionCreator('STOP_AUTO_RELOAD'); diff --git a/x-pack/plugins/infra/public/store/local/waffle_time/epic.ts b/x-pack/plugins/infra/public/store/local/waffle_time/epic.ts new file mode 100644 index 0000000000000..d9c1c825f1a25 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_time/epic.ts @@ -0,0 +1,41 @@ +/* + * 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 { Action } from 'redux'; +import { Epic } from 'redux-observable'; +import { timer } from 'rxjs'; +import { exhaustMap, filter, map, takeUntil, withLatestFrom } from 'rxjs/operators'; + +import { jumpToTime, startAutoReload, stopAutoReload } from './actions'; + +interface WaffleTimeEpicDependencies { + selectWaffleTimeUpdatePolicyInterval: (state: State) => number | null; +} + +export const createWaffleTimeEpic = (): Epic< + Action, + Action, + State, + WaffleTimeEpicDependencies +> => (action$, state$, { selectWaffleTimeUpdatePolicyInterval }) => { + const updateInterval$ = state$.pipe( + map(selectWaffleTimeUpdatePolicyInterval), + filter(isNotNull) + ); + + return action$.pipe( + filter(startAutoReload.match), + withLatestFrom(updateInterval$), + exhaustMap(([action, updateInterval]) => + timer(0, updateInterval).pipe( + map(() => jumpToTime(Date.now())), + takeUntil(action$.pipe(filter(stopAutoReload.match))) + ) + ) + ); +}; + +const isNotNull = (value: T | null): value is T => value !== null; diff --git a/x-pack/plugins/infra/public/store/local/waffle_time/index.ts b/x-pack/plugins/infra/public/store/local/waffle_time/index.ts new file mode 100644 index 0000000000000..2b99a6d6d5760 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_time/index.ts @@ -0,0 +1,12 @@ +/* + * 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 * as waffleTimeActions from './actions'; +import * as waffleTimeSelectors from './selectors'; + +export { waffleTimeActions, waffleTimeSelectors }; +export * from './epic'; +export * from './reducer'; diff --git a/x-pack/plugins/infra/public/store/local/waffle_time/reducer.ts b/x-pack/plugins/infra/public/store/local/waffle_time/reducer.ts new file mode 100644 index 0000000000000..026e5decf5d37 --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_time/reducer.ts @@ -0,0 +1,52 @@ +/* + * 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 { combineReducers } from 'redux'; +import { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { jumpToTime, startAutoReload, stopAutoReload } from './actions'; + +interface ManualTimeUpdatePolicy { + policy: 'manual'; +} + +interface IntervalTimeUpdatePolicy { + policy: 'interval'; + interval: number; +} + +type TimeUpdatePolicy = ManualTimeUpdatePolicy | IntervalTimeUpdatePolicy; + +export interface WaffleTimeState { + currentTime: number; + updatePolicy: TimeUpdatePolicy; +} + +export const initialWaffleTimeState: WaffleTimeState = { + currentTime: Date.now(), + updatePolicy: { + policy: 'manual', + }, +}; + +const currentTimeReducer = reducerWithInitialState(initialWaffleTimeState.currentTime).case( + jumpToTime, + (currentTime, targetTime) => targetTime +); + +const updatePolicyReducer = reducerWithInitialState(initialWaffleTimeState.updatePolicy) + .case(startAutoReload, () => ({ + policy: 'interval', + interval: 5000, + })) + .case(stopAutoReload, () => ({ + policy: 'manual', + })); + +export const waffleTimeReducer = combineReducers({ + currentTime: currentTimeReducer, + updatePolicy: updatePolicyReducer, +}); diff --git a/x-pack/plugins/infra/public/store/local/waffle_time/selectors.ts b/x-pack/plugins/infra/public/store/local/waffle_time/selectors.ts new file mode 100644 index 0000000000000..a69d742d43b1d --- /dev/null +++ b/x-pack/plugins/infra/public/store/local/waffle_time/selectors.ts @@ -0,0 +1,23 @@ +/* + * 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 { createSelector } from 'reselect'; + +import { WaffleTimeState } from './reducer'; + +export const selectCurrentTime = (state: WaffleTimeState) => state.currentTime; + +export const selectIsAutoReloading = (state: WaffleTimeState) => + state.updatePolicy.policy === 'interval'; + +export const selectTimeUpdatePolicyInterval = (state: WaffleTimeState) => + state.updatePolicy.policy === 'interval' ? state.updatePolicy.interval : null; + +export const selectCurrentTimeRange = createSelector(selectCurrentTime, currentTime => ({ + from: currentTime - 1000 * 60 * 60, + interval: '1m', + to: currentTime, +})); diff --git a/x-pack/plugins/infra/public/store/reducer.ts b/x-pack/plugins/infra/public/store/reducer.ts new file mode 100644 index 0000000000000..65b225d019603 --- /dev/null +++ b/x-pack/plugins/infra/public/store/reducer.ts @@ -0,0 +1,25 @@ +/* + * 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 { combineReducers } from 'redux'; + +import { initialLocalState, localReducer, LocalState } from './local'; +import { initialRemoteState, remoteReducer, RemoteState } from './remote'; + +export interface State { + local: LocalState; + remote: RemoteState; +} + +export const initialState: State = { + local: initialLocalState, + remote: initialRemoteState, +}; + +export const reducer = combineReducers({ + local: localReducer, + remote: remoteReducer, +}); diff --git a/x-pack/plugins/infra/public/store/remote/actions.ts b/x-pack/plugins/infra/public/store/remote/actions.ts new file mode 100644 index 0000000000000..49c5d7209f7ef --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/actions.ts @@ -0,0 +1,9 @@ +/* + * 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 { logEntriesActions } from './log_entries'; +export { logSummaryActions } from './log_summary'; +export { sourceActions } from './source'; diff --git a/x-pack/plugins/infra/public/store/remote/epic.ts b/x-pack/plugins/infra/public/store/remote/epic.ts new file mode 100644 index 0000000000000..22eb3c68c75c4 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/epic.ts @@ -0,0 +1,18 @@ +/* + * 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 { combineEpics } from 'redux-observable'; + +import { createLogEntriesEpic } from './log_entries'; +import { createLogSummaryEpic } from './log_summary'; +import { createSourceEpic } from './source'; + +export const createRemoteEpic = () => + combineEpics( + createLogEntriesEpic(), + createLogSummaryEpic(), + createSourceEpic() + ); diff --git a/x-pack/plugins/infra/public/store/remote/index.ts b/x-pack/plugins/infra/public/store/remote/index.ts new file mode 100644 index 0000000000000..c2843320bfd0c --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/index.ts @@ -0,0 +1,10 @@ +/* + * 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 * from './actions'; +export * from './epic'; +export * from './reducer'; +export * from './selectors'; diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/actions.ts b/x-pack/plugins/infra/public/store/remote/log_entries/actions.ts new file mode 100644 index 0000000000000..0110443ac1567 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/actions.ts @@ -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 actionCreatorFactory from 'typescript-fsa'; + +import { loadEntriesActionCreators } from './operations/load'; +import { loadMoreEntriesActionCreators } from './operations/load_more'; + +const actionCreator = actionCreatorFactory('x-pack/infra/remote/log_entries'); + +export const loadEntries = loadEntriesActionCreators.resolve; +export const loadMoreEntries = loadMoreEntriesActionCreators.resolve; + +export const loadNewerEntries = actionCreator('LOAD_NEWER_LOG_ENTRIES'); diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/epic.ts b/x-pack/plugins/infra/public/store/remote/log_entries/epic.ts new file mode 100644 index 0000000000000..25e4010fd917b --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/epic.ts @@ -0,0 +1,173 @@ +/* + * 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 { Action } from 'redux'; +import { combineEpics, Epic, EpicWithState } from 'redux-observable'; +import { merge } from 'rxjs'; +import { exhaustMap, filter, map, withLatestFrom } from 'rxjs/operators'; + +import { logFilterActions, logPositionActions } from '../..'; +import { pickTimeKey, TimeKey, timeKeyIsBetween } from '../../../../common/time'; +import { loadEntries, loadMoreEntries, loadNewerEntries } from './actions'; +import { loadEntriesEpic } from './operations/load'; +import { loadMoreEntriesEpic } from './operations/load_more'; + +const LOAD_CHUNK_SIZE = 200; +const DESIRED_BUFFER_PAGES = 2; + +interface ManageEntriesDependencies { + selectLogEntriesStart: (state: State) => TimeKey | null; + selectLogEntriesEnd: (state: State) => TimeKey | null; + selectHasMoreLogEntriesBeforeStart: (state: State) => boolean; + selectHasMoreLogEntriesAfterEnd: (state: State) => boolean; + selectIsAutoReloadingLogEntries: (state: State) => boolean; + selectIsLoadingLogEntries: (state: State) => boolean; + selectLogFilterQueryAsJson: (state: State) => string | null; + selectVisibleLogMidpointOrTarget: (state: State) => TimeKey | null; +} + +export const createLogEntriesEpic = () => + combineEpics( + createEntriesEffectsEpic(), + loadEntriesEpic as EpicWithState, + loadMoreEntriesEpic as EpicWithState + ); + +export const createEntriesEffectsEpic = (): Epic< + Action, + Action, + State, + ManageEntriesDependencies +> => ( + action$, + state$, + { + selectLogEntriesStart, + selectLogEntriesEnd, + selectHasMoreLogEntriesBeforeStart, + selectHasMoreLogEntriesAfterEnd, + selectIsAutoReloadingLogEntries, + selectIsLoadingLogEntries, + selectLogFilterQueryAsJson, + selectVisibleLogMidpointOrTarget, + } +) => { + const filterQuery$ = state$.pipe(map(selectLogFilterQueryAsJson)); + const visibleMidpointOrTarget$ = state$.pipe( + map(selectVisibleLogMidpointOrTarget), + filter(isNotNull), + map(pickTimeKey) + ); + + const shouldLoadAroundNewPosition$ = action$.pipe( + filter(logPositionActions.jumpToTargetPosition.match), + withLatestFrom(state$), + filter(([{ payload }, state]) => { + const entriesStart = selectLogEntriesStart(state); + const entriesEnd = selectLogEntriesEnd(state); + + return entriesStart && entriesEnd + ? !timeKeyIsBetween(entriesStart, entriesEnd, payload) + : true; + }), + map(([{ payload }]) => pickTimeKey(payload)) + ); + + const shouldLoadWithNewFilter$ = action$.pipe( + filter(logFilterActions.applyLogFilterQuery.match), + withLatestFrom(filterQuery$, (filterQuery, filterQueryString) => filterQueryString) + ); + + const shouldLoadMoreBefore$ = action$.pipe( + filter(logPositionActions.reportVisiblePositions.match), + filter(({ payload: { pagesBeforeStart } }) => pagesBeforeStart < DESIRED_BUFFER_PAGES), + withLatestFrom(state$), + filter( + ([action, state]) => + !selectIsAutoReloadingLogEntries(state) && + !selectIsLoadingLogEntries(state) && + selectHasMoreLogEntriesBeforeStart(state) + ), + map(([action, state]) => selectLogEntriesStart(state)), + filter(isNotNull), + map(pickTimeKey) + ); + + const shouldLoadMoreAfter$ = merge( + action$.pipe( + filter(logPositionActions.reportVisiblePositions.match), + filter(({ payload: { pagesAfterEnd } }) => pagesAfterEnd < DESIRED_BUFFER_PAGES), + withLatestFrom(state$, (action, state) => state), + filter( + state => + !selectIsAutoReloadingLogEntries(state) && + !selectIsLoadingLogEntries(state) && + selectHasMoreLogEntriesAfterEnd(state) + ) + ), + action$.pipe( + filter(loadNewerEntries.match), + withLatestFrom(state$, (action, state) => state) + ) + ).pipe( + map(state => selectLogEntriesEnd(state)), + filter(isNotNull), + map(pickTimeKey) + ); + + return merge( + shouldLoadAroundNewPosition$.pipe( + withLatestFrom(filterQuery$), + exhaustMap(([timeKey, filterQuery]) => [ + loadEntries({ + sourceId: 'default', + timeKey, + countBefore: LOAD_CHUNK_SIZE, + countAfter: LOAD_CHUNK_SIZE, + filterQuery, + }), + ]) + ), + shouldLoadWithNewFilter$.pipe( + withLatestFrom(visibleMidpointOrTarget$), + exhaustMap(([filterQuery, timeKey]) => [ + loadEntries({ + sourceId: 'default', + timeKey, + countBefore: LOAD_CHUNK_SIZE, + countAfter: LOAD_CHUNK_SIZE, + filterQuery, + }), + ]) + ), + shouldLoadMoreAfter$.pipe( + withLatestFrom(filterQuery$), + exhaustMap(([timeKey, filterQuery]) => [ + loadMoreEntries({ + sourceId: 'default', + timeKey, + countBefore: 0, + countAfter: LOAD_CHUNK_SIZE, + filterQuery, + }), + ]) + ), + shouldLoadMoreBefore$.pipe( + withLatestFrom(filterQuery$), + exhaustMap(([timeKey, filterQuery]) => [ + loadMoreEntries({ + sourceId: 'default', + timeKey, + countBefore: LOAD_CHUNK_SIZE, + countAfter: 0, + filterQuery, + }), + ]) + ) + ); +}; + +const isNotNull = (value: T | null): value is T => value !== null; diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/index.ts b/x-pack/plugins/infra/public/store/remote/log_entries/index.ts new file mode 100644 index 0000000000000..8e00425526935 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/index.ts @@ -0,0 +1,13 @@ +/* + * 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 * as logEntriesActions from './actions'; +import * as logEntriesSelectors from './selectors'; + +export { logEntriesActions, logEntriesSelectors }; +export * from './epic'; +export * from './reducer'; +export { initialLogEntriesState, LogEntriesState } from './state'; diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/operations/load.ts b/x-pack/plugins/infra/public/store/remote/log_entries/operations/load.ts new file mode 100644 index 0000000000000..5a92afd89024c --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/operations/load.ts @@ -0,0 +1,30 @@ +/* + * 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 { LogEntries as LogEntriesQuery } from '../../../../../common/graphql/types'; +import { + createGraphqlOperationActionCreators, + createGraphqlOperationReducer, + createGraphqlQueryEpic, +} from '../../../../utils/remote_state/remote_graphql_state'; +import { initialLogEntriesState } from '../state'; +import { logEntriesQuery } from './log_entries.gql_query'; + +const operationKey = 'load'; + +export const loadEntriesActionCreators = createGraphqlOperationActionCreators< + LogEntriesQuery.Query, + LogEntriesQuery.Variables +>('log_entries', operationKey); + +export const loadEntriesReducer = createGraphqlOperationReducer( + operationKey, + initialLogEntriesState, + loadEntriesActionCreators, + (state, action) => action.payload.result.data.source.logEntriesAround +); + +export const loadEntriesEpic = createGraphqlQueryEpic(logEntriesQuery, loadEntriesActionCreators); diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/operations/load_more.ts b/x-pack/plugins/infra/public/store/remote/log_entries/operations/load_more.ts new file mode 100644 index 0000000000000..0f58f38e52b11 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/operations/load_more.ts @@ -0,0 +1,72 @@ +/* + * 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 { LogEntries as LogEntriesQuery } from '../../../../../common/graphql/types'; +import { + getLogEntryIndexAfterTime, + getLogEntryIndexBeforeTime, + getLogEntryKey, +} from '../../../../utils/log_entry'; +import { + createGraphqlOperationActionCreators, + createGraphqlOperationReducer, + createGraphqlQueryEpic, +} from '../../../../utils/remote_state/remote_graphql_state'; +import { initialLogEntriesState } from '../state'; +import { logEntriesQuery } from './log_entries.gql_query'; + +const operationKey = 'load_more'; + +export const loadMoreEntriesActionCreators = createGraphqlOperationActionCreators< + LogEntriesQuery.Query, + LogEntriesQuery.Variables +>('log_entries', operationKey); + +export const loadMoreEntriesReducer = createGraphqlOperationReducer( + operationKey, + initialLogEntriesState, + loadMoreEntriesActionCreators, + (state, action) => { + const logEntriesAround = action.payload.result.data.source.logEntriesAround; + const newEntries = logEntriesAround.entries; + const oldEntries = state && state.entries ? state.entries : []; + const oldStart = state && state.start ? state.start : null; + const oldEnd = state && state.end ? state.end : null; + + if (newEntries.length <= 0) { + return state; + } + + if ((action.payload.params.countBefore || 0) > 0) { + const lastLogEntry = newEntries[newEntries.length - 1]; + const prependAtIndex = getLogEntryIndexAfterTime(oldEntries, getLogEntryKey(lastLogEntry)); + return { + start: logEntriesAround.start, + end: oldEnd, + hasMoreBefore: logEntriesAround.hasMoreBefore, + hasMoreAfter: state ? state.hasMoreAfter : logEntriesAround.hasMoreAfter, + entries: [...newEntries, ...oldEntries.slice(prependAtIndex)], + }; + } else if ((action.payload.params.countAfter || 0) > 0) { + const firstLogEntry = newEntries[0]; + const appendAtIndex = getLogEntryIndexBeforeTime(oldEntries, getLogEntryKey(firstLogEntry)); + return { + start: oldStart, + end: logEntriesAround.end, + hasMoreBefore: state ? state.hasMoreBefore : logEntriesAround.hasMoreBefore, + hasMoreAfter: logEntriesAround.hasMoreAfter, + entries: [...oldEntries.slice(0, appendAtIndex), ...newEntries], + }; + } else { + return state; + } + } +); + +export const loadMoreEntriesEpic = createGraphqlQueryEpic( + logEntriesQuery, + loadMoreEntriesActionCreators +); diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/operations/log_entries.gql_query.ts b/x-pack/plugins/infra/public/store/remote/log_entries/operations/log_entries.gql_query.ts new file mode 100644 index 0000000000000..3bffc43644418 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/operations/log_entries.gql_query.ts @@ -0,0 +1,56 @@ +/* + * 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 gql from 'graphql-tag'; + +import { sharedFragments } from '../../../../../common/graphql/shared'; + +export const logEntriesQuery = gql` + query LogEntries( + $sourceId: ID = "default" + $timeKey: InfraTimeKeyInput! + $countBefore: Int = 0 + $countAfter: Int = 0 + $filterQuery: String + ) { + source(id: $sourceId) { + id + logEntriesAround( + key: $timeKey + countBefore: $countBefore + countAfter: $countAfter + filterQuery: $filterQuery + ) { + start { + ...InfraTimeKeyFields + } + end { + ...InfraTimeKeyFields + } + hasMoreBefore + hasMoreAfter + entries { + gid + key { + time + tiebreaker + } + message { + ... on InfraLogMessageFieldSegment { + field + value + } + ... on InfraLogMessageConstantSegment { + constant + } + } + } + } + } + } + + ${sharedFragments.InfraTimeKey} +`; diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/reducer.ts b/x-pack/plugins/infra/public/store/remote/log_entries/reducer.ts new file mode 100644 index 0000000000000..c0d60c4d336de --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/reducer.ts @@ -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 reduceReducers from 'reduce-reducers'; +import { Reducer } from 'redux'; + +import { loadEntriesReducer } from './operations/load'; +import { loadMoreEntriesReducer } from './operations/load_more'; +import { LogEntriesState } from './state'; + +export const logEntriesReducer = reduceReducers( + loadEntriesReducer, + loadMoreEntriesReducer +) as Reducer; diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/selectors.ts b/x-pack/plugins/infra/public/store/remote/log_entries/selectors.ts new file mode 100644 index 0000000000000..7520803f93ac7 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/selectors.ts @@ -0,0 +1,77 @@ +/* + * 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 { createSelector } from 'reselect'; + +import { createGraphqlStateSelectors } from '../../../utils/remote_state/remote_graphql_state'; +import { LogEntriesRemoteState } from './state'; + +const entriesGraphlStateSelectors = createGraphqlStateSelectors(); + +export const selectEntries = createSelector( + entriesGraphlStateSelectors.selectData, + data => (data ? data.entries : []) +); + +export const selectIsLoadingEntries = entriesGraphlStateSelectors.selectIsLoading; + +export const selectIsReloadingEntries = createSelector( + entriesGraphlStateSelectors.selectIsLoading, + entriesGraphlStateSelectors.selectLoadingProgressOperationInfo, + (isLoading, operationInfo) => + isLoading && operationInfo ? operationInfo.operationKey === 'load' : false +); + +export const selectIsLoadingMoreEntries = createSelector( + entriesGraphlStateSelectors.selectIsLoading, + entriesGraphlStateSelectors.selectLoadingProgressOperationInfo, + (isLoading, operationInfo) => + isLoading && operationInfo ? operationInfo.operationKey === 'load_more' : false +); + +export const selectEntriesStart = createSelector( + entriesGraphlStateSelectors.selectData, + data => (data && data.start ? data.start : null) +); + +export const selectEntriesEnd = createSelector( + entriesGraphlStateSelectors.selectData, + data => (data && data.end ? data.end : null) +); + +export const selectHasMoreBeforeStart = createSelector( + entriesGraphlStateSelectors.selectData, + data => (data ? data.hasMoreBefore : true) +); + +export const selectHasMoreAfterEnd = createSelector( + entriesGraphlStateSelectors.selectData, + data => (data ? data.hasMoreAfter : true) +); + +export const selectEntriesLastLoadedTime = entriesGraphlStateSelectors.selectLoadingResultTime; + +export const selectEntriesStartLoadingState = entriesGraphlStateSelectors.selectLoadingState; + +export const selectEntriesEndLoadingState = entriesGraphlStateSelectors.selectLoadingState; + +export const selectFirstEntry = createSelector( + selectEntries, + entries => (entries.length > 0 ? entries[0] : null) +); + +export const selectLastEntry = createSelector( + selectEntries, + entries => (entries.length > 0 ? entries[entries.length - 1] : null) +); + +export const selectLoadedEntriesTimeInterval = createSelector( + entriesGraphlStateSelectors.selectData, + data => ({ + end: data && data.end ? data.end.time : null, + start: data && data.start ? data.start.time : null, + }) +); diff --git a/x-pack/plugins/infra/public/store/remote/log_entries/state.ts b/x-pack/plugins/infra/public/store/remote/log_entries/state.ts new file mode 100644 index 0000000000000..6f8675b1efa83 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_entries/state.ts @@ -0,0 +1,16 @@ +/* + * 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 { LogEntries as LogEntriesQuery } from '../../../../common/graphql/types'; +import { + createGraphqlInitialState, + GraphqlState, +} from '../../../utils/remote_state/remote_graphql_state'; + +export type LogEntriesRemoteState = LogEntriesQuery.LogEntriesAround; +export type LogEntriesState = GraphqlState; + +export const initialLogEntriesState = createGraphqlInitialState(); diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/actions.ts b/x-pack/plugins/infra/public/store/remote/log_summary/actions.ts new file mode 100644 index 0000000000000..4cb77a16aeecb --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/actions.ts @@ -0,0 +1,9 @@ +/* + * 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 { loadSummaryActionCreators } from './operations/load'; + +export const loadSummary = loadSummaryActionCreators.resolve; diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/epic.ts b/x-pack/plugins/infra/public/store/remote/log_summary/epic.ts new file mode 100644 index 0000000000000..8bf8b07f973be --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/epic.ts @@ -0,0 +1,99 @@ +/* + * 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 { Action } from 'redux'; +import { combineEpics, Epic, EpicWithState } from 'redux-observable'; +import { merge } from 'rxjs'; +import { exhaustMap, filter, map, withLatestFrom } from 'rxjs/operators'; + +import { logFilterActions, logPositionActions } from '../..'; +import { loadSummary } from './actions'; +import { loadSummaryEpic } from './operations/load'; + +const LOAD_BUCKETS_PER_PAGE = 100; +const MINIMUM_BUCKETS_PER_PAGE = 90; +const MINIMUM_BUFFER_PAGES = 0.5; + +interface ManageSummaryDependencies { + selectLogFilterQueryAsJson: (state: State) => string | null; + selectVisibleLogSummary: ( + state: State + ) => { + start: number | null; + end: number | null; + }; +} + +export const createLogSummaryEpic = () => + combineEpics(createSummaryEffectsEpic(), loadSummaryEpic as EpicWithState< + typeof loadSummaryEpic, + State + >); + +export const createSummaryEffectsEpic = (): Epic< + Action, + Action, + State, + ManageSummaryDependencies +> => (action$, state$, { selectLogFilterQueryAsJson, selectVisibleLogSummary }) => { + const filterQuery$ = state$.pipe(map(selectLogFilterQueryAsJson)); + const summaryInterval$ = state$.pipe( + map(selectVisibleLogSummary), + map(({ start, end }) => (start && end ? getLoadParameters(start, end) : null)), + filter(isNotNull) + ); + + const shouldLoadBetweenNewInterval$ = action$.pipe( + filter(logPositionActions.reportVisibleSummary.match), + filter( + ({ payload: { bucketsOnPage, pagesBeforeStart, pagesAfterEnd } }) => + bucketsOnPage < MINIMUM_BUCKETS_PER_PAGE || + pagesBeforeStart < MINIMUM_BUFFER_PAGES || + pagesAfterEnd < MINIMUM_BUFFER_PAGES + ), + map(({ payload: { start, end } }) => getLoadParameters(start, end)) + ); + + const shouldLoadWithNewFilter$ = action$.pipe( + filter(logFilterActions.applyLogFilterQuery.match), + withLatestFrom(filterQuery$, (filterQuery, filterQueryString) => filterQueryString) + ); + + return merge( + shouldLoadBetweenNewInterval$.pipe( + withLatestFrom(filterQuery$), + exhaustMap(([{ start, end, bucketSize }, filterQuery]) => [ + loadSummary({ + start, + end, + sourceId: 'default', + bucketSize, + filterQuery, + }), + ]) + ), + shouldLoadWithNewFilter$.pipe( + withLatestFrom(summaryInterval$), + exhaustMap(([filterQuery, { start, end, bucketSize }]) => [ + loadSummary({ + start, + end, + sourceId: 'default', + bucketSize: (end - start) / LOAD_BUCKETS_PER_PAGE, + filterQuery, + }), + ]) + ) + ); +}; + +const getLoadParameters = (start: number, end: number) => ({ + start: start - (end - start), + end: end + (end - start), + bucketSize: (end - start) / LOAD_BUCKETS_PER_PAGE, +}); + +const isNotNull = (value: T | null): value is T => value !== null; diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/index.ts b/x-pack/plugins/infra/public/store/remote/log_summary/index.ts new file mode 100644 index 0000000000000..110d65e958f82 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/index.ts @@ -0,0 +1,13 @@ +/* + * 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 * as logSummaryActions from './actions'; +import * as logSummarySelectors from './selectors'; + +export { logSummaryActions, logSummarySelectors }; +export * from './epic'; +export * from './reducer'; +export { initialLogSummaryState, LogSummaryState } from './state'; diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/operations/load.ts b/x-pack/plugins/infra/public/store/remote/log_summary/operations/load.ts new file mode 100644 index 0000000000000..be3303586a568 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/operations/load.ts @@ -0,0 +1,30 @@ +/* + * 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 { LogSummary as LogSummaryQuery } from '../../../../../common/graphql/types'; +import { + createGraphqlOperationActionCreators, + createGraphqlOperationReducer, + createGraphqlQueryEpic, +} from '../../../../utils/remote_state/remote_graphql_state'; +import { initialLogSummaryState } from '../state'; +import { logSummaryQuery } from './log_summary.gql_query'; + +const operationKey = 'load'; + +export const loadSummaryActionCreators = createGraphqlOperationActionCreators< + LogSummaryQuery.Query, + LogSummaryQuery.Variables +>('log_summary', operationKey); + +export const loadSummaryReducer = createGraphqlOperationReducer( + operationKey, + initialLogSummaryState, + loadSummaryActionCreators, + (state, action) => action.payload.result.data.source.logSummaryBetween +); + +export const loadSummaryEpic = createGraphqlQueryEpic(logSummaryQuery, loadSummaryActionCreators); diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/operations/log_summary.gql_query.ts b/x-pack/plugins/infra/public/store/remote/log_summary/operations/log_summary.gql_query.ts new file mode 100644 index 0000000000000..a8bd808e51947 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/operations/log_summary.gql_query.ts @@ -0,0 +1,35 @@ +/* + * 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 gql from 'graphql-tag'; + +export const logSummaryQuery = gql` + query LogSummary( + $sourceId: ID = "default" + $start: Float! + $end: Float! + $bucketSize: Float! + $filterQuery: String + ) { + source(id: $sourceId) { + id + logSummaryBetween( + start: $start + end: $end + bucketSize: $bucketSize + filterQuery: $filterQuery + ) { + start + end + buckets { + start + end + entriesCount + } + } + } + } +`; diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/reducer.ts b/x-pack/plugins/infra/public/store/remote/log_summary/reducer.ts new file mode 100644 index 0000000000000..4ca900ceb20cd --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/reducer.ts @@ -0,0 +1,15 @@ +/* + * 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 reduceReducers from 'reduce-reducers'; +import { Reducer } from 'redux'; + +import { loadSummaryReducer } from './operations/load'; +import { LogSummaryState } from './state'; + +export const logSummaryReducer = reduceReducers( + loadSummaryReducer /*, loadMoreSummaryReducer*/ +) as Reducer; diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/selectors.ts b/x-pack/plugins/infra/public/store/remote/log_summary/selectors.ts new file mode 100644 index 0000000000000..52975f6306cd5 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/selectors.ts @@ -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 { createSelector } from 'reselect'; + +import { createGraphqlStateSelectors } from '../../../utils/remote_state/remote_graphql_state'; +import { LogSummaryRemoteState } from './state'; + +const summaryGraphlStateSelectors = createGraphqlStateSelectors(); + +export const selectSummaryBuckets = createSelector( + summaryGraphlStateSelectors.selectData, + data => (data ? data.buckets : []) +); diff --git a/x-pack/plugins/infra/public/store/remote/log_summary/state.ts b/x-pack/plugins/infra/public/store/remote/log_summary/state.ts new file mode 100644 index 0000000000000..d6c10e0a2f2b1 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/log_summary/state.ts @@ -0,0 +1,18 @@ +/* + * 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 { LogSummary as LogSummaryQuery } from '../../../../common/graphql/types'; +import { + createGraphqlInitialState, + GraphqlState, +} from '../../../utils/remote_state/remote_graphql_state'; + +export type LogSummaryRemoteState = LogSummaryQuery.LogSummaryBetween; +export type LogSummaryState = GraphqlState; + +export const initialLogSummaryState: LogSummaryState = createGraphqlInitialState< + LogSummaryRemoteState +>(); diff --git a/x-pack/plugins/infra/public/store/remote/reducer.ts b/x-pack/plugins/infra/public/store/remote/reducer.ts new file mode 100644 index 0000000000000..703e6d426f031 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/reducer.ts @@ -0,0 +1,28 @@ +/* + * 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 { combineReducers } from 'redux'; +import { initialLogEntriesState, logEntriesReducer, LogEntriesState } from './log_entries'; +import { initialLogSummaryState, logSummaryReducer, LogSummaryState } from './log_summary'; +import { initialSourceState, sourceReducer, SourceState } from './source'; + +export interface RemoteState { + logEntries: LogEntriesState; + logSummary: LogSummaryState; + source: SourceState; +} + +export const initialRemoteState = { + logEntries: initialLogEntriesState, + logSummary: initialLogSummaryState, + source: initialSourceState, +}; + +export const remoteReducer = combineReducers({ + logEntries: logEntriesReducer, + logSummary: logSummaryReducer, + source: sourceReducer, +}); diff --git a/x-pack/plugins/infra/public/store/remote/selectors.ts b/x-pack/plugins/infra/public/store/remote/selectors.ts new file mode 100644 index 0000000000000..1d48af7bf5058 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/selectors.ts @@ -0,0 +1,26 @@ +/* + * 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 { globalizeSelectors } from '../../utils/typed_redux'; +import { logEntriesSelectors as innerLogEntriesSelectors } from './log_entries'; +import { logSummarySelectors as innerLogSummarySelectors } from './log_summary'; +import { RemoteState } from './reducer'; +import { sourceSelectors as innerSourceSelectors } from './source'; + +export const logEntriesSelectors = globalizeSelectors( + (state: RemoteState) => state.logEntries, + innerLogEntriesSelectors +); + +export const logSummarySelectors = globalizeSelectors( + (state: RemoteState) => state.logSummary, + innerLogSummarySelectors +); + +export const sourceSelectors = globalizeSelectors( + (state: RemoteState) => state.source, + innerSourceSelectors +); diff --git a/x-pack/plugins/infra/public/store/remote/source/actions.ts b/x-pack/plugins/infra/public/store/remote/source/actions.ts new file mode 100644 index 0000000000000..741b547b895e2 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/actions.ts @@ -0,0 +1,9 @@ +/* + * 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 { loadSourceActionCreators } from './operations/load'; + +export const loadSource = loadSourceActionCreators.resolve; diff --git a/x-pack/plugins/infra/public/store/remote/source/epic.ts b/x-pack/plugins/infra/public/store/remote/source/epic.ts new file mode 100644 index 0000000000000..373bd7f0298df --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/epic.ts @@ -0,0 +1,22 @@ +/* + * 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 { Action } from 'redux'; +import { combineEpics, Epic, EpicWithState } from 'redux-observable'; +import { of } from 'rxjs'; + +import { loadSource } from './actions'; +import { loadSourceEpic } from './operations/load'; + +export const createSourceEpic = () => + combineEpics(createSourceEffectsEpic(), loadSourceEpic as EpicWithState< + typeof loadSourceEpic, + State + >); + +export const createSourceEffectsEpic = (): Epic => action$ => { + return of(loadSource({ sourceId: 'default' })); +}; diff --git a/x-pack/plugins/infra/public/store/remote/source/index.ts b/x-pack/plugins/infra/public/store/remote/source/index.ts new file mode 100644 index 0000000000000..c12b516f3d6a8 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/index.ts @@ -0,0 +1,13 @@ +/* + * 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 * as sourceActions from './actions'; +import * as sourceSelectors from './selectors'; + +export { sourceActions, sourceSelectors }; +export * from './epic'; +export * from './reducer'; +export { initialSourceState, SourceState } from './state'; diff --git a/x-pack/plugins/infra/public/store/remote/source/operations/load.ts b/x-pack/plugins/infra/public/store/remote/source/operations/load.ts new file mode 100644 index 0000000000000..44f8fbee8ca34 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/operations/load.ts @@ -0,0 +1,30 @@ +/* + * 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 { SourceQuery } from '../../../../../common/graphql/types'; +import { + createGraphqlOperationActionCreators, + createGraphqlOperationReducer, + createGraphqlQueryEpic, +} from '../../../../utils/remote_state/remote_graphql_state'; +import { initialSourceState } from '../state'; +import { sourceQuery } from './query_source.gql_query'; + +const operationKey = 'load'; + +export const loadSourceActionCreators = createGraphqlOperationActionCreators< + SourceQuery.Query, + SourceQuery.Variables +>('source', operationKey); + +export const loadSourceReducer = createGraphqlOperationReducer( + operationKey, + initialSourceState, + loadSourceActionCreators, + (state, action) => action.payload.result.data.source +); + +export const loadSourceEpic = createGraphqlQueryEpic(sourceQuery, loadSourceActionCreators); diff --git a/x-pack/plugins/infra/public/store/remote/source/operations/query_source.gql_query.ts b/x-pack/plugins/infra/public/store/remote/source/operations/query_source.gql_query.ts new file mode 100644 index 0000000000000..5450064467458 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/operations/query_source.gql_query.ts @@ -0,0 +1,34 @@ +/* + * 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 gql from 'graphql-tag'; + +export const sourceQuery = gql` + query SourceQuery($sourceId: ID = "default") { + source(id: $sourceId) { + id + configuration { + metricAlias + logAlias + fields { + container + host + pod + } + } + status { + indexFields { + name + type + searchable + aggregatable + } + logIndicesExist + metricIndicesExist + } + } + } +`; diff --git a/x-pack/plugins/infra/public/store/remote/source/reducer.ts b/x-pack/plugins/infra/public/store/remote/source/reducer.ts new file mode 100644 index 0000000000000..811ff72c5ac9e --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/reducer.ts @@ -0,0 +1,13 @@ +/* + * 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 reduceReducers from 'reduce-reducers'; +import { Reducer } from 'redux'; + +import { loadSourceReducer } from './operations/load'; +import { SourceState } from './state'; + +export const sourceReducer = reduceReducers(loadSourceReducer) as Reducer; diff --git a/x-pack/plugins/infra/public/store/remote/source/selectors.ts b/x-pack/plugins/infra/public/store/remote/source/selectors.ts new file mode 100644 index 0000000000000..0ab3ee62745f5 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/selectors.ts @@ -0,0 +1,64 @@ +/* + * 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 { createSelector } from 'reselect'; + +import { createGraphqlStateSelectors } from '../../../utils/remote_state/remote_graphql_state'; +import { SourceRemoteState } from './state'; + +const sourceStatusGraphqlStateSelectors = createGraphqlStateSelectors(); + +export const selectSource = sourceStatusGraphqlStateSelectors.selectData; + +export const selectSourceConfiguration = createSelector( + selectSource, + source => (source ? source.configuration : null) +); + +export const selectSourceLogAlias = createSelector( + selectSourceConfiguration, + configuration => (configuration ? configuration.logAlias : null) +); + +export const selectSourceMetricAlias = createSelector( + selectSourceConfiguration, + configuration => (configuration ? configuration.metricAlias : null) +); + +export const selectSourceFields = createSelector( + selectSourceConfiguration, + configuration => (configuration ? configuration.fields : null) +); + +export const selectSourceStatus = createSelector( + selectSource, + source => (source ? source.status : null) +); + +export const selectSourceLogIndicesExist = createSelector( + selectSourceStatus, + sourceStatus => (sourceStatus ? sourceStatus.logIndicesExist : null) +); + +export const selectSourceMetricIndicesExist = createSelector( + selectSourceStatus, + sourceStatus => (sourceStatus ? sourceStatus.metricIndicesExist : null) +); + +export const selectSourceIndexFields = createSelector( + selectSourceStatus, + sourceStatus => (sourceStatus ? sourceStatus.indexFields : []) +); + +export const selectDerivedIndexPattern = createSelector( + selectSourceIndexFields, + selectSourceLogAlias, + selectSourceMetricAlias, + (indexFields, logAlias, metricAlias) => ({ + fields: indexFields, + title: `${logAlias},${metricAlias}`, + }) +); diff --git a/x-pack/plugins/infra/public/store/remote/source/state.ts b/x-pack/plugins/infra/public/store/remote/source/state.ts new file mode 100644 index 0000000000000..15eef7426dbb7 --- /dev/null +++ b/x-pack/plugins/infra/public/store/remote/source/state.ts @@ -0,0 +1,16 @@ +/* + * 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 { SourceQuery } from '../../../../common/graphql/types'; +import { + createGraphqlInitialState, + GraphqlState, +} from '../../../utils/remote_state/remote_graphql_state'; + +export type SourceRemoteState = SourceQuery.Source; +export type SourceState = GraphqlState; + +export const initialSourceState = createGraphqlInitialState(); diff --git a/x-pack/plugins/infra/public/store/selectors.ts b/x-pack/plugins/infra/public/store/selectors.ts new file mode 100644 index 0000000000000..bbe1a4455e43e --- /dev/null +++ b/x-pack/plugins/infra/public/store/selectors.ts @@ -0,0 +1,108 @@ +/* + * 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 { createSelector } from 'reselect'; + +import { fromKueryExpression, toElasticsearchQuery } from 'ui/kuery'; + +import { getLogEntryAtTime } from '../utils/log_entry'; +import { globalizeSelectors } from '../utils/typed_redux'; +import { + logFilterSelectors as localLogFilterSelectors, + logMinimapSelectors as localLogMinimapSelectors, + logPositionSelectors as localLogPositionSelectors, + logTextviewSelectors as localLogTextviewSelectors, + metricTimeSelectors as localMetricTimeSelectors, + waffleFilterSelectors as localWaffleFilterSelectors, + waffleOptionsSelectors as localWaffleOptionsSelectors, + waffleTimeSelectors as localWaffleTimeSelectors, +} from './local'; +import { State } from './reducer'; +import { + logEntriesSelectors as remoteLogEntriesSelectors, + logSummarySelectors as remoteLogSummarySelectors, + sourceSelectors as remoteSourceSelectors, +} from './remote'; + +/** + * local selectors + */ + +const selectLocal = (state: State) => state.local; + +export const logFilterSelectors = globalizeSelectors(selectLocal, localLogFilterSelectors); +export const logMinimapSelectors = globalizeSelectors(selectLocal, localLogMinimapSelectors); +export const logPositionSelectors = globalizeSelectors(selectLocal, localLogPositionSelectors); +export const logTextviewSelectors = globalizeSelectors(selectLocal, localLogTextviewSelectors); +export const metricTimeSelectors = globalizeSelectors(selectLocal, localMetricTimeSelectors); +export const waffleFilterSelectors = globalizeSelectors(selectLocal, localWaffleFilterSelectors); +export const waffleTimeSelectors = globalizeSelectors(selectLocal, localWaffleTimeSelectors); +export const waffleOptionsSelectors = globalizeSelectors(selectLocal, localWaffleOptionsSelectors); + +/** + * remote selectors + */ + +const selectRemote = (state: State) => state.remote; + +export const logEntriesSelectors = globalizeSelectors(selectRemote, remoteLogEntriesSelectors); +export const logSummarySelectors = globalizeSelectors(selectRemote, remoteLogSummarySelectors); +export const sourceSelectors = globalizeSelectors(selectRemote, remoteSourceSelectors); + +/** + * shared selectors + */ + +export const sharedSelectors = { + selectFirstVisibleLogEntry: createSelector( + logEntriesSelectors.selectEntries, + logPositionSelectors.selectFirstVisiblePosition, + (entries, firstVisiblePosition) => + firstVisiblePosition ? getLogEntryAtTime(entries, firstVisiblePosition) : null + ), + selectMiddleVisibleLogEntry: createSelector( + logEntriesSelectors.selectEntries, + logPositionSelectors.selectMiddleVisiblePosition, + (entries, middleVisiblePosition) => + middleVisiblePosition ? getLogEntryAtTime(entries, middleVisiblePosition) : null + ), + selectLastVisibleLogEntry: createSelector( + logEntriesSelectors.selectEntries, + logPositionSelectors.selectLastVisiblePosition, + (entries, lastVisiblePosition) => + lastVisiblePosition ? getLogEntryAtTime(entries, lastVisiblePosition) : null + ), + selectLogFilterQueryAsJson: createSelector( + logFilterSelectors.selectLogFilterQuery, + sourceSelectors.selectDerivedIndexPattern, + (filterQuery, indexPattern) => { + try { + return filterQuery + ? JSON.stringify( + toElasticsearchQuery(fromKueryExpression(filterQuery.expression), indexPattern) + ) + : null; + } catch (err) { + return null; + } + } + ), + selectWaffleFilterQueryAsJson: createSelector( + waffleFilterSelectors.selectWaffleFilterQuery, + sourceSelectors.selectDerivedIndexPattern, + (filterQuery, indexPattern) => { + try { + return filterQuery + ? JSON.stringify( + toElasticsearchQuery(fromKueryExpression(filterQuery.expression), indexPattern) + ) + : null; + } catch (err) { + return null; + } + } + ), +}; diff --git a/x-pack/plugins/infra/public/store/store.ts b/x-pack/plugins/infra/public/store/store.ts new file mode 100644 index 0000000000000..d18ef02875059 --- /dev/null +++ b/x-pack/plugins/infra/public/store/store.ts @@ -0,0 +1,72 @@ +/* + * 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 { Action, applyMiddleware, compose, createStore as createBasicStore } from 'redux'; +import { createEpicMiddleware } from 'redux-observable'; +import { Observable } from 'rxjs'; +import { map } from 'rxjs/operators'; + +import { + createRootEpic, + initialState, + logEntriesSelectors, + logPositionSelectors, + metricTimeSelectors, + reducer, + sharedSelectors, + State, + waffleTimeSelectors, +} from '.'; +import { InfraApolloClient, InfraObservableApi } from '../lib/lib'; + +declare global { + interface Window { + __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: typeof compose; + } +} + +export interface StoreDependencies { + apolloClient: Observable; + observableApi: Observable; +} + +export function createStore({ apolloClient, observableApi }: StoreDependencies) { + const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; + + const middlewareDependencies = { + postToApi$: observableApi.pipe(map(({ post }) => post)), + apolloClient$: apolloClient, + selectIsLoadingLogEntries: logEntriesSelectors.selectIsLoadingEntries, + selectLogEntriesEnd: logEntriesSelectors.selectEntriesEnd, + selectLogEntriesStart: logEntriesSelectors.selectEntriesStart, + selectHasMoreLogEntriesAfterEnd: logEntriesSelectors.selectHasMoreAfterEnd, + selectHasMoreLogEntriesBeforeStart: logEntriesSelectors.selectHasMoreBeforeStart, + selectIsAutoReloadingLogEntries: logPositionSelectors.selectIsAutoReloading, + selectLogFilterQueryAsJson: sharedSelectors.selectLogFilterQueryAsJson, + selectLogTargetPosition: logPositionSelectors.selectTargetPosition, + selectVisibleLogMidpointOrTarget: logPositionSelectors.selectVisibleMidpointOrTarget, + selectVisibleLogSummary: logPositionSelectors.selectVisibleSummary, + selectWaffleTimeUpdatePolicyInterval: waffleTimeSelectors.selectTimeUpdatePolicyInterval, + selectMetricTimeUpdatePolicyInterval: metricTimeSelectors.selectTimeUpdatePolicyInterval, + selectMetricRangeFromTimeRange: metricTimeSelectors.selectRangeFromTimeRange, + }; + + const epicMiddleware = createEpicMiddleware( + { + dependencies: middlewareDependencies, + } + ); + + const store = createBasicStore( + reducer, + initialState, + composeEnhancers(applyMiddleware(epicMiddleware)) + ); + + epicMiddleware.run(createRootEpic()); + + return store; +} diff --git a/x-pack/plugins/infra/public/utils/formatters/data.ts b/x-pack/plugins/infra/public/utils/formatters/data.ts new file mode 100644 index 0000000000000..07b404c84f983 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/formatters/data.ts @@ -0,0 +1,73 @@ +/* + * 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 { InfraWaffleMapDataFormat } from '../../lib/lib'; +import { formatNumber } from './number'; + +/** + * The labels are derived from these two Wikipedia articles. + * https://en.wikipedia.org/wiki/Kilobit + * https://en.wikipedia.org/wiki/Kilobyte + */ +const LABELS = { + [InfraWaffleMapDataFormat.bytesDecimal]: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], + [InfraWaffleMapDataFormat.bytesBinaryIEC]: [ + 'b', + 'Kib', + 'Mib', + 'Gib', + 'Tib', + 'Pib', + 'Eib', + 'Zib', + 'Yib', + ], + [InfraWaffleMapDataFormat.bytesBinaryJEDEC]: ['B', 'KB', 'MB', 'GB'], + [InfraWaffleMapDataFormat.bitsDecimal]: [ + 'bit', + 'kbit', + 'Mbit', + 'Gbit', + 'Tbit', + 'Pbit', + 'Ebit', + 'Zbit', + 'Ybit', + ], + [InfraWaffleMapDataFormat.bitsBinaryIEC]: [ + 'bit', + 'Kibit', + 'Mibit', + 'Gibit', + 'Tibit', + 'Pibit', + 'Eibit', + 'Zibit', + 'Yibit', + ], + [InfraWaffleMapDataFormat.bitsBinaryJEDEC]: ['bit', 'Kbit', 'Mbit', 'Gbit'], + [InfraWaffleMapDataFormat.abbreviatedNumber]: ['', 'K', 'M', 'B', 'T'], +}; + +const BASES = { + [InfraWaffleMapDataFormat.bytesDecimal]: 1000, + [InfraWaffleMapDataFormat.bytesBinaryIEC]: 1024, + [InfraWaffleMapDataFormat.bytesBinaryJEDEC]: 1024, + [InfraWaffleMapDataFormat.bitsDecimal]: 1000, + [InfraWaffleMapDataFormat.bitsBinaryIEC]: 1024, + [InfraWaffleMapDataFormat.bitsBinaryJEDEC]: 1024, + [InfraWaffleMapDataFormat.abbreviatedNumber]: 1000, +}; + +export const createDataFormatter = (format: InfraWaffleMapDataFormat) => (val: number) => { + const labels = LABELS[format]; + const base = BASES[format]; + const power = Math.min(Math.floor(Math.log(Math.abs(val)) / Math.log(base)), labels.length - 1); + if (power < 0) { + return `${formatNumber(val)}${labels[0]}`; + } + return `${formatNumber(val / Math.pow(base, power))}${labels[power]}`; +}; diff --git a/x-pack/plugins/infra/public/utils/formatters/index.ts b/x-pack/plugins/infra/public/utils/formatters/index.ts new file mode 100644 index 0000000000000..864890a43f957 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/formatters/index.ts @@ -0,0 +1,32 @@ +/* + * 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 Mustache from 'mustache'; +import { InfraFormatterType, InfraWaffleMapDataFormat } from '../../lib/lib'; +import { createDataFormatter } from './data'; +import { formatNumber } from './number'; +import { formatPercent } from './percent'; + +export const FORMATTERS = { + [InfraFormatterType.number]: formatNumber, + [InfraFormatterType.abbreviatedNumber]: createDataFormatter( + InfraWaffleMapDataFormat.abbreviatedNumber + ), + [InfraFormatterType.bytes]: createDataFormatter(InfraWaffleMapDataFormat.bytesDecimal), + [InfraFormatterType.bits]: createDataFormatter(InfraWaffleMapDataFormat.bitsDecimal), + [InfraFormatterType.percent]: formatPercent, +}; + +export const createFormatter = (format: InfraFormatterType, template: string = '{{value}}') => ( + val: string | number +) => { + if (val == null) { + return ''; + } + const fmtFn = FORMATTERS[format]; + const value = fmtFn(Number(val)); + return Mustache.render(template, { value }); +}; diff --git a/x-pack/plugins/infra/public/utils/formatters/number.ts b/x-pack/plugins/infra/public/utils/formatters/number.ts new file mode 100644 index 0000000000000..db4ad4190bd73 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/formatters/number.ts @@ -0,0 +1,11 @@ +/* + * 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 formatNumber = (val: number) => { + return Number(val).toLocaleString('en', { + maximumFractionDigits: 1, + }); +}; diff --git a/x-pack/plugins/infra/public/utils/formatters/percent.ts b/x-pack/plugins/infra/public/utils/formatters/percent.ts new file mode 100644 index 0000000000000..c1cd9cd089d17 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/formatters/percent.ts @@ -0,0 +1,10 @@ +/* + * 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 { formatNumber } from './number'; +export const formatPercent = (val: number) => { + return `${formatNumber(val * 100)}%`; +}; diff --git a/x-pack/plugins/infra/public/utils/handlers.ts b/x-pack/plugins/infra/public/utils/handlers.ts new file mode 100644 index 0000000000000..4678718169b94 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/handlers.ts @@ -0,0 +1,24 @@ +/* + * 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 isEqual from 'lodash/fp/isEqual'; + +export function callWithoutRepeats( + func: (...args: any[]) => T, + isArgsEqual: (firstArgs: any, secondArgs: any) => boolean = isEqual +) { + let previousArgs: any[]; + let previousResult: T; + + return (...args: any[]) => { + if (!isArgsEqual(args, previousArgs)) { + previousArgs = args; + previousResult = func(...args); + } + + return previousResult; + }; +} diff --git a/x-pack/plugins/infra/public/utils/loading_state/index.ts b/x-pack/plugins/infra/public/utils/loading_state/index.ts new file mode 100644 index 0000000000000..d4a1b8e52ad00 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/loading_state/index.ts @@ -0,0 +1,30 @@ +/* + * 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 { initialLoadingState, LoadingState } from './loading_state'; + +export { isManualLoadingPolicy, isIntervalLoadingPolicy, LoadingPolicy } from './loading_policy'; + +export { + createRunningProgressReducer, + createIdleProgressReducer, + isIdleLoadingProgress, + isRunningLoadingProgress, + LoadingProgress, +} from './loading_progress'; + +export { + createFailureResult, + createFailureResultReducer, + createSuccessResult, + createSuccessResultReducer, + getTimeOrDefault, + isExhaustedLoadingResult, + isFailureLoadingResult, + isSuccessLoadingResult, + isUninitializedLoadingResult, + LoadingResult, +} from './loading_result'; diff --git a/x-pack/plugins/infra/public/utils/loading_state/loading_policy.ts b/x-pack/plugins/infra/public/utils/loading_state/loading_policy.ts new file mode 100644 index 0000000000000..6a129e7b79c87 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/loading_state/loading_policy.ts @@ -0,0 +1,24 @@ +/* + * 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. + */ + +interface ManualLoadingPolicy { + policy: 'manual'; +} + +interface IntervalLoadingPolicy { + policy: 'interval'; + delayMillis: number; +} + +export type LoadingPolicy = ManualLoadingPolicy | IntervalLoadingPolicy; + +export const isManualLoadingPolicy = ( + loadingPolicy: LoadingPolicy +): loadingPolicy is ManualLoadingPolicy => loadingPolicy.policy === 'manual'; + +export const isIntervalLoadingPolicy = ( + loadingPolicy: LoadingPolicy +): loadingPolicy is IntervalLoadingPolicy => loadingPolicy.policy === 'interval'; diff --git a/x-pack/plugins/infra/public/utils/loading_state/loading_progress.ts b/x-pack/plugins/infra/public/utils/loading_state/loading_progress.ts new file mode 100644 index 0000000000000..8e2b09ee5f1f5 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/loading_state/loading_progress.ts @@ -0,0 +1,40 @@ +/* + * 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. + */ + +interface IdleLoadingProgress { + progress: 'idle'; +} + +interface RunningLoadingProgress { + progress: 'running'; + time: number; + parameters: Parameters; +} + +export type LoadingProgress = IdleLoadingProgress | RunningLoadingProgress; + +export const isIdleLoadingProgress =

      ( + loadingProgress: LoadingProgress

      +): loadingProgress is IdleLoadingProgress => loadingProgress.progress === 'idle'; + +export const isRunningLoadingProgress =

      ( + loadingProgress: LoadingProgress

      +): loadingProgress is RunningLoadingProgress

      => loadingProgress.progress === 'running'; + +export const createIdleProgressReducer = () => ( + state: LoadingProgress +): IdleLoadingProgress => ({ + progress: 'idle', +}); + +export const createRunningProgressReducer = () => ( + state: LoadingProgress, + parameters: Parameters +): RunningLoadingProgress => ({ + parameters, + progress: 'running', + time: Date.now(), +}); diff --git a/x-pack/plugins/infra/public/utils/loading_state/loading_result.ts b/x-pack/plugins/infra/public/utils/loading_state/loading_result.ts new file mode 100644 index 0000000000000..e48b04743c811 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/loading_state/loading_result.ts @@ -0,0 +1,88 @@ +/* + * 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. + */ + +interface UninitializedLoadingResult { + result: 'uninitialized'; +} + +interface SuccessLoadingResult { + result: 'success'; + time: number; + isExhausted: boolean; + parameters: Parameters; +} + +interface FailureLoadingResult { + result: 'failure'; + time: number; + reason: string; + parameters: Parameters; +} + +export type LoadingResult = + | UninitializedLoadingResult + | SuccessLoadingResult + | FailureLoadingResult; + +export const isUninitializedLoadingResult =

      ( + loadingResult: LoadingResult

      +): loadingResult is UninitializedLoadingResult => loadingResult.result === 'uninitialized'; + +export const isSuccessLoadingResult =

      ( + loadingResult: LoadingResult

      +): loadingResult is SuccessLoadingResult

      => loadingResult.result === 'success'; + +export const isFailureLoadingResult =

      ( + loadingResult: LoadingResult

      +): loadingResult is FailureLoadingResult

      => loadingResult.result === 'failure'; + +export const isExhaustedLoadingResult =

      (loadingResult: LoadingResult

      ) => + isSuccessLoadingResult(loadingResult) && loadingResult.isExhausted; + +interface GetTimeOrDefaultT { +

      (loadingResult: LoadingResult

      ): number | null; + (loadingResult: LoadingResult

      , defaultValue: T): number | T; + (loadingResult: LoadingResult

      , defaultValue?: T): number | T | null; +} + +export const getTimeOrDefault: GetTimeOrDefaultT = ( + loadingResult: LoadingResult

      , + defaultValue?: T +) => (isUninitializedLoadingResult(loadingResult) ? defaultValue || null : loadingResult.time); + +export const createSuccessResult = ( + parameters: Parameters, + isExhausted: boolean +): SuccessLoadingResult => ({ + isExhausted, + parameters, + result: 'success', + time: Date.now(), +}); + +export const createSuccessResultReducer = ( + isExhausted: (params: Parameters, result: Payload) => boolean +) => ( + state: LoadingResult, + { params, result }: { params: Parameters; result: Payload } +): SuccessLoadingResult => createSuccessResult(params, isExhausted(params, result)); + +export const createFailureResult = ( + parameters: Parameters, + reason: string +): FailureLoadingResult => ({ + parameters, + reason, + result: 'failure', + time: Date.now(), +}); + +export const createFailureResultReducer = ( + convertErrorToString: (error: ErrorPayload) => string = error => `${error}` +) => ( + state: LoadingResult, + { params, error }: { params: Parameters; error: ErrorPayload } +): FailureLoadingResult => createFailureResult(params, convertErrorToString(error)); diff --git a/x-pack/plugins/infra/public/utils/loading_state/loading_state.ts b/x-pack/plugins/infra/public/utils/loading_state/loading_state.ts new file mode 100644 index 0000000000000..d5066dd4c9007 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/loading_state/loading_state.ts @@ -0,0 +1,27 @@ +/* + * 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 { LoadingPolicy } from './loading_policy'; +import { LoadingProgress } from './loading_progress'; +import { LoadingResult } from './loading_result'; + +export interface LoadingState { + current: LoadingProgress; + last: LoadingResult; + policy: LoadingPolicy; +} + +export const initialLoadingState: LoadingState = { + current: { + progress: 'idle', + }, + last: { + result: 'uninitialized', + }, + policy: { + policy: 'manual', + }, +}; diff --git a/x-pack/plugins/infra/public/utils/log_entry/index.ts b/x-pack/plugins/infra/public/utils/log_entry/index.ts new file mode 100644 index 0000000000000..66cc5108b6692 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/log_entry/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './log_entry'; diff --git a/x-pack/plugins/infra/public/utils/log_entry/log_entry.ts b/x-pack/plugins/infra/public/utils/log_entry/log_entry.ts new file mode 100644 index 0000000000000..d4eac795612b4 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/log_entry/log_entry.ts @@ -0,0 +1,28 @@ +/* + * 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 { bisector } from 'd3-array'; + +import { LogEntries as LogEntriesQuery } from '../../../common/graphql/types'; +import { compareToTimeKey, getIndexAtTimeKey, TimeKey } from '../../../common/time'; + +export type LogEntry = LogEntriesQuery.Entries; + +export type LogEntryMessageSegment = LogEntriesQuery.Message; + +export const getLogEntryKey = (entry: LogEntry) => entry.key; + +const logEntryTimeBisector = bisector(compareToTimeKey(getLogEntryKey)); + +export const getLogEntryIndexBeforeTime = logEntryTimeBisector.left; +export const getLogEntryIndexAfterTime = logEntryTimeBisector.right; +export const getLogEntryIndexAtTime = getIndexAtTimeKey(getLogEntryKey); + +export const getLogEntryAtTime = (entries: LogEntry[], time: TimeKey) => { + const entryIndex = getLogEntryIndexAtTime(entries, time); + + return entryIndex !== null ? entries[entryIndex] : null; +}; diff --git a/x-pack/plugins/infra/public/utils/memoize_last.ts b/x-pack/plugins/infra/public/utils/memoize_last.ts new file mode 100644 index 0000000000000..fbab4ce22cf6e --- /dev/null +++ b/x-pack/plugins/infra/public/utils/memoize_last.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +interface MemoizedCall { + args: any[]; + returnValue: any; + this: any; +} + +// A symbol expressing, that the memoized function has never been called +const neverCalled: unique symbol = Symbol(); +type NeverCalled = typeof neverCalled; + +/** + * A simple memoize function, that only stores the last returned value + * and uses the identity of all passed parameters as a cache key. + */ +function memoizeLast any>(func: T): T { + let prevCall: MemoizedCall | NeverCalled = neverCalled; + + // We need to use a `function` here for proper this passing. + // tslint:disable-next-line:only-arrow-functions + const memoizedFunction = function(this: any, ...args: any[]) { + if ( + prevCall !== neverCalled && + prevCall.this === this && + prevCall.args.length === args.length && + prevCall.args.every((arg, index) => arg === args[index]) + ) { + return prevCall.returnValue; + } + + prevCall = { + args, + this: this, + returnValue: func.apply(this, args), + }; + + return prevCall.returnValue; + } as T; + + return memoizedFunction; +} + +export { memoizeLast }; diff --git a/x-pack/plugins/infra/public/utils/remote_state/remote_graphql_state.ts b/x-pack/plugins/infra/public/utils/remote_state/remote_graphql_state.ts new file mode 100644 index 0000000000000..6a03def5d068d --- /dev/null +++ b/x-pack/plugins/infra/public/utils/remote_state/remote_graphql_state.ts @@ -0,0 +1,212 @@ +/* + * 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 { ApolloError, ApolloQueryResult } from 'apollo-client'; +import { DocumentNode } from 'graphql'; +import { Action as ReduxAction } from 'redux'; +import { Epic } from 'redux-observable'; +import { from, Observable } from 'rxjs'; +import { catchError, filter, map, startWith, switchMap, withLatestFrom } from 'rxjs/operators'; +import { Action, ActionCreator, actionCreatorFactory, Failure, Success } from 'typescript-fsa'; +import { reducerWithInitialState } from 'typescript-fsa-reducers/dist'; + +import { createSelector } from 'reselect'; +import { InfraApolloClient } from '../../lib/lib'; +import { + isFailureLoadingResult, + isIdleLoadingProgress, + isRunningLoadingProgress, + isSuccessLoadingResult, + isUninitializedLoadingResult, + LoadingPolicy, + LoadingProgress, + LoadingResult, +} from '../loading_state'; + +export interface GraphqlState { + current: LoadingProgress>; + last: LoadingResult>; + data: State | undefined; +} + +interface OperationInfo { + operationKey: string; + variables: Variables; +} + +type ResolveDonePayload = Success>; +type ResolveFailedPayload = Failure; + +interface OperationActionCreators { + resolve: ActionCreator; + resolveStarted: ActionCreator; + resolveDone: ActionCreator>; + resolveFailed: ActionCreator>; +} + +export const createGraphqlInitialState = (initialData?: State): GraphqlState => ({ + current: { + progress: 'idle', + }, + last: { + result: 'uninitialized', + }, + data: initialData, +}); + +export const createGraphqlOperationActionCreators = ( + stateKey: string, + operationKey: string +): OperationActionCreators => { + const actionCreator = actionCreatorFactory(`x-pack/infra/remote/${stateKey}/${operationKey}`); + + const resolve = actionCreator('RESOLVE'); + const resolveEffect = actionCreator.async>('RESOLVE'); + + return { + resolve, + resolveStarted: resolveEffect.started, + resolveDone: resolveEffect.done, + resolveFailed: resolveEffect.failed, + }; +}; + +export const createGraphqlOperationReducer = ( + operationKey: string, + initialState: GraphqlState, + actionCreators: OperationActionCreators, + reduceSuccess: ( + state: State | undefined, + action: Action> + ) => State | undefined = state => state +) => + reducerWithInitialState(initialState) + .caseWithAction(actionCreators.resolveStarted, (state, action) => ({ + ...state, + current: { + progress: 'running', + time: Date.now(), + parameters: { + operationKey, + variables: action.payload, + }, + }, + })) + .caseWithAction(actionCreators.resolveDone, (state, action) => ({ + ...state, + current: { + progress: 'idle', + }, + last: { + result: 'success', + parameters: { + operationKey, + variables: action.payload.params, + }, + time: Date.now(), + isExhausted: false, + }, + data: reduceSuccess(state.data, action), + })) + .caseWithAction(actionCreators.resolveFailed, (state, action) => ({ + ...state, + current: { + progress: 'idle', + }, + last: { + result: 'failure', + reason: `${action.payload}`, + time: Date.now(), + parameters: { + operationKey, + variables: action.payload.params, + }, + }, + })) + .build(); + +export const createGraphqlQueryEpic = ( + graphqlQuery: DocumentNode, + actionCreators: OperationActionCreators +): Epic< + ReduxAction, + ReduxAction, + any, + { + apolloClient$: Observable; + } +> => (action$, state$, { apolloClient$ }) => + action$.pipe( + filter(actionCreators.resolve.match), + withLatestFrom(apolloClient$), + switchMap(([{ payload: variables }, apolloClient]) => + from( + apolloClient.query({ + query: graphqlQuery, + variables, + fetchPolicy: 'no-cache', + }) + ).pipe( + map(result => actionCreators.resolveDone({ params: variables, result })), + catchError(error => [actionCreators.resolveFailed({ params: variables, error })]), + startWith(actionCreators.resolveStarted(variables)) + ) + ) + ); + +export const createGraphqlStateSelectors = ( + selectState: (parentState: any) => GraphqlState = parentState => parentState +) => { + const selectData = createSelector(selectState, state => state.data); + + const selectLoadingProgress = createSelector(selectState, state => state.current); + const selectLoadingProgressOperationInfo = createSelector( + selectLoadingProgress, + progress => (isRunningLoadingProgress(progress) ? progress.parameters : null) + ); + const selectIsLoading = createSelector(selectLoadingProgress, isRunningLoadingProgress); + const selectIsIdle = createSelector(selectLoadingProgress, isIdleLoadingProgress); + + const selectLoadingResult = createSelector(selectState, state => state.last); + const selectLoadingResultOperationInfo = createSelector( + selectLoadingResult, + result => (!isUninitializedLoadingResult(result) ? result.parameters : null) + ); + const selectLoadingResultTime = createSelector( + selectLoadingResult, + result => (!isUninitializedLoadingResult(result) ? result.time : null) + ); + const selectIsUninitialized = createSelector(selectLoadingResult, isUninitializedLoadingResult); + const selectIsSuccess = createSelector(selectLoadingResult, isSuccessLoadingResult); + const selectIsFailure = createSelector(selectLoadingResult, isFailureLoadingResult); + + const selectLoadingState = createSelector( + selectLoadingProgress, + selectLoadingResult, + (loadingProgress, loadingResult) => ({ + current: loadingProgress, + last: loadingResult, + policy: { + policy: 'manual', + } as LoadingPolicy, + }) + ); + + return { + selectData, + selectIsFailure, + selectIsIdle, + selectIsLoading, + selectIsSuccess, + selectIsUninitialized, + selectLoadingProgress, + selectLoadingProgressOperationInfo, + selectLoadingResult, + selectLoadingResultOperationInfo, + selectLoadingResultTime, + selectLoadingState, + }; +}; diff --git a/x-pack/plugins/infra/public/utils/styles.ts b/x-pack/plugins/infra/public/utils/styles.ts new file mode 100644 index 0000000000000..0dd7b47950d05 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/styles.ts @@ -0,0 +1,44 @@ +/* + * 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 get from 'lodash/fp/get'; +import getOr from 'lodash/fp/getOr'; +import { parseToHsl, shade, tint } from 'polished'; + +type PropReader = (props: object, defaultValue?: Default) => Prop; + +const asPropReader = (reader: string | string[] | PropReader) => + typeof reader === 'function' + ? reader + : ( + props: Props, + defaultValue?: Default + ) => getOr(defaultValue, reader as Prop, props); + +export const switchProp = Object.assign( + (propName: string | string[] | PropReader, options: Map | object) => ( + props: object + ) => { + const propValue = asPropReader(propName)(props, switchProp.default); + if (typeof propValue === 'undefined') { + return; + } + return options instanceof Map ? options.get(propValue) : get(propValue, options); + }, + { + default: Symbol('default'), + } +); + +export const ifProp = ( + propName: string | string[] | PropReader, + pass: Pass, + fail: Fail +) => (props: object) => (asPropReader(propName)(props) ? pass : fail); + +export const tintOrShade = (textColor: 'string', color: 'string', fraction: number) => { + return parseToHsl(textColor).lightness > 0.5 ? shade(fraction, color) : tint(fraction, color); +}; diff --git a/x-pack/plugins/infra/public/utils/typed_react.tsx b/x-pack/plugins/infra/public/utils/typed_react.tsx new file mode 100644 index 0000000000000..99c43608a3044 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/typed_react.tsx @@ -0,0 +1,65 @@ +/* + * 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 omit from 'lodash/fp/omit'; +import React from 'react'; +import { InferableComponentEnhancerWithProps } from 'react-redux'; + +export type RendererResult = React.ReactElement | null; +export type RendererFunction = (args: RenderArgs) => Result; + +export type ChildFunctionRendererProps = { + children: RendererFunction; + initializeOnMount?: boolean; + resetOnUnmount?: boolean; +} & RenderArgs; + +interface ChildFunctionRendererOptions { + onInitialize?: (props: RenderArgs) => void; + onCleanup?: (props: RenderArgs) => void; +} + +export const asChildFunctionRenderer = ( + hoc: InferableComponentEnhancerWithProps, + { onInitialize, onCleanup }: ChildFunctionRendererOptions = {} +) => + hoc( + class ChildFunctionRenderer extends React.Component> { + public displayName = 'ChildFunctionRenderer'; + + public componentDidMount() { + if (this.props.initializeOnMount && onInitialize) { + onInitialize(this.getRendererArgs()); + } + } + + public componentWillUnmount() { + if (this.props.resetOnUnmount && onCleanup) { + onCleanup(this.getRendererArgs()); + } + } + + public render() { + return this.props.children(this.getRendererArgs()); + } + + private getRendererArgs = () => + omit(['children', 'initializeOnMount', 'resetOnUnmount'], this.props) as Pick< + ChildFunctionRendererProps, + keyof InjectedProps + >; + } + ); + +export type StateUpdater = ( + prevState: Readonly, + prevProps: Readonly +) => State | null; + +export function composeStateUpdaters(...updaters: Array>) { + return (state: State, props: Props) => + updaters.reduce((currentState, updater) => updater(currentState, props) || currentState, state); +} diff --git a/x-pack/plugins/infra/public/utils/typed_redux.ts b/x-pack/plugins/infra/public/utils/typed_redux.ts new file mode 100644 index 0000000000000..391c580902176 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/typed_redux.ts @@ -0,0 +1,68 @@ +/* + * 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 { bindActionCreators, Dispatch } from 'redux'; + +/** + * Selectors + */ +export type Selector = (state: State) => Value; + +export interface Selectors { + [selectorName: string]: Selector; +} + +export type GlobalSelectors = { + [selectorName in keyof LocalSelectors]: Selector< + GlobalState, + ReturnType + > +}; + +export const globalizeSelector = < + GlobalState, + LocalSelector extends Selector, + LocalState = any, + Value = any +>( + globalizer: Selector, + selector: LocalSelector +): Selector => (globalState: GlobalState) => selector(globalizer(globalState)); + +export const globalizeSelectors = < + GlobalState, + LocalSelectors extends Selectors, + LocalState = any +>( + globalizer: (globalState: GlobalState) => LocalState, + selectors: LocalSelectors +): GlobalSelectors => { + const globalSelectors = {} as GlobalSelectors; + for (const s in selectors) { + if (selectors.hasOwnProperty(s)) { + globalSelectors[s] = globalizeSelector(globalizer, selectors[s]); + } + } + return globalSelectors; +}; + +/** + * Action Creators + */ +interface ActionCreators { + [key: string]: (arg: any) => any; +} + +type PlainActionCreator = WrappedActionCreator extends () => infer R + ? () => R + : WrappedActionCreator extends (payload: infer A) => infer R ? (payload: A) => R : never; + +export const bindPlainActionCreators = ( + actionCreators: WrappedActionCreators +) => (dispatch: Dispatch) => + bindActionCreators(actionCreators, dispatch) as { + [P in keyof WrappedActionCreators]: PlainActionCreator + }; diff --git a/x-pack/plugins/infra/public/utils/url_state.tsx b/x-pack/plugins/infra/public/utils/url_state.tsx new file mode 100644 index 0000000000000..8ed80fbb2e383 --- /dev/null +++ b/x-pack/plugins/infra/public/utils/url_state.tsx @@ -0,0 +1,164 @@ +/* + * 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 { History, Location } from 'history'; +import throttle from 'lodash/fp/throttle'; +import { parse as parseQueryString, stringify as stringifyQueryString } from 'querystring'; +import React from 'react'; +import { Route, RouteProps } from 'react-router'; +import { decode, encode, RisonValue } from 'rison-node'; + +interface UrlStateContainerProps { + urlState: UrlState | undefined; + urlStateKey: string; + mapToUrlState?: (value: any) => UrlState | undefined; + onChange?: (urlState: UrlState, previousUrlState: UrlState | undefined) => void; + onInitialize?: (urlState: UrlState | undefined) => void; +} + +interface UrlStateContainerLifecycleProps extends UrlStateContainerProps { + location: Location; + history: History; +} + +class UrlStateContainerLifecycle extends React.Component< + UrlStateContainerLifecycleProps +> { + public render() { + return null; + } + + public componentDidUpdate({ + location: prevLocation, + urlState: prevUrlState, + }: UrlStateContainerLifecycleProps) { + const { history, location, urlState } = this.props; + + if (urlState !== prevUrlState) { + this.replaceStateInLocation(urlState); + } + + if (history.action === 'POP' && location !== prevLocation) { + this.handleLocationChange(prevLocation, location); + } + } + + public componentDidMount() { + const { location } = this.props; + + this.handleInitialize(location); + } + + // tslint:disable-next-line:member-ordering this is really a method despite what tslint thinks + private replaceStateInLocation = throttle(1000, (urlState: UrlState | undefined) => { + const { history, location, urlStateKey } = this.props; + + const newLocation = replaceQueryStringInLocation( + location, + replaceStateKeyInQueryString(urlStateKey, urlState)(getQueryStringFromLocation(location)) + ); + + if (newLocation !== location) { + history.replace(newLocation); + } + }); + + private handleInitialize = (location: Location) => { + const { onInitialize, mapToUrlState, urlStateKey } = this.props; + + if (!onInitialize || !mapToUrlState) { + return; + } + + const newUrlStateString = getParamFromQueryString( + getQueryStringFromLocation(location), + urlStateKey + ); + const newUrlState = mapToUrlState(decodeRisonUrlState(newUrlStateString)); + + onInitialize(newUrlState); + }; + + private handleLocationChange = (prevLocation: Location, newLocation: Location) => { + const { onChange, mapToUrlState, urlStateKey } = this.props; + + if (!onChange || !mapToUrlState) { + return; + } + + const previousUrlStateString = getParamFromQueryString( + getQueryStringFromLocation(prevLocation), + urlStateKey + ); + const newUrlStateString = getParamFromQueryString( + getQueryStringFromLocation(newLocation), + urlStateKey + ); + + if (previousUrlStateString !== newUrlStateString) { + const previousUrlState = mapToUrlState(decodeRisonUrlState(previousUrlStateString)); + const newUrlState = mapToUrlState(decodeRisonUrlState(newUrlStateString)); + + if (typeof newUrlState !== 'undefined') { + onChange(newUrlState, previousUrlState); + } + } + }; +} + +export const UrlStateContainer = ( + props: UrlStateContainerProps +) => ( + > + {({ history, location }) => ( + history={history} location={location} {...props} /> + )} + +); + +export const decodeRisonUrlState = (value: string | undefined): RisonValue | undefined => { + try { + return value ? decode(value) : undefined; + } catch (error) { + if (error instanceof Error && error.message.startsWith('rison decoder error')) { + return {}; + } + throw error; + } +}; + +const encodeRisonUrlState = (state: any) => encode(state); + +export const getQueryStringFromLocation = (location: Location) => location.search.substring(1); + +export const getParamFromQueryString = (queryString: string, key: string): string | undefined => { + const queryParam = parseQueryString(queryString)[key]; + return Array.isArray(queryParam) ? queryParam[0] : queryParam; +}; + +export const replaceStateKeyInQueryString = ( + stateKey: string, + urlState: UrlState | undefined +) => (queryString: string) => { + const previousQueryValues = parseQueryString(queryString); + const encodedUrlState = + typeof urlState !== 'undefined' ? encodeRisonUrlState(urlState) : undefined; + return stringifyQueryString({ + ...previousQueryValues, + [stateKey]: encodedUrlState, + }); +}; + +const replaceQueryStringInLocation = (location: Location, queryString: string): Location => { + if (queryString === getQueryStringFromLocation(location)) { + return location; + } else { + return { + ...location, + search: `?${queryString}`, + }; + } +}; diff --git a/x-pack/plugins/infra/scripts/combined_schema.ts b/x-pack/plugins/infra/scripts/combined_schema.ts new file mode 100644 index 0000000000000..ec3628b2632c9 --- /dev/null +++ b/x-pack/plugins/infra/scripts/combined_schema.ts @@ -0,0 +1,16 @@ +/* + * 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 { buildSchemaFromTypeDefinitions } from 'graphql-tools'; + +import { schemas as serverSchemas } from '../server/graphql'; + +export const schemas = [...serverSchemas]; + +// this default export is used to feed the combined types to the gql-gen tool +// which generates the corresponding typescript types +// tslint:disable-next-line:no-default-export +export default buildSchemaFromTypeDefinitions(schemas); diff --git a/x-pack/plugins/infra/scripts/generate_types_from_graphql.js b/x-pack/plugins/infra/scripts/generate_types_from_graphql.js new file mode 100644 index 0000000000000..f36979c159376 --- /dev/null +++ b/x-pack/plugins/infra/scripts/generate_types_from_graphql.js @@ -0,0 +1,49 @@ +/* + * 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. + */ + +const { join, resolve } = require('path'); +// eslint-disable-next-line import/no-extraneous-dependencies, import/no-unresolved +const { generate } = require('graphql-code-generator'); + +const GRAPHQL_GLOBS = [ + join('public', 'containers', '**', '*.gql_query.ts{,x}'), + join('public', 'store', '**', '*.gql_query.ts{,x}'), + join('common', 'graphql', '**', '*.gql_query.ts{,x}'), +]; +const CONFIG_PATH = resolve(__dirname, 'gql_gen.json'); +const OUTPUT_INTROSPECTION_PATH = resolve('common', 'graphql', 'introspection.json'); +const OUTPUT_TYPES_PATH = resolve('common', 'graphql', 'types.ts'); +const SCHEMA_PATH = resolve(__dirname, 'combined_schema.ts'); + +async function main() { + await generate( + { + args: GRAPHQL_GLOBS, + config: CONFIG_PATH, + out: OUTPUT_INTROSPECTION_PATH, + overwrite: true, + require: ['ts-node/register'], + schema: SCHEMA_PATH, + template: 'graphql-codegen-introspection-template', + }, + true + ); + await generate( + { + args: GRAPHQL_GLOBS, + config: CONFIG_PATH, + out: OUTPUT_TYPES_PATH, + overwrite: true, + schema: SCHEMA_PATH, + template: 'graphql-codegen-typescript-template', + }, + true + ); +} + +if (require.main === module) { + main(); +} diff --git a/x-pack/plugins/infra/scripts/gql_gen.json b/x-pack/plugins/infra/scripts/gql_gen.json new file mode 100644 index 0000000000000..87b8233dd1eeb --- /dev/null +++ b/x-pack/plugins/infra/scripts/gql_gen.json @@ -0,0 +1,11 @@ +{ + "flattenTypes": true, + "generatorConfig": {}, + "primitives": { + "String": "string", + "Int": "number", + "Float": "number", + "Boolean": "boolean", + "ID": "string" + } +} diff --git a/x-pack/plugins/infra/server/graphql/capabilities/index.ts b/x-pack/plugins/infra/server/graphql/capabilities/index.ts new file mode 100644 index 0000000000000..3f6f9541eda33 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/capabilities/index.ts @@ -0,0 +1,8 @@ +/* + * 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 { createCapabilitiesResolvers } from './resolvers'; +export { capabilitiesSchema } from './schema.gql'; diff --git a/x-pack/plugins/infra/server/graphql/capabilities/resolvers.ts b/x-pack/plugins/infra/server/graphql/capabilities/resolvers.ts new file mode 100644 index 0000000000000..fa242f67b230f --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/capabilities/resolvers.ts @@ -0,0 +1,37 @@ +/* + * 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 { InfraSourceResolvers } from '../../../common/graphql/types'; +import { InfraResolvedResult, InfraResolverOf } from '../../lib/adapters/framework'; +import { InfraCapabilitiesDomain } from '../../lib/domains/capabilities_domain'; +import { InfraContext } from '../../lib/infra_types'; +import { QuerySourceResolver } from '../sources/resolvers'; + +type InfraSourceCapabilitiesByNodeResolver = InfraResolverOf< + InfraSourceResolvers.CapabilitiesByNodeResolver, + InfraResolvedResult, + InfraContext +>; + +export const createCapabilitiesResolvers = (libs: { + capabilities: InfraCapabilitiesDomain; +}): { + InfraSource: { + capabilitiesByNode: InfraSourceCapabilitiesByNodeResolver; + }; +} => ({ + InfraSource: { + async capabilitiesByNode(source, args, { req }) { + const result = await libs.capabilities.getCapabilities( + req, + source.id, + args.nodeName, + args.nodeType + ); + return result; + }, + }, +}); diff --git a/x-pack/plugins/infra/server/graphql/capabilities/schema.gql.ts b/x-pack/plugins/infra/server/graphql/capabilities/schema.gql.ts new file mode 100644 index 0000000000000..9a97ff29eeb85 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/capabilities/schema.gql.ts @@ -0,0 +1,20 @@ +/* + * 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 gql from 'graphql-tag'; + +export const capabilitiesSchema = gql` + "One specific capability available on a node. A capability corresponds to a fileset or metricset" + type InfraNodeCapability { + name: String! + source: String! + } + + extend type InfraSource { + "A hierarchy of capabilities available on nodes" + capabilitiesByNode(nodeName: String!, nodeType: InfraNodeType!): [InfraNodeCapability]! + } +`; diff --git a/x-pack/plugins/infra/server/graphql/index.ts b/x-pack/plugins/infra/server/graphql/index.ts new file mode 100644 index 0000000000000..7fb3a92330352 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/index.ts @@ -0,0 +1,25 @@ +/* + * 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 { rootSchema } from '../../common/graphql/root/schema.gql'; +import { sharedSchema } from '../../common/graphql/shared/schema.gql'; +import { capabilitiesSchema } from './capabilities/schema.gql'; +import { logEntriesSchema } from './log_entries/schema.gql'; +import { metricsSchema } from './metrics/schema.gql'; +import { nodesSchema } from './nodes/schema.gql'; +import { sourceStatusSchema } from './source_status/schema.gql'; +import { sourcesSchema } from './sources/schema.gql'; + +export const schemas = [ + rootSchema, + sharedSchema, + capabilitiesSchema, + logEntriesSchema, + nodesSchema, + sourcesSchema, + sourceStatusSchema, + metricsSchema, +]; diff --git a/x-pack/plugins/infra/server/graphql/log_entries/index.ts b/x-pack/plugins/infra/server/graphql/log_entries/index.ts new file mode 100644 index 0000000000000..21134862663ec --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/log_entries/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { createLogEntriesResolvers } from './resolvers'; diff --git a/x-pack/plugins/infra/server/graphql/log_entries/resolvers.ts b/x-pack/plugins/infra/server/graphql/log_entries/resolvers.ts new file mode 100644 index 0000000000000..3a16ff0c341db --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/log_entries/resolvers.ts @@ -0,0 +1,143 @@ +/* + * 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 { + InfraLogMessageConstantSegment, + InfraLogMessageFieldSegment, + InfraLogMessageSegment, + InfraSourceResolvers, +} from '../../../common/graphql/types'; +import { InfraResolvedResult, InfraResolverOf } from '../../lib/adapters/framework'; +import { InfraLogEntriesDomain } from '../../lib/domains/log_entries_domain'; +import { InfraContext } from '../../lib/infra_types'; +import { UsageCollector } from '../../usage/usage_collector'; +import { parseFilterQuery } from '../../utils/serialized_query'; +import { QuerySourceResolver } from '../sources/resolvers'; + +export type InfraSourceLogEntriesAroundResolver = InfraResolverOf< + InfraSourceResolvers.LogEntriesAroundResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceLogEntriesBetweenResolver = InfraResolverOf< + InfraSourceResolvers.LogEntriesBetweenResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceLogSummaryBetweenResolver = InfraResolverOf< + InfraSourceResolvers.LogSummaryBetweenResolver, + InfraResolvedResult, + InfraContext +>; + +export const createLogEntriesResolvers = (libs: { + logEntries: InfraLogEntriesDomain; +}): { + InfraSource: { + logEntriesAround: InfraSourceLogEntriesAroundResolver; + logEntriesBetween: InfraSourceLogEntriesBetweenResolver; + logSummaryBetween: InfraSourceLogSummaryBetweenResolver; + }; + InfraLogMessageSegment: { + __resolveType( + messageSegment: InfraLogMessageSegment + ): 'InfraLogMessageFieldSegment' | 'InfraLogMessageConstantSegment' | null; + }; +} => ({ + InfraSource: { + async logEntriesAround(source, args, { req }) { + const countBefore = args.countBefore || 0; + const countAfter = args.countAfter || 0; + + const { entriesBefore, entriesAfter } = await libs.logEntries.getLogEntriesAround( + req, + source.id, + args.key, + countBefore + 1, + countAfter + 1, + parseFilterQuery(args.filterQuery), + args.highlightQuery || undefined + ); + + const hasMoreBefore = entriesBefore.length > countBefore; + const hasMoreAfter = entriesAfter.length > countAfter; + + const entries = [ + ...(hasMoreBefore ? entriesBefore.slice(1) : entriesBefore), + ...(hasMoreAfter ? entriesAfter.slice(0, -1) : entriesAfter), + ]; + + return { + start: entries.length > 0 ? entries[0].key : null, + end: entries.length > 0 ? entries[entries.length - 1].key : null, + hasMoreBefore, + hasMoreAfter, + filterQuery: args.filterQuery, + highlightQuery: args.highlightQuery, + entries, + }; + }, + async logEntriesBetween(source, args, { req }) { + const entries = await libs.logEntries.getLogEntriesBetween( + req, + source.id, + args.startKey, + args.endKey, + parseFilterQuery(args.filterQuery), + args.highlightQuery || undefined + ); + + return { + start: entries.length > 0 ? entries[0].key : null, + end: entries.length > 0 ? entries[entries.length - 1].key : null, + hasMoreBefore: true, + hasMoreAfter: true, + filterQuery: args.filterQuery, + highlightQuery: args.highlightQuery, + entries, + }; + }, + async logSummaryBetween(source, args, { req }) { + UsageCollector.countLogs(); + const buckets = await libs.logEntries.getLogSummaryBucketsBetween( + req, + source.id, + args.start, + args.end, + args.bucketSize, + parseFilterQuery(args.filterQuery) + ); + + return { + start: buckets.length > 0 ? buckets[0].start : null, + end: buckets.length > 0 ? buckets[buckets.length - 1].end : null, + buckets, + }; + }, + }, + InfraLogMessageSegment: { + __resolveType: (messageSegment: InfraLogMessageSegment) => { + if (isConstantSegment(messageSegment)) { + return 'InfraLogMessageConstantSegment'; + } + + if (isFieldSegment(messageSegment)) { + return 'InfraLogMessageFieldSegment'; + } + + return null; + }, + }, +}); + +const isConstantSegment = ( + segment: InfraLogMessageSegment +): segment is InfraLogMessageConstantSegment => 'constant' in segment; + +const isFieldSegment = (segment: InfraLogMessageSegment): segment is InfraLogMessageFieldSegment => + 'field' in segment && 'value' in segment && 'highlights' in segment; diff --git a/x-pack/plugins/infra/server/graphql/log_entries/schema.gql.ts b/x-pack/plugins/infra/server/graphql/log_entries/schema.gql.ts new file mode 100644 index 0000000000000..e4947767ffbb1 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/log_entries/schema.gql.ts @@ -0,0 +1,118 @@ +/* + * 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 gql from 'graphql-tag'; + +export const logEntriesSchema = gql` + "A segment of the log entry message that was derived from a field" + type InfraLogMessageFieldSegment { + "The field the segment was derived from" + field: String! + "The segment's message" + value: String! + "A list of highlighted substrings of the value" + highlights: [String!]! + } + + "A segment of the log entry message that was derived from a field" + type InfraLogMessageConstantSegment { + "The segment's message" + constant: String! + } + + "A segment of the log entry message" + union InfraLogMessageSegment = InfraLogMessageFieldSegment | InfraLogMessageConstantSegment + + "A log entry" + type InfraLogEntry { + "A unique representation of the log entry's position in the event stream" + key: InfraTimeKey! + "The log entry's id" + gid: String! + "The source id" + source: String! + "A list of the formatted log entry segments" + message: [InfraLogMessageSegment!]! + } + + "A log summary bucket" + type InfraLogSummaryBucket { + "The start timestamp of the bucket" + start: Float! + "The end timestamp of the bucket" + end: Float! + "The number of entries inside the bucket" + entriesCount: Int! + } + + "A consecutive sequence of log entries" + type InfraLogEntryInterval { + "The key corresponding to the start of the interval covered by the entries" + start: InfraTimeKey + "The key corresponding to the end of the interval covered by the entries" + end: InfraTimeKey + "Whether there are more log entries available before the start" + hasMoreBefore: Boolean! + "Whether there are more log entries available after the end" + hasMoreAfter: Boolean! + "The query the log entries were filtered by" + filterQuery: String + "The query the log entries were highlighted with" + highlightQuery: String + "A list of the log entries" + entries: [InfraLogEntry!]! + } + + "A consecutive sequence of log summary buckets" + type InfraLogSummaryInterval { + "The millisecond timestamp corresponding to the start of the interval covered by the summary" + start: Float + "The millisecond timestamp corresponding to the end of the interval covered by the summary" + end: Float + "The query the log entries were filtered by" + filterQuery: String + "A list of the log entries" + buckets: [InfraLogSummaryBucket!]! + } + + extend type InfraSource { + "A consecutive span of log entries surrounding a point in time" + logEntriesAround( + "The sort key that corresponds to the point in time" + key: InfraTimeKeyInput! + "The maximum number of preceding to return" + countBefore: Int = 0 + "The maximum number of following to return" + countAfter: Int = 0 + "The query to filter the log entries by" + filterQuery: String + "The query to highlight the log entries with" + highlightQuery: String + ): InfraLogEntryInterval! + "A consecutive span of log entries within an interval" + logEntriesBetween( + "The sort key that corresponds to the start of the interval" + startKey: InfraTimeKeyInput! + "The sort key that corresponds to the end of the interval" + endKey: InfraTimeKeyInput! + "The query to filter the log entries by" + filterQuery: String + "The query to highlight the log entries with" + highlightQuery: String + ): InfraLogEntryInterval! + "A consecutive span of summary buckets within an interval" + logSummaryBetween( + "The millisecond timestamp that corresponds to the start of the interval" + start: Float! + "The millisecond timestamp that corresponds to the end of the interval" + end: Float! + "The size of each bucket in milliseconds" + bucketSize: Float! + "The query to filter the log entries by" + filterQuery: String + ): InfraLogSummaryInterval! + } +`; diff --git a/x-pack/plugins/infra/server/graphql/metrics/index.ts b/x-pack/plugins/infra/server/graphql/metrics/index.ts new file mode 100644 index 0000000000000..d7a789c4cda74 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/metrics/index.ts @@ -0,0 +1,8 @@ +/* + * 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 { createMetricResolvers } from './resolvers'; +export { metricsSchema } from './schema.gql'; diff --git a/x-pack/plugins/infra/server/graphql/metrics/resolvers.ts b/x-pack/plugins/infra/server/graphql/metrics/resolvers.ts new file mode 100644 index 0000000000000..e7403f7ce3fcb --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/metrics/resolvers.ts @@ -0,0 +1,44 @@ +/* + * 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 { InfraSourceResolvers } from '../../../common/graphql/types'; +import { InfraResolvedResult, InfraResolverOf } from '../../lib/adapters/framework'; +import { InfraMetricsDomain } from '../../lib/domains/metrics_domain'; +import { InfraContext } from '../../lib/infra_types'; +import { UsageCollector } from '../../usage/usage_collector'; +import { QuerySourceResolver } from '../sources/resolvers'; + +type InfraSourceMetricsResolver = InfraResolverOf< + InfraSourceResolvers.MetricsResolver, + InfraResolvedResult, + InfraContext +>; + +interface ResolverDeps { + metrics: InfraMetricsDomain; +} + +export const createMetricResolvers = ( + libs: ResolverDeps +): { + InfraSource: { + metrics: InfraSourceMetricsResolver; + }; +} => ({ + InfraSource: { + async metrics(source, args, { req }) { + UsageCollector.countNode(args.nodeType); + const options = { + nodeId: args.nodeId, + nodeType: args.nodeType, + timerange: args.timerange, + metrics: args.metrics, + sourceConfiguration: source.configuration, + }; + return libs.metrics.getMetrics(req, options); + }, + }, +}); diff --git a/x-pack/plugins/infra/server/graphql/metrics/schema.gql.ts b/x-pack/plugins/infra/server/graphql/metrics/schema.gql.ts new file mode 100644 index 0000000000000..3218bffe95945 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/metrics/schema.gql.ts @@ -0,0 +1,63 @@ +/* + * 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 gql from 'graphql-tag'; + +export const metricsSchema: any = gql` + enum InfraMetric { + hostSystemOverview + hostCpuUsage + hostFilesystem + hostK8sOverview + hostK8sCpuCap + hostK8sDiskCap + hostK8sMemoryCap + hostK8sPodCap + hostLoad + hostMemoryUsage + hostNetworkTraffic + podOverview + podCpuUsage + podMemoryUsage + podLogUsage + podNetworkTraffic + containerOverview + containerCpuKernel + containerCpuUsage + containerDiskIOOps + containerDiskIOBytes + containerMemory + containerNetworkTraffic + nginxHits + nginxRequestRate + nginxActiveConnections + nginxRequestsPerConnection + } + + type InfraMetricData { + id: InfraMetric + series: [InfraDataSeries!]! + } + + type InfraDataSeries { + id: ID! + data: [InfraDataPoint!]! + } + + type InfraDataPoint { + timestamp: Float! + value: Float + } + + extend type InfraSource { + metrics( + nodeId: ID! + nodeType: InfraNodeType! + timerange: InfraTimerangeInput! + metrics: [InfraMetric!]! + ): [InfraMetricData!]! + } +`; diff --git a/x-pack/plugins/infra/server/graphql/nodes/index.ts b/x-pack/plugins/infra/server/graphql/nodes/index.ts new file mode 100644 index 0000000000000..d61651c7b263b --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/nodes/index.ts @@ -0,0 +1,8 @@ +/* + * 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 { createNodeResolvers } from './resolvers'; +export { nodesSchema } from './schema.gql'; diff --git a/x-pack/plugins/infra/server/graphql/nodes/resolvers.ts b/x-pack/plugins/infra/server/graphql/nodes/resolvers.ts new file mode 100644 index 0000000000000..867cfc4dd49ed --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/nodes/resolvers.ts @@ -0,0 +1,78 @@ +/* + * 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 { InfraResponseResolvers, InfraSourceResolvers } from '../../../common/graphql/types'; +import { + InfraResolvedResult, + InfraResolverOf, + InfraResolverWithoutFields, +} from '../../lib/adapters/framework'; +import { InfraNodeRequestOptions } from '../../lib/adapters/nodes'; +import { extractGroupByAndNodeFromPath } from '../../lib/adapters/nodes/extract_group_by_and_node_from_path'; +import { InfraNodesDomain } from '../../lib/domains/nodes_domain'; +import { InfraContext } from '../../lib/infra_types'; +import { UsageCollector } from '../../usage/usage_collector'; +import { parseFilterQuery } from '../../utils/serialized_query'; +import { QuerySourceResolver } from '../sources/resolvers'; + +type InfraSourceMapResolver = InfraResolverWithoutFields< + InfraSourceResolvers.MapResolver, + InfraResolvedResult, + InfraContext, + 'nodes' +>; + +interface QueryMapResponse extends InfraSourceResolvers.MapArgs { + source: InfraResolvedResult; +} + +type InfraNodesResolver = InfraResolverOf< + InfraResponseResolvers.NodesResolver, + QueryMapResponse, + InfraContext +>; + +interface NodesResolversDeps { + nodes: InfraNodesDomain; +} + +export const createNodeResolvers = ( + libs: NodesResolversDeps +): { + InfraSource: { + map: InfraSourceMapResolver; + }; + InfraResponse: { + nodes: InfraNodesResolver; + }; +} => ({ + InfraSource: { + async map(source, args) { + return { + source, + timerange: args.timerange, + filterQuery: args.filterQuery, + }; + }, + }, + InfraResponse: { + async nodes(mapResponse, args, { req }) { + const { source, timerange, filterQuery } = mapResponse; + const { groupBy, nodeType } = extractGroupByAndNodeFromPath(args.path); + UsageCollector.countNode(nodeType); + const options: InfraNodeRequestOptions = { + filterQuery: parseFilterQuery(filterQuery), + nodeType, + groupBy, + sourceConfiguration: source.configuration, + metric: args.metric, + timerange, + }; + + return await libs.nodes.getNodes(req, options); + }, + }, +}); diff --git a/x-pack/plugins/infra/server/graphql/nodes/schema.gql.ts b/x-pack/plugins/infra/server/graphql/nodes/schema.gql.ts new file mode 100644 index 0000000000000..33de32f100805 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/nodes/schema.gql.ts @@ -0,0 +1,91 @@ +/* + * 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 gql from 'graphql-tag'; + +export const nodesSchema: any = gql` + type InfraNodeMetric { + name: InfraMetricType! + value: Float! + } + + type InfraNodePath { + value: String! + } + + type InfraNode { + path: [InfraNodePath!]! + metric: InfraNodeMetric! + } + + input InfraTimerangeInput { + "The interval string to use for last bucket. The format is '{value}{unit}'. For example '5m' would return the metrics for the last 5 minutes of the timespan." + interval: String! + "The end of the timerange" + to: Float! + "The beginning of the timerange" + from: Float! + } + + enum InfraOperator { + gt + gte + lt + lte + eq + } + + enum InfraMetricType { + count + cpu + load + memory + tx + rx + logRate + } + + input InfraMetricInput { + "The type of metric" + type: InfraMetricType! + } + + enum InfraPathType { + terms + filters + hosts + pods + containers + } + + input InfraPathInput { + "The type of path" + type: InfraPathType! + "The label to use in the results for the group by for the terms group by" + label: String + "The field to group by from a terms aggregation, this is ignored by the filter type" + field: String + "The fitlers for the filter group by" + filters: [InfraPathFilterInput!] + } + + "A group by filter" + input InfraPathFilterInput { + "The label for the filter, this will be used as the group name in the final results" + label: String! + "The query string query" + query: String! + } + + type InfraResponse { + nodes(path: [InfraPathInput!]!, metric: InfraMetricInput!): [InfraNode!]! + } + + extend type InfraSource { + "A hierarchy of hosts, pods, containers, services or arbitrary groups" + map(timerange: InfraTimerangeInput!, filterQuery: String): InfraResponse + } +`; diff --git a/x-pack/plugins/infra/server/graphql/source_status/index.ts b/x-pack/plugins/infra/server/graphql/source_status/index.ts new file mode 100644 index 0000000000000..abc91fa3815c8 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/source_status/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { createSourceStatusResolvers } from './resolvers'; diff --git a/x-pack/plugins/infra/server/graphql/source_status/resolvers.ts b/x-pack/plugins/infra/server/graphql/source_status/resolvers.ts new file mode 100644 index 0000000000000..4ae516a9c3988 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/source_status/resolvers.ts @@ -0,0 +1,98 @@ +/* + * 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 { InfraIndexType, InfraSourceStatusResolvers } from '../../../common/graphql/types'; +import { InfraResolvedResult, InfraResolverOf } from '../../lib/adapters/framework'; +import { InfraFieldsDomain } from '../../lib/domains/fields_domain'; +import { InfraContext } from '../../lib/infra_types'; +import { InfraSourceStatus } from '../../lib/source_status'; +import { QuerySourceResolver } from '../sources/resolvers'; + +export type InfraSourceStatusMetricAliasExistsResolver = InfraResolverOf< + InfraSourceStatusResolvers.MetricAliasExistsResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceStatusMetricIndicesExistResolver = InfraResolverOf< + InfraSourceStatusResolvers.MetricIndicesExistResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceStatusMetricIndicesResolver = InfraResolverOf< + InfraSourceStatusResolvers.MetricIndicesResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceStatusLogAliasExistsResolver = InfraResolverOf< + InfraSourceStatusResolvers.LogAliasExistsResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceStatusLogIndicesExistResolver = InfraResolverOf< + InfraSourceStatusResolvers.LogIndicesExistResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceStatusLogIndicesResolver = InfraResolverOf< + InfraSourceStatusResolvers.LogIndicesResolver, + InfraResolvedResult, + InfraContext +>; + +export type InfraSourceStatusIndexFieldsResolver = InfraResolverOf< + InfraSourceStatusResolvers.IndexFieldsResolver, + InfraResolvedResult, + InfraContext +>; + +export const createSourceStatusResolvers = (libs: { + sourceStatus: InfraSourceStatus; + fields: InfraFieldsDomain; +}): { + InfraSourceStatus: { + metricAliasExists: InfraSourceStatusMetricAliasExistsResolver; + metricIndicesExist: InfraSourceStatusMetricIndicesExistResolver; + metricIndices: InfraSourceStatusMetricIndicesResolver; + logAliasExists: InfraSourceStatusLogAliasExistsResolver; + logIndicesExist: InfraSourceStatusLogIndicesExistResolver; + logIndices: InfraSourceStatusLogIndicesResolver; + indexFields: InfraSourceStatusIndexFieldsResolver; + }; +} => ({ + InfraSourceStatus: { + async metricAliasExists(source, args, { req }) { + return await libs.sourceStatus.hasMetricAlias(req, source.id); + }, + async metricIndicesExist(source, args, { req }) { + return await libs.sourceStatus.hasMetricIndices(req, source.id); + }, + async metricIndices(source, args, { req }) { + return await libs.sourceStatus.getMetricIndexNames(req, source.id); + }, + async logAliasExists(source, args, { req }) { + return await libs.sourceStatus.hasLogAlias(req, source.id); + }, + async logIndicesExist(source, args, { req }) { + return await libs.sourceStatus.hasLogIndices(req, source.id); + }, + async logIndices(source, args, { req }) { + return await libs.sourceStatus.getLogIndexNames(req, source.id); + }, + async indexFields(source, args, { req }) { + const fields = await libs.fields.getFields( + req, + source.id, + args.indexType || InfraIndexType.ANY + ); + return fields; + }, + }, +}); diff --git a/x-pack/plugins/infra/server/graphql/source_status/schema.gql.ts b/x-pack/plugins/infra/server/graphql/source_status/schema.gql.ts new file mode 100644 index 0000000000000..10acb9650b108 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/source_status/schema.gql.ts @@ -0,0 +1,38 @@ +/* + * 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 gql from 'graphql-tag'; + +export const sourceStatusSchema = gql` + "A descriptor of a field in an index" + type InfraIndexField { + "The name of the field" + name: String! + "The type of the field's values as recognized by Kibana" + type: String! + "Whether the field's values can be efficiently searched for" + searchable: Boolean! + "Whether the field's values can be aggregated" + aggregatable: Boolean! + } + + extend type InfraSourceStatus { + "Whether the configured metric alias exists" + metricAliasExists: Boolean! + "Whether the configured log alias exists" + logAliasExists: Boolean! + "Whether the configured alias or wildcard pattern resolve to any metric indices" + metricIndicesExist: Boolean! + "Whether the configured alias or wildcard pattern resolve to any log indices" + logIndicesExist: Boolean! + "The list of indices in the metric alias" + metricIndices: [String!]! + "The list of indices in the log alias" + logIndices: [String!]! + "The list of fields defined in the index mappings" + indexFields(indexType: InfraIndexType = ANY): [InfraIndexField!]! + } +`; diff --git a/x-pack/plugins/infra/server/graphql/sources/index.ts b/x-pack/plugins/infra/server/graphql/sources/index.ts new file mode 100644 index 0000000000000..ee187d8c31bec --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/sources/index.ts @@ -0,0 +1,8 @@ +/* + * 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 { createSourcesResolvers } from './resolvers'; +export { sourcesSchema } from './schema.gql'; diff --git a/x-pack/plugins/infra/server/graphql/sources/resolvers.ts b/x-pack/plugins/infra/server/graphql/sources/resolvers.ts new file mode 100644 index 0000000000000..5a3ab5acb76d0 --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/sources/resolvers.ts @@ -0,0 +1,73 @@ +/* + * 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 { InfraSourceResolvers, QueryResolvers } from '../../../common/graphql/types'; +import { InfraResolvedResult, InfraResolverWithFields } from '../../lib/adapters/framework'; +import { InfraContext } from '../../lib/infra_types'; +import { InfraSourceStatus } from '../../lib/source_status'; +import { InfraSources } from '../../lib/sources'; + +export type QuerySourceResolver = InfraResolverWithFields< + QueryResolvers.SourceResolver, + null, + InfraContext, + 'id' | 'configuration' +>; + +export type QueryAllSourcesResolver = InfraResolverWithFields< + QueryResolvers.AllSourcesResolver, + null, + InfraContext, + 'id' | 'configuration' +>; + +export type InfraSourceStatusResolver = InfraResolverWithFields< + InfraSourceResolvers.StatusResolver, + InfraResolvedResult, + InfraContext, + never +>; + +interface SourcesResolversDeps { + sources: InfraSources; + sourceStatus: InfraSourceStatus; +} + +export const createSourcesResolvers = ( + libs: SourcesResolversDeps +): { + Query: { + source: QuerySourceResolver; + allSources: QueryAllSourcesResolver; + }; + InfraSource: { + status: InfraSourceStatusResolver; + }; +} => ({ + Query: { + async source(root, args) { + const requestedSourceConfiguration = await libs.sources.getConfiguration(args.id); + + return { + id: args.id, + configuration: requestedSourceConfiguration, + }; + }, + async allSources() { + const sourceConfigurations = await libs.sources.getAllConfigurations(); + + return Object.entries(sourceConfigurations).map(([sourceName, sourceConfiguration]) => ({ + id: sourceName, + configuration: sourceConfiguration, + })); + }, + }, + InfraSource: { + async status(source) { + return source; + }, + }, +}); diff --git a/x-pack/plugins/infra/server/graphql/sources/schema.gql.ts b/x-pack/plugins/infra/server/graphql/sources/schema.gql.ts new file mode 100644 index 0000000000000..952862f76173d --- /dev/null +++ b/x-pack/plugins/infra/server/graphql/sources/schema.gql.ts @@ -0,0 +1,55 @@ +/* + * 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 gql from 'graphql-tag'; + +export const sourcesSchema = gql` + "A source of infrastructure data" + type InfraSource { + "The id of the source" + id: ID! + "The raw configuration of the source" + configuration: InfraSourceConfiguration! + "The status of the source" + status: InfraSourceStatus! + } + + "The status of an infrastructure data source" + type InfraSourceStatus + + "A set of configuration options for an infrastructure data source" + type InfraSourceConfiguration { + "The alias to read metric data from" + metricAlias: String! + "The alias to read log data from" + logAlias: String! + "The field mapping to use for this source" + fields: InfraSourceFields! + } + + "A mapping of semantic fields to their document counterparts" + type InfraSourceFields { + "The field to identify a container by" + container: String! + "The fields to identify a host by" + host: String! + "The fields that may contain the log event message. The first field found win." + message: [String!]! + "The field to identify a pod by" + pod: String! + "The field to use as a tiebreaker for log events that have identical timestamps" + tiebreaker: String! + "The field to use as a timestamp for metrics and logs" + timestamp: String! + } + + extend type Query { + "Get an infrastructure data source by id" + source("The id of the source" id: ID!): InfraSource! + "Get a list of all infrastructure data sources" + allSources: [InfraSource!]! + } +`; diff --git a/x-pack/plugins/infra/server/infra_server.ts b/x-pack/plugins/infra/server/infra_server.ts new file mode 100644 index 0000000000000..eb68e44af6423 --- /dev/null +++ b/x-pack/plugins/infra/server/infra_server.ts @@ -0,0 +1,34 @@ +/* + * 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 { IResolvers, makeExecutableSchema } from 'graphql-tools'; +import { schemas } from './graphql'; +import { createCapabilitiesResolvers } from './graphql/capabilities'; +import { createLogEntriesResolvers } from './graphql/log_entries'; +import { createMetricResolvers } from './graphql/metrics/resolvers'; +import { createNodeResolvers } from './graphql/nodes'; +import { createSourceStatusResolvers } from './graphql/source_status'; +import { createSourcesResolvers } from './graphql/sources'; +import { InfraBackendLibs } from './lib/infra_types'; +import { initLegacyLoggingRoutes } from './logging_legacy'; + +export const initInfraServer = (libs: InfraBackendLibs) => { + const schema = makeExecutableSchema({ + resolvers: [ + createCapabilitiesResolvers(libs) as IResolvers, + createLogEntriesResolvers(libs) as IResolvers, + createNodeResolvers(libs) as IResolvers, + createSourcesResolvers(libs) as IResolvers, + createSourceStatusResolvers(libs) as IResolvers, + createMetricResolvers(libs) as IResolvers, + ], + typeDefs: schemas, + }); + + libs.framework.registerGraphQLEndpoint('/api/infra/graphql', schema); + + initLegacyLoggingRoutes(libs.framework); +}; diff --git a/x-pack/plugins/infra/server/kibana.index.ts b/x-pack/plugins/infra/server/kibana.index.ts new file mode 100644 index 0000000000000..c916203648024 --- /dev/null +++ b/x-pack/plugins/infra/server/kibana.index.ts @@ -0,0 +1,61 @@ +/* + * 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 { Server } from 'hapi'; +import JoiNamespace from 'joi'; +import { initInfraServer } from './infra_server'; +import { compose } from './lib/compose/kibana'; +import { UsageCollector } from './usage/usage_collector'; + +export interface KbnServer extends Server { + usage: any; +} + +export const initServerWithKibana = (kbnServer: KbnServer) => { + const libs = compose(kbnServer); + initInfraServer(libs); + + // Register a function with server to manage the collection of usage stats + kbnServer.usage.collectorSet.register(UsageCollector.getUsageCollector(kbnServer)); +}; + +export const getConfigSchema = (Joi: typeof JoiNamespace) => { + const InfraDefaultSourceConfigSchema = Joi.object({ + metricAlias: Joi.string(), + logAlias: Joi.string(), + fields: Joi.object({ + container: Joi.string(), + host: Joi.string(), + message: Joi.array() + .items(Joi.string()) + .single(), + pod: Joi.string(), + tiebreaker: Joi.string(), + timestamp: Joi.string(), + }), + }); + + const InfraSourceConfigSchema = InfraDefaultSourceConfigSchema.keys({ + metricAlias: Joi.reach(InfraDefaultSourceConfigSchema, 'metricAlias').required(), + logAlias: Joi.reach(InfraDefaultSourceConfigSchema, 'logAlias').required(), + }); + + const InfraRootConfigSchema = Joi.object({ + enabled: Joi.boolean().default(true), + query: Joi.object({ + partitionSize: Joi.number(), + partitionFactor: Joi.number(), + }).default(), + sources: Joi.object() + .keys({ + default: InfraDefaultSourceConfigSchema, + }) + .pattern(/.*/, InfraSourceConfigSchema) + .default(), + }).default(); + + return InfraRootConfigSchema; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/capabilities/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/capabilities/adapter_types.ts new file mode 100644 index 0000000000000..1486d0d9e2e38 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/capabilities/adapter_types.ts @@ -0,0 +1,23 @@ +/* + * 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 { InfraSourceConfiguration } from '../../sources'; +import { InfraCapabilityAggregationBucket, InfraFrameworkRequest } from '../framework'; + +export interface InfraCapabilitiesAdapter { + getMetricCapabilities( + req: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + nodeName: string, + nodeType: string + ): Promise; + getLogCapabilities( + req: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + nodeName: string, + nodeType: string + ): Promise; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/capabilities/elasticsearch_capabilities_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/capabilities/elasticsearch_capabilities_adapter.ts new file mode 100644 index 0000000000000..049fb864dcbc0 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/capabilities/elasticsearch_capabilities_adapter.ts @@ -0,0 +1,126 @@ +/* + * 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 { InfraSourceConfiguration } from '../../sources'; +import { + InfraBackendFrameworkAdapter, + InfraCapabilityAggregationBucket, + InfraCapabilityAggregationResponse, + InfraFrameworkRequest, +} from '../framework'; +import { InfraCapabilitiesAdapter } from './adapter_types'; + +export class ElasticsearchCapabilitiesAdapter implements InfraCapabilitiesAdapter { + private framework: InfraBackendFrameworkAdapter; + constructor(framework: InfraBackendFrameworkAdapter) { + this.framework = framework; + } + + public async getMetricCapabilities( + req: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + nodeName: string, + nodeType: 'host' | 'container' | 'pod' + ): Promise { + const idFieldName = getIdFieldName(sourceConfiguration, nodeType); + const metricQuery = { + index: sourceConfiguration.metricAlias, + body: { + query: { + bool: { + filter: { + term: { [idFieldName]: nodeName }, + }, + }, + }, + size: 0, + aggs: { + metrics: { + terms: { + field: 'metricset.module', + size: 1000, + }, + aggs: { + names: { + terms: { + field: 'metricset.name', + size: 1000, + }, + }, + }, + }, + }, + }, + }; + + const response = await this.framework.callWithRequest< + any, + { metrics?: InfraCapabilityAggregationResponse } + >(req, 'search', metricQuery); + + return response.aggregations && response.aggregations.metrics + ? response.aggregations.metrics.buckets + : []; + } + + public async getLogCapabilities( + req: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + nodeName: string, + nodeType: 'host' | 'container' | 'pod' + ): Promise { + const idFieldName = getIdFieldName(sourceConfiguration, nodeType); + const logQuery = { + index: sourceConfiguration.logAlias, + body: { + query: { + bool: { + filter: { + term: { [idFieldName]: nodeName }, + }, + }, + }, + size: 0, + aggs: { + metrics: { + terms: { + field: 'fileset.module', + size: 1000, + }, + aggs: { + names: { + terms: { + field: 'fileset.name', + size: 1000, + }, + }, + }, + }, + }, + }, + }; + + const response = await this.framework.callWithRequest< + any, + { metrics?: InfraCapabilityAggregationResponse } + >(req, 'search', logQuery); + + return response.aggregations && response.aggregations.metrics + ? response.aggregations.metrics.buckets + : []; + } +} + +const getIdFieldName = (sourceConfiguration: InfraSourceConfiguration, nodeType: string) => { + switch (nodeType) { + case 'host': + return sourceConfiguration.fields.host; + case 'container': + return sourceConfiguration.fields.container; + default: + return sourceConfiguration.fields.pod; + } +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/capabilities/index.ts b/x-pack/plugins/infra/server/lib/adapters/capabilities/index.ts new file mode 100644 index 0000000000000..4e09b5d0e9e2d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/capabilities/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './adapter_types'; diff --git a/x-pack/plugins/infra/server/lib/adapters/configuration/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/configuration/adapter_types.ts new file mode 100644 index 0000000000000..e086f67092af3 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/configuration/adapter_types.ts @@ -0,0 +1,9 @@ +/* + * 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 interface InfraConfigurationAdapter { + get(): Promise; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/configuration/index.ts b/x-pack/plugins/infra/server/lib/adapters/configuration/index.ts new file mode 100644 index 0000000000000..4e09b5d0e9e2d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/configuration/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './adapter_types'; diff --git a/x-pack/plugins/infra/server/lib/adapters/configuration/inmemory_configuration_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/configuration/inmemory_configuration_adapter.ts new file mode 100644 index 0000000000000..ed7c88fc994da --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/configuration/inmemory_configuration_adapter.ts @@ -0,0 +1,16 @@ +/* + * 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 { InfraConfigurationAdapter } from './adapter_types'; + +export class InfraInmemoryConfigurationAdapter + implements InfraConfigurationAdapter { + constructor(private readonly configuration: Configuration) {} + + public async get() { + return this.configuration; + } +} diff --git a/x-pack/plugins/infra/server/lib/adapters/configuration/kibana_configuration_adapter.test.ts b/x-pack/plugins/infra/server/lib/adapters/configuration/kibana_configuration_adapter.test.ts new file mode 100644 index 0000000000000..4d87878e9aa87 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/configuration/kibana_configuration_adapter.test.ts @@ -0,0 +1,40 @@ +/* + * 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 { InfraKibanaConfigurationAdapter } from './kibana_configuration_adapter'; + +describe('the InfraKibanaConfigurationAdapter', () => { + test('queries the xpack.infra configuration of the server', async () => { + const mockConfig = { + get: jest.fn(), + }; + + const configurationAdapter = new InfraKibanaConfigurationAdapter({ + config: () => mockConfig, + }); + + await configurationAdapter.get(); + + expect(mockConfig.get).toBeCalledWith('xpack.infra'); + }); + + test('applies the query defaults', async () => { + const configurationAdapter = new InfraKibanaConfigurationAdapter({ + config: () => ({ + get: () => ({}), + }), + }); + + const configuration = await configurationAdapter.get(); + + expect(configuration).toMatchObject({ + query: { + partitionSize: expect.any(Number), + partitionFactor: expect.any(Number), + }, + }); + }); +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/configuration/kibana_configuration_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/configuration/kibana_configuration_adapter.ts new file mode 100644 index 0000000000000..62b01b3eac2a3 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/configuration/kibana_configuration_adapter.ts @@ -0,0 +1,75 @@ +/* + * 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 Joi from 'joi'; + +import { InfraConfigurationAdapter } from './adapter_types'; + +export class InfraKibanaConfigurationAdapter + implements InfraConfigurationAdapter { + private readonly server: ServerWithConfig; + + constructor(server: any) { + if (!isServerWithConfig(server)) { + throw new Error('Failed to find configuration on server.'); + } + + this.server = server; + } + + public async get() { + const config = this.server.config(); + + if (!isKibanaConfiguration(config)) { + throw new Error('Failed to access configuration of server.'); + } + + const configuration = config.get('xpack.infra') || {}; + const configurationWithDefaults = { + enabled: true, + query: { + partitionSize: 75, + partitionFactor: 1.2, + ...(configuration.query || {}), + }, + sources: {}, + ...configuration, + } as Configuration; + + // we assume this to be the configuration because Kibana would have already validated it + return configurationWithDefaults; + } +} + +interface ServerWithConfig { + config(): any; +} + +function isServerWithConfig(maybeServer: any): maybeServer is ServerWithConfig { + return ( + Joi.validate( + maybeServer, + Joi.object({ + config: Joi.func().required(), + }).unknown() + ).error === null + ); +} + +interface KibanaConfiguration { + get(key: string): any; +} + +function isKibanaConfiguration(maybeConfiguration: any): maybeConfiguration is KibanaConfiguration { + return ( + Joi.validate( + maybeConfiguration, + Joi.object({ + get: Joi.func().required(), + }).unknown() + ).error === null + ); +} diff --git a/x-pack/plugins/infra/server/lib/adapters/fields/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/fields/adapter_types.ts new file mode 100644 index 0000000000000..4749999f22d26 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/fields/adapter_types.ts @@ -0,0 +1,18 @@ +/* + * 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 { InfraFrameworkRequest } from '../framework'; + +export interface FieldsAdapter { + getIndexFields(req: InfraFrameworkRequest, indices: string[]): Promise; +} + +export interface IndexFieldDescriptor { + name: string; + type: string; + searchable: boolean; + aggregatable: boolean; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/fields/framework_fields_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/fields/framework_fields_adapter.ts new file mode 100644 index 0000000000000..37d242359b87b --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/fields/framework_fields_adapter.ts @@ -0,0 +1,27 @@ +/* + * 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 { InfraBackendFrameworkAdapter, InfraFrameworkRequest } from '../framework'; +import { FieldsAdapter, IndexFieldDescriptor } from './adapter_types'; + +export class FrameworkFieldsAdapter implements FieldsAdapter { + private framework: InfraBackendFrameworkAdapter; + + constructor(framework: InfraBackendFrameworkAdapter) { + this.framework = framework; + } + + public async getIndexFields( + request: InfraFrameworkRequest, + indices: string[] + ): Promise { + const indexPatternsService = this.framework.getIndexPatternsService(request); + const response = await indexPatternsService.getFieldsForWildcard({ + pattern: indices, + }); + return response; + } +} diff --git a/x-pack/plugins/infra/server/lib/adapters/fields/index.ts b/x-pack/plugins/infra/server/lib/adapters/fields/index.ts new file mode 100644 index 0000000000000..4e09b5d0e9e2d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/fields/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './adapter_types'; diff --git a/x-pack/plugins/infra/server/lib/adapters/framework/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/framework/adapter_types.ts new file mode 100644 index 0000000000000..28378248a6384 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/framework/adapter_types.ts @@ -0,0 +1,204 @@ +/* + * 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 { SearchResponse } from 'elasticsearch'; +import { GraphQLSchema } from 'graphql'; +import { Lifecycle, ResponseToolkit, RouteOptions } from 'hapi'; +import { InfraMetricModel } from '../metrics/adapter_types'; + +export * from '../../../../common/graphql/typed_resolvers'; +import { JsonObject } from '../../../../common/typed_json'; + +export const internalInfraFrameworkRequest = Symbol('internalInfraFrameworkRequest'); + +export interface InfraBackendFrameworkAdapter { + version: string; + exposeStaticDir(urlPath: string, dir: string): void; + registerGraphQLEndpoint(routePath: string, schema: GraphQLSchema): void; + registerRoute( + route: InfraFrameworkRouteOptions + ): void; + callWithRequest( + req: InfraFrameworkRequest, + method: 'search', + options?: object + ): Promise>; + callWithRequest( + req: InfraFrameworkRequest, + method: 'msearch', + options?: object + ): Promise>; + callWithRequest( + req: InfraFrameworkRequest, + method: 'fieldCaps', + options?: object + ): Promise; + callWithRequest( + req: InfraFrameworkRequest, + method: 'indices.existsAlias', + options?: object + ): Promise; + callWithRequest( + req: InfraFrameworkRequest, + method: 'indices.getAlias' | 'indices.get', + options?: object + ): Promise; + callWithRequest( + req: InfraFrameworkRequest, + method: string, + options?: object + ): Promise; + getIndexPatternsService(req: InfraFrameworkRequest): InfraFrameworkIndexPatternsService; + makeTSVBRequest( + req: InfraFrameworkRequest, + model: InfraMetricModel, + timerange: { min: number; max: number }, + filters: JsonObject[] + ): Promise; +} + +export interface InfraFrameworkRequest< + InternalRequest extends InfraWrappableRequest = InfraWrappableRequest +> { + [internalInfraFrameworkRequest]: InternalRequest; + payload: InternalRequest['payload']; + params: InternalRequest['params']; + query: InternalRequest['query']; +} + +export interface InfraWrappableRequest { + payload: Payload; + params: Params; + query: Query; +} + +export type InfraResponse = Lifecycle.ReturnValue; + +export interface InfraFrameworkPluginOptions { + register: any; + options: any; +} + +export interface InfraFrameworkRouteOptions< + RouteRequest extends InfraWrappableRequest, + RouteResponse extends InfraResponse +> { + path: string; + method: string | string[]; + vhost?: string; + handler: InfraFrameworkRouteHandler; + options?: Pick>; +} + +export type InfraFrameworkRouteHandler< + RouteRequest extends InfraWrappableRequest, + RouteResponse extends InfraResponse +> = (request: InfraFrameworkRequest, h: ResponseToolkit) => RouteResponse; + +export interface InfraDatabaseResponse { + took: number; + timeout: boolean; +} + +export interface InfraDatabaseSearchResponse + extends InfraDatabaseResponse { + aggregations?: Aggregations; + hits: { + total: number; + hits: Hit[]; + }; +} + +export interface InfraDatabaseMultiResponse extends InfraDatabaseResponse { + responses: Array>; +} + +export interface InfraDatabaseFieldCapsResponse extends InfraDatabaseResponse { + fields: InfraFieldsResponse; +} + +export interface InfraDatabaseGetIndicesResponse { + [indexName: string]: { + aliases: { + [aliasName: string]: any; + }; + }; +} + +export type SearchHit = SearchResponse['hits']['hits'][0]; + +export interface SortedSearchHit extends SearchHit { + sort: any[]; + _source: { + [field: string]: any; + }; +} + +export interface InfraDateRangeAggregationBucket { + from?: number; + to?: number; + doc_count: number; + key: string; +} + +export interface InfraDateRangeAggregationResponse { + buckets: InfraDateRangeAggregationBucket[]; +} + +export interface InfraCapabilityAggregationBucket { + key: string; + names?: { + buckets: InfraCapabilityAggregationBucket[]; + }; +} + +export interface InfraCapabilityAggregationResponse { + buckets: InfraCapabilityAggregationBucket[]; +} + +export interface InfraFieldsResponse { + [name: string]: InfraFieldDef; +} + +export interface InfraFieldDetails { + searchable: boolean; + aggregatable: boolean; + type: string; +} + +export interface InfraFieldDef { + [type: string]: InfraFieldDetails; +} + +interface InfraFrameworkIndexFieldDescriptor { + name: string; + type: string; + searchable: boolean; + aggregatable: boolean; + readFromDocValues: boolean; +} + +export interface InfraFrameworkIndexPatternsService { + getFieldsForWildcard(options: { + pattern: string | string[]; + }): Promise; +} + +export interface InfraTSVBResponse { + [key: string]: InfraTSVBPanel; +} + +export interface InfraTSVBPanel { + id: string; + series: InfraTSVBSeries[]; +} + +export interface InfraTSVBSeries { + id: string; + data: InfraTSVBDataPoint[]; +} + +export type InfraTSVBDataPoint = [number, number]; diff --git a/x-pack/plugins/infra/server/lib/adapters/framework/apollo_server_hapi.ts b/x-pack/plugins/infra/server/lib/adapters/framework/apollo_server_hapi.ts new file mode 100644 index 0000000000000..da858217468f1 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/framework/apollo_server_hapi.ts @@ -0,0 +1,117 @@ +/* + * 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 * as GraphiQL from 'apollo-server-module-graphiql'; +import Boom from 'boom'; +import { Plugin, Request, ResponseToolkit, RouteOptions, Server } from 'hapi'; + +import { GraphQLOptions, runHttpQuery } from 'apollo-server-core'; + +export type HapiOptionsFunction = (req: Request) => GraphQLOptions | Promise; + +export interface HapiGraphQLPluginOptions { + path: string; + vhost?: string; + route?: RouteOptions; + graphqlOptions: GraphQLOptions | HapiOptionsFunction; +} + +export const graphqlHapi: Plugin = { + name: 'graphql', + register: (server: Server, options: HapiGraphQLPluginOptions) => { + if (!options || !options.graphqlOptions) { + throw new Error('Apollo Server requires options.'); + } + + server.route({ + options: options.route || {}, + handler: async (request: Request, h: ResponseToolkit) => { + try { + const query = + request.method === 'post' + ? (request.payload as Record) + : (request.query as Record); + + const gqlResponse = await runHttpQuery([request], { + method: request.method.toUpperCase(), + options: options.graphqlOptions, + query, + }); + + return h.response(gqlResponse).type('application/json'); + } catch (error) { + if ('HttpQueryError' !== error.name) { + const queryError = Boom.boomify(error); + + queryError.output.payload.message = error.message; + + return queryError; + } + + if (error.isGraphQLError === true) { + return h + .response(error.message) + .code(error.statusCode) + .type('application/json'); + } + + const genericError = new Boom(error.message, { statusCode: error.statusCode }); + + if (error.headers) { + Object.keys(error.headers).forEach(header => { + genericError.output.headers[header] = error.headers[header]; + }); + } + + // Boom hides the error when status code is 500 + + genericError.output.payload.message = error.message; + + throw genericError; + } + }, + method: ['GET', 'POST'], + path: options.path || '/graphql', + vhost: options.vhost || undefined, + }); + }, +}; + +export type HapiGraphiQLOptionsFunction = ( + req?: Request +) => GraphiQL.GraphiQLData | Promise; + +export interface HapiGraphiQLPluginOptions { + path: string; + + route?: any; + + graphiqlOptions: GraphiQL.GraphiQLData | HapiGraphiQLOptionsFunction; +} + +export const graphiqlHapi: Plugin = { + name: 'graphiql', + register: (server: Server, options: HapiGraphiQLPluginOptions) => { + if (!options || !options.graphiqlOptions) { + throw new Error('Apollo Server GraphiQL requires options.'); + } + + server.route({ + options: options.route || {}, + handler: async (request: Request, h: ResponseToolkit) => { + const graphiqlString = await GraphiQL.resolveGraphiQLString( + request.query, + options.graphiqlOptions, + request + ); + + return h.response(graphiqlString).type('text/html'); + }, + method: 'GET', + path: options.path || '/graphiql', + }); + }, +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/framework/index.ts b/x-pack/plugins/infra/server/lib/adapters/framework/index.ts new file mode 100644 index 0000000000000..4e09b5d0e9e2d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/framework/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './adapter_types'; diff --git a/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts new file mode 100644 index 0000000000000..034ce7f66a768 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts @@ -0,0 +1,171 @@ +/* + * 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 { GraphQLSchema } from 'graphql'; +import { Request, ResponseToolkit, Server } from 'hapi'; + +import { InfraMetricModel } from '../metrics/adapter_types'; +import { + InfraBackendFrameworkAdapter, + InfraFrameworkIndexPatternsService, + InfraFrameworkRequest, + InfraFrameworkRouteOptions, + InfraResponse, + InfraTSVBResponse, + InfraWrappableRequest, + internalInfraFrameworkRequest, +} from './adapter_types'; +import { + graphiqlHapi, + graphqlHapi, + HapiGraphiQLPluginOptions, + HapiGraphQLPluginOptions, +} from './apollo_server_hapi'; + +declare module 'hapi' { + interface PluginProperties { + elasticsearch: any; + kibana: any; + } +} + +export class InfraKibanaBackendFrameworkAdapter implements InfraBackendFrameworkAdapter { + public version: string; + private server: Server; + + constructor(hapiServer: Server) { + this.server = hapiServer; + this.version = hapiServer.plugins.kibana.status.plugin.version; + } + + public exposeStaticDir(urlPath: string, dir: string): void { + this.server.route({ + handler: { + directory: { + path: dir, + }, + }, + method: 'GET', + path: urlPath, + }); + } + + public registerGraphQLEndpoint(routePath: string, schema: GraphQLSchema): void { + this.server.register({ + options: { + graphqlOptions: (req: Request) => ({ + context: { req: wrapRequest(req) }, + schema, + }), + path: routePath, + }, + plugin: graphqlHapi, + }); + + this.server.register({ + options: { + graphiqlOptions: { + endpointURL: routePath, + passHeader: `'kbn-version': '${this.version}'`, + }, + path: `${routePath}/graphiql`, + }, + plugin: graphiqlHapi, + }); + } + + public registerRoute< + RouteRequest extends InfraWrappableRequest, + RouteResponse extends InfraResponse + >(route: InfraFrameworkRouteOptions) { + const wrappedHandler = (request: any, h: ResponseToolkit) => + route.handler(wrapRequest(request), h); + + this.server.route({ + handler: wrappedHandler, + method: route.method, + path: route.path, + }); + } + + public async callWithRequest(req: InfraFrameworkRequest, ...rest: any[]) { + const internalRequest = req[internalInfraFrameworkRequest]; + const { elasticsearch } = internalRequest.server.plugins; + const { callWithRequest } = elasticsearch.getCluster('data'); + const fields = await callWithRequest(internalRequest, ...rest); + return fields; + } + + public getIndexPatternsService( + request: InfraFrameworkRequest + ): InfraFrameworkIndexPatternsService { + if (!isServerWithIndexPatternsServiceFactory(this.server)) { + throw new Error('Failed to access indexPatternsService for the request'); + } + return this.server.indexPatternsServiceFactory({ + callCluster: async (method: string, args: [object], ...rest: any[]) => { + const fieldCaps = await this.callWithRequest( + request, + method, + { ...args, allowNoIndices: true }, + ...rest + ); + return fieldCaps; + }, + }); + } + + public async makeTSVBRequest( + req: InfraFrameworkRequest, + model: InfraMetricModel, + timerange: { min: number; max: number }, + filters: any[] + ) { + const internalRequest = req[internalInfraFrameworkRequest]; + const server = internalRequest.server; + const request = { + url: '/api/metrics/vis/data', + method: 'POST', + headers: internalRequest.headers, + payload: { + timerange, + panels: [model], + filters, + }, + }; + + const res = await server.inject(request); + if (res.statusCode !== 200) { + throw res; + } + + return res.result as InfraTSVBResponse; + } +} + +export function wrapRequest( + req: InternalRequest +): InfraFrameworkRequest { + const { params, payload, query } = req; + + return { + [internalInfraFrameworkRequest]: req, + params, + payload, + query, + }; +} + +interface ServerWithIndexPatternsServiceFactory extends Server { + indexPatternsServiceFactory(options: { + callCluster: (...args: any[]) => any; + }): InfraFrameworkIndexPatternsService; +} + +const isServerWithIndexPatternsServiceFactory = ( + server: Server +): server is ServerWithIndexPatternsServiceFactory => + typeof (server as any).indexPatternsServiceFactory === 'function'; diff --git a/x-pack/plugins/infra/server/lib/adapters/log_entries/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/log_entries/adapter_types.ts new file mode 100644 index 0000000000000..41bc2aa258807 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/log_entries/adapter_types.ts @@ -0,0 +1,5 @@ +/* + * 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. + */ diff --git a/x-pack/plugins/infra/server/lib/adapters/log_entries/index.ts b/x-pack/plugins/infra/server/lib/adapters/log_entries/index.ts new file mode 100644 index 0000000000000..41bc2aa258807 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/log_entries/index.ts @@ -0,0 +1,5 @@ +/* + * 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. + */ diff --git a/x-pack/plugins/infra/server/lib/adapters/log_entries/kibana_log_entries_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/log_entries/kibana_log_entries_adapter.ts new file mode 100644 index 0000000000000..2dc6fd2551ec4 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/log_entries/kibana_log_entries_adapter.ts @@ -0,0 +1,278 @@ +/* + * 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 { timeMilliseconds } from 'd3-time'; +import get from 'lodash/fp/get'; +import has from 'lodash/fp/has'; +import zip from 'lodash/fp/zip'; + +import { compareTimeKeys, isTimeKey, TimeKey } from '../../../../common/time'; +import { + LogEntriesAdapter, + LogEntryDocument, + LogEntryQuery, +} from '../../domains/log_entries_domain'; +import { InfraSourceConfiguration } from '../../sources'; +import { + InfraDateRangeAggregationBucket, + InfraDateRangeAggregationResponse, + InfraFrameworkRequest, + SortedSearchHit, +} from '../framework'; +import { InfraBackendFrameworkAdapter } from '../framework'; + +const DAY_MILLIS = 24 * 60 * 60 * 1000; +const LOOKUP_OFFSETS = [0, 1, 7, 30, 365, 10000, Infinity].map(days => days * DAY_MILLIS); + +export class InfraKibanaLogEntriesAdapter implements LogEntriesAdapter { + constructor(private readonly framework: InfraBackendFrameworkAdapter) {} + + public async getAdjacentLogEntryDocuments( + request: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + fields: string[], + start: TimeKey, + direction: 'asc' | 'desc', + maxCount: number, + filterQuery: LogEntryQuery, + highlightQuery: string + ): Promise { + if (maxCount <= 0) { + return []; + } + + const intervals = getLookupIntervals(start.time, direction); + + let documents: LogEntryDocument[] = []; + for (const [intervalStart, intervalEnd] of intervals) { + if (documents.length >= maxCount) { + break; + } + + const documentsInInterval = await this.getLogEntryDocumentsBetween( + request, + sourceConfiguration, + fields, + intervalStart, + intervalEnd, + documents.length > 0 ? documents[documents.length - 1].key : start, + maxCount - documents.length, + filterQuery, + highlightQuery + ); + + documents = [...documents, ...documentsInInterval]; + } + + return direction === 'asc' ? documents : documents.reverse(); + } + + public async getContainedLogEntryDocuments( + request: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + fields: string[], + start: TimeKey, + end: TimeKey, + filterQuery: LogEntryQuery, + highlightQuery: string + ): Promise { + const documents = await this.getLogEntryDocumentsBetween( + request, + sourceConfiguration, + fields, + start.time, + end.time, + start, + 10000, + filterQuery, + highlightQuery + ); + + return documents.filter(document => compareTimeKeys(document.key, end) < 0); + } + + public async getContainedLogSummaryBuckets( + request: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + start: number, + end: number, + bucketSize: number, + filterQuery: LogEntryQuery + ): Promise { + const bucketIntervalStarts = timeMilliseconds(new Date(start), new Date(end), bucketSize); + + const query = { + allowNoIndices: true, + index: sourceConfiguration.logAlias, + ignoreUnavailable: true, + body: { + aggregations: { + count_by_date: { + date_range: { + field: sourceConfiguration.fields.timestamp, + ranges: bucketIntervalStarts.map(bucketIntervalStart => ({ + from: bucketIntervalStart.getTime(), + to: bucketIntervalStart.getTime() + bucketSize, + })), + }, + }, + }, + query: { + bool: { + filter: [ + ...createQueryFilterClauses(filterQuery), + { + range: { + [sourceConfiguration.fields.timestamp]: { + gte: start, + lte: end, + }, + }, + }, + ], + }, + }, + size: 0, + }, + }; + + const response = await this.framework.callWithRequest< + any, + { count_by_date?: InfraDateRangeAggregationResponse } + >(request, 'search', query); + + return response.aggregations && response.aggregations.count_by_date + ? response.aggregations.count_by_date.buckets + : []; + } + + private async getLogEntryDocumentsBetween( + request: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + fields: string[], + start: number, + end: number, + after: TimeKey | null, + maxCount: number, + filterQuery?: LogEntryQuery, + highlightQuery?: string + ): Promise { + if (maxCount <= 0) { + return []; + } + + const sortDirection: 'asc' | 'desc' = start <= end ? 'asc' : 'desc'; + + const startRange = { + [sortDirection === 'asc' ? 'gte' : 'lte']: start, + }; + const endRange = + end === Infinity + ? {} + : { + [sortDirection === 'asc' ? 'lte' : 'gte']: end, + }; + + const highlightClause = highlightQuery + ? { + highlight: { + boundary_scanner: 'word', + fields: fields.reduce( + (highlightFieldConfigs, fieldName) => ({ + ...highlightFieldConfigs, + [fieldName]: {}, + }), + {} + ), + fragment_size: 1, + number_of_fragments: 100, + post_tags: [''], + pre_tags: [''], + }, + } + : {}; + + const searchAfterClause = isTimeKey(after) + ? { + search_after: [after.time, after.tiebreaker], + } + : {}; + + const query = { + allowNoIndices: true, + index: sourceConfiguration.logAlias, + ignoreUnavailable: true, + body: { + query: { + bool: { + filter: [ + ...createQueryFilterClauses(filterQuery), + { + range: { + [sourceConfiguration.fields.timestamp]: { + ...startRange, + ...endRange, + }, + }, + }, + ], + }, + }, + ...highlightClause, + ...searchAfterClause, + _source: fields, + size: maxCount, + sort: [ + { [sourceConfiguration.fields.timestamp]: sortDirection }, + { [sourceConfiguration.fields.tiebreaker]: sortDirection }, + ], + track_total_hits: false, + }, + }; + + const response = await this.framework.callWithRequest( + request, + 'search', + query + ); + const hits = response.hits.hits; + const documents = hits.map(convertHitToLogEntryDocument(fields)); + + return documents; + } +} + +function getLookupIntervals(start: number, direction: 'asc' | 'desc'): Array<[number, number]> { + const offsetSign = direction === 'asc' ? 1 : -1; + const translatedOffsets = LOOKUP_OFFSETS.map(offset => start + offset * offsetSign); + const intervals = zip(translatedOffsets.slice(0, -1), translatedOffsets.slice(1)) as Array< + [number, number] + >; + return intervals; +} + +const convertHitToLogEntryDocument = (fields: string[]) => ( + hit: SortedSearchHit +): LogEntryDocument => ({ + gid: hit._id, + fields: fields.reduce( + (flattenedFields, fieldName) => + has(fieldName, hit._source) + ? { + ...flattenedFields, + [fieldName]: get(fieldName, hit._source), + } + : flattenedFields, + {} as { [fieldName: string]: string | number | boolean | null } + ), + key: { + time: hit.sort[0], + tiebreaker: hit.sort[1], + }, +}); + +const createQueryFilterClauses = (filterQuery: LogEntryQuery | undefined) => + filterQuery ? [filterQuery] : []; diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/adapter_types.ts new file mode 100644 index 0000000000000..18a81e518c931 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/adapter_types.ts @@ -0,0 +1,113 @@ +/* + * 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 { + InfraMetric, + InfraMetricData, + InfraNodeType, + InfraTimerangeInput, +} from '../../../../common/graphql/types'; + +import { InfraSourceConfiguration } from '../../sources'; +import { InfraFrameworkRequest } from '../framework'; + +export interface InfraMetricsRequestOptions { + nodeId: string; + nodeType: InfraNodeType; + sourceConfiguration: InfraSourceConfiguration; + timerange: InfraTimerangeInput; + metrics: InfraMetric[]; +} + +export interface InfraMetricsAdapter { + getMetrics( + req: InfraFrameworkRequest, + options: InfraMetricsRequestOptions + ): Promise; +} + +export enum InfraMetricModelMetricType { + avg = 'avg', + max = 'max', + min = 'min', + calculation = 'calculation', + cardinality = 'cardinality', + series_agg = 'series_agg', + positive_only = 'positive_only', + derivative = 'derivative', + count = 'count', +} + +export interface InfraMetricModel { + id: string; + requires: string[]; + index_pattern: string | string[]; + interval: string; + time_field: string; + type: string; + series: InfraMetricModelSeries[]; + filter?: string; + map_field_to?: string; +} + +export interface InfraMetricModelSeries { + id: string; + metrics: InfraMetricModelMetric[]; + split_mode: string; + terms_field?: string; + terms_size?: number; + terms_order_by?: string; +} + +export interface InfraMetricModelBasicMetric { + id: string; + field: string; + type: InfraMetricModelMetricType; +} + +export interface InfraMetricModelSeriesAgg { + id: string; + function: string; + type: InfraMetricModelMetricType.series_agg; +} + +export interface InfraMetricModelDerivative { + id: string; + field: string; + unit: string; + type: InfraMetricModelMetricType; +} + +export interface InfraMetricModelBucketScriptVariable { + field: string; + id: string; + name: string; +} + +export interface InfraMetricModelCount { + id: string; + type: InfraMetricModelMetricType.count; +} + +export interface InfraMetricModelBucketScript { + id: string; + script: string; + type: InfraMetricModelMetricType.calculation; + variables: InfraMetricModelBucketScriptVariable[]; +} + +export type InfraMetricModelMetric = + | InfraMetricModelCount + | InfraMetricModelBasicMetric + | InfraMetricModelBucketScript + | InfraMetricModelDerivative + | InfraMetricModelSeriesAgg; + +export type InfraMetricModelCreator = ( + timeField: string, + indexPattern: string | string[], + interval: string +) => InfraMetricModel; diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/index.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/index.ts new file mode 100644 index 0000000000000..4e09b5d0e9e2d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './adapter_types'; diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts new file mode 100644 index 0000000000000..bb7f7f6d2dc93 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts @@ -0,0 +1,79 @@ +/* + * 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 { flatten } from 'lodash'; +import { InfraMetric, InfraMetricData, InfraNodeType } from '../../../../common/graphql/types'; +import { InfraBackendFrameworkAdapter, InfraFrameworkRequest } from '../framework'; +import { InfraMetricsAdapter, InfraMetricsRequestOptions } from './adapter_types'; +import { checkValidNode } from './lib/check_valid_node'; +import { metricModels } from './models'; + +export class KibanaMetricsAdapter implements InfraMetricsAdapter { + private framework: InfraBackendFrameworkAdapter; + + constructor(framework: InfraBackendFrameworkAdapter) { + this.framework = framework; + } + + public async getMetrics( + req: InfraFrameworkRequest, + options: InfraMetricsRequestOptions + ): Promise { + const fields = { + [InfraNodeType.host]: options.sourceConfiguration.fields.host, + [InfraNodeType.container]: options.sourceConfiguration.fields.container, + [InfraNodeType.pod]: options.sourceConfiguration.fields.pod, + }; + const indexPattern = [ + options.sourceConfiguration.metricAlias, + options.sourceConfiguration.logAlias, + ]; + const timeField = options.sourceConfiguration.fields.timestamp; + const interval = options.timerange.interval; + const nodeField = fields[options.nodeType]; + const timerange = { + min: options.timerange.from, + max: options.timerange.to, + }; + + const search = (searchOptions: object) => + this.framework.callWithRequest<{}, Aggregation>(req, 'search', searchOptions); + + const validNode = await checkValidNode(search, indexPattern, nodeField, options.nodeId); + if (!validNode) { + throw new Error(`${options.nodeId} does not exist.`); + } + + const requests = options.metrics.map(metricId => { + const model = metricModels[metricId](timeField, indexPattern, interval); + const filters = [{ match: { [nodeField]: options.nodeId } }]; + return this.framework.makeTSVBRequest(req, model, timerange, filters); + }); + return Promise.all(requests) + .then(results => { + return results.map(result => { + const metricIds = Object.keys(result).filter(k => k !== 'type'); + return metricIds.map((id: string) => { + const infraMetricId: InfraMetric = (InfraMetric as any)[id]; + if (!infraMetricId) { + throw new Error(`${id} is not a valid InfraMetric`); + } + const panel = result[infraMetricId]; + return { + id: infraMetricId, + series: panel.series.map(series => { + return { + id: series.id, + data: series.data.map(point => ({ timestamp: point[0], value: point[1] })), + }; + }), + }; + }); + }); + }) + .then(result => flatten(result)); + } +} diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/lib/check_valid_node.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/lib/check_valid_node.ts new file mode 100644 index 0000000000000..a9c6d36560b6c --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/lib/check_valid_node.ts @@ -0,0 +1,28 @@ +/* + * 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 { InfraDatabaseSearchResponse } from '../../framework'; + +export const checkValidNode = async ( + search: (options: object) => Promise>, + indexPattern: string | string[], + field: string, + id: string +): Promise => { + const params = { + index: indexPattern, + terminateAfter: 1, + body: { + size: 0, + query: { + match: { + [field]: id, + }, + }, + }, + }; + return (await search(params)).hits.total > 0; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_cpu_kernel.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_cpu_kernel.ts new file mode 100644 index 0000000000000..3fd1144b6770b --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_cpu_kernel.ts @@ -0,0 +1,29 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const containerCpuKernel: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'containerCpuKernel', + requires: ['docker.cpu'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'kernel', + split_mode: 'everything', + metrics: [ + { + field: 'docker.cpu.kernel.pct', + id: 'avg-cpu-kernel', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_cpu_usage.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_cpu_usage.ts new file mode 100644 index 0000000000000..bdb52b8a9d7b5 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_cpu_usage.ts @@ -0,0 +1,29 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const containerCpuUsage: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'containerCpuUsage', + requires: ['docker.cpu'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'cpu', + split_mode: 'everything', + metrics: [ + { + field: 'docker.cpu.total.pct', + id: 'avg-cpu-total', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_disk_io_bytes.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_disk_io_bytes.ts new file mode 100644 index 0000000000000..a310886ab9a0f --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_disk_io_bytes.ts @@ -0,0 +1,44 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const containerDiskIOBytes: InfraMetricModelCreator = ( + timeField, + indexPattern, + interval +) => ({ + id: 'containerDiskIOBytes', + requires: ['docker.disk'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'read', + split_mode: 'everything', + metrics: [ + { + field: 'docker.diskio.read.bytes', + id: 'avg-diskio-bytes', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'write', + split_mode: 'everything', + metrics: [ + { + field: 'docker.diskio.write.bytes', + id: 'avg-diskio-bytes', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_diskio_ops.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_diskio_ops.ts new file mode 100644 index 0000000000000..d09250ab1c577 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_diskio_ops.ts @@ -0,0 +1,40 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const containerDiskIOOps: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'containerDiskIOOps', + requires: ['docker.disk'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'read', + split_mode: 'everything', + metrics: [ + { + field: 'docker.diskio.read.ops', + id: 'avg-diskio-ops', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'write', + split_mode: 'everything', + metrics: [ + { + field: 'docker.diskio.write.ops', + id: 'avg-diskio-ops', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_memory.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_memory.ts new file mode 100644 index 0000000000000..9844fde182fe7 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_memory.ts @@ -0,0 +1,29 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const containerMemory: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'containerMemory', + requires: ['docker.memory'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'memory', + split_mode: 'everything', + metrics: [ + { + field: 'docker.memory.usage.pct', + id: 'avg-memory', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_network_traffic.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_network_traffic.ts new file mode 100644 index 0000000000000..9c1ea8920f218 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_network_traffic.ts @@ -0,0 +1,56 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const containerNetworkTraffic: InfraMetricModelCreator = ( + timeField, + indexPattern, + interval +) => ({ + id: 'containerNetworkTraffic', + requires: ['docker.network'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'tx', + split_mode: 'everything', + metrics: [ + { + field: 'docker.network.out.bytes', + id: 'avg-network-out', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'rx', + split_mode: 'everything', + metrics: [ + { + field: 'docker.network.in.bytes', + id: 'avg-network-in', + type: InfraMetricModelMetricType.avg, + }, + { + id: 'invert-posonly-deriv-max-network-in', + script: 'params.rate * -1', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'avg-network-in', + id: 'var-rate', + name: 'rate', + }, + ], + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_overview.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_overview.ts new file mode 100644 index 0000000000000..24d1a93540104 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/container/container_overview.ts @@ -0,0 +1,62 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const containerOverview: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'containerOverview', + requires: ['docker'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'cpu', + split_mode: 'everything', + metrics: [ + { + field: 'docker.cpu.total.pct', + id: 'avg-cpu-total', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'memory', + split_mode: 'everything', + metrics: [ + { + field: 'docker.memory.usage.pct', + id: 'avg-memory', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'tx', + split_mode: 'everything', + metrics: [ + { + field: 'docker.network.out.bytes', + id: 'avg-network-out', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'rx', + split_mode: 'everything', + metrics: [ + { + field: 'docker.network.in.bytes', + id: 'avg-network-in', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_cpu_usage.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_cpu_usage.ts new file mode 100644 index 0000000000000..3d35bc59aa4df --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_cpu_usage.ts @@ -0,0 +1,249 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostCpuUsage: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostCpuUsage', + requires: ['system.cpu'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'user', + metrics: [ + { + field: 'system.cpu.user.pct', + id: 'avg-cpu-user', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-avg-cores', + script: 'params.avg / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + { + field: 'avg-cpu-user', + id: 'var-avg', + name: 'avg', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'system', + metrics: [ + { + field: 'system.cpu.system.pct', + id: 'avg-cpu-system', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-avg-cores', + script: 'params.avg / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + { + field: 'avg-cpu-system', + id: 'var-avg', + name: 'avg', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'steal', + metrics: [ + { + field: 'system.cpu.steal.pct', + id: 'avg-cpu-steal', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-avg-cores', + script: 'params.avg / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'avg-cpu-steal', + id: 'var-avg', + name: 'avg', + }, + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'irq', + metrics: [ + { + field: 'system.cpu.irq.pct', + id: 'avg-cpu-irq', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-avg-cores', + script: 'params.avg / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + { + field: 'avg-cpu-irq', + id: 'var-avg', + name: 'avg', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'softirq', + metrics: [ + { + field: 'system.cpu.softirq.pct', + id: 'avg-cpu-softirq', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-avg-cores', + script: 'params.avg / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + { + field: 'avg-cpu-softirq', + id: 'var-avg', + name: 'avg', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'iowait', + metrics: [ + { + field: 'system.cpu.iowait.pct', + id: 'avg-cpu-iowait', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-avg-cores', + script: 'params.avg / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + { + field: 'avg-cpu-iowait', + id: 'var-avg', + name: 'avg', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'nice', + metrics: [ + { + field: 'system.cpu.nice.pct', + id: 'avg-cpu-nice', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-avg-cores', + script: 'params.avg / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + { + field: 'avg-cpu-nice', + id: 'var-avg', + name: 'avg', + }, + ], + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_filesystem.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_filesystem.ts new file mode 100644 index 0000000000000..4e0dc01ab3923 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_filesystem.ts @@ -0,0 +1,33 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostFilesystem: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostFilesystem', + requires: ['system.filesystem'], + filter: 'system.filesystem.device_name:\\/*', + index_pattern: indexPattern, + time_field: timeField, + interval, + type: 'timeseries', + series: [ + { + id: 'used', + metrics: [ + { + field: 'system.filesystem.used.pct', + id: 'avg-filesystem-used', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'terms', + terms_field: 'system.filesystem.device_name', + terms_order_by: 'used', + terms_size: 5, + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_cpu_cap.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_cpu_cap.ts new file mode 100644 index 0000000000000..685b95614425a --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_cpu_cap.ts @@ -0,0 +1,53 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostK8sCpuCap: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostK8sCpuCap', + map_field_to: 'kubernetes.node.name', + requires: ['kubernetes.node'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'capacity', + metrics: [ + { + field: 'kubernetes.node.cpu.allocatable.cores', + id: 'max-cpu-cap', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-nanocores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + id: 'var-cores', + field: 'max-cpu-cap', + name: 'cores', + }, + ], + script: 'params.cores * 1000000000', + }, + ], + split_mode: 'everything', + }, + { + id: 'used', + metrics: [ + { + field: 'kubernetes.node.cpu.usage.nanocores', + id: 'avg-cpu-usage', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_disk_cap.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_disk_cap.ts new file mode 100644 index 0000000000000..27fc70e2e00e7 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_disk_cap.ts @@ -0,0 +1,41 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostK8sDiskCap: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostK8sDiskCap', + map_field_to: 'kubernetes.node.name', + requires: ['kubernetes.node'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'capacity', + metrics: [ + { + field: 'kubernetes.node.fs.capacity.bytes', + id: 'max-fs-cap', + type: InfraMetricModelMetricType.max, + }, + ], + split_mode: 'everything', + }, + { + id: 'used', + metrics: [ + { + field: 'kubernetes.node.fs.used.bytes', + id: 'avg-fs-used', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_memory_cap.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_memory_cap.ts new file mode 100644 index 0000000000000..7e064f7256dbd --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_memory_cap.ts @@ -0,0 +1,41 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostK8sMemoryCap: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostK8sMemoryCap', + map_field_to: 'kubernetes.node.name', + requires: ['kubernetes.node'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'capacity', + metrics: [ + { + field: 'kubernetes.node.memory.allocatable.bytes', + id: 'max-memory-cap', + type: InfraMetricModelMetricType.max, + }, + ], + split_mode: 'everything', + }, + { + id: 'used', + metrics: [ + { + field: 'kubernetes.node.memory.usage.bytes', + id: 'avg-memory-usage', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_overview.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_overview.ts new file mode 100644 index 0000000000000..cd015d4312fd2 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_overview.ts @@ -0,0 +1,150 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostK8sOverview: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostK8sOverview', + requires: ['kubernetes'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'gauge', + series: [ + { + id: 'cpucap', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.node.cpu.allocatable.cores', + id: 'max-cpu-cap', + type: InfraMetricModelMetricType.max, + }, + { + field: 'kubernetes.node.cpu.usage.nanocores', + id: 'avg-cpu-usage', + type: InfraMetricModelMetricType.avg, + }, + { + id: 'calc-used-cap', + script: 'params.used / (params.cap * 1000000000)', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-cpu-cap', + id: 'var-cap', + name: 'cap', + }, + { + field: 'avg-cpu-usage', + id: 'var-used', + name: 'used', + }, + ], + }, + ], + }, + { + id: 'diskcap', + metrics: [ + { + field: 'kubernetes.node.fs.capacity.bytes', + id: 'max-fs-cap', + type: InfraMetricModelMetricType.max, + }, + { + field: 'kubernetes.node.fs.used.bytes', + id: 'avg-fs-used', + type: InfraMetricModelMetricType.avg, + }, + { + id: 'calc-used-cap', + script: 'params.used / params.cap', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-fs-cap', + id: 'var-cap', + name: 'cap', + }, + { + field: 'avg-fs-used', + id: 'var-used', + name: 'used', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'memorycap', + metrics: [ + { + field: 'kubernetes.node.memory.allocatable.bytes', + id: 'max-memory-cap', + type: InfraMetricModelMetricType.max, + }, + { + field: 'kubernetes.node.memory.usage.bytes', + id: 'avg-memory-usage', + type: InfraMetricModelMetricType.avg, + }, + { + id: 'calc-used-cap', + script: 'params.used / params.cap', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-memory-cap', + id: 'var-cap', + name: 'cap', + }, + { + field: 'avg-memory-usage', + id: 'var-used', + name: 'used', + }, + ], + }, + ], + split_mode: 'everything', + }, + { + id: 'podcap', + metrics: [ + { + field: 'kubernetes.node.pod.capacity.total', + id: 'max-pod-cap', + type: InfraMetricModelMetricType.max, + }, + { + field: 'kubernetes.pod.name', + id: 'card-pod-name', + type: InfraMetricModelMetricType.cardinality, + }, + { + id: 'calc-used-cap', + script: 'params.used / params.cap', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'max-pod-cap', + id: 'var-cap', + name: 'cap', + }, + { + field: 'card-pod-name', + id: 'var-used', + name: 'used', + }, + ], + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_pod_cap.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_pod_cap.ts new file mode 100644 index 0000000000000..76e37e7d5f8b8 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_k8s_pod_cap.ts @@ -0,0 +1,42 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostK8sPodCap: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostK8sPodCap', + requires: ['kubernetes.node'], + map_field_to: 'kubernetes.node.name', + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + + series: [ + { + id: 'capacity', + metrics: [ + { + field: 'kubernetes.node.pod.allocatable.total', + id: 'max-pod-cap', + type: InfraMetricModelMetricType.max, + }, + ], + split_mode: 'everything', + }, + { + id: 'used', + metrics: [ + { + field: 'kubernetes.pod.name', + id: 'avg-pod', + type: InfraMetricModelMetricType.cardinality, + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_load.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_load.ts new file mode 100644 index 0000000000000..3ee043c5676d5 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_load.ts @@ -0,0 +1,51 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostLoad: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostLoad', + requires: ['system.cpu'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'load_1m', + metrics: [ + { + field: 'system.load.1', + id: 'avg-load-1m', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + { + id: 'load_5m', + metrics: [ + { + field: 'system.load.5', + id: 'avg-load-5m', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + { + id: 'load_15m', + metrics: [ + { + field: 'system.load.15', + id: 'avg-load-15m', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_memory_usage.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_memory_usage.ts new file mode 100644 index 0000000000000..862381df1280d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_memory_usage.ts @@ -0,0 +1,73 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostMemoryUsage: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostMemoryUsage', + requires: ['system.memory'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'free', + metrics: [ + { + field: 'system.memory.free', + id: 'avg-memory-free', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + { + id: 'used', + metrics: [ + { + field: 'system.memory.actual.used.bytes', + id: 'avg-memory-used', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + { + id: 'cache', + metrics: [ + { + field: 'system.memory.actual.used.bytes', + id: 'avg-memory-actual-used', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.memory.used.bytes', + id: 'avg-memory-used', + type: InfraMetricModelMetricType.avg, + }, + { + id: 'calc-used-actual', + script: 'params.used - params.actual', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'avg-memory-actual-used', + id: 'var-actual', + name: 'actual', + }, + { + field: 'avg-memory-used', + id: 'var-used', + name: 'used', + }, + ], + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_network_traffic.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_network_traffic.ts new file mode 100644 index 0000000000000..98d10a96b3fe1 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_network_traffic.ts @@ -0,0 +1,89 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostNetworkTraffic: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostNetworkTraffic', + requires: ['system.network'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'tx', + metrics: [ + { + field: 'system.network.out.bytes', + id: 'max-net-out', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-net-out', + id: 'deriv-max-net-out', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-net-out', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-net-out' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + { + function: 'sum', + id: 'seriesagg-sum', + type: InfraMetricModelMetricType.series_agg, + }, + ], + split_mode: 'terms', + terms_field: 'system.network.name', + }, + { + id: 'rx', + label: 'Inbound (RX)', + metrics: [ + { + field: 'system.network.in.bytes', + id: 'max-net-in', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-net-in', + id: 'deriv-max-net-in', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-net-in', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-net-in' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + { + id: 'calc-invert-rate', + script: 'params.rate * -1', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'posonly-deriv-max-net-in', + id: 'var-rate', + name: 'rate', + }, + ], + }, + { + function: 'sum', + id: 'seriesagg-sum', + type: InfraMetricModelMetricType.series_agg, + }, + ], + split_mode: 'terms', + terms_field: 'system.network.name', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_system_overview.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_system_overview.ts new file mode 100644 index 0000000000000..8244fec21e5a9 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/host/host_system_overview.ts @@ -0,0 +1,141 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const hostSystemOverview: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'hostSystemOverview', + requires: ['system.cpu', 'system.memory', 'system.load', 'system.network'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'gauge', + series: [ + { + id: 'cpu', + split_mode: 'everything', + metrics: [ + { + field: 'system.cpu.user.pct', + id: 'avg-cpu-user', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'system.cpu.cores', + id: 'max-cpu-cores', + type: InfraMetricModelMetricType.max, + }, + { + field: 'system.cpu.system.pct', + id: 'avg-cpu-system', + type: InfraMetricModelMetricType.avg, + }, + { + id: 'calc-user-system-cores', + script: '(params.users + params.system) / params.cores', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'avg-cpu-user', + id: 'var-users', + name: 'users', + }, + { + field: 'avg-cpu-system', + id: 'var-system', + name: 'system', + }, + { + field: 'max-cpu-cores', + id: 'var-cores', + name: 'cores', + }, + ], + }, + ], + }, + { + id: 'load', + split_mode: 'everything', + metrics: [ + { + field: 'system.load.5', + id: 'avg-load-5m', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'memory', + split_mode: 'everything', + metrics: [ + { + field: 'system.memory.actual.used.pct', + id: 'avg-memory-actual-used', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'rx', + split_mode: 'terms', + terms_field: 'system.network.name', + metrics: [ + { + field: 'system.network.in.bytes', + id: 'max-net-in', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-net-in', + id: 'deriv-max-net-in', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-net-in', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-net-in' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + { + function: 'sum', + id: 'seriesagg-sum', + type: InfraMetricModelMetricType.series_agg, + }, + ], + }, + { + id: 'tx', + split_mode: 'terms', + terms_field: 'system.network.name', + metrics: [ + { + field: 'system.network.out.bytes', + id: 'max-net-out', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-net-out', + id: 'deriv-max-net-out', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-net-out', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-net-out' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + { + function: 'sum', + id: 'seriesagg-sum', + type: InfraMetricModelMetricType.series_agg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/index.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/index.ts new file mode 100644 index 0000000000000..0a1c6fab14a84 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/index.ts @@ -0,0 +1,74 @@ +/* + * 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 { InfraMetric } from '../../../../../common/graphql/types'; +import { InfraMetricModelCreator } from '../adapter_types'; + +import { hostCpuUsage } from './host/host_cpu_usage'; +import { hostFilesystem } from './host/host_filesystem'; +import { hostK8sCpuCap } from './host/host_k8s_cpu_cap'; +import { hostK8sDiskCap } from './host/host_k8s_disk_cap'; +import { hostK8sMemoryCap } from './host/host_k8s_memory_cap'; +import { hostK8sOverview } from './host/host_k8s_overview'; +import { hostK8sPodCap } from './host/host_k8s_pod_cap'; +import { hostLoad } from './host/host_load'; +import { hostMemoryUsage } from './host/host_memory_usage'; +import { hostNetworkTraffic } from './host/host_network_traffic'; +import { hostSystemOverview } from './host/host_system_overview'; + +import { podCpuUsage } from './pod/pod_cpu_usage'; +import { podLogUsage } from './pod/pod_log_usage'; +import { podMemoryUsage } from './pod/pod_memory_usage'; +import { podNetworkTraffic } from './pod/pod_network_traffic'; +import { podOverview } from './pod/pod_overview'; + +import { containerCpuKernel } from './container/container_cpu_kernel'; +import { containerCpuUsage } from './container/container_cpu_usage'; +import { containerDiskIOBytes } from './container/container_disk_io_bytes'; +import { containerDiskIOOps } from './container/container_diskio_ops'; +import { containerMemory } from './container/container_memory'; +import { containerNetworkTraffic } from './container/container_network_traffic'; +import { containerOverview } from './container/container_overview'; +import { nginxActiveConnections } from './nginx/nginx_active_connections'; +import { nginxHits } from './nginx/nginx_hits'; +import { nginxRequestRate } from './nginx/nginx_request_rate'; +import { nginxRequestsPerConnection } from './nginx/nginx_requests_per_connection'; + +interface InfraMetricModels { + [key: string]: InfraMetricModelCreator; +} + +export const metricModels: InfraMetricModels = { + [InfraMetric.hostSystemOverview]: hostSystemOverview, + [InfraMetric.hostCpuUsage]: hostCpuUsage, + [InfraMetric.hostFilesystem]: hostFilesystem, + [InfraMetric.hostK8sOverview]: hostK8sOverview, + [InfraMetric.hostK8sCpuCap]: hostK8sCpuCap, + [InfraMetric.hostK8sDiskCap]: hostK8sDiskCap, + [InfraMetric.hostK8sMemoryCap]: hostK8sMemoryCap, + [InfraMetric.hostK8sPodCap]: hostK8sPodCap, + [InfraMetric.hostLoad]: hostLoad, + [InfraMetric.hostMemoryUsage]: hostMemoryUsage, + [InfraMetric.hostNetworkTraffic]: hostNetworkTraffic, + + [InfraMetric.podOverview]: podOverview, + [InfraMetric.podCpuUsage]: podCpuUsage, + [InfraMetric.podMemoryUsage]: podMemoryUsage, + [InfraMetric.podLogUsage]: podLogUsage, + [InfraMetric.podNetworkTraffic]: podNetworkTraffic, + + [InfraMetric.containerCpuKernel]: containerCpuKernel, + [InfraMetric.containerCpuUsage]: containerCpuUsage, + [InfraMetric.containerDiskIOBytes]: containerDiskIOBytes, + [InfraMetric.containerDiskIOOps]: containerDiskIOOps, + [InfraMetric.containerNetworkTraffic]: containerNetworkTraffic, + [InfraMetric.containerMemory]: containerMemory, + [InfraMetric.containerOverview]: containerOverview, + [InfraMetric.nginxHits]: nginxHits, + [InfraMetric.nginxRequestRate]: nginxRequestRate, + [InfraMetric.nginxActiveConnections]: nginxActiveConnections, + [InfraMetric.nginxRequestsPerConnection]: nginxRequestsPerConnection, +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_active_connections.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_active_connections.ts new file mode 100644 index 0000000000000..befc776661f74 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_active_connections.ts @@ -0,0 +1,33 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const nginxActiveConnections: InfraMetricModelCreator = ( + timeField, + indexPattern, + interval +) => ({ + id: 'nginxActiveConnections', + requires: ['nginx.stubstatus'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'connections', + metrics: [ + { + field: 'nginx.stubstatus.active', + id: 'avg-active', + type: InfraMetricModelMetricType.avg, + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_hits.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_hits.ts new file mode 100644 index 0000000000000..2f24c504db184 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_hits.ts @@ -0,0 +1,62 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const nginxHits: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'nginxHits', + requires: ['nginx.access'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: '200s', + metrics: [ + { + id: 'count-200', + type: InfraMetricModelMetricType.count, + }, + ], + split_mode: 'filter', + filter: 'nginx.access.response_code:[200 TO 299]', + }, + { + id: '300s', + metrics: [ + { + id: 'count-300', + type: InfraMetricModelMetricType.count, + }, + ], + split_mode: 'filter', + filter: 'nginx.access.response_code:[300 TO 399]', + }, + { + id: '400s', + metrics: [ + { + id: 'count-400', + type: InfraMetricModelMetricType.count, + }, + ], + split_mode: 'filter', + filter: 'nginx.access.response_code:[400 TO 499]', + }, + { + id: '500s', + metrics: [ + { + id: 'count-500', + type: InfraMetricModelMetricType.count, + }, + ], + split_mode: 'filter', + filter: 'nginx.access.response_code:[500 TO 599]', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_request_rate.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_request_rate.ts new file mode 100644 index 0000000000000..aca3d5432c837 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_request_rate.ts @@ -0,0 +1,41 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const nginxRequestRate: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'nginxRequestRate', + requires: ['nginx.stubstatus'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'rate', + metrics: [ + { + field: 'nginx.stubstatus.requests', + id: 'max-requests', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-requests', + id: 'derv-max-requests', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-derv-max-requests', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'derv-max-requests' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_requests_per_connection.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_requests_per_connection.ts new file mode 100644 index 0000000000000..03d8a9458d21a --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/nginx/nginx_requests_per_connection.ts @@ -0,0 +1,48 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const nginxRequestsPerConnection: InfraMetricModelCreator = ( + timeField, + indexPattern, + interval +) => ({ + id: 'nginxRequestsPerConnection', + requires: ['nginx.stubstatus'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'reqPerConns', + metrics: [ + { + field: 'nginx.stubstatus.handled', + id: 'max-handled', + type: InfraMetricModelMetricType.max, + }, + { + field: 'nginx.stubstatus.requests', + id: 'max-requests', + type: InfraMetricModelMetricType.max, + }, + { + id: 'reqs-per-connection', + type: InfraMetricModelMetricType.calculation, + variables: [ + { id: 'var-handled', name: 'handled', field: 'max-handled' }, + { id: 'var-requests', name: 'requests', field: 'max-requests' }, + ], + script: + 'params.handled > 0.0 && params.requests > 0.0 ? params.handled / params.requests : 0.0', + }, + ], + split_mode: 'everything', + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_cpu_usage.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_cpu_usage.ts new file mode 100644 index 0000000000000..7b766e3dbda43 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_cpu_usage.ts @@ -0,0 +1,29 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const podCpuUsage: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'podCpuUsage', + requires: ['kubernetes.pod'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'cpu', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.cpu.usage.node.pct', + id: 'avg-cpu-usage', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_log_usage.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_log_usage.ts new file mode 100644 index 0000000000000..19ce51226919e --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_log_usage.ts @@ -0,0 +1,51 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const podLogUsage: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'podLogUsage', + requires: ['kubernetes.pod'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'logs', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.container.logs.used.bytes', + id: 'avg-log-used', + type: InfraMetricModelMetricType.avg, + }, + { + field: 'kubernetes.container.logs.capacity.bytes', + id: 'max-log-cap', + type: InfraMetricModelMetricType.max, + }, + { + id: 'calc-usage-limit', + script: 'params.usage / params.limit', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'avg-log-userd', + id: 'var-usage', + name: 'usage', + }, + { + field: 'max-log-cap', + id: 'var-limit', + name: 'limit', + }, + ], + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_memory_usage.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_memory_usage.ts new file mode 100644 index 0000000000000..a8ff514877a32 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_memory_usage.ts @@ -0,0 +1,29 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const podMemoryUsage: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'podMemoryUsage', + requires: ['kubernetes.pod'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'memory', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.memory.usage.node.pct', + id: 'avg-memory-usage', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_network_traffic.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_network_traffic.ts new file mode 100644 index 0000000000000..d83695d4590f2 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_network_traffic.ts @@ -0,0 +1,76 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const podNetworkTraffic: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'podNetworkTraffic', + requires: ['kubernetes.pod'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'tx', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.network.tx.bytes', + id: 'max-network-tx', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-network-tx', + id: 'deriv-max-network-tx', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-net-tx', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-network-tx' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + ], + }, + { + id: 'rx', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.network.rx.bytes', + id: 'max-network-rx', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-network-rx', + id: 'deriv-max-network-rx', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-net-tx', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-network-tx' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + { + id: 'invert-posonly-deriv-max-network-rx', + script: 'params.rate * -1', + type: InfraMetricModelMetricType.calculation, + variables: [ + { + field: 'posonly-deriv-max-network-rx', + id: 'var-rate', + name: 'rate', + }, + ], + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_overview.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_overview.ts new file mode 100644 index 0000000000000..c94def091d4c9 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/models/pod/pod_overview.ts @@ -0,0 +1,86 @@ +/* + * 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 { InfraMetricModelCreator, InfraMetricModelMetricType } from '../../adapter_types'; + +export const podOverview: InfraMetricModelCreator = (timeField, indexPattern, interval) => ({ + id: 'podOverview', + requires: ['kubernetes.pod'], + index_pattern: indexPattern, + interval, + time_field: timeField, + type: 'timeseries', + series: [ + { + id: 'cpu', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.cpu.usage.node.pct', + id: 'avg-cpu-usage', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'memory', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.memory.usage.node.pct', + id: 'avg-memory-usage', + type: InfraMetricModelMetricType.avg, + }, + ], + }, + { + id: 'rx', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.network.rx.bytes', + id: 'max-network-rx', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-network-rx', + id: 'deriv-max-network-rx', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-network-rx', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-network-rx' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + ], + }, + { + id: 'tx', + split_mode: 'everything', + metrics: [ + { + field: 'kubernetes.pod.network.tx.bytes', + id: 'max-network-tx', + type: InfraMetricModelMetricType.max, + }, + { + field: 'max-network-tx', + id: 'deriv-max-network-tx', + type: InfraMetricModelMetricType.derivative, + unit: '1s', + }, + { + id: 'posonly-deriv-max-network-tx', + type: InfraMetricModelMetricType.calculation, + variables: [{ id: 'var-rate', name: 'rate', field: 'deriv-max-network-tx' }], + script: 'params.rate > 0.0 ? params.rate : 0.0', + }, + ], + }, + ], +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/adapter_types.ts new file mode 100644 index 0000000000000..ed6fb4beda03d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/adapter_types.ts @@ -0,0 +1,237 @@ +/* + * 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 { + InfraMetricInput, + InfraNode, + InfraPathFilterInput, + InfraPathInput, + InfraPathType, + InfraTimerangeInput, +} from '../../../../common/graphql/types'; +import { JsonObject } from '../../../../common/typed_json'; +import { InfraSourceConfiguration } from '../../sources'; +import { InfraFrameworkRequest } from '../framework'; + +export interface InfraNodesAdapter { + getNodes(req: InfraFrameworkRequest, options: InfraNodeRequestOptions): Promise; +} + +export interface InfraHostsFieldsObject { + name?: any; + metrics?: any; + groups?: [any]; +} + +export type InfraESQuery = + | InfraESBoolQuery + | InfraESRangeQuery + | InfraESExistsQuery + | InfraESQueryStringQuery + | InfraESMatchQuery + | JsonObject; + +export interface InfraESExistsQuery { + exists: { field: string }; +} + +export interface InfraESQueryStringQuery { + query_string: { + query: string; + analyze_wildcard: boolean; + }; +} + +export interface InfraESRangeQuery { + range: { + [name: string]: { + gte: number; + lte: number; + format: string; + }; + }; +} + +export interface InfraESMatchQuery { + match: { + [name: string]: { + query: string; + }; + }; +} + +export interface InfraESBoolQuery { + bool: { + must?: InfraESQuery[]; + should?: InfraESQuery[]; + filter?: InfraESQuery[]; + }; +} + +export interface InfraESMSearchHeader { + index: string[] | string; +} + +export interface InfraESSearchBody { + query?: object; + aggregations?: object; + aggs?: object; + size?: number; +} + +export type InfraESMSearchBody = InfraESSearchBody | InfraESMSearchHeader; + +export interface InfraNodeRequestOptions { + nodeType: InfraNodeType; + sourceConfiguration: InfraSourceConfiguration; + timerange: InfraTimerangeInput; + groupBy: InfraPathInput[]; + metric: InfraMetricInput; + filterQuery: InfraESQuery | undefined; +} + +export enum InfraNodesKey { + hosts = 'hosts', + pods = 'pods', + containers = 'containers', +} + +export enum InfraNodeType { + host = 'host', + pod = 'pod', + container = 'container', +} + +export interface InfraNodesAggregations { + waffle: { + nodes: { + buckets: InfraBucket[]; + }; + }; +} + +export type InfraProcessorTransformer = (doc: T) => T; + +export type InfraProcessorChainFn = ( + next: InfraProcessorTransformer +) => InfraProcessorTransformer; + +export type InfraProcessor = (options: O) => InfraProcessorChainFn; + +export interface InfraProcesorRequestOptions { + nodeType: InfraNodeType; + nodeOptions: InfraNodeRequestOptions; + partitionId: number; + numberOfPartitions: number; + nodeField: string; +} + +export interface InfraGroupByFilters { + id: string /** The UUID for the group by object */; + type: InfraPathType /** The type of aggregation to use to bucket the groups */; + label?: + | string + | null /** The label to use in the results for the group by for the terms group by */; + filters: InfraPathFilterInput[] /** The filters to use for the group by aggregation, this is ignored by the terms group by */; +} + +export interface InfraGroupByTerms { + id: string /** The UUID for the group by object */; + type: InfraPathType /** The type of aggregation to use to bucket the groups */; + label?: + | string + | null /** The label to use in the results for the group by for the terms group by */; + field: string; +} + +export interface InfraBucketWithKey { + key: string | number; + doc_count: number; +} + +export interface InfraBucketWithAggs { + [name: string]: { + buckets: InfraBucket[]; + }; +} + +export interface InfraBucketWithValues { + [name: string]: { value: number; normalized_value?: number }; +} + +export type InfraBucket = InfraBucketWithAggs & InfraBucketWithKey & InfraBucketWithValues; + +export interface InfraGroupWithNodes { + name: string; + nodes: InfraNode[]; +} + +export interface InfraGroupWithSubGroups { + name: string; + groups: InfraGroupWithNodes[]; +} + +export type InfraNodeGroup = InfraGroupWithNodes | InfraGroupWithSubGroups; + +export interface InfraNodesResponse { + total?: number; +} + +export interface InfraGroupsResponse { + total: number; + groups: InfraNodeGroup[]; +} + +export interface InfraNodesOnlyResponse { + total: number; + nodes: InfraNode[]; +} + +export interface InfraAvgAgg { + avg: { field: string }; +} + +export interface InfraMaxAgg { + max: { field: string }; +} + +export interface InfraDerivativeAgg { + derivative: { + buckets_path: string; + gap_policy: string; + unit: string; + }; +} + +export interface InfraCumulativeSumAgg { + cumulative_sum: { + buckets_path: string; + }; +} + +export interface InfraBucketScriptAgg { + bucket_script: { + buckets_path: { [key: string]: string }; + script: { + source: string; + lang: string; + }; + gap_policy: string; + }; +} + +export type InfraAgg = + | InfraBucketScriptAgg + | InfraDerivativeAgg + | InfraAvgAgg + | InfraMaxAgg + | InfraCumulativeSumAgg + | undefined; +export interface InfraNodeMetricAgg { + [key: string]: InfraAgg; +} + +export type InfraNodeMetricFn = (nodeType: InfraNodeType) => InfraNodeMetricAgg | undefined; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/constants.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/constants.ts new file mode 100644 index 0000000000000..75d8464e8efe5 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/constants.ts @@ -0,0 +1,9 @@ +/* + * 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. + */ + +// TODO: Make NODE_REQUEST_PARTITION_SIZE configurable from kibana.yml +export const NODE_REQUEST_PARTITION_SIZE = 75; +export const NODE_REQUEST_PARTITION_FACTOR = 1.2; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/elasticsearch_nodes_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/elasticsearch_nodes_adapter.ts new file mode 100644 index 0000000000000..97459ad0cc04b --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/elasticsearch_nodes_adapter.ts @@ -0,0 +1,64 @@ +/* + * 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 { InfraBackendFrameworkAdapter, InfraFrameworkRequest } from '../framework'; +import { + InfraBucket, + InfraNodeRequestOptions, + InfraNodesAdapter, + InfraNodesAggregations, +} from './adapter_types'; + +import { InfraNode } from '../../../../common/graphql/types'; +import { calculateCardinalityOfNodeField } from './lib/calculate_cardinality'; +import { createPartitionBodies } from './lib/create_partition_bodies'; +import { processNodes } from './lib/process_nodes'; + +export class ElasticsearchNodesAdapter implements InfraNodesAdapter { + private framework: InfraBackendFrameworkAdapter; + constructor(framework: InfraBackendFrameworkAdapter) { + this.framework = framework; + } + + public async getNodes( + req: InfraFrameworkRequest, + options: InfraNodeRequestOptions + ): Promise { + const search = (searchOptions: object) => + this.framework.callWithRequest<{}, Aggregation>(req, 'search', searchOptions); + const msearch = (msearchOptions: object) => + this.framework.callWithRequest<{}, Aggregation>(req, 'msearch', msearchOptions); + + const nodeField = options.sourceConfiguration.fields[options.nodeType]; + const totalNodes = await calculateCardinalityOfNodeField(search, nodeField, options); + + if (totalNodes === 0) { + return []; + } + + const body = createPartitionBodies(totalNodes, options.nodeType, nodeField, options); + + const response = await msearch({ + body, + }); + + if (response && response.responses) { + const nodeBuckets: InfraBucket[] = response.responses.reduce( + (current: InfraBucket[], resp) => { + if (!resp.aggregations) { + return current; + } + const buckets = resp.aggregations.waffle.nodes.buckets; + return current.concat(buckets); + }, + [] + ); + return processNodes(options, nodeBuckets); + } + + return []; + } +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/extract_group_by_and_node_from_path.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/extract_group_by_and_node_from_path.ts new file mode 100644 index 0000000000000..60fa22b4116e4 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/extract_group_by_and_node_from_path.ts @@ -0,0 +1,56 @@ +/* + * 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 { InfraPathInput, InfraPathType } from '../../../../common/graphql/types'; +import { InfraNodeType } from './adapter_types'; + +const getNodeType = (type: InfraPathType): InfraNodeType => { + switch (type) { + case InfraPathType.pods: + return InfraNodeType.pod; + case InfraPathType.containers: + return InfraNodeType.container; + case InfraPathType.hosts: + return InfraNodeType.host; + default: + throw new Error('Invalid InfraPathType'); + } +}; + +const isEntityType = (path: InfraPathInput) => { + if (!path) { + return false; + } + switch (path.type) { + case InfraPathType.containers: + case InfraPathType.hosts: + case InfraPathType.pods: + return true; + default: + return false; + } +}; + +const moreThenOneEntityType = (path: InfraPathInput[]) => { + return path.filter(isEntityType).length > 1; +}; + +export function extractGroupByAndNodeFromPath(path: InfraPathInput[]) { + if (moreThenOneEntityType(path)) { + throw new Error('There can be only one entity type in the path.'); + } + if (path.length > 3) { + throw new Error('The path can only have a maximum of 3 elements.'); + } + const nodePart = path[path.length - 1]; + if (!isEntityType(nodePart)) { + throw new Error( + 'The last element in the path should be either a "hosts", "containers" or "pods" path type.' + ); + } + const nodeType = getNodeType(nodePart.type); + const groupBy = path.slice(0, path.length - 1); + return { groupBy, nodeType }; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/index.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/index.ts new file mode 100644 index 0000000000000..4e09b5d0e9e2d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './adapter_types'; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/calculate_cardinality.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/calculate_cardinality.ts new file mode 100644 index 0000000000000..b1707727ff616 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/calculate_cardinality.ts @@ -0,0 +1,49 @@ +/* + * 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 { InfraDatabaseSearchResponse } from '../../framework'; +import { InfraESQuery, InfraNodeRequestOptions } from '../adapter_types'; +import { createQuery } from './create_query'; + +interface CardinalityOfFieldParams { + size: number; + query: InfraESQuery; + aggs: { + nodeCount: { cardinality: { field: string } }; + }; +} + +interface CardinalityAggregation { + nodeCount: { value: number }; +} + +export async function calculateCardinalityOfNodeField( + search: (options: object) => Promise>, + nodeField: string, + options: InfraNodeRequestOptions +): Promise { + const { sourceConfiguration }: InfraNodeRequestOptions = options; + const body: CardinalityOfFieldParams = { + aggs: { + nodeCount: { + cardinality: { field: nodeField }, + }, + }, + query: createQuery(options), + size: 0, + }; + + const resp = await search({ + body, + index: [sourceConfiguration.logAlias, sourceConfiguration.metricAlias], + }); + + if (resp.aggregations) { + return resp.aggregations.nodeCount.value; + } + + return 0; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/convert_nodes_response_to_groups.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/convert_nodes_response_to_groups.ts new file mode 100644 index 0000000000000..9ee00be17b917 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/convert_nodes_response_to_groups.ts @@ -0,0 +1,20 @@ +/* + * 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 { InfraNode } from '../../../../../common/graphql/types'; +import { InfraBucket, InfraNodeRequestOptions } from '../adapter_types'; +import { extractGroupPaths } from './extract_group_paths'; + +export function convertNodesResponseToGroups( + options: InfraNodeRequestOptions, + nodes: InfraBucket[] +): InfraNode[] { + let results: InfraNode[] = []; + nodes.forEach((node: InfraBucket) => { + const nodesWithPaths = extractGroupPaths(options, node); + results = results.concat(nodesWithPaths); + }); + return results; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_base_path.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_base_path.ts new file mode 100644 index 0000000000000..f8480686cf48e --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_base_path.ts @@ -0,0 +1,13 @@ +/* + * 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 { InfraPathInput } from '../../../../../common/graphql/types'; +export const createBasePath = (groupBy: InfraPathInput[]) => { + const basePath = ['aggs', 'waffle', 'aggs', 'nodes', 'aggs']; + return groupBy.reduce((acc, group, index) => { + return acc.concat([`path_${index}`, `aggs`]); + }, basePath); +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_node_item.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_node_item.ts new file mode 100644 index 0000000000000..a2d072e0897d7 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_node_item.ts @@ -0,0 +1,63 @@ +/* + * 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 { last } from 'lodash'; +import { isNumber } from 'lodash'; +import moment from 'moment'; +import { InfraNode, InfraNodeMetric } from '../../../../../common/graphql/types'; +import { InfraBucket, InfraNodeRequestOptions } from '../adapter_types'; +import { getBucketSizeInSeconds } from './get_bucket_size_in_seconds'; + +// TODO: Break these function into seperate files and expand beyond just documnet count +// In the code below it looks like overkill to split these three functions out +// but in reality the create metrics functions will be different per node type. + +const findLastFullBucket = ( + bucket: InfraBucket, + bucketSize: number, + options: InfraNodeRequestOptions +): InfraBucket | undefined => { + const { buckets } = bucket.timeseries; + const to = moment.utc(options.timerange.to); + return buckets.reduce((current, item) => { + const itemKey = isNumber(item.key) ? item.key : parseInt(item.key, 10); + const date = moment.utc(itemKey + bucketSize * 1000); + if (!date.isAfter(to) && item.doc_count > 0) { + return item; + } + return current; + }, last(buckets)); +}; + +function createNodeMetrics( + options: InfraNodeRequestOptions, + node: InfraBucket, + bucket: InfraBucket +): InfraNodeMetric { + const { timerange, metric } = options; + const bucketSize = getBucketSizeInSeconds(timerange.interval); + const lastBucket = findLastFullBucket(bucket, bucketSize, options); + if (!lastBucket) { + throw new Error('Date histogram returned an empty set of buckets.'); + } + const metricObj = lastBucket[metric.type]; + const value = (metricObj && (metricObj.normalized_value || metricObj.value)) || 0; + return { + name: metric.type, + value, + }; +} + +export function createNodeItem( + options: InfraNodeRequestOptions, + node: InfraBucket, + bucket: InfraBucket +): InfraNode { + return { + metric: createNodeMetrics(options, node, bucket), + path: [{ value: node.key }], + } as InfraNode; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_node_request_body.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_node_request_body.ts new file mode 100644 index 0000000000000..733e260c5e874 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_node_request_body.ts @@ -0,0 +1,15 @@ +/* + * 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 { InfraESSearchBody, InfraProcesorRequestOptions } from '../adapter_types'; +import { createLastNProcessor } from '../processors/last'; + +export function createNodeRequestBody(options: InfraProcesorRequestOptions): InfraESSearchBody { + const requestProcessor = createLastNProcessor(options); + const doc = {}; + const body = requestProcessor(doc); + return body; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_partition_bodies.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_partition_bodies.ts new file mode 100644 index 0000000000000..7c5480a4d6adb --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_partition_bodies.ts @@ -0,0 +1,49 @@ +/* + * 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 { times } from 'lodash'; + +import { InfraMetricType } from '../../../../../common/graphql/types'; +import { + InfraESMSearchBody, + InfraNodeRequestOptions, + InfraNodeType, + InfraProcesorRequestOptions, +} from '../adapter_types'; +import { NODE_REQUEST_PARTITION_SIZE } from '../constants'; +import { createNodeRequestBody } from './create_node_request_body'; + +export function createPartitionBodies( + totalNodes: number, + nodeType: InfraNodeType, + nodeField: string, + nodeOptions: InfraNodeRequestOptions +): InfraESMSearchBody[] { + const { sourceConfiguration }: InfraNodeRequestOptions = nodeOptions; + const bodies: InfraESMSearchBody[] = []; + const numberOfPartitions: number = Math.ceil(totalNodes / NODE_REQUEST_PARTITION_SIZE); + const indices = + nodeOptions.metric.type === InfraMetricType.logRate + ? [sourceConfiguration.logAlias] + : [sourceConfiguration.metricAlias]; + times( + numberOfPartitions, + (partitionId: number): void => { + const processorOptions: InfraProcesorRequestOptions = { + nodeType, + nodeField, + nodeOptions, + numberOfPartitions, + partitionId, + }; + bodies.push({ + index: indices, + }); + bodies.push(createNodeRequestBody(processorOptions)); + } + ); + return bodies; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_query.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_query.ts new file mode 100644 index 0000000000000..0c56172c4c4d0 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/create_query.ts @@ -0,0 +1,77 @@ +/* + * 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 { InfraPathFilterInput, InfraPathInput } from '../../../../../common/graphql/types'; + +import { + InfraESBoolQuery, + InfraESQuery, + InfraESRangeQuery, + InfraNodeRequestOptions, +} from '../adapter_types'; + +import { isGroupByFilters, isGroupByTerms } from './type_guards'; + +export function createQuery(options: InfraNodeRequestOptions): InfraESQuery { + const { timerange, sourceConfiguration, groupBy, filterQuery }: InfraNodeRequestOptions = options; + const mustClause: InfraESQuery[] = []; + const shouldClause: InfraESQuery[] = []; + const filterClause: InfraESQuery[] = []; + + const rangeFilter: InfraESRangeQuery = { + range: { + [sourceConfiguration.fields.timestamp]: { + format: 'epoch_millis', + gte: timerange.from, + lte: timerange.to, + }, + }, + }; + + filterClause.push(rangeFilter); + + if (groupBy) { + groupBy.forEach( + (group: InfraPathInput): void => { + if (isGroupByTerms(group) && group.field) { + mustClause.push({ + exists: { + field: group.field, + }, + }); + } + if (isGroupByFilters(group) && group.filters) { + group.filters!.forEach( + (groupFilter: InfraPathFilterInput | null): void => { + if (groupFilter != null && groupFilter.query) { + shouldClause.push({ + query_string: { + analyze_wildcard: true, + query: groupFilter.query, + }, + }); + } + } + ); + } + } + ); + } + + if (filterQuery) { + mustClause.push(filterQuery); + } + + const query: InfraESBoolQuery = { + bool: { + filter: filterClause, + must: mustClause, + should: shouldClause, + }, + }; + + return query; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/extract_group_paths.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/extract_group_paths.ts new file mode 100644 index 0000000000000..016a109e6e5a2 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/extract_group_paths.ts @@ -0,0 +1,52 @@ +/* + * 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 { InfraNode, InfraPathInput } from '../../../../../common/graphql/types'; +import { InfraBucket, InfraNodeRequestOptions } from '../adapter_types'; +import { createNodeItem } from './create_node_item'; + +export interface InfraPathItem { + path: string[]; + nodeItem: InfraNode; +} + +export function extractGroupPaths( + options: InfraNodeRequestOptions, + node: InfraBucket +): InfraNode[] { + const { groupBy } = options; + const secondGroup: InfraPathInput = groupBy[1]; + const paths: InfraNode[] = node.path_0.buckets.reduce( + (acc: InfraNode[], bucket: InfraBucket, index: number): InfraNode[] => { + const key: string = (bucket.key || index).toString(); + if (secondGroup) { + return acc.concat( + bucket.path_1.buckets.map( + (b: InfraBucket): InfraNode => { + const innerNode = createNodeItem(options, node, b); + const nodePath = [ + { value: bucket.key.toString() }, + { value: b.key.toString() }, + ].concat(innerNode.path); + return { + ...innerNode, + path: nodePath, + }; + } + ) + ); + } + const nodeItem = createNodeItem(options, node, bucket); + const path = [{ value: key }].concat(nodeItem.path); + return acc.concat({ + ...nodeItem, + path, + }); + }, + [] + ); + return paths; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/get_bucket_size_in_seconds.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/get_bucket_size_in_seconds.ts new file mode 100644 index 0000000000000..667f2d2f35745 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/get_bucket_size_in_seconds.ts @@ -0,0 +1,31 @@ +/* + * 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. + */ + +const intervalUnits = ['y', 'M', 'w', 'd', 'h', 'm', 's', 'ms']; +const INTERVAL_STRING_RE = new RegExp('^([0-9\\.]*)\\s*(' + intervalUnits.join('|') + ')$'); + +interface UnitsToSeconds { + [unit: string]: number; +} + +const units: UnitsToSeconds = { + ms: 0.001, + s: 1, + m: 60, + h: 3600, + d: 86400, + w: 86400 * 7, + M: 86400 * 30, + y: 86400 * 356, +}; + +export const getBucketSizeInSeconds = (interval: string): number => { + const matches = interval.match(INTERVAL_STRING_RE); + if (matches) { + return parseFloat(matches[1]) * units[matches[2]]; + } + throw new Error('Invalid interval string format.'); +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/process_nodes.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/process_nodes.ts new file mode 100644 index 0000000000000..ef55628cb744d --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/process_nodes.ts @@ -0,0 +1,26 @@ +/* + * 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 { InfraNode } from '../../../../../common/graphql/types'; +import { InfraBucket, InfraNodeRequestOptions } from '../adapter_types'; +import { convertNodesResponseToGroups } from './convert_nodes_response_to_groups'; +import { createNodeItem } from './create_node_item'; + +export function processNodes(options: InfraNodeRequestOptions, nodes: any[]): InfraNode[] { + if (options.groupBy.length === 0) { + // If there are NO group by options then we need to return a + // nodes only response + const nodeResults: InfraNode[] = nodes.map( + (node: InfraBucket): InfraNode => { + return createNodeItem(options, node, node); + } + ); + return nodeResults; + } + + // Return a grouped response + return convertNodesResponseToGroups(options, nodes); +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/lib/type_guards.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/type_guards.ts new file mode 100644 index 0000000000000..14423afbe0ff3 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/lib/type_guards.ts @@ -0,0 +1,16 @@ +/* + * 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 { InfraPathInput, InfraPathType } from '../../../../../common/graphql/types'; +import { InfraGroupByFilters, InfraGroupByTerms } from '../adapter_types'; + +export function isGroupByFilters(value: InfraPathInput): value is InfraGroupByFilters { + return value.type === InfraPathType.filters; +} + +export function isGroupByTerms(value: InfraPathInput): value is InfraGroupByTerms { + return value.type === InfraPathType.terms; +} diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/count.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/count.ts new file mode 100644 index 0000000000000..3e64c50887956 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/count.ts @@ -0,0 +1,22 @@ +/* + * 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 { InfraNodeMetricFn, InfraNodeType } from '../adapter_types'; + +export const count: InfraNodeMetricFn = (nodeType: InfraNodeType) => { + return { + count: { + bucket_script: { + buckets_path: { count: '_count' }, + script: { + source: 'count * 1', + lang: 'expression', + }, + gap_policy: 'skip', + }, + }, + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/cpu.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/cpu.ts new file mode 100644 index 0000000000000..105deb28552ff --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/cpu.ts @@ -0,0 +1,58 @@ +/* + * 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 { InfraNodeMetricFn, InfraNodeType } from '../adapter_types'; + +const FIELDS = { + [InfraNodeType.host]: 'system.cpu.user.pct', + [InfraNodeType.pod]: 'kubernetes.pod.cpu.usage.node.pct', + [InfraNodeType.container]: 'docker.cpu.total.pct', +}; + +export const cpu: InfraNodeMetricFn = (nodeType: InfraNodeType) => { + if (nodeType === InfraNodeType.host) { + return { + cpu_user: { + avg: { + field: 'system.cpu.user.pct', + }, + }, + cpu_system: { + avg: { + field: 'system.cpu.system.pct', + }, + }, + cpu_cores: { + max: { + field: 'system.cpu.cores', + }, + }, + cpu: { + bucket_script: { + buckets_path: { + user: 'cpu_user', + system: 'cpu_system', + cores: 'cpu_cores', + }, + script: { + source: '(params.user + params.system) / params.cores', + lang: 'painless', + }, + gap_policy: 'skip', + }, + }, + }; + } + + const field = FIELDS[nodeType]; + return { + cpu: { + avg: { + field, + }, + }, + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/index.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/index.ts new file mode 100644 index 0000000000000..da520d1d64941 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/index.ts @@ -0,0 +1,24 @@ +/* + * 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 { InfraMetricType } from '../../../../../common/graphql/types'; +import { count } from './count'; +import { cpu } from './cpu'; +import { load } from './load'; +import { logRate } from './log_rate'; +import { memory } from './memory'; +import { rx } from './rx'; +import { tx } from './tx'; + +export const metricAggregationCreators = { + [InfraMetricType.count]: count, + [InfraMetricType.cpu]: cpu, + [InfraMetricType.memory]: memory, + [InfraMetricType.rx]: rx, + [InfraMetricType.tx]: tx, + [InfraMetricType.load]: load, + [InfraMetricType.logRate]: logRate, +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/load.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/load.ts new file mode 100644 index 0000000000000..6b68fd5931b95 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/load.ts @@ -0,0 +1,20 @@ +/* + * 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 { InfraNodeMetricFn, InfraNodeType } from '../adapter_types'; + +const FIELDS = { + [InfraNodeType.host]: 'system.load.5', + [InfraNodeType.pod]: '', + [InfraNodeType.container]: '', +}; + +export const load: InfraNodeMetricFn = (nodeType: InfraNodeType) => { + const field = FIELDS[nodeType]; + if (field) { + return { load: { avg: { field } } }; + } +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/log_rate.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/log_rate.ts new file mode 100644 index 0000000000000..d447997e47734 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/log_rate.ts @@ -0,0 +1,34 @@ +/* + * 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 { InfraNodeMetricFn, InfraNodeType } from '../adapter_types'; + +export const logRate: InfraNodeMetricFn = (nodeType: InfraNodeType) => { + return { + count: { + bucket_script: { + buckets_path: { count: '_count' }, + script: { + source: 'count * 1', + lang: 'expression', + }, + gap_policy: 'skip', + }, + }, + cumsum: { + cumulative_sum: { + buckets_path: 'count', + }, + }, + logRate: { + derivative: { + buckets_path: 'cumsum', + gap_policy: 'skip', + unit: '1s', + }, + }, + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/memory.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/memory.ts new file mode 100644 index 0000000000000..175a9c7e96920 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/memory.ts @@ -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 { InfraNodeMetricFn, InfraNodeType } from '../adapter_types'; + +const FIELDS = { + [InfraNodeType.host]: 'system.memory.actual.used.pct', + [InfraNodeType.pod]: 'kubernetes.pod.memory.usage.node.pct', + [InfraNodeType.container]: 'docker.memory.usage.pct', +}; + +export const memory: InfraNodeMetricFn = (nodeType: InfraNodeType) => { + const field = FIELDS[nodeType]; + return { memory: { avg: { field } } }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/rate.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/rate.ts new file mode 100644 index 0000000000000..9a315a9145992 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/rate.ts @@ -0,0 +1,41 @@ +/* + * 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 { InfraNodeMetricFn, InfraNodeType } from '../adapter_types'; + +interface Fields { + [InfraNodeType.container]: string; + [InfraNodeType.pod]: string; + [InfraNodeType.host]: string; +} + +export const rate = (id: string, fields: Fields): InfraNodeMetricFn => ( + nodeType: InfraNodeType +) => { + const field = fields[nodeType]; + if (field) { + return { + [`${id}_max`]: { max: { field } }, + [`${id}_deriv`]: { + derivative: { + buckets_path: `${id}_max`, + gap_policy: 'skip', + unit: '1s', + }, + }, + [id]: { + bucket_script: { + buckets_path: { value: `${id}_deriv[normalized_value]` }, + script: { + source: 'params.value > 0.0 ? params.value : 0.0', + lang: 'painless', + }, + gap_policy: 'skip', + }, + }, + }; + } +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/rx.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/rx.ts new file mode 100644 index 0000000000000..ab797a7b97a1b --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/rx.ts @@ -0,0 +1,15 @@ +/* + * 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 { InfraNodeType } from '../adapter_types'; +import { rate } from './rate'; + +const FIELDS = { + [InfraNodeType.host]: 'system.network.in.bytes', + [InfraNodeType.pod]: 'kubernetes.pod.network.rx.bytes', + [InfraNodeType.container]: 'docker.network.in.bytes', +}; + +export const rx = rate('rx', FIELDS); diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/tx.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/tx.ts new file mode 100644 index 0000000000000..32ea4d3e9d303 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/metric_aggregation_creators/tx.ts @@ -0,0 +1,16 @@ +/* + * 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 { InfraNodeType } from '../adapter_types'; +import { rate } from './rate'; + +const FIELDS = { + [InfraNodeType.host]: 'system.network.out.bytes', + [InfraNodeType.pod]: 'kubernetes.pod.network.tx.bytes', + [InfraNodeType.container]: 'docker.network.out.bytes', +}; + +export const tx = rate('tx', FIELDS); diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/field_filter_processor.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/field_filter_processor.ts new file mode 100644 index 0000000000000..0cd448d58b257 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/field_filter_processor.ts @@ -0,0 +1,24 @@ +/* + * 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 { cloneDeep, set } from 'lodash'; + +import { InfraESSearchBody, InfraProcesorRequestOptions } from '../../adapter_types'; + +export const fieldsFilterProcessor = (options: InfraProcesorRequestOptions) => { + return (doc: InfraESSearchBody) => { + const result = cloneDeep(doc); + /* + TODO: Need to add the filter logic to find all the fields the user is requesting + and then add an exists filter for each. That way we are only looking at documents + that have the correct fields. This is because we are having to run a partioned + terms agg at the top level. Normally we wouldn't need to do this because they would + get filter out natually. + */ + set(result, 'aggs.waffle.filter.match_all', {}); + return result; + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/group_by_processor.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/group_by_processor.ts new file mode 100644 index 0000000000000..0bd07cbeeb66e --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/group_by_processor.ts @@ -0,0 +1,58 @@ +/* + * 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 { cloneDeep, set } from 'lodash'; + +import { InfraPathFilterInput, InfraPathInput } from '../../../../../../common/graphql/types'; +import { + InfraESQueryStringQuery, + InfraESSearchBody, + InfraProcesorRequestOptions, +} from '../../adapter_types'; +import { isGroupByFilters, isGroupByTerms } from '../../lib/type_guards'; + +export const groupByProcessor = (options: InfraProcesorRequestOptions) => { + return (doc: InfraESSearchBody) => { + const result = cloneDeep(doc); + const { groupBy } = options.nodeOptions; + let aggs = {}; + set(result, 'aggs.waffle.aggs.nodes.aggs', aggs); + groupBy.forEach((grouping: InfraPathInput, index: number) => { + if (isGroupByTerms(grouping)) { + const termsAgg = { + aggs: {}, + terms: { + field: grouping.field, + size: 10, + }, + }; + set(aggs, `path_${index}`, termsAgg); + aggs = termsAgg.aggs; + } + + if (grouping && isGroupByFilters(grouping)) { + const filtersAgg = { + aggs: {}, + filters: { + filters: grouping.filters!.map( + (filter: InfraPathFilterInput): InfraESQueryStringQuery => { + return { + query_string: { + analyze_wildcard: true, + query: (filter && filter.query) || '*', + }, + }; + } + ), + }, + }; + set(aggs, `${grouping.id}`, filtersAgg); + aggs = filtersAgg.aggs; + } + }); + return result; + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/nodes_processor.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/nodes_processor.ts new file mode 100644 index 0000000000000..b161e4b04b50e --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/nodes_processor.ts @@ -0,0 +1,40 @@ +/* + * 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 { cloneDeep, set } from 'lodash'; + +import { InfraESSearchBody, InfraNodeType, InfraProcesorRequestOptions } from '../../adapter_types'; +import { NODE_REQUEST_PARTITION_FACTOR, NODE_REQUEST_PARTITION_SIZE } from '../../constants'; + +const nodeTypeToField = (options: InfraProcesorRequestOptions): string => { + const { fields } = options.nodeOptions.sourceConfiguration; + switch (options.nodeType) { + case InfraNodeType.pod: + return fields.pod; + case InfraNodeType.container: + return fields.container; + default: + return fields.host; + } +}; + +export const nodesProcessor = (options: InfraProcesorRequestOptions) => { + return (doc: InfraESSearchBody) => { + const result = cloneDeep(doc); + const field = nodeTypeToField(options); + + set(result, 'aggs.waffle.aggs.nodes.terms', { + field, + include: { + num_partitions: options.numberOfPartitions, + partition: options.partitionId, + }, + order: { _key: 'asc' }, + size: NODE_REQUEST_PARTITION_SIZE * NODE_REQUEST_PARTITION_FACTOR, + }); + return result; + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/query_procssor.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/query_procssor.ts new file mode 100644 index 0000000000000..cc35e93c73aa2 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/common/query_procssor.ts @@ -0,0 +1,19 @@ +/* + * 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 { cloneDeep, set } from 'lodash'; + +import { InfraESSearchBody, InfraProcesorRequestOptions } from '../../adapter_types'; +import { createQuery } from '../../lib/create_query'; + +export const queryProcessor = (options: InfraProcesorRequestOptions) => { + return (doc: InfraESSearchBody) => { + const result = cloneDeep(doc); + set(result, 'size', 0); + set(result, 'query', createQuery(options.nodeOptions)); + return result; + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/date_histogram_processor.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/date_histogram_processor.ts new file mode 100644 index 0000000000000..31ef88ed3229c --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/date_histogram_processor.ts @@ -0,0 +1,49 @@ +/* + * 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 { cloneDeep, set } from 'lodash'; +import moment from 'moment'; +import { InfraESSearchBody, InfraProcesorRequestOptions } from '../../adapter_types'; +import { createBasePath } from '../../lib/create_base_path'; +import { getBucketSizeInSeconds } from '../../lib/get_bucket_size_in_seconds'; + +export function getBucketKey(value: number, interval: number, offset = 0) { + return Math.floor((value - offset) / interval) * interval + offset; +} + +export const calculateOffsetInSeconds = (end: number, interval: number) => { + const bucketKey = getBucketKey(end, interval); + return Math.floor(end - interval - bucketKey); +}; + +export const dateHistogramProcessor = (options: InfraProcesorRequestOptions) => { + return (doc: InfraESSearchBody) => { + const result = cloneDeep(doc); + const { timerange, sourceConfiguration, groupBy } = options.nodeOptions; + const bucketSizeInSeconds = getBucketSizeInSeconds(timerange.interval); + const boundsMin = moment + .utc(timerange.from) + .subtract(5 * bucketSizeInSeconds, 's') + .valueOf(); + const path = createBasePath(groupBy).concat('timeseries'); + const bucketOffset = calculateOffsetInSeconds(timerange.from, bucketSizeInSeconds); + const offset = `${Math.floor(bucketOffset)}s`; + set(result, path, { + date_histogram: { + field: sourceConfiguration.fields.timestamp, + interval: timerange.interval, + min_doc_count: 0, + offset, + extended_bounds: { + min: boundsMin, + max: timerange.to, + }, + }, + aggs: {}, + }); + return result; + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/index.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/index.ts new file mode 100644 index 0000000000000..28fdb432ebe8e --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/index.ts @@ -0,0 +1,31 @@ +/* + * 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 { pipe } from 'lodash/fp'; +import { + InfraESSearchBody, + InfraProcesorRequestOptions, + InfraProcessorTransformer, +} from '../../adapter_types'; +import { fieldsFilterProcessor } from '../common/field_filter_processor'; +import { groupByProcessor } from '../common/group_by_processor'; +import { nodesProcessor } from '../common/nodes_processor'; +import { queryProcessor } from '../common/query_procssor'; +import { dateHistogramProcessor } from './date_histogram_processor'; +import { metricBucketsProcessor } from './metric_buckets_processor'; + +export const createLastNProcessor = ( + options: InfraProcesorRequestOptions +): InfraProcessorTransformer => { + return pipe( + fieldsFilterProcessor(options), + nodesProcessor(options), + queryProcessor(options), + groupByProcessor(options), + dateHistogramProcessor(options), + metricBucketsProcessor(options) + ); +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/metric_buckets_processor.ts b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/metric_buckets_processor.ts new file mode 100644 index 0000000000000..57e8cf6012617 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/nodes/processors/last/metric_buckets_processor.ts @@ -0,0 +1,22 @@ +/* + * 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 { cloneDeep, set } from 'lodash'; +import { InfraESSearchBody, InfraProcesorRequestOptions } from '../../adapter_types'; +import { createBasePath } from '../../lib/create_base_path'; +import { metricAggregationCreators } from '../../metric_aggregation_creators'; + +export const metricBucketsProcessor = (options: InfraProcesorRequestOptions) => { + return (doc: InfraESSearchBody) => { + const result = cloneDeep(doc); + const { metric, groupBy } = options.nodeOptions; + const path = createBasePath(groupBy).concat(['timeseries', 'aggs']); + const aggregationCreator = metricAggregationCreators[metric.type]; + const aggs = aggregationCreator(options.nodeType); + set(result, path, aggs); + return result; + }; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/source_status/elasticsearch_source_status_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/source_status/elasticsearch_source_status_adapter.ts new file mode 100644 index 0000000000000..5b5af97880659 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/source_status/elasticsearch_source_status_adapter.ts @@ -0,0 +1,57 @@ +/* + * 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 { InfraSourceStatusAdapter } from '../../source_status'; +import { + InfraBackendFrameworkAdapter, + InfraDatabaseGetIndicesResponse, + InfraFrameworkRequest, +} from '../framework'; + +export class InfraElasticsearchSourceStatusAdapter implements InfraSourceStatusAdapter { + constructor(private readonly framework: InfraBackendFrameworkAdapter) {} + + public async getIndexNames(request: InfraFrameworkRequest, aliasName: string) { + const indexMaps = await Promise.all([ + this.framework + .callWithRequest(request, 'indices.getAlias', { + name: aliasName, + filterPath: '*.settings.index.uuid', // to keep the response size as small as possible + }) + .catch(withDefaultIfNotFound({})), + this.framework + .callWithRequest(request, 'indices.get', { + index: aliasName, + filterPath: '*.settings.index.uuid', // to keep the response size as small as possible + }) + .catch(withDefaultIfNotFound({})), + ]); + + return indexMaps.reduce( + (indexNames, indexMap) => [...indexNames, ...Object.keys(indexMap)], + [] as string[] + ); + } + + public async hasAlias(request: InfraFrameworkRequest, aliasName: string) { + return await this.framework.callWithRequest(request, 'indices.existsAlias', { + name: aliasName, + }); + } + + public async hasIndices(request: InfraFrameworkRequest, indexNames: string) { + return (await this.getIndexNames(request, indexNames)).length > 0; + } +} + +const withDefaultIfNotFound = (defaultValue: DefaultValue) => ( + error: any +): DefaultValue => { + if (error && error.status === 404) { + return defaultValue; + } + throw error; +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/source_status/index.ts b/x-pack/plugins/infra/server/lib/adapters/source_status/index.ts new file mode 100644 index 0000000000000..f5adfe190f805 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/source_status/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { InfraElasticsearchSourceStatusAdapter } from './elasticsearch_source_status_adapter'; diff --git a/x-pack/plugins/infra/server/lib/adapters/sources/adapter_types.ts b/x-pack/plugins/infra/server/lib/adapters/sources/adapter_types.ts new file mode 100644 index 0000000000000..76f17f99acc71 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/sources/adapter_types.ts @@ -0,0 +1,21 @@ +/* + * 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 { InfraSourceConfiguration } from '../../sources'; + +export type PartialInfraSourceConfigurations = { + default?: PartialInfraDefaultSourceConfiguration; +} & { + [sourceId: string]: PartialInfraSourceConfiguration; +}; + +export type PartialInfraDefaultSourceConfiguration = { + fields?: Partial; +} & Partial>>; + +export type PartialInfraSourceConfiguration = { + fields?: Partial; +} & Pick>; diff --git a/x-pack/plugins/infra/server/lib/adapters/sources/configuration_sources_adapter.test.ts b/x-pack/plugins/infra/server/lib/adapters/sources/configuration_sources_adapter.test.ts new file mode 100644 index 0000000000000..c5ba6aed8b591 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/sources/configuration_sources_adapter.test.ts @@ -0,0 +1,111 @@ +/* + * 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 { InfraInmemoryConfigurationAdapter } from '../configuration/inmemory_configuration_adapter'; +import { PartialInfraSourceConfiguration } from './adapter_types'; +import { InfraConfigurationSourcesAdapter } from './configuration_sources_adapter'; + +describe('the InfraConfigurationSourcesAdapter', () => { + test('adds the default source when no sources are configured', async () => { + const sourcesAdapter = new InfraConfigurationSourcesAdapter( + new InfraInmemoryConfigurationAdapter({ sources: {} }) + ); + + expect(await sourcesAdapter.getAll()).toMatchObject({ + default: { + metricAlias: expect.any(String), + logAlias: expect.any(String), + fields: { + container: expect.any(String), + host: expect.any(String), + message: expect.arrayContaining([expect.any(String)]), + pod: expect.any(String), + tiebreaker: expect.any(String), + timestamp: expect.any(String), + }, + }, + }); + }); + + test('adds missing aliases to default source when they are missing from the configuration', async () => { + const sourcesAdapter = new InfraConfigurationSourcesAdapter( + new InfraInmemoryConfigurationAdapter({ + sources: { + default: {} as PartialInfraSourceConfiguration, + }, + }) + ); + + expect(await sourcesAdapter.getAll()).toMatchObject({ + default: { + metricAlias: expect.any(String), + logAlias: expect.any(String), + }, + }); + }); + + test('adds missing fields to default source when they are missing from the configuration', async () => { + const sourcesAdapter = new InfraConfigurationSourcesAdapter( + new InfraInmemoryConfigurationAdapter({ + sources: { + default: { + metricAlias: 'METRIC_ALIAS', + logAlias: 'LOG_ALIAS', + fields: { + container: 'DIFFERENT_CONTAINER_FIELD', + }, + } as PartialInfraSourceConfiguration, + }, + }) + ); + + expect(await sourcesAdapter.getAll()).toMatchObject({ + default: { + metricAlias: 'METRIC_ALIAS', + logAlias: 'LOG_ALIAS', + fields: { + container: 'DIFFERENT_CONTAINER_FIELD', + host: expect.any(String), + message: expect.arrayContaining([expect.any(String)]), + pod: expect.any(String), + tiebreaker: expect.any(String), + timestamp: expect.any(String), + }, + }, + }); + }); + + test('adds missing fields to non-default sources when they are missing from the configuration', async () => { + const sourcesAdapter = new InfraConfigurationSourcesAdapter( + new InfraInmemoryConfigurationAdapter({ + sources: { + sourceOne: { + metricAlias: 'METRIC_ALIAS', + logAlias: 'LOG_ALIAS', + fields: { + container: 'DIFFERENT_CONTAINER_FIELD', + }, + }, + }, + }) + ); + + expect(await sourcesAdapter.getAll()).toMatchObject({ + sourceOne: { + metricAlias: 'METRIC_ALIAS', + logAlias: 'LOG_ALIAS', + fields: { + container: 'DIFFERENT_CONTAINER_FIELD', + host: expect.any(String), + message: expect.arrayContaining([expect.any(String)]), + pod: expect.any(String), + tiebreaker: expect.any(String), + timestamp: expect.any(String), + }, + }, + }); + }); +}); diff --git a/x-pack/plugins/infra/server/lib/adapters/sources/configuration_sources_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/sources/configuration_sources_adapter.ts new file mode 100644 index 0000000000000..4b8956b5f9985 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/sources/configuration_sources_adapter.ts @@ -0,0 +1,64 @@ +/* + * 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 { InfraSourceConfigurations, InfraSourcesAdapter } from '../../sources'; +import { InfraConfigurationAdapter } from '../configuration'; +import { PartialInfraSourceConfigurations } from './adapter_types'; + +interface ConfigurationWithSources { + sources?: PartialInfraSourceConfigurations; +} + +export class InfraConfigurationSourcesAdapter implements InfraSourcesAdapter { + private readonly configuration: InfraConfigurationAdapter; + + constructor(configuration: InfraConfigurationAdapter) { + this.configuration = configuration; + } + + public async getAll() { + const sourceConfigurations = (await this.configuration.get()).sources || { + default: DEFAULT_SOURCE, + }; + const sourceConfigurationsWithDefault = { + ...sourceConfigurations, + default: { + ...DEFAULT_SOURCE, + ...(sourceConfigurations.default || {}), + }, + } as PartialInfraSourceConfigurations; + + return Object.entries(sourceConfigurationsWithDefault).reduce( + (result, [sourceId, sourceConfiguration]) => + ({ + ...result, + [sourceId]: { + ...sourceConfiguration, + fields: { + ...DEFAULT_FIELDS, + ...(sourceConfiguration.fields || {}), + }, + }, + } as InfraSourceConfigurations), + {} + ); + } +} + +const DEFAULT_FIELDS = { + container: 'docker.container.name', + host: 'beat.hostname', + message: ['message', '@message'], + pod: 'kubernetes.pod.name', + tiebreaker: '_doc', + timestamp: '@timestamp', +}; + +const DEFAULT_SOURCE = { + metricAlias: 'metricbeat-*', + logAlias: 'filebeat-*', + fields: DEFAULT_FIELDS, +}; diff --git a/x-pack/plugins/infra/server/lib/adapters/sources/index.ts b/x-pack/plugins/infra/server/lib/adapters/sources/index.ts new file mode 100644 index 0000000000000..dcd9262d7ebd2 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/adapters/sources/index.ts @@ -0,0 +1,7 @@ +/* + * 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 { InfraConfigurationSourcesAdapter } from './configuration_sources_adapter'; diff --git a/x-pack/plugins/infra/server/lib/compose/kibana.ts b/x-pack/plugins/infra/server/lib/compose/kibana.ts new file mode 100644 index 0000000000000..23c5c3a45bd23 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/compose/kibana.ts @@ -0,0 +1,58 @@ +/* + * 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 { Server } from 'hapi'; + +import { ElasticsearchCapabilitiesAdapter } from '../adapters/capabilities/elasticsearch_capabilities_adapter'; +import { InfraKibanaConfigurationAdapter } from '../adapters/configuration/kibana_configuration_adapter'; +import { FrameworkFieldsAdapter } from '../adapters/fields/framework_fields_adapter'; +import { InfraKibanaBackendFrameworkAdapter } from '../adapters/framework/kibana_framework_adapter'; +import { InfraKibanaLogEntriesAdapter } from '../adapters/log_entries/kibana_log_entries_adapter'; +import { KibanaMetricsAdapter } from '../adapters/metrics/kibana_metrics_adapter'; +import { ElasticsearchNodesAdapter } from '../adapters/nodes/elasticsearch_nodes_adapter'; +import { InfraElasticsearchSourceStatusAdapter } from '../adapters/source_status'; +import { InfraConfigurationSourcesAdapter } from '../adapters/sources/configuration_sources_adapter'; +import { InfraCapabilitiesDomain } from '../domains/capabilities_domain'; +import { InfraFieldsDomain } from '../domains/fields_domain'; +import { InfraLogEntriesDomain } from '../domains/log_entries_domain'; +import { InfraMetricsDomain } from '../domains/metrics_domain'; +import { InfraNodesDomain } from '../domains/nodes_domain'; +import { InfraBackendLibs, InfraConfiguration, InfraDomainLibs } from '../infra_types'; +import { InfraSourceStatus } from '../source_status'; +import { InfraSources } from '../sources'; + +export function compose(server: Server): InfraBackendLibs { + const configuration = new InfraKibanaConfigurationAdapter(server); + const framework = new InfraKibanaBackendFrameworkAdapter(server); + const sources = new InfraSources(new InfraConfigurationSourcesAdapter(configuration)); + const sourceStatus = new InfraSourceStatus(new InfraElasticsearchSourceStatusAdapter(framework), { + sources, + }); + + const domainLibs: InfraDomainLibs = { + capabilities: new InfraCapabilitiesDomain(new ElasticsearchCapabilitiesAdapter(framework), { + sources, + }), + fields: new InfraFieldsDomain(new FrameworkFieldsAdapter(framework), { + sources, + }), + logEntries: new InfraLogEntriesDomain(new InfraKibanaLogEntriesAdapter(framework), { + sources, + }), + nodes: new InfraNodesDomain(new ElasticsearchNodesAdapter(framework)), + metrics: new InfraMetricsDomain(new KibanaMetricsAdapter(framework)), + }; + + const libs: InfraBackendLibs = { + configuration, + framework, + sources, + sourceStatus, + ...domainLibs, + }; + + return libs; +} diff --git a/x-pack/plugins/infra/server/lib/domains/capabilities_domain/capabilities_domain.ts b/x-pack/plugins/infra/server/lib/domains/capabilities_domain/capabilities_domain.ts new file mode 100644 index 0000000000000..2b3f73a9eccf7 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/capabilities_domain/capabilities_domain.ts @@ -0,0 +1,69 @@ +/* + * 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 { InfraCapabilitiesAdapter } from '../../adapters/capabilities'; +import { InfraCapabilityAggregationBucket, InfraFrameworkRequest } from '../../adapters/framework'; +import { InfraSources } from '../../sources'; + +export class InfraCapabilitiesDomain { + constructor( + private readonly adapter: InfraCapabilitiesAdapter, + private readonly libs: { sources: InfraSources } + ) {} + + public async getCapabilities( + req: InfraFrameworkRequest, + sourceId: string, + nodeName: string, + nodeType: string + ) { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const metricsPromise = this.adapter.getMetricCapabilities( + req, + sourceConfiguration, + nodeName, + nodeType + ); + const logsPromise = this.adapter.getLogCapabilities( + req, + sourceConfiguration, + nodeName, + nodeType + ); + + const metrics = await metricsPromise; + const logs = await logsPromise; + + const metricCapabilities = pickCapabilities(metrics).map(metricCapability => { + return { name: metricCapability, source: 'metrics' }; + }); + + const logCapabilities = pickCapabilities(logs).map(logCapability => { + return { name: logCapability, source: 'logs' }; + }); + + return metricCapabilities.concat(logCapabilities); + } +} + +const pickCapabilities = (buckets: InfraCapabilityAggregationBucket[]): string[] => { + if (buckets) { + const capabilities = buckets + .map(module => { + if (module.names) { + return module.names.buckets.map(name => { + return `${module.key}.${name.key}`; + }); + } else { + return []; + } + }) + .reduce((a: string[], b: string[]) => a.concat(b), []); + return capabilities; + } else { + return []; + } +}; diff --git a/x-pack/plugins/infra/server/lib/domains/capabilities_domain/index.ts b/x-pack/plugins/infra/server/lib/domains/capabilities_domain/index.ts new file mode 100644 index 0000000000000..525e60a00f786 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/capabilities_domain/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './capabilities_domain'; diff --git a/x-pack/plugins/infra/server/lib/domains/fields_domain.ts b/x-pack/plugins/infra/server/lib/domains/fields_domain.ts new file mode 100644 index 0000000000000..2b6f29e0d6e20 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/fields_domain.ts @@ -0,0 +1,34 @@ +/* + * 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 { InfraIndexField, InfraIndexType } from '../../../common/graphql/types'; +import { FieldsAdapter } from '../adapters/fields'; +import { InfraFrameworkRequest } from '../adapters/framework'; +import { InfraSources } from '../sources'; + +export class InfraFieldsDomain { + constructor( + private readonly adapter: FieldsAdapter, + private readonly libs: { sources: InfraSources } + ) {} + + public async getFields( + request: InfraFrameworkRequest, + sourceId: string, + indexType: InfraIndexType + ): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const includeMetricIndices = [InfraIndexType.ANY, InfraIndexType.METRICS].includes(indexType); + const includeLogIndices = [InfraIndexType.ANY, InfraIndexType.LOGS].includes(indexType); + + const fields = await this.adapter.getIndexFields(request, [ + ...(includeMetricIndices ? [sourceConfiguration.metricAlias] : []), + ...(includeLogIndices ? [sourceConfiguration.logAlias] : []), + ]); + + return fields; + } +} diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_apache2.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_apache2.ts new file mode 100644 index 0000000000000..cdb2ad32267ca --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_apache2.ts @@ -0,0 +1,60 @@ +/* + * 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 filebeatApache2Rules = [ + { + when: { + exists: ['apache2.access'], + }, + format: [ + { + constant: 'apache2', + }, + { + constant: ' ', + }, + { + field: 'apache2.access.remote_ip', + }, + { + constant: ' ', + }, + { + field: 'apache2.access.user_name', + }, + { + constant: ' "', + }, + { + field: 'apache2.access.method', + }, + { + constant: ' ', + }, + { + field: 'apache2.access.url', + }, + { + constant: ' HTTP/', + }, + { + field: 'apache2.access.http_version', + }, + { + constant: '" ', + }, + { + field: 'apache2.access.response_code', + }, + { + constant: ' ', + }, + { + field: 'apache2.access.body_sent.bytes', + }, + ], + }, +]; diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_nginx.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_nginx.ts new file mode 100644 index 0000000000000..d44fe4924490b --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_nginx.ts @@ -0,0 +1,60 @@ +/* + * 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 filebeatNginxRules = [ + { + when: { + exists: ['nginx.access'], + }, + format: [ + { + constant: 'nginx', + }, + { + constant: ' ', + }, + { + field: 'nginx.access.remote_ip', + }, + { + constant: ' ', + }, + { + field: 'nginx.access.user_name', + }, + { + constant: ' "', + }, + { + field: 'nginx.access.method', + }, + { + constant: ' ', + }, + { + field: 'nginx.access.url', + }, + { + constant: ' HTTP/', + }, + { + field: 'nginx.access.http_version', + }, + { + constant: '" ', + }, + { + field: 'nginx.access.response_code', + }, + { + constant: ' ', + }, + { + field: 'nginx.access.body_sent.bytes', + }, + ], + }, +]; diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_redis.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_redis.ts new file mode 100644 index 0000000000000..e842a54457769 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_redis.ts @@ -0,0 +1,24 @@ +/* + * 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 filebeatRedisRules = [ + { + when: { + exists: ['redis.log.message'], + }, + format: [ + { + constant: 'redis', + }, + { + constant: ' ', + }, + { + field: 'redis.log.message', + }, + ], + }, +]; diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_system.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_system.ts new file mode 100644 index 0000000000000..0a84720fc8cfb --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/filebeat_system.ts @@ -0,0 +1,72 @@ +/* + * 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 filebeatSystemRules = [ + { + when: { + exists: ['system.syslog.message'], + }, + format: [ + { + field: 'system.syslog.message', + }, + ], + }, + { + when: { + exists: ['system.auth.message'], + }, + format: [ + { + field: 'system.auth.message', + }, + ], + }, + { + when: { + exists: ['system.auth.ssh.event'], + }, + format: [ + { + constant: 'ssh', + }, + { + constant: ' ', + }, + { + field: 'system.auth.ssh.event', + }, + { + constant: ' user ', + }, + { + field: 'system.auth.user', + }, + { + constant: ' from ', + }, + { + field: 'system.auth.ssh.ip', + }, + ], + }, + { + when: { + exists: ['system.auth.ssh.dropped_ip'], + }, + format: [ + { + constant: 'ssh', + }, + { + constant: ' Dropped connection from ', + }, + { + field: 'system.auth.ssh.dropped_ip', + }, + ], + }, +]; diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/generic.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/generic.ts new file mode 100644 index 0000000000000..bd0e51d5c8d30 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/generic.ts @@ -0,0 +1,28 @@ +/* + * 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 genericRules = [ + { + when: { + exists: ['message'], + }, + format: [ + { + field: 'message', + }, + ], + }, + { + when: { + exists: ['@message'], + }, + format: [ + { + field: '@message', + }, + ], + }, +]; diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/index.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/index.ts new file mode 100644 index 0000000000000..2e0c5ac1a9ac6 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/builtin_rules/index.ts @@ -0,0 +1,42 @@ +/* + * 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 { filebeatApache2Rules } from './filebeat_apache2'; +import { filebeatNginxRules } from './filebeat_nginx'; +import { filebeatRedisRules } from './filebeat_redis'; +import { filebeatSystemRules } from './filebeat_system'; +import { genericRules } from './generic'; + +export const builtinRules = [ + ...filebeatApache2Rules, + ...filebeatNginxRules, + ...filebeatRedisRules, + ...filebeatSystemRules, + ...genericRules, + { + when: { + exists: ['source'], + }, + format: [ + { + constant: 'failed to format message from ', + }, + { + field: 'source', + }, + ], + }, + { + when: { + exists: [], + }, + format: [ + { + constant: 'failed to find message', + }, + ], + }, +]; diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/index.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/index.ts new file mode 100644 index 0000000000000..2cb8140febdcd --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/index.ts @@ -0,0 +1,7 @@ +/* + * 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 * from './log_entries_domain'; diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/log_entries_domain.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/log_entries_domain.ts new file mode 100644 index 0000000000000..27663abdecada --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/log_entries_domain.ts @@ -0,0 +1,186 @@ +/* + * 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 { + InfraLogEntry, + InfraLogMessageSegment, + InfraLogSummaryBucket, +} from '../../../../common/graphql/types'; +import { TimeKey } from '../../../../common/time'; +import { JsonObject } from '../../../../common/typed_json'; +import { InfraDateRangeAggregationBucket, InfraFrameworkRequest } from '../../adapters/framework'; +import { InfraSourceConfiguration, InfraSources } from '../../sources'; +import { builtinRules } from './builtin_rules'; +import { compileFormattingRules } from './message'; + +export class InfraLogEntriesDomain { + constructor( + private readonly adapter: LogEntriesAdapter, + private readonly libs: { sources: InfraSources } + ) {} + + public async getLogEntriesAround( + request: InfraFrameworkRequest, + sourceId: string, + key: TimeKey, + maxCountBefore: number, + maxCountAfter: number, + filterQuery?: LogEntryQuery, + highlightQuery?: string + ): Promise<{ entriesBefore: InfraLogEntry[]; entriesAfter: InfraLogEntry[] }> { + if (maxCountBefore <= 0 && maxCountAfter <= 0) { + return { + entriesBefore: [], + entriesAfter: [], + }; + } + + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const formattingRules = compileFormattingRules(builtinRules); + + const documentsBefore = await this.adapter.getAdjacentLogEntryDocuments( + request, + sourceConfiguration, + formattingRules.requiredFields, + key, + 'desc', + Math.max(maxCountBefore, 1), + filterQuery, + highlightQuery + ); + const lastKeyBefore = + documentsBefore.length > 0 + ? documentsBefore[documentsBefore.length - 1].key + : { + time: key.time - 1, + tiebreaker: 0, + }; + + const documentsAfter = await this.adapter.getAdjacentLogEntryDocuments( + request, + sourceConfiguration, + formattingRules.requiredFields, + lastKeyBefore, + 'asc', + maxCountAfter, + filterQuery, + highlightQuery + ); + + return { + entriesBefore: (maxCountBefore > 0 ? documentsBefore : []).map( + convertLogDocumentToEntry(sourceId, formattingRules.format) + ), + entriesAfter: documentsAfter.map(convertLogDocumentToEntry(sourceId, formattingRules.format)), + }; + } + + public async getLogEntriesBetween( + request: InfraFrameworkRequest, + sourceId: string, + startKey: TimeKey, + endKey: TimeKey, + filterQuery?: LogEntryQuery, + highlightQuery?: string + ): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const formattingRules = compileFormattingRules(builtinRules); + const documents = await this.adapter.getContainedLogEntryDocuments( + request, + sourceConfiguration, + formattingRules.requiredFields, + startKey, + endKey, + filterQuery, + highlightQuery + ); + const entries = documents.map(convertLogDocumentToEntry(sourceId, formattingRules.format)); + return entries; + } + + public async getLogSummaryBucketsBetween( + request: InfraFrameworkRequest, + sourceId: string, + start: number, + end: number, + bucketSize: number, + filterQuery?: LogEntryQuery + ): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const dateRangeBuckets = await this.adapter.getContainedLogSummaryBuckets( + request, + sourceConfiguration, + start, + end, + bucketSize, + filterQuery + ); + const buckets = dateRangeBuckets.map(convertDateRangeBucketToSummaryBucket); + return buckets; + } +} + +export interface LogEntriesAdapter { + getAdjacentLogEntryDocuments( + request: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + fields: string[], + start: TimeKey, + direction: 'asc' | 'desc', + maxCount: number, + filterQuery?: LogEntryQuery, + highlightQuery?: string + ): Promise; + + getContainedLogEntryDocuments( + request: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + fields: string[], + start: TimeKey, + end: TimeKey, + filterQuery?: LogEntryQuery, + highlightQuery?: string + ): Promise; + + getContainedLogSummaryBuckets( + request: InfraFrameworkRequest, + sourceConfiguration: InfraSourceConfiguration, + start: number, + end: number, + bucketSize: number, + filterQuery?: LogEntryQuery + ): Promise; +} + +export type LogEntryQuery = JsonObject; + +export interface LogEntryDocument { + fields: LogEntryDocumentFields; + gid: string; + key: TimeKey; +} + +export interface LogEntryDocumentFields { + [fieldName: string]: string | number | null; +} + +const convertLogDocumentToEntry = ( + sourceId: string, + formatMessage: (fields: LogEntryDocumentFields) => InfraLogMessageSegment[] +) => (document: LogEntryDocument): InfraLogEntry => ({ + key: document.key, + gid: document.gid, + source: sourceId, + message: formatMessage(document.fields), +}); + +const convertDateRangeBucketToSummaryBucket = ( + bucket: InfraDateRangeAggregationBucket +): InfraLogSummaryBucket => ({ + entriesCount: bucket.doc_count, + start: bucket.from || 0, + end: bucket.to || 0, +}); diff --git a/x-pack/plugins/infra/server/lib/domains/log_entries_domain/message.ts b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/message.ts new file mode 100644 index 0000000000000..b97c2704cdfba --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/log_entries_domain/message.ts @@ -0,0 +1,201 @@ +/* + * 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 { InfraLogMessageSegment } from '../../../../common/graphql/types'; + +export function compileFormattingRules(rules: LogMessageFormattingRule[]) { + const compiledRules = rules.map(compileRule); + + return { + requiredFields: Array.from( + new Set( + compiledRules.reduce( + (combinedRequiredFields, { requiredFields }) => [ + ...combinedRequiredFields, + ...requiredFields, + ], + [] as string[] + ) + ) + ), + format: (fields: Fields): InfraLogMessageSegment[] => { + for (const compiledRule of compiledRules) { + if (compiledRule.fulfillsCondition(fields)) { + return compiledRule.format(fields); + } + } + + return []; + }, + }; +} + +const compileRule = (rule: LogMessageFormattingRule): CompiledLogMessageFormattingRule => { + const { conditionFields, fulfillsCondition } = compileCondition(rule.when); + const { formattingFields, format } = compileFormattingInstructions(rule.format); + + return { + requiredFields: [...conditionFields, ...formattingFields], + fulfillsCondition, + format, + }; +}; + +const compileCondition = ( + condition: LogMessageFormattingCondition +): CompiledLogMessageFormattingCondition => + [compileExistsCondition, compileFieldValueCondition].reduce( + (compiledCondition, compile) => compile(condition) || compiledCondition, + catchAllCondition + ); + +const catchAllCondition: CompiledLogMessageFormattingCondition = { + conditionFields: [] as string[], + fulfillsCondition: (fields: Fields) => false, +}; + +const compileExistsCondition = (condition: LogMessageFormattingCondition) => + 'exists' in condition + ? { + conditionFields: condition.exists, + fulfillsCondition: (fields: Fields) => + condition.exists.every(fieldName => fieldName in fields), + } + : null; + +const compileFieldValueCondition = (condition: LogMessageFormattingCondition) => + 'values' in condition + ? { + conditionFields: Object.keys(condition.values), + fulfillsCondition: (fields: Fields) => + Object.entries(condition.values).every( + ([fieldName, expectedValue]) => fields[fieldName] === expectedValue + ), + } + : null; + +const compileFormattingInstructions = ( + formattingInstructions: LogMessageFormattingInstruction[] +): CompiledLogMessageFormattingInstruction => + formattingInstructions.reduce( + (combinedFormattingInstructions, formattingInstruction) => { + const compiledFormattingInstruction = compileFormattingInstruction(formattingInstruction); + + return { + formattingFields: [ + ...combinedFormattingInstructions.formattingFields, + ...compiledFormattingInstruction.formattingFields, + ], + format: (fields: Fields) => [ + ...combinedFormattingInstructions.format(fields), + ...compiledFormattingInstruction.format(fields), + ], + }; + }, + { + formattingFields: [], + format: (fields: Fields) => [], + } as CompiledLogMessageFormattingInstruction + ); + +const compileFormattingInstruction = ( + formattingInstruction: LogMessageFormattingInstruction +): CompiledLogMessageFormattingInstruction => + [compileFieldReferenceFormattingInstruction, compileConstantFormattingInstruction].reduce( + (compiledFormattingInstruction, compile) => + compile(formattingInstruction) || compiledFormattingInstruction, + catchAllFormattingInstruction + ); + +const catchAllFormattingInstruction: CompiledLogMessageFormattingInstruction = { + formattingFields: [], + format: (fields: Fields) => [ + { + constant: 'invalid format', + }, + ], +}; + +const compileFieldReferenceFormattingInstruction = ( + formattingInstruction: LogMessageFormattingInstruction +): CompiledLogMessageFormattingInstruction | null => + 'field' in formattingInstruction + ? { + formattingFields: [formattingInstruction.field], + format: (fields: Fields) => [ + { + field: formattingInstruction.field, + value: `${fields[formattingInstruction.field]}`, + highlights: [], + }, + ], + } + : null; + +const compileConstantFormattingInstruction = ( + formattingInstruction: LogMessageFormattingInstruction +): CompiledLogMessageFormattingInstruction | null => + 'constant' in formattingInstruction + ? { + formattingFields: [] as string[], + format: (fields: Fields) => [ + { + constant: formattingInstruction.constant, + }, + ], + } + : null; + +interface Fields { + [fieldName: string]: string | number | boolean | null; +} + +interface LogMessageFormattingRule { + when: LogMessageFormattingCondition; + format: LogMessageFormattingInstruction[]; +} + +type LogMessageFormattingCondition = + | LogMessageFormattingExistsCondition + | LogMessageFormattingFieldValueCondition; + +interface LogMessageFormattingExistsCondition { + exists: string[]; +} + +interface LogMessageFormattingFieldValueCondition { + values: { + [fieldName: string]: string | number | boolean | null; + }; +} + +type LogMessageFormattingInstruction = + | LogMessageFormattingFieldReference + | LogMessageFormattingConstant; + +interface LogMessageFormattingFieldReference { + field: string; +} + +interface LogMessageFormattingConstant { + constant: string; +} + +interface CompiledLogMessageFormattingRule { + requiredFields: string[]; + fulfillsCondition(fields: Fields): boolean; + format(fields: Fields): InfraLogMessageSegment[]; +} + +interface CompiledLogMessageFormattingCondition { + conditionFields: string[]; + fulfillsCondition(fields: Fields): boolean; +} + +interface CompiledLogMessageFormattingInstruction { + formattingFields: string[]; + format(fields: Fields): InfraLogMessageSegment[]; +} diff --git a/x-pack/plugins/infra/server/lib/domains/metrics_domain.ts b/x-pack/plugins/infra/server/lib/domains/metrics_domain.ts new file mode 100644 index 0000000000000..522298579a5c4 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/metrics_domain.ts @@ -0,0 +1,24 @@ +/* + * 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 { InfraMetricData } from '../../../common/graphql/types'; +import { InfraFrameworkRequest } from '../adapters/framework/adapter_types'; +import { InfraMetricsAdapter, InfraMetricsRequestOptions } from '../adapters/metrics/adapter_types'; + +export class InfraMetricsDomain { + private adapter: InfraMetricsAdapter; + + constructor(adapter: InfraMetricsAdapter) { + this.adapter = adapter; + } + + public async getMetrics( + req: InfraFrameworkRequest, + options: InfraMetricsRequestOptions + ): Promise { + return await this.adapter.getMetrics(req, options); + } +} diff --git a/x-pack/plugins/infra/server/lib/domains/nodes_domain.ts b/x-pack/plugins/infra/server/lib/domains/nodes_domain.ts new file mode 100644 index 0000000000000..4c6d990dbeb95 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/domains/nodes_domain.ts @@ -0,0 +1,24 @@ +/* + * 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 { InfraNode } from '../../../common/graphql/types'; +import { InfraFrameworkRequest } from '../adapters/framework'; +import { InfraNodeRequestOptions, InfraNodesAdapter } from '../adapters/nodes'; + +export class InfraNodesDomain { + private adapter: InfraNodesAdapter; + + constructor(adapter: InfraNodesAdapter) { + this.adapter = adapter; + } + + public async getNodes( + req: InfraFrameworkRequest, + options: InfraNodeRequestOptions + ): Promise { + return await this.adapter.getNodes(req, options); + } +} diff --git a/x-pack/plugins/infra/server/lib/infra_types.ts b/x-pack/plugins/infra/server/lib/infra_types.ts new file mode 100644 index 0000000000000..2a24a65daf8d6 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/infra_types.ts @@ -0,0 +1,43 @@ +/* + * 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 { InfraConfigurationAdapter } from './adapters/configuration'; +import { InfraBackendFrameworkAdapter, InfraFrameworkRequest } from './adapters/framework'; +import { InfraCapabilitiesDomain } from './domains/capabilities_domain'; +import { InfraFieldsDomain } from './domains/fields_domain'; +import { InfraLogEntriesDomain } from './domains/log_entries_domain'; +import { InfraMetricsDomain } from './domains/metrics_domain'; +import { InfraNodesDomain } from './domains/nodes_domain'; +import { InfraSourceStatus } from './source_status'; +import { InfraSourceConfigurations, InfraSources } from './sources'; + +export interface InfraDomainLibs { + capabilities: InfraCapabilitiesDomain; + fields: InfraFieldsDomain; + logEntries: InfraLogEntriesDomain; + nodes: InfraNodesDomain; + metrics: InfraMetricsDomain; +} + +export interface InfraBackendLibs extends InfraDomainLibs { + configuration: InfraConfigurationAdapter; + framework: InfraBackendFrameworkAdapter; + sources: InfraSources; + sourceStatus: InfraSourceStatus; +} + +export interface InfraConfiguration { + enabled: boolean; + query: { + partitionSize: number; + partitionFactor: number; + }; + sources: InfraSourceConfigurations; +} + +export interface InfraContext { + req: InfraFrameworkRequest; +} diff --git a/x-pack/plugins/infra/server/lib/source_status.ts b/x-pack/plugins/infra/server/lib/source_status.ts new file mode 100644 index 0000000000000..1d161135b1ed8 --- /dev/null +++ b/x-pack/plugins/infra/server/lib/source_status.ts @@ -0,0 +1,61 @@ +/* + * 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 { InfraFrameworkRequest } from './adapters/framework'; +import { InfraSources } from './sources'; + +export class InfraSourceStatus { + constructor( + private readonly adapter: InfraSourceStatusAdapter, + private readonly libs: { sources: InfraSources } + ) {} + + public async getLogIndexNames( + request: InfraFrameworkRequest, + sourceId: string + ): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const indexNames = await this.adapter.getIndexNames(request, sourceConfiguration.logAlias); + return indexNames; + } + public async getMetricIndexNames( + request: InfraFrameworkRequest, + sourceId: string + ): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const indexNames = await this.adapter.getIndexNames(request, sourceConfiguration.metricAlias); + return indexNames; + } + public async hasLogAlias(request: InfraFrameworkRequest, sourceId: string): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const hasAlias = await this.adapter.hasAlias(request, sourceConfiguration.logAlias); + return hasAlias; + } + public async hasMetricAlias(request: InfraFrameworkRequest, sourceId: string): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const hasAlias = await this.adapter.hasAlias(request, sourceConfiguration.metricAlias); + return hasAlias; + } + public async hasLogIndices(request: InfraFrameworkRequest, sourceId: string): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const hasIndices = await this.adapter.hasIndices(request, sourceConfiguration.logAlias); + return hasIndices; + } + public async hasMetricIndices( + request: InfraFrameworkRequest, + sourceId: string + ): Promise { + const sourceConfiguration = await this.libs.sources.getConfiguration(sourceId); + const hasIndices = await this.adapter.hasIndices(request, sourceConfiguration.metricAlias); + return hasIndices; + } +} + +export interface InfraSourceStatusAdapter { + getIndexNames(request: InfraFrameworkRequest, aliasName: string): Promise; + hasAlias(request: InfraFrameworkRequest, aliasName: string): Promise; + hasIndices(request: InfraFrameworkRequest, indexNames: string): Promise; +} diff --git a/x-pack/plugins/infra/server/lib/sources.ts b/x-pack/plugins/infra/server/lib/sources.ts new file mode 100644 index 0000000000000..4bf9ce6c61f0e --- /dev/null +++ b/x-pack/plugins/infra/server/lib/sources.ts @@ -0,0 +1,45 @@ +/* + * 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 class InfraSources { + constructor(private readonly adapter: InfraSourcesAdapter) {} + + public async getConfiguration(sourceId: string) { + const sourceConfigurations = await this.getAllConfigurations(); + const requestedSourceConfiguration = sourceConfigurations[sourceId]; + + if (!requestedSourceConfiguration) { + throw new Error(`Failed to find source '${sourceId}'`); + } + + return requestedSourceConfiguration; + } + + public getAllConfigurations() { + return this.adapter.getAll(); + } +} + +export interface InfraSourcesAdapter { + getAll(): Promise; +} + +export interface InfraSourceConfigurations { + [sourceId: string]: InfraSourceConfiguration; +} + +export interface InfraSourceConfiguration { + metricAlias: string; + logAlias: string; + fields: { + container: string; + host: string; + message: string[]; + pod: string; + tiebreaker: string; + timestamp: string; + }; +} diff --git a/x-pack/plugins/infra/server/logging_legacy/adjacent_search_results.ts b/x-pack/plugins/infra/server/logging_legacy/adjacent_search_results.ts new file mode 100644 index 0000000000000..7d757329b7ca7 --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/adjacent_search_results.ts @@ -0,0 +1,189 @@ +/* + * 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 * as Boom from 'boom'; +import { SearchParams } from 'elasticsearch'; +import * as Joi from 'joi'; + +import { + AdjacentSearchResultsApiPostPayload, + AdjacentSearchResultsApiPostResponse, +} from '../../common/http_api'; +import { LogEntryFieldsMapping, LogEntryTime } from '../../common/log_entry'; +import { SearchResult } from '../../common/log_search_result'; +import { + InfraBackendFrameworkAdapter, + InfraDatabaseSearchResponse, + InfraWrappableRequest, +} from '../lib/adapters/framework'; +import { convertHitToSearchResult } from './converters'; +import { isHighlightedHit, SortedHit } from './elasticsearch'; +import { fetchLatestTime } from './latest_log_entries'; +import { indicesSchema, logEntryFieldsMappingSchema, logEntryTimeSchema } from './schemas'; + +const INITIAL_HORIZON_OFFSET = 1000 * 60 * 60 * 24; +const MAX_HORIZON = 9999999999999; + +export const initAdjacentSearchResultsRoutes = (framework: InfraBackendFrameworkAdapter) => { + const callWithRequest = framework.callWithRequest; + + framework.registerRoute< + InfraWrappableRequest, + Promise + >({ + options: { + validate: { + payload: Joi.object().keys({ + after: Joi.number() + .min(0) + .default(0), + before: Joi.number() + .min(0) + .default(0), + fields: logEntryFieldsMappingSchema.required(), + indices: indicesSchema.required(), + query: Joi.string().required(), + target: logEntryTimeSchema.required(), + }), + }, + }, + handler: async (request, h) => { + const timings = { + esRequestSent: Date.now(), + esResponseProcessed: 0, + }; + + try { + const search = (params: SearchParams) => + callWithRequest(request, 'search', params); + + const latestTime = await fetchLatestTime( + search, + request.payload.indices, + request.payload.fields.time + ); + const searchResultsAfterTarget = await fetchSearchResults( + search, + request.payload.indices, + request.payload.fields, + { + tiebreaker: request.payload.target.tiebreaker - 1, + time: request.payload.target.time, + }, + request.payload.after, + 'asc', + request.payload.query, + request.payload.target.time + INITIAL_HORIZON_OFFSET, + latestTime + ); + const searchResultsBeforeTarget = (await fetchSearchResults( + search, + request.payload.indices, + request.payload.fields, + request.payload.target, + request.payload.before, + 'desc', + request.payload.query, + request.payload.target.time - INITIAL_HORIZON_OFFSET + )).reverse(); + + timings.esResponseProcessed = Date.now(); + + return { + results: { + after: searchResultsAfterTarget, + before: searchResultsBeforeTarget, + }, + timings, + }; + } catch (requestError) { + throw Boom.boomify(requestError); + } + }, + method: 'POST', + path: '/api/logging/adjacent-search-results', + }); +}; + +export async function fetchSearchResults( + search: (params: SearchParams) => Promise>, + indices: string[], + fields: LogEntryFieldsMapping, + target: LogEntryTime, + size: number, + direction: 'asc' | 'desc', + query: string, + horizon: number, + maxHorizon: number = MAX_HORIZON +): Promise { + if (size <= 0) { + return []; + } + + const request = { + allowNoIndices: true, + body: { + _source: false, + highlight: { + boundary_scanner: 'word', + fields: { + [fields.message]: {}, + }, + fragment_size: 1, + number_of_fragments: 100, + post_tags: [''], + pre_tags: [''], + }, + query: { + bool: { + filter: [ + { + query_string: { + default_field: fields.message, + default_operator: 'AND', + query, + }, + }, + { + range: { + [fields.time]: { + [direction === 'asc' ? 'gte' : 'lte']: target.time, + [direction === 'asc' ? 'lte' : 'gte']: horizon, + }, + }, + }, + ], + }, + }, + search_after: [target.time, target.tiebreaker], + size, + sort: [{ [fields.time]: direction }, { [fields.tiebreaker]: direction }], + }, + ignoreUnavailable: true, + index: indices, + }; + const response = await search(request); + + const hits = response.hits.hits as SortedHit[]; + const nextHorizon = horizon + (horizon - target.time); + + if (hits.length >= size || nextHorizon < 0 || nextHorizon > maxHorizon) { + const filteredHits = hits.filter(isHighlightedHit); + return filteredHits.map(convertHitToSearchResult(fields)); + } else { + return fetchSearchResults( + search, + indices, + fields, + target, + size, + direction, + query, + nextHorizon, + maxHorizon + ); + } +} diff --git a/x-pack/plugins/infra/server/logging_legacy/contained_search_results.ts b/x-pack/plugins/infra/server/logging_legacy/contained_search_results.ts new file mode 100644 index 0000000000000..dbd8b1f4202dd --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/contained_search_results.ts @@ -0,0 +1,135 @@ +/* + * 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 * as Boom from 'boom'; +import { SearchParams } from 'elasticsearch'; +import * as Joi from 'joi'; + +import { + ContainedSearchResultsApiPostPayload, + ContainedSearchResultsApiPostResponse, +} from '../../common/http_api'; +import { isLessOrEqual, LogEntryFieldsMapping, LogEntryTime } from '../../common/log_entry'; +import { SearchResult } from '../../common/log_search_result'; +import { + InfraBackendFrameworkAdapter, + InfraDatabaseSearchResponse, + InfraWrappableRequest, +} from '../lib/adapters/framework'; +import { convertHitToSearchResult } from './converters'; +import { isHighlightedHit, SortedHit } from './elasticsearch'; +import { indicesSchema, logEntryFieldsMappingSchema, logEntryTimeSchema } from './schemas'; + +export const initContainedSearchResultsRoutes = (framework: InfraBackendFrameworkAdapter) => { + const callWithRequest = framework.callWithRequest; + + framework.registerRoute< + InfraWrappableRequest, + Promise + >({ + options: { + validate: { + payload: Joi.object().keys({ + end: logEntryTimeSchema.required(), + fields: logEntryFieldsMappingSchema.required(), + indices: indicesSchema.required(), + query: Joi.string().required(), + start: logEntryTimeSchema.required(), + }), + }, + }, + handler: async request => { + const timings = { + esRequestSent: Date.now(), + esResponseProcessed: 0, + }; + + try { + const search = (params: SearchParams) => + callWithRequest(request, 'search', params); + + const searchResults = await fetchSearchResultsBetween( + search, + request.payload.indices, + request.payload.fields, + request.payload.start, + request.payload.end, + request.payload.query + ); + + timings.esResponseProcessed = Date.now(); + + return { + results: searchResults, + timings, + }; + } catch (requestError) { + throw Boom.boomify(requestError); + } + }, + method: 'POST', + path: '/api/logging/contained-search-results', + }); +}; + +export async function fetchSearchResultsBetween( + search: (params: SearchParams) => Promise>, + indices: string[], + fields: LogEntryFieldsMapping, + start: LogEntryTime, + end: LogEntryTime, + query: string +): Promise { + const request = { + allowNoIndices: true, + body: { + _source: false, + highlight: { + boundary_scanner: 'word', + fields: { + [fields.message]: {}, + }, + fragment_size: 1, + number_of_fragments: 100, + post_tags: [''], + pre_tags: [''], + }, + query: { + bool: { + filter: [ + { + query_string: { + default_field: fields.message, + default_operator: 'AND', + query, + }, + }, + { + range: { + [fields.time]: { + gte: start.time, + lte: end.time, + }, + }, + }, + ], + }, + }, + search_after: [start.time, start.tiebreaker - 1], + size: 10000, + sort: [{ [fields.time]: 'asc' }, { [fields.tiebreaker]: 'asc' }], + }, + ignoreUnavailable: true, + index: indices, + }; + const response = await search(request); + + const hits = response.hits.hits as SortedHit[]; + const filteredHits = hits + .filter(hit => isLessOrEqual({ time: hit.sort[0], tiebreaker: hit.sort[1] }, end)) + .filter(isHighlightedHit); + return filteredHits.map(convertHitToSearchResult(fields)); +} diff --git a/x-pack/plugins/infra/server/logging_legacy/converters.ts b/x-pack/plugins/infra/server/logging_legacy/converters.ts new file mode 100644 index 0000000000000..164981c2dbe18 --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/converters.ts @@ -0,0 +1,70 @@ +/* + * 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 invert from 'lodash/fp/invert'; +import mapKeys from 'lodash/fp/mapKeys'; + +import { LogEntryFieldsMapping } from '../../common/log_entry'; +import { SearchResult } from '../../common/log_search_result'; +import { SearchSummaryBucket } from '../../common/log_search_summary'; +import { + DateHistogramResponse, + HighlightedHit, + Hit, + HitsBucket, + isBucketWithAggregation, +} from './elasticsearch'; + +export const convertHitToSearchResult = (fields: LogEntryFieldsMapping) => { + const invertedFields = invert(fields); + return (hit: HighlightedHit): SearchResult => { + const matches = mapKeys(key => invertedFields[key], hit.highlight || {}); + return { + fields: { + tiebreaker: hit.sort[1], // use the sort property to get the normalized values + time: hit.sort[0], + }, + gid: getHitGid(hit), + matches, + }; + }; +}; + +export const convertDateHistogramToSearchSummaryBuckets = ( + fields: LogEntryFieldsMapping, + end: number +) => (buckets: DateHistogramResponse['buckets']): SearchSummaryBucket[] => + buckets.reduceRight( + ({ previousStart, aggregatedBuckets }, bucket) => { + const representative = + isBucketWithAggregation(bucket, 'top_entries') && + bucket.top_entries.hits.hits.length > 0 + ? convertHitToSearchResult(fields)(bucket.top_entries.hits.hits[0]) + : null; + return { + aggregatedBuckets: [ + ...(representative + ? [ + { + count: bucket.doc_count, + end: previousStart, + representative, + start: bucket.key, + }, + ] + : []), + ...aggregatedBuckets, + ], + previousStart: bucket.key, + }; + }, + { previousStart: end, aggregatedBuckets: [] } as { + previousStart: number; + aggregatedBuckets: SearchSummaryBucket[]; + } + ).aggregatedBuckets; + +const getHitGid = (hit: Hit): string => `${hit._index}:${hit._type}:${hit._id}`; diff --git a/x-pack/plugins/infra/server/logging_legacy/elasticsearch.ts b/x-pack/plugins/infra/server/logging_legacy/elasticsearch.ts new file mode 100644 index 0000000000000..020b9ae7ba2c7 --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/elasticsearch.ts @@ -0,0 +1,79 @@ +/* + * 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 { MSearchParams, MSearchResponse, SearchParams, SearchResponse } from 'elasticsearch'; + +export interface ESCluster { + callWithRequest( + request: any, + endpoint: 'msearch', + clientOptions: MSearchParams, + options?: object + ): Promise>; + callWithRequest( + request: any, + endpoint: 'search', + clientOptions: SearchParams, + options?: object + ): Promise>; + callWithRequest( + request: any, + endpoint: string, + clientOptions?: object, + options?: object + ): Promise; +} + +export type Hit = SearchResponse['hits']['hits'][0]; + +export interface SortedHit extends Hit { + sort: any[]; + _source: { + [field: string]: any; + }; +} + +export interface HighlightedHit extends SortedHit { + highlight?: { + [field: string]: string[]; + }; +} + +export const isHighlightedHit = (hit: Hit): hit is HighlightedHit => !!hit.highlight; + +export interface DateHistogramBucket { + key: number; + key_as_string: string; + doc_count: number; +} + +export interface HitsBucket { + hits: { + total: number; + max_score: number | null; + hits: SortedHit[]; + }; +} + +export interface DateHistogramResponse { + buckets: DateHistogramBucket[]; +} + +export type WithSubAggregation< + SubAggregationType, + SubAggregationName extends string, + BucketType +> = BucketType & { [subAggregationName in SubAggregationName]: SubAggregationType }; + +export const isBucketWithAggregation = < + SubAggregationType extends object, + SubAggregationName extends string = any, + BucketType extends object = {} +>( + bucket: BucketType, + aggregationName: SubAggregationName +): bucket is WithSubAggregation => + aggregationName in bucket; diff --git a/x-pack/plugins/infra/server/logging_legacy/index.ts b/x-pack/plugins/infra/server/logging_legacy/index.ts new file mode 100644 index 0000000000000..e193655246016 --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/index.ts @@ -0,0 +1,16 @@ +/* + * 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 { InfraBackendFrameworkAdapter } from '../lib/adapters/framework'; +import { initAdjacentSearchResultsRoutes } from './adjacent_search_results'; +import { initContainedSearchResultsRoutes } from './contained_search_results'; +import { initSearchSummaryRoutes } from './search_summary'; + +export const initLegacyLoggingRoutes = (framework: InfraBackendFrameworkAdapter) => { + initAdjacentSearchResultsRoutes(framework); + initContainedSearchResultsRoutes(framework); + initSearchSummaryRoutes(framework); +}; diff --git a/x-pack/plugins/infra/server/logging_legacy/latest_log_entries.ts b/x-pack/plugins/infra/server/logging_legacy/latest_log_entries.ts new file mode 100644 index 0000000000000..2b40309b510d2 --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/latest_log_entries.ts @@ -0,0 +1,42 @@ +/* + * 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 { SearchParams } from 'elasticsearch'; + +import { InfraDatabaseSearchResponse } from '../lib/adapters/framework'; + +export async function fetchLatestTime( + search: ( + params: SearchParams + ) => Promise>, + indices: string[], + timeField: string +): Promise { + const response = await search({ + allowNoIndices: true, + body: { + aggregations: { + max_time: { + max: { + field: timeField, + }, + }, + }, + query: { + match_all: {}, + }, + size: 0, + }, + ignoreUnavailable: true, + index: indices, + }); + + if (response.aggregations && response.aggregations.max_time) { + return response.aggregations.max_time.value; + } else { + return 0; + } +} diff --git a/x-pack/plugins/infra/server/logging_legacy/schemas.ts b/x-pack/plugins/infra/server/logging_legacy/schemas.ts new file mode 100644 index 0000000000000..12dc60d369bd6 --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/schemas.ts @@ -0,0 +1,34 @@ +/* + * 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 * as Joi from 'joi'; + +export const timestampSchema = Joi.number() + .integer() + .min(0); + +export const logEntryFieldsMappingSchema = Joi.object().keys({ + message: Joi.string().required(), + tiebreaker: Joi.string().required(), + time: Joi.string().required(), +}); + +export const logEntryTimeSchema = Joi.object().keys({ + tiebreaker: Joi.number().integer(), + time: timestampSchema, +}); + +export const indicesSchema = Joi.array().items(Joi.string()); + +export const summaryBucketSizeSchema = Joi.object().keys({ + unit: Joi.string() + .valid(['y', 'M', 'w', 'd', 'h', 'm', 's']) + .required(), + value: Joi.number() + .integer() + .min(0) + .required(), +}); diff --git a/x-pack/plugins/infra/server/logging_legacy/search_summary.ts b/x-pack/plugins/infra/server/logging_legacy/search_summary.ts new file mode 100644 index 0000000000000..b51d4d4cabbb0 --- /dev/null +++ b/x-pack/plugins/infra/server/logging_legacy/search_summary.ts @@ -0,0 +1,156 @@ +/* + * 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 * as Boom from 'boom'; +import { SearchParams } from 'elasticsearch'; +import * as Joi from 'joi'; + +import { SearchSummaryApiPostPayload, SearchSummaryApiPostResponse } from '../../common/http_api'; +import { LogEntryFieldsMapping } from '../../common/log_entry'; +import { SearchSummaryBucket } from '../../common/log_search_summary'; +import { SummaryBucketSize } from '../../common/log_summary'; +import { + InfraBackendFrameworkAdapter, + InfraDatabaseSearchResponse, + InfraWrappableRequest, +} from '../lib/adapters/framework'; +import { convertDateHistogramToSearchSummaryBuckets } from './converters'; +import { DateHistogramResponse } from './elasticsearch'; +import { + indicesSchema, + logEntryFieldsMappingSchema, + summaryBucketSizeSchema, + timestampSchema, +} from './schemas'; + +export const initSearchSummaryRoutes = (framework: InfraBackendFrameworkAdapter) => { + const callWithRequest = framework.callWithRequest; + + framework.registerRoute< + InfraWrappableRequest, + Promise + >({ + options: { + validate: { + payload: Joi.object().keys({ + bucketSize: summaryBucketSizeSchema.required(), + end: timestampSchema.required(), + fields: logEntryFieldsMappingSchema.required(), + indices: indicesSchema.required(), + query: Joi.string().required(), + start: timestampSchema.required(), + }), + }, + }, + handler: async request => { + const timings = { + esRequestSent: Date.now(), + esResponseProcessed: 0, + }; + + try { + const search = (params: SearchParams) => + callWithRequest(request, 'search', params); + const summaryBuckets = await fetchSummaryBuckets( + search, + request.payload.indices, + request.payload.fields, + request.payload.start, + request.payload.end, + request.payload.bucketSize, + request.payload.query + ); + + timings.esResponseProcessed = Date.now(); + + return { + buckets: summaryBuckets, + timings, + }; + } catch (requestError) { + throw Boom.boomify(requestError); + } + }, + method: 'POST', + path: '/api/logging/search-summary', + }); +}; + +async function fetchSummaryBuckets( + search: ( + params: SearchParams + ) => Promise>, + indices: string[], + fields: LogEntryFieldsMapping, + start: number, + end: number, + bucketSize: { + unit: SummaryBucketSize; + value: number; + }, + query: string +): Promise { + const response = await search({ + allowNoIndices: true, + body: { + aggregations: { + count_by_date: { + aggregations: { + top_entries: { + top_hits: { + _source: [fields.message], + size: 1, + sort: [{ [fields.time]: 'desc' }, { [fields.tiebreaker]: 'desc' }], + }, + }, + }, + date_histogram: { + extended_bounds: { + max: end, + min: start, + }, + field: fields.time, + interval: `${bucketSize.value}${bucketSize.unit}`, + min_doc_count: 0, + }, + }, + }, + query: { + bool: { + filter: [ + { + query_string: { + default_field: fields.message, + default_operator: 'AND', + query, + }, + }, + { + range: { + [fields.time]: { + format: 'epoch_millis', + gte: start, + lt: end, + }, + }, + }, + ], + }, + }, + size: 0, + }, + ignoreUnavailable: true, + index: indices, + }); + + if (response.aggregations && response.aggregations.count_by_date) { + return convertDateHistogramToSearchSummaryBuckets(fields, end)( + response.aggregations.count_by_date.buckets + ); + } else { + return []; + } +} diff --git a/x-pack/plugins/infra/server/usage/usage_collector.ts b/x-pack/plugins/infra/server/usage/usage_collector.ts new file mode 100644 index 0000000000000..72e8dc251da8b --- /dev/null +++ b/x-pack/plugins/infra/server/usage/usage_collector.ts @@ -0,0 +1,114 @@ +/* + * 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 { InfraNodeType } from '../../common/graphql/types'; +import { KbnServer } from '../kibana.index'; + +const KIBANA_REPORTING_TYPE = 'infraops'; + +interface InfraopsSum { + infraopsHosts: number; + infraopsDocker: number; + infraopsKubernetes: number; + logs: number; +} + +export class UsageCollector { + public static getUsageCollector(server: KbnServer) { + const { collectorSet } = server.usage; + + return collectorSet.makeUsageCollector({ + type: KIBANA_REPORTING_TYPE, + fetch: async () => { + return this.getReport(); + }, + }); + } + + public static countNode(nodeType: InfraNodeType) { + const bucket = this.getBucket(); + this.maybeInitializeBucket(bucket); + + switch (nodeType) { + case InfraNodeType.pod: + this.counters[bucket].infraopsKubernetes += 1; + break; + case InfraNodeType.container: + this.counters[bucket].infraopsDocker += 1; + break; + default: + this.counters[bucket].infraopsHosts += 1; + } + } + + public static countLogs() { + const bucket = this.getBucket(); + this.maybeInitializeBucket(bucket); + this.counters[bucket].logs += 1; + } + + private static counters: any = {}; + private static BUCKET_SIZE = 3600; // seconds in an hour + private static BUCKET_NUMBER = 24; // report the last 24 hours + + private static getBucket() { + const now = Math.floor(Date.now() / 1000); + return now - (now % this.BUCKET_SIZE); + } + + private static maybeInitializeBucket(bucket: any) { + if (!this.counters[bucket]) { + this.counters[bucket] = { + infraopsHosts: 0, + infraopsDocker: 0, + infraopsKubernetes: 0, + logs: 0, + }; + } + } + + private static getReport() { + const keys = Object.keys(this.counters); + + // only keep the newest BUCKET_NUMBER buckets + const cutoff = this.getBucket() - this.BUCKET_SIZE * (this.BUCKET_NUMBER - 1); + keys.forEach(key => { + if (parseInt(key, 10) < cutoff) { + delete this.counters[key]; + } + }); + + // all remaining buckets are current + const sums = Object.keys(this.counters).reduce( + (a: InfraopsSum, b: any) => { + const key = parseInt(b, 10); + return { + infraopsHosts: a.infraopsHosts + this.counters[key].infraopsHosts, + infraopsDocker: a.infraopsDocker + this.counters[key].infraopsDocker, + infraopsKubernetes: a.infraopsKubernetes + this.counters[key].infraopsKubernetes, + logs: a.logs + this.counters[key].logs, + }; + }, + { + infraopsHosts: 0, + infraopsDocker: 0, + infraopsKubernetes: 0, + logs: 0, + } + ); + + return { + last_24_hours: { + hits: { + infraops_hosts: sums.infraopsHosts, + infraops_docker: sums.infraopsDocker, + infraops_kubernetes: sums.infraopsKubernetes, + logs: sums.logs, + }, + }, + }; + } +} diff --git a/x-pack/plugins/infra/server/utils/README.md b/x-pack/plugins/infra/server/utils/README.md new file mode 100644 index 0000000000000..8a6a27aa29867 --- /dev/null +++ b/x-pack/plugins/infra/server/utils/README.md @@ -0,0 +1 @@ +Utils should be data processing functions and other tools.... all in all utils is basicly everything that is not an adaptor, or presenter and yet too much to put in a lib. \ No newline at end of file diff --git a/x-pack/plugins/infra/server/utils/serialized_query.ts b/x-pack/plugins/infra/server/utils/serialized_query.ts new file mode 100644 index 0000000000000..932df847e65d0 --- /dev/null +++ b/x-pack/plugins/infra/server/utils/serialized_query.ts @@ -0,0 +1,34 @@ +/* + * 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 { UserInputError } from 'apollo-server-errors'; + +import { JsonObject } from '../../common/typed_json'; + +export const parseFilterQuery = ( + filterQuery: string | null | undefined +): JsonObject | undefined => { + try { + if (filterQuery) { + const parsedFilterQuery = JSON.parse(filterQuery); + if ( + !parsedFilterQuery || + ['string', 'number', 'boolean'].includes(typeof parsedFilterQuery) || + Array.isArray(parsedFilterQuery) + ) { + throw new Error('expected value to be an object'); + } + return parsedFilterQuery; + } else { + return undefined; + } + } catch (err) { + throw new UserInputError(`Failed to parse query: ${err}`, { + query: filterQuery, + originalError: err, + }); + } +}; diff --git a/x-pack/plugins/infra/types/eui.d.ts b/x-pack/plugins/infra/types/eui.d.ts new file mode 100644 index 0000000000000..8b6c2c07cecd2 --- /dev/null +++ b/x-pack/plugins/infra/types/eui.d.ts @@ -0,0 +1,176 @@ +/* + * 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. + */ + +/** + * /!\ These type definitions are temporary until the upstream @elastic/eui + * package includes them. + */ + +import { CommonProps, EuiToolTipPosition } from '@elastic/eui'; +import moment from 'moment'; +import { MouseEventHandler, ReactType, Ref } from 'react'; +import { ReactDatePickerProps } from 'react-datepicker'; +import { JsonObject } from '../common/typed_json'; + +declare module '@elastic/eui' { + export interface EuiBreadcrumbDefinition { + text: React.ReactNode; + href?: string; + onClick?: React.MouseEventHandler; + } + type EuiBreadcrumbsProps = CommonProps & { + responsive?: boolean; + truncate?: boolean; + max?: number; + breadcrumbs: EuiBreadcrumbDefinition[]; + }; + + type EuiHeaderProps = CommonProps; + export const EuiHeader: React.SFC; + + export type EuiHeaderSectionSide = 'left' | 'right'; + type EuiHeaderSectionProps = CommonProps & { + side?: EuiHeaderSectionSide; + }; + export const EuiHeaderSection: React.SFC; + + type EuiHeaderBreadcrumbsProps = EuiBreadcrumbsProps; + export const EuiHeaderBreadcrumbs: React.SFC; + + type EuiDatePickerProps = CommonProps & + Pick< + ReactDatePickerProps, + Exclude< + keyof ReactDatePickerProps, + | 'monthsShown' + | 'showWeekNumbers' + | 'fixedHeight' + | 'dropdownMode' + | 'useShortMonthInDropdown' + | 'todayButton' + | 'timeCaption' + | 'disabledKeyboardNavigation' + | 'isClearable' + | 'withPortal' + | 'ref' + | 'placeholderText' + | 'selected' + > + > & { + fullWidth?: boolean; + inputRef?: Ref; + injectTimes?: moment.Moment[]; + isInvalid?: boolean; + isLoading?: boolean; + selected?: moment.Moment | null | undefined; + placeholder?: string; + shadow?: boolean; + calendarContainer?: React.ReactNode; + onChange?: (date: moment.Moment | null) => void; + startDate?: moment.Moment | undefined; + endDate?: moment.Moment | undefined; + }; + export const EuiDatePicker: React.SFC; + + type EuiFilterGroupProps = CommonProps; + export const EuiFilterGroup: React.SFC; + + type EuiFilterButtonProps = CommonProps & { + color?: ButtonColor; + href?: string; + iconSide?: ButtonIconSide; + iconType?: IconType; + isDisabled?: boolean; + isSelected?: boolean; + onClick: MouseEventHandler; + rel?: string; + target?: string; + type?: string; + }; + export const EuiFilterButton: React.SFC; + + interface EuiOutsideClickDetectorProps { + children: React.ReactNode; + isDisabled?: boolean; + onOutsideClick: React.MouseEventHandler; + } + export const EuiOutsideClickDetector: React.SFC; + + interface EuiFormControlLayoutIconProps { + type: IconType; + side?: 'left' | 'right'; + onClick?: React.MouseEventHandler; + } + + interface EuiFormControlLayoutClearIconProps { + onClick?: React.MouseEventHandler; + } + + type EuiFormControlLayoutProps = CommonProps & { + icon?: string | EuiFormControlLayoutIconProps; + clear?: EuiFormControlLayoutClearIconProps; + fullWidth?: boolean; + isLoading?: boolean; + compressed?: boolean; + prepend?: React.ReactNode; + append?: React.ReactNode; + }; + export const EuiFormControlLayout: React.SFC; + + type EuiSideNavProps = CommonProps & { + style?: any; + items: Array<{ + id: string | number; + name: string; + items: Array<{ + id: string; + name: string; + onClick: () => void; + }>; + }>; + mobileTitle?: React.ReactNode; + toggleOpenOnMobile?: () => void; + isOpenOnMobile?: boolean; + }; + export const EuiSideNav: React.SFC; + + type EuiErrorBoundaryProps = CommonProps & { + children: React.ReactNode; + }; + + export const EuiErrorBoundary: React.SFC; + + type EuiSizesResponsive = 'xs' | 's' | 'm' | 'l' | 'xl'; + type EuiResponsiveProps = CommonProps & { + children: React.ReactNode; + sizes: EuiSizesResponsive[]; + }; + + export const EuiHideFor: React.SFC; + + export const EuiShowFor: React.SFC; + + type EuiDatePickerRangeProps = CommonProps & { + startDateControl: React.ReactNode; + endDateControl: React.ReactNode; + iconType?: IconType | boolean; + fullWidth?: boolean; + disabled?: boolean; + isLoading?: boolean; + dateFormat?: string; + }; + + export const EuiDatePickerRange: React.SFC; + + export type EuiBetaBadgeProps = CommonProps & { + iconType?: IconType; + label: React.ReactNode; + title?: string; + tooltipContent?: React.ReactNode; + tooltipPosition?: EuiToolTipPosition; + }; + export const EuiBetaBadge: React.SFC; +} diff --git a/x-pack/plugins/infra/types/eui_experimental.d.ts b/x-pack/plugins/infra/types/eui_experimental.d.ts new file mode 100644 index 0000000000000..3e016f491e555 --- /dev/null +++ b/x-pack/plugins/infra/types/eui_experimental.d.ts @@ -0,0 +1,67 @@ +/* + * 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. + */ + +declare module '@elastic/eui/lib/experimental' { + import { CommonProps } from '@elastic/eui'; + export type EuiSeriesChartProps = CommonProps & { + xType?: string; + stackBy?: string; + statusText?: string; + yDomain?: number[]; + showCrosshair?: boolean; + showDefaultAxis?: boolean; + enableSelectionBrush?: boolean; + crosshairValue?: number; + onSelectionBrushEnd?: (args: any) => void; + onCrosshairUpdate?: (crosshairValue: number) => void; + }; + export const EuiSeriesChart: React.SFC; + + type EuiSeriesProps = CommonProps & { + data: Array<{ x: number; y: number; y0?: number }>; + lineSize?: number; + name: string; + color?: string; + marginLeft?: number; + }; + export const EuiLineSeries: React.SFC; + export const EuiAreaSeries: React.SFC; + export const EuiBarSeries: React.SFC; + + type EuiYAxisProps = CommonProps & { + tickFormat: (value: number) => string; + marginLeft?: number; + }; + export const EuiYAxis: React.SFC; + + type EuiXAxisProps = CommonProps & { + tickFormat?: (value: number) => string; + marginLeft?: number; + }; + export const EuiXAxis: React.SFC; + + export interface EuiDataPoint { + seriesIndex: number; + x: number; + y: number; + originalValues: { + x: number; + y: number; + x0?: number; + }; + } + + export interface EuiFormattedValue { + title: any; + value: any; + } + type EuiCrosshairXProps = CommonProps & { + seriesNames: string[]; + titleFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue | undefined; + itemsFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue[]; + }; + export const EuiCrosshairX: React.SFC; +} diff --git a/x-pack/plugins/infra/types/graphql_fields.d.ts b/x-pack/plugins/infra/types/graphql_fields.d.ts new file mode 100644 index 0000000000000..11d26e913015c --- /dev/null +++ b/x-pack/plugins/infra/types/graphql_fields.d.ts @@ -0,0 +1,10 @@ +/* + * 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. + */ + +declare module 'graphql-fields' { + function graphqlFields(info: any, obj?: any): any; + export default graphqlFields; +} diff --git a/x-pack/plugins/infra/types/redux_observable.d.ts b/x-pack/plugins/infra/types/redux_observable.d.ts new file mode 100644 index 0000000000000..6813c4bf6a054 --- /dev/null +++ b/x-pack/plugins/infra/types/redux_observable.d.ts @@ -0,0 +1,85 @@ +/* + * 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 { Action, MiddlewareAPI } from 'redux'; +import { ActionsObservable, Epic } from 'redux-observable'; +import { Observable } from 'rxjs'; + +declare module 'redux-observable' { + function combineEpics< + T1 extends Action, + T2 extends Action, + O1 extends T1, + O2 extends T2, + S, + D1, + D2 + >(epic1: Epic, epic2: Epic): Epic; + function combineEpics< + T1 extends Action, + T2 extends Action, + T3 extends Action, + O1 extends T1, + O2 extends T2, + O3 extends T3, + S, + D1, + D2, + D3 + >( + epic1: Epic, + epic2: Epic, + epic3: Epic + ): Epic; + function combineEpics< + T1 extends Action, + T2 extends Action, + T3 extends Action, + T4 extends Action, + O1 extends T1, + O2 extends T2, + O3 extends T3, + O4 extends T4, + S, + D1, + D2, + D3, + D4 + >( + epic1: Epic, + epic2: Epic, + epic3: Epic, + epic4: Epic + ): Epic; + function combineEpics< + T1 extends Action, + T2 extends Action, + T3 extends Action, + T4 extends Action, + T5 extends Action, + O1 extends T1, + O2 extends T2, + O3 extends T3, + O4 extends T4, + O5 extends T5, + S, + D1, + D2, + D3, + D4, + D5 + >( + epic1: Epic, + epic2: Epic, + epic3: Epic, + epic4: Epic, + epic5: Epic + ): Epic; + + type EpicWithState = E extends Epic + ? Epic + : E; +} diff --git a/x-pack/plugins/infra/types/rison_node.d.ts b/x-pack/plugins/infra/types/rison_node.d.ts new file mode 100644 index 0000000000000..5448c4bcd74a9 --- /dev/null +++ b/x-pack/plugins/infra/types/rison_node.d.ts @@ -0,0 +1,24 @@ +/* + * 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. + */ +// tslint:disable:variable-name + +declare module 'rison-node' { + export type RisonValue = null | boolean | number | string | RisonObject | RisonArray; + + export interface RisonArray extends Array {} + + export interface RisonObject { + [key: string]: RisonValue; + } + + export const decode: (input: string) => RisonValue; + + export const decode_object: (input: string) => RisonObject; + + export const encode: (input: Input) => string; + + export const encode_object: (input: Input) => string; +} diff --git a/x-pack/plugins/license_management/__jest__/__snapshots__/add_license.test.js.snap b/x-pack/plugins/license_management/__jest__/__snapshots__/add_license.test.js.snap index 911966fa9ebbc..c6aeef84094b0 100644 --- a/x-pack/plugins/license_management/__jest__/__snapshots__/add_license.test.js.snap +++ b/x-pack/plugins/license_management/__jest__/__snapshots__/add_license.test.js.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AddLicense component when license is active should display correct verbiage 1`] = `"
      Update your license

      If you already have a new license, upload it now.

      Update license
      "`; +exports[`AddLicense component when license is active should display correct verbiage 1`] = `"
      Update your license

      If you already have a new license, upload it now.

      Update license
      "`; -exports[`AddLicense component when license is expired should display with correct verbiage 1`] = `"
      Update your license

      If you already have a new license, upload it now.

      Update license
      "`; +exports[`AddLicense component when license is expired should display with correct verbiage 1`] = `"
      Update your license

      If you already have a new license, upload it now.

      Update license
      "`; diff --git a/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap b/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap index 4b9e830539cb8..0d6dcc686bea7 100644 --- a/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap +++ b/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`LicenseStatus component should display display warning is expired 1`] = `"

      Your Platinum license has expired

      Your license expired on
      "`; +exports[`LicenseStatus component should display display warning is expired 1`] = `"

      Your Platinum license has expired

      Your license expired on
      "`; -exports[`LicenseStatus component should display normally when license is active 1`] = `"

      Your Gold license is active

      Your license will expire on October 12, 2099 7:00 PM EST
      "`; +exports[`LicenseStatus component should display normally when license is active 1`] = `"

      Your Gold license is active

      Your license will expire on October 12, 2099 7:00 PM EST
      "`; diff --git a/x-pack/plugins/license_management/__jest__/__snapshots__/request_trial_extension.test.js.snap b/x-pack/plugins/license_management/__jest__/__snapshots__/request_trial_extension.test.js.snap index 15e3d623baf11..c27bfcd83014c 100644 --- a/x-pack/plugins/license_management/__jest__/__snapshots__/request_trial_extension.test.js.snap +++ b/x-pack/plugins/license_management/__jest__/__snapshots__/request_trial_extension.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`RequestTrialExtension component should display when license is active and trial has been used 1`] = `"
      Extend your trial

      If you’d like to continuing using security, machine learning, and our other awesome Platinum features, request an extension now.

      Extend trial
      "`; +exports[`RequestTrialExtension component should display when license is active and trial has been used 1`] = `"
      Extend your trial

      If you’d like to continuing using security, machine learning, and our other awesome Platinum features, request an extension now.

      Extend trial
      "`; -exports[`RequestTrialExtension component should display when license is not active and trial has been used 1`] = `"
      Extend your trial

      If you’d like to continuing using security, machine learning, and our other awesome Platinum features, request an extension now.

      Extend trial
      "`; +exports[`RequestTrialExtension component should display when license is not active and trial has been used 1`] = `"
      Extend your trial

      If you’d like to continuing using security, machine learning, and our other awesome Platinum features, request an extension now.

      Extend trial
      "`; -exports[`RequestTrialExtension component should display when platinum license is not active and trial has been used 1`] = `"
      Extend your trial

      If you’d like to continuing using security, machine learning, and our other awesome Platinum features, request an extension now.

      Extend trial
      "`; +exports[`RequestTrialExtension component should display when platinum license is not active and trial has been used 1`] = `"
      Extend your trial

      If you’d like to continuing using security, machine learning, and our other awesome Platinum features, request an extension now.

      Extend trial
      "`; diff --git a/x-pack/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap b/x-pack/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap index 59d12b9414dea..5ffef326a6277 100644 --- a/x-pack/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap +++ b/x-pack/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap @@ -1,15 +1,105 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`TelemetryOptIn should display when telemetry not opted in 1`] = ` - +

      - Gold and platinum customers: help support give you better service. + + Gold and platinum customers: help support give you better service. +

      @@ -28,54 +118,77 @@ exports[`TelemetryOptIn should display when telemetry not opted in 1`] = ` indeterminate={false} label={ - Send basic feature usage statistics to Elastic periodically. - - Read more - - } - className="licenseManagement__baseline" - closePopover={[Function]} - hasArrow={true} - id="readMorePopover" - isOpen={false} - ownFocus={true} - panelPaddingSize="m" - > - -

      - This feature periodically sends basic feature usage statistics. This information will not be shared outside of Elastic. See an - - example - - - or read our - - + + + } + className="eui-AlignBaseline" + closePopover={[Function]} + hasArrow={true} + id="readMorePopover" + isOpen={false} + ownFocus={true} + panelPaddingSize="m" > - telemetry privacy statement - - . You can disable this feature any time. -

      -
      -
      + +

      + + + , + "telemetryPrivacyStatementLink": + + , + } + } + /> +

      +
      + , + } + } + />
      } onChange={[Function]} @@ -99,55 +212,137 @@ exports[`TelemetryOptIn should display when telemetry not opted in 1`] = ` htmlFor="isOptingInToTelemetry" > - Send basic feature usage statistics to Elastic periodically. - - Read more - + + + + } + className="eui-AlignBaseline" + closePopover={[Function]} + hasArrow={true} + id="readMorePopover" + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > + +

      + + + , + "telemetryPrivacyStatementLink": + + , + } + } + /> +

      +
      +
      , + } } - className="licenseManagement__baseline" - closePopover={[Function]} - hasArrow={true} - id="readMorePopover" - isOpen={false} - ownFocus={true} - panelPaddingSize="m" > - + + + } + className="eui-AlignBaseline" + closePopover={[Function]} + hasArrow={true} + id="readMorePopover" + isOpen={false} + ownFocus={true} + panelPaddingSize="m" > -
      - - - + + +
      - -
      - + + +
      @@ -155,4 +350,89 @@ exports[`TelemetryOptIn should display when telemetry not opted in 1`] = `
      `; -exports[`TelemetryOptIn should not display when telemetry is opted in 1`] = ``; +exports[`TelemetryOptIn should not display when telemetry is opted in 1`] = ` + +`; diff --git a/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap b/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap index 7797959293a36..28065c734829e 100644 --- a/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap +++ b/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap @@ -2,6 +2,88 @@ exports[`UploadLicense should display a modal when license requires acknowledgement 1`] = `

      - Upload your license + + Upload your license +

      + } + confirmButtonText={ + + } onCancel={[Function]} onConfirm={[Function]} - title="Confirm License Upload" + title={ + + } > @@ -175,7 +281,13 @@ exports[`UploadLicense should display a modal when license requires acknowledgem className="euiModalHeader__title" data-test-subj="confirmModalTitleText" > - Confirm License Upload + + Confirm License Upload + @@ -187,28 +299,29 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
      - Some functionality will be lost if you replace your - TRIAL license with a - BASIC license. Review the list of features below. + Some functionality will be lost if you replace your TRIAL license with a BASIC license. Review the list of features below.
      • - Cancel + + Cancel + @@ -274,7 +393,13 @@ exports[`UploadLicense should display a modal when license requires acknowledgem - Confirm + + Confirm + @@ -290,18 +415,36 @@ exports[`UploadLicense should display a modal when license requires acknowledgem

        - Your license key is a JSON file with a signature attached. + + Your license key is a JSON file with a signature attached. +

        - Uploading a license will replace your current - - - license. + + + , + } + } + > + Uploading a license will replace your current + + license. +

        @@ -321,14 +464,21 @@ exports[`UploadLicense should display a modal when license requires acknowledgem >
        + } onChange={[Function]} >
        - Select or drag your license file + + Select or drag your license file +
      @@ -450,7 +606,13 @@ exports[`UploadLicense should display a modal when license requires acknowledgem - Cancel + + Cancel + @@ -485,7 +647,13 @@ exports[`UploadLicense should display a modal when license requires acknowledgem - Upload + + Upload + @@ -508,6 +676,88 @@ exports[`UploadLicense should display a modal when license requires acknowledgem exports[`UploadLicense should display an error when ES says license is expired 1`] = `

      - Upload your license + + Upload your license +

      - Your license key is a JSON file with a signature attached. + + Your license key is a JSON file with a signature attached. +

      - Uploading a license will replace your current - - - license. + + + , + } + } + > + Uploading a license will replace your current + + license. +

      @@ -638,18 +913,25 @@ exports[`UploadLicense should display an error when ES says license is expired 1
      + } onChange={[Function]} >
      - Select or drag your license file + + Select or drag your license file +
      + + +
      @@ -767,7 +1081,13 @@ exports[`UploadLicense should display an error when ES says license is expired 1 - Cancel + + Cancel + @@ -802,7 +1122,13 @@ exports[`UploadLicense should display an error when ES says license is expired 1 - Upload + + Upload + @@ -825,6 +1151,88 @@ exports[`UploadLicense should display an error when ES says license is expired 1 exports[`UploadLicense should display an error when ES says license is invalid 1`] = `

      - Upload your license + + Upload your license +

      - Your license key is a JSON file with a signature attached. + + Your license key is a JSON file with a signature attached. +

      - Uploading a license will replace your current - - - license. + + + , + } + } + > + Uploading a license will replace your current + + license. +

      @@ -955,18 +1388,25 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
      + } onChange={[Function]} >
      - Select or drag your license file + + Select or drag your license file +
      + + +
      @@ -1084,7 +1556,13 @@ exports[`UploadLicense should display an error when ES says license is invalid 1 - Cancel + + Cancel + @@ -1119,7 +1597,13 @@ exports[`UploadLicense should display an error when ES says license is invalid 1 - Upload + + Upload + @@ -1142,6 +1626,88 @@ exports[`UploadLicense should display an error when ES says license is invalid 1 exports[`UploadLicense should display an error when submitting invalid JSON 1`] = `

      - Upload your license + + Upload your license +

      - Your license key is a JSON file with a signature attached. + + Your license key is a JSON file with a signature attached. +

      - Uploading a license will replace your current - - - license. + + + , + } + } + > + Uploading a license will replace your current + + license. +

      @@ -1272,18 +1863,25 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
      + } onChange={[Function]} >
      - Select or drag your license file + + Select or drag your license file +
      + + +
      @@ -1401,7 +2031,13 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`] - Cancel + + Cancel + @@ -1436,7 +2072,13 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`] - Upload + + Upload + @@ -1459,6 +2101,88 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`] exports[`UploadLicense should display error when ES returns error 1`] = `

      - Upload your license + + Upload your license +

      - Your license key is a JSON file with a signature attached. + + Your license key is a JSON file with a signature attached. +

      - Uploading a license will replace your current - - - license. + + + , + } + } + > + Uploading a license will replace your current + + license. +

      @@ -1589,18 +2338,25 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
      + } onChange={[Function]} >
      - Select or drag your license file + + Select or drag your license file +
      + + +
      @@ -1718,7 +2506,13 @@ exports[`UploadLicense should display error when ES returns error 1`] = ` - Cancel + + Cancel + @@ -1753,7 +2547,13 @@ exports[`UploadLicense should display error when ES returns error 1`] = ` - Upload + + Upload + diff --git a/x-pack/plugins/license_management/__jest__/telemetry_opt_in.test.js b/x-pack/plugins/license_management/__jest__/telemetry_opt_in.test.js index d347f0895b032..3ed9a11d6d9b7 100644 --- a/x-pack/plugins/license_management/__jest__/telemetry_opt_in.test.js +++ b/x-pack/plugins/license_management/__jest__/telemetry_opt_in.test.js @@ -5,18 +5,19 @@ */ import React from 'react'; import { TelemetryOptIn } from '../public/components/telemetry_opt_in'; -import { mount } from 'enzyme'; +import { mountWithIntl } from '../../../test_utils/enzyme_helpers'; + describe('TelemetryOptIn', () => { test('should display when telemetry not opted in', () => { const telemetry = require('../public/lib/telemetry'); telemetry.showTelemetryOptIn = () => { return true; }; - const rendered = mount(); + const rendered = mountWithIntl(); expect(rendered).toMatchSnapshot(); }); test('should not display when telemetry is opted in', () => { const telemetry = require('../public/lib/telemetry'); telemetry.showTelemetryOptIn = () => { return false; }; - const rendered = mount(); + const rendered = mountWithIntl(); expect(rendered).toMatchSnapshot(); }); }); \ No newline at end of file diff --git a/x-pack/plugins/license_management/__jest__/upload_license.test.js b/x-pack/plugins/license_management/__jest__/upload_license.test.js index 19ec3eee762bf..9df68f10b2dd3 100644 --- a/x-pack/plugins/license_management/__jest__/upload_license.test.js +++ b/x-pack/plugins/license_management/__jest__/upload_license.test.js @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { mount } from 'enzyme'; +import { mountWithIntl } from '../../../test_utils/enzyme_helpers'; import React from 'react'; import { Provider } from 'react-redux'; import { uploadLicense } from '../public/store/actions/upload_license'; @@ -54,13 +54,13 @@ describe('UploadLicense', () => { services.kbnUrl.change.mockReset(); }); it('should display an error when submitting invalid JSON', async () => { - const rendered = mount(component); + const rendered = mountWithIntl(component); store.dispatch(uploadLicense('INVALID', 'trial')); rendered.update(); expect(rendered).toMatchSnapshot(); }); it('should display an error when ES says license is invalid', async () => { - const rendered = mount(component); + const rendered = mountWithIntl(component); const invalidLicense = JSON.stringify({ license: { type: 'basic' } }); server.respond(UPLOAD_LICENSE_INVALID); await uploadLicense(invalidLicense)(store.dispatch, null, services); @@ -68,7 +68,7 @@ describe('UploadLicense', () => { expect(rendered).toMatchSnapshot(); }); it('should display an error when ES says license is expired', async () => { - const rendered = mount(component); + const rendered = mountWithIntl(component); const invalidLicense = JSON.stringify({ license: { type: 'basic' } }); server.respond(UPLOAD_LICENSE_EXPIRED); await uploadLicense(invalidLicense)(store.dispatch, null, services); @@ -85,7 +85,7 @@ describe('UploadLicense', () => { null, services ); - const rendered = mount(component); + const rendered = mountWithIntl(component); expect(rendered).toMatchSnapshot(); }); it('should refresh xpack info and navigate to BASE_PATH when ES accepts new license', async () => { @@ -96,7 +96,7 @@ describe('UploadLicense', () => { expect(services.kbnUrl.change).toHaveBeenCalledWith(BASE_PATH); }); it('should display error when ES returns error', async () => { - const rendered = mount(component); + const rendered = mountWithIntl(component); const license = JSON.stringify({ license: { type: 'basic' } }); server.respond(UPLOAD_LICENSE_TLS_NOT_ENABLED); await uploadLicense(license)(store.dispatch, null, services); diff --git a/x-pack/plugins/license_management/__jest__/util/util.js b/x-pack/plugins/license_management/__jest__/util/util.js index 6da519777cc32..f8aa87a8f3d9e 100644 --- a/x-pack/plugins/license_management/__jest__/util/util.js +++ b/x-pack/plugins/license_management/__jest__/util/util.js @@ -7,7 +7,7 @@ import { Provider } from 'react-redux'; import { licenseManagementStore } from '../../public/store/store'; import React from 'react'; -import { mount } from 'enzyme'; +import { mountWithIntl } from '../../../../test_utils/enzyme_helpers'; const highExpirationMillis = new Date('October 13, 2099 00:00:00Z').getTime(); @@ -23,7 +23,7 @@ export const createMockLicense = ( }; export const getComponent = (initialState, Component) => { const store = licenseManagementStore(initialState); - return mount( + return mountWithIntl( diff --git a/x-pack/plugins/license_management/index.js b/x-pack/plugins/license_management/index.js index 887bad0416d94..1f0748d10d52d 100644 --- a/x-pack/plugins/license_management/index.js +++ b/x-pack/plugins/license_management/index.js @@ -14,6 +14,7 @@ export function licenseManagement(kibana) { publicDir: resolve(__dirname, 'public'), require: ['kibana', 'elasticsearch'], uiExports: { + styleSheetPaths: `${__dirname}/public/index.scss`, managementSections: [ 'plugins/license_management', ] diff --git a/x-pack/plugins/license_management/public/_license_management.scss b/x-pack/plugins/license_management/public/_license_management.scss new file mode 100644 index 0000000000000..af15d40c7b5b7 --- /dev/null +++ b/x-pack/plugins/license_management/public/_license_management.scss @@ -0,0 +1,23 @@ +.licFeature { + flex-grow: 1; + background: $euiColorLightestShade; + min-height: 100vh; +} + +.licManagement__pageBody { + padding-top: $euiSizeL; + min-height: auto; +} + +// EUITODO: Fix modal width/max-width +.licManagement__modal { + width: 70vw; +} + +.licManagement__narrowText { + width: 240px; +} + +.licManagement__ieFlex { + flex-shrink: 0; +} diff --git a/x-pack/plugins/license_management/public/app.js b/x-pack/plugins/license_management/public/app.js index c7b20c94a5cd3..f76543423693e 100644 --- a/x-pack/plugins/license_management/public/app.js +++ b/x-pack/plugins/license_management/public/app.js @@ -14,8 +14,8 @@ import { } from '@elastic/eui'; export default () => ( - - + + diff --git a/x-pack/plugins/license_management/public/components/telemetry_opt_in/telemetry_opt_in.js b/x-pack/plugins/license_management/public/components/telemetry_opt_in/telemetry_opt_in.js index 1aff356e50f6b..3aa14ca9ec17d 100644 --- a/x-pack/plugins/license_management/public/components/telemetry_opt_in/telemetry_opt_in.js +++ b/x-pack/plugins/license_management/public/components/telemetry_opt_in/telemetry_opt_in.js @@ -13,6 +13,7 @@ import { EuiPopover } from '@elastic/eui'; import { showTelemetryOptIn, getTelemetryFetcher, PRIVACY_STATEMENT_URL, OptInExampleFlyout } from '../../lib/telemetry'; +import { FormattedMessage } from '@kbn/i18n/react'; export class TelemetryOptIn extends React.Component { constructor() { @@ -60,7 +61,12 @@ export class TelemetryOptIn extends React.Component { toCurrentCustomers = ( -

      Gold and platinum customers: help support give you better service.

      +

      + +

      @@ -69,7 +75,10 @@ export class TelemetryOptIn extends React.Component { const readMoreButton = ( - Read more + ); @@ -80,23 +89,37 @@ export class TelemetryOptIn extends React.Component { button={readMoreButton} isOpen={showMoreTelemetryInfo} closePopover={this.closeReadMorePopover} - className="licenseManagement__baseline" + className="eui-AlignBaseline" > - +

      - This feature periodically sends basic feature usage statistics. - This information will not be shared outside of Elastic. - See an example - {' '} - or read our - {' '} - - telemetry privacy statement - . - You can disable this feature any time. + + + ), + telemetryPrivacyStatementLink: ( + + + + ) + }} + />

      @@ -107,7 +130,17 @@ export class TelemetryOptIn extends React.Component { {example} {toCurrentCustomers} Send basic feature usage statistics to Elastic periodically. {popover}} + label={ + + + + } id="isOptingInToTelemetry" checked={isOptingInToTelemetry} onChange={this.onChangeOptIn} diff --git a/x-pack/plugins/license_management/public/index.js b/x-pack/plugins/license_management/public/index.js index a22685c48136a..79d4f1c431cb5 100644 --- a/x-pack/plugins/license_management/public/index.js +++ b/x-pack/plugins/license_management/public/index.js @@ -5,5 +5,4 @@ */ import './management_section'; -import './register_route'; -import './styles/main.less'; +import './register_route'; \ No newline at end of file diff --git a/x-pack/plugins/license_management/public/index.scss b/x-pack/plugins/license_management/public/index.scss new file mode 100644 index 0000000000000..268372a9498d4 --- /dev/null +++ b/x-pack/plugins/license_management/public/index.scss @@ -0,0 +1,13 @@ +// EUI globals +@import 'ui/public/styles/styling_constants'; + +// License amnagement plugin styles + +// Prefix all styles with "lic" to avoid conflicts. +// Examples +// licChart +// licChart__legend +// licChart__legend--small +// licChart__legend-isLoading + +@import 'license_management'; \ No newline at end of file diff --git a/x-pack/plugins/license_management/public/main.html b/x-pack/plugins/license_management/public/main.html index dd2e2aab37798..310eda8be763a 100644 --- a/x-pack/plugins/license_management/public/main.html +++ b/x-pack/plugins/license_management/public/main.html @@ -1,3 +1,3 @@ -
      +
      diff --git a/x-pack/plugins/license_management/public/management_section.js b/x-pack/plugins/license_management/public/management_section.js index f9ead730b7453..456f7ca4b8297 100644 --- a/x-pack/plugins/license_management/public/management_section.js +++ b/x-pack/plugins/license_management/public/management_section.js @@ -6,10 +6,13 @@ import { management } from 'ui/management'; import { BASE_PATH } from '../common/constants'; +import { i18n } from '@kbn/i18n'; management.getSection('elasticsearch').register('license_management', { visible: true, - display: 'License Management', + display: i18n.translate('xpack.licenseMgmt.managementSectionDisplayName', { + defaultMessage: 'License Management', + }), order: 4, url: `#${BASE_PATH}home` }); diff --git a/x-pack/plugins/license_management/public/register_route.js b/x-pack/plugins/license_management/public/register_route.js index 528c73f7c56d5..edb2542f3b1be 100644 --- a/x-pack/plugins/license_management/public/register_route.js +++ b/x-pack/plugins/license_management/public/register_route.js @@ -9,6 +9,7 @@ import { render, unmountComponentAtNode } from 'react-dom'; import { Provider } from 'react-redux'; import { HashRouter } from 'react-router-dom'; import { setTelemetryOptInService, setTelemetryEnabled, setHttpClient, TelemetryOptInProvider } from './lib/telemetry'; +import { I18nProvider } from '@kbn/i18n/react'; import App from './app'; @@ -22,11 +23,13 @@ import { licenseManagementStore } from './store'; const renderReact = (elem, store) => { render( - - - - - , + + + + + + + , elem ); }; diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/add_license/add_license.js b/x-pack/plugins/license_management/public/sections/license_dashboard/add_license/add_license.js index bd519433a2545..3c0402f974f06 100644 --- a/x-pack/plugins/license_management/public/sections/license_dashboard/add_license/add_license.js +++ b/x-pack/plugins/license_management/public/sections/license_dashboard/add_license/add_license.js @@ -8,19 +8,28 @@ import React from 'react'; import { BASE_PATH } from '../../../../common/constants'; import { EuiCard, EuiButton } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export const AddLicense = ({ uploadPath = `#${BASE_PATH}upload_license` }) => { return ( )} + description={()} footer={ - Update license + } /> diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/license_dashboard.js b/x-pack/plugins/license_management/public/sections/license_dashboard/license_dashboard.js index 2ae0863e96bd3..f5a61613e5bf8 100644 --- a/x-pack/plugins/license_management/public/sections/license_dashboard/license_dashboard.js +++ b/x-pack/plugins/license_management/public/sections/license_dashboard/license_dashboard.js @@ -20,7 +20,7 @@ import { export const LicenseDashboard = () => { return ( -
      +
      diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js index 0a6c6045eee81..a282fdc10ddfb 100644 --- a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js +++ b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js @@ -7,11 +7,19 @@ import { LicenseStatus as PresentationComponent } from './license_status'; import { connect } from 'react-redux'; import { getLicense, getExpirationDateFormatted, isExpired } from '../../../store/reducers/licenseManagement'; +import { i18n } from '@kbn/i18n'; const mapStateToProps = (state) => { const { isActive, type } = getLicense(state); return { - status: isActive ? 'Active' : 'Inactive', + status: isActive ? + i18n.translate('xpack.licenseMgmt.licenseDashboard.licenseStatus.activeLicenseStatusText', { + defaultMessage: 'Active' + }) + : + i18n.translate('xpack.licenseMgmt.licenseDashboard.licenseStatus.inactiveLicenseStatusText', { + defaultMessage: 'Inactive' + }), type, isExpired: isExpired(state), expiryDate: getExpirationDateFormatted(state) diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js index 23fa577534719..1ed0ab0e58e9d 100644 --- a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js +++ b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js @@ -14,6 +14,7 @@ import { EuiTitle, EuiSpacer, } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export class LicenseStatus extends React.PureComponent { render() { @@ -26,20 +27,58 @@ export class LicenseStatus extends React.PureComponent { icon = ; message = ( - Your license expired on {expiryDate} + {expiryDate} + ) + }} + /> ); - title = `Your ${typeTitleCase} license has expired`; + title = ( + + ); } else { icon = ; message = expiryDate ? ( - Your license will expire on {expiryDate} + {expiryDate} + ) + }} + /> ) : ( - Your license will never expire. + + + + ); + title = ( + ); - title = `Your ${typeTitleCase} license is ${status.toLowerCase()}`; } return (
      diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/request_trial_extension/request_trial_extension.js b/x-pack/plugins/license_management/public/sections/license_dashboard/request_trial_extension/request_trial_extension.js index 263023ce2a545..74bd38aa41757 100644 --- a/x-pack/plugins/license_management/public/sections/license_dashboard/request_trial_extension/request_trial_extension.js +++ b/x-pack/plugins/license_management/public/sections/license_dashboard/request_trial_extension/request_trial_extension.js @@ -7,6 +7,7 @@ import React from 'react'; import { EuiFlexItem, EuiCard, EuiLink, EuiButton } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export const RequestTrialExtension = ({ shouldShowRequestTrialExtension }) => { if (!shouldShowRequestTrialExtension) { @@ -14,29 +15,44 @@ export const RequestTrialExtension = ({ shouldShowRequestTrialExtension }) => { } const description = ( - If you’d like to continuing using security, machine learning, and our - other awesome{' '} - - Platinum features - , request an extension now. + + + + ) + }} + /> ); return ( )} description={description} footer={ - Extend trial + } /> diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/revert_to_basic/revert_to_basic.js b/x-pack/plugins/license_management/public/sections/license_dashboard/revert_to_basic/revert_to_basic.js index 811d0598d5273..f873e53d741de 100644 --- a/x-pack/plugins/license_management/public/sections/license_dashboard/revert_to_basic/revert_to_basic.js +++ b/x-pack/plugins/license_management/public/sections/license_dashboard/revert_to_basic/revert_to_basic.js @@ -15,6 +15,7 @@ import { EuiConfirmModal, EuiText } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n/react'; export class RevertToBasic extends React.PureComponent { cancel = () => { @@ -35,11 +36,20 @@ export class RevertToBasic extends React.PureComponent { return ( )} onCancel={cancelStartBasicLicense} onConfirm={() => startBasicLicense(licenseType, true)} - cancelButtonText="Cancel" - confirmButtonText="Confirm" + cancelButtonText={()} + confirmButtonText={()} >
      {firstLine} @@ -64,14 +74,24 @@ export class RevertToBasic extends React.PureComponent { } const description = ( - You’ll revert to our free features and lose access to security, machine - learning and other{' '} - - Platinum features - . + + + + ) + }} + /> ); @@ -79,11 +99,17 @@ export class RevertToBasic extends React.PureComponent { {this.acknowledgeModal()} )} description={description} footer={ startBasicLicense(licenseType)}> - Revert to Basic + } /> diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/start_trial/start_trial.js b/x-pack/plugins/license_management/public/sections/license_dashboard/start_trial/start_trial.js index a5ff9f6c8a9e2..0ba4582816cd6 100644 --- a/x-pack/plugins/license_management/public/sections/license_dashboard/start_trial/start_trial.js +++ b/x-pack/plugins/license_management/public/sections/license_dashboard/start_trial/start_trial.js @@ -25,6 +25,7 @@ import { import { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } from 'ui/documentation_links'; import { TelemetryOptIn } from '../../../components/telemetry_opt_in'; import { optInToTelemetry } from '../../../lib/telemetry'; +import { FormattedMessage } from '@kbn/i18n/react'; const esBase = `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}`; const securityDocumentationLink = `${esBase}/security-settings.html`; @@ -56,12 +57,15 @@ export class StartTrial extends React.PureComponent { return ( - Start your free 30-day trial + @@ -69,40 +73,97 @@ export class StartTrial extends React.PureComponent {

      - This trial is for the full set of{' '} - - Platinum features - of the Elastic Stack. You'll get immediate access to: + + + + ) + }} + />

        -
      • Machine learning
      • -
      • Alerting
      • -
      • Graph capabilities
      • -
      • JDBC connectivity for SQL
      • +
      • + +
      • +
      • + +
      • +
      • + +
      • +
      • + +

      - Security features, such as authentication (native, AD/LDAP, SAML, - PKI), role-based access control, and auditing, require - configuration. See the{' '} - - documentation - {' '} - for instructions. + + + + ) + }} + />

      - By starting this trial, you agree that it is subject to these{' '} - - terms and conditions - . + + + + ) + }} + />

      @@ -114,18 +175,21 @@ export class StartTrial extends React.PureComponent { {this.telemetryOptIn = ref; }}/> - + - + - Cancel + - + - Start my trial + @@ -152,27 +219,42 @@ export class StartTrial extends React.PureComponent { } const description = ( - Experience what security, machine learning, and all our other{' '} - - Platinum features - {' '} - have to offer. + + + + ) + }} + /> ); const footer = ( this.setState({ showConfirmation: true })}> - Start trial + ); return ( {this.acknowledgeModal()} )} description={description} footer={footer} /> diff --git a/x-pack/plugins/license_management/public/sections/upload_license/upload_license.js b/x-pack/plugins/license_management/public/sections/upload_license/upload_license.js index 18e4caa07a6c8..f031a1572b09d 100644 --- a/x-pack/plugins/license_management/public/sections/upload_license/upload_license.js +++ b/x-pack/plugins/license_management/public/sections/upload_license/upload_license.js @@ -23,6 +23,8 @@ import { } from '@elastic/eui'; import { TelemetryOptIn } from '../../components/telemetry_opt_in'; import { optInToTelemetry } from '../../lib/telemetry'; +import { FormattedMessage } from '@kbn/i18n/react'; + export class UploadLicense extends React.PureComponent { componentDidMount() { this.props.addUploadErrorMessage(''); @@ -51,11 +53,20 @@ export class UploadLicense extends React.PureComponent { return ( } onCancel={this.cancel} onConfirm={() => this.send(true)} - cancelButtonText="Cancel" - confirmButtonText="Confirm" + cancelButtonText={} + confirmButtonText={} >
      {firstLine} @@ -89,7 +100,12 @@ export class UploadLicense extends React.PureComponent { if (this.file) { this.send(); } else { - this.props.addUploadErrorMessage('You must select a license file.'); + this.props.addUploadErrorMessage( + + ); } }; render() { @@ -97,7 +113,12 @@ export class UploadLicense extends React.PureComponent { return ( -

      Upload your license

      +

      + +

      @@ -107,10 +128,22 @@ export class UploadLicense extends React.PureComponent { {this.acknowledgeModal()} -

      Your license key is a JSON file with a signature attached.

      - Uploading a license will replace your current{' '} - {currentLicenseType.toUpperCase()} license. + +

      +

      + {currentLicenseType.toUpperCase()} + ) + }} + />

      @@ -118,7 +151,10 @@ export class UploadLicense extends React.PureComponent { } onChange={this.handleFile} /> @@ -131,7 +167,12 @@ export class UploadLicense extends React.PureComponent { - Cancel + + + - {applying ? 'Uploading...' : 'Upload'} + {applying ? + + : } diff --git a/x-pack/plugins/license_management/public/store/actions/start_basic.js b/x-pack/plugins/license_management/public/store/actions/start_basic.js index 831e5993de5e6..23b63edb706ae 100644 --- a/x-pack/plugins/license_management/public/store/actions/start_basic.js +++ b/x-pack/plugins/license_management/public/store/actions/start_basic.js @@ -7,6 +7,7 @@ import { createAction } from 'redux-actions'; import { startBasic } from '../../lib/es'; import { toastNotifications } from 'ui/notify'; +import { i18n } from '@kbn/i18n'; export const startBasicLicenseStatus = createAction( 'LICENSE_MANAGEMENT_START_BASIC_LICENSE_STATUS' @@ -36,9 +37,13 @@ export const startBasicLicense = (currentLicenseType, ack) => async ( const messages = Object.values(acknowledge).slice(1).map((item) => { return item[0]; }); - const first = `Some functionality will be lost if you replace your - ${currentLicenseType.toUpperCase()} license with a - BASIC license. Review the list of features below.`; + const first = i18n.translate('xpack.licenseMgmt.replacingCurrentLicenseWithBasicLicenseWarningMessage', { + //eslint-disable-next-line + defaultMessage: 'Some functionality will be lost if you replace your {currentLicenseType} license with a BASIC license. Review the list of features below.', + values: { + currentLicenseType: currentLicenseType.toUpperCase(), + } + }); dispatch(startBasicLicenseStatus({ acknowledge: true, messages: [ first, ...messages] })); } diff --git a/x-pack/plugins/license_management/public/store/actions/upload_license.js b/x-pack/plugins/license_management/public/store/actions/upload_license.js index fd05c945747b3..f010980c54259 100644 --- a/x-pack/plugins/license_management/public/store/actions/upload_license.js +++ b/x-pack/plugins/license_management/public/store/actions/upload_license.js @@ -9,10 +9,13 @@ import { addLicense } from '../actions/add_license'; import { BASE_PATH } from '../../../common/constants/base_path'; import { putLicense } from '../../lib/es'; import { addUploadErrorMessage } from "./add_error_message"; +import { i18n } from '@kbn/i18n'; export const uploadLicenseStatus = createAction('LICENSE_MANAGEMENT_UPLOAD_LICENSE_STATUS'); -const genericUploadError = 'Error encountered uploading license:'; +const genericUploadError = i18n.translate('xpack.licenseMgmt.uploadLicense.genericUploadErrorMessage', { + defaultMessage: 'Error encountered uploading license:' +}); const dispatchFromResponse = async (response, dispatch, currentLicenseType, newLicenseType, { xPackInfo, kbnUrl }) => { const { error, acknowledged, license_status: licenseStatus, acknowledge } = response; @@ -22,10 +25,14 @@ const dispatchFromResponse = async (response, dispatch, currentLicenseType, newL } else if (acknowledged) { if (licenseStatus === 'invalid') { dispatch(uploadLicenseStatus({})); - dispatch(addUploadErrorMessage('The supplied license is not valid for this product.')); + dispatch(addUploadErrorMessage(i18n.translate('xpack.licenseMgmt.uploadLicense.invalidLicenseErrorMessage', { + defaultMessage: 'The supplied license is not valid for this product.' + }))); } else if (licenseStatus === 'expired') { dispatch(uploadLicenseStatus({})); - dispatch(addUploadErrorMessage('The supplied license has expired.')); + dispatch(addUploadErrorMessage(i18n.translate('xpack.licenseMgmt.uploadLicense.expiredLicenseErrorMessage', { + defaultMessage: 'The supplied license has expired.' + }))); } else { await xPackInfo.refresh(); dispatch(addLicense(xPackInfo.get('license'))); @@ -38,9 +45,14 @@ const dispatchFromResponse = async (response, dispatch, currentLicenseType, newL // first message relates to command line interface, so remove it const messages = Object.values(acknowledge).slice(1); // messages can be in nested arrays - const first = `Some functionality will be lost if you replace your - ${currentLicenseType.toUpperCase()} license with a - ${newLicenseType.toUpperCase()} license. Review the list of features below.`; + const first = i18n.translate('xpack.licenseMgmt.uploadLicense.problemWithUploadedLicenseDescription', { + // eslint-disable-next-line max-len + defaultMessage: 'Some functionality will be lost if you replace your {currentLicenseType} license with a {newLicenseType} license. Review the list of features below.', + values: { + currentLicenseType: currentLicenseType.toUpperCase(), + newLicenseType: newLicenseType.toUpperCase() + } + }); dispatch(uploadLicenseStatus({ acknowledge: true, messages: [ first, ...messages] })); } @@ -53,13 +65,23 @@ export const uploadLicense = (licenseString, currentLicenseType, acknowledge) => ({ type: newLicenseType } = JSON.parse(licenseString).license); } catch (err) { dispatch(uploadLicenseStatus({})); - return dispatch(addUploadErrorMessage(`${genericUploadError} Check your license file.`)); + return dispatch(addUploadErrorMessage( + i18n.translate('xpack.licenseMgmt.uploadLicense.checkLicenseFileErrorMessage', { + defaultMessage: '{genericUploadError} Check your license file.', + values: { + genericUploadError + } + }) + )); } try { const response = await putLicense(licenseString, acknowledge); await dispatchFromResponse(response, dispatch, currentLicenseType, newLicenseType, services); } catch (err) { - const message = (err.responseJSON && err.responseJSON.error.reason) ? err.responseJSON.error.reason : 'Unknown error.'; + const message = (err.responseJSON && err.responseJSON.error.reason) ? err.responseJSON.error.reason : i18n.translate( + 'xpack.licenseMgmt.uploadLicense.unknownErrorErrorMessage', { + defaultMessage: 'Unknown error.' + }); dispatch(uploadLicenseStatus({})); dispatch(addUploadErrorMessage(`${genericUploadError} ${message}`)); } diff --git a/x-pack/plugins/license_management/public/styles/main.less b/x-pack/plugins/license_management/public/styles/main.less deleted file mode 100644 index e38d7b71522da..0000000000000 --- a/x-pack/plugins/license_management/public/styles/main.less +++ /dev/null @@ -1,33 +0,0 @@ -@import (reference) '~ui/styles/variables/colors'; - -.licenseFeature { - flex-grow: 1; - background: @globalColorLightestGray; - min-height: 100vh; -} - -.licenseManagement__pageBody { - padding-top: 24px; - min-height: auto; -} - -// EUITODO: Fix modal width/max-width -.licenseManagement__modal { - width: 70vw; - - @media only screen and (max-width: 767px) { - width: ~"calc(100vw + 2px)"; - } -} -.licenseManagement__baseline { - vertical-align: baseline; -} -.licenseManagement__narrowText { - width: 240px; -} -.licenseManagement__marginTop { - margin-top: auto; -} -.licenseManagement__ieFlex { - flex-shrink: 0; -} diff --git a/x-pack/plugins/license_management/server/lib/wrap_es_error.js b/x-pack/plugins/license_management/server/lib/wrap_es_error.js index 5dfe29fcdad11..2e639f9912b6d 100644 --- a/x-pack/plugins/license_management/server/lib/wrap_es_error.js +++ b/x-pack/plugins/license_management/server/lib/wrap_es_error.js @@ -16,7 +16,7 @@ import Boom from 'boom'; export function wrapEsError(err) { const statusCode = err.statusCode; if (statusCode === 403) { - return Boom.forbidden('Insufficient user permissions for adding a license.'); + throw Boom.forbidden('Insufficient user permissions for adding a license.'); } - return Boom.boomify(err, err.statusCode); + throw Boom.boomify(err, err.statusCode); } diff --git a/x-pack/plugins/license_management/server/routes/api/license/register_license_route.js b/x-pack/plugins/license_management/server/routes/api/license/register_license_route.js index f311d72ed10e8..e70e61ab07e6b 100644 --- a/x-pack/plugins/license_management/server/routes/api/license/register_license_route.js +++ b/x-pack/plugins/license_management/server/routes/api/license/register_license_route.js @@ -12,9 +12,9 @@ export function registerLicenseRoute(server) { server.route({ path: '/api/license', method: 'PUT', - handler: (request, reply) => { + handler: (request) => { return putLicense(request, xpackInfo) - .then(reply, e => reply(wrapEsError(e))); + .catch(e => wrapEsError(e)); } }); } diff --git a/x-pack/plugins/license_management/server/routes/api/license/register_start_basic_route.js b/x-pack/plugins/license_management/server/routes/api/license/register_start_basic_route.js index 2f4400a4155e4..0dbe46ca106f2 100644 --- a/x-pack/plugins/license_management/server/routes/api/license/register_start_basic_route.js +++ b/x-pack/plugins/license_management/server/routes/api/license/register_start_basic_route.js @@ -12,9 +12,9 @@ export function registerStartBasicRoute(server) { server.route({ path: '/api/license/start_basic', method: 'POST', - handler: (request, reply) => { + handler: (request) => { return startBasic(request, xpackInfo) - .then(reply, e => reply(wrapEsError(e))); + .catch(e => wrapEsError(e)); } }); } diff --git a/x-pack/plugins/license_management/server/routes/api/license/register_start_trial_routes.js b/x-pack/plugins/license_management/server/routes/api/license/register_start_trial_routes.js index ef20cfdf5b9f0..43b3ffef9c301 100644 --- a/x-pack/plugins/license_management/server/routes/api/license/register_start_trial_routes.js +++ b/x-pack/plugins/license_management/server/routes/api/license/register_start_trial_routes.js @@ -12,17 +12,17 @@ export function registerStartTrialRoutes(server) { server.route({ path: '/api/license/start_trial', method: 'GET', - handler: (request, reply) => { + handler: (request) => { return canStartTrial(request) - .then(reply, e => reply(wrapEsError(e))); + .catch(e => wrapEsError(e)); } }); server.route({ path: '/api/license/start_trial', method: 'POST', - handler: (request, reply) => { + handler: (request) => { return startTrial(request, xpackInfo) - .then(reply, e => reply(wrapEsError(e))); + .catch(e => wrapEsError(e)); } }); } diff --git a/x-pack/plugins/logstash/README.md b/x-pack/plugins/logstash/README.md old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/editor.js b/x-pack/plugins/logstash/common/constants/editor.js deleted file mode 100644 index 5da0cc2bc156a..0000000000000 --- a/x-pack/plugins/logstash/common/constants/editor.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * 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 = { - /* - * The space between the top of the editor's first-line characters - * and the top border of the editor. - */ - PIPELINE_EDITOR_SCROLL_MARGIN_TOP_PX: 4, - - /* - * The space between the bottom of the editor's last-line characters - * and the bottom border of the editor. - */ - PIPELINE_EDITOR_SCROLL_MARGIN_BOTTOM_PX: 12, -}; diff --git a/x-pack/plugins/logstash/common/constants/es_scroll_settings.js b/x-pack/plugins/logstash/common/constants/es_scroll_settings.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/index.js b/x-pack/plugins/logstash/common/constants/index.js old mode 100644 new mode 100755 index c016e505045ee..03a6b4e08d9f4 --- a/x-pack/plugins/logstash/common/constants/index.js +++ b/x-pack/plugins/logstash/common/constants/index.js @@ -13,4 +13,3 @@ export { ES_SCROLL_SETTINGS } from './es_scroll_settings'; export { TOOLTIPS } from './tooltips'; export { PIPELINE } from './pipeline'; export { MONITORING } from './monitoring'; -export { EDITOR } from './editor'; diff --git a/x-pack/plugins/logstash/common/constants/index_names.js b/x-pack/plugins/logstash/common/constants/index_names.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/monitoring.js b/x-pack/plugins/logstash/common/constants/monitoring.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/pagination.js b/x-pack/plugins/logstash/common/constants/pagination.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/pipeline.js b/x-pack/plugins/logstash/common/constants/pipeline.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/plugin.js b/x-pack/plugins/logstash/common/constants/plugin.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/routes.js b/x-pack/plugins/logstash/common/constants/routes.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/tooltips.js b/x-pack/plugins/logstash/common/constants/tooltips.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/constants/type_names.js b/x-pack/plugins/logstash/common/constants/type_names.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/lib/__tests__/get_moment.js b/x-pack/plugins/logstash/common/lib/__tests__/get_moment.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/lib/get_moment.js b/x-pack/plugins/logstash/common/lib/get_moment.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/common/lib/index.js b/x-pack/plugins/logstash/common/lib/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/index.js b/x-pack/plugins/logstash/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/confirm_delete_pipeline_modal.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/confirm_delete_pipeline_modal.test.js.snap new file mode 100644 index 0000000000000..b068de4dbcf18 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/confirm_delete_pipeline_modal.test.js.snap @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ConfirmDeletePipelineModal component renders as expected 1`] = ` + + +

      + You cannot recover a deleted pipeline. +

      +
      +
      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/flex_item_setting.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/flex_item_setting.test.js.snap new file mode 100644 index 0000000000000..dab283236b4a3 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/flex_item_setting.test.js.snap @@ -0,0 +1,42 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`FlexItemSetting component renders a null label if label/tooltip text not supplied 1`] = ` + + +

      + The child elements +

      +
      +
      +`; + +exports[`FlexItemSetting component renders component and children as expected 1`] = ` + + + } + > +

      + The child elements +

      +
      +
      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/form_label_with_icon_tip.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/form_label_with_icon_tip.test.js.snap new file mode 100644 index 0000000000000..62b4578433e05 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/form_label_with_icon_tip.test.js.snap @@ -0,0 +1,16 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`FormLabelWithIconTip component renders as expected 1`] = ` +
      + + label text + +   + +
      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/pipeline_editor.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/pipeline_editor.test.js.snap new file mode 100644 index 0000000000000..0a0b75ef57880 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/__snapshots__/pipeline_editor.test.js.snap @@ -0,0 +1,1884 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`PipelineEditor component includes required error message for falsy pipeline id 1`] = ` + + + +

      + Create Pipeline +

      +
      + + + + + + + + + +
      + +
      +
      + + } + > + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + Create and deploy + + + + + Cancel + + + +
      +
      +`; + +exports[`PipelineEditor component invalidates form for invalid pipeline id input 1`] = ` + + + +

      + Create Pipeline +

      +
      + + + + + + + + + +
      + +
      +
      + + } + > + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + Create and deploy + + + + + Cancel + + + +
      +
      +`; + +exports[`PipelineEditor component invalidates form for pipeline id with spaces 1`] = ` + + + +

      + Create Pipeline +

      +
      + + + + + + + + + +
      + +
      +
      + + } + > + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + Create and deploy + + + + + Cancel + + + +
      +
      +`; + +exports[`PipelineEditor component matches snapshot for clone pipeline 1`] = ` + + + +

      + Clone Pipeline "pipelineToClone" +

      +
      + + + + + + +
      + +
      +
      + + } + > + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + Create and deploy + + + + + Cancel + + + + + Delete pipeline + + + +
      +
      +`; + +exports[`PipelineEditor component matches snapshot for create pipeline 1`] = ` + + + +

      + Create Pipeline +

      +
      + + + + + + + + + +
      + +
      +
      + + } + > + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + Create and deploy + + + + + Cancel + + + +
      +
      +`; + +exports[`PipelineEditor component matches snapshot for edit pipeline 1`] = ` + + + +

      + Edit Pipeline "pipelineId" +

      +
      + + + + + + +
      + +
      +
      + + } + > + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + Create and deploy + + + + + Cancel + + + + + Delete pipeline + + + +
      +
      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/confirm_delete_pipeline_modal.js b/x-pack/plugins/logstash/public/components/pipeline_editor/confirm_delete_pipeline_modal.js new file mode 100644 index 0000000000000..79d3a5d80c21d --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/confirm_delete_pipeline_modal.js @@ -0,0 +1,34 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import { EuiConfirmModal, EUI_MODAL_CANCEL_BUTTON, EuiOverlayMask } from '@elastic/eui'; +import { PIPELINE_EDITOR } from './constants'; + +export function ConfirmDeletePipelineModal({ id, cancelDeleteModal, confirmDeletePipeline }) { + return ( + + +

      {PIPELINE_EDITOR.DELETE_PIPELINE_MODAL_MESSAGE}

      +
      +
      + ); +} + +ConfirmDeletePipelineModal.propTypes = { + cancelDeleteModal: PropTypes.func.isRequired, + confirmDeletePipeline: PropTypes.func.isRequired, + id: PropTypes.string.isRequired, +}; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/confirm_delete_pipeline_modal.test.js b/x-pack/plugins/logstash/public/components/pipeline_editor/confirm_delete_pipeline_modal.test.js new file mode 100644 index 0000000000000..6320c11ec5269 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/confirm_delete_pipeline_modal.test.js @@ -0,0 +1,26 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { ConfirmDeletePipelineModal } from './confirm_delete_pipeline_modal'; + +describe('ConfirmDeletePipelineModal component', () => { + let props; + + beforeEach(() => { + props = { + id: 'the id', + cancelDeleteModal: jest.fn(), + confirmDeletePipeline: jest.fn(), + }; + }); + + it('renders as expected', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/constants.js b/x-pack/plugins/logstash/public/components/pipeline_editor/constants.js new file mode 100644 index 0000000000000..acbee940072da --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/constants.js @@ -0,0 +1,56 @@ +/* + * 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 PIPELINE_EDITOR = { + DELETE_PIPELINE_MODAL_MESSAGE: `You cannot recover a deleted pipeline.`, + ID_REQUIRED_ERR_MSG: 'Pipeline ID is required', + ID_FORMAT_ERR_MSG: + 'Pipeline ID must begin with a letter or underscore and contain only letters, underscores, dashes, and numbers', + QUEUE_TYPES: [ + { + 'data-test-subj': 'selectQueueType-memory', + text: 'memory', + value: 'memory', + }, + { + 'data-test-subj': 'selectQueueType-persisted', + text: 'persisted', + value: 'persisted', + }, + ], + UNITS: [ + { + 'data-test-subj': 'selectQueueMaxBytesUnits-b', + text: 'bytes', + value: 'b', + }, + { + 'data-test-subj': 'selectQueueMaxBytesUnits-kb', + text: 'kilobytes', + value: 'kb', + }, + { + 'data-test-subj': 'selectQueueMaxBytesUnits-mb', + text: 'megabytes', + value: 'mb', + }, + { + 'data-test-subj': 'selectQueueMaxBytesUnits-gb', + text: 'gigabytes', + value: 'gb', + }, + { + 'data-test-subj': 'selectQueueMaxBytesUnits-tb', + text: 'terabytes', + value: 'tb', + }, + { + 'data-test-subj': 'selectQueueMaxBytesUnits-pb', + text: 'petabytes', + value: 'pb', + }, + ], +}; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/flex_item_setting.js b/x-pack/plugins/logstash/public/components/pipeline_editor/flex_item_setting.js new file mode 100644 index 0000000000000..e5a20e4b90d19 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/flex_item_setting.js @@ -0,0 +1,35 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import { EuiFlexItem, EuiFormRow } from '@elastic/eui'; +import { FormLabelWithIconTip } from './form_label_with_icon_tip'; + +export function FlexItemSetting(props) { + const { formRowLabelText, formRowTooltipText } = props; + + const label = + formRowLabelText && formRowTooltipText ? ( + + ) : null; + + return ( + + + {props.children} + + + ); +} + +FlexItemSetting.propTypes = { + formRowLabelText: PropTypes.string, + formRowTooltipText: PropTypes.string, +}; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/flex_item_setting.test.js b/x-pack/plugins/logstash/public/components/pipeline_editor/flex_item_setting.test.js new file mode 100644 index 0000000000000..af585cb3a3425 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/flex_item_setting.test.js @@ -0,0 +1,40 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { FlexItemSetting } from './flex_item_setting'; + +describe('FlexItemSetting component', () => { + let props; + + beforeEach(() => { + props = { + formRowLabelText: 'label text', + formRowTooltipText: 'tooltip text', + }; + }); + + it('renders component and children as expected', () => { + const wrapper = shallow( + +

      The child elements

      +
      + ); + + expect(wrapper).toMatchSnapshot(); + }); + + it('renders a null label if label/tooltip text not supplied', () => { + const wrapper = shallow( + +

      The child elements

      +
      + ); + + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/form_label_with_icon_tip.js b/x-pack/plugins/logstash/public/components/pipeline_editor/form_label_with_icon_tip.js new file mode 100644 index 0000000000000..522e13e38d024 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/form_label_with_icon_tip.js @@ -0,0 +1,24 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import { EuiIconTip } from '@elastic/eui'; + +export function FormLabelWithIconTip({ formRowLabelText, formRowTooltipText }) { + return ( +
      + {formRowLabelText} +   + +
      + ); +} + +FormLabelWithIconTip.propTypes = { + formRowLabelText: PropTypes.string.isRequired, + formRowTooltipText: PropTypes.string.isRequired, +}; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/form_label_with_icon_tip.test.js b/x-pack/plugins/logstash/public/components/pipeline_editor/form_label_with_icon_tip.test.js new file mode 100644 index 0000000000000..3eb1d9ec9f820 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/form_label_with_icon_tip.test.js @@ -0,0 +1,25 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { FormLabelWithIconTip } from './form_label_with_icon_tip'; + +describe('FormLabelWithIconTip component', () => { + let props; + + beforeEach(() => { + props = { + formRowLabelText: 'label text', + formRowTooltipText: 'tooltip text', + }; + }); + + it('renders as expected', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/index.js b/x-pack/plugins/logstash/public/components/pipeline_editor/index.js new file mode 100644 index 0000000000000..f723ed201c331 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/index.js @@ -0,0 +1,7 @@ +/* + * 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 { PipelineEditor } from './pipeline_editor'; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/pipeline_editor.js b/x-pack/plugins/logstash/public/components/pipeline_editor/pipeline_editor.js new file mode 100644 index 0000000000000..0e888bfa9e95f --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/pipeline_editor.js @@ -0,0 +1,444 @@ +/* + * 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 React from 'react'; +import { PropTypes } from 'prop-types'; + +import 'brace/mode/plain_text'; +import 'brace/theme/github'; + +import { isEmpty } from 'lodash'; +import { TOOLTIPS } from '../../../common/constants/tooltips'; +import { + EuiButton, + EuiButtonEmpty, + EuiCodeEditor, + EuiFlexGroup, + EuiFieldNumber, + EuiFlexItem, + EuiFieldText, + EuiForm, + EuiFormRow, + EuiPage, + EuiPageContent, + EuiSelect, + EuiSpacer, + EuiTitle, +} from '@elastic/eui'; +import { ConfirmDeletePipelineModal } from './confirm_delete_pipeline_modal'; +import { FlexItemSetting } from './flex_item_setting'; +import { FormLabelWithIconTip } from './form_label_with_icon_tip'; +import { PIPELINE_EDITOR } from './constants'; + +export class PipelineEditor extends React.Component { + constructor(props) { + super(props); + + const { + pipeline: { id, description, pipeline, settings }, + username, + } = this.props; + + const pipelineWorkers = settings['pipeline.workers'] ? settings['pipeline.workers'] : 1; + + this.state = { + maxBytesNumber: settings['queue.max_bytes.number'], + maxBytesUnit: settings['queue.max_bytes.units'], + pipeline: { + id, + description, + pipeline, + settings: { + 'pipeline.batch.delay': settings['pipeline.batch.delay'], + 'pipeline.batch.size': settings['pipeline.batch.size'], + 'pipeline.workers': pipelineWorkers, + 'queue.checkpoint.writes': settings['queue.checkpoint.writes'], + 'queue.max_bytes': settings['queue.max_bytes.number'] + settings['queue.max_bytes.units'], + 'queue.type': settings['queue.type'], + }, + username, + }, + pipelineIdErrors: [], + pipelineIdPattern: /^[A-Za-z\_][A-Za-z0-9\-\_]*$/, + showConfirmDeleteModal: false, + showPipelineIdError: false, + }; + } + + componentDidMount = () => { + const { + licenseService: { isReadOnly, message }, + toastNotifications, + } = this.props; + if (isReadOnly) { + toastNotifications.addWarning(message); + } + }; + + hideConfirmDeleteModal = () => { + this.setState({ + showConfirmDeleteModal: false, + }); + }; + + showConfirmDeleteModal = () => { + this.setState({ + showConfirmDeleteModal: true, + }); + }; + + onPipelineIdChange = ({ target: { value } }) => { + const pipelineIdErrors = []; + if (!value) { + pipelineIdErrors.push(PIPELINE_EDITOR.ID_REQUIRED_ERR_MSG); + } + if (!this.state.pipelineIdPattern.test(value)) { + pipelineIdErrors.push(PIPELINE_EDITOR.ID_FORMAT_ERR_MSG); + } + + this.setState({ + pipelineIdErrors, + showPipelineIdError: !!pipelineIdErrors.length, + pipeline: { + ...this.state.pipeline, + id: value, + }, + }); + }; + + isSaveDisabled = () => { + return this.state.showPipelineIdError || isEmpty(this.state.pipeline.id); + }; + + onClose = async () => { + await this.props.close(); + }; + + open = async () => { + const { id } = this.state.pipeline; + if (id) { + await this.props.open(id); + } + }; + + onPipelineSave = () => { + const { pipelineService, toastNotifications } = this.props; + const { id } = this.state.pipeline; + return pipelineService + .savePipeline({ + id, + upstreamJSON: this.state.pipeline, + }) + .then(() => { + toastNotifications.addSuccess(`Saved "${id}"`); + this.onClose(); + }) + .catch(this.notifyOnError); + }; + + onPipelineDescriptionChange = ({ target: { value } }) => { + this.setState({ + pipeline: { + ...this.state.pipeline, + description: value, + }, + }); + }; + + onPipelineChange = e => { + this.setState({ + pipeline: { + ...this.state.pipeline, + pipeline: e, + }, + }); + }; + + handleNumberChange = (settingName, value) => { + const numberValue = parseInt(value, 10); + this.handleSettingChange(settingName, isNaN(numberValue) ? value : numberValue); + }; + + handleMaxByteNumberChange = value => { + this.setState({ maxBytesNumber: parseInt(value, 10) }); + this.handleSettingChange('queue.max_bytes', value + this.state.maxBytesUnit); + }; + + handleMaxByteUnitChange = value => { + this.setState({ maxBytesUnit: value }); + this.handleSettingChange('queue.max_bytes', this.state.maxBytesNumber + value); + }; + + handleSettingChange = (settingName, value) => { + const settings = { ...this.state.pipeline.settings }; + settings[settingName] = value; + this.setState({ + pipeline: { + ...this.state.pipeline, + settings, + }, + }); + }; + + notifyOnError = err => { + const { notifier, licenseService } = this.props; + + return licenseService.checkValidity().then(() => notifier.error(err)); + }; + + deletePipeline = () => { + const { + pipeline: { id }, + pipelineService, + toastNotifications, + } = this.props; + + this.hideConfirmDeleteModal(); + + return pipelineService + .deletePipeline(id) + .then(() => { + toastNotifications.addSuccess(`Deleted "${id}"`); + this.onClose(); + }) + .catch(this.notifyOnError); + }; + + getPipelineHeadingText = () => { + const { + routeService: { + current: { + params: { clone, id }, + }, + }, + isNewPipeline, + } = this.props; + + if (!!clone && id) { + return `Clone Pipeline "${id}"`; + } + if (!isNewPipeline) { + return `Edit Pipeline "${this.state.pipeline.id}"`; + } + return 'Create Pipeline'; + }; + + render() { + return ( + + + +

      {this.getPipelineHeadingText()}

      +
      + + + {this.props.isNewPipeline && ( + + + + )} + + + + +
      + +
      +
      + + } + > + this.handleNumberChange('pipeline.workers', e.target.value)} + value={this.state.pipeline.settings['pipeline.workers']} + /> + + + + this.handleNumberChange('pipeline.batch.size', e.target.value)} + value={this.state.pipeline.settings['pipeline.batch.size']} + /> + + + this.handleNumberChange('pipeline.batch.delay', e.target.value)} + value={this.state.pipeline.settings['pipeline.batch.delay']} + /> + + + + + this.handleSettingChange('queue.type', e.target.value)} + options={PIPELINE_EDITOR.QUEUE_TYPES} + value={this.state.pipeline.settings['queue.type']} + /> + + + this.handleMaxByteNumberChange(e.target.value)} + value={this.state.maxBytesNumber} + /> + + + this.handleMaxByteUnitChange(e.target.value)} + options={PIPELINE_EDITOR.UNITS} + value={this.state.maxBytesUnit} + /> + + + this.handleNumberChange('queue.checkpoint.writes', e.target.value)} + value={this.state.pipeline.settings['queue.checkpoint.writes']} + /> + + +
      + + + + + Create and deploy + + + + + Cancel + + + {!this.props.isNewPipeline && ( + + + Delete pipeline + + + )} + +
      + {this.state.showConfirmDeleteModal && ( + + )} +
      + ); + } +} + +PipelineEditor.propTypes = { + close: PropTypes.func.isRequired, + isNewPipeline: PropTypes.bool.isRequired, + licenseService: PropTypes.shape({ + checkValidity: PropTypes.func.isRequired, + isReadOnly: PropTypes.bool.isRequired, + message: PropTypes.string, + }).isRequired, + notifier: PropTypes.shape({ + error: PropTypes.func.isRequired, + }).isRequired, + open: PropTypes.func.isRequired, + pipeline: PropTypes.shape({ + id: PropTypes.string, + description: PropTypes.string, + pipeline: PropTypes.any, + settings: PropTypes.shape({ + 'pipeline.batch.delay': PropTypes.number.isRequired, + 'pipeline.batch.size': PropTypes.number.isRequired, + 'pipeline.workers': PropTypes.number, + 'queue.checkpoint.writes': PropTypes.number.isRequired, + 'queue.max_bytes': PropTypes.number, + 'queue.type': PropTypes.string.isRequired, + }), + }).isRequired, + pipelineService: PropTypes.shape({ + deletePipeline: PropTypes.func.isRequired, + savePipeline: PropTypes.func.isRequired, + }).isRequired, + routeService: PropTypes.shape({ + current: PropTypes.shape({ + params: PropTypes.shape({ + clone: PropTypes.oneOf([true, undefined]), + id: PropTypes.string, + }), + }), + }).isRequired, + toastNotifications: PropTypes.shape({ + addWarning: PropTypes.func.isRequired, + addSuccess: PropTypes.func.isRequired, + }).isRequired, + username: PropTypes.string, +}; diff --git a/x-pack/plugins/logstash/public/components/pipeline_editor/pipeline_editor.test.js b/x-pack/plugins/logstash/public/components/pipeline_editor/pipeline_editor.test.js new file mode 100644 index 0000000000000..41706d3714ed0 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_editor/pipeline_editor.test.js @@ -0,0 +1,176 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import 'brace'; +import { PipelineEditor } from './pipeline_editor'; + +describe('PipelineEditor component', () => { + let props; + let close; + let isNewPipeline; + let licenseService; + let notifier; + let open; + let pipeline; + let pipelineService; + let routeService; + let toastNotifications; + let username; + + beforeEach(() => { + close = jest.fn(); + isNewPipeline = false; + licenseService = { + checkValidity: jest.fn(), + isReadOnly: false, + message: 'license service message', + }; + notifier = { + error: jest.fn(), + }; + open = jest.fn(); + pipeline = { + id: 'pipelineId', + description: 'pipeline description', + pipeline: 'input { stdin { } } filter { } output { stdout { } }', + settings: { + 'pipeline.batch.delay': 10, + 'pipeline.batch.size': 256, + 'pipeline.workers': 1, + 'queue.checkpoint.writes': 100, + 'queue.max_bytes': 1024, + 'queue.type': 'MB', + }, + }; + pipelineService = { + deletePipeline: jest.fn(), + savePipeline: jest.fn(), + }; + routeService = { + current: { + params: { + clone: undefined, + id: undefined, + }, + }, + }; + toastNotifications = { + addWarning: jest.fn(), + addSuccess: jest.fn(), + }; + username = 'elastic'; + props = { + close, + isNewPipeline, + licenseService, + notifier, + open, + pipeline, + pipelineService, + routeService, + toastNotifications, + username, + }; + }); + + it('matches snapshot for edit pipeline', () => { + expect(shallow()).toMatchSnapshot(); + }); + + it('matches snapshot for clone pipeline', () => { + routeService.current.params = { + clone: true, + id: 'pipelineToClone', + }; + expect(shallow()).toMatchSnapshot(); + }); + + it('matches snapshot for create pipeline', () => { + expect(shallow()).toMatchSnapshot(); + }); + + it('updates state for pipeline id when creating', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputId"]`).simulate('change', { target: { value: 'theNewPipelineId' } }); + expect(wrapper.instance().state.pipeline.id).toBe('theNewPipelineId'); + }); + + it('updates pipeline description', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputDescription"]`).simulate('change', { target: { value: 'the new description' } }); + expect(wrapper.instance().state.pipeline.description).toBe('the new description'); + }); + + it('updates pipeline workers', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputWorkers"]`).simulate('change', { target: { value: '12' } }); + expect(wrapper.instance().state.pipeline.settings['pipeline.workers']).toBe(12); + }); + + it('updates pipeline batch size', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputBatchSize"]`).simulate('change', { target: { value: '12' } }); + expect(wrapper.instance().state.pipeline.settings['pipeline.batch.size']).toBe(12); + }); + + it('updates pipeline settings', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputWorkers"]`).simulate('change', { target: { value: '10' } }); + wrapper.find(`[data-test-subj="inputBatchSize"]`).simulate('change', { target: { value: '11' } }); + wrapper.find(`[data-test-subj="inputBatchDelay"]`).simulate('change', { target: { value: '12' } }); + wrapper.find(`[data-test-subj="inputQueueMaxBytesNumber"]`).simulate('change', { target: { value: '13' } }); + wrapper.find(`[data-test-subj="inputQueueCheckpointWrites"]`).simulate('change', { target: { value: '14' } }); + expect(wrapper.instance().state.pipeline.settings['pipeline.workers']).toBe(10); + expect(wrapper.instance().state.pipeline.settings['pipeline.batch.size']).toBe(11); + expect(wrapper.instance().state.pipeline.settings['pipeline.batch.delay']).toBe(12); + expect(wrapper.instance().state.pipeline.settings['queue.checkpoint.writes']).toBe(14); + }); + + it('calls the pipelineService delete function on delete', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="btnDeletePipeline"]`).simulate('click'); + expect(wrapper.instance().state.showConfirmDeleteModal).toBe(true); + }); + + it('only matches pipeline names that fit the acceptable parameters', () => { + const wrapper = shallow(); + const pattern = wrapper.instance().state.pipelineIdPattern; + + expect(pattern.test('_startwithunderscore')).toBe(true); + expect(pattern.test('startwithloweralpha')).toBe(true); + expect(pattern.test('Startwithupperalpha')).toBe(true); + expect(pattern.test('_us-with-dashes')).toBe(true); + expect(pattern.test('_us-With-UPPER-alpha')).toBe(true); + expect(pattern.test('contains a space')).toBe(false); + expect(pattern.test('8startswithnum')).toBe(false); + expect(pattern.test(' startswithspace')).toBe(false); + expect(pattern.test('endswithspace ')).toBe(false); + expect(pattern.test('a?')).toBe(false); + expect(pattern.test('?')).toBe(false); + expect(pattern.test('+')).toBe(false); + expect(pattern.test('f+')).toBe(false); + }); + + it('invalidates form for invalid pipeline id input', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputId"]`).simulate('change', { target: { value: '$invalid-pipeline-name' } }); + expect(wrapper).toMatchSnapshot(); + }); + + it('invalidates form for pipeline id with spaces', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputId"]`).simulate('change', { target: { value: 'pipeline id with spaces' } }); + expect(wrapper).toMatchSnapshot(); + }); + + it('includes required error message for falsy pipeline id', () => { + const wrapper = shallow(); + wrapper.find(`[data-test-subj="inputId"]`).simulate('change', { target: { value: '' } }); + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/add_role_alert.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/add_role_alert.test.js.snap new file mode 100644 index 0000000000000..85f1f0626d802 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/add_role_alert.test.js.snap @@ -0,0 +1,14 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AddRoleAlert component renders expected component 1`] = ` +

      + + Grant additional privileges. + + In Kibana Management, assign the + + monitoring_user + + role to your Kibana user. +

      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/alert_call_out.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/alert_call_out.test.js.snap new file mode 100644 index 0000000000000..5769bb98b6377 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/alert_call_out.test.js.snap @@ -0,0 +1,17 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AlertCallOut component renders expected component 1`] = ` + +

      + How can I see additional pipelines? +

      +
      + Some text +
      +
      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/confirm_delete_modal.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/confirm_delete_modal.test.js.snap new file mode 100644 index 0000000000000..d04e9276d8642 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/confirm_delete_modal.test.js.snap @@ -0,0 +1,37 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ConfirmDeleteModal component confirms delete for multiple pipelines 1`] = ` + + +

      + You cannot recover deleted pipelines. +

      +
      +
      +`; + +exports[`ConfirmDeleteModal component confirms delete for single pipeline 1`] = ` + + +

      + You cannot recover a deleted pipeline +

      +
      +
      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/enable_monitoring_alert.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/enable_monitoring_alert.test.js.snap new file mode 100644 index 0000000000000..1913a1ed45280 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/enable_monitoring_alert.test.js.snap @@ -0,0 +1,26 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`EnableMonitoringAlert component renders expected component 1`] = ` +

      + + Enable monitoring. + + In the + + kibana.yml + + file, set + + xpack.monitoring.enabled + + and + + xpack.monitoring.ui.enabled + + to + + true + + . +

      +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/info_alerts.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/info_alerts.test.js.snap new file mode 100644 index 0000000000000..0dd86ca37bac7 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/info_alerts.test.js.snap @@ -0,0 +1,22 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`InfoAlerts component renders AddRoleAlert and EnableMonitoringAlert if both flags are true 1`] = ` + + + + +`; + +exports[`InfoAlerts component renders AddRoleAlert if flag is true 1`] = ` + + + +`; + +exports[`InfoAlerts component renders EnableMonitoringAlert if flag is true 1`] = ` + + + +`; + +exports[`InfoAlerts component renders null if both alert flags are false 1`] = `""`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/pipelines_table.test.js.snap b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/pipelines_table.test.js.snap new file mode 100644 index 0000000000000..f43378e68d017 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/__snapshots__/pipelines_table.test.js.snap @@ -0,0 +1,110 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`PipelinesTable component renders component as expected 1`] = ` + + Create pipeline + , + } + } + selection={ + Object { + "onSelectionChange": [MockFunction], + "selectable": [Function], + "selectableMessage": [Function], + } + } + sorting={true} +/> +`; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/add_role_alert.js b/x-pack/plugins/logstash/public/components/pipeline_list/add_role_alert.js new file mode 100644 index 0000000000000..ae890f6ffde97 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/add_role_alert.js @@ -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 React from 'react'; +import { EuiCode } from '@elastic/eui'; + +export function AddRoleAlert() { + return ( +

      + Grant additional privileges. + In Kibana Management, assign the monitoring_user role to your Kibana user. +

      + ); +} diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/add_role_alert.test.js b/x-pack/plugins/logstash/public/components/pipeline_list/add_role_alert.test.js new file mode 100644 index 0000000000000..d6ba14e1620a2 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/add_role_alert.test.js @@ -0,0 +1,16 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { AddRoleAlert } from './add_role_alert'; + +describe('AddRoleAlert component', () => { + it('renders expected component', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/alert_call_out.js b/x-pack/plugins/logstash/public/components/pipeline_list/alert_call_out.js new file mode 100644 index 0000000000000..24ef4359a5597 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/alert_call_out.js @@ -0,0 +1,18 @@ +/* + * 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 React from 'react'; +import { EuiCallOut } from '@elastic/eui'; +import { PIPELINE_LIST } from './constants'; + +export function AlertCallOut(props) { + return ( + +

      How can I see additional pipelines?

      + {props.children} +
      + ); +} diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/alert_call_out.test.js b/x-pack/plugins/logstash/public/components/pipeline_list/alert_call_out.test.js new file mode 100644 index 0000000000000..9d5d08dac9529 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/alert_call_out.test.js @@ -0,0 +1,20 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { AlertCallOut } from './alert_call_out'; + +describe('AlertCallOut component', () => { + it('renders expected component', () => { + const wrapper = shallow( + +
      Some text
      +
      + ); + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/confirm_delete_modal.js b/x-pack/plugins/logstash/public/components/pipeline_list/confirm_delete_modal.js new file mode 100644 index 0000000000000..0190af7ae2a79 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/confirm_delete_modal.js @@ -0,0 +1,49 @@ +/* + * 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 React from 'react'; +import { EuiConfirmModal, EUI_MODAL_CANCEL_BUTTON, EuiOverlayMask } from '@elastic/eui'; + +export function ConfirmDeleteModal({ + cancelDeletePipelines, + deleteSelectedPipelines, + selection, + showConfirmDeleteModal, +}) { + if (!showConfirmDeleteModal) { + return null; + } + const numPipelinesSelected = selection.length; + + const confirmText = + numPipelinesSelected === 1 + ? { + message: 'You cannot recover a deleted pipeline', + button: `Delete pipeline`, + title: `Delete pipeline "${selection[0].id}"`, + } + : { + message: `You cannot recover deleted pipelines.`, + button: `Delete ${numPipelinesSelected} pipelines`, + title: `Delete ${numPipelinesSelected} pipelines`, + }; + + return ( + + +

      {confirmText.message}

      +
      +
      + ); +} diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/confirm_delete_modal.test.js b/x-pack/plugins/logstash/public/components/pipeline_list/confirm_delete_modal.test.js new file mode 100644 index 0000000000000..6dfd68b7043e4 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/confirm_delete_modal.test.js @@ -0,0 +1,60 @@ +/* + * 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 React from 'react'; +import { mount, shallow } from 'enzyme'; +import { ConfirmDeleteModal } from './confirm_delete_modal'; + +describe('ConfirmDeleteModal component', () => { + let props; + beforeEach(() => { + props = { + cancelDeletePipelines: jest.fn(), + deleteSelectedPipelines: jest.fn(), + selection: [ + { + id: 'testId', + }, + ], + showConfirmDeleteModal: jest.fn(), + }; + }); + + it('confirms delete for single pipeline', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); + + it('confirms delete for multiple pipelines', () => { + props.selection = [{ id: 'testId' }, { id: 'testId2' }]; + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); + + it('calls cancel delete', () => { + const wrapper = mount(); + wrapper + .find('[data-test-subj="confirmModalCancelButton"]') + .first() + .simulate('click'); + expect(props.cancelDeletePipelines).toHaveBeenCalled(); + }); + + it('calls deleteSelectedPipelines', () => { + const wrapper = mount(); + wrapper + .find('[data-test-subj="confirmModalConfirmButton"]') + .first() + .simulate('click'); + expect(props.deleteSelectedPipelines).toHaveBeenCalled(); + }); + + it('does not render a component if modal is hidden', () => { + props.showConfirmDeleteModal = false; + const wrapper = mount(); + expect(wrapper.instance()).toBeNull(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/constants.js b/x-pack/plugins/logstash/public/components/pipeline_list/constants.js new file mode 100644 index 0000000000000..7e16c471c51f7 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/constants.js @@ -0,0 +1,15 @@ +/* + * 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 PIPELINE_LIST = { + INITIAL_PAGE_SIZE: 20, + PAGE_SIZE_OPTIONS: [5, 8, 20, 50], + PIPELINE_NOT_CENTRALLY_MANAGED_TOOLTIP_TEXT: + `This pipeline wasn't created using Centralized Configuration Management. It can't be managed or edited here.`, + INFO_ALERTS: { + CALL_OUT_TITLE: 'Only pipelines created in Kibana Management appear here', + }, +}; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/enable_monitoring_alert.js b/x-pack/plugins/logstash/public/components/pipeline_list/enable_monitoring_alert.js new file mode 100644 index 0000000000000..190359ab97f31 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/enable_monitoring_alert.js @@ -0,0 +1,20 @@ +/* + * 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 React from 'react'; +import { EuiCode } from '@elastic/eui'; + +export function EnableMonitoringAlert() { + return ( +

      + Enable monitoring. + In the kibana.yml file, set + xpack.monitoring.enabled and + xpack.monitoring.ui.enabled to + true. +

      + ); +} diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/enable_monitoring_alert.test.js b/x-pack/plugins/logstash/public/components/pipeline_list/enable_monitoring_alert.test.js new file mode 100644 index 0000000000000..0faddfbee7bb4 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/enable_monitoring_alert.test.js @@ -0,0 +1,16 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { EnableMonitoringAlert } from './enable_monitoring_alert'; + +describe('EnableMonitoringAlert component', () => { + it('renders expected component', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/index.js b/x-pack/plugins/logstash/public/components/pipeline_list/index.js new file mode 100644 index 0000000000000..aa17c2ed84832 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/index.js @@ -0,0 +1,7 @@ +/* + * 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 { PipelineList } from './pipeline_list'; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/info_alerts.js b/x-pack/plugins/logstash/public/components/pipeline_list/info_alerts.js new file mode 100644 index 0000000000000..3130d215b221d --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/info_alerts.js @@ -0,0 +1,25 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import { AddRoleAlert } from './add_role_alert'; +import { AlertCallOut } from './alert_call_out'; +import { EnableMonitoringAlert } from './enable_monitoring_alert'; + +export function InfoAlerts({ showAddRoleAlert, showEnableMonitoringAlert }) { + return showAddRoleAlert || showEnableMonitoringAlert ? ( + + {showAddRoleAlert && } + {showEnableMonitoringAlert && } + + ) : null; +} + +InfoAlerts.propTypes = { + showAddRoleAlert: PropTypes.bool.isRequired, + showEnableMonitoringAlert: PropTypes.bool.isRequired, +}; diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/info_alerts.test.js b/x-pack/plugins/logstash/public/components/pipeline_list/info_alerts.test.js new file mode 100644 index 0000000000000..c22fc538359f7 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/info_alerts.test.js @@ -0,0 +1,44 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { InfoAlerts } from './info_alerts'; + +describe('InfoAlerts component', () => { + it('renders null if both alert flags are false', () => { + const wrapper = shallow( + + ); + + expect(wrapper).toMatchSnapshot(); + expect(wrapper.instance()).toBeNull(); + }); + + it('renders AddRoleAlert if flag is true', () => { + const wrapper = shallow( + + ); + + expect(wrapper).toMatchSnapshot(); + }); + + it('renders EnableMonitoringAlert if flag is true', () => { + const wrapper = shallow( + + ); + + expect(wrapper).toMatchSnapshot(); + }); + + it('renders AddRoleAlert and EnableMonitoringAlert if both flags are true', () => { + const wrapper = shallow( + + ); + + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/pipeline_list.js b/x-pack/plugins/logstash/public/components/pipeline_list/pipeline_list.js new file mode 100644 index 0000000000000..b983111724262 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/pipeline_list.js @@ -0,0 +1,235 @@ +/* + * 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 React from 'react'; +import pluralize from 'pluralize'; + +import { + EuiCallOut, + EuiEmptyPrompt, + EuiLoadingSpinner, + EuiPage, + EuiPageContent, +} from '@elastic/eui'; + +import { InfoAlerts } from './info_alerts'; +import { PipelinesTable } from './pipelines_table'; +import { ConfirmDeleteModal } from './confirm_delete_modal'; + +export class PipelineList extends React.Component { + constructor(props) { + super(props); + + this.state = { + columns: [], + isForbidden: false, + isLoading: true, + isSelectable: false, + pipelines: [], + showAddRoleAlert: false, + showConfirmDeleteModal: false, + showEnableMonitoringAlert: false, + selection: [], + }; + } + + componentDidMount = () => { + const { isReadOnly, licenseService, toastNotifications } = this.props; + + this.loadPipelines().then(() => { + if (isReadOnly) { + toastNotifications.addWarning(licenseService.message); + } + }); + + this.checkMonitoringAccess(); + }; + + getEmptyPrompt = () => ( + No pipelines} + titleSize="xs" + body="There are no pipelines defined." + /> + ); + + getErrorPrompt = () => ( + Error} + titleSize="xs" + body="Error encountered while loading pipelines." + /> + ); + + loadPipelines = () => { + const { isReadOnly, licenseService, pipelinesService, toastNotifications } = this.props; + + this.setState({ + message: ( +
      + +   Loading pipelines.... +
      + ), + }); + + return pipelinesService + .getPipelineList() + .then(pipelines => { + this.setState({ + isLoading: false, + isForbidden: false, + isSelectable: true, + pipelines, + }); + + if (!pipelines.length) { + this.setState({ + columns: [], + message: this.getEmptyPrompt(), + isSelectable: false, + }); + } + }) + .catch(err => { + this.setState({ + isLoading: false, + message: this.getErrorPrompt(), + }); + return licenseService.checkValidity().then(() => { + if (err.status === 403) { + this.setState({ isLoading: false }); + + if (isReadOnly) { + this.setState({ isForbidden: false }); + } else { + this.setState({ isForbidden: true }); + } + } else { + this.setState({ isForbidden: false }); + toastNotifications.addDanger(`Couldn't load pipeline. Error: "${err.statusText}".`); + } + }); + }); + }; + + checkMonitoringAccess = () => { + const { clusterService, monitoringService } = this.props; + + clusterService.isClusterInfoAvailable().then(isAvailable => { + this.setState({ + showAddRoleAlert: !isAvailable, + showEnableMonitoringAlert: !monitoringService.isMonitoringEnabled(), + }); + }); + }; + + renderNoPermissionCallOut = () => { + const { isForbidden, isLoading } = this.state; + return isForbidden && !isLoading ? ( + +

      Please contact your administrator.

      +
      + ) : null; + }; + + hideDeletePipelinesModal = () => { + this.setState({ + showConfirmDeleteModal: false, + }); + }; + + showDeletePipelinesModal = () => { + this.setState({ + showConfirmDeleteModal: true, + }); + }; + + cancelDeletePipelines = () => { + this.hideDeletePipelinesModal(); + }; + + deleteSelectedPipelines = () => { + this.hideDeletePipelinesModal(); + const { licenseService, pipelinesService, toastNotifications } = this.props; + const { selection } = this.state; + const numPipelinesSelected = selection.length; + const totalPluralized = pluralize('Pipeline', numPipelinesSelected); + + const pipelineIds = selection.map(({ id }) => id); + return pipelinesService + .deletePipelines(pipelineIds) + .then(results => { + const { numSuccesses, numErrors } = results; + const errorPluralized = pluralize('Pipeline', numErrors); + + if (numSuccesses === 1 && numErrors === 0) { + toastNotifications.addSuccess(`Deleted "${selection[0].id}"`); + } else if (numSuccesses) { + let text; + if (numErrors) { + text = `But ${numErrors} ${errorPluralized} couldn't be deleted.`; + } + + toastNotifications.addSuccess({ + title: `Deleted ${numSuccesses} out of ${numPipelinesSelected} ${totalPluralized}`, + text, + }); + } else if (numErrors) { + toastNotifications.addError(`Failed to delete ${numErrors} ${errorPluralized}`); + } + + this.loadPipelines(); + }) + .catch(err => { + return licenseService.checkValidity().then(() => toastNotifications.addDanger(err)); + }); + }; + + onDeleteSelectedPipelines = () => { + this.showDeletePipelinesModal(); + }; + + onSelectionChange = selection => this.setState({ selection }); + + render() { + const { clonePipeline, createPipeline, isReadOnly, openPipeline } = this.props; + const { isSelectable, message, pipelines, selection, showConfirmDeleteModal } = this.state; + return ( + + + {this.renderNoPermissionCallOut()} + + + + + + ); + } +} diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/pipeline_list.test.js b/x-pack/plugins/logstash/public/components/pipeline_list/pipeline_list.test.js new file mode 100644 index 0000000000000..d5197aae00363 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/pipeline_list.test.js @@ -0,0 +1,111 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { PipelineList } from './pipeline_list'; + +describe('PipelineList component', () => { + let props; + let addDanger; + let addSuccess; + let addWarning; + + let pipelines; + + const getGetPipelineList = (isSuccess, result) => + isSuccess ? () => Promise.resolve(result) : () => Promise.reject(result); + + const getIsClusterInfoAvailable = isAvailable => () => Promise.resolve(isAvailable); + + const getDeleteSelectedPipelines = isSuccess => + isSuccess ? () => Promise.resolve({}) : () => Promise.reject({}); + + beforeEach(() => { + pipelines = [{ id: 'test', description: 'test description' }]; + addDanger = jest.fn(); + addSuccess = jest.fn(); + addWarning = jest.fn(); + props = { + clusterService: { + isClusterInfoAvailable: getIsClusterInfoAvailable(true), + deleteSelectedPipelines: getDeleteSelectedPipelines(true), + }, + isReadOnly: false, + licenseService: { + checkValidity: () => Promise.resolve(), + message: 'the license service message', + }, + monitoringService: { + isMonitoringEnabled: () => true, + }, + pipelinesService: { + getPipelineList: getGetPipelineList(true, pipelines), + }, + toastNotifications: { + addDanger, + addSuccess, + addWarning, + }, + }; + }); + + async function renderWithProps() { + const wrapper = shallow(); + await Promise.all([wrapper.instance().componentDidMount]); + return wrapper; + } + + it('notifies the user if readonly after pipeline load', async () => { + props.isReadOnly = true; + await renderWithProps(); + expect(addWarning).toBeCalledWith('the license service message'); + }); + + it('does not notify if not readonly', async () => { + await renderWithProps(); + expect(addWarning).not.toBeCalled(); + }); + + it('renders empty prompt for no pipelines', async () => { + props.pipelinesService.getPipelineList = getGetPipelineList(true, []); + const wrapper = await renderWithProps(); + const component = wrapper.instance(); + expect(component.state.message).toEqual(component.getEmptyPrompt()); + }); + + it('notifies the user if pipeline load fails', async () => { + props.pipelinesService.getPipelineList = getGetPipelineList(false, { + status: 401, + statusText: 'Unauthorized access', + }); + props.isReadOnly = false; + await renderWithProps(); + expect(addDanger).toBeCalledWith(`Couldn't load pipeline. Error: "Unauthorized access".`); + }); + + it('sets state to forbidden if 403 error and not readonly', async () => { + props.pipelinesService.getPipelineList = getGetPipelineList(false, { + status: 403, + }); + props.isReadOnly = false; + const wrapper = await renderWithProps(); + const component = wrapper.instance(); + expect(component.state.isLoading).toBe(false); + expect(component.state.isForbidden).toBe(true); + }); + + it('is not forbidden if 403 and readonly is true', async () => { + props.pipelinesService.getPipelineList = getGetPipelineList(false, { + status: 403, + }); + props.isReadOnly = true; + const wrapper = await renderWithProps(); + const component = wrapper.instance(); + expect(component.state.isLoading).toBe(false); + expect(component.state.isForbidden).toBe(false); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/pipelines_table.js b/x-pack/plugins/logstash/public/components/pipeline_list/pipelines_table.js new file mode 100644 index 0000000000000..62ca8dc0634b3 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/pipelines_table.js @@ -0,0 +1,170 @@ +/* + * 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 React from 'react'; +import { EuiButton, EuiButtonEmpty, EuiIconTip, EuiInMemoryTable, EuiLink } from '@elastic/eui'; +import { PIPELINE_LIST } from './constants'; + +function getColumns(openPipeline, clonePipeline) { + return [ + { + field: 'id', + name: 'Id', + sortable: true, + render: (id, { isCentrallyManaged }) => { + const openPipelineClicked = () => openPipeline(id); + return isCentrallyManaged ? ( + + {id} + + ) : ( + + {id}   + + + ); + }, + }, + { + field: 'description', + name: 'Description', + render: description => {description}, + sortable: true, + truncateText: true, + }, + { + field: 'lastModifiedHumanized', + name: 'Last Modified', + render: lastModified => {lastModified}, + sortable: true, + }, + { + field: 'username', + name: 'Modified By', + render: username => {username}, + sortable: true, + }, + { + field: 'id', + name: '', + render: (id, { isCentrallyManaged }) => { + const cloneClicked = () => { + clonePipeline(id); + }; + return isCentrallyManaged ? ( + + Clone + + ) : null; + }, + sortable: false, + width: '100px', + }, + ]; +} + +export function PipelinesTable({ + clonePipeline, + createPipeline, + isReadOnly, + isSelectable, + message, + onDeleteSelectedPipelines, + onSelectionChange, + openPipeline, + pipelines, + selection, + pageIndex, +}) { + const pagination = { + pageIndex, + initialPageSize: PIPELINE_LIST.INITIAL_PAGE_SIZE, + totalItemCount: pipelines.length, + pageSizeOptions: PIPELINE_LIST.PAGE_SIZE_OPTIONS, + }; + + const selectableMessage = (selectable, { id }) => + selectable + ? `Select pipeline "${id}"` + : PIPELINE_LIST.PIPELINE_NOT_CENTRALLY_MANAGED_TOOLTIP_TEXT; + + const selectionOptions = isSelectable + ? { + selectable: ({ isCentrallyManaged }) => isCentrallyManaged, + selectableMessage, + onSelectionChange, + } + : null; + + // display when > 0 selected and user has write permission + const deleteButton = + selection.length && !isReadOnly ? ( + + Delete + + ) : null; + + const search = { + box: { incremental: true, 'data-test-subj': 'filter' }, + filters: [ + { + type: 'field_value_selection', + field: 'id', + name: 'Filter by ID', + multiSelect: false, + options: pipelines.map(({ id }) => { + return { + value: id, + name: id, + view: id, + }; + }), + }, + ], + toolsLeft: deleteButton, + toolsRight: ( + + Create pipeline + + ), + }; + + const columns = getColumns(openPipeline, clonePipeline); + + return ( + + ); +} diff --git a/x-pack/plugins/logstash/public/components/pipeline_list/pipelines_table.test.js b/x-pack/plugins/logstash/public/components/pipeline_list/pipelines_table.test.js new file mode 100644 index 0000000000000..2d5412da3293b --- /dev/null +++ b/x-pack/plugins/logstash/public/components/pipeline_list/pipelines_table.test.js @@ -0,0 +1,71 @@ +/* + * 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 React from 'react'; +import { mount, shallow } from 'enzyme'; +import { PipelinesTable } from './pipelines_table'; + +describe('PipelinesTable component', () => { + let props; + let clonePipeline; + let createPipeline; + let onDeleteSelectedPipelines; + let onSelectionChange; + let openPipeline; + + beforeEach(() => { + clonePipeline = jest.fn(); + createPipeline = jest.fn(); + onDeleteSelectedPipelines = jest.fn(); + onSelectionChange = jest.fn(); + openPipeline = jest.fn(); + + props = { + clonePipeline, + createPipeline, + isReadOnly: false, + isSelectable: true, + message: null, + onDeleteSelectedPipelines, + onSelectionChange, + openPipeline, + pipelines: [{ id: 'testPipeline' }], + selection: [], + }; + }); + + it('renders component as expected', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); + + it('calls clone when cloned button clicked', () => { + props.pipelines = [{ id: 'testPipeline', isCentrallyManaged: true }]; + const wrapper = mount(); + wrapper.find('[iconType="copy"]').simulate('click'); + expect(clonePipeline).toHaveBeenCalled(); + }); + + it('calls createPipeline on create button clicked', () => { + const wrapper = mount(); + wrapper.find('.euiButton--primary').simulate('click'); + expect(createPipeline).toHaveBeenCalled(); + }); + + it('calls delete prompt on delete click', () => { + props.selection = [{ id: 'testPipeline' }]; + const wrapper = mount(); + wrapper.find('.euiButton--danger').simulate('click'); + expect(onDeleteSelectedPipelines).toHaveBeenCalled(); + }); + + it('calls openPipeline on id click', () => { + props.pipelines = [{ id: 'testPipeline', isCentrallyManaged: true }]; + const wrapper = mount(); + wrapper.find('EuiLink').simulate('click'); + expect(openPipeline).toHaveBeenCalledWith('testPipeline'); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/tooltip/index.js b/x-pack/plugins/logstash/public/components/tooltip/index.js deleted file mode 100644 index 4812ceef7dc30..0000000000000 --- a/x-pack/plugins/logstash/public/components/tooltip/index.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * 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 './tooltip'; diff --git a/x-pack/plugins/logstash/public/components/tooltip/tooltip.html b/x-pack/plugins/logstash/public/components/tooltip/tooltip.html deleted file mode 100644 index b40ba2587a800..0000000000000 --- a/x-pack/plugins/logstash/public/components/tooltip/tooltip.html +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/x-pack/plugins/logstash/public/components/tooltip/tooltip.js b/x-pack/plugins/logstash/public/components/tooltip/tooltip.js deleted file mode 100644 index c36c36acfd671..0000000000000 --- a/x-pack/plugins/logstash/public/components/tooltip/tooltip.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 { uiModules } from 'ui/modules'; -import template from './tooltip.html'; -import './tooltip.less'; - -const app = uiModules.get('xpack/logstash'); - -app.directive('logstashTooltip', function () { - return { - restrict: 'E', - template: template, - scope: { - text: '@' - }, - bindToController: true, - controllerAs: 'tooltip', - controller: class TooltipController {} - }; -}); diff --git a/x-pack/plugins/logstash/public/components/tooltip/tooltip.less b/x-pack/plugins/logstash/public/components/tooltip/tooltip.less deleted file mode 100644 index 683e9580c3893..0000000000000 --- a/x-pack/plugins/logstash/public/components/tooltip/tooltip.less +++ /dev/null @@ -1,3 +0,0 @@ -.logstash-tooltip { - display: none; -} diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure.test.js.snap b/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure.test.js.snap new file mode 100644 index 0000000000000..5d5efb47dc8ac --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure.test.js.snap @@ -0,0 +1,950 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`UpgradeFailure component passes expected text for new pipeline 1`] = ` + + +
      + + +
      + + } + body={ +

      + Before you can add a pipeline, we need to upgrade your configuration. +

      + } + iconColor="subdued" + title={ + + } + > +
      + + + + + +
      + +
      + + + + + + + + + + +
      +
      + +
      + +

      + Upgrade failed +

      +
      +
      +
      +
      +
      +
      +
      + +
      + + +
      +

      + Before you can add a pipeline, we need to upgrade your configuration. +

      +
      +
      + + + +
      + + +
      + + + +
      + +
      + + + +
      +
      + +
      + + + +
      +
      +
      +
      +
      +
      + +
      + + +
      + + +`; + +exports[`UpgradeFailure component passes expected text for not manual upgrade 1`] = ` + + +
      + + +
      + + } + body={ +

      + Before you can add a pipeline, we need to upgrade your configuration. +

      + } + iconColor="subdued" + title={ + + } + > +
      + + + + + +
      + +
      + + + + + + + + + + +
      +
      + +
      + +

      + Time for an upgrade! +

      +
      +
      +
      +
      +
      +
      +
      + +
      + + +
      +

      + Before you can add a pipeline, we need to upgrade your configuration. +

      +
      +
      + + + +
      + + +
      + + + +
      + +
      + + + +
      +
      + +
      + + + +
      +
      +
      +
      +
      +
      + +
      + + +
      + + +`; + +exports[`UpgradeFailure component passes expected text for not new pipeline 1`] = ` + + +
      + + +
      + + } + body={ +

      + Before you can edit this pipeline, we need to upgrade your configuration. +

      + } + iconColor="subdued" + title={ + + } + > +
      + + + + + +
      + +
      + + + + + + + + + + +
      +
      + +
      + +

      + Upgrade failed +

      +
      +
      +
      +
      +
      +
      +
      + +
      + + +
      +

      + Before you can edit this pipeline, we need to upgrade your configuration. +

      +
      +
      + + + +
      + + +
      + + + +
      + +
      + + + +
      +
      + +
      + + + +
      +
      +
      +
      +
      +
      + +
      + + +
      + + +`; + +exports[`UpgradeFailure component renders component as expected 1`] = ` + + + + } + body={ +

      + Before you can add a pipeline, we need to upgrade your configuration. +

      + } + iconColor="subdued" + title={ + + } + /> +
      +
      +`; diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure_actions.test.js.snap b/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure_actions.test.js.snap new file mode 100644 index 0000000000000..c68cd8315f8aa --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure_actions.test.js.snap @@ -0,0 +1,41 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`UpgradeFailureActions component renders component as expected 1`] = ` + + + + upgrade button text + + + + + Go back + + + +`; diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure_title.test.js.snap b/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure_title.test.js.snap new file mode 100644 index 0000000000000..d4b62be7bde2d --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/__snapshots__/upgrade_failure_title.test.js.snap @@ -0,0 +1,36 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`UpgradeFailureTitle component renders component as expected 1`] = ` + + + + + + +

      + the Title +

      +
      +
      +
      +`; diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/constants.js b/x-pack/plugins/logstash/public/components/upgrade_failure/constants.js new file mode 100644 index 0000000000000..1c0d598782870 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/constants.js @@ -0,0 +1,20 @@ +/* + * 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 UPGRADE_FAILURE = { + TITLE: { + IS_MANUAL_UPGRADE: 'Upgrade failed', + NOT_MANUAL_UPGRADE: 'Time for an upgrade!', + }, + MESSAGE: { + IS_NEW_PIPELINE: 'Before you can add a pipeline, we need to upgrade your configuration.', + NOT_NEW_PIPELINE: 'Before you can edit this pipeline, we need to upgrade your configuration.', + }, + UPGRADE_BUTTON_TEXT: { + IS_MANUAL_UPGRADE: 'Try again', + NOT_MANUAL_UPGRADE: 'Upgrade', + }, +}; diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/index.js b/x-pack/plugins/logstash/public/components/upgrade_failure/index.js new file mode 100644 index 0000000000000..0aa757bca5236 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/index.js @@ -0,0 +1,7 @@ +/* + * 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 { UpgradeFailure } from './upgrade_failure'; diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure.js b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure.js new file mode 100644 index 0000000000000..a107917913faf --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure.js @@ -0,0 +1,43 @@ +/* + * 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 React from 'react'; +import { EuiEmptyPrompt, EuiPage, EuiPageContent } from '@elastic/eui'; +import { UpgradeFailureTitle } from './upgrade_failure_title'; +import { UpgradeFailureActions } from './upgrade_failure_actions'; +import { UPGRADE_FAILURE } from './constants'; + +export function UpgradeFailure({ isNewPipeline, isManualUpgrade, onClose, onRetry }) { + const titleText = isManualUpgrade + ? UPGRADE_FAILURE.TITLE.IS_MANUAL_UPGRADE + : UPGRADE_FAILURE.TITLE.NOT_MANUAL_UPGRADE; + + const messageText = isNewPipeline + ? UPGRADE_FAILURE.MESSAGE.IS_NEW_PIPELINE + : UPGRADE_FAILURE.MESSAGE.NOT_NEW_PIPELINE; + + const upgradeButtonText = isManualUpgrade + ? UPGRADE_FAILURE.UPGRADE_BUTTON_TEXT.IS_MANUAL_UPGRADE + : UPGRADE_FAILURE.UPGRADE_BUTTON_TEXT.NOT_MANUAL_UPGRADE; + + return ( + + + + } + title={} + body={

      {messageText}

      } + /> +
      +
      + ); +} diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure.test.js b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure.test.js new file mode 100644 index 0000000000000..2d9e02e0d2942 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure.test.js @@ -0,0 +1,55 @@ +/* + * 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 React from 'react'; +import { mount, shallow } from 'enzyme'; +import { UpgradeFailure } from './upgrade_failure'; + +describe('UpgradeFailure component', () => { + let props; + let onClose; + let onRetry; + + beforeEach(() => { + onClose = jest.fn(); + onRetry = jest.fn(); + + props = { + isManualUpgrade: true, + isNewPipeline: true, + onClose, + onRetry, + }; + }); + + it('renders component as expected', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); + + it('passes expected text for new pipeline', () => { + const wrapper = mount(); + expect(wrapper).toMatchSnapshot(); + }); + + it('passes expected text for not new pipeline', () => { + props.isNewPipeline = false; + const wrapper = mount(); + expect(wrapper).toMatchSnapshot(); + }); + + it('passes expected text for not manual upgrade', () => { + props.isManualUpgrade = false; + const wrapper = mount(); + expect(wrapper).toMatchSnapshot(); + }); + + it('propogates onClose and onRetry functions to child', () => { + const wrapper = mount(); + expect(wrapper.find('UpgradeFailureActions').props().onClose).toEqual(onClose); + expect(wrapper.find('UpgradeFailureActions').props().onRetry).toEqual(onRetry); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_actions.js b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_actions.js new file mode 100644 index 0000000000000..bb9abff27714b --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_actions.js @@ -0,0 +1,32 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; + +export function UpgradeFailureActions({ onClose, onRetry, upgradeButtonText }) { + return ( + + + + {upgradeButtonText} + + + + + Go back + + + + ); +} + +UpgradeFailureActions.propTypes = { + onClose: PropTypes.func.isRequired, + onRetry: PropTypes.func.isRequired, + upgradeButtonText: PropTypes.string.isRequired, +}; diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_actions.test.js b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_actions.test.js new file mode 100644 index 0000000000000..0408dd2ca4682 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_actions.test.js @@ -0,0 +1,42 @@ +/* + * 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 React from 'react'; +import { mount, shallow } from 'enzyme'; +import { UpgradeFailureActions } from './upgrade_failure_actions'; + +describe('UpgradeFailureActions component', () => { + let props; + let onClose; + let onRetry; + + beforeEach(() => { + onClose = jest.fn(); + onRetry = jest.fn(); + props = { + onClose, + onRetry, + upgradeButtonText: 'upgrade button text', + }; + }); + + it('renders component as expected', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); + + it('calls onRetry on update click', () => { + const wrapper = mount(); + wrapper.find('EuiButton').simulate('click'); + expect(onRetry).toHaveBeenCalledTimes(1); + }); + + it('calls onClose on "Go back" click', () => { + const wrapper = mount(); + wrapper.find('EuiButtonEmpty').simulate('click'); + expect(onClose).toHaveBeenCalledTimes(1); + }); +}); diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_title.js b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_title.js new file mode 100644 index 0000000000000..749c49ea2257e --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_title.js @@ -0,0 +1,28 @@ +/* + * 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 React from 'react'; +import PropTypes from 'prop-types'; +import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiTitle } from '@elastic/eui'; + +export function UpgradeFailureTitle({ titleText }) { + return ( + + + + + + +

      {titleText}

      +
      +
      +
      + ); +} + +UpgradeFailureTitle.propTypes = { + titleText: PropTypes.string.isRequired, +}; diff --git a/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_title.test.js b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_title.test.js new file mode 100644 index 0000000000000..7fd5ad8f732b2 --- /dev/null +++ b/x-pack/plugins/logstash/public/components/upgrade_failure/upgrade_failure_title.test.js @@ -0,0 +1,21 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { UpgradeFailureTitle } from './upgrade_failure_title'; + +describe('UpgradeFailureTitle component', () => { + let props; + beforeEach(() => { + props = { titleText: 'the Title' }; + }); + + it('renders component as expected', () => { + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); +}); diff --git a/x-pack/plugins/logstash/public/lib/get_search_value/get_search_value.js b/x-pack/plugins/logstash/public/lib/get_search_value/get_search_value.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/lib/get_search_value/index.js b/x-pack/plugins/logstash/public/lib/get_search_value/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/lib/register_home_feature/index.js b/x-pack/plugins/logstash/public/lib/register_home_feature/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/lib/register_home_feature/register_home_feature.js b/x-pack/plugins/logstash/public/lib/register_home_feature/register_home_feature.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/lib/update_management_sections/index.js b/x-pack/plugins/logstash/public/lib/update_management_sections/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/lib/update_management_sections/update_logstash_sections.js b/x-pack/plugins/logstash/public/lib/update_management_sections/update_logstash_sections.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/models/cluster/cluster.js b/x-pack/plugins/logstash/public/models/cluster/cluster.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/models/cluster/index.js b/x-pack/plugins/logstash/public/models/cluster/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/models/pipeline/index.js b/x-pack/plugins/logstash/public/models/pipeline/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/models/pipeline/pipeline.js b/x-pack/plugins/logstash/public/models/pipeline/pipeline.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/models/pipeline_list_item/index.js b/x-pack/plugins/logstash/public/models/pipeline_list_item/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/models/pipeline_list_item/pipeline_list_item.js b/x-pack/plugins/logstash/public/models/pipeline_list_item/pipeline_list_item.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/index.js b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.html b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.html deleted file mode 100644 index 07e133fe17550..0000000000000 --- a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.html +++ /dev/null @@ -1,292 +0,0 @@ - -
      -
      -
      -
      -
      - - - -
      -
      -
      -
      - -
      -
      -
      - - -
      - Pipeline ID must begin with a letter or underscore and contain only letters, underscores, dashes, and numbers -
      -
      - Pipeline ID is required -
      -
      -
      - - -
      - -
      -
      - -
      -
      -
      -
      - - - -
      -
      -
      -
      - - -
      -
      -
      - -
      -
      -
      - - -
      -
      - - -
      -
      -
      - -
      -
      -
      - - -
      -
      - - - -
      -
      - - -
      -
      -
      - -
      -
      -
      diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.js b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.js old mode 100644 new mode 100755 index b7411b45b3ab4..29e453dd1347b --- a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.js +++ b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.js @@ -4,16 +4,14 @@ * you may not use this file except in compliance with the Elastic License. */ +import React from 'react'; +import { render } from 'react-dom'; import { isEmpty } from 'lodash'; import { uiModules } from 'ui/modules'; -import { InitAfterBindingsWorkaround } from 'ui/compat'; -import { toastNotifications } from 'ui/notify'; -import template from './pipeline_edit.html'; +import { Notifier, toastNotifications } from 'ui/notify'; +import { PipelineEditor } from '../../../../components/pipeline_editor'; import 'plugins/logstash/services/license'; import 'plugins/logstash/services/security'; -import './pipeline_edit.less'; -import '../../../../components/tooltip'; -import { EDITOR, TOOLTIPS } from '../../../../../common/constants'; import 'ace'; const app = uiModules.get('xpack/logstash'); @@ -23,109 +21,39 @@ app.directive('pipelineEdit', function ($injector) { const licenseService = $injector.get('logstashLicenseService'); const securityService = $injector.get('logstashSecurityService'); const kbnUrl = $injector.get('kbnUrl'); - const confirmModal = $injector.get('confirmModal'); + const shieldUser = $injector.get('ShieldUser'); + const $route = $injector.get('$route'); return { restrict: 'E', - template: template, + link: async (scope, el) => { + const close = () => scope.$evalAsync(kbnUrl.change('/management/logstash/pipelines', {})); + const open = id => + scope.$evalAsync(kbnUrl.change(`/management/logstash/pipelines/${id}/edit`)); + + const userResource = securityService.isSecurityEnabled + ? await shieldUser.getCurrent().$promise + : null; + + render( + , + el[0] + ); + }, scope: { pipeline: '=', }, - bindToController: true, - controllerAs: 'pipelineEdit', - controller: class PipelineEditController extends InitAfterBindingsWorkaround { - initAfterBindings($scope) { - this.originalPipeline = { ...this.pipeline }; - this.isNewPipeline = isEmpty(this.pipeline.id); - // only if security is enabled and available, we tack on the username. - if (securityService.isSecurityEnabled) { - $scope.user = $injector.get('ShieldUser').getCurrent(); - } else { - $scope.user = null; - } - $scope.aceLoaded = editor => { - this.editor = editor; - /* - * This sets the space between the editor's borders and the - * edges of the top/bottom lines to make for a less-crowded - * typing experience. - */ - editor.renderer.setScrollMargin( - EDITOR.PIPELINE_EDITOR_SCROLL_MARGIN_TOP_PX, - EDITOR.PIPELINE_EDITOR_SCROLL_MARGIN_BOTTOM_PX, - 0, - 0 - ); - editor.setReadOnly(this.isReadOnly); - editor.setOptions({ - minLines: 25, - maxLines: Infinity, - }); - editor.$blockScrolling = Infinity; - }; - if (this.isReadOnly) { - toastNotifications.addWarning(licenseService.message); - } - - this.tooltips = TOOLTIPS; - } - - onPipelineSave = username => { - this.pipeline.username = username; - return pipelineService - .savePipeline(this.pipeline) - .then(() => { - toastNotifications.addSuccess(`Saved '${this.pipeline.id}'`); - this.close(); - }) - .catch(err => { - return licenseService - .checkValidity() - .then(() => toastNotifications.addDanger(err)); - }); - }; - - onPipelineDelete = pipelineId => { - const confirmModalOptions = { - onConfirm: this.deletePipeline, - confirmButtonText: `Delete pipeline ${pipelineId}`, - }; - - return confirmModal( - 'You cannot recover a deleted pipeline.', - confirmModalOptions - ); - }; - - onClose = () => { - this.close(); - }; - - deletePipeline = () => { - return pipelineService - .deletePipeline(this.pipeline.id) - .then(() => { - toastNotifications.addSuccess(`Deleted '${this.pipeline.id}'`); - this.close(); - }) - .catch(err => { - return licenseService - .checkValidity() - .then(() => toastNotifications.addDanger(err)); - }); - }; - - close = () => { - kbnUrl.change('/management/logstash/pipelines', {}); - }; - - get isSaveEnabled() { - return !(this.form.$invalid || this.jsonForm.$invalid); - } - - get isReadOnly() { - return licenseService.isReadOnly; - } - }, }; }); diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.less b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.less deleted file mode 100644 index f5c00fc6a495f..0000000000000 --- a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/pipeline_edit/pipeline_edit.less +++ /dev/null @@ -1,9 +0,0 @@ -@import (reference) "~ui/styles/variables"; -@import (reference) "~ui/styles/mixins"; -@import (reference) "~ui/styles/theme"; - -pipeline-edit { - .pipeline-editor { - border: 1px solid #ecf0f1; - } -} diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/index.js b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/upgrade_failure.html b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/upgrade_failure.html deleted file mode 100644 index 6a0970d650f6e..0000000000000 --- a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/upgrade_failure.html +++ /dev/null @@ -1,59 +0,0 @@ - -
      -
      -
      -
      -
      - Time for an upgrade! - Upgrade failed -
      -
      -
      -

      - Before you can - add a - edit this - pipeline, we need to upgrade your configuration. -

      -

      - This upgrade is required before you can - add a - edit this - pipeline. -

      -
      - - -
      -
      -
      -
      -
      -
      diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/upgrade_failure.js b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/upgrade_failure.js old mode 100644 new mode 100755 index 62f03638ddbc4..4d46fb7e5d2a4 --- a/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/upgrade_failure.js +++ b/x-pack/plugins/logstash/public/sections/pipeline_edit/components/upgrade_failure/upgrade_failure.js @@ -4,40 +4,43 @@ * you may not use this file except in compliance with the Elastic License. */ +import React from 'react'; +import { render } from 'react-dom'; import { isEmpty } from 'lodash'; import { uiModules } from 'ui/modules'; -import { InitAfterBindingsWorkaround } from 'ui/compat'; -import template from './upgrade_failure.html'; +import { UpgradeFailure } from '../../../../components/upgrade_failure'; const app = uiModules.get('xpack/logstash'); -app.directive('upgradeFailure', function ($injector) { +app.directive('upgradeFailure', $injector => { const $route = $injector.get('$route'); const kbnUrl = $injector.get('kbnUrl'); return { - restrict: 'E', - template: template, - scope: { - pipeline: '=' - }, - bindToController: true, - controllerAs: 'upgradeFailure', - controller: class UpgradeController extends InitAfterBindingsWorkaround { - initAfterBindings() { - this.isNewPipeline = isEmpty(this.pipeline.id); - this.isManualUpgrade = !!$route.current.params.retry; - } - - onRetry = () => { - // Reloading the route re-attempts the upgrade + link: (scope, el) => { + const onRetry = () => { $route.updateParams({ retry: true }); $route.reload(); - } + }; + const onClose = () => { + scope.$evalAsync(kbnUrl.change('management/logstash/pipelines', {})); + }; + const isNewPipeline = isEmpty(scope.pipeline.id); + const isManualUpgrade = !!$route.current.params.retry; - onClose = () => { - kbnUrl.change('/management/logstash/pipelines', {}); - } - } + render( + , + el[0] + ); + }, + restrict: 'E', + scope: { + pipeline: '=', + }, }; }); diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/index.js b/x-pack/plugins/logstash/public/sections/pipeline_edit/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/pipeline_edit_route.html b/x-pack/plugins/logstash/public/sections/pipeline_edit/pipeline_edit_route.html old mode 100644 new mode 100755 index 00764de4458a8..6a19416ef0e3d --- a/x-pack/plugins/logstash/public/sections/pipeline_edit/pipeline_edit_route.html +++ b/x-pack/plugins/logstash/public/sections/pipeline_edit/pipeline_edit_route.html @@ -1,9 +1,5 @@ - + + - + + diff --git a/x-pack/plugins/logstash/public/sections/pipeline_edit/pipeline_edit_route.js b/x-pack/plugins/logstash/public/sections/pipeline_edit/pipeline_edit_route.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/index.js b/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/pipeline_list.html b/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/pipeline_list.html deleted file mode 100644 index ceaacf9f715d6..0000000000000 --- a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/pipeline_list.html +++ /dev/null @@ -1,125 +0,0 @@ - -
      -
      -

      - - You do not have permission to manage Logstash pipelines. -

      -
      - Please contact your administrator. -
      -
      -
      - -
      -
      -
      -
      - -
      - -
      - - -
      - -
      - - -
      -
      - - - Loading pipelines - - - No pipelines found - - - - -
      -
      -
      -
      -
      - Only pipelines created in Kibana Management appear here -
      -
      -
      - -
      -

      How can I see additional pipelines?

      - -
        -
      • Grant additional privileges. In Kibana Management, assign the monitoring_user role to your Kibana user.
      • -
      • Enable monitoring. In the kibana.yml file, set xpack.monitoring.enabled and xpack.monitoring.ui.enabled to true.
      • -
      - -

      - Grant additional privileges. In Kibana Management, assign the monitoring_user role to your Kibana user. -

      - -

      - Enable monitoring. In the kibana.yml file, set xpack.monitoring.enabled and xpack.monitoring.ui.enabled to true. -

      -
      -
      -
      -
      - -
      diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/pipeline_list.js b/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/pipeline_list.js old mode 100644 new mode 100755 index 3bc03877ceef9..1af69bcdb79f9 --- a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/pipeline_list.js +++ b/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_list/pipeline_list.js @@ -4,16 +4,11 @@ * you may not use this file except in compliance with the Elastic License. */ -import pluralize from 'pluralize'; +import React from 'react'; +import { render } from 'react-dom'; import { uiModules } from 'ui/modules'; import { toastNotifications } from 'ui/notify'; -import template from './pipeline_list.html'; -import '../pipeline_table'; -import { PAGINATION } from 'plugins/logstash/../common/constants'; -import 'ui/pager_control'; -import 'ui/pager'; -import 'ui/react_components'; -import 'ui/table_info'; +import { PipelineList } from '../../../../components/pipeline_list'; import 'plugins/logstash/services/pipelines'; import 'plugins/logstash/services/license'; import 'plugins/logstash/services/cluster'; @@ -22,193 +17,39 @@ import 'plugins/logstash/services/monitoring'; const app = uiModules.get('xpack/logstash'); app.directive('pipelineList', function ($injector) { - const pagerFactory = $injector.get('pagerFactory'); const pipelinesService = $injector.get('pipelinesService'); const licenseService = $injector.get('logstashLicenseService'); const clusterService = $injector.get('xpackLogstashClusterService'); const monitoringService = $injector.get('xpackLogstashMonitoringService'); - const confirmModal = $injector.get('confirmModal'); const kbnUrl = $injector.get('kbnUrl'); - const $filter = $injector.get('$filter'); - const filter = $filter('filter'); - const orderBy = $filter('orderBy'); - const limitTo = $filter('limitTo'); - return { restrict: 'E', - template: template, + link: (scope, el) => { + const openPipeline = id => + scope.$evalAsync(kbnUrl.change(`management/logstash/pipelines/pipeline/${id}/edit`)); + const createPipeline = () => + scope.$evalAsync(kbnUrl.change('management/logstash/pipelines/new-pipeline')); + const clonePipeline = id => + scope.$evalAsync(kbnUrl.change(`management/logstash/pipelines/pipeline/${id}/edit?clone`)); + render( + , + el[0] + ); + }, scope: {}, controllerAs: 'pipelineList', - controller: class PipelineListController { - constructor($scope) { - this.isForbidden = true; - this.isLoading = true; - this.pipelines = []; - this.selectedPipelines = []; - this.pageOfPipelines = []; - this.sortField = 'status.sortOrder'; - this.sortReverse = false; - - this.pager = pagerFactory.create(this.pipelines.length, PAGINATION.PAGE_SIZE, 1); - - // load pipelines - this.loadPipelines() - .then(() => { - // notify the users if the UI is read-only only after we - // successfully loaded pipelines - if (this.isReadOnly) { - toastNotifications.addWarning(licenseService.message); - } - }); - - this.checkMonitoringAccess(); - - // react to pipeline and ui changes - $scope.$watchMulti([ - 'pipelineList.pipelines', - 'pipelineList.sortField', - 'pipelineList.sortReverse', - 'pipelineList.query', - 'pipelineList.pager.currentPage' - ], this.applyFilters); - } - - loadPipelines = () => { - return pipelinesService.getPipelineList() - .then(pipelines => { - this.isLoading = false; - this.isForbidden = false; - this.pipelines = pipelines; - }) - .catch(err => { - return licenseService.checkValidity() - .then(() => { - if (err.status === 403) { - this.isLoading = false; - // check if the 403 is from license check or a RBAC permission issue with the index - if (this.isReadOnly) { - // if read only, we show the contents - this.isForbidden = false; - } else { - this.isForbidden = true; - } - } else { - this.isForbidden = false; - toastNotifications.addDanger(`Couldn't load pipeline. Error: '${err.statusText}'.`); - } - }); - }); - } - - checkMonitoringAccess = () => { - clusterService.isClusterInfoAvailable() - .then(isAvailable => { - this.showAddRoleAlert = !isAvailable; - this.showEnableMonitoringAlert = !monitoringService.isMonitoringEnabled(); - }); - } - - get hasPageOfPipelines() { - return this.pageOfPipelines.length > 0; - } - - get hasSelectedPipelines() { - return this.selectedPipelines.length > 0; - } - - get isReadOnly() { - return licenseService.isReadOnly; - } - - onNewPipeline() { - kbnUrl.change('/management/logstash/pipelines/new-pipeline'); - } - - onQueryChange = (query) => { - this.query = query; - }; - - onPageNext = () => { - this.pager.nextPage(); - }; - - onPagePrevious = () => { - this.pager.previousPage(); - }; - - onSortChange = (field, reverse) => { - this.sortField = field; - this.sortReverse = reverse; - }; - - onSelectedPipelinesDelete = () => { - const numPipelinesToDelete = this.selectedPipelines.length; - - const confirmModalText = numPipelinesToDelete === 1 - ? 'You cannot recover a deleted pipeline.' - : `Delete ${numPipelinesToDelete} pipelines? You cannot recover deleted pipelines.`; - - const confirmButtonText = numPipelinesToDelete === 1 - ? `Delete pipeline ${this.selectedPipelines[0].id}` - : `Delete ${numPipelinesToDelete} pipelines`; - - const confirmModalOptions = { - confirmButtonText, - onConfirm: this.deleteSelectedPipelines - }; - - return confirmModal(confirmModalText, confirmModalOptions); - }; - - deleteSelectedPipelines = () => { - const numPipelinesToDelete = this.selectedPipelines.length; - const pipelinesStr = pluralize('Pipeline', numPipelinesToDelete); - - const pipelineIds = this.selectedPipelines.map(pipeline => pipeline.id); - return pipelinesService.deletePipelines(pipelineIds) - .then(results => { - const numSuccesses = results.numSuccesses; - const numErrors = results.numErrors; - const numTotal = this.selectedPipelines.length; - - if (numSuccesses > 0) { - let text; - if (numErrors > 0) { - text = `But ${numErrors} ${pipelinesStr} couldn't be deleted`; - } - - toastNotifications.addSuccess({ - title: `Deleted ${numSuccesses} out of ${numTotal} selected ${pipelinesStr}`, - text, - }); - } else if (numErrors > 0) { - toastNotifications.addError(`Couldn't delete any of the ${numTotal} selected ${pipelinesStr}`); - } - - this.loadPipelines(); - }) - .catch(err => { - return licenseService.checkValidity() - .then(() => toastNotifications.addDanger(err)); - }); - } - - onSelectedChange = (selectedPipelines) => { - this.selectedPipelines = selectedPipelines; - }; - - applyFilters = () => { - let filteredPipelines = this.pipelines; - let pageOfPipelines = []; - - filteredPipelines = filter(filteredPipelines, { searchValue: this.query }); - filteredPipelines = orderBy(filteredPipelines, this.sortField, this.sortReverse); - pageOfPipelines = limitTo(filteredPipelines, this.pager.pageSize, this.pager.startIndex); - - this.pageOfPipelines = pageOfPipelines; - this.pager.setTotalItems(filteredPipelines.length); - }; - } }; }); diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/index.js b/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/index.js deleted file mode 100644 index 8769f6eb505f1..0000000000000 --- a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/index.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * 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 './pipeline_table'; diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/pipeline_table.html b/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/pipeline_table.html deleted file mode 100644 index 7fc41e229cc8d..0000000000000 --- a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/pipeline_table.html +++ /dev/null @@ -1,117 +0,0 @@ -

      - - - - - - - - - - - - - - - - - - - - - -
      -
      - -
      -
      - - ID - - - Description - - - Last modified - - - Modified by -
      -
      - -
      -
      -
      - - {{item.pipeline.id}} - - - {{item.pipeline.id}} - - -
      -
      -
      - {{item.pipeline.description}} -
      -
      -
      - - {{ item.pipeline.lastModifiedHumanized }} - -
      -
      -
      - {{item.pipeline.username}} -
      -
      - -
      diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/pipeline_table.js b/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/pipeline_table.js deleted file mode 100644 index e0ee0af7aee8c..0000000000000 --- a/x-pack/plugins/logstash/public/sections/pipeline_list/components/pipeline_table/pipeline_table.js +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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 _ from 'lodash'; -import moment from 'moment-timezone'; -import { uiModules } from 'ui/modules'; -import 'ui/filters/moment'; -import 'ui/check_box'; -import 'ui/sortable_column'; -import template from './pipeline_table.html'; -import 'plugins/logstash/services/security'; -import '../../../../components/tooltip'; - -const app = uiModules.get('xpack/logstash'); - -app.directive('pipelineTable', function ($injector) { - const config = $injector.get('config'); - const securityService = $injector.get('logstashSecurityService'); - moment.tz.setDefault(config.get('dateFormat:tz')); - - return { - restrict: 'E', - template: template, - scope: { - pipelines: '=', - sortField: '=', - sortReverse: '=', - onSortChange: '=', - onSelectChange: '=' - }, - controllerAs: 'pipelineTable', - bindToController: true, - controller: class PipelineTableController { - constructor($scope) { - this.allSelected = false; - $scope.$watch('pipelineTable.pipelines', (pipelines) => { - const previousItems = this.items; - - this.items = _.map(pipelines, (pipeline) => { - const matchedItem = _.find(previousItems, previousItem => previousItem.pipeline.id === pipeline.id); - const selected = Boolean(_.get(matchedItem, 'selected')); - return { pipeline: pipeline, selected: selected }; - }); - this.updateSelectedPipelines(); - }); - } - - onAllSelectedChange = (itemId, allSelected) => { - this.items - .filter(item => item.pipeline.isCentrallyManaged) - .forEach(item => item.selected = allSelected); - this.updateSelectedPipelines(); - }; - - onPipelineSelectedChange = (pipelineId, selected) => { - _.find(this.items, item => item.pipeline.id === pipelineId).selected = selected; - this.updateSelectedPipelines(); - }; - - updateSelectedPipelines = () => { - const selectedItems = _.filter(this.items, item => item.selected); - const selectedPipelines = _.map(selectedItems, item => item.pipeline); - - this.allSelected = selectedPipelines.length > 0 - && (selectedPipelines.length === this.items.filter(item => item.pipeline.isCentrallyManaged).length); - this.onSelectChange(selectedPipelines); - }; - - get isSecurityEnabled() { - return securityService.isSecurityEnabled; - } - } - }; -}); diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/index.js b/x-pack/plugins/logstash/public/sections/pipeline_list/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/pipeline_list_route.html b/x-pack/plugins/logstash/public/sections/pipeline_list/pipeline_list_route.html old mode 100644 new mode 100755 index b064e5fe45a3d..fc46d3bdea44b --- a/x-pack/plugins/logstash/public/sections/pipeline_list/pipeline_list_route.html +++ b/x-pack/plugins/logstash/public/sections/pipeline_list/pipeline_list_route.html @@ -1 +1,3 @@ - + + + diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/pipeline_list_route.js b/x-pack/plugins/logstash/public/sections/pipeline_list/pipeline_list_route.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/sections/pipeline_list/register_management_section.js b/x-pack/plugins/logstash/public/sections/pipeline_list/register_management_section.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/cluster/cluster_service.factory.js b/x-pack/plugins/logstash/public/services/cluster/cluster_service.factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/cluster/cluster_service.js b/x-pack/plugins/logstash/public/services/cluster/cluster_service.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/cluster/index.js b/x-pack/plugins/logstash/public/services/cluster/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/license/index.js b/x-pack/plugins/logstash/public/services/license/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/license/license_service.factory.js b/x-pack/plugins/logstash/public/services/license/license_service.factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/license/logstash_license_service.js b/x-pack/plugins/logstash/public/services/license/logstash_license_service.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/monitoring/index.js b/x-pack/plugins/logstash/public/services/monitoring/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/monitoring/monitoring_service.factory.js b/x-pack/plugins/logstash/public/services/monitoring/monitoring_service.factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/monitoring/monitoring_service.js b/x-pack/plugins/logstash/public/services/monitoring/monitoring_service.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/pipeline/index.js b/x-pack/plugins/logstash/public/services/pipeline/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/pipeline/pipeline_service.factory.js b/x-pack/plugins/logstash/public/services/pipeline/pipeline_service.factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/pipeline/pipeline_service.js b/x-pack/plugins/logstash/public/services/pipeline/pipeline_service.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/pipelines/index.js b/x-pack/plugins/logstash/public/services/pipelines/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/pipelines/pipelines_service.factory.js b/x-pack/plugins/logstash/public/services/pipelines/pipelines_service.factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/pipelines/pipelines_service.js b/x-pack/plugins/logstash/public/services/pipelines/pipelines_service.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/security/index.js b/x-pack/plugins/logstash/public/services/security/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/security/logstash_security_service.js b/x-pack/plugins/logstash/public/services/security/logstash_security_service.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/security/security_service.factory.js b/x-pack/plugins/logstash/public/services/security/security_service.factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/upgrade/index.js b/x-pack/plugins/logstash/public/services/upgrade/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/upgrade/upgrade_service.factory.js b/x-pack/plugins/logstash/public/services/upgrade/upgrade_service.factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/public/services/upgrade/upgrade_service.js b/x-pack/plugins/logstash/public/services/upgrade/upgrade_service.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/call_with_request_factory/call_with_request_factory.js b/x-pack/plugins/logstash/server/lib/call_with_request_factory/call_with_request_factory.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/call_with_request_factory/index.js b/x-pack/plugins/logstash/server/lib/call_with_request_factory/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/check_license/__tests__/check_license.js b/x-pack/plugins/logstash/server/lib/check_license/__tests__/check_license.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/check_license/check_license.js b/x-pack/plugins/logstash/server/lib/check_license/check_license.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/check_license/index.js b/x-pack/plugins/logstash/server/lib/check_license/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/error_wrappers/__tests__/wrap_custom_error.js b/x-pack/plugins/logstash/server/lib/error_wrappers/__tests__/wrap_custom_error.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/error_wrappers/__tests__/wrap_es_error.js b/x-pack/plugins/logstash/server/lib/error_wrappers/__tests__/wrap_es_error.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/error_wrappers/__tests__/wrap_unknown_error.js b/x-pack/plugins/logstash/server/lib/error_wrappers/__tests__/wrap_unknown_error.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/error_wrappers/index.js b/x-pack/plugins/logstash/server/lib/error_wrappers/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_custom_error.js b/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_custom_error.js old mode 100644 new mode 100755 index 890a366ac65c1..3295113d38ee5 --- a/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_custom_error.js +++ b/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_custom_error.js @@ -14,5 +14,5 @@ import Boom from 'boom'; * @return Object Boom error response */ export function wrapCustomError(err, statusCode) { - return Boom.wrap(err, statusCode); + return Boom.boomify(err, { statusCode }); } diff --git a/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_es_error.js b/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_es_error.js old mode 100644 new mode 100755 index 3673de6470bb9..112efc6749ae1 --- a/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_es_error.js +++ b/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_es_error.js @@ -18,5 +18,5 @@ export function wrapEsError(err) { if (statusCode === 403) { return Boom.forbidden('Insufficient user permissions for managing Logstash pipelines'); } - return Boom.wrap(err, err.statusCode); + return Boom.boomify(err, { statusCode: err.statusCode }); } diff --git a/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_unknown_error.js b/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_unknown_error.js old mode 100644 new mode 100755 index b0cdced7adbef..ffd915c513362 --- a/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_unknown_error.js +++ b/x-pack/plugins/logstash/server/lib/error_wrappers/wrap_unknown_error.js @@ -13,5 +13,5 @@ import Boom from 'boom'; * @return Object Boom error response */ export function wrapUnknownError(err) { - return Boom.wrap(err); + return Boom.boomify(err); } diff --git a/x-pack/plugins/logstash/server/lib/fetch_all_from_scroll/__tests__/fetch_all_from_scroll.js b/x-pack/plugins/logstash/server/lib/fetch_all_from_scroll/__tests__/fetch_all_from_scroll.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/fetch_all_from_scroll/fetch_all_from_scroll.js b/x-pack/plugins/logstash/server/lib/fetch_all_from_scroll/fetch_all_from_scroll.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/fetch_all_from_scroll/index.js b/x-pack/plugins/logstash/server/lib/fetch_all_from_scroll/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js b/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js old mode 100644 new mode 100755 index c543d79814dd3..c63eef750bee9 --- a/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js +++ b/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js @@ -40,14 +40,13 @@ describe('license_pre_routing_factory', () => { }; }); - it ('replies with 403', (done) => { + it ('replies with 403', () => { const licensePreRouting = licensePreRoutingFactory(mockServer); const stubRequest = {}; - licensePreRouting(stubRequest, (response) => { + expect(() => licensePreRouting(stubRequest)).to.throwException((response) => { expect(response).to.be.an(Error); expect(response.isBoom).to.be(true); expect(response.output.statusCode).to.be(403); - done(); }); }); }); @@ -59,13 +58,11 @@ describe('license_pre_routing_factory', () => { }; }); - it ('replies with nothing', (done) => { + it ('replies with nothing', () => { const licensePreRouting = licensePreRoutingFactory(mockServer); const stubRequest = {}; - licensePreRouting(stubRequest, (response) => { - expect(response).to.be(undefined); - done(); - }); + const response = licensePreRouting(stubRequest); + expect(response).to.be(null); }); }); }); diff --git a/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/index.js b/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/license_pre_routing_factory.js b/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/license_pre_routing_factory.js old mode 100644 new mode 100755 index 4ae31f692bfd7..862ed8a575ba5 --- a/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/license_pre_routing_factory.js +++ b/x-pack/plugins/logstash/server/lib/license_pre_routing_factory/license_pre_routing_factory.js @@ -12,16 +12,15 @@ export const licensePreRoutingFactory = once((server) => { const xpackMainPlugin = server.plugins.xpack_main; // License checking and enable/disable logic - function licensePreRouting(request, reply) { + function licensePreRouting() { const licenseCheckResults = xpackMainPlugin.info.feature(PLUGIN.ID).getLicenseCheckResults(); if (!licenseCheckResults.isAvailable) { const error = new Error(licenseCheckResults.message); const statusCode = 403; - const wrappedError = wrapCustomError(error, statusCode); - reply(wrappedError); - } else { - reply(); + throw wrapCustomError(error, statusCode); } + + return null; } return licensePreRouting; diff --git a/x-pack/plugins/logstash/server/lib/register_license_checker/index.js b/x-pack/plugins/logstash/server/lib/register_license_checker/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/lib/register_license_checker/register_license_checker.js b/x-pack/plugins/logstash/server/lib/register_license_checker/register_license_checker.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/cluster/__tests__/cluster.js b/x-pack/plugins/logstash/server/models/cluster/__tests__/cluster.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/cluster/cluster.js b/x-pack/plugins/logstash/server/models/cluster/cluster.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/cluster/index.js b/x-pack/plugins/logstash/server/models/cluster/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/pipeline/__tests__/pipeline.js b/x-pack/plugins/logstash/server/models/pipeline/__tests__/pipeline.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/pipeline/index.js b/x-pack/plugins/logstash/server/models/pipeline/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/pipeline/pipeline.js b/x-pack/plugins/logstash/server/models/pipeline/pipeline.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/pipeline_list_item/__tests__/pipeline_list_item.js b/x-pack/plugins/logstash/server/models/pipeline_list_item/__tests__/pipeline_list_item.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/pipeline_list_item/index.js b/x-pack/plugins/logstash/server/models/pipeline_list_item/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/models/pipeline_list_item/pipeline_list_item.js b/x-pack/plugins/logstash/server/models/pipeline_list_item/pipeline_list_item.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/cluster/index.js b/x-pack/plugins/logstash/server/routes/api/cluster/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/cluster/register_cluster_routes.js b/x-pack/plugins/logstash/server/routes/api/cluster/register_cluster_routes.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/cluster/register_load_route.js b/x-pack/plugins/logstash/server/routes/api/cluster/register_load_route.js old mode 100644 new mode 100755 index 0d565f80299c5..3f6a363f424d7 --- a/x-pack/plugins/logstash/server/routes/api/cluster/register_load_route.js +++ b/x-pack/plugins/logstash/server/routes/api/cluster/register_load_route.js @@ -19,16 +19,18 @@ export function registerLoadRoute(server) { server.route({ path: '/api/logstash/cluster', method: 'GET', - handler: (request, reply) => { + handler: (request, h) => { const callWithRequest = callWithRequestFactory(server, request); return fetchCluster(callWithRequest) - .then(responseFromES => reply({ cluster: Cluster.fromUpstreamJSON(responseFromES).downstreamJSON })) + .then(responseFromES => ({ + cluster: Cluster.fromUpstreamJSON(responseFromES).downstreamJSON + })) .catch((e) => { if (e.status === 403) { - return reply(); + return h.response(); } - reply(Boom.internal(e)); + throw Boom.internal(e); }); }, config: { diff --git a/x-pack/plugins/logstash/server/routes/api/pipeline/index.js b/x-pack/plugins/logstash/server/routes/api/pipeline/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/pipeline/register_delete_route.js b/x-pack/plugins/logstash/server/routes/api/pipeline/register_delete_route.js old mode 100644 new mode 100755 index 179504d753add..9702e35ac5152 --- a/x-pack/plugins/logstash/server/routes/api/pipeline/register_delete_route.js +++ b/x-pack/plugins/logstash/server/routes/api/pipeline/register_delete_route.js @@ -24,13 +24,13 @@ export function registerDeleteRoute(server) { server.route({ path: '/api/logstash/pipeline/{id}', method: 'DELETE', - handler: (request, reply) => { + handler: (request, h) => { const callWithRequest = callWithRequestFactory(server, request); const pipelineId = request.params.id; return deletePipeline(callWithRequest, pipelineId) - .then(() => reply().code(204)) - .catch(e => reply(wrapEsError(e))); + .then(() => h.response().code(204)) + .catch(e => wrapEsError(e)); }, config: { pre: [ licensePreRouting ] diff --git a/x-pack/plugins/logstash/server/routes/api/pipeline/register_load_route.js b/x-pack/plugins/logstash/server/routes/api/pipeline/register_load_route.js old mode 100644 new mode 100755 index 789ea81b19395..90e897a18eb86 --- a/x-pack/plugins/logstash/server/routes/api/pipeline/register_load_route.js +++ b/x-pack/plugins/logstash/server/routes/api/pipeline/register_load_route.js @@ -31,20 +31,20 @@ export function registerLoadRoute(server) { server.route({ path: '/api/logstash/pipeline/{id}', method: 'GET', - handler: (request, reply) => { + handler: (request) => { const callWithRequest = callWithRequestFactory(server, request); const pipelineId = request.params.id; return fetchPipeline(callWithRequest, pipelineId) .then((pipelineResponseFromES) => { if (!pipelineResponseFromES.found) { - return reply(Boom.notFound()); + throw Boom.notFound(); } const pipeline = Pipeline.fromUpstreamJSON(pipelineResponseFromES); - reply(pipeline.downstreamJSON); + return pipeline.downstreamJSON; }) - .catch((e) => reply(Boom.internal(e))); + .catch((e) => Boom.boomify(e)); }, config: { pre: [ licensePreRouting ] diff --git a/x-pack/plugins/logstash/server/routes/api/pipeline/register_pipeline_routes.js b/x-pack/plugins/logstash/server/routes/api/pipeline/register_pipeline_routes.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/pipeline/register_save_route.js b/x-pack/plugins/logstash/server/routes/api/pipeline/register_save_route.js old mode 100644 new mode 100755 index 7af9baaa122da..235392e42620b --- a/x-pack/plugins/logstash/server/routes/api/pipeline/register_save_route.js +++ b/x-pack/plugins/logstash/server/routes/api/pipeline/register_save_route.js @@ -27,7 +27,7 @@ export function registerSaveRoute(server) { server.route({ path: '/api/logstash/pipeline/{id}', method: 'PUT', - handler: async (request, reply) => { + handler: async (request, h) => { let username; if (server.plugins.security) { const user = await server.plugins.security.getUser(request); @@ -39,8 +39,8 @@ export function registerSaveRoute(server) { const pipeline = Pipeline.fromDownstreamJSON(request.payload, pipelineId, username); return savePipeline(callWithRequest, pipeline.id, pipeline.upstreamJSON) - .then(() => reply().code(204)) - .catch(e => reply(wrapEsError(e))); + .then(() => h.response().code(204)) + .catch(e => wrapEsError(e)); }, config: { pre: [ licensePreRouting ] diff --git a/x-pack/plugins/logstash/server/routes/api/pipelines/index.js b/x-pack/plugins/logstash/server/routes/api/pipelines/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/pipelines/register_delete_route.js b/x-pack/plugins/logstash/server/routes/api/pipelines/register_delete_route.js old mode 100644 new mode 100755 index e0d754563ea59..e733ae46e20f9 --- a/x-pack/plugins/logstash/server/routes/api/pipelines/register_delete_route.js +++ b/x-pack/plugins/logstash/server/routes/api/pipelines/register_delete_route.js @@ -39,16 +39,12 @@ export function registerDeleteRoute(server) { server.route({ path: '/api/logstash/pipelines', method: 'DELETE', - handler: (request, reply) => { + handler: (request) => { const callWithRequest = callWithRequestFactory(server, request); return deletePipelines(callWithRequest, request.payload.pipelineIds) - .then(results => { - reply({ results }); - }) - .catch(err => { - reply(wrapUnknownError(err)); - }); + .then(results => ({ results })) + .catch(err => wrapUnknownError(err)); }, config: { pre: [ licensePreRouting ] diff --git a/x-pack/plugins/logstash/server/routes/api/pipelines/register_list_route.js b/x-pack/plugins/logstash/server/routes/api/pipelines/register_list_route.js old mode 100644 new mode 100755 index f942e2080be6e..6d9eab891276c --- a/x-pack/plugins/logstash/server/routes/api/pipelines/register_list_route.js +++ b/x-pack/plugins/logstash/server/routes/api/pipelines/register_list_route.js @@ -31,7 +31,7 @@ export function registerListRoute(server) { server.route({ path: '/api/logstash/pipelines', method: 'GET', - handler: (request, reply) => { + handler: (request) => { const callWithRequest = callWithRequestFactory(server, request); return fetchPipelines(callWithRequest) @@ -41,10 +41,9 @@ export function registerListRoute(server) { return PipelineListItem.fromUpstreamJSON(pipeline).downstreamJSON; }); - reply({ pipelines }); - + return { pipelines }; }) - .catch(e => reply(wrapEsError(e))); + .catch(e => wrapEsError(e)); }, config: { pre: [ licensePreRouting ] diff --git a/x-pack/plugins/logstash/server/routes/api/pipelines/register_pipelines_routes.js b/x-pack/plugins/logstash/server/routes/api/pipelines/register_pipelines_routes.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/upgrade/index.js b/x-pack/plugins/logstash/server/routes/api/upgrade/index.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/logstash/server/routes/api/upgrade/register_execute_route.js b/x-pack/plugins/logstash/server/routes/api/upgrade/register_execute_route.js old mode 100644 new mode 100755 index 843525e28375c..7bdeb136576cb --- a/x-pack/plugins/logstash/server/routes/api/upgrade/register_execute_route.js +++ b/x-pack/plugins/logstash/server/routes/api/upgrade/register_execute_route.js @@ -42,13 +42,13 @@ export function registerExecuteRoute(server) { server.route({ path: '/api/logstash/upgrade', method: 'POST', - handler: async (request, reply) => { + handler: async (request) => { const callWithRequest = callWithRequestFactory(server, request); try { await executeUpgrade(callWithRequest); - reply({ is_upgraded: true }); + return { is_upgraded: true }; } catch(err) { - reply(wrapUnknownError(err)); + throw wrapUnknownError(err); } }, config: { diff --git a/x-pack/plugins/logstash/server/routes/api/upgrade/register_upgrade_routes.js b/x-pack/plugins/logstash/server/routes/api/upgrade/register_upgrade_routes.js old mode 100644 new mode 100755 diff --git a/x-pack/plugins/ml/common/constants/field_types.js b/x-pack/plugins/ml/common/constants/field_types.js index 3dd265c5c76ec..d8041b5b936b3 100644 --- a/x-pack/plugins/ml/common/constants/field_types.js +++ b/x-pack/plugins/ml/common/constants/field_types.js @@ -27,7 +27,7 @@ export const ES_FIELD_TYPES = { TOKEN_COUNT: 'token_count', _ID: '_id', _SOURCE: '_source', - _TYPE: '_type' + _TYPE: '_type', }; export const KBN_FIELD_TYPES = { @@ -52,6 +52,7 @@ export const ML_JOB_FIELD_TYPES = { IP: 'ip', KEYWORD: 'keyword', NUMBER: 'number', - TEXT: 'text' + TEXT: 'text', + UNKNOWN: 'unknown', }; diff --git a/x-pack/plugins/ml/common/constants/file_datavisualizer.js b/x-pack/plugins/ml/common/constants/file_datavisualizer.js new file mode 100644 index 0000000000000..262e2a1a337a0 --- /dev/null +++ b/x-pack/plugins/ml/common/constants/file_datavisualizer.js @@ -0,0 +1,8 @@ +/* + * 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 MAX_BYTES = 104857600; diff --git a/x-pack/plugins/ml/common/constants/license.js b/x-pack/plugins/ml/common/constants/license.js new file mode 100644 index 0000000000000..9f4b06bbbc954 --- /dev/null +++ b/x-pack/plugins/ml/common/constants/license.js @@ -0,0 +1,11 @@ +/* + * 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 LICENSE_TYPE = { + BASIC: 0, + FULL: 1, +}; diff --git a/x-pack/plugins/ml/common/constants/multi_bucket_impact.js b/x-pack/plugins/ml/common/constants/multi_bucket_impact.js new file mode 100644 index 0000000000000..5c3a25954dbb7 --- /dev/null +++ b/x-pack/plugins/ml/common/constants/multi_bucket_impact.js @@ -0,0 +1,18 @@ +/* + * 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. + */ + + + +// Thresholds for indicating the impact of multi-bucket features in an anomaly. +// As a rule-of-thumb, a threshold value T corresponds to the multi-bucket probability +// being 1000^(T/5) times smaller than the single bucket probability. +// So, for example, for HIGH it is 63 times smaller. +export const MULTI_BUCKET_IMPACT = { + HIGH: 3, + MEDIUM: 2, + LOW: 1, + NONE: -5 +}; diff --git a/x-pack/plugins/ml/common/util/__tests__/anomaly_utils.js b/x-pack/plugins/ml/common/util/__tests__/anomaly_utils.js index 408eb1d7d599a..e093db28ba233 100644 --- a/x-pack/plugins/ml/common/util/__tests__/anomaly_utils.js +++ b/x-pack/plugins/ml/common/util/__tests__/anomaly_utils.js @@ -11,6 +11,7 @@ import { getSeverity, getSeverityWithLow, getSeverityColor, + getMultiBucketImpactLabel, getEntityFieldName, getEntityFieldValue, showActualForFunction, @@ -281,6 +282,35 @@ describe('ML - anomaly utils', () => { }); + describe('getMultiBucketImpactLabel', () => { + + it('returns high for 3 <= score <= 5', () => { + expect(getMultiBucketImpactLabel(3)).to.be('high'); + expect(getMultiBucketImpactLabel(5)).to.be('high'); + }); + + it('returns medium for 2 <= score < 3', () => { + expect(getMultiBucketImpactLabel(2)).to.be('medium'); + expect(getMultiBucketImpactLabel(2.99)).to.be('medium'); + }); + + it('returns low for 1 <= score < 2', () => { + expect(getMultiBucketImpactLabel(1)).to.be('low'); + expect(getMultiBucketImpactLabel(1.99)).to.be('low'); + }); + + it('returns none for -5 <= score < 1', () => { + expect(getMultiBucketImpactLabel(-5)).to.be('none'); + expect(getMultiBucketImpactLabel(0.99)).to.be('none'); + }); + + it('returns expected label when impact outside normal bounds', () => { + expect(getMultiBucketImpactLabel(10)).to.be('high'); + expect(getMultiBucketImpactLabel(-10)).to.be('none'); + }); + + }); + describe('getEntityFieldName', () => { it('returns the by field name', () => { expect(getEntityFieldName(byEntityRecord)).to.be('airline'); diff --git a/x-pack/plugins/ml/common/util/anomaly_utils.js b/x-pack/plugins/ml/common/util/anomaly_utils.js index c85538fc1b7a1..5adf1b0d4d2e5 100644 --- a/x-pack/plugins/ml/common/util/anomaly_utils.js +++ b/x-pack/plugins/ml/common/util/anomaly_utils.js @@ -13,6 +13,7 @@ import _ from 'lodash'; import { CONDITIONS_NOT_SUPPORTED_FUNCTIONS } from '../constants/detector_rule'; +import { MULTI_BUCKET_IMPACT } from '../constants/multi_bucket_impact'; // List of function descriptions for which actual values from record level results should be displayed. const DISPLAY_ACTUAL_FUNCTIONS = ['count', 'distinct_count', 'lat_long', 'mean', 'max', 'min', 'sum', @@ -75,6 +76,21 @@ export function getSeverityColor(normalizedScore) { } } +// Returns a label to use for the multi-bucket impact of an anomaly +// according to the value of the multi_bucket_impact field of a record, +// which ranges from -5 to +5. +export function getMultiBucketImpactLabel(multiBucketImpact) { + if (multiBucketImpact >= MULTI_BUCKET_IMPACT.HIGH) { + return 'high'; + } else if (multiBucketImpact >= MULTI_BUCKET_IMPACT.MEDIUM) { + return 'medium'; + } else if (multiBucketImpact >= MULTI_BUCKET_IMPACT.LOW) { + return 'low'; + } else { + return 'none'; + } +} + // Returns the name of the field to use as the entity name from the source record // obtained from Elasticsearch. The function looks first for a by_field, then over_field, // then partition_field, returning undefined if none of these fields are present. diff --git a/x-pack/plugins/ml/index.js b/x-pack/plugins/ml/index.js index ce511ad3f7d84..c84bf9d56eb5b 100644 --- a/x-pack/plugins/ml/index.js +++ b/x-pack/plugins/ml/index.js @@ -24,6 +24,7 @@ import { filtersRoutes } from './server/routes/filters'; import { resultsServiceRoutes } from './server/routes/results_service'; import { jobServiceRoutes } from './server/routes/job_service'; import { jobAuditMessagesRoutes } from './server/routes/job_audit_messages'; +import { fileDataVisualizerRoutes } from './server/routes/file_data_visualizer'; export const ml = (kibana) => { return new kibana.Plugin({ @@ -37,10 +38,18 @@ export const ml = (kibana) => { title: 'Machine Learning', description: 'Machine Learning for the Elastic Stack', icon: 'plugins/ml/ml.svg', + euiIconType: 'machineLearningApp', main: 'plugins/ml/app', }, + styleSheetPaths: `${__dirname}/public/index.scss`, hacks: ['plugins/ml/hacks/toggle_app_link_in_nav'], - home: ['plugins/ml/register_feature'] + home: ['plugins/ml/register_feature'], + injectDefaultVars(server) { + const config = server.config(); + return { + mlEnabled: config.get('xpack.ml.enabled'), + }; + }, }, @@ -57,12 +66,12 @@ export const ml = (kibana) => { // Add server routes and initialize the plugin here const commonRouteConfig = { pre: [ - function forbidApiAccess(request, reply) { + function forbidApiAccess() { const licenseCheckResults = xpackMainPlugin.info.feature(thisPlugin.id).getLicenseCheckResults(); if (licenseCheckResults.isAvailable) { - reply(); + return null; } else { - reply(Boom.forbidden(licenseCheckResults.message)); + throw Boom.forbidden(licenseCheckResults.message); } } ] @@ -72,7 +81,7 @@ export const ml = (kibana) => { const config = server.config(); return { kbnIndex: config.get('kibana.index'), - esServerUrl: config.get('elasticsearch.url') + esServerUrl: config.get('elasticsearch.url'), }; }); @@ -90,6 +99,7 @@ export const ml = (kibana) => { resultsServiceRoutes(server, commonRouteConfig); jobServiceRoutes(server, commonRouteConfig); jobAuditMessagesRoutes(server, commonRouteConfig); + fileDataVisualizerRoutes(server, commonRouteConfig); } }); diff --git a/x-pack/plugins/ml/public/app.js b/x-pack/plugins/ml/public/app.js index ad76c56cfdf19..1af1b28286b98 100644 --- a/x-pack/plugins/ml/public/app.js +++ b/x-pack/plugins/ml/public/app.js @@ -32,6 +32,7 @@ import 'plugins/ml/components/confirm_modal'; import 'plugins/ml/components/nav_menu'; import 'plugins/ml/components/loading_indicator'; import 'plugins/ml/settings'; +import 'plugins/ml/file_datavisualizer'; import uiRoutes from 'ui/routes'; diff --git a/x-pack/plugins/ml/public/assets/ml_create_advanced_job.svg b/x-pack/plugins/ml/public/assets/ml_create_advanced_job.svg deleted file mode 100644 index c29639b0b16cb..0000000000000 --- a/x-pack/plugins/ml/public/assets/ml_create_advanced_job.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/x-pack/plugins/ml/public/assets/ml_create_multi_metric_job.svg b/x-pack/plugins/ml/public/assets/ml_create_multi_metric_job.svg deleted file mode 100644 index 6f7f35be34e1d..0000000000000 --- a/x-pack/plugins/ml/public/assets/ml_create_multi_metric_job.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/x-pack/plugins/ml/public/assets/ml_create_population_job.svg b/x-pack/plugins/ml/public/assets/ml_create_population_job.svg deleted file mode 100644 index 300e473045f13..0000000000000 --- a/x-pack/plugins/ml/public/assets/ml_create_population_job.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/x-pack/plugins/ml/public/assets/ml_create_single_metric_job.svg b/x-pack/plugins/ml/public/assets/ml_create_single_metric_job.svg deleted file mode 100644 index 398ee246aeb0d..0000000000000 --- a/x-pack/plugins/ml/public/assets/ml_create_single_metric_job.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/x-pack/plugins/ml/public/assets/ml_data_visualizer.svg b/x-pack/plugins/ml/public/assets/ml_data_visualizer.svg deleted file mode 100644 index 092444438ffe3..0000000000000 --- a/x-pack/plugins/ml/public/assets/ml_data_visualizer.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/x-pack/plugins/ml/public/components/anomalies_table/anomaly_details.js b/x-pack/plugins/ml/public/components/anomalies_table/anomaly_details.js index fdd12e1e59606..8ef9cc25dc0bf 100644 --- a/x-pack/plugins/ml/public/components/anomalies_table/anomaly_details.js +++ b/x-pack/plugins/ml/public/components/anomalies_table/anomaly_details.js @@ -25,11 +25,13 @@ import { formatDate } from '@elastic/eui/lib/services/format'; import { EntityCell } from './entity_cell'; import { + getMultiBucketImpactLabel, getSeverity, showActualForFunction, - showTypicalForFunction -} from 'plugins/ml/../common/util/anomaly_utils'; -import { formatValue } from 'plugins/ml/formatters/format_value'; + showTypicalForFunction, +} from '../../../common/util/anomaly_utils'; +import { MULTI_BUCKET_IMPACT } from '../../../common/constants/multi_bucket_impact'; +import { formatValue } from '../../formatters/format_value'; const TIME_FIELD_NAME = 'timestamp'; @@ -152,6 +154,14 @@ function getDetailsItems(anomaly, examples, filter) { description: anomaly.jobId }); + if (source.multi_bucket_impact !== undefined && + source.multi_bucket_impact >= MULTI_BUCKET_IMPACT.LOW) { + items.push({ + title: 'multi-bucket impact', + description: getMultiBucketImpactLabel(source.multi_bucket_impact) + }); + } + items.push({ title: 'probability', description: source.probability @@ -209,7 +219,7 @@ export class AnomalyDetails extends Component { return ( -
      Description
      +

      Description

      {anomalyDescription}
      {(mvDescription !== undefined) && @@ -226,11 +236,11 @@ export class AnomalyDetails extends Component { const isInterimResult = _.get(this.props.anomaly, 'source.is_interim', false); return ( - + {this.props.isAggregatedData === true ? ( -
      Details on highest severity anomaly
      +

      Details on highest severity anomaly

      ) : ( -
      Anomaly details
      +

      Anomaly details

      )} {isInterimResult === true && @@ -277,8 +287,8 @@ export class AnomalyDetails extends Component { return ( - -
      Influencers
      + +

      Influencers

      { + beforeEach(() => { + ngMock.module('kibana'); + }); + + it('Initialize Confirm Modal Controller', (done) => { + ngMock.inject(function ($rootScope, $controller) { + const scope = $rootScope.$new(); + $controller('MlConfirmModal', { + $scope: scope, + $modalInstance: mockModalInstance, + params: {} + }); + + expect(scope.okLabel).to.be('OK'); + done(); + }); + }); +}); diff --git a/x-pack/plugins/ml/public/components/controls/select_severity/select_severity.js b/x-pack/plugins/ml/public/components/controls/select_severity/select_severity.js index a27b594f1aac2..03c608082b982 100644 --- a/x-pack/plugins/ml/public/components/controls/select_severity/select_severity.js +++ b/x-pack/plugins/ml/public/components/controls/select_severity/select_severity.js @@ -11,34 +11,40 @@ */ import PropTypes from 'prop-types'; import _ from 'lodash'; -import React, { Component } from 'react'; +import React, { Component, Fragment } from 'react'; import { - EuiComboBox, - EuiHighlight, EuiHealth, + EuiSpacer, + EuiSuperSelect, + EuiText, } from '@elastic/eui'; import './styles/main.less'; -import { getSeverityColor } from 'plugins/ml/../common/util/anomaly_utils'; +import { getSeverityColor } from '../../../../common/util/anomaly_utils'; const OPTIONS = [ - { value: 0, label: 'warning', color: getSeverityColor(0) }, - { value: 25, label: 'minor', color: getSeverityColor(25) }, - { value: 50, label: 'major', color: getSeverityColor(50) }, - { value: 75, label: 'critical', color: getSeverityColor(75) } + { val: 0, display: 'warning', color: getSeverityColor(0) }, + { val: 25, display: 'minor', color: getSeverityColor(25) }, + { val: 50, display: 'major', color: getSeverityColor(50) }, + { val: 75, display: 'critical', color: getSeverityColor(75) }, ]; +const optionsMap = { + 'warning': 0, + 'minor': 25, + 'major': 50, + 'critical': 75, +}; + function optionValueToThreshold(value) { - // Builds the corresponding threshold object with the required display and val properties - // from the specified value. - const option = OPTIONS.find(opt => (opt.value === value)); + // Get corresponding threshold object with required display and val properties from the specified value. + let threshold = OPTIONS.find(opt => (opt.val === value)); // Default to warning if supplied value doesn't map to one of the options. - let threshold = OPTIONS[0]; - if (option !== undefined) { - threshold = { display: option.label, val: option.value }; + if (threshold === undefined) { + threshold = OPTIONS[0]; } return threshold; @@ -53,59 +59,61 @@ class SelectSeverity extends Component { const thresholdState = this.mlSelectSeverityService.state.get('threshold'); const thresholdValue = _.get(thresholdState, 'val', 0); const threshold = optionValueToThreshold(thresholdValue); - const selectedOption = OPTIONS.find(opt => (opt.value === threshold.val)); - + // set initial selected option equal to threshold value + const selectedOption = OPTIONS.find(opt => (opt.val === threshold.val)); this.mlSelectSeverityService.state.set('threshold', threshold); this.state = { - selectedOptions: [selectedOption] + valueDisplay: selectedOption.display, }; } - onChange = (selectedOptions) => { - if (selectedOptions.length === 0) { - // Don't allow no options to be selected. - return; - } - + onChange = (valueDisplay) => { this.setState({ - selectedOptions, + valueDisplay: valueDisplay, }); - - const threshold = optionValueToThreshold(selectedOptions[0].value); + const threshold = optionValueToThreshold(optionsMap[valueDisplay]); this.mlSelectSeverityService.state.set('threshold', threshold).changed(); - }; + } - renderOption = (option, searchValue, contentClassName) => { - const { color, label, value } = option; - return ( - - - - {label} - -   - ({value}) - - - ); - }; + getOptions = () => + OPTIONS.map(({ color, display, val }) => ({ + value: display, + inputDisplay: ( + + + {display} + + + ), + dropdownDisplay: ( + + + {display} + + + +

      {`score ${val} and above`}

      +
      +
      + ), + })); render() { - const { selectedOptions } = this.state; + const { valueDisplay } = this.state; + const options = this.getOptions(); + return ( - ); } } + SelectSeverity.propTypes = { mlSelectSeverityService: PropTypes.object.isRequired, }; diff --git a/x-pack/plugins/ml/public/components/controls/select_severity/select_severity.test.js b/x-pack/plugins/ml/public/components/controls/select_severity/select_severity.test.js new file mode 100644 index 0000000000000..0a694e3197544 --- /dev/null +++ b/x-pack/plugins/ml/public/components/controls/select_severity/select_severity.test.js @@ -0,0 +1,77 @@ +/* + * 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 React from 'react'; +import { shallow } from 'enzyme'; +import { SelectSeverity } from './select_severity'; + + +const severityService = { + state: { + 'threshold': { color: '#d2e9f7', display: 'warning', val: 0 }, + get: () => ({ color: '#d2e9f7', display: 'warning', val: 0 }), + set: () => ({ + changed: () => {} + }) + } +}; + +describe('SelectSeverity', () => { + + test('creates correct severity options and initial selected value', () => { + const wrapper = shallow(); + const options = wrapper.props().options; + const defaultSelectedValue = wrapper.props().valueOfSelected; + + expect(defaultSelectedValue).toBe('warning'); + expect(options.length).toEqual(4); + + // excpect options Array to equal Array containing Object that contains the property + expect(options).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + value: 'warning' + }) + ]) + ); + + expect(options).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + value: 'minor' + }) + ]) + ); + + expect(options).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + value: 'major' + }) + ]) + ); + + expect(options).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + value: 'critical' + }) + ]) + ); + }); + + test('state for currently selected value is updated correctly on click', () => { + const wrapper = shallow(); + + const defaultSelectedValue = wrapper.props().valueOfSelected; + expect(defaultSelectedValue).toBe('warning'); + + wrapper.simulate('change', 'critical'); + const updatedSelectedValue = wrapper.props().valueOfSelected; + expect(updatedSelectedValue).toBe('critical'); + }); + +}); diff --git a/x-pack/plugins/ml/public/components/data_recognizer/recognized_result.js b/x-pack/plugins/ml/public/components/data_recognizer/recognized_result.js index d35635ace8f39..44894e2e54910 100644 --- a/x-pack/plugins/ml/public/components/data_recognizer/recognized_result.js +++ b/x-pack/plugins/ml/public/components/data_recognizer/recognized_result.js @@ -24,7 +24,7 @@ export const RecognizedResult = ({ // if a logo is available, use that, otherwise display the id // the logo should be a base64 encoded image if (config.logo && config.logo.src) { - logo =
      ; + logo =
      ; } else { logo =

      {config.id}

      ; } diff --git a/x-pack/plugins/ml/public/components/field_data_card/styles/main.less b/x-pack/plugins/ml/public/components/field_data_card/styles/main.less index 740e82b3d976e..1776afe87fec1 100644 --- a/x-pack/plugins/ml/public/components/field_data_card/styles/main.less +++ b/x-pack/plugins/ml/public/components/field_data_card/styles/main.less @@ -34,7 +34,7 @@ background-color: #920000; } - .type-other { + .type-other, .unknown { background-color: #bfa180; } diff --git a/x-pack/plugins/ml/public/components/field_type_icon/field_type_icon.js b/x-pack/plugins/ml/public/components/field_type_icon/field_type_icon.js index cf23fa1468f7d..5b1868d0598d5 100644 --- a/x-pack/plugins/ml/public/components/field_type_icon/field_type_icon.js +++ b/x-pack/plugins/ml/public/components/field_type_icon/field_type_icon.js @@ -47,6 +47,10 @@ export function FieldTypeIcon({ tooltipEnabled = false, type }) { ariaLabel = 'IP type'; iconClass = 'fa-laptop'; break; + case ML_JOB_FIELD_TYPES.UNKNOWN: + ariaLabel = 'Unknown type'; + iconChar = '?'; + break; default: // if type doesn't match one of ML_JOB_FIELD_TYPES // don't render the component at all diff --git a/x-pack/plugins/ml/public/components/json_tooltip/tooltips.json b/x-pack/plugins/ml/public/components/json_tooltip/tooltips.json index 35b90c9ff073b..b6cbc55699822 100644 --- a/x-pack/plugins/ml/public/components/json_tooltip/tooltips.json +++ b/x-pack/plugins/ml/public/components/json_tooltip/tooltips.json @@ -72,7 +72,7 @@ "text": "Character used to encapsulate values containing reserved characters." }, "new_job_enable_datafeed_job": { - "text": "Required for jobs that analyze data from Elasticsearch.\nRequires data format to be set to Elasticsearch/" + "text": "Required for jobs that analyze data from Elasticsearch." }, "new_job_data_source": { "text": "Elasticsearch versions 1.7.x and 2+ supported." @@ -107,6 +107,9 @@ "new_job_dedicated_index": { "text": "Select to store results in a separate index for this job." }, + "new_job_enable_model_plot": { + "text": "Select to enable model plot. Stores model information along with results. Can add considerable overhead to the performance of the system." + }, "new_job_model_memory_limit": { "text": "An approximate limit for the amount of memory used by the analytical models." }, diff --git a/x-pack/plugins/ml/public/components/messagebar/__tests__/messagebar.js b/x-pack/plugins/ml/public/components/messagebar/__tests__/messagebar.js new file mode 100644 index 0000000000000..b39cc57757eb9 --- /dev/null +++ b/x-pack/plugins/ml/public/components/messagebar/__tests__/messagebar.js @@ -0,0 +1,26 @@ +/* + * 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 ngMock from 'ng_mock'; +import expect from 'expect.js'; + +describe('ML - Message Bar Controller', () => { + beforeEach(() => { + ngMock.module('kibana'); + }); + + it('Initialize Message Bar Controller', (done) => { + ngMock.inject(function ($rootScope, $controller) { + const scope = $rootScope.$new(); + $controller('MlMessageBarController', { $scope: scope }); + + expect(scope.messages).to.eql([]); + done(); + }); + }); +}); diff --git a/x-pack/plugins/ml/public/components/nav_menu/_index.scss b/x-pack/plugins/ml/public/components/nav_menu/_index.scss new file mode 100644 index 0000000000000..a5981e1022e15 --- /dev/null +++ b/x-pack/plugins/ml/public/components/nav_menu/_index.scss @@ -0,0 +1 @@ +@import 'nav_menu' diff --git a/x-pack/plugins/ml/public/components/nav_menu/_nav_menu.scss b/x-pack/plugins/ml/public/components/nav_menu/_nav_menu.scss new file mode 100644 index 0000000000000..6b1be3c238390 --- /dev/null +++ b/x-pack/plugins/ml/public/components/nav_menu/_nav_menu.scss @@ -0,0 +1,4 @@ +.disabled-nav-link { + color: $euiColorMediumShade; + pointer-events: none; +} diff --git a/x-pack/plugins/ml/public/components/nav_menu/nav_menu.html b/x-pack/plugins/ml/public/components/nav_menu/nav_menu.html index 3c426a925aa76..345ed3bddb97e 100644 --- a/x-pack/plugins/ml/public/components/nav_menu/nav_menu.html +++ b/x-pack/plugins/ml/public/components/nav_menu/nav_menu.html @@ -1,27 +1,39 @@
      -
      -
      - {{ crumb.label }} - {{ crumb.label }} +
      +
      +
      + {{ crumb.label }} + {{ crumb.label }} +
      - Job Management + ng-class="{'kuiLocalTab-isSelected': isActiveTab('jobs'), 'disabled-nav-link': disableLinks}"> + Job Management + - Anomaly Explorer + ng-class="{'kuiLocalTab-isSelected': isActiveTab('explorer'), 'disabled-nav-link': disableLinks}"> + Anomaly Explorer + - Single Metric Viewer + ng-class="{'kuiLocalTab-isSelected': isActiveTab('timeseriesexplorer'), 'disabled-nav-link': disableLinks}"> + Single Metric Viewer + + + Data Visualizer + - Settings + ng-class="{'kuiLocalTab-isSelected': isActiveTab('settings'), 'disabled-nav-link': disableLinks}"> + Settings +
      diff --git a/x-pack/plugins/ml/public/components/nav_menu/nav_menu.js b/x-pack/plugins/ml/public/components/nav_menu/nav_menu.js index 72686c4a13546..2ead5f96dd404 100644 --- a/x-pack/plugins/ml/public/components/nav_menu/nav_menu.js +++ b/x-pack/plugins/ml/public/components/nav_menu/nav_menu.js @@ -10,23 +10,28 @@ import _ from 'lodash'; import $ from 'jquery'; import template from './nav_menu.html'; import uiRouter from 'ui/routes'; +import { isFullLicense } from '../../license/check_license'; import { uiModules } from 'ui/modules'; const module = uiModules.get('apps/ml'); -module.directive('mlNavMenu', function () { +module.directive('mlNavMenu', function (breadcrumbState, config) { return { restrict: 'E', transclude: true, template, link: function (scope, el, attrs) { + + // Tabs scope.name = attrs.name; scope.showTabs = false; if (scope.name === 'jobs' || scope.name === 'settings' || + scope.name === 'datavisualizer' || + scope.name === 'filedatavisualizer' || scope.name === 'timeseriesexplorer' || scope.name === 'explorer') { scope.showTabs = true; @@ -35,6 +40,8 @@ module.directive('mlNavMenu', function () { return scope.name === path; }; + scope.disableLinks = (isFullLicense() === false); + // Breadcrumbs const crumbNames = { jobs: { label: 'Job Management', url: '#/jobs' }, @@ -44,6 +51,7 @@ module.directive('mlNavMenu', function () { population: { label: 'Population job', url: '' }, advanced: { label: 'Advanced Job Configuration', url: '' }, datavisualizer: { label: 'Data Visualizer', url: '' }, + filedatavisualizer: { label: 'File Data Visualizer (Experimental)', url: '' }, explorer: { label: 'Anomaly Explorer', url: '#/explorer' }, timeseriesexplorer: { label: 'Single Metric Viewer', url: '#/timeseriesexplorer' }, settings: { label: 'Settings', url: '#/settings' }, @@ -64,6 +72,9 @@ module.directive('mlNavMenu', function () { }); scope.breadcrumbs = breadcrumbs.filter(Boolean); + config.watch('k7design', (val) => scope.showPluginBreadcrumbs = !val); + breadcrumbState.set(scope.breadcrumbs.map(b => ({ text: b.label, href: b.url }))); + // when the page loads, focus on the first breadcrumb el.ready(() => { const $crumbs = $('.kuiLocalBreadcrumbs a'); diff --git a/x-pack/plugins/ml/public/components/paginated_table/index.js b/x-pack/plugins/ml/public/components/paginated_table/index.js deleted file mode 100644 index 753d5c46f9f3a..0000000000000 --- a/x-pack/plugins/ml/public/components/paginated_table/index.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * 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 './paginated_table'; diff --git a/x-pack/plugins/ml/public/components/paginated_table/open.html b/x-pack/plugins/ml/public/components/paginated_table/open.html deleted file mode 100644 index 3fb31ca48b01c..0000000000000 --- a/x-pack/plugins/ml/public/components/paginated_table/open.html +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/x-pack/plugins/ml/public/components/paginated_table/paginated_table.html b/x-pack/plugins/ml/public/components/paginated_table/paginated_table.html deleted file mode 100644 index ace2535934c41..0000000000000 --- a/x-pack/plugins/ml/public/components/paginated_table/paginated_table.html +++ /dev/null @@ -1,55 +0,0 @@ - -
      - - - - - - - - -
      - - - - - - - - -
      -
      - - - -
      - -
      diff --git a/x-pack/plugins/ml/public/components/paginated_table/paginated_table.js b/x-pack/plugins/ml/public/components/paginated_table/paginated_table.js deleted file mode 100644 index 6aa1d2b7d6653..0000000000000 --- a/x-pack/plugins/ml/public/components/paginated_table/paginated_table.js +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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. - */ - - - -// copy of Kibana's ui/public/paginated_table/paginated_table.js -// but with the one-time binding removed from the scope columns object -// in the paginated_table.html template, to allow dynamic changes to -// the list of columns shown in the table. - -import './row'; - -import './styles/main.less'; -import 'ui/directives/paginate'; -import 'ui/styles/pagination.less'; -import _ from 'lodash'; -import template from './paginated_table.html'; - -import { uiModules } from 'ui/modules'; -const module = uiModules.get('apps/ml'); - -module.directive('mlPaginatedTable', function ($filter) { - const orderBy = $filter('orderBy'); - - return { - restrict: 'E', - template, - transclude: true, - scope: { - rows: '=', - columns: '=', - perPage: '=?', - sortHandler: '=?', - showSelector: '=?' - }, - controllerAs: 'mlPaginatedTable', - controller: function ($scope) { - const self = this; - self.sort = { - columnIndex: null, - direction: null - }; - - self.sortColumn = function (colIndex) { - const col = $scope.columns[colIndex]; - - if (!col) return; - if (col.sortable === false) return; - - let sortDirection; - - if (self.sort.columnIndex !== colIndex) { - sortDirection = 'asc'; - } else { - const directions = { - null: 'asc', - 'asc': 'desc', - 'desc': null - }; - sortDirection = directions[self.sort.direction]; - } - - self.sort.columnIndex = colIndex; - self.sort.direction = sortDirection; - self._setSortGetter(colIndex); - }; - - self._setSortGetter = function (index) { - if (_.isFunction($scope.sortHandler)) { - // use custom sort handler - self.sort.getter = $scope.sortHandler(index); - } else { - // use generic sort handler - self.sort.getter = function (row) { - const value = row[index]; - if (value && value.value !== undefined && value.value !== null) { - if (typeof value.value === 'function') { - return value.value(); - } else { - return value.value; - } - } else { - return value; - } - }; - } - }; - - // update the sortedRows result - $scope.$watchMulti([ - 'rows', - 'columns', - '[]mlPaginatedTable.sort' - ], function resortRows() { - if (!$scope.rows || !$scope.columns) { - $scope.sortedRows = false; - return; - } - - const sort = self.sort; - if (sort.direction == null) { - $scope.sortedRows = $scope.rows.slice(0); - } else { - $scope.sortedRows = orderBy($scope.rows, sort.getter, sort.direction === 'desc'); - } - }); - } - }; -}); diff --git a/x-pack/plugins/ml/public/components/paginated_table/row.js b/x-pack/plugins/ml/public/components/paginated_table/row.js deleted file mode 100644 index 2cf377eb08655..0000000000000 --- a/x-pack/plugins/ml/public/components/paginated_table/row.js +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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. - */ - - - -// copy of ui/public/directives/row.js -// overridden to add the option for row expansion. - -import $ from 'jquery'; -import _ from 'lodash'; -import AggConfigResult from 'ui/vis/agg_config_result'; -import { FilterBarClickHandlerProvider } from 'ui/filter_bar/filter_bar_click_handler'; - -import { uiModules } from 'ui/modules'; -const module = uiModules.get('apps/ml'); - -module.directive('mlRows', function ($compile, getAppState, Private) { - const filterBarClickHandler = Private(FilterBarClickHandlerProvider); - return { - restrict: 'A', - - link: function ($scope, $el, attr) { - function addCell($tr, contents) { - let $cell = $(document.createElement('td')); - - // TODO: It would be better to actually check the type of the field, but we don't have - // access to it here. This may become a problem with the switch to BigNumber - if (_.isNumber(contents)) { - $cell.addClass('numeric-value'); - } - - const createAggConfigResultCell = function (aggConfigResult) { - const $resultCell = $(document.createElement('td')); - const $state = getAppState(); - const clickHandler = filterBarClickHandler($state); - $resultCell.scope = $scope.$new(); - $resultCell.addClass('cell-hover'); - $resultCell.attr('ng-click', 'clickHandler($event)'); - $resultCell.scope.clickHandler = function (event) { - if ($(event.target).is('a')) return; // Don't add filter if a link was clicked - clickHandler({ point: { aggConfigResult: aggConfigResult } }); - }; - return $compile($resultCell)($cell.scope); - }; - - if (contents instanceof AggConfigResult) { - if (contents.type === 'bucket' && contents.aggConfig.field() && contents.aggConfig.field().filterable) { - $cell = createAggConfigResultCell(contents); - } - contents = contents.toString('html'); - } - - if (_.isObject(contents)) { - if (contents.attr) { - $cell.attr(contents.attr); - } - - if (contents.class) { - $cell.addClass(contents.class); - } - - if (contents.scope) { - $cell = $compile($cell.html(contents.markup))(contents.scope); - } else { - $cell.html(contents.markup); - } - } else { - if (contents === '') { - $cell.html(' '); - } else { - $cell.html(contents); - } - } - - $tr.append($cell); - } - - $scope.$watchMulti([ - attr.mlRows, - attr.mlRowsMin - ], function (vals) { - let rows = vals[0]; - const min = vals[1]; - - $el.empty(); - - if (!_.isArray(rows)) { - rows = []; - } - - if (isFinite(min) && rows.length < min) { - // clone the rows so that we can add elements to it without upsetting the original - rows = _.clone(rows); - } - - rows.forEach(function (row) { - if (row.length) { - const rowScope = row[0].scope; - const $tr = $(document.createElement('tr')).appendTo($el); - - if (rowScope && - rowScope.mouseenterRow !== undefined && typeof rowScope.mouseenterRow === 'function') { - // Add mousenter and mouseleave events to the row - $tr.attr({ 'ng-mouseenter': 'mouseenterRow($event)' }); - $tr.attr({ 'ng-mouseleave': 'mouseleaveRow($event)' }); - $compile($tr)(rowScope); - } - - row.forEach(function (cell) { - addCell($tr, cell); - }); - - if (rowScope && - rowScope.expandable && - rowScope.expandElement && // the tag name of the element which contains the expanded row's contents - row.join('') !== '') { // empty rows are passed in as an array of empty cols, i.e., ['','',''] - - if (rowScope.open === undefined) { - rowScope.open = false; - } - - if (rowScope.rowInitialised === undefined) { - rowScope.rowInitialised = false; - } - - rowScope.toggleRow = function () { - this.open = !this.open; - if (this.initRow && this.rowInitialised === false) { - this.rowInitialised = true; - this.initRow(); - } - }; - - const $trExpand = $(document.createElement('tr')).appendTo($el); - $trExpand.attr('ng-show', 'open'); - $trExpand.addClass('row-expand'); - - const $td = $(document.createElement('td')).appendTo($trExpand); - $td.attr('colspan', row.length); - - const expEl = rowScope.expandElement; - const $exp = $(document.createElement(expEl)).appendTo($td); - - // if expand element already exits and has child elements, - // copy them to the new expand element - if (rowScope.$expandElement && rowScope.$expandElement.children().length) { - $exp.append(rowScope.$expandElement.children()[0]); - } - - $compile($trExpand)(rowScope); - rowScope.$expandElement = $exp; - } - - } - }); - }); - } - }; -}); diff --git a/x-pack/plugins/ml/public/components/paginated_table/styles/main.less b/x-pack/plugins/ml/public/components/paginated_table/styles/main.less deleted file mode 100644 index d9c93dabcaadc..0000000000000 --- a/x-pack/plugins/ml/public/components/paginated_table/styles/main.less +++ /dev/null @@ -1,49 +0,0 @@ -@import "~ui/styles/variables"; - -ml-paginated-table { - - .col-expand-arrow { - width: 10px; - } - - .table-header-button { - border: none; - background: none; - padding: 0; - } - - table th { - font-weight: bold; - text-align: left; - } - - table th button.fa-sort { - color: @table-sort-color; - } - - tr.row-expand td:hover, - tr.row-expand td:hover td { - background-color: #FFFFFF; - } - - .discover-table-open-button { - background-color: #FFFFFF; - border: none; - min-width: 20px; - } - .discover-table-open-button:focus { - outline: none; - } - - paginate-controls { - button.euiPaginationButton { - padding: 1px 7px 2px; - } - - label { - line-height: 1.5; - font-size: 12px; - font-weight: bold; - } - } -} diff --git a/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/actions_section.test.js.snap b/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/actions_section.test.js.snap index 35f10f8cd724b..eb9b511f29bc4 100644 --- a/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/actions_section.test.js.snap +++ b/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/actions_section.test.js.snap @@ -4,6 +4,7 @@ exports[`ActionsSection renders with no actions selected 1`] = `

      Choose the action(s) to take when the rule matches an anomaly. @@ -94,6 +95,7 @@ exports[`ActionsSection renders with skip_result and skip_model_update selected

      Choose the action(s) to take when the rule matches an anomaly. @@ -184,6 +186,7 @@ exports[`ActionsSection renders with skip_result selected 1`] = `

      Choose the action(s) to take when the rule matches an anomaly. diff --git a/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/rule_editor_flyout.test.js.snap b/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/rule_editor_flyout.test.js.snap index 8fea0d1cf2473..0349682357f5e 100644 --- a/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/rule_editor_flyout.test.js.snap +++ b/x-pack/plugins/ml/public/components/rule_editor/__snapshots__/rule_editor_flyout.test.js.snap @@ -21,6 +21,7 @@ exports[`RuleEditorFlyout renders the flyout after adding a condition to a rule >

      Rules instruct anomaly detectors to change their behavior based on domain-specific knowledge that you provide. When you create a rule, you can specify conditions, scope, and actions. When the conditions of a rule are satisfied, its actions are triggered. @@ -109,6 +111,7 @@ exports[`RuleEditorFlyout renders the flyout after adding a condition to a rule />

      Action @@ -128,6 +131,7 @@ exports[`RuleEditorFlyout renders the flyout after adding a condition to a rule />

      Conditions @@ -251,6 +255,7 @@ exports[`RuleEditorFlyout renders the flyout after setting the rule to edit 1`] >

      Rules instruct anomaly detectors to change their behavior based on domain-specific knowledge that you provide. When you create a rule, you can specify conditions, scope, and actions. When the conditions of a rule are satisfied, its actions are triggered. @@ -353,6 +359,7 @@ exports[`RuleEditorFlyout renders the flyout after setting the rule to edit 1`] />

      Action @@ -372,6 +379,7 @@ exports[`RuleEditorFlyout renders the flyout after setting the rule to edit 1`] />

      Conditions @@ -495,6 +503,7 @@ exports[`RuleEditorFlyout renders the flyout for creating a rule with conditions >

      Rules instruct anomaly detectors to change their behavior based on domain-specific knowledge that you provide. When you create a rule, you can specify conditions, scope, and actions. When the conditions of a rule are satisfied, its actions are triggered. @@ -583,6 +593,7 @@ exports[`RuleEditorFlyout renders the flyout for creating a rule with conditions />

      Action @@ -602,6 +613,7 @@ exports[`RuleEditorFlyout renders the flyout for creating a rule with conditions />

      Conditions @@ -717,6 +729,7 @@ exports[`RuleEditorFlyout renders the select action component for a detector wit >

      Scope @@ -39,6 +40,7 @@ exports[`ScopeSection renders when enabled with no scope supplied 1`] = `

      Scope @@ -86,6 +88,7 @@ exports[`ScopeSection renders when enabled with scope supplied 1`] = `

      Scope @@ -133,6 +136,7 @@ exports[`ScopeSection renders when not enabled 1`] = `

      Scope @@ -163,6 +167,7 @@ exports[`ScopeSection show NoFilterListsCallOut when no filter list IDs 1`] = `

      Scope diff --git a/x-pack/plugins/ml/public/components/rule_editor/select_rule_action/__snapshots__/edit_condition_link.test.js.snap b/x-pack/plugins/ml/public/components/rule_editor/select_rule_action/__snapshots__/edit_condition_link.test.js.snap index 1347debe0a1fe..2abf49fd666f6 100644 --- a/x-pack/plugins/ml/public/components/rule_editor/select_rule_action/__snapshots__/edit_condition_link.test.js.snap +++ b/x-pack/plugins/ml/public/components/rule_editor/select_rule_action/__snapshots__/edit_condition_link.test.js.snap @@ -16,6 +16,7 @@ exports[`EditConditionLink renders for a condition using actual 1`] = ` > Update rule condition from 5 @@ -69,6 +70,7 @@ exports[`EditConditionLink renders for a condition using diff from typical 1`] = > Update rule condition from 5 @@ -122,6 +124,7 @@ exports[`EditConditionLink renders for a condition using typical 1`] = ` > Update rule condition from 5 diff --git a/x-pack/plugins/ml/public/components/validate_job/__snapshots__/validate_job_view.test.js.snap b/x-pack/plugins/ml/public/components/validate_job/__snapshots__/validate_job_view.test.js.snap index 50ea6c2fc67e5..e5ecbd03bf28a 100644 --- a/x-pack/plugins/ml/public/components/validate_job/__snapshots__/validate_job_view.test.js.snap +++ b/x-pack/plugins/ml/public/components/validate_job/__snapshots__/validate_job_view.test.js.snap @@ -33,11 +33,13 @@ exports[`ValidateJob renders button and modal with a message 1`] = ` /> Job validation performs certain checks against job configurations and underlying source data and provides specific advice on how to adjust settings that are more likely to produce insightful results. For more information, see Job validation performs certain checks against job configurations and underlying source data and provides specific advice on how to adjust settings that are more likely to produce insightful results. For more information, see { + beforeEach(() => { + ngMock.module('kibana'); + }); + + it('Initialize Data Visualizer View Fields Controller', (done) => { + const stub1 = sinon.stub(newJobUtils, 'createSearchItems').callsFake(() => ({ + indexPattern: {}, + savedSearch: {}, + combinedQuery: {} + })); + const stub2 = sinon.stub(indexUtils, 'timeBasedIndexCheck').callsFake(() => false); + ngMock.inject(function ($rootScope, $controller) { + const scope = $rootScope.$new(); + $controller('MlDataVisualizerViewFields', { $scope: scope }); + + expect(scope.metricCards).to.eql([]); + stub1.restore(); + stub2.restore(); + done(); + }); + }); +}); diff --git a/x-pack/plugins/ml/public/datavisualizer/_index.scss b/x-pack/plugins/ml/public/datavisualizer/_index.scss new file mode 100644 index 0000000000000..af259ce363a56 --- /dev/null +++ b/x-pack/plugins/ml/public/datavisualizer/_index.scss @@ -0,0 +1 @@ +@import './selector/index'; diff --git a/x-pack/plugins/ml/public/datavisualizer/datavisualizer.html b/x-pack/plugins/ml/public/datavisualizer/datavisualizer.html index 3719bafece2fe..4a4b782602ad1 100644 --- a/x-pack/plugins/ml/public/datavisualizer/datavisualizer.html +++ b/x-pack/plugins/ml/public/datavisualizer/datavisualizer.html @@ -11,7 +11,10 @@

      {{indexPattern.title}}

      -
      +
      @@ -170,7 +173,7 @@

      Fields

      -
      +
      diff --git a/x-pack/plugins/ml/public/datavisualizer/datavisualizer_controller.js b/x-pack/plugins/ml/public/datavisualizer/datavisualizer_controller.js index d5ca427c06610..28af872abfc12 100644 --- a/x-pack/plugins/ml/public/datavisualizer/datavisualizer_controller.js +++ b/x-pack/plugins/ml/public/datavisualizer/datavisualizer_controller.js @@ -24,7 +24,7 @@ import { decorateQuery, luceneStringToDsl } from 'ui/courier'; import { ML_JOB_FIELD_TYPES, KBN_FIELD_TYPES } from 'plugins/ml/../common/constants/field_types'; import { kbnTypeToMLJobType } from 'plugins/ml/util/field_types_utils'; import { IntervalHelperProvider } from 'plugins/ml/util/ml_time_buckets'; -import { checkLicenseExpired } from 'plugins/ml/license/check_license'; +import { checkBasicLicense, isFullLicense } from 'plugins/ml/license/check_license'; import { checkGetJobsPrivilege } from 'plugins/ml/privilege/check_privilege'; import { createSearchItems } from 'plugins/ml/jobs/new_job/utils/new_job_utils'; import { loadCurrentIndexPattern, loadCurrentSavedSearch, timeBasedIndexCheck } from 'plugins/ml/util/index_utils'; @@ -37,7 +37,7 @@ uiRoutes .when('/jobs/new_job/datavisualizer', { template, resolve: { - CheckLicense: checkLicenseExpired, + CheckLicense: checkBasicLicense, privileges: checkGetJobsPrivilege, indexPattern: loadCurrentIndexPattern, savedSearch: loadCurrentSavedSearch, @@ -93,6 +93,8 @@ module $scope.fieldFilter = ''; $scope.recognizerResults = { count: 0 }; + $scope.showSidebar = isFullLicense(); + // Check for a saved query in the AppState or via a savedSearchId in the URL. $scope.searchQueryText = ''; if (_.has($scope.appState, 'query')) { diff --git a/x-pack/plugins/ml/public/datavisualizer/datavisualizer_sidebar.html b/x-pack/plugins/ml/public/datavisualizer/datavisualizer_sidebar.html index b149bed1a32dc..2f700e7a1c473 100644 --- a/x-pack/plugins/ml/public/datavisualizer/datavisualizer_sidebar.html +++ b/x-pack/plugins/ml/public/datavisualizer/datavisualizer_sidebar.html @@ -21,7 +21,7 @@

      Create Job

      - Advanced job +

      Advanced

      diff --git a/x-pack/plugins/ml/public/datavisualizer/index.js b/x-pack/plugins/ml/public/datavisualizer/index.js index e94162faefcc6..6d5d234989988 100644 --- a/x-pack/plugins/ml/public/datavisualizer/index.js +++ b/x-pack/plugins/ml/public/datavisualizer/index.js @@ -7,6 +7,7 @@ import './styles/main.less'; +import './selector'; import './datavisualizer_controller'; import 'plugins/ml/components/data_recognizer'; import 'plugins/ml/components/field_data_card'; diff --git a/x-pack/plugins/ml/public/datavisualizer/selector/_index.scss b/x-pack/plugins/ml/public/datavisualizer/selector/_index.scss new file mode 100644 index 0000000000000..75f8d1c014393 --- /dev/null +++ b/x-pack/plugins/ml/public/datavisualizer/selector/_index.scss @@ -0,0 +1 @@ +@import 'selector'; diff --git a/x-pack/plugins/ml/public/datavisualizer/selector/_selector.scss b/x-pack/plugins/ml/public/datavisualizer/selector/_selector.scss new file mode 100644 index 0000000000000..a6007a63620ed --- /dev/null +++ b/x-pack/plugins/ml/public/datavisualizer/selector/_selector.scss @@ -0,0 +1,5 @@ +.ml-datavisualizer-selector { + flex-grow: 1; + background-color: $euiColorLightestShade; + min-height: 100vh; +} diff --git a/x-pack/plugins/ml/public/datavisualizer/selector/datavisualizer_selector.js b/x-pack/plugins/ml/public/datavisualizer/selector/datavisualizer_selector.js new file mode 100644 index 0000000000000..f7107f12f012c --- /dev/null +++ b/x-pack/plugins/ml/public/datavisualizer/selector/datavisualizer_selector.js @@ -0,0 +1,124 @@ +/* + * 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 React from 'react'; + +import { + EuiButton, + EuiCard, + EuiFlexGroup, + EuiFlexItem, + EuiIcon, + EuiLink, + EuiPage, + EuiPageBody, + EuiSpacer, + EuiText, + EuiTitle, +} from '@elastic/eui'; + +import { isFullLicense } from '../../license/check_license'; + +function startTrialDescription() { + return ( + + To experience the full Machine Learning features that a {' '} + + Platinum subscription + {' '} + offers, start a 30-day trial. + + ); +} + + +export function DatavisualizerSelector() { + + const startTrialVisible = (isFullLicense() === false); + + return ( + + + + + +

      Data Visualizer

      +
      +
      +
      + + + + + The Machine Learning Data Visualizer tool helps you understand your data, by analyzing the metrics and fields in + a log file or an existing Elasticsearch index. + + + + + + + } + title="Import data" + description="Import data from a log file. You can upload files up to 100 MB." + betaBadgeLabel="Experimental" + betaBadgeTooltipContent="Experimental feature. We'd love to hear your feedback." + footer={ + + Upload file + + } + /> + + + } + title="Select an index pattern" + description="Visualize the data in an existing Elasticsearch index." + footer={ + + Select index + + } + /> + + + {startTrialVisible === true && + + + + + + + Start trial + + } + /> + + + + } +
      +
      + ); +} diff --git a/x-pack/plugins/ml/public/datavisualizer/selector/directive.js b/x-pack/plugins/ml/public/datavisualizer/selector/directive.js new file mode 100644 index 0000000000000..206ebcd96ed86 --- /dev/null +++ b/x-pack/plugins/ml/public/datavisualizer/selector/directive.js @@ -0,0 +1,37 @@ +/* + * 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 'ngreact'; + +import { uiModules } from 'ui/modules'; +const module = uiModules.get('apps/ml', ['react']); + +import { checkBasicLicense } from 'plugins/ml/license/check_license'; +import { checkFindFileStructurePrivilege } from 'plugins/ml/privilege/check_privilege'; +import { initPromise } from 'plugins/ml/util/promise'; + +import uiRoutes from 'ui/routes'; + +const template = ``; + +uiRoutes + .when('/datavisualizer', { + template, + resolve: { + CheckLicense: checkBasicLicense, + privileges: checkFindFileStructurePrivilege, + initPromise: initPromise(false) + } + }); + + +import { DatavisualizerSelector } from './datavisualizer_selector'; + +module.directive('datavisualizerSelector', function ($injector) { + const reactDirective = $injector.get('reactDirective'); + + return reactDirective(DatavisualizerSelector, undefined, { restrict: 'E' }, { }); +}); diff --git a/x-pack/plugins/ml/public/datavisualizer/selector/index.js b/x-pack/plugins/ml/public/datavisualizer/selector/index.js new file mode 100644 index 0000000000000..3839017291326 --- /dev/null +++ b/x-pack/plugins/ml/public/datavisualizer/selector/index.js @@ -0,0 +1,8 @@ +/* + * 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 './directive'; diff --git a/x-pack/plugins/ml/public/datavisualizer/styles/main.less b/x-pack/plugins/ml/public/datavisualizer/styles/main.less index 64595835e608d..b5d85f8228826 100644 --- a/x-pack/plugins/ml/public/datavisualizer/styles/main.less +++ b/x-pack/plugins/ml/public/datavisualizer/styles/main.less @@ -25,6 +25,9 @@ display: inline-block; padding-right: 10px; } + .no-sidebar { + width: 100%; + } .datavisualizer-sidebar { width: 290px; @@ -96,6 +99,7 @@ .card-container { display: inline-grid; + display: -ms-inline-grid; padding: 0px 10px 10px 0px; } diff --git a/x-pack/plugins/ml/public/explorer/__tests__/explorer_controller.js b/x-pack/plugins/ml/public/explorer/__tests__/explorer_controller.js index 40109b4c329ff..671cf0fea1b7b 100644 --- a/x-pack/plugins/ml/public/explorer/__tests__/explorer_controller.js +++ b/x-pack/plugins/ml/public/explorer/__tests__/explorer_controller.js @@ -19,6 +19,7 @@ describe('ML - Explorer Controller', () => { const scope = $rootScope.$new(); $controller('MlExplorerController', { $scope: scope }); + expect(Array.isArray(scope.anomalyChartRecords)).to.be(true); expect(scope.loading).to.be(true); }); }); diff --git a/x-pack/plugins/ml/public/explorer/explorer.html b/x-pack/plugins/ml/public/explorer/explorer.html index 857a3755a7771..d94296e3ad6a4 100644 --- a/x-pack/plugins/ml/public/explorer/explorer.html +++ b/x-pack/plugins/ml/public/explorer/explorer.html @@ -131,6 +131,8 @@

      No {{swimlaneViewByFieldName}} influencers

      +
      +
      diff --git a/x-pack/plugins/ml/public/explorer/explorer_charts/__mocks__/mock_chart_data_rare.js b/x-pack/plugins/ml/public/explorer/explorer_charts/__mocks__/mock_chart_data_rare.js new file mode 100644 index 0000000000000..3cc8b41ea7ac3 --- /dev/null +++ b/x-pack/plugins/ml/public/explorer/explorer_charts/__mocks__/mock_chart_data_rare.js @@ -0,0 +1,40 @@ +/* + * 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 chartData = [ + { + date: 1487899800000, + entity: '200', + value: 1741.5652200000002 + }, + { + date: 1487899800000, + entity: '404', + value: 494.30564000000004 + }, + { + date: 1487899800000, + entity: '304', + value: 160.93672 + }, + { + date: 1487899800000, + entity: '301', + value: 57.4774 + }, + { + date: 1487837700000, + value: 42, + entity: '303', + anomalyScore: 84.08759, + actual: [ + 1 + ], + typical: [ + 0.00028318796131582025 + ] + } +]; diff --git a/x-pack/plugins/ml/public/explorer/explorer_charts/__mocks__/mock_series_config_rare.json b/x-pack/plugins/ml/public/explorer/explorer_charts/__mocks__/mock_series_config_rare.json new file mode 100644 index 0000000000000..07c13d7cd8b7f --- /dev/null +++ b/x-pack/plugins/ml/public/explorer/explorer_charts/__mocks__/mock_series_config_rare.json @@ -0,0 +1,56 @@ +{ + "jobId": "ffb-rare-by-response-code-0942", + "detectorIndex": 0, + "metricFunction": "count", + "timeField": "@timestamp", + "interval": "15m", + "datafeedConfig": { + "datafeed_id": "datafeed-ffb-rare-by-response-code-0942", + "job_id": "ffb-rare-by-response-code-0942", + "query_delay": "66615ms", + "indices": [ + "filebeat-6.0.0-2017-nginx-elasticco-anon" + ], + "types": [], + "query": { + "match_all": { + "boost": 1 + } + }, + "scroll_size": 1000, + "chunking_config": { + "mode": "auto" + }, + "state": "stopped" + }, + "functionDescription": "rare", + "bucketSpanSeconds": 900, + "detectorLabel": "rare by \"nginx.access.response_code\"", + "entityFields": [ + { + "fieldName": "nginx.access.response_code", + "fieldValue": "303", + "fieldType": "by" + } + ], + "infoTooltip": { + "jobId": "ffb-rare-by-response-code-0942", + "aggregationInterval": "15m", + "chartFunction": "count", + "entityFields": [ + { + "fieldName": "nginx.access.response_code", + "fieldValue": "303" + } + ] + }, + "loading": false, + "plotEarliest": 1487774250000, + "plotLatest": 1487900250000, + "selectedEarliest": 1487836800000, + "selectedLatest": 1487837699999, + "chartLimits": { + "max": 9294.095580000001, + "min": 5.74774 + } +} diff --git a/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_config_builder.test.js.snap b/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_config_builder.test.js.snap index f899ee14003b7..ca27cd1065623 100644 --- a/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_config_builder.test.js.snap +++ b/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_config_builder.test.js.snap @@ -27,6 +27,7 @@ Object { "entityFields": Array [ Object { "fieldName": "airline", + "fieldType": "partition", "fieldValue": "JAL", }, ], diff --git a/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_info_tooltip.test.js.snap b/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_info_tooltip.test.js.snap new file mode 100644 index 0000000000000..b331c5e496c26 --- /dev/null +++ b/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_info_tooltip.test.js.snap @@ -0,0 +1,30 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ExplorerChartTooltip Render tooltip based on infoTooltip data. 1`] = ` +
      + +
      +`; diff --git a/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_tooltip.test.js.snap b/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_tooltip.test.js.snap deleted file mode 100644 index c602bc0373c51..0000000000000 --- a/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_chart_tooltip.test.js.snap +++ /dev/null @@ -1,24 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ExplorerChartTooltip Render tooltip based on infoTooltip data. 1`] = ` -
      - job ID: - mock-job-id -
      - aggregation interval: - 15m -
      - chart function: - avg responsetime - -
      - airline - : - JAL -
      -
      -`; diff --git a/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_charts_container.test.js.snap b/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_charts_container.test.js.snap deleted file mode 100644 index 087558cfa4ed4..0000000000000 --- a/x-pack/plugins/ml/public/explorer/explorer_charts/__snapshots__/explorer_charts_container.test.js.snap +++ /dev/null @@ -1,54 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ExplorerChartsContainer Initialization with chart data 1`] = ` -
      -
      - - high_sum(nginx.access.body_sent.bytes) over nginx.access.remote_ip (population-03) - - - - - nginx.access.remote_ip - - 72.57.0.53 - -
      - - } - position="left" - size="s" - type="questionInCircle" - /> - - View -