Skip to content

Commit

Permalink
[App Arch] migrate legacy CSS to new platform (core_plugins/kibana_re…
Browse files Browse the repository at this point in the history
…act) (#59882) (#61039)

* Migrate markdown styles to the new platform

* Removed unused import

* Update index.ts

* Removed not need layer

* Fixed paths

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
VladLasitsa and elasticmachine authored Mar 25, 2020
1 parent 8c180dc commit 95688c7
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { fetchAnchorProvider } from '../api/anchor';
import { fetchContextProvider } from '../api/context';
import { getQueryParameterActions } from '../query_parameters';
import { FAILURE_REASONS, LOADING_STATUS } from './constants';
import { MarkdownSimple } from '../../../../../../../kibana_react/public';
import { MarkdownSimple } from '../../../../../../../../../plugins/kibana_react/public';

export function QueryActionsProvider(Promise) {
const { filterManager, indexPatterns } = getServices();
Expand Down
41 changes: 0 additions & 41 deletions src/legacy/core_plugins/kibana_react/index.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/legacy/core_plugins/kibana_react/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions src/legacy/core_plugins/kibana_react/public/index.scss

This file was deleted.

20 changes: 0 additions & 20 deletions src/legacy/core_plugins/kibana_react/public/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import React from 'react';
import { Markdown } from '../../kibana_react/public';
import { Markdown } from '../../../../plugins/kibana_react/public';
import { MarkdownVisParams } from './types';

interface MarkdownVisComponentProps extends MarkdownVisParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React from 'react';
import classNames from 'classnames';
import uuid from 'uuid';
import { get } from 'lodash';
import { Markdown } from '../../../../../kibana_react/public';
import { Markdown } from '../../../../../../../plugins/kibana_react/public';

import { ErrorComponent } from '../../error';
import { replaceVars } from '../../lib/replace_vars';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { ScaleType } from '@elastic/charts';

import { createTickFormatter } from '../../lib/tick_formatter';
import { TimeSeries } from '../../../visualizations/views/timeseries';
import { MarkdownSimple } from '../../../../../kibana_react/public';
import { MarkdownSimple } from '../../../../../../../plugins/kibana_react/public';
import { replaceVars } from '../../lib/replace_vars';
import { getAxisLabelString } from '../../lib/get_axis_label_string';
import { getInterval } from '../../lib/get_interval';
Expand Down
1 change: 1 addition & 0 deletions src/plugins/kibana_react/public/markdown/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import MarkdownIt from 'markdown-it';
import { memoize } from 'lodash';
import { getSecureRelForTarget } from '@elastic/eui';

import './index.scss';
/**
* Return a memoized markdown rendering function that use the specified
* whiteListedRules and openLinksInNewTab configurations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { RendererStrings } from '../../../i18n';
import { Markdown } from '../../../../../../../src/legacy/core_plugins/kibana_react/public';
import { Markdown } from '../../../../../../../src/plugins/kibana_react/public';

const { markdown: strings } = RendererStrings;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import React from 'react';
import { toastNotifications } from 'ui/notify';
import { MarkdownSimple } from '../../../../../../../src/legacy/core_plugins/kibana_react/public';
import { MarkdownSimple } from '../../../../../../../src/plugins/kibana_react/public';
import { PLUGIN } from '../../../common/constants';

export class LogstashLicenseService {
Expand Down

0 comments on commit 95688c7

Please sign in to comment.