Skip to content

Commit 4403ac4

Browse files
adjust namespacing in component templates
1 parent 42f32d4 commit 4403ac4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/generators/matestack_app/templates/matestack_app.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Apps::<%= class_name %> < Matestack::App
1+
class Apps::<%= class_name %> < Matestack::Ui::App
22

33
# OPTIONAL: Prepare data that gets used on every page of this app
44
# def prepare

lib/generators/matestack_component/matestack_component_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def create_matestack_component
1313

1414
matestack_component_dir_path = "app/matestack/components/"
1515
matestack_component_dir_path << "#{@namespace}/" unless @namespace.nil?
16-
matestack_component_dir_path << "#{file_name}"
16+
# matestack_component_dir_path << "#{file_name}"
1717

1818
to_be_created_files.each do |file|
1919
generator_path = matestack_component_dir_path + "/#{file_name}#{file}"

lib/generators/matestack_component/templates/matestack_component.js.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const componentDef = {
2424
}
2525
}
2626

27-
// 'form-cell' needs to be renamed according to scaffolded component
27+
MatestackUiCore.Vue.component('custom-<%= file_name %>', { ... }); //no -cell postfix
2828
let component = Vue.component('<%= file_name %>-cell', componentDef)
2929

3030
export default componentDef

lib/generators/matestack_component/templates/matestack_component.rb.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Components::<% unless @namespace.nil? %><%= @namespace.camelize %>::<% end %><%= class_name %>::Cell::<%= class_name %> < Matestack::<% if @dynamic == true %>DynamicComponent<% else %>StaticComponent<% end %>
1+
class Components::<% unless @namespace.nil? %><%= @namespace.camelize %>::<% end %><%= class_name %>::Cell::<%= class_name %> < Matestack::Ui::<% if @dynamic == true %>DynamicComponent<% else %>StaticComponent<% end %>
22

33
REQUIRED_KEYS = [] # [:symbols]
44

lib/generators/matestack_page/templates/matestack_page.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Pages::<% if @app_name.present? %><%= @app_name.camelize %>::<% end %><%= class_name %> < Matestack::Page
1+
class Pages::<% if @app_name.present? %><%= @app_name.camelize %>::<% end %><%= class_name %> < Matestack::Ui::Page
22

33
# OPTIONAL: Prepare data for the response method
44
# def prepare

0 commit comments

Comments
 (0)