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

Typo correction #4688

Merged
merged 18 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from 17 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
2 changes: 1 addition & 1 deletion public/components/add-modules-data/sample-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class WzSampleData extends Component {
{
title: 'Sample threat detection and response',
description:
'Sample data, visualizations and dashboards for threat events of detection and response (vulnerabilities, VirustTotal, Osquery, Docker listener, MITRE).',
'Sample data, visualizations and dashboards for threat events of detection and response (vulnerabilities, VirusTotal, Osquery, Docker listener, MITRE).',
image: '',
categorySampleAlertsIndex: 'threat-detection',
},
Expand Down
2 changes: 1 addition & 1 deletion public/components/agents/fim/inventory/filterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const PromptAgentFeatureVersion = ({ version = '' }: { version: string })
<EuiEmptyPrompt
iconType="watchesApp"
title={<h2>{`Agent doesn't support this feature`}</h2>}
body={`This feature is only avaliable for agents with ${version}.`}
body={`This feature is only available for agents with ${version}.`}
/>
);
};
4 changes: 2 additions & 2 deletions public/components/agents/sca/inventory.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -409,7 +409,7 @@ export class Inventory extends Component {
});
const [policyData] = policyResponse.data.data.affected_items;
// It queries all checks without filters, because the filters are applied in the results
// due to the use of EuiInMemoryTable instead EuiTable components and do arequest with each change of filters.
// due to the use of EuiInMemoryTable instead EuiTable components and do a request with each change of filters.
const checksResponse = await WzRequest.apiReq(
'GET',
`/sca/${this.props.agent.id}/checks/${policy.policy_id}`,
Expand Down
4 changes: 2 additions & 2 deletions public/components/common/hocs/withButtonOpenOnClick.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -26,4 +26,4 @@ export const withButtonOpenOnClick = WrappedComponent => ({render, ...rest} : {r
)}
</>
)
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/withGlobalBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <WrappedComponent {...props} />
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/with_module_tab_loader.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -39,4 +39,4 @@ export const withModuleTabLoader = WrappedComponent => props => {
</div>
</>
)
}
}
2 changes: 1 addition & 1 deletion public/components/common/modules/panel/main-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const ScaScan = compose(
<Fragment>
<EuiEmptyPrompt
iconType="visVega"
title={<h4>You dont have SCA scans in this agent.</h4>}
title={<h4>You don't have SCA scans in this agent.</h4>}
body={
<Fragment>
<p>
Expand Down
2 changes: 1 addition & 1 deletion public/components/health-check/components/check-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - Mitre Att&ck resouces.
* Wazuh app - Mitre Att&ck resources.
*
* Copyright (C) 2015-2022 Wazuh, Inc.
*
Expand Down
4 changes: 2 additions & 2 deletions public/components/security/roles/edit-role-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -141,4 +141,4 @@ export const EditRolesTable = ({ policies, role, onChange, isDisabled, loading})
/>
</>
);
};
};
2 changes: 1 addition & 1 deletion public/components/wz-search-bar/wz-search-badges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class WzSearchBadges extends Component {
color="hollow"
iconOnClick={() => this.onDeleteFilter(filter)}>
<EuiButtonEmpty color='text' size="xs">
{`${filter.field}: ${filter.value} puto`}
{`${filter.field}: ${filter.value}`}
</EuiButtonEmpty>
</EuiBadge>
</EuiFlexItem>
Expand Down
4 changes: 2 additions & 2 deletions public/components/wz-search-bar/wz-search-bar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
};

Expand Down Expand Up @@ -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();
});
Expand Down