You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrate-from-2.x-to-3.0.md
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,30 @@
1
-
# Installation & setup changes
1
+
# Migrating from 2.x to 3.0
2
2
3
-
## Core/Vuejs repo and gem split
3
+
## Core/VueJs repo and gem split
4
4
5
-
-`matestack-ui-core` previously contained logic for
6
-
- Ruby -> HTML conversion
7
-
- Reactivity via prebuilt and custom Vue.js components
8
-
- in order to have better seperation of concerns, we've moved the reactivity related things to its own repository/gem -> `matestack-ui-vue_js`
9
-
-`matestack-ui-core` is now meant to be combined with any reactivity framework or none at all
5
+
*`matestack-ui-core` previously contained logic for
6
+
* Ruby -> HTML conversion
7
+
* Reactivity via prebuilt and custom Vue.js components
8
+
* in order to have better seperation of concerns, we've moved the reactivity related things to its own repository/gem -> `matestack-ui-vue_js`
9
+
*`matestack-ui-core` is now meant to be combined with any reactivity framework or none at all
10
10
11
+
{% hint style="warning" %}
11
12
**Please follow the migration guide within the docs of `matestack-ui-vuejs` when using reactivity features of `matestack-ui-core` 2.x**
12
-
13
-
# Ruby related changes
13
+
{% endhint %}
14
14
15
15
## `Matestack::Ui::App` is now called `Matestack::Ui::Layout`
16
16
17
-
-`Matestack::Ui::App` was always meant to be a layout wrapping pages, but was supercharged with some vuejs logic before splitting the `core` and `vuejs` repos
18
-
- now `Matestack::Ui::App` is only a layout, that's why it should be named like that: `Matestack::Ui::Layout`
17
+
*`Matestack::Ui::App` was always meant to be a layout wrapping pages, but was supercharged with some vuejs logic before splitting the `core` and `vuejs` repos
18
+
* now `Matestack::Ui::App` is only a layout, that's why it should be named like that: `Matestack::Ui::Layout`
19
19
20
-
-> Search&Replace
20
+
\-> Search\&Replace
21
21
22
22
## `matestack_app` method is renamed to `matestack_layout`
23
23
24
-
- following the above mentioned naming adjustment, the `matestack_app` method used on controller level is renamed to `matestack_layout`
24
+
* following the above mentioned naming adjustment, the `matestack_app` method used on controller level is renamed to `matestack_layout`
25
25
26
26
`app/controllers/demo_controller.rb`
27
+
27
28
```ruby
28
29
classDemoController < ActionController::Base
29
30
includeMatestack::Ui::Core::Helper
@@ -39,14 +40,17 @@ class DemoController < ActionController::Base
39
40
end
40
41
```
41
42
42
-
# `Matestack::Ui::Layout``Matestack::Ui::Page` wrapping DOM structures
43
+
\-> Search\&Replace
44
+
45
+
## `Matestack::Ui::Layout``Matestack::Ui::Page` wrapping DOM structures
43
46
44
-
- previously, `Matestack::Ui::App` added some wrapping DOM structure around the whole layout and around it's `yield`
45
-
- this enabled dynamic page transition and loading state animations
46
-
-`Matestack::Ui::Layout` now purely renders the layout and yields a page without anything in between
47
-
- the wrapping DOM structres required for dynamic page transitions and loading state animations needs to be added via two new components if you want to use these features via `matestack-ui-vue_js` (see section below!)
47
+
* previously, `Matestack::Ui::App` added some wrapping DOM structure around the whole layout and around it's `yield`
48
+
* this enabled dynamic page transition and loading state animations
49
+
*`Matestack::Ui::Layout` now purely renders the layout and yields a page without anything in between
50
+
* the wrapping DOM structres required for dynamic page transitions and loading state animations needs to be added via two new components if you want to use these features via `matestack-ui-vue_js` (see section below!)
\-> Adjust CSS if you have created any rules targeting the wrapping DOM structure which now only is applied when using components from `matestack-ui-vuejs` explicitly
0 commit comments