foreman_ansible 17.0.5 → 17.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66dbec536b24a0abdcb29269f4fb4de15185b1c576f87b559b677ed02eacc6e2
4
- data.tar.gz: ab6cfa041608d7aa6061dbc6366d35cf74e07bfd2d0a77b3554770731124d71d
3
+ metadata.gz: dd645b6ec753e8ce92665fe3066bf1dd0e75958b469ee59bef46a1cd5849fb13
4
+ data.tar.gz: 9214229a5415d6053ee2cd6c67b89c86313bfec3003ae0c90cd9bd9063625d2e
5
5
  SHA512:
6
- metadata.gz: 978fe4ddd36f4d6a9ada063ac71ce4cba86a3b284cf5a0dc92be274829837d2eb4103abf91198e2e92985c5746d6406bc4f3cb7fc2715aeb696e4898488a9aba
7
- data.tar.gz: 404c62c5ef58d65da73d1ea197aaa38439446b84013ec704ae7ab9132f468434b40c563c421982cf4c1cecb4f05a16e2fe3b10e03a19ec6387f8a53afd735010
6
+ metadata.gz: bf7b0ba966b2d6b5112d974562b8a9e738ed969aa7dc615dc89c96f8a4b7772d3618b5b6fa4e6567570bac5f066fce34d27f684cd2d5730326289015f8887c54
7
+ data.tar.gz: 0f34a19864d03600031014666d6edc8f5f151abdbb1e4046eccc32935eeac7a1daa6f81b54837793f832daf96adb747228364237259b09c5ddfe3be02d8f4208
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '17.0.5'
7
+ VERSION = '17.0.7'
8
8
  end
@@ -22,7 +22,6 @@ const AnsiblePermissionDenied = props => {
22
22
 
23
23
  return (
24
24
  <EmptyState
25
- iconType="fa"
26
25
  icon="lock"
27
26
  header={__('Permission Denied')}
28
27
  description={description}
@@ -7,19 +7,19 @@ const noop = () => {};
7
7
  const fixtures = {
8
8
  'should render a role to add': {
9
9
  role: { name: 'test.role', id: 5 },
10
- icon: 'fa fa-plus-circle',
10
+ icon: 'plus-circle',
11
11
  onClick: noop,
12
12
  index: 0,
13
13
  },
14
14
  'should render a role to remove': {
15
15
  role: { name: 'test.role', id: 5 },
16
- icon: 'fa fa-minus-circle',
16
+ icon: 'minus-circle',
17
17
  onClick: noop,
18
18
  index: 0,
19
19
  },
20
20
  'should render inherited role to remove': {
21
21
  role: { name: 'test.role', id: 5, inherited: true },
22
- icon: 'fa fa-minus-circle',
22
+ icon: 'minus-circle',
23
23
  onClick: noop,
24
24
  index: 0,
25
25
  },
@@ -1,13 +1,25 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
- import { Icon } from 'patternfly-react';
4
+ import { Icon } from '@patternfly/react-core';
5
+ import { PlusCircleIcon, MinusCircleIcon } from '@patternfly/react-icons';
5
6
 
6
- const AnsibleRoleActionButton = ({ icon }) => (
7
- <button href="#" className="role-add-remove-btn">
8
- <Icon className="fa-2x" type="fa" name={icon} />
9
- </button>
10
- );
7
+ const iconMap = {
8
+ 'plus-circle': PlusCircleIcon,
9
+ 'minus-circle': MinusCircleIcon,
10
+ };
11
+
12
+ const AnsibleRoleActionButton = ({ icon }) => {
13
+ const IconComponent = iconMap[icon] || PlusCircleIcon;
14
+
15
+ return (
16
+ <button href="#" className="role-add-remove-btn">
17
+ <Icon size="2xl">
18
+ <IconComponent />
19
+ </Icon>
20
+ </button>
21
+ );
22
+ };
11
23
 
12
24
  AnsibleRoleActionButton.propTypes = {
13
25
  icon: PropTypes.string.isRequired,
@@ -42,7 +42,7 @@ const AssignedRolesList = ({
42
42
  key={role.id}
43
43
  role={role}
44
44
  index={idx}
45
- icon="fa fa-minus-circle"
45
+ icon="minus-circle"
46
46
  onClick={onRemoveRole}
47
47
  resourceName={resourceName}
48
48
  />
@@ -54,7 +54,7 @@ const AssignedRolesList = ({
54
54
  role={role}
55
55
  index={idx}
56
56
  moveValue={moveValue}
57
- icon="fa fa-minus-circle"
57
+ icon="minus-circle"
58
58
  onClick={onRemoveRole}
59
59
  resourceName={resourceName}
60
60
  />
@@ -29,7 +29,7 @@ const AvailableRolesList = ({
29
29
  <AnsibleRole
30
30
  key={role.id}
31
31
  role={role}
32
- icon="fa fa-plus-circle"
32
+ icon="plus-circle"
33
33
  onClick={onAddRole}
34
34
  index={index}
35
35
  />
@@ -22,7 +22,7 @@ exports[`AnsiblePermissionDenied should render 1`] = `
22
22
  }
23
23
  header="Permission Denied"
24
24
  icon="lock"
25
- iconType="fa"
26
25
  secondaryActions={Array []}
26
+ variant="xl"
27
27
  />
28
28
  `;
@@ -4,7 +4,7 @@ exports[`AnsibleRole should render a role to add 1`] = `
4
4
  <ListViewItem
5
5
  actions={
6
6
  <AnsibleRoleActionButton
7
- icon="fa fa-plus-circle"
7
+ icon="plus-circle"
8
8
  role={
9
9
  Object {
10
10
  "id": 5,
@@ -36,7 +36,7 @@ exports[`AnsibleRole should render a role to remove 1`] = `
36
36
  <ListViewItem
37
37
  actions={
38
38
  <AnsibleRoleActionButton
39
- icon="fa fa-minus-circle"
39
+ icon="minus-circle"
40
40
  role={
41
41
  Object {
42
42
  "id": 5,
@@ -8,7 +8,7 @@ exports[`AssignedRolesList should render 1`] = `
8
8
  className=""
9
9
  >
10
10
  <DropTarget(DragSource(Orderable(AnsibleRole)))
11
- icon="fa fa-minus-circle"
11
+ icon="minus-circle"
12
12
  index={0}
13
13
  key="1"
14
14
  moveValue={[Function]}
@@ -22,7 +22,7 @@ exports[`AssignedRolesList should render 1`] = `
22
22
  }
23
23
  />
24
24
  <DropTarget(DragSource(Orderable(AnsibleRole)))
25
- icon="fa fa-minus-circle"
25
+ icon="minus-circle"
26
26
  index={1}
27
27
  key="2"
28
28
  moveValue={[Function]}
@@ -28,7 +28,7 @@ exports[`AvailableRolesList should render 1`] = `
28
28
  timeout={300}
29
29
  >
30
30
  <AnsibleRole
31
- icon="fa fa-plus-circle"
31
+ icon="plus-circle"
32
32
  index={0}
33
33
  key="1"
34
34
  onClick={[Function]}
@@ -41,7 +41,7 @@ exports[`AvailableRolesList should render 1`] = `
41
41
  }
42
42
  />
43
43
  <AnsibleRole
44
- icon="fa fa-plus-circle"
44
+ icon="plus-circle"
45
45
  index={1}
46
46
  key="2"
47
47
  onClick={[Function]}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.0.5
4
+ version: 17.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
@@ -77,20 +77,6 @@ dependencies:
77
77
  - - "<"
78
78
  - !ruby/object:Gem::Version
79
79
  version: '13'
80
- - !ruby/object:Gem::Dependency
81
- name: theforeman-rubocop
82
- requirement: !ruby/object:Gem::Requirement
83
- requirements:
84
- - - "~>"
85
- - !ruby/object:Gem::Version
86
- version: 0.1.0
87
- type: :development
88
- prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - "~>"
92
- - !ruby/object:Gem::Version
93
- version: 0.1.0
94
80
  description: Ansible integration with Foreman
95
81
  email:
96
82
  - elobatocs@gmail.com
@@ -504,7 +490,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
504
490
  - !ruby/object:Gem::Version
505
491
  version: '0'
506
492
  requirements: []
507
- rubygems_version: 4.0.3
493
+ rubygems_version: 4.0.10
508
494
  specification_version: 4
509
495
  summary: Ansible integration with Foreman (theforeman.org)
510
496
  test_files: