netzke-core 0.6.4 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +19 -0
- data/README.markdown +43 -0
- data/TODO +1 -5
- data/app/controllers/netzke_controller.rb +47 -15
- data/config/database.yml +2 -0
- data/features/component_loader.feature +6 -1
- data/features/composition.feature +2 -0
- data/features/js_include.feature +18 -0
- data/features/nested_views.feature +9 -0
- data/features/persistence.feature +6 -4
- data/features/support/paths.rb +3 -0
- data/javascripts/core.js +166 -519
- data/javascripts/ext.js +355 -0
- data/javascripts/touch.js +47 -0
- data/lib/netzke/actions.rb +31 -38
- data/lib/netzke/base.rb +48 -6
- data/lib/netzke/composition.rb +52 -63
- data/lib/netzke/configuration.rb +6 -2
- data/lib/netzke/core/version.rb +2 -2
- data/lib/netzke/core.rb +22 -15
- data/lib/netzke/javascript/scopes.rb +39 -0
- data/lib/netzke/javascript.rb +145 -114
- data/lib/netzke/railz/action_view_ext/ext.rb +59 -0
- data/lib/netzke/railz/action_view_ext/touch.rb +50 -0
- data/lib/netzke/railz/action_view_ext.rb +86 -0
- data/lib/netzke/railz/controller_extensions.rb +33 -0
- data/lib/netzke/{rails → railz}/routes.rb +0 -0
- data/lib/netzke/railz.rb +3 -0
- data/lib/netzke/session.rb +18 -3
- data/lib/netzke/state.rb +42 -15
- data/lib/netzke/stylesheets.rb +23 -8
- data/lib/netzke-core.rb +23 -16
- data/netzke-core.gemspec +52 -10
- data/spec/component/base_spec.rb +11 -0
- data/spec/component/javascript_spec.rb +3 -2
- data/spec/component/state_spec.rb +18 -0
- data/spec/spec_helper.rb +1 -1
- data/test/rails_app/Gemfile +3 -2
- data/test/rails_app/Gemfile.lock +73 -71
- data/test/rails_app/app/components/component_loader.rb +39 -4
- data/test/rails_app/app/components/{custom.css → component_with_custom_css/stylesheets/custom.css} +0 -0
- data/test/rails_app/app/components/component_with_custom_css.rb +2 -2
- data/test/rails_app/app/components/component_with_js_mixin/javascripts/extra_one.js +2 -0
- data/test/rails_app/app/components/component_with_js_mixin/javascripts/extra_two.js +2 -0
- data/test/rails_app/app/components/component_with_js_mixin/javascripts/method_set_one.js +6 -0
- data/test/rails_app/app/components/component_with_js_mixin/javascripts/method_set_two.js +5 -0
- data/test/rails_app/app/components/component_with_js_mixin.rb +8 -0
- data/test/rails_app/app/components/component_with_session_persistence.rb +10 -3
- data/test/rails_app/app/components/extended_component_with_js_mixin/javascripts/some_method_set.js +5 -0
- data/test/rails_app/app/components/extended_component_with_js_mixin.rb +7 -0
- data/test/rails_app/app/components/hello_world_component.rb +31 -0
- data/test/rails_app/app/components/server_caller.rb +1 -1
- data/test/rails_app/app/components/simple_panel.rb +2 -0
- data/test/rails_app/app/components/touch/hello_world_component.rb +25 -0
- data/test/rails_app/app/components/touch/server_caller.rb +28 -0
- data/test/rails_app/app/components/touch/simple_carousel.rb +17 -0
- data/test/rails_app/app/controllers/components_controller.rb +6 -1
- data/test/rails_app/app/controllers/touch_controller.rb +6 -0
- data/test/rails_app/app/helpers/touch_helper.rb +2 -0
- data/test/rails_app/app/views/components/panel_with_autoload.html.erb +2 -0
- data/test/rails_app/app/views/components/some_tab_panel.html.erb +11 -0
- data/test/rails_app/app/views/layouts/nested.html.erb +5 -0
- data/test/rails_app/app/views/layouts/touch.html.erb +13 -0
- data/test/rails_app/config/initializers/netzke.rb +1 -1
- data/test/rails_app/config/locales/en.yml +7 -1
- data/test/rails_app/config/routes.rb +10 -1
- data/test/rails_app/db/migrate/20110110132720_create_netzke_component_states.rb +20 -0
- data/test/rails_app/db/schema.rb +14 -1
- data/test/rails_app/spec/controllers/touch_controller_spec.rb +5 -0
- data/test/rails_app/spec/helpers/touch_helper_spec.rb +15 -0
- data/test/unit/netzke_core_test.rb +2 -6
- metadata +53 -11
- data/README.rdoc +0 -136
- data/lib/netzke/rails/action_view_ext.rb +0 -103
- data/lib/netzke/rails/controller_extensions.rb +0 -31
- data/test/rails_app/db/migrate/20100905214933_create_netzke_preferences.rb +0 -16
@@ -0,0 +1,31 @@
|
|
1
|
+
class HelloWorldComponent < Netzke::Base
|
2
|
+
# Ext.Panel's config option "title"
|
3
|
+
js_property :title, "My Hello World Component"
|
4
|
+
|
5
|
+
# Bottom bar with an automatically created action
|
6
|
+
js_property :bbar, [:bug_server.action]
|
7
|
+
|
8
|
+
# Action to be placed on the bottom bar
|
9
|
+
action :bug_server, :text => 'Greet the World', :icon => :accept
|
10
|
+
|
11
|
+
# Method in the JS class that (by default) processes the action's "click" event
|
12
|
+
js_method :on_bug_server, <<-JS
|
13
|
+
function(){
|
14
|
+
// Remotely calling the server's method greet_the_world (defined below)
|
15
|
+
this.greetTheWorld();
|
16
|
+
}
|
17
|
+
JS
|
18
|
+
|
19
|
+
# Server's method that gets called from the JS
|
20
|
+
endpoint :greet_the_world do |params|
|
21
|
+
# Tell the client side to call its method showGreeting with "Hello World!" as parameter
|
22
|
+
{:show_greeting => "Hello World!"}
|
23
|
+
end
|
24
|
+
|
25
|
+
# Another method in the JS class that gets remotely called by the server side
|
26
|
+
js_method :show_greeting, <<-JS
|
27
|
+
function(greeting){
|
28
|
+
this.body.update("Server says: " + greeting);
|
29
|
+
}
|
30
|
+
JS
|
31
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Touch
|
2
|
+
class HelloWorldComponent < Netzke::Base
|
3
|
+
js_base_class "Ext.Panel"
|
4
|
+
|
5
|
+
def configuration
|
6
|
+
super.merge({
|
7
|
+
:docked_items => [{:dock => :top, :xtype => :toolbar, :title => 'Hello World Component',
|
8
|
+
:items => [
|
9
|
+
{:text => "Greet the World", :handler => :on_bug_server}
|
10
|
+
]
|
11
|
+
}]
|
12
|
+
})
|
13
|
+
end
|
14
|
+
|
15
|
+
js_method :on_bug_server, <<-JS
|
16
|
+
function(){
|
17
|
+
this.greetTheWorld();
|
18
|
+
}
|
19
|
+
JS
|
20
|
+
|
21
|
+
endpoint :greet_the_world do |params|
|
22
|
+
{:update => "Hello from the server!"}
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Touch
|
2
|
+
class ServerCaller < Netzke::Base
|
3
|
+
js_base_class "Ext.Panel"
|
4
|
+
|
5
|
+
def configuration
|
6
|
+
super.merge({
|
7
|
+
:docked_items => [{:dock => :top, :xtype => :toolbar, :title => 'Server Caller', :items => [
|
8
|
+
{:text => "Bug server", :handler => :on_bug_server}
|
9
|
+
]}]
|
10
|
+
})
|
11
|
+
end
|
12
|
+
|
13
|
+
js_method :on_bug_server, <<-JS
|
14
|
+
function(){
|
15
|
+
if (!this.maskCmp) this.maskCmp = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
|
16
|
+
this.maskCmp.show();
|
17
|
+
this.whatsUp({}, function(){
|
18
|
+
this.maskCmp.hide();
|
19
|
+
}, this);
|
20
|
+
}
|
21
|
+
JS
|
22
|
+
|
23
|
+
endpoint :whats_up do |params|
|
24
|
+
sleep 1 # for visual testing
|
25
|
+
{:update => "Hello from the server!"}
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Touch
|
2
|
+
class SimpleCarousel < Netzke::Base
|
3
|
+
js_base_class "Ext.Carousel"
|
4
|
+
|
5
|
+
js_properties(
|
6
|
+
:fullscreen => true,
|
7
|
+
:docked_items => [{:dock => :top, :xtype => :toolbar, :title => 'Carousel Toolbar'}]
|
8
|
+
)
|
9
|
+
|
10
|
+
def configuration
|
11
|
+
super.merge({:items => [:panel_one.component, :panel_two.component]})
|
12
|
+
end
|
13
|
+
|
14
|
+
component :panel_one, :class_name => "Touch::ServerCaller", :html => "ServerCaller One"
|
15
|
+
component :panel_two, :class_name => "Touch::ServerCaller", :html => "ServerCaller Two"
|
16
|
+
end
|
17
|
+
end
|
@@ -1,9 +1,14 @@
|
|
1
1
|
class ComponentsController < ApplicationController
|
2
|
-
def
|
2
|
+
def index
|
3
3
|
component_name = params[:component].gsub("::", "_").underscore
|
4
4
|
render :inline => "<%= netzke :#{component_name}, :class_name => '#{params[:component]}' %>", :layout => true
|
5
5
|
end
|
6
6
|
|
7
|
+
# For panel_with_autoload
|
8
|
+
def autoloaded_content
|
9
|
+
render :inline => "<%= netzke :simple_panel, :height => 300, :bbar => ['->', 'Some text'], :html => 'Autoloaded Panel' %>", :layout => "nested"
|
10
|
+
end
|
11
|
+
|
7
12
|
# Just a test for a pure Ext component - not sure if it's useful.
|
8
13
|
def ext
|
9
14
|
component_name = params[:component].gsub("::", "_").underscore
|
@@ -0,0 +1,2 @@
|
|
1
|
+
<%# This is just a panel that has +autoload+ option to load some content from the autoloaded_content action, which in its turn renders a view with a Netzke component in it %>
|
2
|
+
<%= netzke :panel_with_autoload, :class_name => "SimplePanel", :html => "Some content", :autoLoad => {:url => "autoloaded_content", :scripts => true}%>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<%# Use this layout when you dynamically load views with other Netzke components into some Ext.Panel, e.g. with Ext.updater.
|
2
|
+
Because the main Netzke/Ext code is already loaded, all we need to load is the JavaScript for components that are
|
3
|
+
embedded in the loaded view. TODO: fix class caching in this scenario. %>
|
4
|
+
<%= netzke_js %>
|
5
|
+
<%= yield %>
|
@@ -2,4 +2,10 @@
|
|
2
2
|
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
3
3
|
|
4
4
|
en:
|
5
|
-
|
5
|
+
server_caller:
|
6
|
+
actions:
|
7
|
+
bug_server: "Call server"
|
8
|
+
extended_server_caller:
|
9
|
+
actions:
|
10
|
+
bug_server: "Call server"
|
11
|
+
bug_server_tooltip: "With tooltip"
|
@@ -55,7 +55,16 @@ RailsApp::Application.routes.draw do
|
|
55
55
|
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
56
|
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
57
|
|
58
|
-
|
58
|
+
# Components that don't need configuration in the view, view code rendered inline
|
59
|
+
match 'components/:component' => 'components#index', :as => "components"
|
60
|
+
|
61
|
+
# Components configured in Rails views
|
62
|
+
match 'components/embedded/:action' => 'components', :as => "embedded_components"
|
63
|
+
|
64
|
+
# Touch components
|
65
|
+
match 'components/touch/:component' => 'touch#index', :as => "touch"
|
66
|
+
|
67
|
+
# Non-Netzke Ext components
|
59
68
|
match 'ext/:component' => 'components#ext', :as => "ext"
|
60
69
|
|
61
70
|
match ':controller(/:action(/:id(.:format)))'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class CreateNetzkeComponentStates < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :netzke_component_states do |t|
|
4
|
+
t.string :component
|
5
|
+
t.integer :user_id
|
6
|
+
t.integer :role_id
|
7
|
+
t.text :value
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
|
12
|
+
add_index :netzke_component_states, :component
|
13
|
+
add_index :netzke_component_states, :user_id
|
14
|
+
add_index :netzke_component_states, :role_id
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.down
|
18
|
+
drop_table :netzke_component_states
|
19
|
+
end
|
20
|
+
end
|
data/test/rails_app/db/schema.rb
CHANGED
@@ -10,7 +10,20 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended to check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(:version =>
|
13
|
+
ActiveRecord::Schema.define(:version => 20110110132720) do
|
14
|
+
|
15
|
+
create_table "netzke_component_states", :force => true do |t|
|
16
|
+
t.string "component"
|
17
|
+
t.integer "user_id"
|
18
|
+
t.integer "role_id"
|
19
|
+
t.text "value"
|
20
|
+
t.datetime "created_at"
|
21
|
+
t.datetime "updated_at"
|
22
|
+
end
|
23
|
+
|
24
|
+
add_index "netzke_component_states", ["component"], :name => "index_netzke_component_states_on_component"
|
25
|
+
add_index "netzke_component_states", ["role_id"], :name => "index_netzke_component_states_on_role_id"
|
26
|
+
add_index "netzke_component_states", ["user_id"], :name => "index_netzke_component_states_on_user_id"
|
14
27
|
|
15
28
|
create_table "netzke_preferences", :force => true do |t|
|
16
29
|
t.string "key"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the TouchHelper. For example:
|
5
|
+
#
|
6
|
+
# describe TouchHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# helper.concat_strings("this","that").should == "this that"
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
describe TouchHelper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -12,12 +12,8 @@ module Netzke
|
|
12
12
|
})
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
:nested_one => {:class_name => 'NestedComponentOne'},
|
18
|
-
:nested_two => {:class_name => 'NestedComponentTwo'}
|
19
|
-
}
|
20
|
-
end
|
15
|
+
component :nested_one, :class_name => 'NestedComponentOne'
|
16
|
+
component :nested_two, :class_name => 'NestedComponentTwo'
|
21
17
|
|
22
18
|
def available_permissions
|
23
19
|
%w(read update)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 5
|
9
|
+
version: 0.6.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sergei Kozlov
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-14 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -40,19 +40,20 @@ extensions: []
|
|
40
40
|
|
41
41
|
extra_rdoc_files:
|
42
42
|
- LICENSE
|
43
|
-
- README.
|
43
|
+
- README.markdown
|
44
44
|
- TODO
|
45
45
|
files:
|
46
46
|
- .autotest
|
47
47
|
- CHANGELOG.rdoc
|
48
48
|
- LICENSE
|
49
49
|
- Manifest
|
50
|
-
- README.
|
50
|
+
- README.markdown
|
51
51
|
- Rakefile
|
52
52
|
- TODO
|
53
53
|
- app/controllers/netzke_controller.rb
|
54
54
|
- app/models/netzke_preference.rb
|
55
55
|
- autotest/discover.rb
|
56
|
+
- config/database.yml
|
56
57
|
- features/actions.feature
|
57
58
|
- features/basic.feature
|
58
59
|
- features/client-server.feature
|
@@ -63,6 +64,8 @@ files:
|
|
63
64
|
- features/custom_css.feature
|
64
65
|
- features/file_inclusion.feature
|
65
66
|
- features/inheritance.feature
|
67
|
+
- features/js_include.feature
|
68
|
+
- features/nested_views.feature
|
66
69
|
- features/persistence.feature
|
67
70
|
- features/scopes.feature
|
68
71
|
- features/step_definitions/custom_css_steps.rb
|
@@ -73,6 +76,8 @@ files:
|
|
73
76
|
- init.rb
|
74
77
|
- install.rb
|
75
78
|
- javascripts/core.js
|
79
|
+
- javascripts/ext.js
|
80
|
+
- javascripts/touch.js
|
76
81
|
- lib/netzke-core.rb
|
77
82
|
- lib/netzke/actions.rb
|
78
83
|
- lib/netzke/base.rb
|
@@ -91,9 +96,13 @@ files:
|
|
91
96
|
- lib/netzke/embedding.rb
|
92
97
|
- lib/netzke/ext_component.rb
|
93
98
|
- lib/netzke/javascript.rb
|
94
|
-
- lib/netzke/
|
95
|
-
- lib/netzke/
|
96
|
-
- lib/netzke/
|
99
|
+
- lib/netzke/javascript/scopes.rb
|
100
|
+
- lib/netzke/railz.rb
|
101
|
+
- lib/netzke/railz/action_view_ext.rb
|
102
|
+
- lib/netzke/railz/action_view_ext/ext.rb
|
103
|
+
- lib/netzke/railz/action_view_ext/touch.rb
|
104
|
+
- lib/netzke/railz/controller_extensions.rb
|
105
|
+
- lib/netzke/railz/routes.rb
|
97
106
|
- lib/netzke/services.rb
|
98
107
|
- lib/netzke/session.rb
|
99
108
|
- lib/netzke/state.rb
|
@@ -104,6 +113,7 @@ files:
|
|
104
113
|
- spec/component/base_spec.rb
|
105
114
|
- spec/component/composition_spec.rb
|
106
115
|
- spec/component/javascript_spec.rb
|
116
|
+
- spec/component/state_spec.rb
|
107
117
|
- spec/core_ext_spec.rb
|
108
118
|
- spec/spec.opt
|
109
119
|
- spec/spec_helper.rb
|
@@ -119,12 +129,20 @@ files:
|
|
119
129
|
- test/rails_app/app/components/component_loader.rb
|
120
130
|
- test/rails_app/app/components/component_with_actions.rb
|
121
131
|
- test/rails_app/app/components/component_with_custom_css.rb
|
132
|
+
- test/rails_app/app/components/component_with_custom_css/stylesheets/custom.css
|
122
133
|
- test/rails_app/app/components/component_with_included_js.rb
|
134
|
+
- test/rails_app/app/components/component_with_js_mixin.rb
|
135
|
+
- test/rails_app/app/components/component_with_js_mixin/javascripts/extra_one.js
|
136
|
+
- test/rails_app/app/components/component_with_js_mixin/javascripts/extra_two.js
|
137
|
+
- test/rails_app/app/components/component_with_js_mixin/javascripts/method_set_one.js
|
138
|
+
- test/rails_app/app/components/component_with_js_mixin/javascripts/method_set_two.js
|
123
139
|
- test/rails_app/app/components/component_with_session_persistence.rb
|
124
|
-
- test/rails_app/app/components/custom.css
|
125
140
|
- test/rails_app/app/components/deprecated/server_caller.rb
|
126
141
|
- test/rails_app/app/components/extended_component_with_actions.rb
|
142
|
+
- test/rails_app/app/components/extended_component_with_js_mixin.rb
|
143
|
+
- test/rails_app/app/components/extended_component_with_js_mixin/javascripts/some_method_set.js
|
127
144
|
- test/rails_app/app/components/extended_server_caller.rb
|
145
|
+
- test/rails_app/app/components/hello_world_component.rb
|
128
146
|
- test/rails_app/app/components/included.js
|
129
147
|
- test/rails_app/app/components/kinda_complex_component.rb
|
130
148
|
- test/rails_app/app/components/kinda_complex_component/basic_stuff.rb
|
@@ -135,16 +153,26 @@ files:
|
|
135
153
|
- test/rails_app/app/components/scoped_components/some_scoped_component.rb
|
136
154
|
- test/rails_app/app/components/server_caller.rb
|
137
155
|
- test/rails_app/app/components/simple_component.rb
|
156
|
+
- test/rails_app/app/components/simple_panel.rb
|
138
157
|
- test/rails_app/app/components/simple_tab_panel.rb
|
139
158
|
- test/rails_app/app/components/simple_window.rb
|
140
159
|
- test/rails_app/app/components/some_composite.rb
|
141
160
|
- test/rails_app/app/components/some_ext_component.rb
|
161
|
+
- test/rails_app/app/components/touch/hello_world_component.rb
|
162
|
+
- test/rails_app/app/components/touch/server_caller.rb
|
163
|
+
- test/rails_app/app/components/touch/simple_carousel.rb
|
142
164
|
- test/rails_app/app/controllers/application_controller.rb
|
143
165
|
- test/rails_app/app/controllers/components_controller.rb
|
144
166
|
- test/rails_app/app/controllers/multiple_components_controller.rb
|
167
|
+
- test/rails_app/app/controllers/touch_controller.rb
|
145
168
|
- test/rails_app/app/controllers/welcome_controller.rb
|
146
169
|
- test/rails_app/app/helpers/application_helper.rb
|
170
|
+
- test/rails_app/app/helpers/touch_helper.rb
|
171
|
+
- test/rails_app/app/views/components/panel_with_autoload.html.erb
|
172
|
+
- test/rails_app/app/views/components/some_tab_panel.html.erb
|
147
173
|
- test/rails_app/app/views/layouts/application.html.erb
|
174
|
+
- test/rails_app/app/views/layouts/nested.html.erb
|
175
|
+
- test/rails_app/app/views/layouts/touch.html.erb
|
148
176
|
- test/rails_app/app/views/multiple_components/set_one.html.erb
|
149
177
|
- test/rails_app/config.ru
|
150
178
|
- test/rails_app/config/application.rb
|
@@ -163,7 +191,7 @@ files:
|
|
163
191
|
- test/rails_app/config/locales/en.yml
|
164
192
|
- test/rails_app/config/routes.rb
|
165
193
|
- test/rails_app/db/development_structure.sql
|
166
|
-
- test/rails_app/db/migrate/
|
194
|
+
- test/rails_app/db/migrate/20110110132720_create_netzke_component_states.rb
|
167
195
|
- test/rails_app/db/schema.rb
|
168
196
|
- test/rails_app/db/seeds.rb
|
169
197
|
- test/rails_app/lib/tasks/.gitkeep
|
@@ -174,6 +202,8 @@ files:
|
|
174
202
|
- test/rails_app/public/images/rails.png
|
175
203
|
- test/rails_app/public/robots.txt
|
176
204
|
- test/rails_app/script/rails
|
205
|
+
- test/rails_app/spec/controllers/touch_controller_spec.rb
|
206
|
+
- test/rails_app/spec/helpers/touch_helper_spec.rb
|
177
207
|
- test/rails_app/vendor/plugins/.gitkeep
|
178
208
|
- test/test_helper.rb
|
179
209
|
- test/unit/core_ext_test.rb
|
@@ -219,6 +249,7 @@ test_files:
|
|
219
249
|
- spec/component/base_spec.rb
|
220
250
|
- spec/component/composition_spec.rb
|
221
251
|
- spec/component/javascript_spec.rb
|
252
|
+
- spec/component/state_spec.rb
|
222
253
|
- spec/core_ext_spec.rb
|
223
254
|
- spec/spec_helper.rb
|
224
255
|
- test/rails_app/app/components/border_layout_panel.rb
|
@@ -226,10 +257,13 @@ test_files:
|
|
226
257
|
- test/rails_app/app/components/component_with_actions.rb
|
227
258
|
- test/rails_app/app/components/component_with_custom_css.rb
|
228
259
|
- test/rails_app/app/components/component_with_included_js.rb
|
260
|
+
- test/rails_app/app/components/component_with_js_mixin.rb
|
229
261
|
- test/rails_app/app/components/component_with_session_persistence.rb
|
230
262
|
- test/rails_app/app/components/deprecated/server_caller.rb
|
231
263
|
- test/rails_app/app/components/extended_component_with_actions.rb
|
264
|
+
- test/rails_app/app/components/extended_component_with_js_mixin.rb
|
232
265
|
- test/rails_app/app/components/extended_server_caller.rb
|
266
|
+
- test/rails_app/app/components/hello_world_component.rb
|
233
267
|
- test/rails_app/app/components/kinda_complex_component.rb
|
234
268
|
- test/rails_app/app/components/kinda_complex_component/basic_stuff.rb
|
235
269
|
- test/rails_app/app/components/kinda_complex_component/extra_stuff.rb
|
@@ -239,15 +273,21 @@ test_files:
|
|
239
273
|
- test/rails_app/app/components/scoped_components/some_scoped_component.rb
|
240
274
|
- test/rails_app/app/components/server_caller.rb
|
241
275
|
- test/rails_app/app/components/simple_component.rb
|
276
|
+
- test/rails_app/app/components/simple_panel.rb
|
242
277
|
- test/rails_app/app/components/simple_tab_panel.rb
|
243
278
|
- test/rails_app/app/components/simple_window.rb
|
244
279
|
- test/rails_app/app/components/some_composite.rb
|
245
280
|
- test/rails_app/app/components/some_ext_component.rb
|
281
|
+
- test/rails_app/app/components/touch/hello_world_component.rb
|
282
|
+
- test/rails_app/app/components/touch/server_caller.rb
|
283
|
+
- test/rails_app/app/components/touch/simple_carousel.rb
|
246
284
|
- test/rails_app/app/controllers/application_controller.rb
|
247
285
|
- test/rails_app/app/controllers/components_controller.rb
|
248
286
|
- test/rails_app/app/controllers/multiple_components_controller.rb
|
287
|
+
- test/rails_app/app/controllers/touch_controller.rb
|
249
288
|
- test/rails_app/app/controllers/welcome_controller.rb
|
250
289
|
- test/rails_app/app/helpers/application_helper.rb
|
290
|
+
- test/rails_app/app/helpers/touch_helper.rb
|
251
291
|
- test/rails_app/config/application.rb
|
252
292
|
- test/rails_app/config/boot.rb
|
253
293
|
- test/rails_app/config/environment.rb
|
@@ -261,9 +301,11 @@ test_files:
|
|
261
301
|
- test/rails_app/config/initializers/secret_token.rb
|
262
302
|
- test/rails_app/config/initializers/session_store.rb
|
263
303
|
- test/rails_app/config/routes.rb
|
264
|
-
- test/rails_app/db/migrate/
|
304
|
+
- test/rails_app/db/migrate/20110110132720_create_netzke_component_states.rb
|
265
305
|
- test/rails_app/db/schema.rb
|
266
306
|
- test/rails_app/db/seeds.rb
|
307
|
+
- test/rails_app/spec/controllers/touch_controller_spec.rb
|
308
|
+
- test/rails_app/spec/helpers/touch_helper_spec.rb
|
267
309
|
- test/test_helper.rb
|
268
310
|
- test/unit/core_ext_test.rb
|
269
311
|
- test/unit/netzke_core_test.rb
|