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 1, 2023
1 parent 572fe15 commit 05d9105
Show file tree
Hide file tree
Showing 33 changed files with 1,206 additions and 412 deletions.

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

4 changes: 2 additions & 2 deletions src/core/public/chrome/ui/header/header_help_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ class HeaderHelpMenuUI extends Component<Props, State> {

<EuiButtonEmpty href={helpSupportUrl} target="_blank" size="xs" flush="left">
<FormattedMessage
id="core.ui.chrome.headerGlobalNav.helpMenuAskOpenSearchTitle"
defaultMessage="Community"
id="core.ui.chrome.headerGlobalNav.helpMenuAskElasticTitle"
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 05d9105

Please sign in to comment.