From 3086483b62606dd3b751147d242e9ff41fde8a1a Mon Sep 17 00:00:00 2001 From: Juan Carlos Tello Date: Fri, 18 Nov 2022 17:34:06 +0100 Subject: [PATCH] Typo correction (#4688) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix adn typo in module description * Fix arequest typo in comment * Fix avaliable typo in error message * Fix badgets typo in comment * fix de/the typo in comment * Fix dependentes typo in comment * Fix missing apostrophe in UI warning message * Fix Iventory typo in module description * Fix onwner typo in filter bar descriptions of the FIM inventory * Fix "othe" typo in module description * Remove word apparently added by mistake in PR #3120 * Fix "resouces" typo in module description * Fix "resutls" typo in module description * Fix "retuns" typo in comment code * Added missing "y" to "successfull" message when removing policy * Fix "sugguestions" typo in comment * Removed extra t in "VirustTotal" on the sample data screen Co-authored-by: Álex (cherry picked from commit 8e1db47c9801dca9ad7a13246026077426fccf6d) --- public/components/agents/fim/inventory/filterBar.tsx | 2 +- .../agents/prompts/prompt-agent-feature-version.tsx | 2 +- public/components/agents/sca/inventory.tsx | 6 +++--- public/components/common/hocs/withButtonOpenOnClick.tsx | 4 ++-- public/components/common/hocs/withGlobalBreadcrumb.tsx | 4 ++-- public/components/common/hocs/with_module_tab_loader.tsx | 4 ++-- public/components/common/modules/panel/main-panel.tsx | 2 +- .../common/welcome/components/sca_scan/sca_scan.tsx | 2 +- public/components/health-check/components/check-result.tsx | 2 +- .../all_resources_search_results.tsx | 2 +- .../overview/mitre_attack_intelligence/resources.tsx | 2 +- public/components/security/roles/edit-role-table.tsx | 4 ++-- public/components/wz-search-bar/wz-search-badges.tsx | 2 +- public/components/wz-search-bar/wz-search-bar.test.tsx | 4 ++-- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/public/components/agents/fim/inventory/filterBar.tsx b/public/components/agents/fim/inventory/filterBar.tsx index 5352598d1e..9830e33456 100644 --- a/public/components/agents/fim/inventory/filterBar.tsx +++ b/public/components/agents/fim/inventory/filterBar.tsx @@ -66,7 +66,7 @@ export class FilterBar extends Component { { type: 'q', label: 'uid', - description: 'Id of the onwner file', + description: 'Id of the owner file', operators: ['=', '!=', '~'], values: async (value) => getFilterValues('uid', value, this.props.agent.id), }, diff --git a/public/components/agents/prompts/prompt-agent-feature-version.tsx b/public/components/agents/prompts/prompt-agent-feature-version.tsx index 2789286e9f..4ddebd3947 100644 --- a/public/components/agents/prompts/prompt-agent-feature-version.tsx +++ b/public/components/agents/prompts/prompt-agent-feature-version.tsx @@ -18,7 +18,7 @@ export const PromptAgentFeatureVersion = ({ version = '' }: { version: string }) {`Agent doesn't support this feature`}} - body={`This feature is only avaliable for agents with ${version}.`} + body={`This feature is only available for agents with ${version}.`} /> ); }; diff --git a/public/components/agents/sca/inventory.tsx b/public/components/agents/sca/inventory.tsx index 0fcebede02..d5de1ed4ef 100644 --- a/public/components/agents/sca/inventory.tsx +++ b/public/components/agents/sca/inventory.tsx @@ -1,5 +1,5 @@ /* - * Wazuh app - Iventory component + * Wazuh app - Inventory component * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify @@ -578,7 +578,7 @@ export class Inventory extends Component { @@ -593,4 +593,4 @@ export class Inventory extends Component { Inventory.defaultProps = { onClickRow: undefined -} \ No newline at end of file +} diff --git a/public/components/common/hocs/withButtonOpenOnClick.tsx b/public/components/common/hocs/withButtonOpenOnClick.tsx index f6303a64bc..52ad584ceb 100644 --- a/public/components/common/hocs/withButtonOpenOnClick.tsx +++ b/public/components/common/hocs/withButtonOpenOnClick.tsx @@ -1,5 +1,5 @@ /* - * Wazuh app - React HOC to add open modal/flyout logic to othe component + * Wazuh app - React HOC to add open modal/flyout logic to other component * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify @@ -32,4 +32,4 @@ export const withButtonOpenOnClick = WrappedComponent => ({render, onClick, onCl )} ) -} \ No newline at end of file +} diff --git a/public/components/common/hocs/withGlobalBreadcrumb.tsx b/public/components/common/hocs/withGlobalBreadcrumb.tsx index 2daa3e5754..07a2463238 100644 --- a/public/components/common/hocs/withGlobalBreadcrumb.tsx +++ b/public/components/common/hocs/withGlobalBreadcrumb.tsx @@ -16,8 +16,8 @@ type TBreadcrumbSection = {text: string, href?: string} | { agent: any }; type TBreadcrumb = TBreadcrumbSection[]; type TBreadcrumbParameter = TBreadcrumb | ((props: any) => TBreadcrumb); -// It retuns user permissions +// It returns user permissions export const withGlobalBreadcrumb = (breadcrumb : TBreadcrumbParameter) => WrappedComponent => props => { useGlobalBreadcrumb(typeof breadcrumb === 'function' ? breadcrumb(props) : breadcrumb); return -} \ No newline at end of file +} diff --git a/public/components/common/hocs/with_module_tab_loader.tsx b/public/components/common/hocs/with_module_tab_loader.tsx index 39c35ece07..4d40eee23d 100644 --- a/public/components/common/hocs/with_module_tab_loader.tsx +++ b/public/components/common/hocs/with_module_tab_loader.tsx @@ -1,5 +1,5 @@ /* - * Wazuh app - React HOC to show a loader used for Dashboard adn Events module tabs + * Wazuh app - React HOC to show a loader used for Dashboard and Events module tabs * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify @@ -39,4 +39,4 @@ export const withModuleTabLoader = WrappedComponent => props => { ) -} \ No newline at end of file +} diff --git a/public/components/common/modules/panel/main-panel.tsx b/public/components/common/modules/panel/main-panel.tsx index 0a16c11aef..624e3f6e0e 100644 --- a/public/components/common/modules/panel/main-panel.tsx +++ b/public/components/common/modules/panel/main-panel.tsx @@ -72,7 +72,7 @@ export const MainPanel = ({ sidePanelChildren, tab = 'general', moduleConfig = { }, [viewId]); /** - * When a filter is toggled applies de selection + * When a filter is toggled applies the selection */ const applyFilter = (clearOnly = false) => { const newFilters = [ diff --git a/public/components/common/welcome/components/sca_scan/sca_scan.tsx b/public/components/common/welcome/components/sca_scan/sca_scan.tsx index 756ea53841..975656a60f 100644 --- a/public/components/common/welcome/components/sca_scan/sca_scan.tsx +++ b/public/components/common/welcome/components/sca_scan/sca_scan.tsx @@ -212,7 +212,7 @@ export const ScaScan = compose( You dont have SCA scans in this agent.} + title={

You don't have SCA scans in this agent.

} body={

diff --git a/public/components/health-check/components/check-result.tsx b/public/components/health-check/components/check-result.tsx index 254a30289b..814de4eb23 100644 --- a/public/components/health-check/components/check-result.tsx +++ b/public/components/health-check/components/check-result.tsx @@ -59,7 +59,7 @@ export function CheckResult(props) { }; /** - * validate if the current check is not started and if the dependentes checks are ready + * validate if the current check is not started and if the depending checks are ready */ const awaitForIsReady = () => { return !isCheckStarted && (props.awaitFor.length === 0 || props.awaitFor.every((check) => { diff --git a/public/components/overview/mitre_attack_intelligence/all_resources_search_results.tsx b/public/components/overview/mitre_attack_intelligence/all_resources_search_results.tsx index 7d33d31092..6415b804bb 100644 --- a/public/components/overview/mitre_attack_intelligence/all_resources_search_results.tsx +++ b/public/components/overview/mitre_attack_intelligence/all_resources_search_results.tsx @@ -1,5 +1,5 @@ /* - * Wazuh app - React component that shows the searching resutls of Mitre Att&ck resources + * Wazuh app - React component that shows the searching results of Mitre Att&ck resources * * Copyright (C) 2015-2022 Wazuh, Inc. * diff --git a/public/components/overview/mitre_attack_intelligence/resources.tsx b/public/components/overview/mitre_attack_intelligence/resources.tsx index 9cdae27fbb..6341ea5249 100644 --- a/public/components/overview/mitre_attack_intelligence/resources.tsx +++ b/public/components/overview/mitre_attack_intelligence/resources.tsx @@ -1,5 +1,5 @@ /* - * Wazuh app - Mitre Att&ck resouces. + * Wazuh app - Mitre Att&ck resources. * * Copyright (C) 2015-2022 Wazuh, Inc. * diff --git a/public/components/security/roles/edit-role-table.tsx b/public/components/security/roles/edit-role-table.tsx index 9a8f9e1adb..c75bc893ab 100644 --- a/public/components/security/roles/edit-role-table.tsx +++ b/public/components/security/roles/edit-role-table.tsx @@ -96,7 +96,7 @@ export const EditRolesTable = ({ policies, role, onChange, isDisabled, loading}) setIsLoading(false); return; } - ErrorHandler.info(`Policy was successfull removed from role ${role.name}`); + ErrorHandler.info(`Policy was successfully removed from role ${role.name}`); await onChange(); }catch(err){ } setIsLoading(false); @@ -141,4 +141,4 @@ export const EditRolesTable = ({ policies, role, onChange, isDisabled, loading}) /> ); -}; \ No newline at end of file +}; diff --git a/public/components/wz-search-bar/wz-search-badges.tsx b/public/components/wz-search-bar/wz-search-badges.tsx index cb50dfec20..33e4261c2e 100644 --- a/public/components/wz-search-bar/wz-search-badges.tsx +++ b/public/components/wz-search-bar/wz-search-badges.tsx @@ -72,7 +72,7 @@ export class WzSearchBadges extends Component { color="hollow" iconOnClick={() => this.onDeleteFilter(filter)}> - {`${filter.field}: ${filter.value} puto`} + {`${filter.field}: ${filter.value}`} diff --git a/public/components/wz-search-bar/wz-search-bar.test.tsx b/public/components/wz-search-bar/wz-search-bar.test.tsx index bcbd82b4bc..85e197c0db 100644 --- a/public/components/wz-search-bar/wz-search-bar.test.tsx +++ b/public/components/wz-search-bar/wz-search-bar.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { CASES_SEARCHBAR } from './wz-search-bar.test-cases'; const getSuggestionsFilters = async (field, value, filters = {}) => { - // here is returned filter to call api and get sugguestions + // here is returned filter to call api and get suggestions return Promise.resolve([]); }; @@ -152,7 +152,7 @@ describe('WzSearchBar', () => { }); inputs.forEach((filterText, index) => { - // check all badgets created + // check all badges created expect(getByTestId(`${WZ_SEARCH_BADGE_NAME}-${index}`)).toHaveTextContent(filterText); expect(getByText(filterText)).toBeInTheDocument(); });