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,26 @@
|
|
1
|
+
class EntityListCard
|
2
|
+
|
3
|
+
attr_accessor :list, :list_id
|
4
|
+
attr_accessor :meta, :description
|
5
|
+
attr_accessor :list_container, :action_controller
|
6
|
+
|
7
|
+
def initialize(list, list_id)
|
8
|
+
@list, @list_id = list, list_id
|
9
|
+
end
|
10
|
+
|
11
|
+
%w(meta description).each do |method|
|
12
|
+
self.send(:define_method, method.to_sym) do |&block|
|
13
|
+
if block
|
14
|
+
instance_variable_set("@#{method}", block)
|
15
|
+
else
|
16
|
+
instance_variable_get("@#{method}")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module EntityRESTHelpers
|
23
|
+
def entity_list_card_render(card)
|
24
|
+
partial_render('entity_partials/entity_list_card', :card => card)
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
module EntityRESTHelpers
|
2
|
+
|
3
|
+
#{{{ Entities
|
4
|
+
|
5
|
+
def favourite_entities
|
6
|
+
raise "You need to login to have favourites" unless authorized?
|
7
|
+
|
8
|
+
dir = Path.setup(File.join(settings.favourites_dir, user))
|
9
|
+
favourites = {}
|
10
|
+
dir.glob('**').each do |file|
|
11
|
+
type = File.basename(file)
|
12
|
+
entities = Annotated.load_tsv(TSV.open(file))
|
13
|
+
favourites[type] = entities
|
14
|
+
end
|
15
|
+
favourites
|
16
|
+
end
|
17
|
+
|
18
|
+
def add_favourite_entity(entity)
|
19
|
+
raise "You need to login to have favourites" unless authorized?
|
20
|
+
|
21
|
+
entity_type = entity.base_type
|
22
|
+
dir = Path.setup(File.join(settings.favourites_dir, user))
|
23
|
+
|
24
|
+
if (file = dir[entity_type]).exists?
|
25
|
+
entities = Annotated.load_tsv(TSV.open(file))
|
26
|
+
entities << entity
|
27
|
+
Open.write(file, Annotated.tsv(entities.uniq, :all).to_s)
|
28
|
+
else
|
29
|
+
entities = [entity]
|
30
|
+
Open.write(file, Annotated.tsv(entities, :all).to_s)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def remove_favourite_entity(entity)
|
35
|
+
raise "You need to login to have favourites" unless authorized?
|
36
|
+
|
37
|
+
entity_type = entity.base_type
|
38
|
+
dir = Path.setup(File.join(settings.favourites_dir, user))
|
39
|
+
|
40
|
+
if (file = dir[entity_type]).exists?
|
41
|
+
entities = Annotated.load_tsv(TSV.open(file))
|
42
|
+
entities -= [entity]
|
43
|
+
if entities.any?
|
44
|
+
Open.write(file, Annotated.tsv(entities.uniq, :all).to_s)
|
45
|
+
else
|
46
|
+
FileUtils.rm file
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
#{{{ Entity Lists
|
52
|
+
|
53
|
+
def favourite_entity_lists
|
54
|
+
raise "You need to login to have favourites" unless authorized?
|
55
|
+
|
56
|
+
dir = Path.setup(File.join(settings.favourite_lists_dir, user))
|
57
|
+
favourites = {}
|
58
|
+
dir.glob('**').each do |file|
|
59
|
+
type = File.basename(file)
|
60
|
+
lists = Open.read(file).split("\n")
|
61
|
+
favourites[type] = lists
|
62
|
+
end
|
63
|
+
favourites
|
64
|
+
end
|
65
|
+
|
66
|
+
def add_favourite_entity_list(entity_type, list)
|
67
|
+
raise "You need to login to have favourites" unless authorized?
|
68
|
+
|
69
|
+
dir = Path.setup(File.join(settings.favourite_lists_dir, user))
|
70
|
+
|
71
|
+
if (file = dir[entity_type]).exists?
|
72
|
+
lists = Open.read(file).split("\n")
|
73
|
+
lists << list
|
74
|
+
Open.write(file, lists * "\n")
|
75
|
+
else
|
76
|
+
lists = [list]
|
77
|
+
Open.write(file, lists * "\n")
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def remove_favourite_entity_list(entity_type, list)
|
82
|
+
raise "You need to login to have favourites" unless authorized?
|
83
|
+
|
84
|
+
dir = Path.setup(File.join(settings.favourite_lists_dir, user))
|
85
|
+
|
86
|
+
if (file = dir[entity_type]).exists?
|
87
|
+
lists = Open.read(file).split("\n")
|
88
|
+
lists -= [list]
|
89
|
+
if lists.any?
|
90
|
+
Open.write(file, lists * "\n")
|
91
|
+
else
|
92
|
+
FileUtils.rm file
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'rbbt/ner/finder'
|
2
|
+
|
3
|
+
module EntityRESTHelpers
|
4
|
+
def finder_find(term)
|
5
|
+
return [] unless settings.respond_to? :finder and not settings.finder.nil?
|
6
|
+
results = settings.finder.find(term)
|
7
|
+
|
8
|
+
results.uniq.collect{|r|
|
9
|
+
info = r.info
|
10
|
+
format_string = [info[:namespace], info[:format]].compact * ":"
|
11
|
+
|
12
|
+
info[:code] = r
|
13
|
+
|
14
|
+
if not format_string.empty?
|
15
|
+
info[:value] = r + " [#{format_string}]"
|
16
|
+
else
|
17
|
+
info[:value] = r
|
18
|
+
end
|
19
|
+
|
20
|
+
score = info.delete :score
|
21
|
+
|
22
|
+
if Array === score
|
23
|
+
info[:score] = score[0]
|
24
|
+
info[:best] = score[1]
|
25
|
+
end
|
26
|
+
|
27
|
+
info
|
28
|
+
}.sort_by{|i| i[:score] || 0}.reverse
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
|
2
|
+
module EntityRESTHelpers
|
3
|
+
|
4
|
+
def list(list, list_id = nil, text = nil)
|
5
|
+
partial_render('entity_partials/entity_list', :list => list, :list_id => list_id, :text => text)
|
6
|
+
end
|
7
|
+
|
8
|
+
def action_parameters_id
|
9
|
+
case
|
10
|
+
when (params[:entity] and params[:action])
|
11
|
+
["action_params", params[:entity], params[:action]] * "__"
|
12
|
+
else
|
13
|
+
["action_params", (rand * 1000).to_i] * "__"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def action_parameters(values = nil, &block)
|
18
|
+
o = Object.new
|
19
|
+
o.extend AnnotatedModule
|
20
|
+
|
21
|
+
if values.nil?
|
22
|
+
values = @clean_params
|
23
|
+
else
|
24
|
+
values = @clean_params.merge(values)
|
25
|
+
end
|
26
|
+
|
27
|
+
o.instance_eval &block
|
28
|
+
|
29
|
+
inputs = o.inputs
|
30
|
+
input_types = o.input_types
|
31
|
+
input_defaults = o.input_defaults
|
32
|
+
input_options = o.input_options
|
33
|
+
input_descriptions = o.input_descriptions
|
34
|
+
|
35
|
+
hidden_inputs = []
|
36
|
+
inputs.each do |input|
|
37
|
+
values[input] = values.delete input.to_s unless values.include? input
|
38
|
+
input_value = values[input]
|
39
|
+
input_default = input_defaults[input]
|
40
|
+
input_option = input_options[input]
|
41
|
+
end
|
42
|
+
|
43
|
+
locals = {}
|
44
|
+
info = {:inputs => inputs, :input_descriptions => input_descriptions, :input_defaults => input_defaults, :input_options => input_options, :input_types => input_types, :values => values}
|
45
|
+
locals[:id] = action_parameters_id
|
46
|
+
locals[:action] = @ajax_url
|
47
|
+
locals[:klass] = 'action_parameter_form'
|
48
|
+
locals[:info] = info
|
49
|
+
|
50
|
+
html_tag :div, partial_render('partials/form', locals), :class => 'action_parameters'
|
51
|
+
end
|
52
|
+
|
53
|
+
def page_type(path = nil)
|
54
|
+
path = request.path_info
|
55
|
+
|
56
|
+
case
|
57
|
+
when path.match(/^\/entity\//)
|
58
|
+
return "entity";
|
59
|
+
when path.match(/^\/entity_action\//)
|
60
|
+
return "entity_action";
|
61
|
+
when path.match(/^\/entity_list\//)
|
62
|
+
return "entity_list";
|
63
|
+
when path.match(/^\/entity_list_action\//)
|
64
|
+
return "entity_list_action";
|
65
|
+
else
|
66
|
+
return nil;
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def page_entity(path = nil)
|
71
|
+
path = request.path_info
|
72
|
+
|
73
|
+
case page_type
|
74
|
+
when "entity"
|
75
|
+
return Entity::REST.restore_element(path.split("/")[3])
|
76
|
+
when "entity_action"
|
77
|
+
return Entity::REST.restore_element(path.split("/")[4])
|
78
|
+
else
|
79
|
+
return nil
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def page_action(path = nil)
|
84
|
+
path = request.path_info
|
85
|
+
|
86
|
+
case page_type
|
87
|
+
when "entity_action", "entity_list_action"
|
88
|
+
return Entity::REST.restore_element(path.split("/")[3])
|
89
|
+
else
|
90
|
+
return nil
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
|
95
|
+
def page_entity_list(path = nil)
|
96
|
+
path = request.path_info
|
97
|
+
|
98
|
+
case page_type
|
99
|
+
when "entity_list"
|
100
|
+
return Entity::REST.restore_element(path.split("/")[3])
|
101
|
+
when "entity_list_action"
|
102
|
+
return Entity::REST.restore_element(path.split("/")[4])
|
103
|
+
else
|
104
|
+
return nil
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
def page_entity_type(path = nil)
|
109
|
+
path = request.path_info
|
110
|
+
|
111
|
+
case page_type
|
112
|
+
when "entity", "entity_list", "entity_action", "entity_list_action"
|
113
|
+
return Entity::REST.restore_element(path.split("/")[2])
|
114
|
+
else
|
115
|
+
return nil
|
116
|
+
end
|
117
|
+
end
|
118
|
+
#
|
119
|
+
#
|
120
|
+
#function page_entity_base_type(){
|
121
|
+
# return page_entity_type().split(":")[0]
|
122
|
+
#}
|
123
|
+
#
|
124
|
+
#
|
125
|
+
#function page_entity_format(){
|
126
|
+
# return page_entity_type().split(":")[1]
|
127
|
+
#}
|
128
|
+
|
129
|
+
|
130
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'rbbt/entity'
|
2
|
+
require 'cgi'
|
3
|
+
|
4
|
+
module Entity
|
5
|
+
module List
|
6
|
+
|
7
|
+
def self.list_file(entity_type, id, user = nil)
|
8
|
+
id = Misc.sanitize_filename(id)
|
9
|
+
|
10
|
+
entity_type = entity_type.split(":").first
|
11
|
+
|
12
|
+
raise "Ilegal list id: #{ id }" unless Misc.path_relative_to Entity.entity_list_cache, File.join(Entity.entity_list_cache, id)
|
13
|
+
|
14
|
+
path = if user.nil?
|
15
|
+
File.join(Entity.entity_list_cache, entity_type.to_s, id)
|
16
|
+
else
|
17
|
+
File.join(Entity.entity_list_cache, user.to_s, entity_type.to_s, id)
|
18
|
+
end
|
19
|
+
|
20
|
+
path
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.list_files(user = nil)
|
24
|
+
|
25
|
+
path = user.nil? ?
|
26
|
+
File.join(Entity.entity_list_cache, '*', '*') :
|
27
|
+
File.join(Entity.entity_list_cache, user, '*', '*')
|
28
|
+
|
29
|
+
lists = {}
|
30
|
+
Dir.glob(path).each do |file|
|
31
|
+
next if File.directory? file
|
32
|
+
|
33
|
+
file = File.expand_path(file)
|
34
|
+
raise "Ilegal path: #{ file }. Not relative to #{File.expand_path(Entity.entity_list_cache)}" unless
|
35
|
+
Misc.path_relative_to(File.expand_path(Entity.entity_list_cache), file)
|
36
|
+
|
37
|
+
if user.nil?
|
38
|
+
entity_type, list = file.split("/")[-2..-1]
|
39
|
+
else
|
40
|
+
user, entity_type, list = file.split("/")[-3..-1]
|
41
|
+
end
|
42
|
+
|
43
|
+
lists[entity_type] ||= []
|
44
|
+
lists[entity_type] << list
|
45
|
+
end
|
46
|
+
|
47
|
+
lists
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.load_list(entity_type, id, user = nil)
|
51
|
+
path = list_file(entity_type, id, user)
|
52
|
+
path = list_file(entity_type, id, :public) unless path != nil and File.exists? path
|
53
|
+
path = list_file(entity_type, id) unless path != nil and File.exists? path
|
54
|
+
|
55
|
+
begin
|
56
|
+
list = Annotated.load_tsv TSV.open(path)
|
57
|
+
list.extend AnnotatedArray
|
58
|
+
list
|
59
|
+
rescue
|
60
|
+
nil
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.save_list(entity_type, id, list, user = nil)
|
65
|
+
path = list_file(entity_type, id, user)
|
66
|
+
|
67
|
+
Misc.lock path do
|
68
|
+
begin
|
69
|
+
Open.write(path, Annotated.tsv(list, :all).to_s)
|
70
|
+
rescue
|
71
|
+
FileUtils.rm path if File.exists? path
|
72
|
+
raise $!
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.delete_list(entity_type, id, user)
|
78
|
+
path = list_file(entity_type, id, user)
|
79
|
+
|
80
|
+
"This list does not belong to #{ user }: #{[entity_type, id] * ": "}" unless File.exists? path
|
81
|
+
|
82
|
+
Misc.lock path do
|
83
|
+
begin
|
84
|
+
FileUtils.rm path if File.exists? path
|
85
|
+
rescue
|
86
|
+
raise $!
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class ListContainer
|
2
|
+
attr_accessor :lists
|
3
|
+
def initialize
|
4
|
+
@lists = []
|
5
|
+
end
|
6
|
+
|
7
|
+
def add(list_id, list = nil, text = nil, options = {}, &block)
|
8
|
+
text, options, list = list, text, block if block_given?
|
9
|
+
options, text = text, options if Hash === text
|
10
|
+
|
11
|
+
if list and (Proc === list or list.any?)
|
12
|
+
@lists << [list_id, list, text, options]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
module EntityRESTHelpers
|
19
|
+
def list_container_render(container)
|
20
|
+
partial_render('entity_partials/list_container', :container => container)
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,281 @@
|
|
1
|
+
module EntityRESTHelpers
|
2
|
+
|
3
|
+
def self.entity_resources
|
4
|
+
@entity_resources ||= [Rbbt.share.views.find(:lib)]
|
5
|
+
end
|
6
|
+
|
7
|
+
def entity_resources
|
8
|
+
[Rbbt.www.views.find(:lib)] + EntityRESTHelpers.entity_resources
|
9
|
+
end
|
10
|
+
|
11
|
+
#{{{ ENTITY
|
12
|
+
|
13
|
+
def locate_entity_template_from_resource(resource, entity)
|
14
|
+
if entity == "Default"
|
15
|
+
path = resource.entity["Default.haml"]
|
16
|
+
if path.exists?
|
17
|
+
return path
|
18
|
+
else
|
19
|
+
return nil
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
entity.annotation_types.each do |annotation|
|
24
|
+
path = resource.entity[annotation.to_s + ".haml"]
|
25
|
+
return path if path.exists?
|
26
|
+
end
|
27
|
+
|
28
|
+
nil
|
29
|
+
end
|
30
|
+
|
31
|
+
def locate_entity_template(entity)
|
32
|
+
|
33
|
+
if entity.respond_to? :dir and Path === entity.dir
|
34
|
+
entity_views = entity.dir.www.views
|
35
|
+
|
36
|
+
entity.annotation_types.each do |annotation|
|
37
|
+
path = entity_views.entity[annotation.to_s + ".haml"]
|
38
|
+
return path if path.exists?
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
entity_resources.each do |resource|
|
43
|
+
path = locate_entity_template_from_resource(resource, entity)
|
44
|
+
return path if path and path.exists?
|
45
|
+
end
|
46
|
+
|
47
|
+
entity_resources.each do |resource|
|
48
|
+
path = locate_entity_template_from_resource(resource, "Default")
|
49
|
+
return path if path and path.exists?
|
50
|
+
end
|
51
|
+
|
52
|
+
raise "Template not found for entity: #{ entity } (#{entity.annotation_types * ", "})"
|
53
|
+
end
|
54
|
+
|
55
|
+
#{{{ ENTITY ACTION
|
56
|
+
|
57
|
+
def find_all_entity_action_templates_from_resource(resource, entity)
|
58
|
+
if entity == "Default"
|
59
|
+
resource.entity["Default"].glob("*.haml")
|
60
|
+
else
|
61
|
+
entity.annotation_types.collect do |annotation|
|
62
|
+
resource.entity[annotation].glob('*.haml')
|
63
|
+
end.compact.flatten
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def find_all_entity_action_templates(entity, check = false)
|
68
|
+
paths = []
|
69
|
+
|
70
|
+
if entity.respond_to? :dir and Path === entity.dir
|
71
|
+
paths.concat find_all_entity_action_templates_from_resource(entity.dir.www.views, entity)
|
72
|
+
end
|
73
|
+
|
74
|
+
entity_resources.each do |resource|
|
75
|
+
paths.concat find_all_entity_action_templates_from_resource(resource, entity)
|
76
|
+
end
|
77
|
+
|
78
|
+
entity_resources.each do |resource|
|
79
|
+
paths.concat find_all_entity_action_templates_from_resource(resource, "Default")
|
80
|
+
end
|
81
|
+
|
82
|
+
if check
|
83
|
+
paths = paths.reject do |path|
|
84
|
+
check_file = path.sub(/\.haml$/, '.check')
|
85
|
+
case
|
86
|
+
when (path.basename == "edit.haml" or path.basename == 'new.haml')
|
87
|
+
true
|
88
|
+
when File.exists?(check_file)
|
89
|
+
begin
|
90
|
+
Log.debug("Checking action template: #{path}")
|
91
|
+
code = File.read(check_file)
|
92
|
+
accept = eval code
|
93
|
+
not accept
|
94
|
+
rescue
|
95
|
+
Log.debug("Error Checking action template #{path}: #{$!.message}")
|
96
|
+
true
|
97
|
+
end
|
98
|
+
else
|
99
|
+
false
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
paths.collect{|file| file.basename.sub('.haml', '') }.uniq
|
105
|
+
end
|
106
|
+
|
107
|
+
def locate_entity_action_template_from_resource(resource, entity, action)
|
108
|
+
if entity == "Default"
|
109
|
+
path = resource.entity["Default"][action.to_s + ".haml"]
|
110
|
+
if path.exists?
|
111
|
+
return path
|
112
|
+
else
|
113
|
+
return nil
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
entity.annotation_types.each do |annotation|
|
118
|
+
path = resource.entity[annotation][action.to_s + ".haml"]
|
119
|
+
return path if path.exists?
|
120
|
+
end
|
121
|
+
|
122
|
+
nil
|
123
|
+
end
|
124
|
+
|
125
|
+
def locate_entity_action_template(entity, action)
|
126
|
+
|
127
|
+
if entity.respond_to? :dir and Path === entity.dir
|
128
|
+
path = locate_entity_action_template_from_resource(entity.dir.www.views, entity, action)
|
129
|
+
return path if path and path.exists?
|
130
|
+
end
|
131
|
+
|
132
|
+
entity_resources.each do |resource|
|
133
|
+
path = locate_entity_action_template_from_resource(resource, entity, action)
|
134
|
+
return path if path and path.exists?
|
135
|
+
end
|
136
|
+
|
137
|
+
entity_resources.each do |resource|
|
138
|
+
path = locate_entity_action_template_from_resource(resource, "Default", action)
|
139
|
+
return path if path and path.exists?
|
140
|
+
end
|
141
|
+
|
142
|
+
raise "Template not found for action #{action}: #{ entity } (#{entity.annotation_types * ", "})"
|
143
|
+
end
|
144
|
+
|
145
|
+
#{{{ ENTITY LIST
|
146
|
+
|
147
|
+
def locate_entity_list_template_from_resource(resource, list)
|
148
|
+
if list == "Default"
|
149
|
+
path = resource.entity_list["Default.haml"]
|
150
|
+
if path.exists?
|
151
|
+
return path
|
152
|
+
else
|
153
|
+
return nil
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
list.annotation_types.each do |annotation|
|
158
|
+
path = resource.entity_list[annotation.to_s + ".haml"]
|
159
|
+
return path if path.exists?
|
160
|
+
end
|
161
|
+
|
162
|
+
nil
|
163
|
+
end
|
164
|
+
|
165
|
+
def locate_entity_list_template(list)
|
166
|
+
|
167
|
+
if list.respond_to? :dir and Path === list.dir
|
168
|
+
list_views = list.dir.www.views
|
169
|
+
|
170
|
+
list.annotation_types.each do |annotation|
|
171
|
+
path = list_views.entity_list[annotation.to_s + ".haml"]
|
172
|
+
return path if path.exists?
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
entity_resources.each do |resource|
|
177
|
+
path = locate_entity_list_template_from_resource(resource, list)
|
178
|
+
return path if path and path.exists?
|
179
|
+
end
|
180
|
+
|
181
|
+
entity_resources.each do |resource|
|
182
|
+
path = locate_entity_list_template_from_resource(resource, "Default")
|
183
|
+
return path if path and path.exists?
|
184
|
+
end
|
185
|
+
|
186
|
+
raise "Template not found for list (#{list.annotation_types * ", "})"
|
187
|
+
end
|
188
|
+
|
189
|
+
|
190
|
+
#{{{ ENTITY LIST ACTION
|
191
|
+
|
192
|
+
def find_all_entity_list_action_templates_from_resource(resource, entity)
|
193
|
+
|
194
|
+
if entity == "Default"
|
195
|
+
resource.entity_list["Default"].glob("*.haml")
|
196
|
+
else
|
197
|
+
entity.annotation_types.collect do |annotation|
|
198
|
+
resource.entity_list[annotation].glob('*.haml')
|
199
|
+
end.compact.flatten
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
def find_all_entity_list_action_templates(list, check = false)
|
204
|
+
paths = []
|
205
|
+
|
206
|
+
if list.respond_to? :dir and Path === list.dir
|
207
|
+
paths.concat find_all_entity_list_action_templates_from_resource(list.dir.www.views, list)
|
208
|
+
end
|
209
|
+
|
210
|
+
entity_resources.each do |resource|
|
211
|
+
paths.concat find_all_entity_list_action_templates_from_resource(resource, list)
|
212
|
+
end
|
213
|
+
|
214
|
+
entity_resources.each do |resource|
|
215
|
+
paths.concat find_all_entity_list_action_templates_from_resource(resource, "Default")
|
216
|
+
end
|
217
|
+
|
218
|
+
if check
|
219
|
+
paths = paths.reject do |path|
|
220
|
+
check_file = path.sub(/\.haml$/, '.check')
|
221
|
+
case
|
222
|
+
when (path.basename == "edit.haml" or path.basename == 'new.haml')
|
223
|
+
true
|
224
|
+
when File.exists?(check_file)
|
225
|
+
begin
|
226
|
+
Log.debug("Checking action template: #{path}")
|
227
|
+
code = File.read(check_file)
|
228
|
+
accept = eval code
|
229
|
+
not accept
|
230
|
+
rescue
|
231
|
+
Log.debug("Error Checking action template #{path}: #{$!.message}")
|
232
|
+
true
|
233
|
+
end
|
234
|
+
else
|
235
|
+
false
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
paths.collect{|file| file.basename.sub('.haml', '') }.uniq
|
241
|
+
end
|
242
|
+
|
243
|
+
|
244
|
+
def locate_entity_list_action_template_from_resource(resource, list, action)
|
245
|
+
if list == "Default"
|
246
|
+
path = resource.entity_list["Default"][action.to_s + ".haml"]
|
247
|
+
if path.exists?
|
248
|
+
return path
|
249
|
+
else
|
250
|
+
return nil
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
list.annotation_types.each do |annotation|
|
255
|
+
path = resource.entity_list[annotation][action.to_s + ".haml"]
|
256
|
+
return path if path.exists?
|
257
|
+
end
|
258
|
+
|
259
|
+
nil
|
260
|
+
end
|
261
|
+
|
262
|
+
def locate_entity_list_action_template(list, action)
|
263
|
+
|
264
|
+
if list.respond_to? :dir and Path === list.dir
|
265
|
+
path = locate_entity_list_action_template_from_resource(list.dir.www.views, list, action)
|
266
|
+
return path if path and path.exists?
|
267
|
+
end
|
268
|
+
|
269
|
+
entity_resources.each do |resource|
|
270
|
+
path = locate_entity_list_action_template_from_resource(resource, list, action)
|
271
|
+
return path if path and path.exists?
|
272
|
+
end
|
273
|
+
|
274
|
+
entity_resources.each do |resource|
|
275
|
+
path = locate_entity_list_action_template_from_resource(resource, "Default", action)
|
276
|
+
return path if path and path.exists?
|
277
|
+
end
|
278
|
+
|
279
|
+
raise "Template not found for list #{ action } (#{list.annotation_types * ", "})"
|
280
|
+
end
|
281
|
+
end
|