netzke-core 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +16 -1
- data/Gemfile +12 -0
- data/README.md +22 -15
- data/Rakefile +19 -38
- data/app/controllers/netzke_controller.rb +1 -79
- data/javascripts/ext.js +17 -13
- data/lib/netzke/base.rb +6 -2
- data/lib/netzke/core/action_config.rb +7 -0
- data/lib/netzke/core/actions.rb +6 -32
- data/lib/netzke/core/client_class.rb +1 -1
- data/lib/netzke/core/component_config.rb +1 -1
- data/lib/netzke/core/composition.rb +17 -111
- data/lib/netzke/core/config_to_dsl_delegator.rb +0 -7
- data/lib/netzke/core/configuration.rb +48 -0
- data/lib/netzke/core/dsl_support.rb +71 -0
- data/lib/netzke/core/dynamic_assets.rb +10 -1
- data/lib/netzke/core/embedding.rb +2 -2
- data/lib/netzke/core/html.rb +29 -0
- data/lib/netzke/core/javascript.rb +32 -26
- data/lib/netzke/core/railz/action_view_ext/ext.rb +2 -2
- data/lib/netzke/core/railz/controller_extensions.rb +96 -3
- data/lib/netzke/core/railz/routes.rb +14 -3
- data/lib/netzke/core/ruby_ext/array.rb +4 -18
- data/lib/netzke/core/ruby_ext/hash.rb +19 -25
- data/lib/netzke/core/ruby_ext/time_with_zone.rb +1 -1
- data/lib/netzke/core/ruby_ext.rb +0 -2
- data/lib/netzke/core/session.rb +8 -1
- data/lib/netzke/core/state.rb +3 -3
- data/lib/netzke/core/version.rb +1 -1
- data/lib/netzke/core.rb +15 -7
- data/lib/netzke-core.rb +2 -9
- data/tasks/app_test_tasks.rake +94 -0
- data/tasks/rake_helper.rb +51 -0
- data/test/core_test_app/README +2 -2
- data/test/core_test_app/app/assets/javascripts/expect/expect.js +1253 -0
- data/test/core_test_app/app/assets/javascripts/mocha/mocha.js +5340 -0
- data/test/core_test_app/app/assets/stylesheets/mocha/mocha.css +231 -0
- data/test/core_test_app/app/components/{component_with_actions.rb → actions.rb} +7 -9
- data/test/core_test_app/app/components/{some_composite.rb → composition.rb} +16 -5
- data/test/core_test_app/app/components/{component_with_custom_css → css_inclusion}/stylesheets/custom.css +2 -2
- data/test/core_test_app/app/components/css_inclusion.rb +12 -0
- data/test/core_test_app/app/components/{component_loader/javascripts/component_loader.js → dynamic_loading/javascripts/dynamic_loading.js} +9 -1
- data/test/core_test_app/app/components/{component_loader.rb → dynamic_loading.rb} +12 -5
- data/test/core_test_app/app/components/{server_caller/javascripts/server_caller.js → endpoints/javascripts/endpoints.js} +10 -6
- data/test/core_test_app/app/components/{server_caller.rb → endpoints.rb} +12 -8
- data/test/core_test_app/app/components/{extended_server_caller.rb → endpoints_extended.rb} +6 -4
- data/test/core_test_app/app/components/ext_direct/composite.rb +5 -1
- data/test/core_test_app/app/components/feedback.rb +26 -0
- data/test/core_test_app/app/components/haml_panel/html/body.html.haml +10 -0
- data/test/core_test_app/app/components/haml_panel/html/server_response.html.haml +3 -0
- data/test/core_test_app/app/components/haml_panel.rb +32 -0
- data/test/core_test_app/app/components/hello_world.rb +1 -0
- data/test/core_test_app/app/components/js_inclusion/javascripts/extra_one.js +2 -0
- data/test/core_test_app/app/components/js_inclusion/javascripts/extra_two.js +2 -0
- data/test/core_test_app/app/components/js_inclusion/javascripts/js_inclusion.js +5 -0
- data/test/core_test_app/app/components/{component_with_js_mixin → js_inclusion}/javascripts/method_set_one.js +0 -0
- data/test/core_test_app/app/components/{component_with_js_mixin → js_inclusion}/javascripts/method_set_two.js +0 -0
- data/test/core_test_app/app/components/{component_with_js_mixin.rb → js_inclusion.rb} +3 -3
- data/test/core_test_app/app/components/js_inclusion_extended/javascripts/some_method_set.js +5 -0
- data/test/core_test_app/app/components/js_inclusion_extended.rb +6 -0
- data/test/core_test_app/app/components/loaded_css_inclusion.rb +22 -0
- data/test/core_test_app/app/components/{localized_panel.rb → localization.rb} +5 -5
- data/test/core_test_app/app/components/localization_extended.rb +2 -0
- data/test/core_test_app/app/components/persistence.rb +60 -0
- data/test/core_test_app/app/components/persistence_with_shared_state.rb +7 -0
- data/test/core_test_app/app/components/plugin_with_actions.rb +24 -0
- data/test/core_test_app/app/components/plugin_with_components.rb +3 -3
- data/test/core_test_app/app/components/plugin_with_endpoints.rb +29 -0
- data/test/core_test_app/app/components/plugins.rb +9 -0
- data/test/core_test_app/app/components/{kinda_complex_component → ruby_modules}/basic_stuff.rb +1 -1
- data/test/core_test_app/app/components/{kinda_complex_component → ruby_modules}/extra_stuff.rb +3 -3
- data/test/core_test_app/app/components/{kinda_complex_component.rb → ruby_modules.rb} +1 -1
- data/test/core_test_app/app/components/scoped/deeply_scoped/scoping.rb +10 -0
- data/test/core_test_app/app/components/scoped/scoping.rb +8 -0
- data/test/core_test_app/app/components/scoped/scoping_extended.rb +8 -0
- data/test/core_test_app/app/components/self_reloading.rb +25 -0
- data/test/core_test_app/app/components/server_counter/javascripts/server_counter.js +4 -4
- data/test/core_test_app/app/components/server_counter.rb +10 -10
- data/test/core_test_app/app/components/simple_authentication_component.rb +1 -0
- data/test/core_test_app/app/components/simple_component.rb +0 -4
- data/test/core_test_app/app/components/simple_composite.rb +1 -1
- data/test/core_test_app/app/components/simple_form_with_file_upload.rb +1 -2
- data/test/core_test_app/app/components/simple_tab_panel.rb +5 -3
- data/test/core_test_app/app/components/{panel_with_tools.rb → tools.rb} +3 -3
- data/test/core_test_app/app/components/window_with_simple_component.rb +1 -0
- data/test/core_test_app/app/controllers/alternative_controller.rb +10 -0
- data/test/core_test_app/app/controllers/specs_controller.rb +11 -0
- data/test/core_test_app/app/views/layouts/application.html.erb +19 -1
- data/test/core_test_app/app/views/simple_rails/multiple_nested.html.erb +2 -2
- data/test/core_test_app/config/boot.rb +3 -10
- data/test/core_test_app/config/environments/development.rb +1 -0
- data/test/core_test_app/config/initializers/netzke.rb +4 -1
- data/test/core_test_app/config/locales/en.yml +11 -4
- data/test/core_test_app/config/locales/es.yml +1 -4
- data/test/core_test_app/config/routes.rb +10 -1
- data/test/core_test_app/core_test_app.tmproj +254 -0
- data/test/core_test_app/db/development.sqlite3 +0 -0
- data/test/core_test_app/{lib/tasks/.gitkeep → db/test.sqlite3} +0 -0
- data/test/core_test_app/log/development.log +78046 -0
- data/test/core_test_app/log/production.log +18 -0
- data/test/core_test_app/log/test.log +120048 -0
- data/test/core_test_app/rails_app.tmproj +324 -0
- data/test/core_test_app/tmp/cache/assets/C8B/BF0/sprockets%2F54de2792b036d1dab855f88599503551 +0 -0
- data/test/core_test_app/tmp/cache/assets/C92/5A0/sprockets%2F39e75754782ee12179bf35c9a0971d80 +0 -0
- data/test/core_test_app/tmp/cache/assets/C99/720/sprockets%2F981d5a1b957a012e380b22011a6d176d +0 -0
- data/test/core_test_app/tmp/cache/assets/C9F/750/sprockets%2F20ce3d64040a5d3a0a8883bd60754356 +0 -0
- data/test/core_test_app/tmp/cache/assets/CC4/C00/sprockets%2Fc615df52887d8c2e67e8413576a419c5 +0 -0
- data/test/core_test_app/tmp/cache/assets/CF1/3F0/sprockets%2Fc69ee42924fab565a3533d56473ce878 +0 -0
- data/test/core_test_app/tmp/cache/assets/D0E/870/sprockets%2Fa593bf4fac106add88c9434141a49663 +0 -0
- data/test/core_test_app/tmp/cache/assets/D14/8E0/sprockets%2F20748e8d1d7d090d122904a9fe6f18fc +0 -0
- data/test/core_test_app/tmp/cache/assets/D3E/DA0/sprockets%2Fa175f1ac5996544b908ba3ba3f64c4f3 +0 -0
- data/test/core_test_app/tmp/cache/assets/D43/C00/sprockets%2F7bc60c758776356d615ab5edff201ee2 +0 -0
- data/test/core_test_app/tmp/cache/assets/D4B/C50/sprockets%2F8483b7e322da338e8f9eb3b30a957e9a +0 -0
- data/test/core_test_app/tmp/cache/assets/D64/090/sprockets%2F5a01ff309c3f2503eb5e4f5667cca4b3 +0 -0
- data/test/core_test_app/tmp/cache/assets/D8B/FB0/sprockets%2F7a86225caaa389f1be600b4f3a2d1ef0 +0 -0
- data/test/core_test_app/tmp/cache/assets/D98/9C0/sprockets%2F18b80e8fe200aebc522e561a867ea6fb +0 -0
- data/test/core_test_app/tmp/cache/assets/DB0/6E0/sprockets%2F03e33f5a4779eeb48bcfc86ee717fb55 +0 -0
- data/test/core_test_app/tmp/cache/assets/DED/7E0/sprockets%2Feaedd52ba538f19e4ab543a3e20ce2c4 +0 -0
- data/test/core_test_app/tmp/cache/assets/E07/FF0/sprockets%2Fb3c071e0a6de36f041adbbdaa8ab060b +0 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214105940.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214110642.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214110749.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214110750.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214111025.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214111027.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214111213.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214111214.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214111332.html +40 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214111333.html +40 -0
- data/test/core_test_app/{spec/component → tmp/pids/passenger.3000.pid.lock} +0 -0
- metadata +370 -133
- data/.autotest +0 -1
- data/.travis.yml +0 -18
- data/Manifest +0 -50
- data/config/ci/before-travis.sh +0 -10
- data/install.rb +0 -1
- data/lib/netzke/core/options_hash.rb +0 -27
- data/lib/netzke/core/ruby_ext/string.rb +0 -26
- data/lib/netzke/core/ruby_ext/symbol.rb +0 -13
- data/netzke-core.gemspec +0 -253
- data/test/core_test_app/.gitignore +0 -4
- data/test/core_test_app/.powrc +0 -4
- data/test/core_test_app/.rvmrc +0 -1
- data/test/core_test_app/Gemfile +0 -19
- data/test/core_test_app/Gemfile.lock +0 -147
- data/test/core_test_app/app/components/border_layout_panel.rb +0 -4
- data/test/core_test_app/app/components/card_component_loader.rb +0 -25
- data/test/core_test_app/app/components/component_with_custom_css.rb +0 -11
- data/test/core_test_app/app/components/component_with_js_mixin/javascripts/component_with_js_mixin.js +0 -5
- data/test/core_test_app/app/components/component_with_js_mixin/javascripts/extra_one.js +0 -2
- data/test/core_test_app/app/components/component_with_js_mixin/javascripts/extra_two.js +0 -2
- data/test/core_test_app/app/components/component_with_nested_through.rb +0 -28
- data/test/core_test_app/app/components/component_with_required_js.rb +0 -24
- data/test/core_test_app/app/components/dsl_delegated_properties.rb +0 -4
- data/test/core_test_app/app/components/dsl_delegated_properties_base.rb +0 -5
- data/test/core_test_app/app/components/extended_component_with_actions.rb +0 -9
- data/test/core_test_app/app/components/extended_component_with_js_mixin/javascripts/some_method_set.js +0 -5
- data/test/core_test_app/app/components/extended_component_with_js_mixin.rb +0 -10
- data/test/core_test_app/app/components/extended_localized_panel.rb +0 -2
- data/test/core_test_app/app/components/included.js +0 -5
- data/test/core_test_app/app/components/inline_composite.rb +0 -13
- data/test/core_test_app/app/components/loader_of_component_with_custom_css.rb +0 -23
- data/test/core_test_app/app/components/multipane_component_loader.rb +0 -41
- data/test/core_test_app/app/components/nested_component.rb +0 -17
- data/test/core_test_app/app/components/panel_with_plugin.rb +0 -9
- data/test/core_test_app/app/components/scoped_components/deep_scoped_components/some_deep_scoped_component.rb +0 -10
- data/test/core_test_app/app/components/scoped_components/extended_scoped_component.rb +0 -8
- data/test/core_test_app/app/components/scoped_components/some_scoped_component.rb +0 -8
- data/test/core_test_app/app/components/some_ext_component.rb +0 -8
- data/test/core_test_app/app/components/some_plugin.rb +0 -40
- data/test/core_test_app/app/components/stateful_component.rb +0 -46
- data/test/core_test_app/app/components/stateful_component_with_shared_state.rb +0 -11
- data/test/core_test_app/config/database.yml.travis +0 -11
- data/test/core_test_app/db/schema.rb +0 -29
- data/test/core_test_app/features/actions_and_tools.feature +0 -22
- data/test/core_test_app/features/basic.feature +0 -7
- data/test/core_test_app/features/client-server.feature +0 -19
- data/test/core_test_app/features/complex_component.feature +0 -18
- data/test/core_test_app/features/component.feature +0 -10
- data/test/core_test_app/features/component_loader.feature +0 -52
- data/test/core_test_app/features/composition.feature +0 -45
- data/test/core_test_app/features/config_to_dsl_delegation.feature +0 -10
- data/test/core_test_app/features/custom_css.feature +0 -17
- data/test/core_test_app/features/ext.direct.feature +0 -32
- data/test/core_test_app/features/file_inclusion.feature +0 -10
- data/test/core_test_app/features/i18n.feature +0 -35
- data/test/core_test_app/features/inheritance.feature +0 -18
- data/test/core_test_app/features/js_include.feature +0 -20
- data/test/core_test_app/features/nested_views.feature +0 -10
- data/test/core_test_app/features/persistence.feature +0 -34
- data/test/core_test_app/features/plugin.feature +0 -16
- data/test/core_test_app/features/rails_views.feature +0 -16
- data/test/core_test_app/features/scopes.feature +0 -14
- data/test/core_test_app/features/step_definitions/custom_css_steps.rb +0 -7
- data/test/core_test_app/features/step_definitions/generic_steps.rb +0 -64
- data/test/core_test_app/features/step_definitions/web_steps.rb +0 -219
- data/test/core_test_app/features/support/env.rb +0 -58
- data/test/core_test_app/features/support/paths.rb +0 -42
- data/test/core_test_app/spec/action_config_spec.rb +0 -15
- data/test/core_test_app/spec/actions_spec.rb +0 -96
- data/test/core_test_app/spec/base_spec.rb +0 -35
- data/test/core_test_app/spec/client_class_spec.rb +0 -17
- data/test/core_test_app/spec/composition_spec.rb +0 -118
- data/test/core_test_app/spec/core_ext_spec.rb +0 -27
- data/test/core_test_app/spec/endpoint_response_spec.rb +0 -17
- data/test/core_test_app/spec/javascript_spec.rb +0 -33
- data/test/core_test_app/spec/js_class_config_scope.rb +0 -37
- data/test/core_test_app/spec/panel_spec.rb +0 -11
- data/test/core_test_app/spec/services_spec.rb +0 -16
- data/test/core_test_app/spec/spec.opt +0 -2
- data/test/core_test_app/spec/spec_helper.rb +0 -27
- data/test/core_test_app/spec/state_spec.rb +0 -20
- data/test/core_test_app/vendor/plugins/.gitkeep +0 -0
- data/test/unit/core_ext_test.rb +0 -8
- data/test/unit/netzke_core_test.rb +0 -178
- data/uninstall.rb +0 -1
data/Manifest
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
CHANGELOG
|
2
|
-
LICENSE
|
3
|
-
Manifest
|
4
|
-
README.rdoc
|
5
|
-
Rakefile
|
6
|
-
TODO
|
7
|
-
autotest/discover.rb
|
8
|
-
generators/netzke_core/USAGE
|
9
|
-
generators/netzke_core/netzke_core_generator.rb
|
10
|
-
generators/netzke_core/templates/create_netzke_preferences.rb
|
11
|
-
init.rb
|
12
|
-
install.rb
|
13
|
-
javascripts/core.js
|
14
|
-
lib/app/controllers/netzke_controller.rb
|
15
|
-
lib/app/models/netzke_preference.rb
|
16
|
-
lib/netzke-core.rb
|
17
|
-
lib/netzke/action_view_ext.rb
|
18
|
-
lib/netzke/base.rb
|
19
|
-
lib/netzke/base_js.rb
|
20
|
-
lib/netzke/controller_extensions.rb
|
21
|
-
lib/netzke/core_ext.rb
|
22
|
-
lib/netzke/feedback_ghost.rb
|
23
|
-
lib/netzke/routing.rb
|
24
|
-
netzke-core.gemspec
|
25
|
-
stylesheets/core.css
|
26
|
-
tasks/netzke_core_tasks.rake
|
27
|
-
test/app_root/app/controllers/application_controller.rb
|
28
|
-
test/app_root/app/models/role.rb
|
29
|
-
test/app_root/app/models/user.rb
|
30
|
-
test/app_root/config/boot.rb
|
31
|
-
test/app_root/config/database.yml
|
32
|
-
test/app_root/config/environment.rb
|
33
|
-
test/app_root/config/environments/in_memory.rb
|
34
|
-
test/app_root/config/environments/mysql.rb
|
35
|
-
test/app_root/config/environments/postgresql.rb
|
36
|
-
test/app_root/config/environments/sqlite.rb
|
37
|
-
test/app_root/config/environments/sqlite3.rb
|
38
|
-
test/app_root/config/routes.rb
|
39
|
-
test/app_root/db/migrate/20081222035855_create_netzke_preferences.rb
|
40
|
-
test/app_root/db/migrate/20090423214303_create_roles.rb
|
41
|
-
test/app_root/db/migrate/20090423222114_create_users.rb
|
42
|
-
test/app_root/lib/console_with_fixtures.rb
|
43
|
-
test/app_root/script/console
|
44
|
-
test/fixtures/roles.yml
|
45
|
-
test/fixtures/users.yml
|
46
|
-
test/test_helper.rb
|
47
|
-
test/unit/core_ext_test.rb
|
48
|
-
test/unit/netzke_core_test.rb
|
49
|
-
test/unit/netzke_preference_test.rb
|
50
|
-
uninstall.rb
|
data/config/ci/before-travis.sh
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# Start xvfb in preparation for cucumber
|
2
|
-
sh -e /etc/init.d/xvfb start
|
3
|
-
|
4
|
-
# fetch extjs
|
5
|
-
wget http://cdn.sencha.io/ext-4.1.1a-gpl.zip
|
6
|
-
unzip -q -d test/core_test_app/public/ -n ext-4.1.1a-gpl.zip
|
7
|
-
mv test/core_test_app/public/ext-4.1.1a test/core_test_app/public/extjs
|
8
|
-
|
9
|
-
# cp db configuration
|
10
|
-
cp test/core_test_app/config/database.yml.travis test/core_test_app/config/database.yml
|
data/install.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Install hook code here
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module Netzke
|
2
|
-
module Core
|
3
|
-
# Allows deep-nested configuration without previously defining the hash tree:
|
4
|
-
#
|
5
|
-
# config = Netzke::Core::OptionsHash.new
|
6
|
-
# config.basepack.grid_panel.add_form.with_tools = true
|
7
|
-
# config
|
8
|
-
# => {:basepack=>{:grid_panel=>{:add_form=>{:with_tools=>true}}}}
|
9
|
-
class OptionsHash < ::Hash
|
10
|
-
def []=(key, value)
|
11
|
-
super(key.to_sym, value)
|
12
|
-
end
|
13
|
-
|
14
|
-
def [](key)
|
15
|
-
super(key.to_sym)
|
16
|
-
end
|
17
|
-
|
18
|
-
def method_missing(name, *args)
|
19
|
-
if name.to_s =~ /(.*)=$/
|
20
|
-
self[$1.to_sym] = args.first
|
21
|
-
else
|
22
|
-
self.has_key?(name) ? self[name] : self[name] = OptionsHash.new
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
class String
|
2
|
-
def jsonify
|
3
|
-
self.camelize(:lower)
|
4
|
-
end
|
5
|
-
|
6
|
-
# Converts self to "literal JSON"-string - one that doesn't get quotes appended when being sent "to_json" method
|
7
|
-
# TODO: get rid of it
|
8
|
-
def l
|
9
|
-
ActiveSupport::JSON::Variable.new(self)
|
10
|
-
end
|
11
|
-
|
12
|
-
# removes JS-comments (both single- and multi-line) from the string
|
13
|
-
def strip_js_comments
|
14
|
-
if defined?(::Rails) && Rails.application.assets.js_compressor
|
15
|
-
compressor = Rails.application.assets.js_compressor
|
16
|
-
compressor.processor.call(nil, self)
|
17
|
-
else
|
18
|
-
self
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
# "false" => false, "whatever_else" => true
|
23
|
-
def to_b
|
24
|
-
self != "false"
|
25
|
-
end
|
26
|
-
end
|
data/netzke-core.gemspec
DELETED
@@ -1,253 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "netzke-core"
|
8
|
-
s.version = "0.8.1"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["nomadcoder"]
|
12
|
-
s.date = "2012-12-15"
|
13
|
-
s.description = "Allows building complex RIA by greatly facilitating modular development"
|
14
|
-
s.email = "nmcoder@gmail.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".autotest",
|
21
|
-
".travis.yml",
|
22
|
-
"CHANGELOG.md",
|
23
|
-
"LICENSE",
|
24
|
-
"Manifest",
|
25
|
-
"README.md",
|
26
|
-
"Rakefile",
|
27
|
-
"TODO.md",
|
28
|
-
"app/controllers/netzke_controller.rb",
|
29
|
-
"config/ci/before-travis.sh",
|
30
|
-
"init.rb",
|
31
|
-
"install.rb",
|
32
|
-
"javascripts/base.js",
|
33
|
-
"javascripts/ext.js",
|
34
|
-
"javascripts/js_extensions.js",
|
35
|
-
"lib/netzke-core.rb",
|
36
|
-
"lib/netzke/base.rb",
|
37
|
-
"lib/netzke/core.rb",
|
38
|
-
"lib/netzke/core/action_config.rb",
|
39
|
-
"lib/netzke/core/actions.rb",
|
40
|
-
"lib/netzke/core/client_class.rb",
|
41
|
-
"lib/netzke/core/component_config.rb",
|
42
|
-
"lib/netzke/core/composition.rb",
|
43
|
-
"lib/netzke/core/config_to_dsl_delegator.rb",
|
44
|
-
"lib/netzke/core/configuration.rb",
|
45
|
-
"lib/netzke/core/css_config.rb",
|
46
|
-
"lib/netzke/core/dynamic_assets.rb",
|
47
|
-
"lib/netzke/core/embedding.rb",
|
48
|
-
"lib/netzke/core/endpoint_response.rb",
|
49
|
-
"lib/netzke/core/javascript.rb",
|
50
|
-
"lib/netzke/core/options_hash.rb",
|
51
|
-
"lib/netzke/core/panel.rb",
|
52
|
-
"lib/netzke/core/plugins.rb",
|
53
|
-
"lib/netzke/core/railz.rb",
|
54
|
-
"lib/netzke/core/railz/action_view_ext.rb",
|
55
|
-
"lib/netzke/core/railz/action_view_ext/ext.rb",
|
56
|
-
"lib/netzke/core/railz/controller_extensions.rb",
|
57
|
-
"lib/netzke/core/railz/engine.rb",
|
58
|
-
"lib/netzke/core/railz/routes.rb",
|
59
|
-
"lib/netzke/core/ruby_ext.rb",
|
60
|
-
"lib/netzke/core/ruby_ext/array.rb",
|
61
|
-
"lib/netzke/core/ruby_ext/hash.rb",
|
62
|
-
"lib/netzke/core/ruby_ext/string.rb",
|
63
|
-
"lib/netzke/core/ruby_ext/symbol.rb",
|
64
|
-
"lib/netzke/core/ruby_ext/time_with_zone.rb",
|
65
|
-
"lib/netzke/core/services.rb",
|
66
|
-
"lib/netzke/core/session.rb",
|
67
|
-
"lib/netzke/core/state.rb",
|
68
|
-
"lib/netzke/core/stylesheets.rb",
|
69
|
-
"lib/netzke/core/version.rb",
|
70
|
-
"lib/netzke/plugin.rb",
|
71
|
-
"lib/tasks/netzke_core_tasks.rake",
|
72
|
-
"netzke-core.gemspec",
|
73
|
-
"stylesheets/core.css",
|
74
|
-
"test/core_test_app/.gitignore",
|
75
|
-
"test/core_test_app/.powrc",
|
76
|
-
"test/core_test_app/.rvmrc",
|
77
|
-
"test/core_test_app/Gemfile",
|
78
|
-
"test/core_test_app/Gemfile.lock",
|
79
|
-
"test/core_test_app/README",
|
80
|
-
"test/core_test_app/Rakefile",
|
81
|
-
"test/core_test_app/app/components/border_layout_panel.rb",
|
82
|
-
"test/core_test_app/app/components/card_component_loader.rb",
|
83
|
-
"test/core_test_app/app/components/component_loader.rb",
|
84
|
-
"test/core_test_app/app/components/component_loader/javascripts/component_loader.js",
|
85
|
-
"test/core_test_app/app/components/component_with_actions.rb",
|
86
|
-
"test/core_test_app/app/components/component_with_custom_css.rb",
|
87
|
-
"test/core_test_app/app/components/component_with_custom_css/stylesheets/custom.css",
|
88
|
-
"test/core_test_app/app/components/component_with_js_mixin.rb",
|
89
|
-
"test/core_test_app/app/components/component_with_js_mixin/javascripts/component_with_js_mixin.js",
|
90
|
-
"test/core_test_app/app/components/component_with_js_mixin/javascripts/extra_one.js",
|
91
|
-
"test/core_test_app/app/components/component_with_js_mixin/javascripts/extra_two.js",
|
92
|
-
"test/core_test_app/app/components/component_with_js_mixin/javascripts/method_set_one.js",
|
93
|
-
"test/core_test_app/app/components/component_with_js_mixin/javascripts/method_set_two.js",
|
94
|
-
"test/core_test_app/app/components/component_with_nested_through.rb",
|
95
|
-
"test/core_test_app/app/components/component_with_prebuilt_toolbar_control.rb",
|
96
|
-
"test/core_test_app/app/components/component_with_prebuilt_toolbar_control/javascripts/component_with_prebuilt_toolbar_control.js",
|
97
|
-
"test/core_test_app/app/components/component_with_required_js.rb",
|
98
|
-
"test/core_test_app/app/components/configurable_on_class_level.rb",
|
99
|
-
"test/core_test_app/app/components/dsl_delegated_properties.rb",
|
100
|
-
"test/core_test_app/app/components/dsl_delegated_properties_base.rb",
|
101
|
-
"test/core_test_app/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js",
|
102
|
-
"test/core_test_app/app/components/ext_direct/composite.rb",
|
103
|
-
"test/core_test_app/app/components/ext_direct/details.rb",
|
104
|
-
"test/core_test_app/app/components/ext_direct/selector.rb",
|
105
|
-
"test/core_test_app/app/components/ext_direct/statistics.rb",
|
106
|
-
"test/core_test_app/app/components/extended_component_with_actions.rb",
|
107
|
-
"test/core_test_app/app/components/extended_component_with_js_mixin.rb",
|
108
|
-
"test/core_test_app/app/components/extended_component_with_js_mixin/javascripts/some_method_set.js",
|
109
|
-
"test/core_test_app/app/components/extended_localized_panel.rb",
|
110
|
-
"test/core_test_app/app/components/extended_server_caller.rb",
|
111
|
-
"test/core_test_app/app/components/hello_world.rb",
|
112
|
-
"test/core_test_app/app/components/hello_world/javascripts/hello_world.js",
|
113
|
-
"test/core_test_app/app/components/included.js",
|
114
|
-
"test/core_test_app/app/components/inline_composite.rb",
|
115
|
-
"test/core_test_app/app/components/kinda_complex_component.rb",
|
116
|
-
"test/core_test_app/app/components/kinda_complex_component/basic_stuff.rb",
|
117
|
-
"test/core_test_app/app/components/kinda_complex_component/extra_stuff.rb",
|
118
|
-
"test/core_test_app/app/components/loader_of_component_with_custom_css.rb",
|
119
|
-
"test/core_test_app/app/components/localized_panel.rb",
|
120
|
-
"test/core_test_app/app/components/multipane_component_loader.rb",
|
121
|
-
"test/core_test_app/app/components/nested_component.rb",
|
122
|
-
"test/core_test_app/app/components/panel_with_plugin.rb",
|
123
|
-
"test/core_test_app/app/components/panel_with_tools.rb",
|
124
|
-
"test/core_test_app/app/components/plugin_with_components.rb",
|
125
|
-
"test/core_test_app/app/components/scoped_components/deep_scoped_components/some_deep_scoped_component.rb",
|
126
|
-
"test/core_test_app/app/components/scoped_components/extended_scoped_component.rb",
|
127
|
-
"test/core_test_app/app/components/scoped_components/some_scoped_component.rb",
|
128
|
-
"test/core_test_app/app/components/server_caller.rb",
|
129
|
-
"test/core_test_app/app/components/server_caller/javascripts/server_caller.js",
|
130
|
-
"test/core_test_app/app/components/server_counter.rb",
|
131
|
-
"test/core_test_app/app/components/server_counter/javascripts/server_counter.js",
|
132
|
-
"test/core_test_app/app/components/simple_authentication_component.rb",
|
133
|
-
"test/core_test_app/app/components/simple_component.rb",
|
134
|
-
"test/core_test_app/app/components/simple_composite.rb",
|
135
|
-
"test/core_test_app/app/components/simple_form_with_file_upload.rb",
|
136
|
-
"test/core_test_app/app/components/simple_panel.rb",
|
137
|
-
"test/core_test_app/app/components/simple_tab_panel.rb",
|
138
|
-
"test/core_test_app/app/components/simple_window.rb",
|
139
|
-
"test/core_test_app/app/components/some_composite.rb",
|
140
|
-
"test/core_test_app/app/components/some_ext_component.rb",
|
141
|
-
"test/core_test_app/app/components/some_plugin.rb",
|
142
|
-
"test/core_test_app/app/components/stateful_component.rb",
|
143
|
-
"test/core_test_app/app/components/stateful_component_with_shared_state.rb",
|
144
|
-
"test/core_test_app/app/components/window_with_simple_component.rb",
|
145
|
-
"test/core_test_app/app/controllers/application_controller.rb",
|
146
|
-
"test/core_test_app/app/controllers/components_controller.rb",
|
147
|
-
"test/core_test_app/app/controllers/simple_rails_controller.rb",
|
148
|
-
"test/core_test_app/app/controllers/welcome_controller.rb",
|
149
|
-
"test/core_test_app/app/helpers/application_helper.rb",
|
150
|
-
"test/core_test_app/app/views/components/panel_with_autoload.html.erb",
|
151
|
-
"test/core_test_app/app/views/components/some_tab_panel.html.erb",
|
152
|
-
"test/core_test_app/app/views/layouts/application.html.erb",
|
153
|
-
"test/core_test_app/app/views/layouts/nested.html.erb",
|
154
|
-
"test/core_test_app/app/views/simple_rails/multiple_nested.html.erb",
|
155
|
-
"test/core_test_app/app/views/simple_rails/multiple_of_different_class.html.erb",
|
156
|
-
"test/core_test_app/app/views/simple_rails/multiple_of_same_class.html.erb",
|
157
|
-
"test/core_test_app/app/views/simple_rails/panel.html.erb",
|
158
|
-
"test/core_test_app/config.ru",
|
159
|
-
"test/core_test_app/config/application.rb",
|
160
|
-
"test/core_test_app/config/boot.rb",
|
161
|
-
"test/core_test_app/config/database.yml",
|
162
|
-
"test/core_test_app/config/database.yml.travis",
|
163
|
-
"test/core_test_app/config/environment.rb",
|
164
|
-
"test/core_test_app/config/environments/development.rb",
|
165
|
-
"test/core_test_app/config/environments/production.rb",
|
166
|
-
"test/core_test_app/config/environments/test.rb",
|
167
|
-
"test/core_test_app/config/initializers/backtrace_silencers.rb",
|
168
|
-
"test/core_test_app/config/initializers/inflections.rb",
|
169
|
-
"test/core_test_app/config/initializers/mime_types.rb",
|
170
|
-
"test/core_test_app/config/initializers/netzke.rb",
|
171
|
-
"test/core_test_app/config/initializers/secret_token.rb",
|
172
|
-
"test/core_test_app/config/initializers/session_store.rb",
|
173
|
-
"test/core_test_app/config/locales/en.yml",
|
174
|
-
"test/core_test_app/config/locales/es.yml",
|
175
|
-
"test/core_test_app/config/routes.rb",
|
176
|
-
"test/core_test_app/db/development_structure.sql",
|
177
|
-
"test/core_test_app/db/schema.rb",
|
178
|
-
"test/core_test_app/db/seeds.rb",
|
179
|
-
"test/core_test_app/features/actions_and_tools.feature",
|
180
|
-
"test/core_test_app/features/basic.feature",
|
181
|
-
"test/core_test_app/features/client-server.feature",
|
182
|
-
"test/core_test_app/features/complex_component.feature",
|
183
|
-
"test/core_test_app/features/component.feature",
|
184
|
-
"test/core_test_app/features/component_loader.feature",
|
185
|
-
"test/core_test_app/features/composition.feature",
|
186
|
-
"test/core_test_app/features/config_to_dsl_delegation.feature",
|
187
|
-
"test/core_test_app/features/custom_css.feature",
|
188
|
-
"test/core_test_app/features/ext.direct.feature",
|
189
|
-
"test/core_test_app/features/file_inclusion.feature",
|
190
|
-
"test/core_test_app/features/i18n.feature",
|
191
|
-
"test/core_test_app/features/inheritance.feature",
|
192
|
-
"test/core_test_app/features/js_include.feature",
|
193
|
-
"test/core_test_app/features/nested_views.feature",
|
194
|
-
"test/core_test_app/features/persistence.feature",
|
195
|
-
"test/core_test_app/features/plugin.feature",
|
196
|
-
"test/core_test_app/features/rails_views.feature",
|
197
|
-
"test/core_test_app/features/scopes.feature",
|
198
|
-
"test/core_test_app/features/step_definitions/custom_css_steps.rb",
|
199
|
-
"test/core_test_app/features/step_definitions/generic_steps.rb",
|
200
|
-
"test/core_test_app/features/step_definitions/web_steps.rb",
|
201
|
-
"test/core_test_app/features/support/env.rb",
|
202
|
-
"test/core_test_app/features/support/paths.rb",
|
203
|
-
"test/core_test_app/lib/tasks/.gitkeep",
|
204
|
-
"test/core_test_app/public/404.html",
|
205
|
-
"test/core_test_app/public/422.html",
|
206
|
-
"test/core_test_app/public/500.html",
|
207
|
-
"test/core_test_app/public/favicon.ico",
|
208
|
-
"test/core_test_app/public/images/icons/accept.png",
|
209
|
-
"test/core_test_app/public/images/icons/anchor.png",
|
210
|
-
"test/core_test_app/public/images/icons/tick.png",
|
211
|
-
"test/core_test_app/public/images/rails.png",
|
212
|
-
"test/core_test_app/public/robots.txt",
|
213
|
-
"test/core_test_app/script/rails",
|
214
|
-
"test/core_test_app/spec/action_config_spec.rb",
|
215
|
-
"test/core_test_app/spec/actions_spec.rb",
|
216
|
-
"test/core_test_app/spec/base_spec.rb",
|
217
|
-
"test/core_test_app/spec/client_class_spec.rb",
|
218
|
-
"test/core_test_app/spec/component",
|
219
|
-
"test/core_test_app/spec/composition_spec.rb",
|
220
|
-
"test/core_test_app/spec/core_ext_spec.rb",
|
221
|
-
"test/core_test_app/spec/endpoint_response_spec.rb",
|
222
|
-
"test/core_test_app/spec/javascript_spec.rb",
|
223
|
-
"test/core_test_app/spec/js_class_config_scope.rb",
|
224
|
-
"test/core_test_app/spec/panel_spec.rb",
|
225
|
-
"test/core_test_app/spec/services_spec.rb",
|
226
|
-
"test/core_test_app/spec/spec.opt",
|
227
|
-
"test/core_test_app/spec/spec_helper.rb",
|
228
|
-
"test/core_test_app/spec/state_spec.rb",
|
229
|
-
"test/core_test_app/tmp/restart.txt",
|
230
|
-
"test/core_test_app/vendor/plugins/.gitkeep",
|
231
|
-
"test/test_helper.rb",
|
232
|
-
"test/unit/core_ext_test.rb",
|
233
|
-
"test/unit/netzke_core_test.rb",
|
234
|
-
"uninstall.rb"
|
235
|
-
]
|
236
|
-
s.homepage = "http://netzke.org"
|
237
|
-
s.require_paths = ["lib"]
|
238
|
-
s.rubygems_version = "1.8.24"
|
239
|
-
s.summary = "Client-server GUI components with Sencha Ext JS and Ruby"
|
240
|
-
|
241
|
-
if s.respond_to? :specification_version then
|
242
|
-
s.specification_version = 3
|
243
|
-
|
244
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
245
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 3.1.0"])
|
246
|
-
else
|
247
|
-
s.add_dependency(%q<activesupport>, [">= 3.1.0"])
|
248
|
-
end
|
249
|
-
else
|
250
|
-
s.add_dependency(%q<activesupport>, [">= 3.1.0"])
|
251
|
-
end
|
252
|
-
end
|
253
|
-
|
data/test/core_test_app/.powrc
DELETED
data/test/core_test_app/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm 1.9.3
|
data/test/core_test_app/Gemfile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~>3.2.0'
|
4
|
-
|
5
|
-
gem 'sqlite3'
|
6
|
-
|
7
|
-
gem 'uglifier'
|
8
|
-
gem 'execjs'
|
9
|
-
|
10
|
-
# Bundle gems for the local environment. Make sure to
|
11
|
-
# put test-only gems in this group so their generators
|
12
|
-
# and rake tasks are available in development mode:
|
13
|
-
group :test do
|
14
|
-
gem 'capybara', '~>1'
|
15
|
-
gem 'database_cleaner'
|
16
|
-
gem 'cucumber-rails', :require => false
|
17
|
-
gem 'cucumber'
|
18
|
-
gem 'rspec-rails'
|
19
|
-
end
|
@@ -1,147 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
actionmailer (3.2.9)
|
5
|
-
actionpack (= 3.2.9)
|
6
|
-
mail (~> 2.4.4)
|
7
|
-
actionpack (3.2.9)
|
8
|
-
activemodel (= 3.2.9)
|
9
|
-
activesupport (= 3.2.9)
|
10
|
-
builder (~> 3.0.0)
|
11
|
-
erubis (~> 2.7.0)
|
12
|
-
journey (~> 1.0.4)
|
13
|
-
rack (~> 1.4.0)
|
14
|
-
rack-cache (~> 1.2)
|
15
|
-
rack-test (~> 0.6.1)
|
16
|
-
sprockets (~> 2.2.1)
|
17
|
-
activemodel (3.2.9)
|
18
|
-
activesupport (= 3.2.9)
|
19
|
-
builder (~> 3.0.0)
|
20
|
-
activerecord (3.2.9)
|
21
|
-
activemodel (= 3.2.9)
|
22
|
-
activesupport (= 3.2.9)
|
23
|
-
arel (~> 3.0.2)
|
24
|
-
tzinfo (~> 0.3.29)
|
25
|
-
activeresource (3.2.9)
|
26
|
-
activemodel (= 3.2.9)
|
27
|
-
activesupport (= 3.2.9)
|
28
|
-
activesupport (3.2.9)
|
29
|
-
i18n (~> 0.6)
|
30
|
-
multi_json (~> 1.0)
|
31
|
-
addressable (2.3.2)
|
32
|
-
arel (3.0.2)
|
33
|
-
builder (3.0.4)
|
34
|
-
capybara (1.1.4)
|
35
|
-
mime-types (>= 1.16)
|
36
|
-
nokogiri (>= 1.3.3)
|
37
|
-
rack (>= 1.0.0)
|
38
|
-
rack-test (>= 0.5.4)
|
39
|
-
selenium-webdriver (~> 2.0)
|
40
|
-
xpath (~> 0.1.4)
|
41
|
-
childprocess (0.3.6)
|
42
|
-
ffi (~> 1.0, >= 1.0.6)
|
43
|
-
cucumber (1.2.1)
|
44
|
-
builder (>= 2.1.2)
|
45
|
-
diff-lcs (>= 1.1.3)
|
46
|
-
gherkin (~> 2.11.0)
|
47
|
-
json (>= 1.4.6)
|
48
|
-
cucumber-rails (1.3.0)
|
49
|
-
capybara (>= 1.1.2)
|
50
|
-
cucumber (>= 1.1.8)
|
51
|
-
nokogiri (>= 1.5.0)
|
52
|
-
database_cleaner (0.9.1)
|
53
|
-
diff-lcs (1.1.3)
|
54
|
-
erubis (2.7.0)
|
55
|
-
execjs (1.4.0)
|
56
|
-
multi_json (~> 1.0)
|
57
|
-
ffi (1.1.5)
|
58
|
-
gherkin (2.11.5)
|
59
|
-
hike (1.2.1)
|
60
|
-
i18n (0.6.1)
|
61
|
-
journey (1.0.4)
|
62
|
-
json (1.7.5)
|
63
|
-
libwebsocket (0.1.7.1)
|
64
|
-
addressable
|
65
|
-
websocket
|
66
|
-
mail (2.4.4)
|
67
|
-
i18n (>= 0.4.0)
|
68
|
-
mime-types (~> 1.16)
|
69
|
-
treetop (~> 1.4.8)
|
70
|
-
mime-types (1.19)
|
71
|
-
multi_json (1.4.0)
|
72
|
-
nokogiri (1.5.5)
|
73
|
-
polyglot (0.3.3)
|
74
|
-
rack (1.4.1)
|
75
|
-
rack-cache (1.2)
|
76
|
-
rack (>= 0.4)
|
77
|
-
rack-ssl (1.3.2)
|
78
|
-
rack
|
79
|
-
rack-test (0.6.2)
|
80
|
-
rack (>= 1.0)
|
81
|
-
rails (3.2.9)
|
82
|
-
actionmailer (= 3.2.9)
|
83
|
-
actionpack (= 3.2.9)
|
84
|
-
activerecord (= 3.2.9)
|
85
|
-
activeresource (= 3.2.9)
|
86
|
-
activesupport (= 3.2.9)
|
87
|
-
bundler (~> 1.0)
|
88
|
-
railties (= 3.2.9)
|
89
|
-
railties (3.2.9)
|
90
|
-
actionpack (= 3.2.9)
|
91
|
-
activesupport (= 3.2.9)
|
92
|
-
rack-ssl (~> 1.3.2)
|
93
|
-
rake (>= 0.8.7)
|
94
|
-
rdoc (~> 3.4)
|
95
|
-
thor (>= 0.14.6, < 2.0)
|
96
|
-
rake (10.0.2)
|
97
|
-
rdoc (3.12)
|
98
|
-
json (~> 1.4)
|
99
|
-
rspec-core (2.12.1)
|
100
|
-
rspec-expectations (2.12.0)
|
101
|
-
diff-lcs (~> 1.1.3)
|
102
|
-
rspec-mocks (2.12.0)
|
103
|
-
rspec-rails (2.12.0)
|
104
|
-
actionpack (>= 3.0)
|
105
|
-
activesupport (>= 3.0)
|
106
|
-
railties (>= 3.0)
|
107
|
-
rspec-core (~> 2.12.0)
|
108
|
-
rspec-expectations (~> 2.12.0)
|
109
|
-
rspec-mocks (~> 2.12.0)
|
110
|
-
rubyzip (0.9.9)
|
111
|
-
selenium-webdriver (2.26.0)
|
112
|
-
childprocess (>= 0.2.5)
|
113
|
-
libwebsocket (~> 0.1.3)
|
114
|
-
multi_json (~> 1.0)
|
115
|
-
rubyzip
|
116
|
-
sprockets (2.2.2)
|
117
|
-
hike (~> 1.2)
|
118
|
-
multi_json (~> 1.0)
|
119
|
-
rack (~> 1.0)
|
120
|
-
tilt (~> 1.1, != 1.3.0)
|
121
|
-
sqlite3 (1.3.6)
|
122
|
-
thor (0.16.0)
|
123
|
-
tilt (1.3.3)
|
124
|
-
treetop (1.4.12)
|
125
|
-
polyglot
|
126
|
-
polyglot (>= 0.3.1)
|
127
|
-
tzinfo (0.3.35)
|
128
|
-
uglifier (1.3.0)
|
129
|
-
execjs (>= 0.3.0)
|
130
|
-
multi_json (~> 1.0, >= 1.0.2)
|
131
|
-
websocket (1.0.4)
|
132
|
-
xpath (0.1.4)
|
133
|
-
nokogiri (~> 1.3)
|
134
|
-
|
135
|
-
PLATFORMS
|
136
|
-
ruby
|
137
|
-
|
138
|
-
DEPENDENCIES
|
139
|
-
capybara (~> 1)
|
140
|
-
cucumber
|
141
|
-
cucumber-rails
|
142
|
-
database_cleaner
|
143
|
-
execjs
|
144
|
-
rails (~> 3.2.0)
|
145
|
-
rspec-rails
|
146
|
-
sqlite3
|
147
|
-
uglifier
|
@@ -1,25 +0,0 @@
|
|
1
|
-
class CardComponentLoader < Netzke::Base
|
2
|
-
js_property :layout, :card
|
3
|
-
|
4
|
-
action :load_server_caller
|
5
|
-
action :load_extended_server_caller
|
6
|
-
|
7
|
-
js_property :bbar, [:load_server_caller, :load_extended_server_caller]
|
8
|
-
|
9
|
-
component :server_caller
|
10
|
-
component :extended_server_caller
|
11
|
-
|
12
|
-
js_method :on_load_server_caller, <<-JS
|
13
|
-
function(){
|
14
|
-
var existing = this.items.findBy(function(i){ return i.getId() == this.getId() + "__server_caller"}, this);
|
15
|
-
if (existing) this.getLayout().setActiveItem(existing); else this.netzkeLoadComponent({name: 'server_caller', container: this, append: true, callback: function(el){this.getLayout().setActiveItem(el)}, scope: this});
|
16
|
-
}
|
17
|
-
JS
|
18
|
-
|
19
|
-
js_method :on_load_extended_server_caller, <<-JS
|
20
|
-
function(){
|
21
|
-
var existing = this.items.findBy(function(i){ return i.getId() == this.getId() + "__extended_server_caller"}, this);
|
22
|
-
if (existing) this.getLayout().setActiveItem(existing); else this.netzkeLoadComponent({name: 'extended_server_caller', container: this, append: true, callback: function(el){this.getLayout().setActiveItem(el)}, scope: this});
|
23
|
-
}
|
24
|
-
JS
|
25
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# This component has the header hidden by custom CSS
|
2
|
-
class ComponentWithCustomCss < Netzke::Base
|
3
|
-
js_configure do |c|
|
4
|
-
c.html = "A component with the body hidden by means of custom CSS"
|
5
|
-
c.title = "ComponentWithCustomCss"
|
6
|
-
end
|
7
|
-
|
8
|
-
css_configure do |c|
|
9
|
-
c.require :custom
|
10
|
-
end
|
11
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Here the child component some_window gets declared with items being Netzke components in their turn
|
2
|
-
class ComponentWithNestedThrough < Netzke::Base
|
3
|
-
js_property :layout, :fit
|
4
|
-
js_property :border, true
|
5
|
-
|
6
|
-
js_method :init_component, <<-JS
|
7
|
-
function(){
|
8
|
-
this.tools = [{type: 'gear', handler: this.onGear, scope: this}];
|
9
|
-
this.callParent();
|
10
|
-
}
|
11
|
-
JS
|
12
|
-
|
13
|
-
component :some_window, :class_name => "SimpleWindow", :width => 500, :layout => :fit, :modal => true,
|
14
|
-
:items => [{
|
15
|
-
:class_name => "SimpleTabPanel",
|
16
|
-
:prevent_header => true,
|
17
|
-
:items => [{:class_name => "ServerCaller"}, {:class_name => "ExtendedServerCaller"}]
|
18
|
-
}]
|
19
|
-
|
20
|
-
js_method :on_gear, <<-JS
|
21
|
-
function(){
|
22
|
-
this.netzkeLoadComponent({name: 'some_window', callback: function(w){
|
23
|
-
w.show();
|
24
|
-
}});
|
25
|
-
}
|
26
|
-
JS
|
27
|
-
|
28
|
-
end
|