rbbt-rest 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +20 -0
- data/Rakefile +55 -0
- data/config.ru +99 -0
- data/lib/rbbt/rest/client.rb +298 -0
- data/lib/rbbt/rest/common/cache.rb +115 -0
- data/lib/rbbt/rest/common/forms.rb +97 -0
- data/lib/rbbt/rest/common/locate.rb +75 -0
- data/lib/rbbt/rest/common/misc.rb +164 -0
- data/lib/rbbt/rest/common/render.rb +150 -0
- data/lib/rbbt/rest/common/resources.rb +80 -0
- data/lib/rbbt/rest/common/table.rb +169 -0
- data/lib/rbbt/rest/common/users.rb +68 -0
- data/lib/rbbt/rest/entity.rb +362 -0
- data/lib/rbbt/rest/entity/action_card.rb +22 -0
- data/lib/rbbt/rest/entity/action_controller.rb +38 -0
- data/lib/rbbt/rest/entity/entity_card.rb +26 -0
- data/lib/rbbt/rest/entity/entity_list_card.rb +26 -0
- data/lib/rbbt/rest/entity/favourites.rb +97 -0
- data/lib/rbbt/rest/entity/finder.rb +30 -0
- data/lib/rbbt/rest/entity/helpers.rb +130 -0
- data/lib/rbbt/rest/entity/list.rb +92 -0
- data/lib/rbbt/rest/entity/list_container.rb +22 -0
- data/lib/rbbt/rest/entity/locate.rb +281 -0
- data/lib/rbbt/rest/entity/render.rb +76 -0
- data/lib/rbbt/rest/entity/rest.rb +181 -0
- data/lib/rbbt/rest/file_server.rb +64 -0
- data/lib/rbbt/rest/helpers.rb +44 -0
- data/lib/rbbt/rest/main.rb +100 -0
- data/lib/rbbt/rest/workflow.rb +198 -0
- data/lib/rbbt/rest/workflow/jobs.rb +154 -0
- data/lib/rbbt/rest/workflow/locate.rb +41 -0
- data/lib/rbbt/rest/workflow/render.rb +33 -0
- data/share/views/compass/_foundation_setup.sass +79 -0
- data/share/views/compass/actions.sass +43 -0
- data/share/views/compass/app.sass +39 -0
- data/share/views/compass/colors.sass +224 -0
- data/share/views/compass/dom.sass +42 -0
- data/share/views/compass/entity_card.sass +100 -0
- data/share/views/compass/favourites.sass +33 -0
- data/share/views/compass/footer.sass +4 -0
- data/share/views/compass/form.sass +28 -0
- data/share/views/compass/fragment.sass +8 -0
- data/share/views/compass/list_container.sass +32 -0
- data/share/views/compass/lists.sass +33 -0
- data/share/views/compass/offcanvas.sass +66 -0
- data/share/views/compass/style.sass +100 -0
- data/share/views/compass/style_mixins.sass +12 -0
- data/share/views/compass/table.sass +44 -0
- data/share/views/compass/tabs.sass +41 -0
- data/share/views/compass/theme.sass +58 -0
- data/share/views/compass/topbar.sass +19 -0
- data/share/views/compass/web-fonts.sass +77 -0
- data/share/views/compass/workflow.sass +33 -0
- data/share/views/entity/Default.haml +20 -0
- data/share/views/entity_list/Default.haml +7 -0
- data/share/views/entity_list/Default/edit.haml +9 -0
- data/share/views/entity_list/Default/new.haml +9 -0
- data/share/views/entity_partials/action_card.haml +38 -0
- data/share/views/entity_partials/action_controller.haml +31 -0
- data/share/views/entity_partials/entity_card.haml +55 -0
- data/share/views/entity_partials/entity_list.haml +8 -0
- data/share/views/entity_partials/entity_list_card.haml +75 -0
- data/share/views/entity_partials/list_container.haml +30 -0
- data/share/views/error.haml +12 -0
- data/share/views/form.haml +11 -0
- data/share/views/job_info.haml +1 -0
- data/share/views/job_result.haml +23 -0
- data/share/views/job_result/annotations.haml +3 -0
- data/share/views/job_result/array.haml +4 -0
- data/share/views/job_result/binary.haml +1 -0
- data/share/views/job_result/boolea.haml +1 -0
- data/share/views/job_result/boolean.haml +1 -0
- data/share/views/job_result/job_control.haml +18 -0
- data/share/views/job_result/string.haml +1 -0
- data/share/views/job_result/tsv.haml +7 -0
- data/share/views/job_result/yaml.haml +1 -0
- data/share/views/layout.haml +89 -0
- data/share/views/layout/favourites.haml +36 -0
- data/share/views/layout/header.haml +40 -0
- data/share/views/main.haml +2 -0
- data/share/views/partials/form.haml +26 -0
- data/share/views/partials/table.haml +93 -0
- data/share/views/public/favicon.gif +0 -0
- data/share/views/public/js/_ajax_replace.js +130 -0
- data/share/views/public/js/_dom_update.js +28 -0
- data/share/views/public/js/_ellipsis.js +62 -0
- data/share/views/public/js/_fix_tablesorter_science.js +25 -0
- data/share/views/public/js/_foundation.js +42 -0
- data/share/views/public/js/_md5.js +379 -0
- data/share/views/public/js/actions.js +102 -0
- data/share/views/public/js/app.js +2 -0
- data/share/views/public/js/base.js +110 -0
- data/share/views/public/js/deffer.js +14 -0
- data/share/views/public/js/entities.js +75 -0
- data/share/views/public/js/favourites.js +210 -0
- data/share/views/public/js/helpers.js +57 -0
- data/share/views/public/js/lists.js +103 -0
- data/share/views/public/js/offcanvas.js +33 -0
- data/share/views/public/js/tables.js +193 -0
- data/share/views/public/js/tabs.js +7 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_glass_75_ffffff_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-icons_222222_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-icons_2e83ff_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-icons_454545_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-icons_888888_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/css/custom-theme/jquery-ui-1.8.14.custom.css +568 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/AUTHORS.txt +30 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/GPL-LICENSE.txt +278 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/MIT-LICENSE.txt +25 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/collapsible.html +57 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/custom-icons.html +69 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/default.html +85 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/fillspace.html +76 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/hoverintent.html +134 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/index.html +25 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/mouseover.html +57 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/no-auto-height.html +60 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/accordion/sortable.html +83 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/addClass/default.html +52 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/addClass/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/animate/default.html +61 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/animate/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/categories.html +71 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/combobox.html +174 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/custom-data.html +95 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/default.html +64 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/folding.html +62 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/images/jquery_32x32.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/images/jqueryui_32x32.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/images/transparent_1x1.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/index.html +27 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/london.xml +114 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/maxheight.html +79 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/multiple-remote.html +84 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/multiple.html +99 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/remote-jsonp.html +86 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/remote-with-cache.html +59 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/remote.html +59 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/search.php +640 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/autocomplete/xml.html +72 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/button/checkbox.html +44 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/button/default.html +38 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/button/icons.html +56 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/button/index.html +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/button/radio.html +39 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/button/splitbutton.html +55 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/button/toolbar.html +120 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/alt-field.html +36 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/animation.html +58 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/buttonbar.html +35 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/date-formats.html +47 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/date-range.html +49 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/default.html +33 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/dropdown-month-year.html +36 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/icon-trigger.html +37 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/images/calendar.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/index.html +31 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/inline.html +33 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/localization.html +162 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/min-max.html +33 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/multiple-calendars.html +36 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/other-months.html +37 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/datepicker/show-week.html +39 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/demos.css +334 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/dialog/animated.html +56 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/dialog/default.html +54 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/dialog/index.html +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/dialog/modal-confirmation.html +69 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/dialog/modal-form.html +167 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/dialog/modal-message.html +71 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/dialog/modal.html +60 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/constrain-movement.html +69 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/cursor-style.html +49 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/default.html +39 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/delay-start.html +45 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/events.html +77 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/handle.html +50 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/index.html +28 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/revert.html +44 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/scroll.html +51 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/snap-to.html +68 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/sortable.html +57 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/draggable/visual-feedback.html +77 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/accepted-elements.html +60 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/default.html +53 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/index.html +24 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/photo-manager.html +184 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/propagation.html +80 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/revert.html +61 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/shopping-cart.html +101 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/droppable/visual-feedback.html +78 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/effect/default.html +109 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/effect/easing.html +108 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/effect/index.html +19 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/hide/default.html +102 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/hide/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/images/calendar.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/images/demo-config-on.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/images/demo-spindown-open.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/images/icon-docs-info.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/images/pbar-ani.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/index.html +321 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/position/cycler.html +122 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/position/default.html +153 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/position/images/earth.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/position/images/flight.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/position/images/rocket.jpg +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/position/index.html +19 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/progressbar/animated.html +44 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/progressbar/default.html +35 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/progressbar/images/pbar-ani.gif +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/progressbar/index.html +20 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/progressbar/resize.html +40 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/removeClass/default.html +52 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/removeClass/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/animate.html +43 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/aspect-ratio.html +42 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/constrain-area.html +47 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/default.html +40 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/delay-start.html +52 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/helper.html +43 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/index.html +28 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/max-min.html +45 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/snap-to-grid.html +42 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/synchronous-resize.html +49 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/textarea.html +41 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/resizable/visual-feedback.html +43 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/selectable/default.html +50 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/selectable/display-grid.html +55 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/selectable/index.html +20 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/selectable/serialize.html +61 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/show/default.html +104 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/show/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/colorpicker.html +95 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/default.html +37 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/hotelrooms.html +59 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/index.html +29 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/multiple-vertical.html +77 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/range-vertical.html +51 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/range.html +52 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/rangemax.html +50 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/rangemin.html +51 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/side-scroll.html +140 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/slider-vertical.html +52 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/steps.html +51 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/slider/tabs.html +67 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/connect-lists-through-tabs.html +78 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/connect-lists.html +58 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/default.html +51 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/delay-start.html +67 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/display-grid.html +54 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/empty-lists.html +69 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/index.html +26 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/items.html +70 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/placeholder.html +56 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/sortable/portlets.html +96 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/switchClass/default.html +47 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/switchClass/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/ajax.html +53 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/ajax/content1.html +4 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/ajax/content2.html +4 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/ajax/content3-slow.php +7 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/ajax/content4-broken.php +3 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/bottom.html +60 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/collapsible.html +55 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/cookie.html +57 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/default.html +49 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/index.html +25 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/manipulation.html +124 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/mouseover.html +53 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/sortable.html +58 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/tabs/vertical.html +61 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/toggle/default.html +94 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/toggle/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/toggleClass/default.html +46 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/demos/toggleClass/index.html +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/accordion.html +1017 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/addClass.html +109 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/animate.html +78 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/autocomplete.html +875 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/button.html +500 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/datepicker.html +2570 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/dialog.html +1698 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/draggable.html +1577 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/droppable.html +829 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/effect.html +143 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/hide.html +144 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/position.html +227 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/progressbar.html +460 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/removeClass.html +113 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/resizable.html +1201 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/selectable.html +848 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/show.html +144 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/slider.html +860 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/sortable.html +1953 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/switchClass.html +129 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/tabs.html +1549 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/toggle.html +144 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/docs/toggleClass.html +111 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/external/jquery.bgiframe-2.1.2.js +39 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/external/jquery.cookie.js +89 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/external/jquery.metadata.js +122 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/external/qunit.css +153 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/external/qunit.js +1261 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/jquery-1.5.1.js +8316 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.accordion.css +19 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.all.css +11 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.autocomplete.css +53 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.base.css +11 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.button.css +38 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.core.css +41 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.datepicker.css +68 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.dialog.css +21 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.progressbar.css +11 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.resizable.css +20 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.selectable.css +10 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.slider.css +24 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.tabs.css +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.theme.css +247 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_glass_75_ffffff_1x400.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-icons_222222_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-icons_2e83ff_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-icons_454545_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-icons_888888_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery-ui-1.8.14.custom.css +568 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.accordion.css +19 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.all.css +11 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.autocomplete.css +53 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.base.css +11 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.button.css +38 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.core.css +41 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.datepicker.css +68 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.dialog.css +21 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.progressbar.css +11 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.resizable.css +20 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.selectable.css +10 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.slider.css +24 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.tabs.css +18 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/themes/custom-theme/jquery.ui.theme.css +249 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery-ui-i18n.js +1379 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar-DZ.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-AU.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-NZ.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +25 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-gl.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ml.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js +22 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-rm.js +21 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tj.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery-ui-1.8.14.custom.js +11729 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.blind.js +49 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.bounce.js +78 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.clip.js +54 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.core.js +746 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.drop.js +50 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.explode.js +79 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.fade.js +32 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.fold.js +56 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.highlight.js +50 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.pulsate.js +51 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.scale.js +178 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.shake.js +57 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.slide.js +50 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.effects.transfer.js +45 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.accordion.js +611 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.autocomplete.js +612 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.button.js +416 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.core.js +312 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.datepicker.js +1814 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.dialog.js +878 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.draggable.js +823 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.droppable.js +296 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.mouse.js +160 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.position.js +252 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.progressbar.js +109 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.resizable.js +842 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.selectable.js +266 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.slider.js +666 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.sortable.js +1077 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.tabs.js +758 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/jquery.ui.widget.js +262 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.blind.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.bounce.min.js +15 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.clip.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.core.min.js +30 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.drop.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.explode.min.js +15 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.fade.min.js +13 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.fold.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.highlight.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.pulsate.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.scale.min.js +20 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.shake.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.slide.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.effects.transfer.min.js +14 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.accordion.min.js +30 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.autocomplete.min.js +32 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.button.min.js +27 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.core.min.js +17 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.datepicker.min.js +83 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.dialog.min.js +40 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.draggable.min.js +50 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.droppable.min.js +27 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.mouse.min.js +17 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.position.min.js +16 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.progressbar.min.js +16 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.resizable.min.js +49 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.selectable.min.js +22 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.slider.min.js +33 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.sortable.min.js +60 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.tabs.min.js +35 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.widget.min.js +15 -0
- data/share/views/public/plugins/jquery-ui/development-bundle/version.txt +1 -0
- data/share/views/public/plugins/jquery-ui/index.html +367 -0
- data/share/views/public/plugins/jquery-ui/js/jquery-1.5.1.min.js +16 -0
- data/share/views/public/plugins/jquery-ui/js/jquery-ui-1.8.14.custom.min.js +789 -0
- data/share/views/public/plugins/jquery.scrollTo/jquery.scrollTo.js +218 -0
- data/share/views/public/plugins/jquery.tablesorter/addons/pager/jquery.tablesorter.pager.css +25 -0
- data/share/views/public/plugins/jquery.tablesorter/addons/pager/jquery.tablesorter.pager.js +184 -0
- data/share/views/public/plugins/jquery.tablesorter/build.xml +26 -0
- data/share/views/public/plugins/jquery.tablesorter/build/ParseMaster.js +106 -0
- data/share/views/public/plugins/jquery.tablesorter/build/js.jar +0 -0
- data/share/views/public/plugins/jquery.tablesorter/build/jsmin.js +316 -0
- data/share/views/public/plugins/jquery.tablesorter/build/min.js +5 -0
- data/share/views/public/plugins/jquery.tablesorter/build/pack.js +5 -0
- data/share/views/public/plugins/jquery.tablesorter/build/packer.js +316 -0
- data/share/views/public/plugins/jquery.tablesorter/build/writeFile.js +19 -0
- data/share/views/public/plugins/jquery.tablesorter/changelog +41 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/assets/ajax-content.html +43 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/css/jq.css +29 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-ajax.html +119 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-empty-table.html +75 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-extending-defaults.html +109 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-meta-headers.html +108 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-meta-parsers.html +105 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-meta-sort-list.html +107 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-option-debug.html +116 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-option-digits.html +106 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-option-sort-force.html +107 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-option-sort-key.html +108 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-option-sort-list.html +108 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-option-sort-order.html +108 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-option-text-extraction.html +85 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-options-headers.html +118 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-pager.html +329 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-parsers.html +112 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-trigger-sort.html +113 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-triggers.html +336 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-update-cell.html +118 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/example-widgets.html +383 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/img/external.png +0 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/index.html +576 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/js/docs.js +23 -0
- data/share/views/public/plugins/jquery.tablesorter/docs/js/examples.js +29 -0
- data/share/views/public/plugins/jquery.tablesorter/jquery-latest.js +154 -0
- data/share/views/public/plugins/jquery.tablesorter/jquery.metadata.js +122 -0
- data/share/views/public/plugins/jquery.tablesorter/jquery.tablesorter.js +1037 -0
- data/share/views/public/plugins/jquery.tablesorter/jquery.tablesorter.min.js +4 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/assets/ajax-content.html +28 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/cell.metadata.html +112 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/checkbox.html +117 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/colspan.html +149 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/demo.html +353 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/index.html +22 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/large.html +30 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/lockedOrder.html +355 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/metadata.html +320 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/multiple-headers.html +67 -0
- data/share/views/public/plugins/jquery.tablesorter/tests/pager.html +553 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/blue/asc.gif +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/blue/bg.gif +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/blue/blue.zip +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/blue/desc.gif +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/blue/style.css +39 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/green/asc.png +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/green/bg.png +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/green/desc.png +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/green/green.zip +0 -0
- data/share/views/public/plugins/jquery.tablesorter/themes/green/style.css +39 -0
- data/share/views/public/plugins/jquery/js/jquery-1.8.0.min.js +2 -0
- data/share/views/public/plugins/jquery/js/jquery.cookie.js +47 -0
- data/share/views/public/plugins/jquery/js/jquery.form.js +980 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/demo.html +188 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/fonts/general_foundicons.eot +0 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/fonts/general_foundicons.svg +15 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/fonts/general_foundicons.ttf +0 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/fonts/general_foundicons.woff +0 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/sass/_settings.scss +28 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/sass/general_foundicons.scss +71 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/sass/general_foundicons_ie7.scss +56 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/stylesheets/general_foundicons.css +216 -0
- data/share/views/public/plugins/zurb-icons/foundation_icons_general/stylesheets/general_foundicons_ie7.css +194 -0
- data/share/views/public/plugins/zurb-responsive-tables/js/responsive-tables.js +66 -0
- data/share/views/public/plugins/zurb-responsive-tables/stylesheets/responsive-tables.css +50 -0
- data/share/views/tasks.haml +8 -0
- data/share/views/wait.haml +6 -0
- metadata +778 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
|
2
|
+
require 'rbbt/rest/common/users'
|
3
|
+
require 'rbbt/rest/common/table'
|
4
|
+
|
5
|
+
module RbbtRESTHelpers
|
6
|
+
|
7
|
+
MEMORY_CACHE = {}
|
8
|
+
|
9
|
+
def old_cache(path, check)
|
10
|
+
return false if check.nil? or check.empty?
|
11
|
+
return false if not File.exists? path
|
12
|
+
check = [check] unless Array === check
|
13
|
+
return check.select{|file| not File.exists?(file) or File.mtime(file) > File.mtime(path)}.any?
|
14
|
+
end
|
15
|
+
|
16
|
+
def cache(name, params = {}, &block)
|
17
|
+
return yield if name.nil? or cache_type.nil? or cache_type == :none
|
18
|
+
|
19
|
+
send_file = consume_parameter(:_send_file, params)
|
20
|
+
|
21
|
+
check = [params[:_template_file]].compact
|
22
|
+
check += consume_parameter(:_cache_check, params) || []
|
23
|
+
check.flatten!
|
24
|
+
|
25
|
+
name += "_" << Misc.hash2md5(params) if params.any?
|
26
|
+
|
27
|
+
path = File.join(settings.cache_dir, name)
|
28
|
+
task = Task.setup(:name => "Sinatra cache", :result_type => :string, &block)
|
29
|
+
|
30
|
+
step = Step.new(path, task, nil, nil, self)
|
31
|
+
|
32
|
+
self.instance_variable_set("@step", step)
|
33
|
+
|
34
|
+
if @fragment
|
35
|
+
fragment_file = step.file(@fragment)
|
36
|
+
if File.exists?(fragment_file)
|
37
|
+
case @format.to_s
|
38
|
+
when "tsv"
|
39
|
+
content_type "text/tab-separated-values"
|
40
|
+
send_file fragment_file
|
41
|
+
when "table"
|
42
|
+
tsv2html fragment_file
|
43
|
+
when "excel"
|
44
|
+
require 'rbbt/tsv/excel'
|
45
|
+
tsv = TSV.open(Open.open(fragment_file))
|
46
|
+
content_type "text/html"
|
47
|
+
data = nil
|
48
|
+
excel_file = TmpFile.tmp_file
|
49
|
+
tsv.excel(excel_file, :name => @excel_use_name,:sort_by => @excel_sort_by, :sort_by_cast => @excel_sort_by_cast)
|
50
|
+
send_file excel_file, :type => 'application/vnd.ms-excel', :filename => 'table.xls'
|
51
|
+
else
|
52
|
+
send_file fragment_file
|
53
|
+
end
|
54
|
+
else
|
55
|
+
if File.exists?(fragment_file + '.error')
|
56
|
+
halt 500, html_tag(:span, File.read(fragment_file + '.error'), :class => "message") +
|
57
|
+
html_tag(:ul, File.read(fragment_file + '.backtrace').split("\n").collect{|l| html_tag(:li, l)} * "\n", :class => "backtrace")
|
58
|
+
else
|
59
|
+
halt 202, "Fragment not completed"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
if old_cache(path, check) or update == :reload
|
66
|
+
begin
|
67
|
+
pid = step.info[:pid]
|
68
|
+
step.abort if pid and Misc.pid_exists? pid
|
69
|
+
step.pid = nil
|
70
|
+
rescue Exception
|
71
|
+
Log.medium $!.message
|
72
|
+
end
|
73
|
+
step.clean
|
74
|
+
end
|
75
|
+
|
76
|
+
step.fork unless step.started?
|
77
|
+
|
78
|
+
step.join if cache_type == :synchronous or cache_type == :sync
|
79
|
+
|
80
|
+
if update == :reload
|
81
|
+
url = request.url
|
82
|
+
url = remove_GET_param(url, :_update)
|
83
|
+
url = remove_GET_param(url, :_)
|
84
|
+
redirect to(url)
|
85
|
+
end
|
86
|
+
|
87
|
+
begin
|
88
|
+
case step.status
|
89
|
+
when :error, :aborted
|
90
|
+
error_for step, false
|
91
|
+
when :done
|
92
|
+
if send_file
|
93
|
+
send_file step.path
|
94
|
+
else
|
95
|
+
step.load
|
96
|
+
end
|
97
|
+
else
|
98
|
+
if File.exists?(step.info_file) and Time.now - File.atime(step.info_file) > 60
|
99
|
+
Log.debug("Checking on #{step.info_file}")
|
100
|
+
running = step.running?
|
101
|
+
if FalseClass === running
|
102
|
+
Log.debug("Aborting zombie #{step.info_file}")
|
103
|
+
step.abort unless step.done?
|
104
|
+
raise RbbtRESTHelpers::Retry
|
105
|
+
end
|
106
|
+
FileUtils.touch(step.info_file)
|
107
|
+
end
|
108
|
+
wait_on step, false
|
109
|
+
end
|
110
|
+
rescue RbbtRESTHelpers::Retry
|
111
|
+
retry
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
@@ -0,0 +1,97 @@
|
|
1
|
+
require 'rbbt/rest/common/misc'
|
2
|
+
|
3
|
+
module RbbtRESTHelpers
|
4
|
+
|
5
|
+
def input_label(id, name, description = nil, default = nil, options = {})
|
6
|
+
options ||= {}
|
7
|
+
text = consume_parameter :label, options
|
8
|
+
|
9
|
+
if text.nil?
|
10
|
+
text = name.to_s
|
11
|
+
text += html_tag('span', " (default: " << default.to_s << ")", :class => 'input_default') unless default.nil?
|
12
|
+
end
|
13
|
+
|
14
|
+
label_id = id.nil? ? nil : 'label_for__' << id
|
15
|
+
html_tag('label', text, {:id => label_id, :for => id, :title => description}.merge(options))
|
16
|
+
end
|
17
|
+
|
18
|
+
def file_or_text_area(id, name, value)
|
19
|
+
html_tag("input", nil, :type => "file", :id => (id.nil? ? nil : id + "__" + "param_file"), :name => name.to_s + "__" + "param_file") +
|
20
|
+
html_tag("span", "or use the text area bellow", :class => "file_or_text_area") +
|
21
|
+
html_tag("textarea", value || "" , :name => name, :id => id )
|
22
|
+
end
|
23
|
+
|
24
|
+
def form_input(name, type, default = nil, current = nil, description = nil, id = nil, extra = {})
|
25
|
+
html_options = consume_parameter(:html_options, extra) || {}
|
26
|
+
|
27
|
+
case type
|
28
|
+
when :boolean
|
29
|
+
current = param2boolean(current) unless current.nil?
|
30
|
+
default = param2boolean(default) unless default.nil?
|
31
|
+
|
32
|
+
check_true = current.nil? ? default : current
|
33
|
+
check_true = false if check_true.nil?
|
34
|
+
check_false = ! check_true
|
35
|
+
|
36
|
+
if id
|
37
|
+
false_id = id + '__' << 'false'
|
38
|
+
true_id = id + '__' << 'true'
|
39
|
+
else
|
40
|
+
false_id = nil
|
41
|
+
true_id = nil
|
42
|
+
end
|
43
|
+
|
44
|
+
input_label(id, name, description, default, extra) +
|
45
|
+
html_tag("input", nil, :type => :hidden, :name => name.to_s + "_checkbox_false", :value => "false") +
|
46
|
+
html_tag("input", nil, :type => :checkbox, :checked => check_true, :name => name, :value => "true", :id => id)
|
47
|
+
|
48
|
+
when :string, :float, :integer
|
49
|
+
value = current.nil? ? default : current
|
50
|
+
|
51
|
+
input_type = type == :string ? "text" : "number"
|
52
|
+
step = case type
|
53
|
+
when :string
|
54
|
+
nil
|
55
|
+
when :float
|
56
|
+
"any"
|
57
|
+
when :integer
|
58
|
+
1
|
59
|
+
end
|
60
|
+
|
61
|
+
input_label(id, name, description, default, extra) +
|
62
|
+
html_tag("input", nil, html_options.merge(:type => input_type, :name => name, :value => value, :id => id, :step => step))
|
63
|
+
|
64
|
+
when :tsv, :array, :text
|
65
|
+
value = current.nil? ? default : current
|
66
|
+
value = value * "\n" if Array === value
|
67
|
+
|
68
|
+
input_label(id, name, description, default, extra) +
|
69
|
+
file_or_text_area(id, name, value)
|
70
|
+
|
71
|
+
when :select
|
72
|
+
value = current.nil? ? default : current
|
73
|
+
|
74
|
+
|
75
|
+
allow_empty = consume_parameter :allow_empty, extra
|
76
|
+
select_options = consume_parameter :select_options, extra
|
77
|
+
|
78
|
+
|
79
|
+
if select_options
|
80
|
+
options = select_options.collect do |option|
|
81
|
+
option, option_name = option if Array === option
|
82
|
+
option_name = option if option_name.nil?
|
83
|
+
html_tag('option', option_name, :value => option, :selected => option.to_s == value.to_s)
|
84
|
+
end
|
85
|
+
else
|
86
|
+
options = []
|
87
|
+
end
|
88
|
+
|
89
|
+
options.unshift html_tag('option', 'none', :value => 'none', :selected => value.to_s == 'none') if allow_empty
|
90
|
+
|
91
|
+
input_label(id, name, description, default, extra) +
|
92
|
+
html_tag('select', options * "\n", html_options.merge(:name => name, :id => id, "attr-selected" => (value ? value.to_s : "")))
|
93
|
+
else
|
94
|
+
"<span> Unsupported input #{name} #{type} </span>"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
module RbbtRESTHelpers
|
2
|
+
attr_accessor :template_resources, :sass_resources, :javascript_resources, :plugin_resources
|
3
|
+
|
4
|
+
#{{{ TEMPLATE
|
5
|
+
|
6
|
+
def self.template_resources
|
7
|
+
@template_resources ||= [Rbbt.share.views.find(:lib)]
|
8
|
+
end
|
9
|
+
|
10
|
+
def template_resources
|
11
|
+
[Rbbt.www.views.find(:lib)] + RbbtRESTHelpers.template_resources
|
12
|
+
end
|
13
|
+
|
14
|
+
def locate_template_from_resource(resource, template)
|
15
|
+
resource[template + '.haml']
|
16
|
+
end
|
17
|
+
|
18
|
+
def locate_template(template)
|
19
|
+
template_resources.each do |resource|
|
20
|
+
path = locate_template_from_resource(resource, template)
|
21
|
+
return path if path.exists?
|
22
|
+
end
|
23
|
+
|
24
|
+
raise "Template #{ template } not found"
|
25
|
+
end
|
26
|
+
|
27
|
+
#{{{ SASS
|
28
|
+
|
29
|
+
def self.sass_resources
|
30
|
+
@sass_resources ||= [Rbbt.share.views.compass.find(:lib)]
|
31
|
+
end
|
32
|
+
|
33
|
+
def sass_resources
|
34
|
+
[Rbbt.www.views.find(:lib)] + RbbtRESTHelpers.sass_resources
|
35
|
+
end
|
36
|
+
|
37
|
+
def locate_sass_from_resource(resource, template)
|
38
|
+
resource[template + '.sass']
|
39
|
+
end
|
40
|
+
|
41
|
+
def locate_sass(template)
|
42
|
+
sass_resources.each do |resource|
|
43
|
+
path = locate_sass_from_resource(resource, template)
|
44
|
+
return path if path.exists?
|
45
|
+
end
|
46
|
+
|
47
|
+
raise "Sass template #{ template } not found"
|
48
|
+
end
|
49
|
+
|
50
|
+
#{{{ JAVASCRIPT
|
51
|
+
|
52
|
+
def self.javascript_resources
|
53
|
+
@javascript_resources ||= [Rbbt.share.views.js.find(:lib), Rbbt.share.views.public.find(:lib)]
|
54
|
+
end
|
55
|
+
|
56
|
+
def javascript_resources
|
57
|
+
[Rbbt.www.views.js.find(:lib), Rbbt.www.views.public.find(:lib)] + RbbtRESTHelpers.javascript_resources
|
58
|
+
end
|
59
|
+
|
60
|
+
|
61
|
+
def locate_javascript_from_resource(resource, script)
|
62
|
+
path = resource[script + '.js']
|
63
|
+
return path if path.exists?
|
64
|
+
resource[script]
|
65
|
+
end
|
66
|
+
|
67
|
+
def locate_javascript(script)
|
68
|
+
javascript_resources.each do |resource|
|
69
|
+
path = locate_javascript_from_resource(resource, script)
|
70
|
+
return path if path.exists?
|
71
|
+
end
|
72
|
+
|
73
|
+
raise "Script #{ script } not found"
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,164 @@
|
|
1
|
+
require 'rbbt/util/misc'
|
2
|
+
|
3
|
+
module RbbtRESTHelpers
|
4
|
+
class Retry < Exception; end
|
5
|
+
|
6
|
+
PAGE_SIZE = 20
|
7
|
+
|
8
|
+
def production?
|
9
|
+
ENV["RACK_ENV"] == "production"
|
10
|
+
end
|
11
|
+
|
12
|
+
def process_common_parameters
|
13
|
+
@ajax = request.xhr?
|
14
|
+
@ajax_url = headers["AJAX-URL"]
|
15
|
+
|
16
|
+
@fullpath = request.fullpath
|
17
|
+
|
18
|
+
@layout = consume_parameter(:_layout)
|
19
|
+
@layout = false if @layout.nil? and @ajax
|
20
|
+
@layout = true if @layout.nil? and not @ajax
|
21
|
+
@layout = false if @layout == "false"
|
22
|
+
@layout = true if @layout == "true"
|
23
|
+
|
24
|
+
@format = consume_parameter(:_format)
|
25
|
+
@format = :html if @format.nil?
|
26
|
+
@format = @format.to_sym if String === @format
|
27
|
+
|
28
|
+
|
29
|
+
@size = consume_parameter(:_size)
|
30
|
+
@size = @size.to_sym if String === @size
|
31
|
+
|
32
|
+
@update = consume_parameter(:_update) unless @update
|
33
|
+
@update = @update.to_sym if String === @update
|
34
|
+
|
35
|
+
@profile = consume_parameter(:_profile) unless @profile
|
36
|
+
@profile = @profile.to_sym if String === @profile
|
37
|
+
|
38
|
+
@cache_type = consume_parameter(:_cache_type)
|
39
|
+
@cache_type = @cache_type.to_sym if String === @cache_type
|
40
|
+
|
41
|
+
@debug_js = consume_parameter(:_debug_js)
|
42
|
+
@debug_js = false if @debug_js.nil? or @debug_js == "false"
|
43
|
+
|
44
|
+
@_ = consume_parameter(:_)
|
45
|
+
|
46
|
+
@fragment = consume_parameter(:_fragment)
|
47
|
+
|
48
|
+
@excel_use_name = consume_parameter(:_excel_use_name)
|
49
|
+
@excel_sort_by = consume_parameter(:_excel_sort_by)
|
50
|
+
@excel_sort_by_cast = consume_parameter(:_excel_sort_by_cast)
|
51
|
+
|
52
|
+
@splat = consume_parameter :splat
|
53
|
+
@captures = consume_parameter :captures
|
54
|
+
|
55
|
+
# Pagination
|
56
|
+
@page = consume_parameter :_page
|
57
|
+
|
58
|
+
# Fix boolean inputs sumbitted using checkboxes
|
59
|
+
params.keys.each do |param|
|
60
|
+
if param =~ /(.*)_checkbox_false$/
|
61
|
+
params[$1] = false if params[$1].nil?
|
62
|
+
params.delete param
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
@clean_params = params.dup
|
67
|
+
end
|
68
|
+
|
69
|
+
def consume_parameter(parameter, params = nil)
|
70
|
+
params = self.params if params.nil?
|
71
|
+
|
72
|
+
val = params.delete(parameter.to_sym)
|
73
|
+
val = params.delete(parameter.to_s) if val.nil?
|
74
|
+
|
75
|
+
val = nil if String === val and val.empty?
|
76
|
+
|
77
|
+
val
|
78
|
+
end
|
79
|
+
|
80
|
+
def fix_input(type, value, param_file = nil)
|
81
|
+
case type
|
82
|
+
|
83
|
+
when nil, :string, :select
|
84
|
+
value
|
85
|
+
|
86
|
+
when :integer
|
87
|
+
value.to_i
|
88
|
+
|
89
|
+
when :float
|
90
|
+
value.to_f
|
91
|
+
|
92
|
+
when :boolean
|
93
|
+
param2boolean(value)
|
94
|
+
|
95
|
+
when :text
|
96
|
+
if param_file and (value.nil? or (String === value and value.empty?))
|
97
|
+
param_file[:tempfile].read
|
98
|
+
else
|
99
|
+
value.gsub(/\r\n/, "\n")
|
100
|
+
end
|
101
|
+
|
102
|
+
when :array
|
103
|
+
text = if param_file and (value.nil? or (String === value and value.empty?))
|
104
|
+
param_file[:tempfile].read
|
105
|
+
else
|
106
|
+
value
|
107
|
+
end
|
108
|
+
|
109
|
+
if Array === text
|
110
|
+
text
|
111
|
+
else
|
112
|
+
if text =~ /\[.*\]/
|
113
|
+
JSON.parse(text)
|
114
|
+
else
|
115
|
+
text.split(/\r?\n|\|/).collect{|l| l.strip}
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
when :tsv
|
120
|
+
if param_file and (value.nil? or (String === value and value.empty?))
|
121
|
+
TSV.open(param_file[:tempfile].open)
|
122
|
+
else
|
123
|
+
TSV.open(StringIO.new(value))
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
def param2boolean(value)
|
130
|
+
case value
|
131
|
+
when "true", "True", "TRUE", "T", "yes", "Yes", "y", "Y"
|
132
|
+
true
|
133
|
+
when "false", "False", "FALSE", "F", "no", "No", "N", "n"
|
134
|
+
false
|
135
|
+
else
|
136
|
+
value
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
def html_tag(*args)
|
141
|
+
Misc.html_tag(*args)
|
142
|
+
end
|
143
|
+
|
144
|
+
def remove_GET_param(url, param)
|
145
|
+
url.gsub(/&?#{param}=[^&]+/,'').sub(/\?$/, '')
|
146
|
+
end
|
147
|
+
|
148
|
+
def add_GET_param(url, param, value)
|
149
|
+
if url =~ /\?.+=/
|
150
|
+
url + "&#{ param }=#{ value }"
|
151
|
+
else
|
152
|
+
url + "?#{ param }=#{ value }"
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
def hash2dl(hash, options = {})
|
157
|
+
entries = hash.collect{|k,v|
|
158
|
+
v = v * ", " if Array === v
|
159
|
+
html_tag(:dt, k) +
|
160
|
+
html_tag(:dd, v)
|
161
|
+
} * "\n"
|
162
|
+
html_tag(:dl, entries, options)
|
163
|
+
end
|
164
|
+
end
|