foreman_templates 9.3.0 → 9.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_templates/locale/cs_CZ/foreman_templates.js +211 -0
  3. data/app/assets/javascripts/foreman_templates/locale/de/foreman_templates.js +211 -0
  4. data/app/assets/javascripts/foreman_templates/locale/en_GB/foreman_templates.js +211 -0
  5. data/app/assets/javascripts/foreman_templates/locale/es/foreman_templates.js +211 -0
  6. data/app/assets/javascripts/foreman_templates/locale/fr/foreman_templates.js +211 -0
  7. data/app/assets/javascripts/foreman_templates/locale/gl/foreman_templates.js +211 -0
  8. data/app/assets/javascripts/foreman_templates/locale/it/foreman_templates.js +211 -0
  9. data/app/assets/javascripts/foreman_templates/locale/ja/foreman_templates.js +211 -0
  10. data/app/assets/javascripts/foreman_templates/locale/ka/foreman_templates.js +211 -0
  11. data/app/assets/javascripts/foreman_templates/locale/ko/foreman_templates.js +211 -0
  12. data/app/assets/javascripts/foreman_templates/locale/pt_BR/foreman_templates.js +211 -0
  13. data/app/assets/javascripts/foreman_templates/locale/ru/foreman_templates.js +211 -0
  14. data/app/assets/javascripts/foreman_templates/locale/sv_SE/foreman_templates.js +211 -0
  15. data/app/assets/javascripts/foreman_templates/locale/zh_CN/foreman_templates.js +211 -0
  16. data/app/assets/javascripts/foreman_templates/locale/zh_TW/foreman_templates.js +211 -0
  17. data/app/services/foreman_templates/template_exporter.rb +9 -2
  18. data/db/migrate/20211122154929_templates_settings_category_to_dsl.rb +1 -1
  19. data/lib/foreman_templates/engine.rb +2 -1
  20. data/lib/foreman_templates/version.rb +1 -1
  21. data/locale/cs_CZ/LC_MESSAGES/foreman_templates.mo +0 -0
  22. data/locale/cs_CZ/foreman_templates.po +211 -0
  23. data/locale/de/LC_MESSAGES/foreman_templates.mo +0 -0
  24. data/locale/de/foreman_templates.po +215 -0
  25. data/locale/en_GB/LC_MESSAGES/foreman_templates.mo +0 -0
  26. data/locale/en_GB/foreman_templates.po +211 -0
  27. data/locale/es/LC_MESSAGES/foreman_templates.mo +0 -0
  28. data/locale/es/foreman_templates.po +211 -0
  29. data/locale/fr/LC_MESSAGES/foreman_templates.mo +0 -0
  30. data/locale/fr/foreman_templates.po +214 -0
  31. data/locale/gl/LC_MESSAGES/foreman_templates.mo +0 -0
  32. data/locale/gl/foreman_templates.po +209 -0
  33. data/locale/it/LC_MESSAGES/foreman_templates.mo +0 -0
  34. data/locale/it/foreman_templates.po +212 -0
  35. data/locale/ja/LC_MESSAGES/foreman_templates.mo +0 -0
  36. data/locale/ja/foreman_templates.po +212 -0
  37. data/locale/ka/LC_MESSAGES/foreman_templates.mo +0 -0
  38. data/locale/ka/foreman_templates.po +209 -0
  39. data/locale/ko/LC_MESSAGES/foreman_templates.mo +0 -0
  40. data/locale/ko/foreman_templates.po +210 -0
  41. data/locale/pt_BR/LC_MESSAGES/foreman_templates.mo +0 -0
  42. data/locale/pt_BR/foreman_templates.po +213 -0
  43. data/locale/ru/LC_MESSAGES/foreman_templates.mo +0 -0
  44. data/locale/ru/foreman_templates.po +214 -0
  45. data/locale/sv_SE/LC_MESSAGES/foreman_templates.mo +0 -0
  46. data/locale/sv_SE/foreman_templates.po +210 -0
  47. data/locale/zh_CN/LC_MESSAGES/foreman_templates.mo +0 -0
  48. data/locale/zh_CN/foreman_templates.po +212 -0
  49. data/locale/zh_TW/LC_MESSAGES/foreman_templates.mo +0 -0
  50. data/locale/zh_TW/foreman_templates.po +211 -0
  51. data/package.json +5 -5
  52. data/webpack/components/NewTemplateSync/components/NewTemplateSyncForm/NewTemplateSyncForm.js +4 -3
  53. data/webpack/components/NewTemplateSync/components/SyncSettingField.js +3 -2
  54. data/webpack/components/TemplateSyncResult/components/SyncedTemplate/StringInfoItem.js +2 -16
  55. data/webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.js +0 -1
  56. data/webpack/components/TemplateSyncResult/components/__tests__/__snapshots__/SyncedTemplate.test.js.snap +0 -8
  57. metadata +62 -3
@@ -1,24 +1,12 @@
1
1
  import React from 'react';
2
2
  import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';
3
3
  import PropTypes from 'prop-types';
4
- import { translate as __ } from 'foremanReact/common/I18n';
5
4
 
6
5
  import InfoItem from './InfoItem';
7
6
  import { itemIteratorId } from './helpers';
8
7
 
9
- const StringInfoItem = ({
10
- template,
11
- attr,
12
- tooltipText,
13
- translate,
14
- mapAttr,
15
- elipsed,
16
- }) => {
17
- const inner = (
18
- <span>
19
- {translate ? __(mapAttr(template, attr)) : mapAttr(template, attr)}
20
- </span>
21
- );
8
+ const StringInfoItem = ({ template, attr, tooltipText, mapAttr, elipsed }) => {
9
+ const inner = <span>{mapAttr(template, attr)}</span>;
22
10
  const innerContent = elipsed ? (
23
11
  <EllipsisWithTooltip placement="top">{inner}</EllipsisWithTooltip>
24
12
  ) : (
@@ -36,13 +24,11 @@ StringInfoItem.propTypes = {
36
24
  template: PropTypes.object.isRequired,
37
25
  attr: PropTypes.string.isRequired,
38
26
  tooltipText: PropTypes.string,
39
- translate: PropTypes.bool,
40
27
  mapAttr: PropTypes.func,
41
28
  elipsed: PropTypes.bool,
42
29
  };
43
30
 
44
31
  StringInfoItem.defaultProps = {
45
- translate: false,
46
32
  mapAttr: (template, attr) => template[attr],
47
33
  elipsed: false,
48
34
  tooltipText: undefined,
@@ -55,7 +55,6 @@ export const additionalInfo = (template, editPath) => {
55
55
  <StringInfoItem
56
56
  template={template}
57
57
  attr={attr}
58
- translate
59
58
  mapAttr={(templateObj, attribute) =>
60
59
  classNameMap[templateObj[attribute]]
61
60
  ? classNameMap[templateObj[attribute]]
@@ -79,7 +79,6 @@ exports[`SyncedTemplate should render skipped template 1`] = `
79
79
  "templateFile": "coreos_default.erb",
80
80
  }
81
81
  }
82
- translate={true}
83
82
  />,
84
83
  <EmptyInfoItem
85
84
  attr="kind"
@@ -118,7 +117,6 @@ exports[`SyncedTemplate should render skipped template 1`] = `
118
117
  "templateFile": "coreos_default.erb",
119
118
  }
120
119
  }
121
- translate={false}
122
120
  />,
123
121
  ]
124
122
  }
@@ -236,7 +234,6 @@ exports[`SyncedTemplate should render template with invalid metadata 1`] = `
236
234
  "templateFile": "random_template.erb",
237
235
  }
238
236
  }
239
- translate={false}
240
237
  />,
241
238
  ]
242
239
  }
@@ -361,7 +358,6 @@ exports[`SyncedTemplate should render template with validation errors 1`] = `
361
358
  "templateFile": "epel.erb",
362
359
  }
363
360
  }
364
- translate={true}
365
361
  />,
366
362
  <StringInfoItem
367
363
  attr="kind"
@@ -384,7 +380,6 @@ exports[`SyncedTemplate should render template with validation errors 1`] = `
384
380
  "templateFile": "epel.erb",
385
381
  }
386
382
  }
387
- translate={false}
388
383
  />,
389
384
  <StringInfoItem
390
385
  attr="templateFile"
@@ -407,7 +402,6 @@ exports[`SyncedTemplate should render template with validation errors 1`] = `
407
402
  "templateFile": "epel.erb",
408
403
  }
409
404
  }
410
- translate={false}
411
405
  />,
412
406
  ]
413
407
  }
@@ -508,7 +502,6 @@ exports[`SyncedTemplate should render template without errros 1`] = `
508
502
  "templateFile": "coreos_default.erb",
509
503
  }
510
504
  }
511
- translate={true}
512
505
  />,
513
506
  <EmptyInfoItem
514
507
  attr="kind"
@@ -541,7 +534,6 @@ exports[`SyncedTemplate should render template without errros 1`] = `
541
534
  "templateFile": "coreos_default.erb",
542
535
  }
543
536
  }
544
- translate={false}
545
537
  />,
546
538
  ]
547
539
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.0
4
+ version: 9.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Sutcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rdoc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Engine to synchronise provisioning templates from GitHub
56
70
  email: gsutclif@redhat.com
57
71
  executables: []
@@ -63,6 +77,21 @@ files:
63
77
  - LICENSE
64
78
  - README.md
65
79
  - Rakefile
80
+ - app/assets/javascripts/foreman_templates/locale/cs_CZ/foreman_templates.js
81
+ - app/assets/javascripts/foreman_templates/locale/de/foreman_templates.js
82
+ - app/assets/javascripts/foreman_templates/locale/en_GB/foreman_templates.js
83
+ - app/assets/javascripts/foreman_templates/locale/es/foreman_templates.js
84
+ - app/assets/javascripts/foreman_templates/locale/fr/foreman_templates.js
85
+ - app/assets/javascripts/foreman_templates/locale/gl/foreman_templates.js
86
+ - app/assets/javascripts/foreman_templates/locale/it/foreman_templates.js
87
+ - app/assets/javascripts/foreman_templates/locale/ja/foreman_templates.js
88
+ - app/assets/javascripts/foreman_templates/locale/ka/foreman_templates.js
89
+ - app/assets/javascripts/foreman_templates/locale/ko/foreman_templates.js
90
+ - app/assets/javascripts/foreman_templates/locale/pt_BR/foreman_templates.js
91
+ - app/assets/javascripts/foreman_templates/locale/ru/foreman_templates.js
92
+ - app/assets/javascripts/foreman_templates/locale/sv_SE/foreman_templates.js
93
+ - app/assets/javascripts/foreman_templates/locale/zh_CN/foreman_templates.js
94
+ - app/assets/javascripts/foreman_templates/locale/zh_TW/foreman_templates.js
66
95
  - app/controllers/api/v2/template_controller.rb
67
96
  - app/controllers/concerns/foreman/controller/parameters/template_params.rb
68
97
  - app/controllers/template_syncs_controller.rb
@@ -93,6 +122,36 @@ files:
93
122
  - lib/foreman_templates/engine.rb
94
123
  - lib/foreman_templates/version.rb
95
124
  - lib/tasks/foreman_templates_tasks.rake
125
+ - locale/cs_CZ/LC_MESSAGES/foreman_templates.mo
126
+ - locale/cs_CZ/foreman_templates.po
127
+ - locale/de/LC_MESSAGES/foreman_templates.mo
128
+ - locale/de/foreman_templates.po
129
+ - locale/en_GB/LC_MESSAGES/foreman_templates.mo
130
+ - locale/en_GB/foreman_templates.po
131
+ - locale/es/LC_MESSAGES/foreman_templates.mo
132
+ - locale/es/foreman_templates.po
133
+ - locale/fr/LC_MESSAGES/foreman_templates.mo
134
+ - locale/fr/foreman_templates.po
135
+ - locale/gl/LC_MESSAGES/foreman_templates.mo
136
+ - locale/gl/foreman_templates.po
137
+ - locale/it/LC_MESSAGES/foreman_templates.mo
138
+ - locale/it/foreman_templates.po
139
+ - locale/ja/LC_MESSAGES/foreman_templates.mo
140
+ - locale/ja/foreman_templates.po
141
+ - locale/ka/LC_MESSAGES/foreman_templates.mo
142
+ - locale/ka/foreman_templates.po
143
+ - locale/ko/LC_MESSAGES/foreman_templates.mo
144
+ - locale/ko/foreman_templates.po
145
+ - locale/pt_BR/LC_MESSAGES/foreman_templates.mo
146
+ - locale/pt_BR/foreman_templates.po
147
+ - locale/ru/LC_MESSAGES/foreman_templates.mo
148
+ - locale/ru/foreman_templates.po
149
+ - locale/sv_SE/LC_MESSAGES/foreman_templates.mo
150
+ - locale/sv_SE/foreman_templates.po
151
+ - locale/zh_CN/LC_MESSAGES/foreman_templates.mo
152
+ - locale/zh_CN/foreman_templates.po
153
+ - locale/zh_TW/LC_MESSAGES/foreman_templates.mo
154
+ - locale/zh_TW/foreman_templates.po
96
155
  - package.json
97
156
  - webpack/ForemanTemplates.js
98
157
  - webpack/Routes.js
@@ -201,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
260
  - !ruby/object:Gem::Version
202
261
  version: '0'
203
262
  requirements: []
204
- rubygems_version: 3.1.2
263
+ rubygems_version: 3.1.6
205
264
  signing_key:
206
265
  specification_version: 4
207
266
  summary: Template-syncing engine for Foreman