-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added release notes 2.16 (#227) * added release notes 2.16 Signed-off-by: Riya Saxena <[email protected]> * added release notes for 2.16 Signed-off-by: Riya Saxena <[email protected]> --------- Signed-off-by: Riya Saxena <[email protected]> * chanels complete Signed-off-by: Riya Saxena <[email protected]> * almost done Signed-off-by: Riya Saxena <[email protected]> * corrected Chanel list page Signed-off-by: Riya Saxena <[email protected]> * view channel Signed-off-by: Riya Saxena <[email protected]> * view channel Signed-off-by: Riya Saxena <[email protected]> * channel details fixed Signed-off-by: Riya Saxena <[email protected]> * fixed many things Signed-off-by: Riya Saxena <[email protected]> * bug fixes Signed-off-by: Riya Saxena <[email protected]> * fix tests page header changes Signed-off-by: Riya Saxena <[email protected]> * code refactored Signed-off-by: Riya Saxena <[email protected]> * fix UTs Signed-off-by: Riya Saxena <[email protected]> * Compressed UX Signed-off-by: Riya Saxena <[email protected]> * resolve merge conflict from main Signed-off-by: Riya Saxena <[email protected]> * resolve merge conflict from main Signed-off-by: Riya Saxena <[email protected]> * refactored the code Signed-off-by: Riya Saxena <[email protected]> * refactored the code Signed-off-by: Riya Saxena <[email protected]> * addressed the comment Signed-off-by: Riya Saxena <[email protected]> * addressed the comment Signed-off-by: Riya Saxena <[email protected]> * addressed the comment Signed-off-by: Riya Saxena <[email protected]> * addressed the comment Signed-off-by: Riya Saxena <[email protected]> --------- Signed-off-by: Riya Saxena <[email protected]>
- Loading branch information
1 parent
a5066a9
commit 33d7bc1
Showing
43 changed files
with
1,418 additions
and
766 deletions.
There are no files selected for viewing
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,21 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
// babelrc doesn't respect NODE_PATH anymore but using require does. | ||
// Alternative to install them locally in node_modules | ||
module.exports = { | ||
"presets": [ | ||
require('@babel/preset-env'), | ||
require('@babel/preset-react'), | ||
require('@babel/preset-typescript'), | ||
], | ||
"plugins": | ||
[ | ||
[require("@babel/plugin-transform-modules-commonjs"), { "allowTopLevelThis": true }], | ||
[require('@babel/plugin-transform-runtime'), { regenerator: true }], | ||
require('@babel/plugin-transform-class-properties'), | ||
require('@babel/plugin-transform-object-rest-spread') | ||
] | ||
}; |
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,43 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { | ||
TopNavControlData, | ||
TopNavControlDescriptionData, | ||
TopNavControlLinkData, | ||
} from '../../../../../src/plugins/navigation/public'; | ||
import { getApplication, getNavigationUI, getUseUpdatedUx } from '../../services/utils/constants'; | ||
|
||
export interface PageHeaderProps { | ||
appRightControls?: TopNavControlData[]; | ||
appBadgeControls?: TopNavControlData[]; | ||
appDescriptionControls?: (TopNavControlDescriptionData | TopNavControlLinkData)[]; | ||
appLeftControls?: TopNavControlData[]; | ||
} | ||
|
||
const PageHeader: React.FC<PageHeaderProps> = ({ | ||
children, | ||
appBadgeControls, | ||
appRightControls, | ||
appDescriptionControls, | ||
appLeftControls, | ||
}) => { | ||
const { HeaderControl } = getNavigationUI(); | ||
const { setAppBadgeControls, setAppRightControls, setAppDescriptionControls, setAppLeftControls } = getApplication(); | ||
|
||
return getUseUpdatedUx() ? ( | ||
<> | ||
<HeaderControl setMountPoint={setAppBadgeControls} controls={appBadgeControls} /> | ||
<HeaderControl setMountPoint={setAppRightControls} controls={appRightControls} /> | ||
<HeaderControl setMountPoint={setAppDescriptionControls} controls={appDescriptionControls} /> | ||
<HeaderControl setMountPoint={setAppLeftControls} controls={appLeftControls} /> | ||
</> | ||
) : ( | ||
<>{children}</> | ||
); | ||
}; | ||
|
||
export default PageHeader; |
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
Oops, something went wrong.