Skip to content

Commit d463353

Browse files
committed
adding auto include of components like seen on matestack-ui-vuejs
1 parent d54e8b3 commit d463353

File tree

17 files changed

+17
-23
lines changed

17 files changed

+17
-23
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v3.0.0.rc1 Release - 2022-02-15
4+
5+
- please read the [migration guide](docs/migrate-from-2.x-to-3.0.md)
6+
37
## v2.1.0 Release - 2021-06-29
48

59
### Improvements

docs/migrate-from-2.x-to-3.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
- `Matestack::Ui::Bootstrap::Apps::AdminTemplate` is now `Matestack::Ui::Bootstrap::Layouts::AdminTemplate`
88

99
--> Search & Replace
10+
11+
## Manually including the registry is not longer required
12+
13+
- `include Matestack::Ui::Bootstrap::Registry` can now be removed as it the component will be automatically available when installing `matestack-ui-bootstrap`

lib/matestack/ui/bootstrap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,4 @@ module Form
106106
require "#{base_path}/form/switch"
107107

108108
require "#{base_path}/registry"
109+
require "#{base_path}/initialize"

lib/matestack/ui/bootstrap/base_component.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ module Ui
55
module Bootstrap
66
class BaseComponent < Matestack::Ui::Component
77

8-
include Matestack::Ui::Bootstrap::Registry
9-
108
end
119
end
1210
end

lib/matestack/ui/bootstrap/base_vue_js_component.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
module Matestack
44
module Ui
55
module Bootstrap
6-
class BaseVueJsComponent < Matestack::Ui::VueJsComponent
7-
8-
include Matestack::Ui::Bootstrap::Registry
6+
class BaseVueJsComponent < Matestack::Ui::VueJsComponent
97

108
end
119
end

lib/matestack/ui/bootstrap/form/checkbox.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
class Matestack::Ui::Bootstrap::Form::Checkbox < Matestack::Ui::VueJs::Components::Form::Checkbox
22

3-
include Matestack::Ui::Bootstrap::Registry
4-
53
vue_name "matestack-ui-core-form-checkbox"
64

75
optional :form_text

lib/matestack/ui/bootstrap/form/input.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
class Matestack::Ui::Bootstrap::Form::Input < Matestack::Ui::VueJs::Components::Form::Input
22

3-
include Matestack::Ui::Bootstrap::Registry
4-
53
vue_name "matestack-ui-core-form-input"
64

75
optional :form_text

lib/matestack/ui/bootstrap/form/radio.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
class Matestack::Ui::Bootstrap::Form::Radio < Matestack::Ui::VueJs::Components::Form::Radio
22

3-
include Matestack::Ui::Bootstrap::Registry
4-
53
vue_name "matestack-ui-core-form-radio"
64

75
optional :form_text

lib/matestack/ui/bootstrap/form/select.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
class Matestack::Ui::Bootstrap::Form::Select < Matestack::Ui::VueJs::Components::Form::Select
22

3-
include Matestack::Ui::Bootstrap::Registry
4-
53
vue_name "matestack-ui-core-form-select"
64

75
optional :variant

lib/matestack/ui/bootstrap/form/switch.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
class Matestack::Ui::Bootstrap::Form::Switch < Matestack::Ui::Bootstrap::Form::Checkbox
22

3-
include Matestack::Ui::Bootstrap::Registry
4-
53
vue_name "matestack-ui-core-form-checkbox"
64

75
optional :form_text

0 commit comments

Comments
 (0)