Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed path in logo customization section #4352

Merged
merged 9 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

All notable changes to the Wazuh app project will be documented in this file.

## Wazuh v4.3.7 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4308

### Fixed
- Path fix in Logo Customization section [#4352](https://github.com/wazuh/wazuh-kibana-app/pull/4352)
Desvelao marked this conversation as resolved.
Show resolved Hide resolved

### Added

### Changed

## Wazuh v4.3.6 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4307

### Fixed
Expand Down
1 change: 1 addition & 0 deletions common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export const UI_TOAST_COLOR = {

// Assets
export const ASSETS_BASE_URL_PREFIX = '/plugins/wazuh/assets/';
export const ASSETS_BASE_URL_PREFIX_WITH_PUBLIC = '/plugins/wazuh/public/assets/';
chantal-kelm marked this conversation as resolved.
Show resolved Hide resolved

// Reports
export const REPORTS_LOGO_IMAGE_ASSETS_RELATIVE_PATH = 'images/logo_reports.png';
Expand Down
10 changes: 5 additions & 5 deletions public/utils/config-equivalences.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ASSETS_BASE_URL_PREFIX, PLUGIN_PLATFORM_NAME } from "../../common/constants";
import { ASSETS_BASE_URL_PREFIX_WITH_PUBLIC, PLUGIN_PLATFORM_NAME } from "../../common/constants";

export const configEquivalences = {
pattern: 'Default index pattern to use on the app.',
'customization.logo.app':`Define the name of the app logo saved in the path ${ASSETS_BASE_URL_PREFIX}`,
'customization.logo.sidebar':`Define the name of the sidebar logo saved in the path ${ASSETS_BASE_URL_PREFIX}`,
'customization.logo.healthcheck':`Define the name of the health-check logo saved in the path ${ASSETS_BASE_URL_PREFIX}`,
'customization.logo.reports':`Define the name of the reports logo (.png) saved in the path ${ASSETS_BASE_URL_PREFIX}`,
'customization.logo.app':`Define the name of the app logo saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}`,
'customization.logo.sidebar':`Define the name of the sidebar logo saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}`,
'customization.logo.healthcheck':`Define the name of the health-check logo saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}`,
'customization.logo.reports':`Define the name of the reports logo (.png) saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}`,
'checks.pattern':
'Enable or disable the index pattern health check when opening the app.',
'checks.template':
Expand Down
10 changes: 5 additions & 5 deletions server/lib/initial-wazuh-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Find more information about this on the LICENSE file.
*/

import { ASSETS_BASE_URL_PREFIX, WAZUH_MONITORING_DEFAULT_INDICES_REPLICAS, WAZUH_MONITORING_DEFAULT_INDICES_SHARDS, WAZUH_STATISTICS_DEFAULT_INDICES_REPLICAS, WAZUH_STATISTICS_DEFAULT_INDICES_SHARDS } from "../../common/constants";
import { ASSETS_BASE_URL_PREFIX_WITH_PUBLIC, WAZUH_MONITORING_DEFAULT_INDICES_REPLICAS, WAZUH_MONITORING_DEFAULT_INDICES_SHARDS, WAZUH_STATISTICS_DEFAULT_INDICES_REPLICAS, WAZUH_STATISTICS_DEFAULT_INDICES_SHARDS } from "../../common/constants";
import { webDocumentationLink } from "../../common/services/web_documentation";

export const initialWazuhConfig: string = `---
Expand Down Expand Up @@ -170,16 +170,16 @@ export const initialWazuhConfig: string = `---
#
# ------------------------------ wazuh-logo-customization -------------------------------
#
#Define the name of the app logo saved in the path ${ASSETS_BASE_URL_PREFIX}
#Define the name of the app logo saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}
#customization.logo.app: ''
#
#Define the name of the sidebar logo saved in the path ${ASSETS_BASE_URL_PREFIX}
#Define the name of the sidebar logo saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}
#customization.logo.sidebar: ''
#
#Define the name of the health-check logo saved in the path ${ASSETS_BASE_URL_PREFIX}
#Define the name of the health-check logo saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}
#customization.logo.healthcheck: ''
#
#Define the name of the reports logo (.png) saved in the path ${ASSETS_BASE_URL_PREFIX}
#Define the name of the reports logo (.png) saved in the path ${ASSETS_BASE_URL_PREFIX_WITH_PUBLIC}
#customization.logo.reports: ''
#
# ---------------------------- Hide manager alerts ------------------------------
Expand Down