foreman_patch 1.1.3 → 1.1.5

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: f4f015d44bd2d66ad47969d4894d91c310490016878d97b3813116f5f98d1905
4
+ data.tar.gz: f806ef4db3bb2063fe5351647b1ad3afbc62a4123cec77e7e6cde19841d9afce
5
5
  SHA512:
6
- metadata.gz: c42a3ef7b9332cf57121655ddcadceb850fa18c76ea03b8bc6dc6b351e3a3c96988fce9bdf906048f65c0b7f5f8956f6807f9a4b67e04afdc1b533a1cd692685
7
- data.tar.gz: 85de82b6fb076e463d3d793525f192a423a619f315a08d7d9af4d1550dbfb6f3ecfcd2b947b2b3de80fbdc4814b9774fdaaec17c34ff82dcbfb885a2d7d60b7e
6
+ metadata.gz: 77525bb51ccca12bb7c6ca53b116d3617078a9aad0b8d1541e0e5800496e47cdc612a188adbe206290fa4bb0e66902b1b33e6dd60c686466d9579775b75970ba
7
+ data.tar.gz: 676e249138262bd3c3016b59abc49dd909332212fe9cd72c7be1d12092c8b48852acea23e6e52155de7a0d36688b88d0d7ebee71c8328ebde8d6cfba197c195c
@@ -1,3 +1,3 @@
1
1
  module ForemanPatch
2
- VERSION = '1.1.3'.freeze
2
+ VERSION = '1.1.5'.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/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "foreman_patch",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
+ "description": "TODO",
5
+ "main": "index.js",
4
6
  "license": "GPL-3.0",
5
7
  "scripts": {
6
8
  "lint": "tfm-lint --plugin -d /webpack",
@@ -9,7 +11,8 @@
9
11
  "test:current": "tfm-test --plugin --watch",
10
12
  "publish-coverage": "tfm-publish-coverage",
11
13
  "stories": "tfm-stories --plugin",
12
- "stories:build": "tfm-build-stories --plugin"
14
+ "stories:build": "tfm-build-stories --plugin",
15
+ "create-react-component": "yo react-domain"
13
16
  },
14
17
  "repository": {
15
18
  "type": "git",
@@ -20,16 +23,20 @@
20
23
  },
21
24
  "devDependencies": {
22
25
  "@babel/core": "^7.7.0",
23
- "@theforeman/builder": "^6.0.0",
24
- "@theforeman/eslint-plugin-foreman": "^6.0.0",
25
- "@theforeman/stories": "^7.0.0",
26
- "@theforeman/test": "^8.0.0",
27
- "@theforeman/vendor-dev": "^6.0.0",
26
+ "@theforeman/builder": "^8.15.0",
27
+ "@theforeman/eslint-plugin-foreman": "^8.15.0",
28
+ "@theforeman/find-foreman": "^8.15.0",
29
+ "@theforeman/stories": "^8.15.0",
30
+ "@theforeman/test": "^8.15.0",
31
+ "@theforeman/vendor-dev": "^8.15.0",
28
32
  "babel-eslint": "^10.0.3",
29
33
  "eslint": "^6.7.2",
30
- "prettier": "^1.19.1"
34
+ "jed": "^1.1.1",
35
+ "prettier": "^1.19.1",
36
+ "stylelint-config-standard": "^18.0.0",
37
+ "stylelint": "^9.3.0"
31
38
  },
32
39
  "peerDependencies": {
33
- "@theforeman/vendor": ">= 6.0.0"
40
+ "@theforeman/vendor": "^8.15.0"
34
41
  }
35
42
  }
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.5
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-05-01 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)}