Skip to content

Commit

Permalink
fix license header
Browse files Browse the repository at this point in the history
Signed-off-by: Yulong Ruan <[email protected]>
  • Loading branch information
ruanyl authored and SuZhou-Joe committed Jul 9, 2024
1 parent aa8b70e commit ad9eb05
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/plugins/content_management/public/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const renderApp = (
{ params, pages, coreStart, depsStart }: Props,
element: AppMountParameters['element']
) => {
console.log('pages: ', pages);
ReactDOM.render(

Check warning on line 44 in src/plugins/content_management/public/app.tsx

View check run for this annotation

Codecov / codecov/patch

src/plugins/content_management/public/app.tsx#L44

Added line #L44 was not covered by tests
<I18nProvider>
<Router history={params.history}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { i18n } from '@osd/i18n';

import {
EmbeddableFactoryDefinition,
ContainerInput,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -7,7 +13,6 @@ import {
ContainerOutput,
EmbeddableStart,
} from '../../../../embeddable/public';
import { EuiFlexGrid, EuiFlexItem } from '@elastic/eui';

interface Props {
embeddable: IContainer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import { i18n } from '@osd/i18n';

import { EmbeddableFactoryDefinition, IContainer } from '../../../embeddable/public';
import {
CUSTOM_CONTENT_EMBEDDABLE,
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/content_management/public/components/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import { BehaviorSubject } from 'rxjs';

import { Content, Section } from '../services';
import { ViewMode } from '../../../embeddable/public';
import { DashboardContainerInput, SavedObjectDashboard } from '../../../dashboard/public';
Expand Down Expand Up @@ -158,6 +159,9 @@ export const createDashboardSection = async (
}
});

/**
* TODO: the input should be hooked with query input
*/
const input: DashboardContainerInput = {

Check warning on line 165 in src/plugins/content_management/public/components/utils.ts

View check run for this annotation

Codecov / codecov/patch

src/plugins/content_management/public/components/utils.ts#L165

Added line #L165 was not covered by tests
viewMode: ViewMode.VIEW,
panels: panels,

Check failure on line 167 in src/plugins/content_management/public/components/utils.ts

View workflow job for this annotation

GitHub Actions / Build and Verify on Linux (ciGroup1)

Expected property shorthand
Expand Down
6 changes: 6 additions & 0 deletions src/plugins/home/public/application/home_render.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit ad9eb05

Please sign in to comment.