Skip to content

Commit

Permalink
Add Wazuh changes (styles and images) (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: Álex Ruiz <[email protected]>
Co-authored-by: Ian Yenien Serrano <[email protected]>
Co-authored-by: yenienserrano <[email protected]>
  • Loading branch information
3 people committed Jun 9, 2023
1 parent d6792f2 commit 50d58c3
Show file tree
Hide file tree
Showing 30 changed files with 1,169 additions and 404 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/public/chrome/ui/header/header_help_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class HeaderHelpMenuUI extends Component<Props, State> {
<EuiButtonEmpty href={helpSupportUrl} target="_blank" size="xs" flush="left">
<FormattedMessage
id="core.ui.chrome.headerGlobalNav.helpMenuAskOpenSearchTitle"
defaultMessage="Community"
defaultMessage="Ask Wazuh"
/>
</EuiButtonEmpty>

Expand Down
4 changes: 2 additions & 2 deletions src/core/public/chrome/ui/header/home_icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import React from 'react';
import { EuiIcon } from '@elastic/eui';
import { ChromeBranding } from '../../chrome_service';

export const DEFAULT_MARK = 'opensearch_mark_default_mode.svg';
export const DEFAULT_DARK_MARK = 'opensearch_mark_dark_mode.svg';
export const DEFAULT_MARK = 'home_default_mode.svg';
export const DEFAULT_DARK_MARK = 'home_dark_mode.svg';

/**
* Use branding configurations to render the header mark on the nav bar.
Expand Down
8 changes: 7 additions & 1 deletion src/core/public/rendering/rendering_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ export class RenderingService {
const appUi = application.getComponent();
const bannerUi = overlays.banners.getComponent();

/**
* This is done so that modifications to login styles are only applied to the login.
*/
const pathName = chromeUi.props.application?.history?.location?.pathname || '';
const classContent = pathName === '/app/login' ? 'content wz-login' : 'content';

ReactDOM.render(
<I18nProvider>
<div className="content" data-test-subj="opensearchDashboardsChrome">
<div className={classContent} data-test-subj="opensearchDashboardsChrome">
{chromeUi}

<AppWrapper chromeVisible$={chrome.getIsVisible$()}>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 50d58c3

Please sign in to comment.