foreman_patch 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27d079801bd3872a195833f96d46a8981a987ebf89bedef56b44e88bb15c12cb
4
- data.tar.gz: 85325d642dc887c8c768d94f44d0b4746ff6d5edb6e1eb4691ca6530f986a964
3
+ metadata.gz: a473d59ebcdd7af43140d851cf70939590e8c2aed90edad74a25d240731b89ad
4
+ data.tar.gz: e66e7708d5ed6a818dec500dd47901b73d51bced14eddf14d52a9159b013d6a7
5
5
  SHA512:
6
- metadata.gz: c42a3ef7b9332cf57121655ddcadceb850fa18c76ea03b8bc6dc6b351e3a3c96988fce9bdf906048f65c0b7f5f8956f6807f9a4b67e04afdc1b533a1cd692685
7
- data.tar.gz: 85de82b6fb076e463d3d793525f192a423a619f315a08d7d9af4d1550dbfb6f3ecfcd2b947b2b3de80fbdc4814b9774fdaaec17c34ff82dcbfb885a2d7d60b7e
6
+ metadata.gz: 31dff9df811a5a787b494311e8e59987a3b269cb91f18796a4b1877e87b46f90feb7fb0a11149a552dd2630f7e0881d429aae560ef01a02019cd473552a240f9
7
+ data.tar.gz: 7152b81be31a962835ee8ac8da132355f5ee845d7ef7b8178d812dc6e338692f13e356988448ece1285d15d744bb7ac3f46693550f684f4788e640f8c80339f1
@@ -1,3 +1,3 @@
1
1
  module ForemanPatch
2
- VERSION = '1.1.3'.freeze
2
+ VERSION = '1.1.4'.freeze
3
3
  end
data/lib/foreman_patch.rb CHANGED
@@ -1,4 +1,5 @@
1
- require 'foreman_patch/engine'
2
-
3
1
  module ForemanPatch
4
2
  end
3
+
4
+ require 'foreman_patch/engine'
5
+
data/webpack/index.js CHANGED
@@ -2,6 +2,9 @@
2
2
  /* eslint-disable import/no-extraneous-dependencies */
3
3
  /* eslint-disable import/extensions */
4
4
  import componentRegistry from 'foremanReact/components/componentRegistry';
5
+ import { registerReducer } from 'foremanReact/common/MountingService';
6
+ import reducers from './src/reducers';
7
+ import ForemanPatch from './src/ForemanPatch';
5
8
 
6
9
  import Rounds from './components/Rounds';
7
10
  import Plan from './components/Plan';
@@ -17,4 +20,9 @@ const components = [
17
20
  { name: 'RoundProgress', type: RoundProgress },
18
21
  ];
19
22
 
23
+ Object.entries(reducers).forEach(([key, reducer]) =>
24
+ registerReducer(key, reducer)
25
+ );
26
+
20
27
  components.forEach(component => componentRegistry.register(component));
28
+ componentRegistry.register({ name: 'ForemanPatch', type: ForemanPatch });
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { BrowserRouter } from 'react-router-dom';
3
+ import ForemanPatchRoute from './Router';
4
+
5
+ const ForemanPatch = () => (
6
+ <BrowserRouter>
7
+ <ForemanPatchRoute />
8
+ </BrowserRouter>
9
+ );
10
+
11
+ export default ForemanPatch;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Switch, Route } from 'react-router-dom';
3
+
4
+ import routes from './routes';
5
+
6
+ const Router = () => (
7
+ <Switch>
8
+ {Object.entries(routes).map(([key, props]) => (
9
+ <Route key={key} {...props} />
10
+ ))}
11
+ </Switch>
12
+ );
13
+
14
+ export default Router;
@@ -0,0 +1,3 @@
1
+ const routes = {};
2
+
3
+ export default routes;
@@ -0,0 +1 @@
1
+ export { default } from './ForemanPuppet';
@@ -0,0 +1,7 @@
1
+ import { combineReducers } from 'redux';
2
+
3
+ const reducers = {
4
+ foremanPatch: combineReducers({}),
5
+ };
6
+
7
+ export default reducers;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Galens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2023-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -287,13 +287,6 @@ files:
287
287
  - locale/foreman_patch.pot
288
288
  - locale/gemspec.rb
289
289
  - package.json
290
- - public/assets/foreman_patch/cycle_plans-e5667e178ba389908f5c815b24ec0ea77c340849d56bc39c5ce72bb626bd446a.scss
291
- - public/assets/foreman_patch/cycle_plans-e5667e178ba389908f5c815b24ec0ea77c340849d56bc39c5ce72bb626bd446a.scss.gz
292
- - public/assets/foreman_patch/foreman_patch-ce5805a60c0d5f896f557ff5246e5a09172043004c850b39bea54e618df1c485.css
293
- - public/assets/foreman_patch/foreman_patch-ce5805a60c0d5f896f557ff5246e5a09172043004c850b39bea54e618df1c485.css.gz
294
- - public/assets/foreman_patch/foreman_patch.json
295
- - public/assets/foreman_patch/plan_edit_windows-e656ba411642a7f983b51958ab30ac49c056322d19295a603cff4d5e6c71c8ed.js
296
- - public/assets/foreman_patch/plan_edit_windows-e656ba411642a7f983b51958ab30ac49c056322d19295a603cff4d5e6c71c8ed.js.gz
297
290
  - test/factories/foreman_patch_factories.rb
298
291
  - test/test_plugin_helper.rb
299
292
  - test/unit/foreman_patch_test.rb
@@ -360,6 +353,11 @@ files:
360
353
  - webpack/components/common/Terminal/Terminal.js
361
354
  - webpack/components/common/Terminal/Terminal.scss
362
355
  - webpack/index.js
356
+ - webpack/src/ForemanPatch.js
357
+ - webpack/src/Router/index.js
358
+ - webpack/src/Router/routes.js
359
+ - webpack/src/index.js
360
+ - webpack/src/reducers.js
363
361
  homepage: https://github.com/ludovicus3/foreman_patch
364
362
  licenses:
365
363
  - GPL-3.0
@@ -1,6 +0,0 @@
1
- div.event {
2
- margin: 2px 10px;
3
- border: 1px solid black;
4
- border-color: #d1d1d1;
5
- padding: 2px 3px;
6
- }
@@ -1 +0,0 @@
1
- div.event{margin:2px 10px;border:1px solid black;border-color:#d1d1d1;padding:2px 3px}
@@ -1 +0,0 @@
1
- {"files":{"foreman_patch/plan_edit_windows-e656ba411642a7f983b51958ab30ac49c056322d19295a603cff4d5e6c71c8ed.js":{"logical_path":"foreman_patch/plan_edit_windows.js","mtime":"2022-11-10T10:09:15-05:00","size":144,"digest":"be5de0eef57205a38f90eda24c8f8aed707f5d30e8a5abbc3ce9f198ea55a620","integrity":"sha256-vl3g7vVyBaOPkO2iTI+K7XB/XTDopau8POnxmOpVpiA="},"foreman_patch/foreman_patch-ce5805a60c0d5f896f557ff5246e5a09172043004c850b39bea54e618df1c485.css":{"logical_path":"foreman_patch/foreman_patch.css","mtime":"2022-11-10T10:09:15-05:00","size":87,"digest":"d6fdcb3359ce0ca3edd9a493467bc366b5f2b52a0d3e2fd2b5d1dec121ef31ff","integrity":"sha256-1v3LM1nODKPt2aSTRnvDZrXytSoNPi/StdHewSHvMf8="},"foreman_patch/cycle_plans-e5667e178ba389908f5c815b24ec0ea77c340849d56bc39c5ce72bb626bd446a.scss":{"logical_path":"foreman_patch/cycle_plans.scss","mtime":"2022-11-10T10:09:15-05:00","size":106,"digest":"aa7bb2d36a98d83776b4dd9dd93431ba648b84a37478f93c445eb9bda0f84006","integrity":"sha256-qnuy02qY2Dd2tN2d2TQxumSLhKN0ePk8RF65vaD4QAY="}},"assets":{"foreman_patch/plan_edit_windows.js":"foreman_patch/plan_edit_windows-e656ba411642a7f983b51958ab30ac49c056322d19295a603cff4d5e6c71c8ed.js","foreman_patch/foreman_patch.css":"foreman_patch/foreman_patch-ce5805a60c0d5f896f557ff5246e5a09172043004c850b39bea54e618df1c485.css","foreman_patch/cycle_plans.scss":"foreman_patch/cycle_plans-e5667e178ba389908f5c815b24ec0ea77c340849d56bc39c5ce72bb626bd446a.scss"}}
@@ -1 +0,0 @@
1
- function remove_window_plan(n){$("#windowPlan"+n).remove()}function edit_window_plan(n){form=null==n?null:$("#windowPlans #windowPlanHidden"+n)}