-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Moved out type for OperatingSystem and moved OS translations one level higher. * Changed the translation to be consistent between trusted apps and policy. * Unified translations of OS types between trusted apps and policy. * Removed unused types. * Added registered AV form section. * Changed the property structure to match the format expected by endpoint. * Fixed the visual alignment of titles in the form and added responsiveness. * Updated snapshots. * Moved out type for OperatingSystem and moved OS translations one level higher. * Added config form heading component. * Cleaned up translations. * Fixed type error with initialization. * Fixed error in trusted app creation form test. * Removed the guard for now in favour of better initialization. * Fixed the store test. * Fixing functional test data. * Added functional test config option to account for a custom header within security app. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
03f9837
commit 80e0153
Showing
29 changed files
with
447 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
x-pack/plugins/security_solution/common/endpoint/types/os.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export type Linux = 'linux'; | ||
export type MacOS = 'macos'; | ||
export type Windows = 'windows'; | ||
export type OperatingSystem = Linux | MacOS | Windows; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...ity_solution/public/management/pages/policy/view/components/config_form/index.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import React from 'react'; | ||
import { ThemeProvider } from 'styled-components'; | ||
import { storiesOf, addDecorator } from '@storybook/react'; | ||
import euiLightVars from '@elastic/eui/dist/eui_theme_light.json'; | ||
import { EuiCheckbox, EuiSpacer, EuiSwitch, EuiText } from '@elastic/eui'; | ||
|
||
import { ConfigForm } from '.'; | ||
|
||
addDecorator((storyFn) => ( | ||
<ThemeProvider theme={() => ({ eui: euiLightVars, darkMode: false })}>{storyFn()}</ThemeProvider> | ||
)); | ||
|
||
storiesOf('PolicyDetails/ConfigForm', module) | ||
.add('One OS', () => { | ||
return ( | ||
<ConfigForm type="Type 1" supportedOss={['windows']}> | ||
{'Some content'} | ||
</ConfigForm> | ||
); | ||
}) | ||
.add('Multiple OSs', () => { | ||
return ( | ||
<ConfigForm type="Type 1" supportedOss={['windows', 'macos', 'linux']}> | ||
{'Some content'} | ||
</ConfigForm> | ||
); | ||
}) | ||
.add('Complex content', () => { | ||
return ( | ||
<ConfigForm type="Type 1" supportedOss={['macos', 'linux']}> | ||
<EuiText> | ||
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ' + | ||
'et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut ' + | ||
'aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum ' + | ||
'dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia ' + | ||
'deserunt mollit anim id est laborum.'} | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiSwitch label={'Switch'} checked={true} onChange={() => {}} /> | ||
<EuiSpacer size="s" /> | ||
<EuiCheckbox id="1" label={'Checkbox 1'} checked={false} onChange={() => {}} /> | ||
<EuiCheckbox id="2" label={'Checkbox 2'} checked={true} onChange={() => {}} /> | ||
<EuiCheckbox id="3" label={'Checkbox 3'} checked={true} onChange={() => {}} /> | ||
</ConfigForm> | ||
); | ||
}) | ||
.add('Right corner content', () => { | ||
const toggle = <EuiSwitch label={'Switch'} checked={true} onChange={() => {}} />; | ||
|
||
return ( | ||
<ConfigForm type="Type 1" supportedOss={['linux']} rightCorner={toggle}> | ||
{'Some content'} | ||
</ConfigForm> | ||
); | ||
}); |
Oops, something went wrong.