foreman_leapp 0.1.13 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_leapp/locale/de/foreman_leapp.js +1 -0
  3. data/app/assets/javascripts/foreman_leapp/locale/en/foreman_leapp.js +1 -0
  4. data/app/assets/javascripts/foreman_leapp/locale/ka/foreman_leapp.js +1 -0
  5. data/app/controllers/api/v2/concerns/api_authorizer.rb +1 -1
  6. data/lib/foreman_leapp/engine.rb +2 -7
  7. data/lib/foreman_leapp/version.rb +1 -1
  8. data/locale/Makefile +6 -3
  9. data/locale/action_names.rb +3 -3
  10. data/locale/de/LC_MESSAGES/foreman_leapp.mo +0 -0
  11. data/locale/de/foreman_leapp.edit.po +216 -0
  12. data/locale/de/foreman_leapp.po +38 -9
  13. data/locale/de/foreman_leapp.po.time_stamp +0 -0
  14. data/locale/en/LC_MESSAGES/foreman_leapp.mo +0 -0
  15. data/locale/en/foreman_leapp.edit.po +50 -14
  16. data/locale/en/foreman_leapp.po +37 -8
  17. data/locale/foreman_leapp.pot +54 -15
  18. data/locale/ka/LC_MESSAGES/foreman_leapp.mo +0 -0
  19. data/locale/ka/foreman_leapp.edit.po +212 -0
  20. data/locale/ka/foreman_leapp.po +40 -13
  21. data/locale/ka/foreman_leapp.po.time_stamp +0 -0
  22. data/package.json +1 -1
  23. data/webpack/__mocks__/foremanReact/common/I18n.js +1 -0
  24. data/webpack/components/PreupgradeReports/PreupgradeReports.js +5 -1
  25. data/webpack/components/PreupgradeReports/PreupgradeReportsActions.js +2 -1
  26. data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReports.test.js.snap +1 -1
  27. data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/helpers.test.js.snap +2 -1
  28. data/webpack/components/PreupgradeReportsList/components/helpers.js +14 -12
  29. metadata +9 -2
@@ -9,7 +9,8 @@ exports[`PreupgradeReportList/helpers should detect if has remediations 1`] = `
9
9
  name="warning-triangle-o"
10
10
  type="pf"
11
11
  />
12
- Has Remediation
12
+
13
+ Has Remediation
13
14
  </ListViewInfoItem>
14
15
  `;
15
16
 
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Grid, ListView, Badge, Icon } from 'patternfly-react';
3
+ import { translate as __ } from 'foremanReact/common/I18n';
4
+
3
5
  import EmptyInfoItem from './EmptyInfoItem';
4
6
  import SeverityHigh from './images/i_severity-high.svg';
5
7
  import SeverityMedium from './images/i_severity-med.svg';
@@ -24,7 +26,7 @@ export const getSeverityImg = entry => {
24
26
  <img
25
27
  key={key}
26
28
  src={SeverityLow}
27
- alt="Low Risk Factor"
29
+ alt={__('Low Risk Factor')}
28
30
  className="severity-img"
29
31
  />
30
32
  );
@@ -33,7 +35,7 @@ export const getSeverityImg = entry => {
33
35
  <img
34
36
  key={key}
35
37
  src={SeverityMedium}
36
- alt="Medium Risk Factor"
38
+ alt={__('Medium Risk Factor')}
37
39
  className="severity-img"
38
40
  />
39
41
  );
@@ -42,7 +44,7 @@ export const getSeverityImg = entry => {
42
44
  <img
43
45
  key={key}
44
46
  src={SeverityHigh}
45
- alt="High Risk Factor"
47
+ alt={__('High Risk Factor')}
46
48
  className="severity-img"
47
49
  />
48
50
  );
@@ -51,7 +53,7 @@ export const getSeverityImg = entry => {
51
53
  <img
52
54
  key={key}
53
55
  src={SeverityLow}
54
- alt="Low Risk Factor"
56
+ alt={__('Low Risk Factor')}
55
57
  className="severity-img"
56
58
  />
57
59
  );
@@ -63,7 +65,7 @@ export const hasRemediations = entry => {
63
65
  if (entry.detail && entry.detail.remediations) {
64
66
  return (
65
67
  <ListView.InfoItem key={key}>
66
- <Icon type="pf" name="warning-triangle-o" /> Has Remediation
68
+ <Icon type="pf" name="warning-triangle-o" /> {__('Has Remediation')}
67
69
  </ListView.InfoItem>
68
70
  );
69
71
  }
@@ -76,7 +78,7 @@ export const getTitle = entry => {
76
78
  return (
77
79
  <Grid.Row>
78
80
  <Grid.Col md={1}>
79
- <strong>Title</strong>
81
+ <strong>{__('Title')}</strong>
80
82
  </Grid.Col>
81
83
  <Grid.Col md={8}>{entry.title}</Grid.Col>
82
84
  </Grid.Row>
@@ -90,7 +92,7 @@ export const getSeverity = entry => {
90
92
  return (
91
93
  <Grid.Row className="top-padded">
92
94
  <Grid.Col md={1}>
93
- <strong>Risk Factor</strong>
95
+ <strong>{__('Risk Factor')}</strong>
94
96
  </Grid.Col>
95
97
  <Grid.Col md={8}>
96
98
  {getSeverityImg(entry)} {entry.severity}
@@ -106,7 +108,7 @@ export const getSummary = entry => {
106
108
  return (
107
109
  <Grid.Row className="top-padded">
108
110
  <Grid.Col md={1}>
109
- <strong>Summary</strong>
111
+ <strong>{__('Summary')}</strong>
110
112
  </Grid.Col>
111
113
  <Grid.Col md={8} className="pre-wrap">
112
114
  {entry.summary}
@@ -122,7 +124,7 @@ export const getTags = entry => {
122
124
  return (
123
125
  <Grid.Row className="top-padded">
124
126
  <Grid.Col md={1}>
125
- <strong>Tags</strong>
127
+ <strong>{__('Tags')}</strong>
126
128
  </Grid.Col>
127
129
  <Grid.Col md={8}>{tagInfo(entry.tags)}</Grid.Col>
128
130
  </Grid.Row>
@@ -138,7 +140,7 @@ export const getExternals = entry => {
138
140
  return (
139
141
  <Grid.Row className="top-padded" key={key}>
140
142
  <Grid.Col md={1}>
141
- <strong>Links</strong>
143
+ <strong>{__('Links')}</strong>
142
144
  </Grid.Col>
143
145
  <Grid.Col md={8}>
144
146
  <a href={attr.url}>{attr.title}</a>
@@ -158,7 +160,7 @@ export const getRemediations = entry => {
158
160
  return (
159
161
  <Grid.Row className="top-padded" key={key}>
160
162
  <Grid.Col md={1}>
161
- <strong>Hint</strong>
163
+ <strong>{__('Hint')}</strong>
162
164
  </Grid.Col>
163
165
  <Grid.Col md={8}>{attr.context}</Grid.Col>
164
166
  </Grid.Row>
@@ -168,7 +170,7 @@ export const getRemediations = entry => {
168
170
  return (
169
171
  <Grid.Row className="top-padded" key={key}>
170
172
  <Grid.Col md={1}>
171
- <strong>Command</strong>
173
+ <strong>{__('Command')}</strong>
172
174
  </Grid.Col>
173
175
  <Grid.Col md={8}>
174
176
  <code>{attr.context.join(' ')}</code>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_leapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Leapp team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-09 00:00:00.000000000 Z
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman_remote_execution
@@ -62,6 +62,9 @@ files:
62
62
  - LICENSE
63
63
  - README.md
64
64
  - Rakefile
65
+ - app/assets/javascripts/foreman_leapp/locale/de/foreman_leapp.js
66
+ - app/assets/javascripts/foreman_leapp/locale/en/foreman_leapp.js
67
+ - app/assets/javascripts/foreman_leapp/locale/ka/foreman_leapp.js
65
68
  - app/controllers/api/v2/concerns/api_authorizer.rb
66
69
  - app/controllers/api/v2/preupgrade_reports_controller.rb
67
70
  - app/controllers/preupgrade_reports_controller.rb
@@ -98,7 +101,9 @@ files:
98
101
  - locale/Makefile
99
102
  - locale/action_names.rb
100
103
  - locale/de/LC_MESSAGES/foreman_leapp.mo
104
+ - locale/de/foreman_leapp.edit.po
101
105
  - locale/de/foreman_leapp.po
106
+ - locale/de/foreman_leapp.po.time_stamp
102
107
  - locale/en/LC_MESSAGES/foreman_leapp.mo
103
108
  - locale/en/foreman_leapp.edit.po
104
109
  - locale/en/foreman_leapp.po
@@ -106,7 +111,9 @@ files:
106
111
  - locale/foreman_leapp.pot
107
112
  - locale/gemspec.rb
108
113
  - locale/ka/LC_MESSAGES/foreman_leapp.mo
114
+ - locale/ka/foreman_leapp.edit.po
109
115
  - locale/ka/foreman_leapp.po
116
+ - locale/ka/foreman_leapp.po.time_stamp
110
117
  - package.json
111
118
  - test/factories/foreman_leapp_factories.rb
112
119
  - test/functional/api/v2/preupgrade_reports_controller_test.rb