Move remaining home assets to the new platform (#65053)

* Migrate tutorial resources

Closes #55710

* Added type to context in apm plugin index

* Removed context parameter  from ApmPlugin

* Generated apm plugin by generate_plugin script

* Removed getGreeting declaration

* Remove unused assets and comment previewImagePaths

* Removed unnecessary types file

* Move assets and sample_data_resources, update snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Diana Derevyankina 2020-05-07 13:34:07 +03:00 committed by GitHub
parent 8b862fea06
commit e723a8f916
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 13 additions and 13 deletions

View file

@ -301,7 +301,7 @@ exports[`DashboardEmptyScreen renders correctly with readonly mode 1`] = `
>
<EuiImage
alt=""
url="/plugins/kibana/home/assets/welcome_graphic_light_2x.png"
url="/plugins/home/assets/welcome_graphic_light_2x.png"
>
<figure
className="euiImage "
@ -309,7 +309,7 @@ exports[`DashboardEmptyScreen renders correctly with readonly mode 1`] = `
<img
alt=""
className="euiImage__img"
src="/plugins/kibana/home/assets/welcome_graphic_light_2x.png"
src="/plugins/home/assets/welcome_graphic_light_2x.png"
style={Object {}}
/>
</figure>
@ -995,7 +995,7 @@ exports[`DashboardEmptyScreen renders correctly without visualize paragraph 1`]
>
<EuiImage
alt=""
url="/plugins/kibana/home/assets/welcome_graphic_light_2x.png"
url="/plugins/home/assets/welcome_graphic_light_2x.png"
>
<figure
className="euiImage "
@ -1003,7 +1003,7 @@ exports[`DashboardEmptyScreen renders correctly without visualize paragraph 1`]
<img
alt=""
className="euiImage__img"
src="/plugins/kibana/home/assets/welcome_graphic_light_2x.png"
src="/plugins/home/assets/welcome_graphic_light_2x.png"
style={Object {}}
/>
</figure>

View file

@ -50,8 +50,8 @@ export function DashboardEmptyScreen({
}: DashboardEmptyScreenProps) {
const IS_DARK_THEME = uiSettings.get('theme:darkMode');
const emptyStateGraphicURL = IS_DARK_THEME
? '/plugins/kibana/home/assets/welcome_graphic_dark_2x.png'
: '/plugins/kibana/home/assets/welcome_graphic_light_2x.png';
? '/plugins/home/assets/welcome_graphic_dark_2x.png'
: '/plugins/home/assets/welcome_graphic_light_2x.png';
const linkToVisualizeParagraph = (
<p data-test-subj="linkToVisualizeParagraph">
<EuiButton

View file

@ -42,7 +42,7 @@ interface Props {
export function SampleDataCard({ urlBasePath, onDecline, onConfirm }: Props) {
return (
<EuiCard
image={`${urlBasePath}/plugins/kibana/home/assets/illustration_elastic_heart.png`}
image={`${urlBasePath}/plugins/home/assets/illustration_elastic_heart.png`}
textAlign="left"
title={<FormattedMessage id="home.letsStartTitle" defaultMessage="Let's get started" />}
description={

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before After
Before After

View file

@ -36,8 +36,8 @@ export const ecommerceSpecProvider = function(): SampleDatasetSchema {
id: 'ecommerce',
name: ecommerceName,
description: ecommerceDescription,
previewImagePath: '/plugins/kibana/home/sample_data_resources/ecommerce/dashboard.png',
darkPreviewImagePath: '/plugins/kibana/home/sample_data_resources/ecommerce/dashboard_dark.png',
previewImagePath: '/plugins/home/assets/sample_data_resources/ecommerce/dashboard.png',
darkPreviewImagePath: '/plugins/home/assets/sample_data_resources/ecommerce/dashboard_dark.png',
overviewDashboard: '722b74f0-b882-11e8-a6d9-e546fe2bba5f',
appLinks: initialAppLinks,
defaultIndex: 'ff959d40-b880-11e8-a6d9-e546fe2bba5f',

View file

@ -36,8 +36,8 @@ export const flightsSpecProvider = function(): SampleDatasetSchema {
id: 'flights',
name: flightsName,
description: flightsDescription,
previewImagePath: '/plugins/kibana/home/sample_data_resources/flights/dashboard.png',
darkPreviewImagePath: '/plugins/kibana/home/sample_data_resources/flights/dashboard_dark.png',
previewImagePath: '/plugins/home/assets/sample_data_resources/flights/dashboard.png',
darkPreviewImagePath: '/plugins/home/assets/sample_data_resources/flights/dashboard_dark.png',
overviewDashboard: '7adfa750-4c81-11e8-b3d7-01146121b73d',
appLinks: initialAppLinks,
defaultIndex: 'd3d7af60-4c81-11e8-b3d7-01146121b73d',

View file

@ -36,8 +36,8 @@ export const logsSpecProvider = function(): SampleDatasetSchema {
id: 'logs',
name: logsName,
description: logsDescription,
previewImagePath: '/plugins/kibana/home/sample_data_resources/logs/dashboard.png',
darkPreviewImagePath: '/plugins/kibana/home/sample_data_resources/logs/dashboard_dark.png',
previewImagePath: '/plugins/home/assets/sample_data_resources/logs/dashboard.png',
darkPreviewImagePath: '/plugins/home/assets/sample_data_resources/logs/dashboard_dark.png',
overviewDashboard: 'edf84fe0-e1a0-11e7-b6d5-4dc382ef7f5b',
appLinks: initialAppLinks,
defaultIndex: '90943e30-9a47-11e8-b64d-95841ca0b247',