Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Remove EUI, fix types, updates snapshots. (#62)
Browse files Browse the repository at this point in the history
* Remove unused translation files

* Removes EUI dependency and relies on Kibanas transitive EUI dependency. Updates snapshots. Updates types.
  • Loading branch information
dbbaughe authored Nov 21, 2019
1 parent 64c9f8f commit b47e8ab
Show file tree
Hide file tree
Showing 34 changed files with 599 additions and 926 deletions.
5 changes: 0 additions & 5 deletions .i18nrc.json

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"eslint-utils": "^1.4.2"
},
"dependencies": {
"@elastic/eui": "7.3.0",
"query-string": "^6.8.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ exports[`<ConfirmationModal /> spec renders the component 1`] = `
<div
class="euiModalBody"
>
some body message
<div
class="euiModalBody__overflow"
>
some body message
</div>
</div>
<div
class="euiModalFooter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,39 +57,43 @@ exports[`<PolicyModal /> spec renders the component 1`] = `
class="euiModalBody"
>
<div
class="euiCodeBlock euiCodeBlock--fontMedium euiCodeBlock--paddingLarge"
class="euiModalBody__overflow"
>
<pre
class="euiCodeBlock__pre"
<div
class="euiCodeBlock euiCodeBlock--fontMedium euiCodeBlock--paddingLarge"
>
<code
class="euiCodeBlock__code json hljs"
<pre
class="euiCodeBlock__pre"
>
{
<span
class="hljs-attr"
<code
class="euiCodeBlock__code json hljs"
>
"policy"
</span>
: {
{
<span
class="hljs-attr"
>
"policy"
</span>
: {
<span
class="hljs-attr"
>
"name"
</span>
:
<span
class="hljs-string"
>
"policy"
</span>
<span
class="hljs-attr"
>
"name"
</span>
:
<span
class="hljs-string"
>
"policy"
</span>
}
}
</code>
</pre>
</code>
</pre>
</div>
</div>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Managed indices
</label>
<div>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Managed indices
</label>
</div>
<div
aria-describedby="some_make_id-help"
aria-expanded="false"
Expand Down Expand Up @@ -83,6 +85,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
aria-label="Open list of options"
class="euiFormControlLayoutCustomIcon euiFormControlLayoutCustomIcon--clickable"
data-test-subj="comboBoxToggleListButton"
type="button"
>
<svg
aria-hidden="true"
Expand Down Expand Up @@ -121,12 +124,14 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
class="euiFormLabel"
for="some_make_id"
>
State filters
</label>
<div>
<label
class="euiFormLabel"
for="some_make_id"
>
State filters
</label>
</div>
<div
aria-describedby="some_make_id-help"
aria-expanded="false"
Expand Down Expand Up @@ -175,6 +180,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
class="euiFormControlLayoutCustomIcon euiFormControlLayoutCustomIcon--clickable"
data-test-subj="comboBoxToggleListButton"
disabled=""
type="button"
>
<svg
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
New policy
</label>
<div>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
New policy
</label>
</div>
<div
aria-expanded="false"
aria-haspopup="listbox"
Expand Down Expand Up @@ -111,6 +113,7 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
aria-label="Open list of options"
class="euiFormControlLayoutCustomIcon euiFormControlLayoutCustomIcon--clickable"
data-test-subj="comboBoxToggleListButton"
type="button"
>
<svg
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

import React, { Component } from "react";
import { RouteComponentProps } from "react-router";
import { RouteComponentProps } from "react-router-dom";
import { EuiSpacer, EuiTitle, EuiButton, EuiFlexGroup, EuiFlexItem } from "@elastic/eui";
import chrome from "ui/chrome";
import { IndexService, ManagedIndexService } from "../../../../services";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Managed indices
</label>
<div>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Managed indices
</label>
</div>
<div
aria-describedby="some_make_id-help"
aria-expanded="false"
Expand Down Expand Up @@ -94,6 +96,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
aria-label="Open list of options"
class="euiFormControlLayoutCustomIcon euiFormControlLayoutCustomIcon--clickable"
data-test-subj="comboBoxToggleListButton"
type="button"
>
<svg
aria-hidden="true"
Expand Down Expand Up @@ -132,12 +135,14 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
class="euiFormLabel"
for="some_make_id"
>
State filters
</label>
<div>
<label
class="euiFormLabel"
for="some_make_id"
>
State filters
</label>
</div>
<div
aria-describedby="some_make_id-help"
aria-expanded="false"
Expand Down Expand Up @@ -186,6 +191,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
class="euiFormControlLayoutCustomIcon euiFormControlLayoutCustomIcon--clickable"
data-test-subj="comboBoxToggleListButton"
disabled=""
type="button"
>
<svg
aria-hidden="true"
Expand Down Expand Up @@ -289,13 +295,15 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
New policy
</label>
<div>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
New policy
</label>
</div>
<div
aria-expanded="false"
aria-haspopup="listbox"
Expand Down Expand Up @@ -336,6 +344,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
aria-label="Open list of options"
class="euiFormControlLayoutCustomIcon euiFormControlLayoutCustomIcon--clickable"
data-test-subj="comboBoxToggleListButton"
type="button"
>
<svg
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ exports[`<ConfigurePolicy /> spec renders the component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Policy ID
</label>
<div>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Policy ID
</label>
</div>
<div
class="euiFormControlLayout"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import React from "react";
import { render, wait, fireEvent } from "@testing-library/react";
import CreatePolicy from "./CreatePolicy";
import { ServicesConsumer, ServicesContext } from "../../../../services";
import { MemoryRouter as Router, Redirect, Route, RouteComponentProps, Switch } from "react-router";
import { MemoryRouter as Router, Redirect, Route, RouteComponentProps, Switch } from "react-router-dom";
import { browserServicesMock } from "../../../../../test/mocks";
import { BrowserServices } from "../../../../models/interfaces";
import { ModalProvider, ModalRoot } from "../../../../components/Modal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiButton, EuiButtonEmp
import chrome from "ui/chrome";
import { toastNotifications } from "ui/notify";
import queryString from "query-string";
import { RouteComponentProps } from "react-router";
import { RouteComponentProps } from "react-router-dom";
import { DEFAULT_POLICY } from "../../utils/constants";
import DefinePolicy from "../../components/DefinePolicy";
import ConfigurePolicy from "../../components/ConfigurePolicy";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ exports[`<CreatePolicy /> spec renders the create component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Policy ID
</label>
<div>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Policy ID
</label>
</div>
<div
class="euiFormControlLayout"
>
Expand Down Expand Up @@ -422,13 +424,15 @@ exports[`<CreatePolicy /> spec renders the edit component 1`] = `
class="euiFormRow"
id="some_make_id-row"
>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Policy ID
</label>
<div>
<label
aria-invalid="false"
class="euiFormLabel"
for="some_make_id"
>
Policy ID
</label>
</div>
<div
class="euiFormControlLayout"
>
Expand Down
Loading

0 comments on commit b47e8ab

Please sign in to comment.