spiderfw 0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +4 -0
- data/Rakefile +74 -0
- data/apps/cas_server/_init.rb +23 -0
- data/apps/cas_server/config/options.rb +9 -0
- data/apps/cas_server/controllers/mixins/cas_login_mixin.rb +353 -0
- data/apps/cas_server/lib/cas.rb +329 -0
- data/apps/cas_server/lib/utils.rb +30 -0
- data/apps/cas_server/models/login_ticket.rb +11 -0
- data/apps/cas_server/models/mixins/consumable.rb +10 -0
- data/apps/cas_server/models/proxy_granting_ticket.rb +12 -0
- data/apps/cas_server/models/proxy_ticket.rb +12 -0
- data/apps/cas_server/models/service_ticket.rb +22 -0
- data/apps/cas_server/models/ticket.rb +20 -0
- data/apps/cas_server/models/ticket_granting_ticket.rb +15 -0
- data/apps/cas_server/views/logout.shtml +3 -0
- data/apps/core/admin/_init.rb +23 -0
- data/apps/core/admin/admin.rb +17 -0
- data/apps/core/admin/controllers/admin_controller.rb +15 -0
- data/apps/core/admin/views/index.shtml +1 -0
- data/apps/core/admin/views/spider_admin.layout.shtml +23 -0
- data/apps/core/admin/widgets/admin_menu/admin_menu.rb +17 -0
- data/apps/core/auth/_init.rb +42 -0
- data/apps/core/auth/controllers/login_controller.rb +94 -0
- data/apps/core/auth/controllers/mixins/auth_helper.rb +114 -0
- data/apps/core/auth/controllers/mixins/http_basic_auth.rb +24 -0
- data/apps/core/auth/controllers/mixins/http_digest_auth.rb +26 -0
- data/apps/core/auth/lib/authenticable.rb +86 -0
- data/apps/core/auth/lib/authenticator.rb +11 -0
- data/apps/core/auth/lib/digest_authenticator.rb +44 -0
- data/apps/core/auth/lib/login_authenticator.rb +27 -0
- data/apps/core/auth/models/digest_user.rb +34 -0
- data/apps/core/auth/models/group.rb +22 -0
- data/apps/core/auth/models/login_user.rb +15 -0
- data/apps/core/auth/models/mixins/access_control.rb +71 -0
- data/apps/core/auth/models/mixins/authentication_tracking.rb +19 -0
- data/apps/core/auth/models/super_user.rb +8 -0
- data/apps/core/auth/models/user.rb +15 -0
- data/apps/core/auth/po/it/spider_auth.po +33 -0
- data/apps/core/auth/po/spider_auth.pot +31 -0
- data/apps/core/auth/views/login.shtml +25 -0
- data/apps/core/components/_init.rb +21 -0
- data/apps/core/components/po/it/spider_components.po +52 -0
- data/apps/core/components/po/spider_components.pot +53 -0
- data/apps/core/components/public/css/admin.css +73 -0
- data/apps/core/components/public/css/crud.css +58 -0
- data/apps/core/components/public/css/img/add.gif +0 -0
- data/apps/core/components/public/css/img/ajax-loader.gif +0 -0
- data/apps/core/components/public/css/img/back.gif +0 -0
- data/apps/core/components/public/css/img/bg_header.png +0 -0
- data/apps/core/components/public/css/img/body_bg.jpg +0 -0
- data/apps/core/components/public/css/img/gray_gradient.gif +0 -0
- data/apps/core/components/public/css/img/li_bg.png +0 -0
- data/apps/core/components/public/css/img/li_bg_active.png +0 -0
- data/apps/core/components/public/css/img/li_bg_hover.png +0 -0
- data/apps/core/components/public/css/img/logo.png +0 -0
- data/apps/core/components/public/css/img/menu_bg.png +0 -0
- data/apps/core/components/public/css/img/menu_bottom.png +0 -0
- data/apps/core/components/public/css/img/menu_top.png +0 -0
- data/apps/core/components/public/css/img/section-bottom.jpg +0 -0
- data/apps/core/components/public/css/list.css +7 -0
- data/apps/core/components/public/css/menu.css +47 -0
- data/apps/core/components/public/css/spider.css +9 -0
- data/apps/core/components/public/css/switcher.css +13 -0
- data/apps/core/components/public/css/table.css +99 -0
- data/apps/core/components/public/js/inheritance.js +71 -0
- data/apps/core/components/public/js/jquery/jquery-1.3.2.js +4376 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/jquery-ui-1.7.2.custom.css +406 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/jquery-ui-1.7.2.custom.css +406 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/AUTHORS.txt +30 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/GPL-LICENSE.txt +278 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/MIT-LICENSE.txt +25 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/ChangeLog.txt +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/META.json +32 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.js +100 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.min.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.pack.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/test/index.html +197 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.js +97 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.min.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.pack.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.zip +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/jsdiff/jsdiff.js +159 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/qunit/testrunner.js +780 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/qunit/testsuite.css +120 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/simulate/jquery.simulate.js +152 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/jquery-1.3.2.js +4376 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.accordion.css +9 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.all.css +2 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.base.css +8 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.core.css +37 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.datepicker.css +62 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.dialog.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.progressbar.css +4 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.resizable.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.slider.css +17 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.tabs.css +11 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.theme.css +245 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/jquery-ui-1.7.2.custom.css +406 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.accordion.css +9 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.all.css +2 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.base.css +8 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.core.css +37 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.datepicker.css +62 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.dialog.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.progressbar.css +4 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.resizable.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.slider.css +17 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.tabs.css +11 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.theme.css +247 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.blind.js +49 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.bounce.js +78 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.clip.js +54 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.core.js +545 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.drop.js +50 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.explode.js +79 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.fold.js +56 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.highlight.js +48 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.pulsate.js +56 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.scale.js +180 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.shake.js +57 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.slide.js +50 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.transfer.js +45 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/jquery-ui-i18n.js +771 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ar.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-bg.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ca.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-cs.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-da.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-de.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-el.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-eo.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-es.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-fa.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-fi.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-fr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-he.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-hr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-hu.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-hy.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-id.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-is.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-it.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ja.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ko.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-lt.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-lv.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ms.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-nl.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-no.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-pl.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-pt-BR.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ro.js +22 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ru.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sk.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sl.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sq.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sr-SR.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sv.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-th.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-tr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-uk.js +25 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-zh-CN.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-zh-TW.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/jquery-ui-1.7.2.custom.js +9133 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.accordion.js +477 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.core.js +519 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.datepicker.js +1636 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.dialog.js +671 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.draggable.js +766 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.droppable.js +282 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.progressbar.js +116 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.resizable.js +800 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.selectable.js +257 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.slider.js +558 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.sortable.js +1019 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.tabs.js +685 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/version.txt +1 -0
- data/apps/core/components/public/js/jquery/jquery-ui/index.html +367 -0
- data/apps/core/components/public/js/jquery/jquery-ui/js/jquery-1.3.2.min.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/js/jquery-ui-1.7.2.custom.min.js +298 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/changelog.txt +27 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.css +48 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.js +808 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.min.js +13 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.pack.js +12 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.ajaxQueue.js +116 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.bgiframe.min.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.js +3558 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/thickbox-compressed.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/thickbox.css +163 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/todo +166 -0
- data/apps/core/components/public/js/jquery/plugins/jquery.form.js +653 -0
- data/apps/core/components/public/js/jquery/plugins/jquery.query-2.1.6.js +224 -0
- data/apps/core/components/public/js/jquery/plugins/jquery.url.js +214 -0
- data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.1.0.js +187 -0
- data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.1.0.min.js +1 -0
- data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.spider.1.0.js +193 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/changelog.txt +35 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/ajax-loader.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/file.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/folder-closed.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/folder.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/minus.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/plus.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-black-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-black.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-default-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-default.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-famfamfam-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-famfamfam.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-gray-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-gray.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-red-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-red.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.async.js +110 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.css +74 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.edit.js +37 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.js +256 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.min.js +15 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.pack.js +16 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.sortable.js +386 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/lib/jquery.cookie.js +92 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/lib/jquery.js +3534 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/todo +8 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/LICENSE +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/README +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/jquery.timepickr.css +34 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/jquery.timepickr.js +1413 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/jquery.timepickr.min.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/222222_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/2e83ff_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/454545_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/888888_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/aaaaaa_40x100_textures_01_flat_0.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/cccccc_40x100_textures_03_highlight_soft_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/cd0a0a_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/dadada_40x100_textures_02_glass_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/e6e6e6_40x100_textures_02_glass_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/fbf9ee_40x100_textures_02_glass_55.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/fef1ec_40x100_textures_05_inset_soft_95.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/ffffff_40x100_textures_02_glass_65.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/ffffff_40x100_textures_02_glass_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.accordion.css +9 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.all.css +4 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.allplugins.css +7 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.core.css +37 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.datepicker.css +60 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.dialog.css +13 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.progressbar.css +4 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.resizable.css +13 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.slider.css +13 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.tabs.css +9 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.theme.css +238 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.timepickr.css +44 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/ui.timepickr.js +2307 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/ui.timepickr.min.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/body-bg.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/btn-hover.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/btn.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/buttons.psd +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/index.html +326 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.anchorHandler.js +44 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.strings.js +290 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.ui.all.js +518 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.utils.js +255 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.utils.ui.min.js +26 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo-ff.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo-ie.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo.psd +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/package.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/reset.css +48 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/script_code.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/styles.css +308 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/themeroller_ready_black_200px.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/weather_sun.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/css/ui.dropslide.css +26 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/css/ui.timepickr.css +18 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/ui.dropslide.js +132 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/ui.timepickr.js +217 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/data/testrunner.js +1 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/index.html +34 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/otherlibs/jquery/1.2.1/jquery.js +11 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/otherlibs/jquery/1.2.3/jquery.js +11 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/qunit/testrunner.js +780 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/qunit/testsuite.css +120 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/styles.css +201 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/test.js +41 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/unit/ui.timepickr.js +154 -0
- data/apps/core/components/public/js/list.js +234 -0
- data/apps/core/components/public/js/spider.js +484 -0
- data/apps/core/components/public/widgets/search_table.js +10 -0
- data/apps/core/components/public/widgets/table.js +9 -0
- data/apps/core/components/widgets/admin/admin.rb +75 -0
- data/apps/core/components/widgets/admin/admin.shtml +16 -0
- data/apps/core/components/widgets/confirm/confirm.rb +37 -0
- data/apps/core/components/widgets/confirm/confirm.shtml +9 -0
- data/apps/core/components/widgets/crud/crud.rb +119 -0
- data/apps/core/components/widgets/crud/crud.shtml +59 -0
- data/apps/core/components/widgets/crud/form_table/form_table.rb +13 -0
- data/apps/core/components/widgets/crud/form_table/form_table.shtml +3 -0
- data/apps/core/components/widgets/list/list.rb +294 -0
- data/apps/core/components/widgets/list/list.shtml +38 -0
- data/apps/core/components/widgets/list/plugins/exportable/exportable_list.rb +19 -0
- data/apps/core/components/widgets/list/plugins/exportable/exportable_list.shtml +5 -0
- data/apps/core/components/widgets/menu/menu.rb +20 -0
- data/apps/core/components/widgets/menu/menu.shtml +13 -0
- data/apps/core/components/widgets/search_table/search_table.rb +22 -0
- data/apps/core/components/widgets/search_table/search_table.shtml +11 -0
- data/apps/core/components/widgets/switcher/switcher.rb +68 -0
- data/apps/core/components/widgets/switcher/switcher.shtml +17 -0
- data/apps/core/components/widgets/table/table.rb +153 -0
- data/apps/core/components/widgets/table/table.shtml +41 -0
- data/apps/core/components/widgets/tabs/tabs.rb +38 -0
- data/apps/core/components/widgets/tabs/tabs.shtml +2 -0
- data/apps/core/forms/_init.rb +22 -0
- data/apps/core/forms/po/it/spider_forms.po +36 -0
- data/apps/core/forms/po/spider_forms.pot +37 -0
- data/apps/core/forms/public/date_time.js +23 -0
- data/apps/core/forms/public/form.css +81 -0
- data/apps/core/forms/public/form.js +19 -0
- data/apps/core/forms/public/input.js +30 -0
- data/apps/core/forms/public/search_select.js +123 -0
- data/apps/core/forms/public/select.js +11 -0
- data/apps/core/forms/tags/element_label.erb +1 -0
- data/apps/core/forms/tags/element_row.erb +4 -0
- data/apps/core/forms/tags/row.erb +4 -0
- data/apps/core/forms/widgets/form/form.rb +430 -0
- data/apps/core/forms/widgets/form/form.shtml +47 -0
- data/apps/core/forms/widgets/inputs/checkbox/checkbox.rb +13 -0
- data/apps/core/forms/widgets/inputs/checkbox/checkbox.shtml +3 -0
- data/apps/core/forms/widgets/inputs/date_time/date_time.rb +48 -0
- data/apps/core/forms/widgets/inputs/date_time/date_time.shtml +4 -0
- data/apps/core/forms/widgets/inputs/hidden/hidden.rb +8 -0
- data/apps/core/forms/widgets/inputs/hidden/hidden.shtml +3 -0
- data/apps/core/forms/widgets/inputs/input/input.rb +105 -0
- data/apps/core/forms/widgets/inputs/input/input.shtml +3 -0
- data/apps/core/forms/widgets/inputs/input/readonly.shtml +6 -0
- data/apps/core/forms/widgets/inputs/password/password.rb +24 -0
- data/apps/core/forms/widgets/inputs/password/password.shtml +5 -0
- data/apps/core/forms/widgets/inputs/search_select/search_select.rb +168 -0
- data/apps/core/forms/widgets/inputs/search_select/search_select.shtml +42 -0
- data/apps/core/forms/widgets/inputs/select/select.rb +126 -0
- data/apps/core/forms/widgets/inputs/select/select.shtml +8 -0
- data/apps/core/forms/widgets/inputs/subform/subform.rb +10 -0
- data/apps/core/forms/widgets/inputs/subform/subform.shtml +5 -0
- data/apps/core/forms/widgets/inputs/text/text.rb +9 -0
- data/apps/core/forms/widgets/inputs/text/text.shtml +3 -0
- data/apps/core/forms/widgets/inputs/text_area/text_area.rb +10 -0
- data/apps/core/forms/widgets/inputs/text_area/text_area.shtml +1 -0
- data/apps/drb_server/_init.rb +8 -0
- data/apps/drb_server/lib/model_server.rb +41 -0
- data/apps/drb_server/script/start_server.rb +19 -0
- data/apps/hippo/_init.rb +10 -0
- data/apps/hippo/models/mixins/hippo_struct.rb +210 -0
- data/apps/hippo/models/security_group.rb +21 -0
- data/apps/hippo/models/security_user.rb +29 -0
- data/apps/messenger/_init.rb +24 -0
- data/apps/messenger/config/options.rb +15 -0
- data/apps/messenger/config/worker.rb +3 -0
- data/apps/messenger/controllers/messenger_controller.rb +80 -0
- data/apps/messenger/controllers/mixins/messenger_controller_mixin.rb +54 -0
- data/apps/messenger/lib/backends/email/smtp.rb +0 -0
- data/apps/messenger/messenger.rb +94 -0
- data/apps/messenger/models/email.rb +22 -0
- data/apps/messenger/models/message.rb +44 -0
- data/apps/messenger/po/it/spider_messenger.po +77 -0
- data/apps/messenger/po/spider_messenger.pot +77 -0
- data/apps/messenger/views/index.shtml +13 -0
- data/apps/messenger/views/list.shtml +5 -0
- data/apps/messenger/views/messenger.layout.shtml +4 -0
- data/apps/messenger/views/queue.shtml +8 -0
- data/apps/messenger/views/tags/sent_messages.shtml +1 -0
- data/apps/soap/_init.rb +16 -0
- data/apps/soap/controllers/soap_controller.rb +334 -0
- data/apps/soap/doc/examples/example.rb +28 -0
- data/apps/soap/lib/soap.rb +217 -0
- data/apps/sso/_init.rb +16 -0
- data/apps/sso/config/options.rb +13 -0
- data/apps/sso/controllers/mixins/saml2_mixin.rb +149 -0
- data/apps/sso/lib/saml2/backend.rb +16 -0
- data/apps/sso/lib/saml2/lasso_backend.rb +88 -0
- data/apps/sso/lib/saml2.rb +112 -0
- data/apps/sso/views/saml2_post.shtml +19 -0
- data/apps/webdav/_init.rb +15 -0
- data/apps/webdav/controllers/webdav_controller.rb +862 -0
- data/apps/webdav/lib/locking.rb +193 -0
- data/apps/webdav/lib/vfs/abstract.rb +78 -0
- data/apps/webdav/lib/vfs/local.rb +126 -0
- data/apps/webdav/lib/vfs/mapped.rb +235 -0
- data/apps/webdav/lib/vfs/properties.rb +41 -0
- data/apps/worker/_init.rb +13 -0
- data/apps/worker/cmd.rb +65 -0
- data/apps/worker/config/options.rb +9 -0
- data/apps/worker/lib/runner.rb +43 -0
- data/apps/worker/lib/task.rb +9 -0
- data/apps/worker/models/job.rb +20 -0
- data/apps/worker/worker.rb +168 -0
- data/bin/spider +9 -0
- data/blueprints/app/_init.rb +10 -0
- data/blueprints/app/controllers/__APP___controller.rb +14 -0
- data/blueprints/app/views/__APP__.layout.shtml +8 -0
- data/blueprints/app/views/index.shtml +3 -0
- data/blueprints/install/config/config.yml +14 -0
- data/blueprints/install/init.rb +3 -0
- data/data/locale/it/LC_MESSAGES/spider.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_auth.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_components.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_forms.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_messenger.mo +0 -0
- data/lib/spiderfw/app.rb +186 -0
- data/lib/spiderfw/autoload.rb +12 -0
- data/lib/spiderfw/cache/template_cache.rb +136 -0
- data/lib/spiderfw/cmd/cmd.rb +72 -0
- data/lib/spiderfw/cmd/commands/cert.rb +427 -0
- data/lib/spiderfw/cmd/commands/console.rb +27 -0
- data/lib/spiderfw/cmd/commands/init.rb +52 -0
- data/lib/spiderfw/cmd/commands/model.rb +131 -0
- data/lib/spiderfw/cmd/commands/setup.rb +54 -0
- data/lib/spiderfw/cmd/commands/test.rb +61 -0
- data/lib/spiderfw/cmd/commands/webserver.rb +93 -0
- data/lib/spiderfw/config/configurable.rb +38 -0
- data/lib/spiderfw/config/configuration.rb +281 -0
- data/lib/spiderfw/config/options/spider.rb +122 -0
- data/lib/spiderfw/controller/app_controller.rb +14 -0
- data/lib/spiderfw/controller/controller.rb +321 -0
- data/lib/spiderfw/controller/controller_exceptions.rb +27 -0
- data/lib/spiderfw/controller/controller_io.rb +26 -0
- data/lib/spiderfw/controller/controller_mixin.rb +12 -0
- data/lib/spiderfw/controller/cookie.rb +20 -0
- data/lib/spiderfw/controller/cookies.rb +17 -0
- data/lib/spiderfw/controller/dispatcher.rb +269 -0
- data/lib/spiderfw/controller/first_responder.rb +59 -0
- data/lib/spiderfw/controller/formats/html.rb +90 -0
- data/lib/spiderfw/controller/helpers/widget_helper.rb +73 -0
- data/lib/spiderfw/controller/home_controller.rb +26 -0
- data/lib/spiderfw/controller/http_controller.rb +112 -0
- data/lib/spiderfw/controller/mixins/http_mixin.rb +228 -0
- data/lib/spiderfw/controller/mixins/static_content.rb +90 -0
- data/lib/spiderfw/controller/mixins/visual.rb +489 -0
- data/lib/spiderfw/controller/page_controller.rb +39 -0
- data/lib/spiderfw/controller/request.rb +48 -0
- data/lib/spiderfw/controller/response.rb +50 -0
- data/lib/spiderfw/controller/router.rb +9 -0
- data/lib/spiderfw/controller/scene.rb +27 -0
- data/lib/spiderfw/controller/session/file_session.rb +83 -0
- data/lib/spiderfw/controller/session/flash_hash.rb +56 -0
- data/lib/spiderfw/controller/session/memory_session.rb +62 -0
- data/lib/spiderfw/controller/session/transient_hash.rb +18 -0
- data/lib/spiderfw/controller/session.rb +106 -0
- data/lib/spiderfw/controller/spider_controller.rb +20 -0
- data/lib/spiderfw/create.rb +64 -0
- data/lib/spiderfw/env.rb +17 -0
- data/lib/spiderfw/exceptions.rb +2 -0
- data/lib/spiderfw/home.rb +26 -0
- data/lib/spiderfw/http/adapters/cgi.rb +62 -0
- data/lib/spiderfw/http/adapters/cgi_io.rb +27 -0
- data/lib/spiderfw/http/adapters/fcgi.rb +62 -0
- data/lib/spiderfw/http/adapters/mongrel.rb +207 -0
- data/lib/spiderfw/http/adapters/rack.rb +152 -0
- data/lib/spiderfw/http/adapters/thin.rb +38 -0
- data/lib/spiderfw/http/adapters/webrick.rb +176 -0
- data/lib/spiderfw/http/http.rb +297 -0
- data/lib/spiderfw/http/server.rb +40 -0
- data/lib/spiderfw/i18n/cldr.rb +114 -0
- data/lib/spiderfw/i18n/gettext.rb +8 -0
- data/lib/spiderfw/i18n/i18n.rb +120 -0
- data/lib/spiderfw/i18n/provider.rb +12 -0
- data/lib/spiderfw/i18n/rails.rb +89 -0
- data/lib/spiderfw/i18n/shtml_parser.rb +41 -0
- data/lib/spiderfw/model/active_record.rb +335 -0
- data/lib/spiderfw/model/base_model.rb +2068 -0
- data/lib/spiderfw/model/condition.rb +416 -0
- data/lib/spiderfw/model/data_type.rb +75 -0
- data/lib/spiderfw/model/datatypes/binary.rb +10 -0
- data/lib/spiderfw/model/datatypes/bool.rb +10 -0
- data/lib/spiderfw/model/datatypes/decimal.rb +22 -0
- data/lib/spiderfw/model/datatypes/email.rb +13 -0
- data/lib/spiderfw/model/datatypes/password.rb +63 -0
- data/lib/spiderfw/model/datatypes/serialized_object.rb +32 -0
- data/lib/spiderfw/model/datatypes/text.rb +10 -0
- data/lib/spiderfw/model/datatypes/uuid.rb +29 -0
- data/lib/spiderfw/model/datatypes.rb +19 -0
- data/lib/spiderfw/model/element.rb +250 -0
- data/lib/spiderfw/model/extended_models/managed.rb +43 -0
- data/lib/spiderfw/model/identity_mapper.rb +89 -0
- data/lib/spiderfw/model/inline_model.rb +37 -0
- data/lib/spiderfw/model/mappers/db_mapper.rb +1126 -0
- data/lib/spiderfw/model/mappers/hash_mapper.rb +114 -0
- data/lib/spiderfw/model/mappers/mapper.rb +926 -0
- data/lib/spiderfw/model/mappers/mappers.rb +7 -0
- data/lib/spiderfw/model/mappers/proxy_mapper.rb +25 -0
- data/lib/spiderfw/model/mappers/vfs/flat_file.rb +31 -0
- data/lib/spiderfw/model/mixins/converted.rb +110 -0
- data/lib/spiderfw/model/mixins/list.rb +135 -0
- data/lib/spiderfw/model/mixins/mixins.rb +7 -0
- data/lib/spiderfw/model/mixins/state_machine.rb +81 -0
- data/lib/spiderfw/model/mixins/synchronized.rb +88 -0
- data/lib/spiderfw/model/mixins/tree.rb +296 -0
- data/lib/spiderfw/model/mixins/versioned.rb +147 -0
- data/lib/spiderfw/model/model.rb +226 -0
- data/lib/spiderfw/model/model_hash.rb +50 -0
- data/lib/spiderfw/model/proxy_model.rb +37 -0
- data/lib/spiderfw/model/query.rb +147 -0
- data/lib/spiderfw/model/query_funcs.rb +99 -0
- data/lib/spiderfw/model/query_set.rb +700 -0
- data/lib/spiderfw/model/request.rb +80 -0
- data/lib/spiderfw/model/storage/base_storage.rb +110 -0
- data/lib/spiderfw/model/storage/db/adapters/mssql.rb +129 -0
- data/lib/spiderfw/model/storage/db/adapters/mysql.rb +436 -0
- data/lib/spiderfw/model/storage/db/adapters/oci8.rb +533 -0
- data/lib/spiderfw/model/storage/db/adapters/sqlite.rb +163 -0
- data/lib/spiderfw/model/storage/db/connectors/odbc.rb +213 -0
- data/lib/spiderfw/model/storage/db/db.rb +13 -0
- data/lib/spiderfw/model/storage/db/db_connection_pool.rb +126 -0
- data/lib/spiderfw/model/storage/db/db_connector.rb +9 -0
- data/lib/spiderfw/model/storage/db/db_schema.rb +233 -0
- data/lib/spiderfw/model/storage/db/db_storage.rb +872 -0
- data/lib/spiderfw/model/storage/db/dialects/no_total_rows.rb +18 -0
- data/lib/spiderfw/model/storage/db/reflector.rb +36 -0
- data/lib/spiderfw/model/storage/null_storage.rb +18 -0
- data/lib/spiderfw/model/storage/schema.rb +19 -0
- data/lib/spiderfw/model/storage.rb +72 -0
- data/lib/spiderfw/model/sync.rb +94 -0
- data/lib/spiderfw/model/type.rb +13 -0
- data/lib/spiderfw/model/unit_of_work.rb +75 -0
- data/lib/spiderfw/requires.rb +21 -0
- data/lib/spiderfw/resource.rb +18 -0
- data/lib/spiderfw/setup/setup_task.rb +44 -0
- data/lib/spiderfw/tag/tag.rb +28 -0
- data/lib/spiderfw/templates/blocks/attr_if.rb +32 -0
- data/lib/spiderfw/templates/blocks/comment.rb +38 -0
- data/lib/spiderfw/templates/blocks/debugger.rb +16 -0
- data/lib/spiderfw/templates/blocks/each.rb +51 -0
- data/lib/spiderfw/templates/blocks/html.rb +70 -0
- data/lib/spiderfw/templates/blocks/if.rb +35 -0
- data/lib/spiderfw/templates/blocks/pass.rb +16 -0
- data/lib/spiderfw/templates/blocks/render.rb +23 -0
- data/lib/spiderfw/templates/blocks/run.rb +30 -0
- data/lib/spiderfw/templates/blocks/tag.rb +21 -0
- data/lib/spiderfw/templates/blocks/tag_if.rb +29 -0
- data/lib/spiderfw/templates/blocks/text.rb +43 -0
- data/lib/spiderfw/templates/blocks/widget.rb +58 -0
- data/lib/spiderfw/templates/blocks/yield.rb +18 -0
- data/lib/spiderfw/templates/layout.rb +44 -0
- data/lib/spiderfw/templates/resources/less.rb +14 -0
- data/lib/spiderfw/templates/template.rb +625 -0
- data/lib/spiderfw/templates/template_blocks.rb +185 -0
- data/lib/spiderfw/utils/annotations.rb +201 -0
- data/lib/spiderfw/utils/fork.rb +75 -0
- data/lib/spiderfw/utils/hash_comparison.rb +8 -0
- data/lib/spiderfw/utils/inflector.rb +42 -0
- data/lib/spiderfw/utils/logger.rb +92 -0
- data/lib/spiderfw/utils/monkey/class.rb +59 -0
- data/lib/spiderfw/utils/monkey/date_time.rb +34 -0
- data/lib/spiderfw/utils/monkey/debugger.rb +25 -0
- data/lib/spiderfw/utils/monkey/exception.rb +23 -0
- data/lib/spiderfw/utils/monkey/kernel.rb +12 -0
- data/lib/spiderfw/utils/monkey/module.rb +12 -0
- data/lib/spiderfw/utils/monkey/symbol.rb +7 -0
- data/lib/spiderfw/utils/monkey/time.rb +17 -0
- data/lib/spiderfw/utils/multi_level_hash.rb +33 -0
- data/lib/spiderfw/utils/periodic_runner.rb +50 -0
- data/lib/spiderfw/utils/rails.rb +78 -0
- data/lib/spiderfw/utils/rails_app.rb +53 -0
- data/lib/spiderfw/utils/sanitizer.rb +178 -0
- data/lib/spiderfw/utils/setup_task.rb +35 -0
- data/lib/spiderfw/utils/shared_store/file_shared_store.rb +73 -0
- data/lib/spiderfw/utils/shared_store/memory_shared_store.rb +46 -0
- data/lib/spiderfw/utils/shared_store.rb +47 -0
- data/lib/spiderfw/utils/test_case.rb +24 -0
- data/lib/spiderfw/utils/thread_out.rb +24 -0
- data/lib/spiderfw/version.rb +3 -0
- data/lib/spiderfw/widget/rest_model.rb +20 -0
- data/lib/spiderfw/widget/widget.rb +671 -0
- data/lib/spiderfw/widget/widget_attributes.rb +54 -0
- data/lib/spiderfw/widget/widget_plugin.rb +37 -0
- data/lib/spiderfw.rb +509 -0
- data/spider.gemspec +43 -0
- data/views/errors/404.shtml +6 -0
- data/views/errors/error.layout.shtml +70 -0
- data/views/errors/error_generic.shtml +6 -0
- metadata +800 -0
@@ -0,0 +1,671 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI Dialog 1.7.2
|
3
|
+
*
|
4
|
+
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
|
5
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
6
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
7
|
+
*
|
8
|
+
* http://docs.jquery.com/UI/Dialog
|
9
|
+
*
|
10
|
+
* Depends:
|
11
|
+
* ui.core.js
|
12
|
+
* ui.draggable.js
|
13
|
+
* ui.resizable.js
|
14
|
+
*/
|
15
|
+
(function($) {
|
16
|
+
|
17
|
+
var setDataSwitch = {
|
18
|
+
dragStart: "start.draggable",
|
19
|
+
drag: "drag.draggable",
|
20
|
+
dragStop: "stop.draggable",
|
21
|
+
maxHeight: "maxHeight.resizable",
|
22
|
+
minHeight: "minHeight.resizable",
|
23
|
+
maxWidth: "maxWidth.resizable",
|
24
|
+
minWidth: "minWidth.resizable",
|
25
|
+
resizeStart: "start.resizable",
|
26
|
+
resize: "drag.resizable",
|
27
|
+
resizeStop: "stop.resizable"
|
28
|
+
},
|
29
|
+
|
30
|
+
uiDialogClasses =
|
31
|
+
'ui-dialog ' +
|
32
|
+
'ui-widget ' +
|
33
|
+
'ui-widget-content ' +
|
34
|
+
'ui-corner-all ';
|
35
|
+
|
36
|
+
$.widget("ui.dialog", {
|
37
|
+
|
38
|
+
_init: function() {
|
39
|
+
this.originalTitle = this.element.attr('title');
|
40
|
+
|
41
|
+
var self = this,
|
42
|
+
options = this.options,
|
43
|
+
|
44
|
+
title = options.title || this.originalTitle || ' ',
|
45
|
+
titleId = $.ui.dialog.getTitleId(this.element),
|
46
|
+
|
47
|
+
uiDialog = (this.uiDialog = $('<div/>'))
|
48
|
+
.appendTo(document.body)
|
49
|
+
.hide()
|
50
|
+
.addClass(uiDialogClasses + options.dialogClass)
|
51
|
+
.css({
|
52
|
+
position: 'absolute',
|
53
|
+
overflow: 'hidden',
|
54
|
+
zIndex: options.zIndex
|
55
|
+
})
|
56
|
+
// setting tabIndex makes the div focusable
|
57
|
+
// setting outline to 0 prevents a border on focus in Mozilla
|
58
|
+
.attr('tabIndex', -1).css('outline', 0).keydown(function(event) {
|
59
|
+
(options.closeOnEscape && event.keyCode
|
60
|
+
&& event.keyCode == $.ui.keyCode.ESCAPE && self.close(event));
|
61
|
+
})
|
62
|
+
.attr({
|
63
|
+
role: 'dialog',
|
64
|
+
'aria-labelledby': titleId
|
65
|
+
})
|
66
|
+
.mousedown(function(event) {
|
67
|
+
self.moveToTop(false, event);
|
68
|
+
}),
|
69
|
+
|
70
|
+
uiDialogContent = this.element
|
71
|
+
.show()
|
72
|
+
.removeAttr('title')
|
73
|
+
.addClass(
|
74
|
+
'ui-dialog-content ' +
|
75
|
+
'ui-widget-content')
|
76
|
+
.appendTo(uiDialog),
|
77
|
+
|
78
|
+
uiDialogTitlebar = (this.uiDialogTitlebar = $('<div></div>'))
|
79
|
+
.addClass(
|
80
|
+
'ui-dialog-titlebar ' +
|
81
|
+
'ui-widget-header ' +
|
82
|
+
'ui-corner-all ' +
|
83
|
+
'ui-helper-clearfix'
|
84
|
+
)
|
85
|
+
.prependTo(uiDialog),
|
86
|
+
|
87
|
+
uiDialogTitlebarClose = $('<a href="#"/>')
|
88
|
+
.addClass(
|
89
|
+
'ui-dialog-titlebar-close ' +
|
90
|
+
'ui-corner-all'
|
91
|
+
)
|
92
|
+
.attr('role', 'button')
|
93
|
+
.hover(
|
94
|
+
function() {
|
95
|
+
uiDialogTitlebarClose.addClass('ui-state-hover');
|
96
|
+
},
|
97
|
+
function() {
|
98
|
+
uiDialogTitlebarClose.removeClass('ui-state-hover');
|
99
|
+
}
|
100
|
+
)
|
101
|
+
.focus(function() {
|
102
|
+
uiDialogTitlebarClose.addClass('ui-state-focus');
|
103
|
+
})
|
104
|
+
.blur(function() {
|
105
|
+
uiDialogTitlebarClose.removeClass('ui-state-focus');
|
106
|
+
})
|
107
|
+
.mousedown(function(ev) {
|
108
|
+
ev.stopPropagation();
|
109
|
+
})
|
110
|
+
.click(function(event) {
|
111
|
+
self.close(event);
|
112
|
+
return false;
|
113
|
+
})
|
114
|
+
.appendTo(uiDialogTitlebar),
|
115
|
+
|
116
|
+
uiDialogTitlebarCloseText = (this.uiDialogTitlebarCloseText = $('<span/>'))
|
117
|
+
.addClass(
|
118
|
+
'ui-icon ' +
|
119
|
+
'ui-icon-closethick'
|
120
|
+
)
|
121
|
+
.text(options.closeText)
|
122
|
+
.appendTo(uiDialogTitlebarClose),
|
123
|
+
|
124
|
+
uiDialogTitle = $('<span/>')
|
125
|
+
.addClass('ui-dialog-title')
|
126
|
+
.attr('id', titleId)
|
127
|
+
.html(title)
|
128
|
+
.prependTo(uiDialogTitlebar);
|
129
|
+
|
130
|
+
uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection();
|
131
|
+
|
132
|
+
(options.draggable && $.fn.draggable && this._makeDraggable());
|
133
|
+
(options.resizable && $.fn.resizable && this._makeResizable());
|
134
|
+
|
135
|
+
this._createButtons(options.buttons);
|
136
|
+
this._isOpen = false;
|
137
|
+
|
138
|
+
(options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
|
139
|
+
(options.autoOpen && this.open());
|
140
|
+
|
141
|
+
},
|
142
|
+
|
143
|
+
destroy: function() {
|
144
|
+
(this.overlay && this.overlay.destroy());
|
145
|
+
this.uiDialog.hide();
|
146
|
+
this.element
|
147
|
+
.unbind('.dialog')
|
148
|
+
.removeData('dialog')
|
149
|
+
.removeClass('ui-dialog-content ui-widget-content')
|
150
|
+
.hide().appendTo('body');
|
151
|
+
this.uiDialog.remove();
|
152
|
+
|
153
|
+
(this.originalTitle && this.element.attr('title', this.originalTitle));
|
154
|
+
},
|
155
|
+
|
156
|
+
close: function(event) {
|
157
|
+
var self = this;
|
158
|
+
|
159
|
+
if (false === self._trigger('beforeclose', event)) {
|
160
|
+
return;
|
161
|
+
}
|
162
|
+
|
163
|
+
(self.overlay && self.overlay.destroy());
|
164
|
+
self.uiDialog.unbind('keypress.ui-dialog');
|
165
|
+
|
166
|
+
(self.options.hide
|
167
|
+
? self.uiDialog.hide(self.options.hide, function() {
|
168
|
+
self._trigger('close', event);
|
169
|
+
})
|
170
|
+
: self.uiDialog.hide() && self._trigger('close', event));
|
171
|
+
|
172
|
+
$.ui.dialog.overlay.resize();
|
173
|
+
|
174
|
+
self._isOpen = false;
|
175
|
+
|
176
|
+
// adjust the maxZ to allow other modal dialogs to continue to work (see #4309)
|
177
|
+
if (self.options.modal) {
|
178
|
+
var maxZ = 0;
|
179
|
+
$('.ui-dialog').each(function() {
|
180
|
+
if (this != self.uiDialog[0]) {
|
181
|
+
maxZ = Math.max(maxZ, $(this).css('z-index'));
|
182
|
+
}
|
183
|
+
});
|
184
|
+
$.ui.dialog.maxZ = maxZ;
|
185
|
+
}
|
186
|
+
},
|
187
|
+
|
188
|
+
isOpen: function() {
|
189
|
+
return this._isOpen;
|
190
|
+
},
|
191
|
+
|
192
|
+
// the force parameter allows us to move modal dialogs to their correct
|
193
|
+
// position on open
|
194
|
+
moveToTop: function(force, event) {
|
195
|
+
|
196
|
+
if ((this.options.modal && !force)
|
197
|
+
|| (!this.options.stack && !this.options.modal)) {
|
198
|
+
return this._trigger('focus', event);
|
199
|
+
}
|
200
|
+
|
201
|
+
if (this.options.zIndex > $.ui.dialog.maxZ) {
|
202
|
+
$.ui.dialog.maxZ = this.options.zIndex;
|
203
|
+
}
|
204
|
+
(this.overlay && this.overlay.$el.css('z-index', $.ui.dialog.overlay.maxZ = ++$.ui.dialog.maxZ));
|
205
|
+
|
206
|
+
//Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed.
|
207
|
+
// http://ui.jquery.com/bugs/ticket/3193
|
208
|
+
var saveScroll = { scrollTop: this.element.attr('scrollTop'), scrollLeft: this.element.attr('scrollLeft') };
|
209
|
+
this.uiDialog.css('z-index', ++$.ui.dialog.maxZ);
|
210
|
+
this.element.attr(saveScroll);
|
211
|
+
this._trigger('focus', event);
|
212
|
+
},
|
213
|
+
|
214
|
+
open: function() {
|
215
|
+
if (this._isOpen) { return; }
|
216
|
+
|
217
|
+
var options = this.options,
|
218
|
+
uiDialog = this.uiDialog;
|
219
|
+
|
220
|
+
this.overlay = options.modal ? new $.ui.dialog.overlay(this) : null;
|
221
|
+
(uiDialog.next().length && uiDialog.appendTo('body'));
|
222
|
+
this._size();
|
223
|
+
this._position(options.position);
|
224
|
+
uiDialog.show(options.show);
|
225
|
+
this.moveToTop(true);
|
226
|
+
|
227
|
+
// prevent tabbing out of modal dialogs
|
228
|
+
(options.modal && uiDialog.bind('keypress.ui-dialog', function(event) {
|
229
|
+
if (event.keyCode != $.ui.keyCode.TAB) {
|
230
|
+
return;
|
231
|
+
}
|
232
|
+
|
233
|
+
var tabbables = $(':tabbable', this),
|
234
|
+
first = tabbables.filter(':first')[0],
|
235
|
+
last = tabbables.filter(':last')[0];
|
236
|
+
|
237
|
+
if (event.target == last && !event.shiftKey) {
|
238
|
+
setTimeout(function() {
|
239
|
+
first.focus();
|
240
|
+
}, 1);
|
241
|
+
} else if (event.target == first && event.shiftKey) {
|
242
|
+
setTimeout(function() {
|
243
|
+
last.focus();
|
244
|
+
}, 1);
|
245
|
+
}
|
246
|
+
}));
|
247
|
+
|
248
|
+
// set focus to the first tabbable element in the content area or the first button
|
249
|
+
// if there are no tabbable elements, set focus on the dialog itself
|
250
|
+
$([])
|
251
|
+
.add(uiDialog.find('.ui-dialog-content :tabbable:first'))
|
252
|
+
.add(uiDialog.find('.ui-dialog-buttonpane :tabbable:first'))
|
253
|
+
.add(uiDialog)
|
254
|
+
.filter(':first')
|
255
|
+
.focus();
|
256
|
+
|
257
|
+
this._trigger('open');
|
258
|
+
this._isOpen = true;
|
259
|
+
},
|
260
|
+
|
261
|
+
_createButtons: function(buttons) {
|
262
|
+
var self = this,
|
263
|
+
hasButtons = false,
|
264
|
+
uiDialogButtonPane = $('<div></div>')
|
265
|
+
.addClass(
|
266
|
+
'ui-dialog-buttonpane ' +
|
267
|
+
'ui-widget-content ' +
|
268
|
+
'ui-helper-clearfix'
|
269
|
+
);
|
270
|
+
|
271
|
+
// if we already have a button pane, remove it
|
272
|
+
this.uiDialog.find('.ui-dialog-buttonpane').remove();
|
273
|
+
|
274
|
+
(typeof buttons == 'object' && buttons !== null &&
|
275
|
+
$.each(buttons, function() { return !(hasButtons = true); }));
|
276
|
+
if (hasButtons) {
|
277
|
+
$.each(buttons, function(name, fn) {
|
278
|
+
$('<button type="button"></button>')
|
279
|
+
.addClass(
|
280
|
+
'ui-state-default ' +
|
281
|
+
'ui-corner-all'
|
282
|
+
)
|
283
|
+
.text(name)
|
284
|
+
.click(function() { fn.apply(self.element[0], arguments); })
|
285
|
+
.hover(
|
286
|
+
function() {
|
287
|
+
$(this).addClass('ui-state-hover');
|
288
|
+
},
|
289
|
+
function() {
|
290
|
+
$(this).removeClass('ui-state-hover');
|
291
|
+
}
|
292
|
+
)
|
293
|
+
.focus(function() {
|
294
|
+
$(this).addClass('ui-state-focus');
|
295
|
+
})
|
296
|
+
.blur(function() {
|
297
|
+
$(this).removeClass('ui-state-focus');
|
298
|
+
})
|
299
|
+
.appendTo(uiDialogButtonPane);
|
300
|
+
});
|
301
|
+
uiDialogButtonPane.appendTo(this.uiDialog);
|
302
|
+
}
|
303
|
+
},
|
304
|
+
|
305
|
+
_makeDraggable: function() {
|
306
|
+
var self = this,
|
307
|
+
options = this.options,
|
308
|
+
heightBeforeDrag;
|
309
|
+
|
310
|
+
this.uiDialog.draggable({
|
311
|
+
cancel: '.ui-dialog-content',
|
312
|
+
handle: '.ui-dialog-titlebar',
|
313
|
+
containment: 'document',
|
314
|
+
start: function() {
|
315
|
+
heightBeforeDrag = options.height;
|
316
|
+
$(this).height($(this).height()).addClass("ui-dialog-dragging");
|
317
|
+
(options.dragStart && options.dragStart.apply(self.element[0], arguments));
|
318
|
+
},
|
319
|
+
drag: function() {
|
320
|
+
(options.drag && options.drag.apply(self.element[0], arguments));
|
321
|
+
},
|
322
|
+
stop: function() {
|
323
|
+
$(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag);
|
324
|
+
(options.dragStop && options.dragStop.apply(self.element[0], arguments));
|
325
|
+
$.ui.dialog.overlay.resize();
|
326
|
+
}
|
327
|
+
});
|
328
|
+
},
|
329
|
+
|
330
|
+
_makeResizable: function(handles) {
|
331
|
+
handles = (handles === undefined ? this.options.resizable : handles);
|
332
|
+
var self = this,
|
333
|
+
options = this.options,
|
334
|
+
resizeHandles = typeof handles == 'string'
|
335
|
+
? handles
|
336
|
+
: 'n,e,s,w,se,sw,ne,nw';
|
337
|
+
|
338
|
+
this.uiDialog.resizable({
|
339
|
+
cancel: '.ui-dialog-content',
|
340
|
+
alsoResize: this.element,
|
341
|
+
maxWidth: options.maxWidth,
|
342
|
+
maxHeight: options.maxHeight,
|
343
|
+
minWidth: options.minWidth,
|
344
|
+
minHeight: options.minHeight,
|
345
|
+
start: function() {
|
346
|
+
$(this).addClass("ui-dialog-resizing");
|
347
|
+
(options.resizeStart && options.resizeStart.apply(self.element[0], arguments));
|
348
|
+
},
|
349
|
+
resize: function() {
|
350
|
+
(options.resize && options.resize.apply(self.element[0], arguments));
|
351
|
+
},
|
352
|
+
handles: resizeHandles,
|
353
|
+
stop: function() {
|
354
|
+
$(this).removeClass("ui-dialog-resizing");
|
355
|
+
options.height = $(this).height();
|
356
|
+
options.width = $(this).width();
|
357
|
+
(options.resizeStop && options.resizeStop.apply(self.element[0], arguments));
|
358
|
+
$.ui.dialog.overlay.resize();
|
359
|
+
}
|
360
|
+
})
|
361
|
+
.find('.ui-resizable-se').addClass('ui-icon ui-icon-grip-diagonal-se');
|
362
|
+
},
|
363
|
+
|
364
|
+
_position: function(pos) {
|
365
|
+
var wnd = $(window), doc = $(document),
|
366
|
+
pTop = doc.scrollTop(), pLeft = doc.scrollLeft(),
|
367
|
+
minTop = pTop;
|
368
|
+
|
369
|
+
if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) {
|
370
|
+
pos = [
|
371
|
+
pos == 'right' || pos == 'left' ? pos : 'center',
|
372
|
+
pos == 'top' || pos == 'bottom' ? pos : 'middle'
|
373
|
+
];
|
374
|
+
}
|
375
|
+
if (pos.constructor != Array) {
|
376
|
+
pos = ['center', 'middle'];
|
377
|
+
}
|
378
|
+
if (pos[0].constructor == Number) {
|
379
|
+
pLeft += pos[0];
|
380
|
+
} else {
|
381
|
+
switch (pos[0]) {
|
382
|
+
case 'left':
|
383
|
+
pLeft += 0;
|
384
|
+
break;
|
385
|
+
case 'right':
|
386
|
+
pLeft += wnd.width() - this.uiDialog.outerWidth();
|
387
|
+
break;
|
388
|
+
default:
|
389
|
+
case 'center':
|
390
|
+
pLeft += (wnd.width() - this.uiDialog.outerWidth()) / 2;
|
391
|
+
}
|
392
|
+
}
|
393
|
+
if (pos[1].constructor == Number) {
|
394
|
+
pTop += pos[1];
|
395
|
+
} else {
|
396
|
+
switch (pos[1]) {
|
397
|
+
case 'top':
|
398
|
+
pTop += 0;
|
399
|
+
break;
|
400
|
+
case 'bottom':
|
401
|
+
pTop += wnd.height() - this.uiDialog.outerHeight();
|
402
|
+
break;
|
403
|
+
default:
|
404
|
+
case 'middle':
|
405
|
+
pTop += (wnd.height() - this.uiDialog.outerHeight()) / 2;
|
406
|
+
}
|
407
|
+
}
|
408
|
+
|
409
|
+
// prevent the dialog from being too high (make sure the titlebar
|
410
|
+
// is accessible)
|
411
|
+
pTop = Math.max(pTop, minTop);
|
412
|
+
this.uiDialog.css({top: pTop, left: pLeft});
|
413
|
+
},
|
414
|
+
|
415
|
+
_setData: function(key, value){
|
416
|
+
(setDataSwitch[key] && this.uiDialog.data(setDataSwitch[key], value));
|
417
|
+
switch (key) {
|
418
|
+
case "buttons":
|
419
|
+
this._createButtons(value);
|
420
|
+
break;
|
421
|
+
case "closeText":
|
422
|
+
this.uiDialogTitlebarCloseText.text(value);
|
423
|
+
break;
|
424
|
+
case "dialogClass":
|
425
|
+
this.uiDialog
|
426
|
+
.removeClass(this.options.dialogClass)
|
427
|
+
.addClass(uiDialogClasses + value);
|
428
|
+
break;
|
429
|
+
case "draggable":
|
430
|
+
(value
|
431
|
+
? this._makeDraggable()
|
432
|
+
: this.uiDialog.draggable('destroy'));
|
433
|
+
break;
|
434
|
+
case "height":
|
435
|
+
this.uiDialog.height(value);
|
436
|
+
break;
|
437
|
+
case "position":
|
438
|
+
this._position(value);
|
439
|
+
break;
|
440
|
+
case "resizable":
|
441
|
+
var uiDialog = this.uiDialog,
|
442
|
+
isResizable = this.uiDialog.is(':data(resizable)');
|
443
|
+
|
444
|
+
// currently resizable, becoming non-resizable
|
445
|
+
(isResizable && !value && uiDialog.resizable('destroy'));
|
446
|
+
|
447
|
+
// currently resizable, changing handles
|
448
|
+
(isResizable && typeof value == 'string' &&
|
449
|
+
uiDialog.resizable('option', 'handles', value));
|
450
|
+
|
451
|
+
// currently non-resizable, becoming resizable
|
452
|
+
(isResizable || this._makeResizable(value));
|
453
|
+
break;
|
454
|
+
case "title":
|
455
|
+
$(".ui-dialog-title", this.uiDialogTitlebar).html(value || ' ');
|
456
|
+
break;
|
457
|
+
case "width":
|
458
|
+
this.uiDialog.width(value);
|
459
|
+
break;
|
460
|
+
}
|
461
|
+
|
462
|
+
$.widget.prototype._setData.apply(this, arguments);
|
463
|
+
},
|
464
|
+
|
465
|
+
_size: function() {
|
466
|
+
/* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
|
467
|
+
* divs will both have width and height set, so we need to reset them
|
468
|
+
*/
|
469
|
+
var options = this.options;
|
470
|
+
|
471
|
+
// reset content sizing
|
472
|
+
this.element.css({
|
473
|
+
height: 0,
|
474
|
+
minHeight: 0,
|
475
|
+
width: 'auto'
|
476
|
+
});
|
477
|
+
|
478
|
+
// reset wrapper sizing
|
479
|
+
// determine the height of all the non-content elements
|
480
|
+
var nonContentHeight = this.uiDialog.css({
|
481
|
+
height: 'auto',
|
482
|
+
width: options.width
|
483
|
+
})
|
484
|
+
.height();
|
485
|
+
|
486
|
+
this.element
|
487
|
+
.css({
|
488
|
+
minHeight: Math.max(options.minHeight - nonContentHeight, 0),
|
489
|
+
height: options.height == 'auto'
|
490
|
+
? 'auto'
|
491
|
+
: Math.max(options.height - nonContentHeight, 0)
|
492
|
+
});
|
493
|
+
}
|
494
|
+
});
|
495
|
+
|
496
|
+
$.extend($.ui.dialog, {
|
497
|
+
version: "1.7.2",
|
498
|
+
defaults: {
|
499
|
+
autoOpen: true,
|
500
|
+
bgiframe: false,
|
501
|
+
buttons: {},
|
502
|
+
closeOnEscape: true,
|
503
|
+
closeText: 'close',
|
504
|
+
dialogClass: '',
|
505
|
+
draggable: true,
|
506
|
+
hide: null,
|
507
|
+
height: 'auto',
|
508
|
+
maxHeight: false,
|
509
|
+
maxWidth: false,
|
510
|
+
minHeight: 150,
|
511
|
+
minWidth: 150,
|
512
|
+
modal: false,
|
513
|
+
position: 'center',
|
514
|
+
resizable: true,
|
515
|
+
show: null,
|
516
|
+
stack: true,
|
517
|
+
title: '',
|
518
|
+
width: 300,
|
519
|
+
zIndex: 1000
|
520
|
+
},
|
521
|
+
|
522
|
+
getter: 'isOpen',
|
523
|
+
|
524
|
+
uuid: 0,
|
525
|
+
maxZ: 0,
|
526
|
+
|
527
|
+
getTitleId: function($el) {
|
528
|
+
return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid);
|
529
|
+
},
|
530
|
+
|
531
|
+
overlay: function(dialog) {
|
532
|
+
this.$el = $.ui.dialog.overlay.create(dialog);
|
533
|
+
}
|
534
|
+
});
|
535
|
+
|
536
|
+
$.extend($.ui.dialog.overlay, {
|
537
|
+
instances: [],
|
538
|
+
maxZ: 0,
|
539
|
+
events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),
|
540
|
+
function(event) { return event + '.dialog-overlay'; }).join(' '),
|
541
|
+
create: function(dialog) {
|
542
|
+
if (this.instances.length === 0) {
|
543
|
+
// prevent use of anchors and inputs
|
544
|
+
// we use a setTimeout in case the overlay is created from an
|
545
|
+
// event that we're going to be cancelling (see #2804)
|
546
|
+
setTimeout(function() {
|
547
|
+
// handle $(el).dialog().dialog('close') (see #4065)
|
548
|
+
if ($.ui.dialog.overlay.instances.length) {
|
549
|
+
$(document).bind($.ui.dialog.overlay.events, function(event) {
|
550
|
+
var dialogZ = $(event.target).parents('.ui-dialog').css('zIndex') || 0;
|
551
|
+
return (dialogZ > $.ui.dialog.overlay.maxZ);
|
552
|
+
});
|
553
|
+
}
|
554
|
+
}, 1);
|
555
|
+
|
556
|
+
// allow closing by pressing the escape key
|
557
|
+
$(document).bind('keydown.dialog-overlay', function(event) {
|
558
|
+
(dialog.options.closeOnEscape && event.keyCode
|
559
|
+
&& event.keyCode == $.ui.keyCode.ESCAPE && dialog.close(event));
|
560
|
+
});
|
561
|
+
|
562
|
+
// handle window resize
|
563
|
+
$(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize);
|
564
|
+
}
|
565
|
+
|
566
|
+
var $el = $('<div></div>').appendTo(document.body)
|
567
|
+
.addClass('ui-widget-overlay').css({
|
568
|
+
width: this.width(),
|
569
|
+
height: this.height()
|
570
|
+
});
|
571
|
+
|
572
|
+
(dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe());
|
573
|
+
|
574
|
+
this.instances.push($el);
|
575
|
+
return $el;
|
576
|
+
},
|
577
|
+
|
578
|
+
destroy: function($el) {
|
579
|
+
this.instances.splice($.inArray(this.instances, $el), 1);
|
580
|
+
|
581
|
+
if (this.instances.length === 0) {
|
582
|
+
$([document, window]).unbind('.dialog-overlay');
|
583
|
+
}
|
584
|
+
|
585
|
+
$el.remove();
|
586
|
+
|
587
|
+
// adjust the maxZ to allow other modal dialogs to continue to work (see #4309)
|
588
|
+
var maxZ = 0;
|
589
|
+
$.each(this.instances, function() {
|
590
|
+
maxZ = Math.max(maxZ, this.css('z-index'));
|
591
|
+
});
|
592
|
+
this.maxZ = maxZ;
|
593
|
+
},
|
594
|
+
|
595
|
+
height: function() {
|
596
|
+
// handle IE 6
|
597
|
+
if ($.browser.msie && $.browser.version < 7) {
|
598
|
+
var scrollHeight = Math.max(
|
599
|
+
document.documentElement.scrollHeight,
|
600
|
+
document.body.scrollHeight
|
601
|
+
);
|
602
|
+
var offsetHeight = Math.max(
|
603
|
+
document.documentElement.offsetHeight,
|
604
|
+
document.body.offsetHeight
|
605
|
+
);
|
606
|
+
|
607
|
+
if (scrollHeight < offsetHeight) {
|
608
|
+
return $(window).height() + 'px';
|
609
|
+
} else {
|
610
|
+
return scrollHeight + 'px';
|
611
|
+
}
|
612
|
+
// handle "good" browsers
|
613
|
+
} else {
|
614
|
+
return $(document).height() + 'px';
|
615
|
+
}
|
616
|
+
},
|
617
|
+
|
618
|
+
width: function() {
|
619
|
+
// handle IE 6
|
620
|
+
if ($.browser.msie && $.browser.version < 7) {
|
621
|
+
var scrollWidth = Math.max(
|
622
|
+
document.documentElement.scrollWidth,
|
623
|
+
document.body.scrollWidth
|
624
|
+
);
|
625
|
+
var offsetWidth = Math.max(
|
626
|
+
document.documentElement.offsetWidth,
|
627
|
+
document.body.offsetWidth
|
628
|
+
);
|
629
|
+
|
630
|
+
if (scrollWidth < offsetWidth) {
|
631
|
+
return $(window).width() + 'px';
|
632
|
+
} else {
|
633
|
+
return scrollWidth + 'px';
|
634
|
+
}
|
635
|
+
// handle "good" browsers
|
636
|
+
} else {
|
637
|
+
return $(document).width() + 'px';
|
638
|
+
}
|
639
|
+
},
|
640
|
+
|
641
|
+
resize: function() {
|
642
|
+
/* If the dialog is draggable and the user drags it past the
|
643
|
+
* right edge of the window, the document becomes wider so we
|
644
|
+
* need to stretch the overlay. If the user then drags the
|
645
|
+
* dialog back to the left, the document will become narrower,
|
646
|
+
* so we need to shrink the overlay to the appropriate size.
|
647
|
+
* This is handled by shrinking the overlay before setting it
|
648
|
+
* to the full document size.
|
649
|
+
*/
|
650
|
+
var $overlays = $([]);
|
651
|
+
$.each($.ui.dialog.overlay.instances, function() {
|
652
|
+
$overlays = $overlays.add(this);
|
653
|
+
});
|
654
|
+
|
655
|
+
$overlays.css({
|
656
|
+
width: 0,
|
657
|
+
height: 0
|
658
|
+
}).css({
|
659
|
+
width: $.ui.dialog.overlay.width(),
|
660
|
+
height: $.ui.dialog.overlay.height()
|
661
|
+
});
|
662
|
+
}
|
663
|
+
});
|
664
|
+
|
665
|
+
$.extend($.ui.dialog.overlay.prototype, {
|
666
|
+
destroy: function() {
|
667
|
+
$.ui.dialog.overlay.destroy(this.$el);
|
668
|
+
}
|
669
|
+
});
|
670
|
+
|
671
|
+
})(jQuery);
|