-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ashwin P Chandran <[email protected]>
- Loading branch information
Showing
256 changed files
with
18,457 additions
and
1,322 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @ananzh @kavilla @AMoo-Miki @ashwin-pc @joshuarrrr @abbyhu2000 @zengyan-amazon @zhongnansu @manasvinibs @ZilongX @Flyingliuhub @BSFishy @curq @bandinib-amzn @SuZhou-Joe @ruanyl @BionIT | ||
* @ananzh @kavilla @AMoo-Miki @ashwin-pc @joshuarrrr @abbyhu2000 @zengyan-amazon @zhongnansu @manasvinibs @ZilongX @Flyingliuhub @BSFishy @curq @bandinib-amzn @SuZhou-Joe @ruanyl @BionIT @xinruiba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Developer examples | ||
|
||
The multiple data source examples adds a few pages to the developer example which is a landing page where developers go to search for working, tested examples of various developer | ||
services. This example using the developerExamples `register` function offered on the `setup` contract to register the app. | ||
|
||
To run the example in OpenSearch Dashboards with developer examples: | ||
|
||
``` | ||
yarn start --run-examples | ||
``` | ||
|
||
Then navigate to "Developer examples" and click on "Multiple Data Source Integration" |
10 changes: 10 additions & 0 deletions
10
examples/multiple_data_source_examples/opensearch_dashboards.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"id": "multipleDataSourceExamples", | ||
"version": "0.0.1", | ||
"opensearchDashboardsVersion": "opensearchDashboards", | ||
"server": false, | ||
"ui": true, | ||
"requiredPlugins": ["developerExamples", "navigation"], | ||
"optionalPlugins": ["dataSource", "dataSourceManagement"] | ||
} | ||
|
36 changes: 36 additions & 0 deletions
36
examples/multiple_data_source_examples/public/application.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { DataSourcePluginSetup } from 'src/plugins/data_source/public'; | ||
import { DataSourceManagementPluginSetup } from 'src/plugins/data_source_management/public'; | ||
import { NavigationPublicPluginStart } from 'src/plugins/navigation/public'; | ||
import { CoreStart, AppMountParameters } from '../../../src/core/public'; | ||
import { Home } from './components/home'; | ||
|
||
export const renderApp = ( | ||
{ notifications, http, savedObjects, application }: CoreStart, | ||
dataSource: DataSourcePluginSetup, | ||
dataSourceManagement: DataSourceManagementPluginSetup, | ||
{ appBasePath, element, setHeaderActionMenu }: AppMountParameters, | ||
navigation: NavigationPublicPluginStart | ||
) => { | ||
ReactDOM.render( | ||
<Home | ||
basename={appBasePath} | ||
notifications={notifications} | ||
http={http} | ||
savedObjects={savedObjects} | ||
dataSourceEnabled={dataSource.dataSourceEnabled} | ||
setActionMenu={setHeaderActionMenu} | ||
dataSourceManagement={dataSourceManagement} | ||
navigateToApp={application.navigateToApp} | ||
navigation={navigation} | ||
/>, | ||
element | ||
); | ||
|
||
return () => ReactDOM.unmountComponentAtNode(element); | ||
}; |
29 changes: 29 additions & 0 deletions
29
examples/multiple_data_source_examples/public/components/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import { EuiBasicTableColumn } from '@elastic/eui'; | ||
import { ComponentProp } from './types'; | ||
|
||
export const COLUMNS: Array<EuiBasicTableColumn<ComponentProp>> = [ | ||
{ | ||
field: 'name', | ||
name: 'Name', | ||
}, | ||
{ | ||
field: 'required', | ||
name: 'Required', | ||
}, | ||
{ | ||
field: 'defaultValue', | ||
name: 'Default Value', | ||
}, | ||
{ | ||
field: 'description', | ||
name: 'Description', | ||
}, | ||
{ | ||
field: 'deprecated', | ||
name: 'Deprecated', | ||
}, | ||
]; |
Oops, something went wrong.