From ad9eb05089640d445c4a1f8a9e571aa5fb200b4f Mon Sep 17 00:00:00 2001 From: Yulong Ruan Date: Tue, 9 Jul 2024 11:14:56 +0800 Subject: [PATCH] fix license header Signed-off-by: Yulong Ruan --- src/plugins/content_management/public/app.tsx | 1 - .../components/card_container/card_container_factory.ts | 6 ++++++ .../public/components/card_container/card_list.tsx | 7 ++++++- .../public/components/custom_content_embeddable.tsx | 1 + .../public/components/custom_content_embeddable_factory.ts | 1 + src/plugins/content_management/public/components/utils.ts | 4 ++++ src/plugins/home/public/application/home_render.tsx | 6 ++++++ 7 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/plugins/content_management/public/app.tsx b/src/plugins/content_management/public/app.tsx index a5433f52a4f..cd60f8047b8 100644 --- a/src/plugins/content_management/public/app.tsx +++ b/src/plugins/content_management/public/app.tsx @@ -41,7 +41,6 @@ export const renderApp = ( { params, pages, coreStart, depsStart }: Props, element: AppMountParameters['element'] ) => { - console.log('pages: ', pages); ReactDOM.render( diff --git a/src/plugins/content_management/public/components/card_container/card_container_factory.ts b/src/plugins/content_management/public/components/card_container/card_container_factory.ts index d579cf0e032..11adc7cf995 100644 --- a/src/plugins/content_management/public/components/card_container/card_container_factory.ts +++ b/src/plugins/content_management/public/components/card_container/card_container_factory.ts @@ -1,4 +1,10 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + import { i18n } from '@osd/i18n'; + import { EmbeddableFactoryDefinition, ContainerInput, diff --git a/src/plugins/content_management/public/components/card_container/card_list.tsx b/src/plugins/content_management/public/components/card_container/card_list.tsx index a15cc8724eb..b9619d39e0d 100644 --- a/src/plugins/content_management/public/components/card_container/card_list.tsx +++ b/src/plugins/content_management/public/components/card_container/card_list.tsx @@ -1,4 +1,10 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + import React from 'react'; +import { EuiFlexGrid, EuiFlexItem } from '@elastic/eui'; import { IContainer, @@ -7,7 +13,6 @@ import { ContainerOutput, EmbeddableStart, } from '../../../../embeddable/public'; -import { EuiFlexGrid, EuiFlexItem } from '@elastic/eui'; interface Props { embeddable: IContainer; diff --git a/src/plugins/content_management/public/components/custom_content_embeddable.tsx b/src/plugins/content_management/public/components/custom_content_embeddable.tsx index 938ad89266a..df67b340a4b 100644 --- a/src/plugins/content_management/public/components/custom_content_embeddable.tsx +++ b/src/plugins/content_management/public/components/custom_content_embeddable.tsx @@ -5,6 +5,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; + import { Embeddable, EmbeddableInput, IContainer } from '../../../embeddable/public'; export const CUSTOM_CONTENT_EMBEDDABLE = 'custom_content_embeddable'; diff --git a/src/plugins/content_management/public/components/custom_content_embeddable_factory.ts b/src/plugins/content_management/public/components/custom_content_embeddable_factory.ts index 04759780f0a..fb543f071c5 100644 --- a/src/plugins/content_management/public/components/custom_content_embeddable_factory.ts +++ b/src/plugins/content_management/public/components/custom_content_embeddable_factory.ts @@ -4,6 +4,7 @@ */ import { i18n } from '@osd/i18n'; + import { EmbeddableFactoryDefinition, IContainer } from '../../../embeddable/public'; import { CUSTOM_CONTENT_EMBEDDABLE, diff --git a/src/plugins/content_management/public/components/utils.ts b/src/plugins/content_management/public/components/utils.ts index 037b8137832..750a6ca2b60 100644 --- a/src/plugins/content_management/public/components/utils.ts +++ b/src/plugins/content_management/public/components/utils.ts @@ -4,6 +4,7 @@ */ import { BehaviorSubject } from 'rxjs'; + import { Content, Section } from '../services'; import { ViewMode } from '../../../embeddable/public'; import { DashboardContainerInput, SavedObjectDashboard } from '../../../dashboard/public'; @@ -158,6 +159,9 @@ export const createDashboardSection = async ( } }); + /** + * TODO: the input should be hooked with query input + */ const input: DashboardContainerInput = { viewMode: ViewMode.VIEW, panels: panels, diff --git a/src/plugins/home/public/application/home_render.tsx b/src/plugins/home/public/application/home_render.tsx index 243e3628b7a..2f974d28109 100644 --- a/src/plugins/home/public/application/home_render.tsx +++ b/src/plugins/home/public/application/home_render.tsx @@ -1,4 +1,10 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + import React from 'react'; + import { CoreStart } from 'opensearch-dashboards/public'; import { Page } from '../../../content_management/public/services'; import { toMountPoint } from '../../../opensearch_dashboards_react/public';