Skip to content

Commit 2055c3b

Browse files
committed
removing vuejs code from lib as well, set version to 3.0.0.rc1
1 parent 229c3a6 commit 2055c3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+4
-4120
lines changed

lib/matestack/ui/app.rb

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/matestack/ui/core.rb

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -18,57 +18,6 @@ module Core
1818
require "#{base_path}/helper"
1919

2020
# require abbreveations for apps, pages and components
21-
require "matestack/ui/app" # deprecated
2221
require "matestack/ui/layout"
2322
require "matestack/ui/page"
2423
require "matestack/ui/component"
25-
26-
# VueJs Components
27-
vue_js_base_path = 'matestack/ui/vue_js'
28-
module Matestack
29-
module Ui
30-
module VueJs
31-
32-
end
33-
end
34-
end
35-
36-
require "#{vue_js_base_path}/utils"
37-
require "#{vue_js_base_path}/vue_attributes"
38-
require "#{vue_js_base_path}/vue"
39-
require "#{vue_js_base_path}/components/app"
40-
require "#{vue_js_base_path}/components/page_switch"
41-
require "#{vue_js_base_path}/components/toggle"
42-
require "#{vue_js_base_path}/components/onclick"
43-
require "#{vue_js_base_path}/components/transition"
44-
require "#{vue_js_base_path}/components/async"
45-
require "#{vue_js_base_path}/components/action"
46-
require "#{vue_js_base_path}/components/cable"
47-
require "#{vue_js_base_path}/components/isolated"
48-
require "#{vue_js_base_path}/components/form/context"
49-
require "#{vue_js_base_path}/components/form/base"
50-
require "#{vue_js_base_path}/components/form/form"
51-
require "#{vue_js_base_path}/components/form/nested_form"
52-
require "#{vue_js_base_path}/components/form/input"
53-
require "#{vue_js_base_path}/components/form/textarea"
54-
require "#{vue_js_base_path}/components/form/checkbox"
55-
require "#{vue_js_base_path}/components/form/radio"
56-
require "#{vue_js_base_path}/components/form/select"
57-
require "#{vue_js_base_path}/components/form/fields_for_remove_item"
58-
require "#{vue_js_base_path}/components/form/fields_for_add_item"
59-
require "#{vue_js_base_path}/components/collection/helper"
60-
require "#{vue_js_base_path}/components/collection/content"
61-
require "#{vue_js_base_path}/components/collection/filter"
62-
require "#{vue_js_base_path}/components/collection/filter_reset"
63-
require "#{vue_js_base_path}/components/collection/next"
64-
require "#{vue_js_base_path}/components/collection/order"
65-
require "#{vue_js_base_path}/components/collection/order_toggle"
66-
require "#{vue_js_base_path}/components/collection/order_toggle_indicator"
67-
require "#{vue_js_base_path}/components/collection/page"
68-
require "#{vue_js_base_path}/components/collection/previous"
69-
require "#{vue_js_base_path}/components"
70-
require "#{vue_js_base_path}/initialize"
71-
72-
# require abbreveations for apps, pages and components
73-
require "matestack/ui/vue_js_component"
74-
require "matestack/ui/isolated_component"

lib/matestack/ui/core/context.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Ui
33
module Core
44
class Context < ActiveSupport::CurrentAttributes
55

6-
attribute :app
6+
attribute :layout
77
attribute :parent
88
attribute :isolated_parent
99
attribute :params
@@ -14,4 +14,4 @@ class Context < ActiveSupport::CurrentAttributes
1414
end
1515
end
1616
end
17-
end
17+
end

lib/matestack/ui/core/layout.rb

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,10 @@ class Layout < Base
55

66
def initialize(options = {})
77
@controller = Context.controller
8-
Context.app = self
8+
Context.layout = self
99
super(nil, nil, options)
1010
end
1111

12-
# MOVED TO VUE MODULE:
13-
#
14-
# def create_children &block
15-
# self.app_wrapper do
16-
# self.response &block
17-
# end
18-
# end
19-
#
20-
# def app_wrapper(&block)
21-
# Base.new(:component, component_attributes) do
22-
# div(class: 'matestack-app-wrapper', &block)
23-
# end
24-
# end
25-
#
26-
# def component_attributes
27-
# {
28-
# is: 'matestack-ui-core-app',
29-
# ':params': params.to_json,
30-
# 'v-slot': "{ vc, vueComponent }"
31-
# }
32-
# end
33-
#
34-
# def loading_state_element
35-
# end
36-
37-
3812
# layout class method to specify if a rails layout should be used
3913
def self.inherited(subclass)
4014
subclass.layout(@layout)

lib/matestack/ui/core/page.rb

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,6 @@ def initialize(options = {})
77
super(nil, nil, options)
88
end
99

10-
# MOVED TO VUE MODULE
11-
#
12-
# def create_children
13-
# self.page do
14-
# self.response
15-
# end
16-
# end
17-
#
18-
# def page
19-
# if params[:only_page]
20-
# div class: 'matestack-page-root' do
21-
# yield
22-
# end
23-
# else
24-
# Base.new(:component, component_attributes) do
25-
# div class: 'matestack-page-container', 'v-bind:class': '{ "loading": vc.loading === true }' do
26-
# if Matestack::Ui::Core::Context.app.respond_to? :loading_state_element
27-
# div class: 'loading-state-element-wrapper', 'v-bind:class': '{ "loading": vc.loading === true }' do
28-
# Matestack::Ui::Core::Context.app.loading_state_element
29-
# end
30-
# end
31-
# div class: 'matestack-page-wrapper', 'v-bind:class': '{ "loading": vc.loading === true }' do
32-
# div 'v-if': 'vc.asyncPageTemplate == null' do
33-
# div class: 'matestack-page-root' do
34-
# yield
35-
# end
36-
# end
37-
# div 'v-if': 'vc.asyncPageTemplate != null' do
38-
# div class: 'matestack-page-root' do
39-
# Matestack::Ui::Core::Base.new('matestack-ui-core-runtime-render', ':template': 'vc.asyncPageTemplate', ':vc': 'vc', ':vue-component': 'vueComponent')
40-
# end
41-
# end
42-
# end
43-
# end
44-
# end
45-
# end
46-
# end
47-
#
48-
# def component_attributes
49-
# {
50-
# is: 'matestack-ui-core-page-content',
51-
# ':params': params.to_json,
52-
# 'v-slot': "{ vc, vueComponent }"
53-
# }
54-
# end
55-
5610
end
5711
end
5812
end

lib/matestack/ui/core/tag_helper.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ def unescape(text)
3737
end
3838
alias unescaped unescape
3939

40-
# REMOVED
41-
#
42-
# def matestack(&block)
43-
# div(id: 'matestack-ui') do
44-
# Base.new(:component, component_attributes) do
45-
# div(class: 'matestack-app-wrapper', &block)
46-
# end
47-
# end
48-
# end
49-
5040
# override image in order to implement automatically using rails assets path
5141
def img(text = nil, options = {}, &block)
5242
# if :src attribut given try to replace automatically

lib/matestack/ui/core/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Matestack
22
module Ui
33
module Core
4-
VERSION = '3.0.0'
4+
VERSION = '3.0.0.rc1'
55
end
66
end
77
end

lib/matestack/ui/isolated_component.rb

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/matestack/ui/vue_js/components.rb

Lines changed: 0 additions & 118 deletions
This file was deleted.

lib/matestack/ui/vue_js/components/action.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)