Skip to content

Commit 0ab717a

Browse files
jonasjabarigitbook-bot
authored andcommitted
GitBook: [#5] No subject
1 parent 72172d4 commit 0ab717a

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

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

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1-
# Installation & setup changes
1+
# Migrating from 2.x to 3.0
22

3-
## Core/Vuejs repo and gem split
3+
## Core/VueJs repo and gem split
44

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
1010

11+
{% hint style="warning" %}
1112
**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 %}
1414

1515
## `Matestack::Ui::App` is now called `Matestack::Ui::Layout`
1616

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`
1919

20-
-> Search&Replace
20+
\-> Search\&Replace
2121

2222
## `matestack_app` method is renamed to `matestack_layout`
2323

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`
2525

2626
`app/controllers/demo_controller.rb`
27+
2728
```ruby
2829
class DemoController < ActionController::Base
2930
include Matestack::Ui::Core::Helper
@@ -39,14 +40,17 @@ class DemoController < ActionController::Base
3940
end
4041
```
4142

42-
# `Matestack::Ui::Layout` `Matestack::Ui::Page` wrapping DOM structures
43+
\-> Search\&Replace
44+
45+
## `Matestack::Ui::Layout` `Matestack::Ui::Page` wrapping DOM structures
4346

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!)
4851

4952
`matestack/some/app/layout.rb`
53+
5054
```ruby
5155
class Some::App::Layout < Matestack::Ui::Layout
5256
def response
@@ -59,6 +63,7 @@ end
5963
```
6064

6165
`matestack/some/app/pages/some_page.rb`
66+
6267
```ruby
6368
class Some::App::Pages::SomePage < Matestack::Ui::Page
6469
def response
@@ -79,3 +84,5 @@ will just render:
7984
<main>
8085
</body>
8186
```
87+
88+
\-> 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

Comments
 (0)