ish_lib_assets 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/images/200x200/devops.png +0 -0
- data/app/assets/images/200x200/html5.jpg +0 -0
- data/app/assets/images/200x200/nodejs.png +0 -0
- data/app/assets/images/200x200/project_management.jpg +0 -0
- data/app/assets/images/200x200/ror.jpg +0 -0
- data/app/assets/images/200x200/uiux.jpg +0 -0
- data/app/assets/images/400x400/contact-us.png +0 -0
- data/app/assets/images/400x400/devops.png +0 -0
- data/app/assets/images/400x400/html5.jpg +0 -0
- data/app/assets/images/400x400/nodejs.png +0 -0
- data/app/assets/images/400x400/project_management.jpg +0 -0
- data/app/assets/images/400x400/ror.jpg +0 -0
- data/app/assets/images/400x400/the-cloud.png +0 -0
- data/app/assets/images/400x400/uiux.jpg +0 -0
- data/app/assets/images/backgrounds/10.jpg +0 -0
- data/app/assets/images/backgrounds/11.jpg +0 -0
- data/app/assets/images/backgrounds/12.jpg +0 -0
- data/app/assets/images/backgrounds/6.jpg +0 -0
- data/app/assets/images/backgrounds/7.jpg +0 -0
- data/app/assets/images/backgrounds/8.jpg +0 -0
- data/app/assets/images/backgrounds/9.jpg +0 -0
- data/app/assets/images/backgrounds/970_grey-blue.png +0 -0
- data/app/assets/images/backgrounds/970_white.png +0 -0
- data/app/assets/images/backgrounds/970_yellow.png +0 -0
- data/app/assets/images/backgrounds/bg-circles.png +0 -0
- data/app/assets/images/backgrounds/bg5.jpg +0 -0
- data/app/assets/images/backgrounds/bg6.jpg +0 -0
- data/app/assets/images/backgrounds/bg_texture_dark.jpg +0 -0
- data/app/assets/images/backgrounds/bkg_bg.gif +0 -0
- data/app/assets/images/backgrounds/blue-seamless.jpg +0 -0
- data/app/assets/images/backgrounds/flower_1.jpg +0 -0
- data/app/assets/images/backgrounds/glitch1.jpg +0 -0
- data/app/assets/images/backgrounds/glitch2.jpg +0 -0
- data/app/assets/images/backgrounds/gray-1.jpg +0 -0
- data/app/assets/images/backgrounds/havaianas.jpg +0 -0
- data/app/assets/images/backgrounds/light-purple.jpg +0 -0
- data/app/assets/images/backgrounds/noise.jpg +0 -0
- data/app/assets/images/backgrounds/paper.jpg +0 -0
- data/app/assets/images/backgrounds/pattern_011.gif +0 -0
- data/app/assets/images/backgrounds/pattern_013.gif +0 -0
- data/app/assets/images/backgrounds/pattern_016.gif +0 -0
- data/app/assets/images/backgrounds/pattern_020.gif +0 -0
- data/app/assets/images/backgrounds/pattern_022.gif +0 -0
- data/app/assets/images/backgrounds/pattern_044.gif +0 -0
- data/app/assets/images/backgrounds/pattern_062.gif +0 -0
- data/app/assets/images/backgrounds/pattern_096.gif +0 -0
- data/app/assets/images/backgrounds/pattern_153.gif +0 -0
- data/app/assets/images/backgrounds/pattern_154.gif +0 -0
- data/app/assets/images/backgrounds/pattern_156.gif +0 -0
- data/app/assets/images/backgrounds/pattern_157.gif +0 -0
- data/app/assets/images/backgrounds/skull_1.jpg +0 -0
- data/app/assets/images/backgrounds/sky.jpg +0 -0
- data/app/assets/images/backgrounds/sky2.jpg +0 -0
- data/app/assets/images/backgrounds/sky3.jpg +0 -0
- data/app/assets/images/backgrounds/sky4.jpg +0 -0
- data/app/assets/images/backgrounds/sky5.jpg +0 -0
- data/app/assets/images/backgrounds/transparent_40.png +0 -0
- data/app/assets/images/backgrounds/transparent_70.png +0 -0
- data/app/assets/images/backgrounds/transparent_90.png +0 -0
- data/app/assets/images/backgrounds/white-seamless.jpg +0 -0
- data/app/assets/images/backgrounds/white_970x5.png +0 -0
- data/app/assets/images/backgrounds/white_blue_1.jpg +0 -0
- data/app/assets/images/cac/dot-footer.png +0 -0
- data/app/assets/images/cac/dot-header.png +0 -0
- data/app/assets/images/cac/list-style.png +0 -0
- data/app/assets/images/cac/map.png +0 -0
- data/app/assets/images/cac/phone.png +0 -0
- data/app/assets/images/cac/phone_number.png +0 -0
- data/app/assets/images/cac/screenshots/about.png +0 -0
- data/app/assets/images/cac/screenshots/contact.png +0 -0
- data/app/assets/images/cac/screenshots/home.png +0 -0
- data/app/assets/images/cac/screenshots/home.psd +0 -0
- data/app/assets/images/cac/screenshots/portfolio.png +0 -0
- data/app/assets/images/cac/screenshots/services.png +0 -0
- data/app/assets/images/cac/screenshots/team.png +0 -0
- data/app/assets/images/cac/sfbay.jpg +0 -0
- data/app/assets/images/cac/sprite.png +0 -0
- data/app/assets/images/cac/team/lizza.jpg +0 -0
- data/app/assets/images/cac/team/lizza_raw.jpg +0 -0
- data/app/assets/images/cac/team/piousbox.jpg +0 -0
- data/app/assets/images/close.png +0 -0
- data/app/assets/images/contact.png +0 -0
- data/app/assets/images/controls.png +0 -0
- data/app/assets/images/favicon.gif +0 -0
- data/app/assets/images/favicons/cac.gif +0 -0
- data/app/assets/images/favicons/ish.gif +0 -0
- data/app/assets/images/favicons/manager.ico +0 -0
- data/app/assets/images/favicons/piousbox.gif +0 -0
- data/app/assets/images/favicons/ppf.gif +0 -0
- data/app/assets/images/flags/br.png +0 -0
- data/app/assets/images/flags/en.png +0 -0
- data/app/assets/images/flags/pt.png +0 -0
- data/app/assets/images/flags/ru.png +0 -0
- data/app/assets/images/flags/us.png +0 -0
- data/app/assets/images/grad-hr.png +0 -0
- data/app/assets/images/gradient.png +0 -0
- data/app/assets/images/icons/100x100/hazard.png +0 -0
- data/app/assets/images/icons/100x100/venue.png +0 -0
- data/app/assets/images/icons/10x10/thumbs_down.png +0 -0
- data/app/assets/images/icons/10x10/thumbs_up.png +0 -0
- data/app/assets/images/icons/128x128/manager.png +0 -0
- data/app/assets/images/icons/12x12/tag.png +0 -0
- data/app/assets/images/icons/14x14/bullet.png +0 -0
- data/app/assets/images/icons/16x16/cancel.png +0 -0
- data/app/assets/images/icons/16x16/delete.png +0 -0
- data/app/assets/images/icons/16x16/expand_down.png +0 -0
- data/app/assets/images/icons/16x16/new_16.png +0 -0
- data/app/assets/images/icons/16x16/search.png +0 -0
- data/app/assets/images/icons/16x16/uploadify-cancel.png +0 -0
- data/app/assets/images/icons/20x20/edit.png +0 -0
- data/app/assets/images/icons/20x20/email.gif +0 -0
- data/app/assets/images/icons/20x20/expand.gif +0 -0
- data/app/assets/images/icons/20x20/eye-crossed.png +0 -0
- data/app/assets/images/icons/20x20/eye.png +0 -0
- data/app/assets/images/icons/20x20/facebook.gif +0 -0
- data/app/assets/images/icons/20x20/gmail.gif +0 -0
- data/app/assets/images/icons/20x20/java.gif +0 -0
- data/app/assets/images/icons/20x20/linkedin.png +0 -0
- data/app/assets/images/icons/20x20/lock.gif +0 -0
- data/app/assets/images/icons/20x20/new.png +0 -0
- data/app/assets/images/icons/20x20/pdf.gif +0 -0
- data/app/assets/images/icons/20x20/php.jpg +0 -0
- data/app/assets/images/icons/20x20/private.png +0 -0
- data/app/assets/images/icons/20x20/private2.png +0 -0
- data/app/assets/images/icons/20x20/public.png +0 -0
- data/app/assets/images/icons/20x20/public2.png +0 -0
- data/app/assets/images/icons/20x20/python.png +0 -0
- data/app/assets/images/icons/20x20/search.png +0 -0
- data/app/assets/images/icons/20x20/top.gif +0 -0
- data/app/assets/images/icons/20x20/trash.png +0 -0
- data/app/assets/images/icons/20x20/wiki.gif +0 -0
- data/app/assets/images/icons/20x20/wp.gif +0 -0
- data/app/assets/images/icons/20x20/youtube.png +0 -0
- data/app/assets/images/icons/24x24/configure.png +0 -0
- data/app/assets/images/icons/24x24/customize.png +0 -0
- data/app/assets/images/icons/24x24/edit.png +0 -0
- data/app/assets/images/icons/24x24/trash.png +0 -0
- data/app/assets/images/icons/28x28/customize.png +0 -0
- data/app/assets/images/icons/28x28/expand.png +0 -0
- data/app/assets/images/icons/32x32/comment.png +0 -0
- data/app/assets/images/icons/32x32/delicious.png +0 -0
- data/app/assets/images/icons/32x32/doc.png +0 -0
- data/app/assets/images/icons/32x32/email.png +0 -0
- data/app/assets/images/icons/32x32/expand_down.png +0 -0
- data/app/assets/images/icons/32x32/facebook.png +0 -0
- data/app/assets/images/icons/32x32/github.png +0 -0
- data/app/assets/images/icons/32x32/home.png +0 -0
- data/app/assets/images/icons/32x32/linkedin.png +0 -0
- data/app/assets/images/icons/32x32/list.png +0 -0
- data/app/assets/images/icons/32x32/logout.png +0 -0
- data/app/assets/images/icons/32x32/manager.png +0 -0
- data/app/assets/images/icons/32x32/myspace.png +0 -0
- data/app/assets/images/icons/32x32/new.png +0 -0
- data/app/assets/images/icons/32x32/new_addritem.png +0 -0
- data/app/assets/images/icons/32x32/pdf.png +0 -0
- data/app/assets/images/icons/32x32/photos_new.png +0 -0
- data/app/assets/images/icons/32x32/print.png +0 -0
- data/app/assets/images/icons/32x32/scratchpad.png +0 -0
- data/app/assets/images/icons/32x32/search.png +0 -0
- data/app/assets/images/icons/32x32/sharethis.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_down.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_down_2.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_up.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_up_2.png +0 -0
- data/app/assets/images/icons/32x32/trac.gif +0 -0
- data/app/assets/images/icons/32x32/trash.png +0 -0
- data/app/assets/images/icons/32x32/twitter.png +0 -0
- data/app/assets/images/icons/32x32/upload.png +0 -0
- data/app/assets/images/icons/32x32/word.png +0 -0
- data/app/assets/images/icons/40x40/search_40x40.png +0 -0
- data/app/assets/images/icons/48x48/city.png +0 -0
- data/app/assets/images/icons/48x48/new_photo.png +0 -0
- data/app/assets/images/icons/64x64/extended_forms.png +0 -0
- data/app/assets/images/icons/64x64/facebook.png +0 -0
- data/app/assets/images/icons/64x64/facebook_flat.png +0 -0
- data/app/assets/images/icons/64x64/github.png +0 -0
- data/app/assets/images/icons/64x64/github_flat.png +0 -0
- data/app/assets/images/icons/64x64/google.png +0 -0
- data/app/assets/images/icons/64x64/linkedin.png +0 -0
- data/app/assets/images/icons/64x64/linkedin_flat.png +0 -0
- data/app/assets/images/icons/64x64/manager.png +0 -0
- data/app/assets/images/icons/64x64/my-profile.png +0 -0
- data/app/assets/images/icons/64x64/new_addritem.png +0 -0
- data/app/assets/images/icons/64x64/new_photo.png +0 -0
- data/app/assets/images/icons/64x64/new_report.png +0 -0
- data/app/assets/images/icons/64x64/openid.png +0 -0
- data/app/assets/images/icons/64x64/rails.png +0 -0
- data/app/assets/images/icons/64x64/scratchpad.png +0 -0
- data/app/assets/images/icons/64x64/settings.png +0 -0
- data/app/assets/images/icons/64x64/twitter.png +0 -0
- data/app/assets/images/icons/64x64/yahoo_64.png +0 -0
- data/app/assets/images/icons/64x64/youtube_flat.png +0 -0
- data/app/assets/images/icons/96x96/doc.png +0 -0
- data/app/assets/images/icons/96x96/pdf.png +0 -0
- data/app/assets/images/icons/96x96/venue.png +0 -0
- data/app/assets/images/icons/delete.png +0 -0
- data/app/assets/images/icons/delicious.png +0 -0
- data/app/assets/images/icons/edit.png +0 -0
- data/app/assets/images/icons/email.gif +0 -0
- data/app/assets/images/icons/expand.gif +0 -0
- data/app/assets/images/icons/facebook.gif +0 -0
- data/app/assets/images/icons/gmail.gif +0 -0
- data/app/assets/images/icons/hazard.png +0 -0
- data/app/assets/images/icons/new_16.png +0 -0
- data/app/assets/images/icons/open.png +0 -0
- data/app/assets/images/icons/php.jpg +0 -0
- data/app/assets/images/icons/rails.png +0 -0
- data/app/assets/images/icons/search_40x40.png +0 -0
- data/app/assets/images/icons/tag.png +0 -0
- data/app/assets/images/icons/top.gif +0 -0
- data/app/assets/images/icons/trash/calendar.png +0 -0
- data/app/assets/images/left.png +0 -0
- data/app/assets/images/loading-100x100.gif +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/login_with_facebook.png +0 -0
- data/app/assets/images/logos/100x100/ish.png +0 -0
- data/app/assets/images/logos/100x100/ish_logo_100.png +0 -0
- data/app/assets/images/logos/100x100/logo100x100.png +0 -0
- data/app/assets/images/logos/200x200/ish_logo_200.gif +0 -0
- data/app/assets/images/logos/20x20/ish.gif +0 -0
- data/app/assets/images/logos/400x400/cac.jpg +0 -0
- data/app/assets/images/logos/400x400/ish.png +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.gif +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.jpg +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.png +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.psd +0 -0
- data/app/assets/images/logos/40x40/ish.png +0 -0
- data/app/assets/images/logos/40x40/ish_logo_40.png +0 -0
- data/app/assets/images/logos/45x45/ish.png +0 -0
- data/app/assets/images/logos/60x60/logo_60x60.png +0 -0
- type_on gray].eps +0 -0
- type_on white].eps +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre Shelter_FINAL [image_on gray].eps +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre Shelter_FINAL [image_on white].eps +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image-and-type_on-gray].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image-and-type_on-white].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image_on-gray].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image_on-white].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/logo100x100.png +0 -0
- data/app/assets/images/logos/Infinite Shelter/logo30.jpg +0 -0
- data/app/assets/images/logos/Infinite Shelter/logoGray.png +0 -0
- data/app/assets/images/logos/Infinite Shelter/logoWhite.png +0 -0
- data/app/assets/images/logos/Infinitre-Shelter_FINAL-[image_on-white].png +0 -0
- data/app/assets/images/logos/cac.png +0 -0
- data/app/assets/images/logos/cac/CAC_logo_02_FINAL.eps +0 -0
- data/app/assets/images/logos/cac/cac.jpg +0 -0
- data/app/assets/images/logos/cac/cac.png +0 -0
- data/app/assets/images/logos/cac_long.jpg +0 -0
- data/app/assets/images/logos/ish.png +0 -0
- data/app/assets/images/logos/ish_logo_100.png +0 -0
- data/app/assets/images/logos/ish_logo_20.gif +0 -0
- data/app/assets/images/logos/ish_logo_200.gif +0 -0
- data/app/assets/images/logos/ish_logo_40.gif +0 -0
- data/app/assets/images/logos/ish_logo_40.png +0 -0
- data/app/assets/images/logos/ish_logo_400.gif +0 -0
- data/app/assets/images/logos/ish_logo_400.jpg +0 -0
- data/app/assets/images/logos/ish_logo_400.png +0 -0
- data/app/assets/images/logos/ish_logo_400.psd +0 -0
- data/app/assets/images/logos/logo.png +0 -0
- data/app/assets/images/logos/logo100x100.png +0 -0
- data/app/assets/images/logos/logo_60x60.png +0 -0
- data/app/assets/images/logos/organizer.png +0 -0
- data/app/assets/images/logos/ppf.gif +0 -0
- data/app/assets/images/logos/travel.png +0 -0
- data/app/assets/images/logos/travel_guide.png +0 -0
- data/app/assets/images/missing.png +0 -0
- data/app/assets/images/next.png +0 -0
- data/app/assets/images/no_photo.png +0 -0
- data/app/assets/images/no_photo_mini.png +0 -0
- data/app/assets/images/organizer/blue-arrow-right.png +0 -0
- data/app/assets/images/organizer/sprite2.png +0 -0
- data/app/assets/images/ppf.gif +0 -0
- data/app/assets/images/prev.png +0 -0
- data/app/assets/images/resume/language.png +0 -0
- data/app/assets/images/resume/main-nav-left.png +0 -0
- data/app/assets/images/resume/main-nav-right-active.png +0 -0
- data/app/assets/images/resume/main-nav-right.png +0 -0
- data/app/assets/images/resume/user-name-left.png +0 -0
- data/app/assets/images/resume/user-name-right.png +0 -0
- data/app/assets/images/right.png +0 -0
- data/app/assets/images/showv/about-us.jpg +0 -0
- data/app/assets/images/showv/arrows-ffffff.png +0 -0
- data/app/assets/images/showv/dragon_head_bottom.jpg +0 -0
- data/app/assets/images/showv/dragon_head_top.jpg +0 -0
- data/app/assets/images/showv/menu-border.png +0 -0
- data/app/assets/images/showv/shadow.png +0 -0
- data/app/assets/images/showv/subhead-bg.png +0 -0
- data/app/assets/images/showv/world.jpg +0 -0
- data/app/assets/images/src/contact-us.png +0 -0
- data/app/assets/images/src/devops-cropped.png +0 -0
- data/app/assets/images/src/devops.png +0 -0
- data/app/assets/images/src/html5.jpg +0 -0
- data/app/assets/images/src/html5_cropped.jpg +0 -0
- data/app/assets/images/src/nodejs.png +0 -0
- data/app/assets/images/src/nodejs_cropped.png +0 -0
- data/app/assets/images/src/project_management.jpg +0 -0
- data/app/assets/images/src/ror.jpg +0 -0
- data/app/assets/images/src/the-cloud.png +0 -0
- data/app/assets/images/src/uiux.jpg +0 -0
- data/app/assets/images/venue.png +0 -0
- data/app/assets/images/wait.gif +0 -0
- data/app/assets/javascripts/application.js +8 -0
- data/app/assets/javascripts/application.js~ +8 -0
- data/app/assets/javascripts/application_foundation.js +19 -0
- data/app/assets/javascripts/ish_lib_assets/application.js +13 -0
- data/app/assets/javascripts/photos_multiadd.coffee +35 -0
- data/app/assets/javascripts/utils.coffee +36 -0
- data/app/assets/stylesheets/application.css +25 -0
- data/app/assets/stylesheets/application.css~ +10 -0
- data/app/assets/stylesheets/application_foundation/galleries.sass +11 -0
- data/app/assets/stylesheets/application_foundation/header_footer.sass +21 -0
- data/app/assets/stylesheets/application_foundation/layout.sass +10 -0
- data/app/assets/stylesheets/application_foundation/newsitems.sass +20 -0
- data/app/assets/stylesheets/application_foundation/reports.sass +16 -0
- data/app/assets/stylesheets/application_foundation/users.sass +4 -0
- data/app/assets/stylesheets/application_foundation/videos.sass +11 -0
- data/app/assets/stylesheets/application_manager.css +6 -0
- data/app/assets/stylesheets/application_print.css +6 -0
- data/app/assets/stylesheets/application_resume.css +13 -0
- data/app/assets/stylesheets/application_resume.css~ +13 -0
- data/app/assets/stylesheets/application_resume_2.css +13 -0
- data/app/assets/stylesheets/application_resume_2.css~ +13 -0
- data/app/assets/stylesheets/common/_ads.sass +77 -0
- data/app/assets/stylesheets/common/_maps.sass +63 -0
- data/app/assets/stylesheets/common/_rate_this.sass +23 -0
- data/app/assets/stylesheets/common/_set_locale.sass +37 -0
- data/app/assets/stylesheets/common/blog.sass +7 -0
- data/app/assets/stylesheets/common/cities.sass +202 -0
- data/app/assets/stylesheets/common/common.sass +111 -0
- data/app/assets/stylesheets/common/devise.sass +29 -0
- data/app/assets/stylesheets/common/events.sass +9 -0
- data/app/assets/stylesheets/common/features.sass +28 -0
- data/app/assets/stylesheets/common/form.sass +19 -0
- data/app/assets/stylesheets/common/galleries.sass +216 -0
- data/app/assets/stylesheets/common/hf2.sass +91 -0
- data/app/assets/stylesheets/common/newsitems.sass +31 -0
- data/app/assets/stylesheets/common/photos.sass +32 -0
- data/app/assets/stylesheets/common/rate_me.sass +8 -0
- data/app/assets/stylesheets/common/reports.sass +269 -0
- data/app/assets/stylesheets/common/tags.sass +64 -0
- data/app/assets/stylesheets/common/trash/blog.sass +7 -0
- data/app/assets/stylesheets/common/users.sass +96 -0
- data/app/assets/stylesheets/common/users_organizer.sass +31 -0
- data/app/assets/stylesheets/common/users_organizer_forms.sass +126 -0
- data/app/assets/stylesheets/common/utils.sass +123 -0
- data/app/assets/stylesheets/common/vars.sass +44 -0
- data/app/assets/stylesheets/common/venues.sass +88 -0
- data/app/assets/stylesheets/common/videos.sass +10 -0
- data/app/assets/stylesheets/common/welcome.sass +21 -0
- data/app/assets/stylesheets/common_2/_maps.sass +63 -0
- data/app/assets/stylesheets/common_2/_rate_this.sass +23 -0
- data/app/assets/stylesheets/common_2/_set_locale.sass +37 -0
- data/app/assets/stylesheets/common_2/common.sass +43 -0
- data/app/assets/stylesheets/common_2/hf_application.sass +177 -0
- data/app/assets/stylesheets/common_2/hf_application_mini.sass +98 -0
- data/app/assets/stylesheets/common_2/photos.sass +5 -0
- data/app/assets/stylesheets/common_2/photos.sass~ +12 -0
- data/app/assets/stylesheets/common_2/users_organizer.sass +33 -0
- data/app/assets/stylesheets/common_2/users_organizer_forms.sass +126 -0
- data/app/assets/stylesheets/common_2/vars.sass +235 -0
- data/app/assets/stylesheets/ish_lib_assets/application.css +15 -0
- data/app/assets/stylesheets/manager/_search.sass +9 -0
- data/app/assets/stylesheets/manager/cities.sass +22 -0
- data/app/assets/stylesheets/manager/features.sass +5 -0
- data/app/assets/stylesheets/manager/galleries.sass +58 -0
- data/app/assets/stylesheets/manager/hf.sass +38 -0
- data/app/assets/stylesheets/manager/layout_manager.sass +32 -0
- data/app/assets/stylesheets/manager/manager.sass +55 -0
- data/app/assets/stylesheets/manager/newsitems.sass +3 -0
- data/app/assets/stylesheets/manager/photos.sass +19 -0
- data/app/assets/stylesheets/manager/reports.sass +66 -0
- data/app/assets/stylesheets/manager/sites.sass +27 -0
- data/app/assets/stylesheets/manager/tags.sass +34 -0
- data/app/assets/stylesheets/manager/users.sass +14 -0
- data/app/assets/stylesheets/manager/vars.sass +4 -0
- data/app/assets/stylesheets/manager/venues.sass +20 -0
- data/app/assets/stylesheets/manager/welcome.sass +13 -0
- data/app/assets/stylesheets/print/default.sass +20 -0
- data/app/assets/stylesheets/print/vars.sass +3 -0
- data/app/assets/stylesheets/resume/github.sass +9 -0
- data/app/assets/stylesheets/resume/hf.sass +18 -0
- data/app/assets/stylesheets/resume/layout_piousbox.sass +56 -0
- data/app/assets/stylesheets/resume/reports.sass +21 -0
- data/app/assets/stylesheets/resume/resume.sass +387 -0
- data/app/assets/stylesheets/resume/vars.sass +3 -0
- data/app/assets/stylesheets/spec_runner.css +5 -0
- data/app/controllers/ish_lib_assets/application_controller.rb +5 -0
- data/app/helpers/application_helper.rb +96 -0
- data/app/helpers/devise_helper.rb +9 -0
- data/app/helpers/images_helper.rb +200 -0
- data/app/helpers/ish_lib_assets/application_helper.rb +7 -0
- data/app/helpers/ish_lib_assets/application_helper.rb~ +7 -0
- data/app/views/layouts/ish_lib_assets/application.html.erb +14 -0
- data/app/views/templates/_blah_template.haml +2 -0
- data/app/views/templates/blah_template.haml~ +0 -0
- data/app/views/templates/kaminari/_first_page.haml +9 -0
- data/app/views/templates/kaminari/_first_page.haml~ +9 -0
- data/app/views/templates/kaminari/_gap.haml +8 -0
- data/app/views/templates/kaminari/_last_page.haml +9 -0
- data/app/views/templates/kaminari/_last_page.haml~ +9 -0
- data/app/views/templates/kaminari/_next_page.haml +9 -0
- data/app/views/templates/kaminari/_next_page.haml~ +9 -0
- data/app/views/templates/kaminari/_page.haml +10 -0
- data/app/views/templates/kaminari/_page.haml~ +10 -0
- data/app/views/templates/kaminari/_paginator.haml +18 -0
- data/app/views/templates/kaminari/_paginator.haml~ +18 -0
- data/app/views/templates/kaminari/_prev_page.haml +9 -0
- data/app/views/templates/kaminari/_prev_page.haml~ +9 -0
- data/config/routes.rb +2 -0
- data/lib/ish_lib_assets.rb +4 -0
- data/lib/ish_lib_assets/engine.rb +9 -0
- data/lib/ish_lib_assets/engine.rb~ +9 -0
- data/lib/ish_lib_assets/version.rb +3 -0
- data/lib/ish_lib_assets/version.rb~ +3 -0
- data/lib/tasks/ish_lib_assets_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/ish_lib_assets_test.rb +7 -0
- data/test/test_helper.rb +21 -0
- data/vendor/assets/images/close.png +0 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/images/loading.gif +0 -0
- data/vendor/assets/images/next.png +0 -0
- data/vendor/assets/images/prev.png +0 -0
- data/vendor/assets/javascripts/angular.js +14847 -0
- data/vendor/assets/javascripts/angular/angular-animate.js +1375 -0
- data/vendor/assets/javascripts/angular/angular-cookies.js +202 -0
- data/vendor/assets/javascripts/angular/angular-csp.css +13 -0
- data/vendor/assets/javascripts/angular/angular-loader.js +410 -0
- data/vendor/assets/javascripts/angular/angular-mocks.js +2116 -0
- data/vendor/assets/javascripts/angular/angular-resource.js +594 -0
- data/vendor/assets/javascripts/angular/angular-route.js +911 -0
- data/vendor/assets/javascripts/angular/angular-sanitize.js +622 -0
- data/vendor/assets/javascripts/angular/angular-scenario.js +32544 -0
- data/vendor/assets/javascripts/angular/angular-touch.js +563 -0
- data/vendor/assets/javascripts/angular/angular.js +20539 -0
- data/vendor/assets/javascripts/angular/errors.json +1 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_af-na.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_af-za.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_af.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_am-et.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_am.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-001.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ae.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-bh.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-dz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-eg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-iq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-jo.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-kw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-lb.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ly.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ma.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-om.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-qa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-tn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ye.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bg-bg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bn-bd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bn-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ca-ad.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ca-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ca.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_cs-cz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_cs.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_da-dk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_da.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-at.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-be.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-ch.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-de.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-li.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-lu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_el-cy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_el-gr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_el.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-as.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-au.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bb.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-be.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ca.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-dsrt-us.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-dsrt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-fm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gb.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-hk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ie.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-iso.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-jm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mh.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mp.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-na.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-nz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ph.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-sg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-tc.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-tt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-um.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-us.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-vg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-vi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-za.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-zw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-419.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ar.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-bo.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-cl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-co.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-cr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-do.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ea.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ec.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-gq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-gt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-hn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ic.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-mx.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ni.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pe.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-py.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-sv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-us.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-uy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ve.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_et-ee.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_et.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_eu-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_eu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fa-af.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fa-ir.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fi-fi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fil-ph.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fil.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-be.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bj.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ca.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ch.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ci.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-dj.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-fr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ga.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gp.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-km.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-lu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mc.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ml.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ne.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-re.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-yt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gl-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gsw-ch.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gsw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gu-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_he-il.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_he.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hi-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hr-hr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hu-hu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_id-id.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_id.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_is-is.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_is.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_it-it.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_it-sm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_it.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_iw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ja-jp.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ja.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_kn-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_kn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ko-kr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ko.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ln-cd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ln.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lt-lt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lv-lv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ml-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ml.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mr-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ms-my.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ms.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mt-mt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-cw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-nl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-sx.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_no.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_or-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_or.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pl-pl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pt-br.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pt-pt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ro-ro.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ro.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ru-ru.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ru.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sk-sk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sl-si.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sq-al.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sr-cyrl-rs.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sr-latn-rs.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sv-se.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sw-tz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ta-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ta.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_te-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_te.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_th-th.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_th.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_tl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_tr-tr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_tr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_uk-ua.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_uk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ur-pk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ur.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_vi-vn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_vi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-cn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-hans-cn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-hk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-tw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zu-za.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zu.js +99 -0
- data/vendor/assets/javascripts/angular/version.json +1 -0
- data/vendor/assets/javascripts/angular/version.txt +1 -0
- data/vendor/assets/javascripts/custom.modernizr.js +4 -0
- data/vendor/assets/javascripts/fancybox/blank.gif +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_loading.gif +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_loading@2x.gif +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_overlay.png +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_sprite.png +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_sprite@2x.png +0 -0
- data/vendor/assets/javascripts/fancybox/helpers/fancybox_buttons.png +0 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-buttons.css +97 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-buttons.js +122 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-media.js +199 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-thumbs.css +55 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-thumbs.js +162 -0
- data/vendor/assets/javascripts/fancybox/jquery.fancybox.css +274 -0
- data/vendor/assets/javascripts/fancybox/jquery.fancybox.js +2020 -0
- data/vendor/assets/javascripts/fancybox/jquery.fancybox.pack.js +46 -0
- data/vendor/assets/javascripts/fastclick.js +761 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/foundation.js +8921 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/foundation.min.js +4 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/jquery.js +9842 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/what-input.js +295 -0
- data/vendor/assets/javascripts/foundation/foundation.abide.js +201 -0
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +41 -0
- data/vendor/assets/javascripts/foundation/foundation.alert.js +34 -0
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +450 -0
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +184 -0
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +304 -0
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +839 -0
- data/vendor/assets/javascripts/foundation/foundation.js +8921 -0
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +118 -0
- data/vendor/assets/javascripts/foundation/foundation.min.js +10 -0
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +37 -0
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +434 -0
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +347 -0
- data/vendor/assets/javascripts/foundation/foundation.tab.js +37 -0
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +202 -0
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +380 -0
- data/vendor/assets/javascripts/jasmine/assert.coffee +62 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/MIT.LICENSE +20 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine-html.js +190 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine.css +166 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine.js +2476 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine_favicon.png +0 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/MIT.LICENSE +20 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine-html.js +681 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine.css +82 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine.js +2600 -0
- data/vendor/assets/javascripts/jquery-file-upload/README.md +68 -0
- data/vendor/assets/javascripts/jquery-file-upload/application.js +79 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/jquery.postmessage-transport.js +117 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/jquery.xdr-transport.js +85 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/postmessage.html +75 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/result.html +20 -0
- data/vendor/assets/javascripts/jquery-file-upload/index.html +176 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.fileupload-ui.js +547 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.fileupload.js +1477 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.iframe-transport.js +217 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.ui.widget.js +572 -0
- data/vendor/assets/javascripts/jquery-file-upload/package.json +60 -0
- data/vendor/assets/javascripts/jquery-file-upload/progressbar.gif +0 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/app.yaml +12 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/app/main.go +360 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/resize/resize.go +246 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/static/favicon.ico +0 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/static/robots.txt +2 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/app.yaml +16 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/main.py +145 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/static/favicon.ico +0 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/static/robots.txt +2 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/php/index.php +384 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/test/index.html +105 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/test/test.js +1116 -0
- data/vendor/assets/javascripts/jquery-file-upload/vendor/jquery.ui.widget.js +282 -0
- data/vendor/assets/javascripts/jquery/jquery-1.7.1.js +9266 -0
- data/vendor/assets/javascripts/jquery/jquery-1.7.1.min.js +4 -0
- data/vendor/assets/javascripts/jquery/jquery-2.2.2.js +9842 -0
- data/vendor/assets/javascripts/jquery/jquery-ui.min.js +13 -0
- data/vendor/assets/javascripts/jquery/jquery-uploadify.js +986 -0
- data/vendor/assets/javascripts/jquery/jquery.autocomplete.js +645 -0
- data/vendor/assets/javascripts/jquery/jquery.cookie.js +107 -0
- data/vendor/assets/javascripts/jquery/jquery.infinitecarousel3.js +409 -0
- data/vendor/assets/javascripts/jquery/jquery.infinitecarousel3.min.js +10 -0
- data/vendor/assets/javascripts/jquery/jquery.js +9842 -0
- data/vendor/assets/javascripts/json2.js +482 -0
- data/vendor/assets/javascripts/mustache.js +536 -0
- data/vendor/assets/javascripts/order.js +189 -0
- data/vendor/assets/javascripts/placeholder.js +426 -0
- data/vendor/assets/javascripts/rails.js +393 -0
- data/vendor/assets/javascripts/share_this.js +3 -0
- data/vendor/assets/javascripts/underscore.js +999 -0
- data/vendor/assets/javascripts/what-input.js +295 -0
- data/vendor/assets/stylesheets/fancybox/jquery.fancybox.css +274 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/app.css +0 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/foundation.css +4148 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/foundation.min.css +2 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/index.html +169 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/app.js +1 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/foundation.js +8921 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/foundation.min.js +4 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/jquery.js +9842 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/what-input.js +295 -0
- data/vendor/assets/stylesheets/foundation/foundation.css +4148 -0
- data/vendor/assets/stylesheets/jquery-file-upload/jquery.fileupload-ui.css +56 -0
- data/vendor/assets/stylesheets/reset-min.css +2 -0
- data/vendor/assets/stylesheets/trash/active_admin.css.scss +32 -0
- data/vendor/assets/stylesheets/trash/bootstrap-responsive.css +1092 -0
- data/vendor/assets/stylesheets/trash/bootstrap-responsive.min.css +9 -0
- data/vendor/assets/stylesheets/trash/bootstrap.css +6039 -0
- data/vendor/assets/stylesheets/trash/bootstrap.min.css +9 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/foundation.css +5331 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/foundation.min.css +1 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/normalize.css +410 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/index.html +166 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation.min.js +10 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.abide.js +201 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.accordion.js +41 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.alert.js +34 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.clearing.js +450 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.dropdown.js +184 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.interchange.js +304 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.joyride.js +839 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.js +416 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.magellan.js +118 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.offcanvas.js +37 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.orbit.js +434 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.reveal.js +347 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.tab.js +37 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.tooltip.js +202 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.topbar.js +380 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/jquery.js +8829 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/modernizr.js +4 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/custom.modernizr.js +4 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/fastclick.js +761 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.autocomplete.js +645 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.cookie.js +107 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.js +8829 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/placeholder.js +426 -0
- data/vendor/assets/stylesheets/trash/foundation-5.css +5331 -0
- data/vendor/assets/stylesheets/trash/foundation.min.css +1 -0
- data/vendor/assets/stylesheets/trash/grid.css +280 -0
- data/vendor/assets/stylesheets/trash/lightbox.css +210 -0
- data/vendor/assets/stylesheets/trash/normalize.css +410 -0
- data/vendor/assets/stylesheets/trash/scaffolds.css.scss +69 -0
- data/vendor/assets/stylesheets/trash/screen.css +858 -0
- data/vendor/assets/stylesheets/trash/uploadify.css +92 -0
- metadata +977 -0
@@ -0,0 +1,105 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<!--
|
3
|
+
/*
|
4
|
+
* jQuery File Upload Plugin Test 6.0.3
|
5
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
6
|
+
*
|
7
|
+
* Copyright 2010, Sebastian Tschan
|
8
|
+
* https://blueimp.net
|
9
|
+
*
|
10
|
+
* Licensed under the MIT license:
|
11
|
+
* http://www.opensource.org/licenses/MIT
|
12
|
+
*/
|
13
|
+
-->
|
14
|
+
<html lang="en">
|
15
|
+
<head>
|
16
|
+
<meta charset="utf-8">
|
17
|
+
<title>jQuery File Upload Plugin Test</title>
|
18
|
+
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css">
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<h1 id="qunit-header">jQuery File Upload Plugin Test</h1>
|
22
|
+
<h2 id="qunit-banner"></h2>
|
23
|
+
<div id="qunit-testrunner-toolbar"></div>
|
24
|
+
<h2 id="qunit-userAgent"></h2>
|
25
|
+
<ol id="qunit-tests"></ol>
|
26
|
+
<div id="qunit-fixture">
|
27
|
+
<form id="fileupload" action="../php/index.php" method="POST" enctype="multipart/form-data">
|
28
|
+
<div class="fileupload-buttonbar">
|
29
|
+
<div class="progressbar fileupload-progressbar"><div style="width:0%;"></div></div>
|
30
|
+
<span class="fileinput-button">
|
31
|
+
<span>Add files...</span>
|
32
|
+
<input type="file" name="files[]" multiple>
|
33
|
+
</span>
|
34
|
+
<button type="submit" class="start">Start upload</button>
|
35
|
+
<button type="reset" class="cancel">Cancel upload</button>
|
36
|
+
<button type="button" class="delete">Delete selected</button>
|
37
|
+
<input type="checkbox" class="toggle">
|
38
|
+
</div>
|
39
|
+
<table class="zebra-striped"><tbody class="files"></tbody></table>
|
40
|
+
</form>
|
41
|
+
</div>
|
42
|
+
<script>
|
43
|
+
var fileUploadErrors = {
|
44
|
+
maxFileSize: 'File is too big',
|
45
|
+
minFileSize: 'File is too small',
|
46
|
+
acceptFileTypes: 'Filetype not allowed',
|
47
|
+
maxNumberOfFiles: 'Max number of files exceeded',
|
48
|
+
uploadedBytes: 'Uploaded bytes exceed file size',
|
49
|
+
emptyResult: 'Empty file upload result'
|
50
|
+
};
|
51
|
+
</script>
|
52
|
+
<script id="template-upload" type="text/html">
|
53
|
+
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
|
54
|
+
<tr class="template-upload">
|
55
|
+
<td class="preview"><span></span></td>
|
56
|
+
<td class="name">{%=file.name%}</td>
|
57
|
+
<td class="size">{%=o.formatFileSize(file.size)%}</td>
|
58
|
+
{% if (file.error) { %}
|
59
|
+
<td class="error" colspan="2"><span class="label important">Error</span> {%=fileUploadErrors[file.error] || file.error%}</td>
|
60
|
+
{% } else if (o.files.valid && !i) { %}
|
61
|
+
<td class="progress"><div class="progressbar"><div style="width:0%;"></div></div></td>
|
62
|
+
<td class="start">{% if (!o.options.autoUpload) { %}<button class="btn primary">Start</button>{% } %}</td>
|
63
|
+
{% } else { %}
|
64
|
+
<td colspan="2"></td>
|
65
|
+
{% } %}
|
66
|
+
<td class="cancel">{% if (!i) { %}<button class="btn info">Cancel</button>{% } %}</td>
|
67
|
+
</tr>
|
68
|
+
{% } %}
|
69
|
+
</script>
|
70
|
+
<script id="template-download" type="text/html">
|
71
|
+
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
|
72
|
+
<tr class="template-download">
|
73
|
+
{% if (file.error) { %}
|
74
|
+
<td></td>
|
75
|
+
<td class="name">{%=file.name%}</td>
|
76
|
+
<td class="size">{%=o.formatFileSize(file.size)%}</td>
|
77
|
+
<td class="error" colspan="2"><span class="label important">Error</span> {%=fileUploadErrors[file.error] || file.error%}</td>
|
78
|
+
{% } else { %}
|
79
|
+
<td class="preview">{% if (file.thumbnail_url) { %}
|
80
|
+
<a href="{%=file.url%}" title="{%=file.name%}" rel="gallery"><img src="{%=file.thumbnail_url%}"></a>
|
81
|
+
{% } %}</td>
|
82
|
+
<td class="name">
|
83
|
+
<a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}">{%=file.name%}</a>
|
84
|
+
</td>
|
85
|
+
<td class="size">{%=o.formatFileSize(file.size)%}</td>
|
86
|
+
<td colspan="2"></td>
|
87
|
+
{% } %}
|
88
|
+
<td class="delete">
|
89
|
+
<button class="btn danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}">Delete</button>
|
90
|
+
<input type="checkbox" name="delete" value="1">
|
91
|
+
</td>
|
92
|
+
</tr>
|
93
|
+
{% } %}
|
94
|
+
</script>
|
95
|
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
96
|
+
<script src="../vendor/jquery.ui.widget.js"></script>
|
97
|
+
<script src="http://blueimp.github.com/JavaScript-Templates/tmpl.min.js"></script>
|
98
|
+
<script src="http://blueimp.github.com/JavaScript-Load-Image/load-image.min.js"></script>
|
99
|
+
<script src="../jquery.iframe-transport.js"></script>
|
100
|
+
<script src="../jquery.fileupload.js"></script>
|
101
|
+
<script src="../jquery.fileupload-ui.js"></script>
|
102
|
+
<script src="http://code.jquery.com/qunit/git/qunit.js"></script>
|
103
|
+
<script src="test.js"></script>
|
104
|
+
</body>
|
105
|
+
</html>
|
@@ -0,0 +1,1116 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery File Upload Plugin Test 6.0
|
3
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
4
|
+
*
|
5
|
+
* Copyright 2010, Sebastian Tschan
|
6
|
+
* https://blueimp.net
|
7
|
+
*
|
8
|
+
* Licensed under the MIT license:
|
9
|
+
* http://www.opensource.org/licenses/MIT
|
10
|
+
*/
|
11
|
+
|
12
|
+
/*jslint nomen: true, unparam: true */
|
13
|
+
/*global $, QUnit, document, expect, module, test, asyncTest, start, ok, strictEqual, notStrictEqual */
|
14
|
+
|
15
|
+
$(function () {
|
16
|
+
'use strict';
|
17
|
+
|
18
|
+
QUnit.done = function () {
|
19
|
+
// Delete all uploaded files:
|
20
|
+
var url = $('#fileupload').find('form').prop('action');
|
21
|
+
$.getJSON(url, function (files) {
|
22
|
+
$.each(files, function (index, file) {
|
23
|
+
$.ajax({
|
24
|
+
url: url + '?file=' + encodeURIComponent(file.name),
|
25
|
+
type: 'DELETE'
|
26
|
+
});
|
27
|
+
});
|
28
|
+
});
|
29
|
+
};
|
30
|
+
|
31
|
+
var lifecycle = {
|
32
|
+
setup: function () {
|
33
|
+
// Set the .fileupload method to the basic widget method:
|
34
|
+
$.widget('blueimp.fileupload', $.blueimp.fileupload, {});
|
35
|
+
},
|
36
|
+
teardown: function () {
|
37
|
+
// De-initialize the file input plugin:
|
38
|
+
$('#fileupload:blueimp-fileupload').fileupload('destroy');
|
39
|
+
// Remove all remaining event listeners:
|
40
|
+
$('#fileupload input').unbind();
|
41
|
+
$(document).unbind();
|
42
|
+
}
|
43
|
+
},
|
44
|
+
lifecycleUI = {
|
45
|
+
setup: function () {
|
46
|
+
// Set the .fileupload method to the UI widget method:
|
47
|
+
$.widget('blueimpUI.fileupload', $.blueimpUI.fileupload, {});
|
48
|
+
},
|
49
|
+
teardown: function () {
|
50
|
+
// De-initialize the file input plugin:
|
51
|
+
$('#fileupload:blueimpUI-fileupload').fileupload('destroy');
|
52
|
+
// Remove all remaining event listeners:
|
53
|
+
$('#fileupload input, #fileupload button').unbind();
|
54
|
+
$(document).unbind();
|
55
|
+
}
|
56
|
+
};
|
57
|
+
|
58
|
+
module('Initialization', lifecycle);
|
59
|
+
|
60
|
+
test('Widget initialization', function () {
|
61
|
+
ok($('#fileupload').fileupload().data('fileupload'));
|
62
|
+
});
|
63
|
+
|
64
|
+
test('File input initialization', function () {
|
65
|
+
var fu = $('#fileupload').fileupload();
|
66
|
+
ok(
|
67
|
+
fu.fileupload('option', 'fileInput').length,
|
68
|
+
'File input field inside of the widget'
|
69
|
+
);
|
70
|
+
ok(
|
71
|
+
fu.fileupload('option', 'fileInput').length,
|
72
|
+
'Widget element as file input field'
|
73
|
+
);
|
74
|
+
});
|
75
|
+
|
76
|
+
test('Drop zone initialization', function () {
|
77
|
+
ok($('#fileupload').fileupload()
|
78
|
+
.fileupload('option', 'dropZone').length);
|
79
|
+
});
|
80
|
+
|
81
|
+
test('Event listeners initialization', function () {
|
82
|
+
var fu = $('#fileupload').fileupload();
|
83
|
+
ok(
|
84
|
+
fu.fileupload('option', 'fileInput')
|
85
|
+
.data('events').change.length,
|
86
|
+
'Listens to file input change events'
|
87
|
+
);
|
88
|
+
ok(
|
89
|
+
fu.fileupload('option', 'dropZone')
|
90
|
+
.data('events').drop.length,
|
91
|
+
'Listens to drop zone drop events'
|
92
|
+
);
|
93
|
+
ok(
|
94
|
+
fu.fileupload('option', 'dropZone')
|
95
|
+
.data('events').dragover.length,
|
96
|
+
'Listens to drop zone dragover events'
|
97
|
+
);
|
98
|
+
});
|
99
|
+
|
100
|
+
module('API', lifecycle);
|
101
|
+
|
102
|
+
test('destroy', function () {
|
103
|
+
var fu = $('#fileupload').fileupload(),
|
104
|
+
fileInput = fu.fileupload('option', 'fileInput'),
|
105
|
+
dropZone = fu.fileupload('option', 'dropZone');
|
106
|
+
fileInput.change($.noop);
|
107
|
+
dropZone.bind('drop', $.noop);
|
108
|
+
dropZone.bind('dragover', $.noop);
|
109
|
+
fu.fileupload('destroy');
|
110
|
+
strictEqual(
|
111
|
+
fileInput.data('events').change.length,
|
112
|
+
1,
|
113
|
+
'Removes own file input change event listener'
|
114
|
+
);
|
115
|
+
strictEqual(
|
116
|
+
dropZone.data('events').drop.length,
|
117
|
+
1,
|
118
|
+
'Removes own drop zone drop event listener'
|
119
|
+
);
|
120
|
+
strictEqual(
|
121
|
+
dropZone.data('events').dragover.length,
|
122
|
+
1,
|
123
|
+
'Removes own drop zone dragover event listener'
|
124
|
+
);
|
125
|
+
});
|
126
|
+
|
127
|
+
test('disable', function () {
|
128
|
+
var fu = $('#fileupload').fileupload(),
|
129
|
+
fileInput = fu.fileupload('option', 'fileInput'),
|
130
|
+
dropZone = fu.fileupload('option', 'dropZone'),
|
131
|
+
param = {files: [{name: 'test'}]};
|
132
|
+
fileInput.change($.noop);
|
133
|
+
dropZone.bind('drop', $.noop);
|
134
|
+
dropZone.bind('dragover', $.noop);
|
135
|
+
fu.fileupload('disable');
|
136
|
+
expect(3);
|
137
|
+
strictEqual(
|
138
|
+
fileInput.data('events').change.length,
|
139
|
+
1,
|
140
|
+
'Removes own file input change event listener'
|
141
|
+
);
|
142
|
+
strictEqual(
|
143
|
+
dropZone.data('events').drop.length,
|
144
|
+
1,
|
145
|
+
'Removes own drop zone drop event listener'
|
146
|
+
);
|
147
|
+
strictEqual(
|
148
|
+
dropZone.data('events').dragover.length,
|
149
|
+
1,
|
150
|
+
'Removes own drop zone dragover event listener'
|
151
|
+
);
|
152
|
+
fu.fileupload({
|
153
|
+
add: function (e, data) {
|
154
|
+
ok(false);
|
155
|
+
}
|
156
|
+
}).fileupload('add', param);
|
157
|
+
});
|
158
|
+
|
159
|
+
test('enable', function () {
|
160
|
+
var fu = $('#fileupload').fileupload(),
|
161
|
+
param = {files: [{name: 'test'}]};
|
162
|
+
fu.fileupload('disable');
|
163
|
+
fu.fileupload('enable');
|
164
|
+
expect(4);
|
165
|
+
ok(
|
166
|
+
fu.fileupload('option', 'fileInput')
|
167
|
+
.data('events').change.length,
|
168
|
+
'Listens to file input change events'
|
169
|
+
);
|
170
|
+
ok(
|
171
|
+
fu.fileupload('option', 'dropZone')
|
172
|
+
.data('events').drop.length,
|
173
|
+
'Listens to drop zone drop events'
|
174
|
+
);
|
175
|
+
ok(
|
176
|
+
fu.fileupload('option', 'dropZone')
|
177
|
+
.data('events').dragover.length,
|
178
|
+
'Listens to drop zone dragover events'
|
179
|
+
);
|
180
|
+
$('#fileupload').fileupload({
|
181
|
+
send: function (e, data) {
|
182
|
+
strictEqual(
|
183
|
+
data.files[0].name,
|
184
|
+
'test',
|
185
|
+
'Triggers send callback'
|
186
|
+
);
|
187
|
+
return false;
|
188
|
+
}
|
189
|
+
}).fileupload('send', param);
|
190
|
+
});
|
191
|
+
|
192
|
+
test('option', function () {
|
193
|
+
var fu = $('#fileupload').fileupload(),
|
194
|
+
fileInput = fu.fileupload('option', 'fileInput'),
|
195
|
+
dropZone = fu.fileupload('option', 'dropZone');
|
196
|
+
fu.fileupload('option', 'fileInput', null);
|
197
|
+
fu.fileupload('option', 'dropZone', null);
|
198
|
+
ok(
|
199
|
+
!fileInput.data('events'),
|
200
|
+
'Removes event listener after changing fileInput option'
|
201
|
+
);
|
202
|
+
ok(
|
203
|
+
!dropZone.data('events'),
|
204
|
+
'Removes event listeners after changing dropZone option'
|
205
|
+
);
|
206
|
+
fu.fileupload('option', 'fileInput', fileInput);
|
207
|
+
fu.fileupload('option', 'dropZone', dropZone);
|
208
|
+
ok(
|
209
|
+
fileInput.data('events').change.length,
|
210
|
+
'Adds change event listener after setting fileInput option'
|
211
|
+
);
|
212
|
+
ok(
|
213
|
+
dropZone.data('events').drop.length,
|
214
|
+
'Adds drop event listener after setting dropZone option'
|
215
|
+
);
|
216
|
+
ok(
|
217
|
+
dropZone.data('events').dragover.length,
|
218
|
+
'Adds dragover event listener after setting dropZone option'
|
219
|
+
);
|
220
|
+
});
|
221
|
+
|
222
|
+
asyncTest('add', function () {
|
223
|
+
expect(4);
|
224
|
+
var param = {files: [{name: 'test'}]},
|
225
|
+
param2 = {files: [{fileName: 'test', fileSize: 123}]};
|
226
|
+
$('#fileupload').fileupload({
|
227
|
+
add: function (e, data) {
|
228
|
+
strictEqual(
|
229
|
+
data.files[0].name,
|
230
|
+
param.files[0].name,
|
231
|
+
'Triggers add callback'
|
232
|
+
);
|
233
|
+
}
|
234
|
+
}).fileupload('add', param).fileupload(
|
235
|
+
'option',
|
236
|
+
'add',
|
237
|
+
function (e, data) {
|
238
|
+
strictEqual(
|
239
|
+
data.files[0].name,
|
240
|
+
param2.files[0].fileName,
|
241
|
+
'Normalizes fileName'
|
242
|
+
);
|
243
|
+
strictEqual(
|
244
|
+
data.files[0].size,
|
245
|
+
param2.files[0].fileSize,
|
246
|
+
'Normalizes fileSize'
|
247
|
+
);
|
248
|
+
data.submit().complete(function () {
|
249
|
+
ok(true, 'data.submit() Returns a jqXHR object');
|
250
|
+
start();
|
251
|
+
});
|
252
|
+
}
|
253
|
+
).fileupload('add', param2);
|
254
|
+
});
|
255
|
+
|
256
|
+
asyncTest('send', function () {
|
257
|
+
expect(3);
|
258
|
+
var param = {files: [{name: 'test'}]};
|
259
|
+
$('#fileupload').fileupload({
|
260
|
+
send: function (e, data) {
|
261
|
+
strictEqual(
|
262
|
+
data.files[0].name,
|
263
|
+
'test',
|
264
|
+
'Triggers send callback'
|
265
|
+
);
|
266
|
+
}
|
267
|
+
}).fileupload('send', param).fail(function () {
|
268
|
+
ok(true, 'Allows to abort the request');
|
269
|
+
}).complete(function () {
|
270
|
+
ok(true, 'Returns a jqXHR object');
|
271
|
+
start();
|
272
|
+
}).abort();
|
273
|
+
});
|
274
|
+
|
275
|
+
module('Callbacks', lifecycle);
|
276
|
+
|
277
|
+
asyncTest('add', function () {
|
278
|
+
expect(1);
|
279
|
+
var param = {files: [{name: 'test'}]};
|
280
|
+
$('#fileupload').fileupload({
|
281
|
+
add: function (e, data) {
|
282
|
+
ok(true, 'Triggers add callback');
|
283
|
+
start();
|
284
|
+
}
|
285
|
+
}).fileupload('add', param);
|
286
|
+
});
|
287
|
+
|
288
|
+
asyncTest('submit', function () {
|
289
|
+
expect(1);
|
290
|
+
var param = {files: [{name: 'test'}]};
|
291
|
+
$('#fileupload').fileupload({
|
292
|
+
submit: function (e, data) {
|
293
|
+
ok(true, 'Triggers submit callback');
|
294
|
+
start();
|
295
|
+
return false;
|
296
|
+
}
|
297
|
+
}).fileupload('add', param);
|
298
|
+
});
|
299
|
+
|
300
|
+
asyncTest('send', function () {
|
301
|
+
expect(1);
|
302
|
+
var param = {files: [{name: 'test'}]};
|
303
|
+
$('#fileupload').fileupload({
|
304
|
+
send: function (e, data) {
|
305
|
+
ok(true, 'Triggers send callback');
|
306
|
+
start();
|
307
|
+
return false;
|
308
|
+
}
|
309
|
+
}).fileupload('send', param);
|
310
|
+
});
|
311
|
+
|
312
|
+
asyncTest('done', function () {
|
313
|
+
expect(1);
|
314
|
+
var param = {files: [{name: 'test'}]};
|
315
|
+
$('#fileupload').fileupload({
|
316
|
+
done: function (e, data) {
|
317
|
+
ok(true, 'Triggers done callback');
|
318
|
+
start();
|
319
|
+
}
|
320
|
+
}).fileupload('send', param);
|
321
|
+
});
|
322
|
+
|
323
|
+
asyncTest('fail', function () {
|
324
|
+
expect(1);
|
325
|
+
var param = {files: [{name: 'test'}]},
|
326
|
+
fu = $('#fileupload').fileupload({
|
327
|
+
url: '404',
|
328
|
+
fail: function (e, data) {
|
329
|
+
ok(true, 'Triggers fail callback');
|
330
|
+
start();
|
331
|
+
}
|
332
|
+
});
|
333
|
+
fu.data('fileupload')._isXHRUpload = function () {
|
334
|
+
return true;
|
335
|
+
};
|
336
|
+
fu.fileupload('send', param);
|
337
|
+
});
|
338
|
+
|
339
|
+
asyncTest('always', function () {
|
340
|
+
expect(2);
|
341
|
+
var param = {files: [{name: 'test'}]},
|
342
|
+
counter = 0,
|
343
|
+
fu = $('#fileupload').fileupload({
|
344
|
+
always: function (e, data) {
|
345
|
+
ok(true, 'Triggers always callback');
|
346
|
+
if (counter === 1) {
|
347
|
+
start();
|
348
|
+
} else {
|
349
|
+
counter += 1;
|
350
|
+
}
|
351
|
+
}
|
352
|
+
});
|
353
|
+
fu.data('fileupload')._isXHRUpload = function () {
|
354
|
+
return true;
|
355
|
+
};
|
356
|
+
fu.fileupload('add', param).fileupload(
|
357
|
+
'option',
|
358
|
+
'url',
|
359
|
+
'404'
|
360
|
+
).fileupload('add', param);
|
361
|
+
});
|
362
|
+
|
363
|
+
asyncTest('progress', function () {
|
364
|
+
expect(1);
|
365
|
+
var param = {files: [{name: 'test'}]},
|
366
|
+
counter = 0;
|
367
|
+
$('#fileupload').fileupload({
|
368
|
+
forceIframeTransport: true,
|
369
|
+
progress: function (e, data) {
|
370
|
+
ok(true, 'Triggers progress callback');
|
371
|
+
if (counter === 0) {
|
372
|
+
start();
|
373
|
+
} else {
|
374
|
+
counter += 1;
|
375
|
+
}
|
376
|
+
}
|
377
|
+
}).fileupload('send', param);
|
378
|
+
});
|
379
|
+
|
380
|
+
asyncTest('progressall', function () {
|
381
|
+
expect(1);
|
382
|
+
var param = {files: [{name: 'test'}]},
|
383
|
+
counter = 0;
|
384
|
+
$('#fileupload').fileupload({
|
385
|
+
forceIframeTransport: true,
|
386
|
+
progressall: function (e, data) {
|
387
|
+
ok(true, 'Triggers progressall callback');
|
388
|
+
if (counter === 0) {
|
389
|
+
start();
|
390
|
+
} else {
|
391
|
+
counter += 1;
|
392
|
+
}
|
393
|
+
}
|
394
|
+
}).fileupload('send', param);
|
395
|
+
});
|
396
|
+
|
397
|
+
asyncTest('start', function () {
|
398
|
+
expect(1);
|
399
|
+
var param = {files: [{name: '1'}, {name: '2'}]},
|
400
|
+
active = 0;
|
401
|
+
$('#fileupload').fileupload({
|
402
|
+
send: function (e, data) {
|
403
|
+
active += 1;
|
404
|
+
},
|
405
|
+
start: function (e, data) {
|
406
|
+
ok(!active, 'Triggers start callback before uploads');
|
407
|
+
start();
|
408
|
+
}
|
409
|
+
}).fileupload('send', param);
|
410
|
+
});
|
411
|
+
|
412
|
+
asyncTest('stop', function () {
|
413
|
+
expect(1);
|
414
|
+
var param = {files: [{name: '1'}, {name: '2'}]},
|
415
|
+
active = 0;
|
416
|
+
$('#fileupload').fileupload({
|
417
|
+
send: function (e, data) {
|
418
|
+
active += 1;
|
419
|
+
},
|
420
|
+
always: function (e, data) {
|
421
|
+
active -= 1;
|
422
|
+
},
|
423
|
+
stop: function (e, data) {
|
424
|
+
ok(!active, 'Triggers stop callback after uploads');
|
425
|
+
start();
|
426
|
+
}
|
427
|
+
}).fileupload('send', param);
|
428
|
+
});
|
429
|
+
|
430
|
+
test('change', function () {
|
431
|
+
var fu = $('#fileupload').fileupload(),
|
432
|
+
fuo = fu.data('fileupload'),
|
433
|
+
fileInput = fu.fileupload('option', 'fileInput');
|
434
|
+
expect(2);
|
435
|
+
fu.fileupload({
|
436
|
+
change: function (e, data) {
|
437
|
+
ok(true, 'Triggers change callback');
|
438
|
+
strictEqual(
|
439
|
+
data.files.length,
|
440
|
+
1,
|
441
|
+
'Creates pseudo File object'
|
442
|
+
);
|
443
|
+
},
|
444
|
+
add: $.noop
|
445
|
+
});
|
446
|
+
fuo._onChange({
|
447
|
+
data: {fileupload: fuo},
|
448
|
+
target: fileInput[0]
|
449
|
+
});
|
450
|
+
});
|
451
|
+
|
452
|
+
test('paste', function () {
|
453
|
+
var fu = $('#fileupload').fileupload(),
|
454
|
+
fuo = fu.data('fileupload');
|
455
|
+
expect(1);
|
456
|
+
fu.fileupload({
|
457
|
+
paste: function (e, data) {
|
458
|
+
ok(true, 'Triggers paste callback');
|
459
|
+
},
|
460
|
+
add: $.noop
|
461
|
+
});
|
462
|
+
fuo._onPaste({
|
463
|
+
data: {fileupload: fuo},
|
464
|
+
originalEvent: {clipboardData: {}},
|
465
|
+
preventDefault: $.noop
|
466
|
+
});
|
467
|
+
});
|
468
|
+
|
469
|
+
test('drop', function () {
|
470
|
+
var fu = $('#fileupload').fileupload(),
|
471
|
+
fuo = fu.data('fileupload');
|
472
|
+
expect(1);
|
473
|
+
fu.fileupload({
|
474
|
+
drop: function (e, data) {
|
475
|
+
ok(true, 'Triggers drop callback');
|
476
|
+
},
|
477
|
+
add: $.noop
|
478
|
+
});
|
479
|
+
fuo._onDrop({
|
480
|
+
data: {fileupload: fuo},
|
481
|
+
originalEvent: {dataTransfer: {}},
|
482
|
+
preventDefault: $.noop
|
483
|
+
});
|
484
|
+
});
|
485
|
+
|
486
|
+
test('dragover', function () {
|
487
|
+
var fu = $('#fileupload').fileupload(),
|
488
|
+
fuo = fu.data('fileupload');
|
489
|
+
expect(1);
|
490
|
+
fu.fileupload({
|
491
|
+
dragover: function (e, data) {
|
492
|
+
ok(true, 'Triggers dragover callback');
|
493
|
+
},
|
494
|
+
add: $.noop
|
495
|
+
});
|
496
|
+
fuo._onDragOver({
|
497
|
+
data: {fileupload: fuo},
|
498
|
+
originalEvent: {dataTransfer: {}},
|
499
|
+
preventDefault: $.noop
|
500
|
+
});
|
501
|
+
});
|
502
|
+
|
503
|
+
module('Options', lifecycle);
|
504
|
+
|
505
|
+
test('paramName', function () {
|
506
|
+
expect(1);
|
507
|
+
var param = {files: [{name: 'test'}]};
|
508
|
+
$('#fileupload').fileupload({
|
509
|
+
paramName: null,
|
510
|
+
send: function (e, data) {
|
511
|
+
strictEqual(
|
512
|
+
data.paramName,
|
513
|
+
data.fileInput.prop('name'),
|
514
|
+
'Takes paramName from file input field if not set'
|
515
|
+
);
|
516
|
+
return false;
|
517
|
+
}
|
518
|
+
}).fileupload('send', param);
|
519
|
+
});
|
520
|
+
|
521
|
+
test('url', function () {
|
522
|
+
expect(1);
|
523
|
+
var param = {files: [{name: 'test'}]};
|
524
|
+
$('#fileupload').fileupload({
|
525
|
+
url: null,
|
526
|
+
send: function (e, data) {
|
527
|
+
strictEqual(
|
528
|
+
data.url,
|
529
|
+
$(data.fileInput.prop('form')).prop('action'),
|
530
|
+
'Takes url from form action if not set'
|
531
|
+
);
|
532
|
+
return false;
|
533
|
+
}
|
534
|
+
}).fileupload('send', param);
|
535
|
+
});
|
536
|
+
|
537
|
+
test('type', function () {
|
538
|
+
expect(2);
|
539
|
+
var param = {files: [{name: 'test'}]};
|
540
|
+
$('#fileupload').fileupload({
|
541
|
+
type: null,
|
542
|
+
send: function (e, data) {
|
543
|
+
strictEqual(
|
544
|
+
data.type,
|
545
|
+
'POST',
|
546
|
+
'Request type is "POST" if not set to "PUT"'
|
547
|
+
);
|
548
|
+
return false;
|
549
|
+
}
|
550
|
+
}).fileupload('send', param);
|
551
|
+
$('#fileupload').fileupload({
|
552
|
+
type: 'PUT',
|
553
|
+
send: function (e, data) {
|
554
|
+
strictEqual(
|
555
|
+
data.type,
|
556
|
+
'PUT',
|
557
|
+
'Request type is "PUT" if set to "PUT"'
|
558
|
+
);
|
559
|
+
return false;
|
560
|
+
}
|
561
|
+
}).fileupload('send', param);
|
562
|
+
});
|
563
|
+
|
564
|
+
test('replaceFileInput', function () {
|
565
|
+
var fu = $('#fileupload').fileupload(),
|
566
|
+
fuo = fu.data('fileupload'),
|
567
|
+
fileInput = fu.fileupload('option', 'fileInput'),
|
568
|
+
fileInputElement = fileInput[0];
|
569
|
+
expect(2);
|
570
|
+
fu.fileupload({
|
571
|
+
replaceFileInput: false,
|
572
|
+
change: function (e, data) {
|
573
|
+
strictEqual(
|
574
|
+
fu.fileupload('option', 'fileInput')[0],
|
575
|
+
fileInputElement,
|
576
|
+
'Keeps file input with replaceFileInput: false'
|
577
|
+
);
|
578
|
+
},
|
579
|
+
add: $.noop
|
580
|
+
});
|
581
|
+
fuo._onChange({
|
582
|
+
data: {fileupload: fuo},
|
583
|
+
target: fileInput[0]
|
584
|
+
});
|
585
|
+
fu.fileupload({
|
586
|
+
replaceFileInput: true,
|
587
|
+
change: function (e, data) {
|
588
|
+
notStrictEqual(
|
589
|
+
fu.fileupload('option', 'fileInput')[0],
|
590
|
+
fileInputElement,
|
591
|
+
'Replaces file input with replaceFileInput: true'
|
592
|
+
);
|
593
|
+
},
|
594
|
+
add: $.noop
|
595
|
+
});
|
596
|
+
fuo._onChange({
|
597
|
+
data: {fileupload: fuo},
|
598
|
+
target: fileInput[0]
|
599
|
+
});
|
600
|
+
});
|
601
|
+
|
602
|
+
asyncTest('forceIframeTransport', function () {
|
603
|
+
expect(1);
|
604
|
+
var param = {files: [{name: 'test'}]};
|
605
|
+
$('#fileupload').fileupload({
|
606
|
+
forceIframeTransport: true,
|
607
|
+
done: function (e, data) {
|
608
|
+
strictEqual(
|
609
|
+
data.dataType.substr(0, 6),
|
610
|
+
'iframe',
|
611
|
+
'Iframe Transport is used'
|
612
|
+
);
|
613
|
+
start();
|
614
|
+
}
|
615
|
+
}).fileupload('send', param);
|
616
|
+
});
|
617
|
+
|
618
|
+
test('singleFileUploads', function () {
|
619
|
+
expect(3);
|
620
|
+
var fu = $('#fileupload').fileupload(),
|
621
|
+
param = {files: [{name: '1'}, {name: '2'}]},
|
622
|
+
index = 1;
|
623
|
+
fu.data('fileupload')._isXHRUpload = function () {
|
624
|
+
return true;
|
625
|
+
};
|
626
|
+
$('#fileupload').fileupload({
|
627
|
+
singleFileUploads: true,
|
628
|
+
add: function (e, data) {
|
629
|
+
ok(true, 'Triggers callback number ' + index.toString());
|
630
|
+
index += 1;
|
631
|
+
}
|
632
|
+
}).fileupload('add', param).fileupload(
|
633
|
+
'option',
|
634
|
+
'singleFileUploads',
|
635
|
+
false
|
636
|
+
).fileupload('add', param);
|
637
|
+
});
|
638
|
+
|
639
|
+
test('limitMultiFileUploads', function () {
|
640
|
+
expect(3);
|
641
|
+
var fu = $('#fileupload').fileupload(),
|
642
|
+
param = {files: [
|
643
|
+
{name: '1'},
|
644
|
+
{name: '2'},
|
645
|
+
{name: '3'},
|
646
|
+
{name: '4'},
|
647
|
+
{name: '5'}
|
648
|
+
]},
|
649
|
+
index = 1;
|
650
|
+
fu.data('fileupload')._isXHRUpload = function () {
|
651
|
+
return true;
|
652
|
+
};
|
653
|
+
$('#fileupload').fileupload({
|
654
|
+
singleFileUploads: false,
|
655
|
+
limitMultiFileUploads: 2,
|
656
|
+
add: function (e, data) {
|
657
|
+
ok(true, 'Triggers callback number ' + index.toString());
|
658
|
+
index += 1;
|
659
|
+
}
|
660
|
+
}).fileupload('add', param);
|
661
|
+
});
|
662
|
+
|
663
|
+
asyncTest('sequentialUploads', function () {
|
664
|
+
expect(6);
|
665
|
+
var param = {files: [
|
666
|
+
{name: '1'},
|
667
|
+
{name: '2'},
|
668
|
+
{name: '3'},
|
669
|
+
{name: '4'},
|
670
|
+
{name: '5'},
|
671
|
+
{name: '6'}
|
672
|
+
]},
|
673
|
+
addIndex = 0,
|
674
|
+
sendIndex = 0,
|
675
|
+
loadIndex = 0,
|
676
|
+
fu = $('#fileupload').fileupload({
|
677
|
+
sequentialUploads: true,
|
678
|
+
add: function (e, data) {
|
679
|
+
addIndex += 1;
|
680
|
+
if (addIndex === 4) {
|
681
|
+
data.submit().abort();
|
682
|
+
} else {
|
683
|
+
data.submit();
|
684
|
+
}
|
685
|
+
},
|
686
|
+
send: function (e, data) {
|
687
|
+
sendIndex += 1;
|
688
|
+
},
|
689
|
+
done: function (e, data) {
|
690
|
+
loadIndex += 1;
|
691
|
+
strictEqual(sendIndex, loadIndex, 'upload in order');
|
692
|
+
},
|
693
|
+
fail: function (e, data) {
|
694
|
+
strictEqual(data.errorThrown, 'abort', 'upload aborted');
|
695
|
+
},
|
696
|
+
stop: function (e) {
|
697
|
+
start();
|
698
|
+
}
|
699
|
+
});
|
700
|
+
fu.data('fileupload')._isXHRUpload = function () {
|
701
|
+
return true;
|
702
|
+
};
|
703
|
+
fu.fileupload('add', param);
|
704
|
+
});
|
705
|
+
|
706
|
+
asyncTest('limitConcurrentUploads', function () {
|
707
|
+
expect(12);
|
708
|
+
var param = {files: [
|
709
|
+
{name: '1'},
|
710
|
+
{name: '2'},
|
711
|
+
{name: '3'},
|
712
|
+
{name: '4'},
|
713
|
+
{name: '5'},
|
714
|
+
{name: '6'},
|
715
|
+
{name: '7'},
|
716
|
+
{name: '8'},
|
717
|
+
{name: '9'},
|
718
|
+
{name: '10'},
|
719
|
+
{name: '11'},
|
720
|
+
{name: '12'}
|
721
|
+
]},
|
722
|
+
addIndex = 0,
|
723
|
+
sendIndex = 0,
|
724
|
+
loadIndex = 0,
|
725
|
+
fu = $('#fileupload').fileupload({
|
726
|
+
limitConcurrentUploads: 3,
|
727
|
+
add: function (e, data) {
|
728
|
+
addIndex += 1;
|
729
|
+
if (addIndex === 4) {
|
730
|
+
data.submit().abort();
|
731
|
+
} else {
|
732
|
+
data.submit();
|
733
|
+
}
|
734
|
+
},
|
735
|
+
send: function (e, data) {
|
736
|
+
sendIndex += 1;
|
737
|
+
},
|
738
|
+
done: function (e, data) {
|
739
|
+
loadIndex += 1;
|
740
|
+
ok(sendIndex - loadIndex < 3);
|
741
|
+
},
|
742
|
+
fail: function (e, data) {
|
743
|
+
strictEqual(data.errorThrown, 'abort', 'upload aborted');
|
744
|
+
},
|
745
|
+
stop: function (e) {
|
746
|
+
start();
|
747
|
+
}
|
748
|
+
});
|
749
|
+
fu.data('fileupload')._isXHRUpload = function () {
|
750
|
+
return true;
|
751
|
+
};
|
752
|
+
fu.fileupload('add', param);
|
753
|
+
});
|
754
|
+
|
755
|
+
asyncTest('multipart', function () {
|
756
|
+
expect(4);
|
757
|
+
var param = {files: [{
|
758
|
+
name: 'test.png',
|
759
|
+
size: 123,
|
760
|
+
type: 'image/png'
|
761
|
+
}]},
|
762
|
+
fu = $('#fileupload').fileupload({
|
763
|
+
multipart: false,
|
764
|
+
always: function (e, data) {
|
765
|
+
strictEqual(
|
766
|
+
data.contentType,
|
767
|
+
param.files[0].type,
|
768
|
+
'non-multipart upload sets file type as contentType'
|
769
|
+
);
|
770
|
+
strictEqual(
|
771
|
+
data.headers['X-File-Name'],
|
772
|
+
param.files[0].name,
|
773
|
+
'non-multipart upload sets X-File-Name header'
|
774
|
+
);
|
775
|
+
strictEqual(
|
776
|
+
data.headers['X-File-Type'],
|
777
|
+
param.files[0].type,
|
778
|
+
'non-multipart upload sets X-File-Type header'
|
779
|
+
);
|
780
|
+
strictEqual(
|
781
|
+
data.headers['X-File-Size'],
|
782
|
+
param.files[0].size,
|
783
|
+
'non-multipart upload sets X-File-Size header'
|
784
|
+
);
|
785
|
+
start();
|
786
|
+
}
|
787
|
+
});
|
788
|
+
fu.data('fileupload')._isXHRUpload = function () {
|
789
|
+
return true;
|
790
|
+
};
|
791
|
+
fu.fileupload('send', param);
|
792
|
+
});
|
793
|
+
|
794
|
+
module('UI Initialization', lifecycleUI);
|
795
|
+
|
796
|
+
test('Widget initialization', function () {
|
797
|
+
ok($('#fileupload').fileupload().data('fileupload'));
|
798
|
+
ok(
|
799
|
+
$('#fileupload').fileupload('option', 'uploadTemplate').length,
|
800
|
+
'Initialized upload template'
|
801
|
+
);
|
802
|
+
ok(
|
803
|
+
$('#fileupload').fileupload('option', 'downloadTemplate').length,
|
804
|
+
'Initialized download template'
|
805
|
+
);
|
806
|
+
});
|
807
|
+
|
808
|
+
test('Buttonbar event listeners', function () {
|
809
|
+
var buttonbar = $('#fileupload .fileupload-buttonbar'),
|
810
|
+
files = [{name: 'test'}];
|
811
|
+
expect(7);
|
812
|
+
$('#fileupload').fileupload({
|
813
|
+
send: function (e, data) {
|
814
|
+
ok(true, 'Started file upload via global start button');
|
815
|
+
},
|
816
|
+
fail: function (e, data) {
|
817
|
+
ok(true, 'Canceled file upload via global cancel button');
|
818
|
+
data.context.remove();
|
819
|
+
},
|
820
|
+
destroy: function (e, data) {
|
821
|
+
ok(true, 'Delete action called via global delete button');
|
822
|
+
}
|
823
|
+
});
|
824
|
+
ok(
|
825
|
+
buttonbar.find('.start')
|
826
|
+
.data('events').click.length,
|
827
|
+
'Listens to start button click events'
|
828
|
+
);
|
829
|
+
ok(
|
830
|
+
buttonbar.find('.cancel')
|
831
|
+
.data('events').click.length,
|
832
|
+
'Listens to cancel button click events'
|
833
|
+
);
|
834
|
+
ok(
|
835
|
+
buttonbar.find('.delete')
|
836
|
+
.data('events').click.length,
|
837
|
+
'Listens to delete button click events'
|
838
|
+
);
|
839
|
+
$('#fileupload').fileupload('add', {files: files});
|
840
|
+
buttonbar.find('.cancel').click();
|
841
|
+
$('#fileupload').fileupload('add', {files: files});
|
842
|
+
buttonbar.find('.start').click();
|
843
|
+
buttonbar.find('.cancel').click();
|
844
|
+
$('#fileupload').data('fileupload')._renderDownload(files)
|
845
|
+
.appendTo($('#fileupload .files')).show()
|
846
|
+
.find('.delete input').click();
|
847
|
+
buttonbar.find('.delete').click();
|
848
|
+
});
|
849
|
+
|
850
|
+
module('UI API', lifecycleUI);
|
851
|
+
|
852
|
+
test('destroy', function () {
|
853
|
+
var buttonbar = $('#fileupload .fileupload-buttonbar');
|
854
|
+
$('#fileupload').fileupload();
|
855
|
+
buttonbar.find('button').click($.noop);
|
856
|
+
$('#fileupload').fileupload('destroy');
|
857
|
+
strictEqual(
|
858
|
+
buttonbar.find('.start').data('events').click.length,
|
859
|
+
1,
|
860
|
+
'Removes own start button click event listener'
|
861
|
+
);
|
862
|
+
strictEqual(
|
863
|
+
buttonbar.find('.cancel').data('events').click.length,
|
864
|
+
1,
|
865
|
+
'Removes own cancel button click event listener'
|
866
|
+
);
|
867
|
+
strictEqual(
|
868
|
+
buttonbar.find('.delete').data('events').click.length,
|
869
|
+
1,
|
870
|
+
'Removes own delete button click event listener'
|
871
|
+
);
|
872
|
+
});
|
873
|
+
|
874
|
+
test('disable', function () {
|
875
|
+
var buttonbar = $('#fileupload .fileupload-buttonbar');
|
876
|
+
$('#fileupload').fileupload();
|
877
|
+
$('#fileupload').fileupload('disable');
|
878
|
+
strictEqual(
|
879
|
+
buttonbar.find('input[type=file], button').not(':disabled').length,
|
880
|
+
0,
|
881
|
+
'Disables the buttonbar buttons'
|
882
|
+
);
|
883
|
+
});
|
884
|
+
|
885
|
+
test('enable', function () {
|
886
|
+
var buttonbar = $('#fileupload .fileupload-buttonbar');
|
887
|
+
$('#fileupload')
|
888
|
+
.fileupload()
|
889
|
+
.fileupload('disable')
|
890
|
+
.fileupload('enable');
|
891
|
+
strictEqual(
|
892
|
+
buttonbar.find('input[type=file], button').not(':disabled').length,
|
893
|
+
4,
|
894
|
+
'Enables the buttonbar buttons'
|
895
|
+
);
|
896
|
+
});
|
897
|
+
|
898
|
+
module('UI Callbacks', lifecycleUI);
|
899
|
+
|
900
|
+
test('destroy', function () {
|
901
|
+
expect(3);
|
902
|
+
$('#fileupload').fileupload({
|
903
|
+
destroy: function (e, data) {
|
904
|
+
ok(true, 'Triggers destroy callback');
|
905
|
+
strictEqual(
|
906
|
+
data.url,
|
907
|
+
'test',
|
908
|
+
'Passes over deletion url parameter'
|
909
|
+
);
|
910
|
+
strictEqual(
|
911
|
+
data.type,
|
912
|
+
'DELETE',
|
913
|
+
'Passes over deletion request type parameter'
|
914
|
+
);
|
915
|
+
}
|
916
|
+
});
|
917
|
+
$('#fileupload').data('fileupload')._renderDownload([{
|
918
|
+
name: 'test',
|
919
|
+
delete_url: 'test',
|
920
|
+
delete_type: 'DELETE'
|
921
|
+
}]).appendTo($('#fileupload .files')).show()
|
922
|
+
.find('.delete input').click();
|
923
|
+
$('#fileupload .fileupload-buttonbar .delete').click();
|
924
|
+
});
|
925
|
+
|
926
|
+
module('UI Options', lifecycleUI);
|
927
|
+
|
928
|
+
test('autoUpload', function () {
|
929
|
+
expect(1);
|
930
|
+
$('#fileupload')
|
931
|
+
.fileupload({
|
932
|
+
autoUpload: true,
|
933
|
+
send: function (e, data) {
|
934
|
+
ok(true, 'Started file upload automatically');
|
935
|
+
return false;
|
936
|
+
}
|
937
|
+
})
|
938
|
+
.fileupload('add', {files: [{name: 'test'}]})
|
939
|
+
.fileupload('option', 'autoUpload', false)
|
940
|
+
.fileupload('add', {files: [{name: 'test'}]});
|
941
|
+
});
|
942
|
+
|
943
|
+
test('maxNumberOfFiles', function () {
|
944
|
+
expect(4);
|
945
|
+
var addIndex = 0,
|
946
|
+
sendIndex = 0;
|
947
|
+
$('#fileupload')
|
948
|
+
.fileupload({
|
949
|
+
autoUpload: true,
|
950
|
+
maxNumberOfFiles: 1,
|
951
|
+
singleFileUploads: false,
|
952
|
+
send: function (e, data) {
|
953
|
+
strictEqual(
|
954
|
+
sendIndex += 1,
|
955
|
+
addIndex
|
956
|
+
);
|
957
|
+
},
|
958
|
+
done: $.noop
|
959
|
+
})
|
960
|
+
.fileupload('add', {files: [{name: (addIndex += 1)}]})
|
961
|
+
.fileupload('add', {files: [{name: 'test'}]})
|
962
|
+
.fileupload('option', 'maxNumberOfFiles', 1)
|
963
|
+
.fileupload('add', {files: [{name: 1}, {name: 2}]})
|
964
|
+
.fileupload({
|
965
|
+
maxNumberOfFiles: 1,
|
966
|
+
send: function (e, data) {
|
967
|
+
strictEqual(
|
968
|
+
sendIndex += 1,
|
969
|
+
addIndex
|
970
|
+
);
|
971
|
+
return false;
|
972
|
+
}
|
973
|
+
})
|
974
|
+
.fileupload('add', {files: [{name: (addIndex += 1)}]})
|
975
|
+
.fileupload('add', {files: [{name: (addIndex += 1)}]})
|
976
|
+
.fileupload({
|
977
|
+
maxNumberOfFiles: 0,
|
978
|
+
send: function (e, data) {
|
979
|
+
ok(
|
980
|
+
!$.blueimpUI.fileupload.prototype.options
|
981
|
+
.send.call(this, e, data)
|
982
|
+
);
|
983
|
+
return false;
|
984
|
+
}
|
985
|
+
})
|
986
|
+
.fileupload('send', {files: [{name: 'test'}]});
|
987
|
+
});
|
988
|
+
|
989
|
+
test('maxFileSize', function () {
|
990
|
+
expect(3);
|
991
|
+
var addIndex = 0,
|
992
|
+
sendIndex = 0;
|
993
|
+
$('#fileupload')
|
994
|
+
.fileupload({
|
995
|
+
autoUpload: true,
|
996
|
+
maxFileSize: 1000,
|
997
|
+
send: function (e, data) {
|
998
|
+
strictEqual(
|
999
|
+
sendIndex += 1,
|
1000
|
+
addIndex
|
1001
|
+
);
|
1002
|
+
return false;
|
1003
|
+
}
|
1004
|
+
})
|
1005
|
+
.fileupload('add', {files: [{
|
1006
|
+
name: (addIndex += 1)
|
1007
|
+
}]})
|
1008
|
+
.fileupload('add', {files: [{
|
1009
|
+
name: (addIndex += 1),
|
1010
|
+
size: 999
|
1011
|
+
}]})
|
1012
|
+
.fileupload('add', {files: [{
|
1013
|
+
name: 'test',
|
1014
|
+
size: 1001
|
1015
|
+
}]})
|
1016
|
+
.fileupload({
|
1017
|
+
send: function (e, data) {
|
1018
|
+
ok(
|
1019
|
+
!$.blueimpUI.fileupload.prototype.options
|
1020
|
+
.send.call(this, e, data)
|
1021
|
+
);
|
1022
|
+
return false;
|
1023
|
+
}
|
1024
|
+
})
|
1025
|
+
.fileupload('send', {files: [{
|
1026
|
+
name: 'test',
|
1027
|
+
size: 1001
|
1028
|
+
}]});
|
1029
|
+
});
|
1030
|
+
|
1031
|
+
test('minFileSize', function () {
|
1032
|
+
expect(3);
|
1033
|
+
var addIndex = 0,
|
1034
|
+
sendIndex = 0;
|
1035
|
+
$('#fileupload')
|
1036
|
+
.fileupload({
|
1037
|
+
autoUpload: true,
|
1038
|
+
minFileSize: 1000,
|
1039
|
+
send: function (e, data) {
|
1040
|
+
strictEqual(
|
1041
|
+
sendIndex += 1,
|
1042
|
+
addIndex
|
1043
|
+
);
|
1044
|
+
return false;
|
1045
|
+
}
|
1046
|
+
})
|
1047
|
+
.fileupload('add', {files: [{
|
1048
|
+
name: (addIndex += 1)
|
1049
|
+
}]})
|
1050
|
+
.fileupload('add', {files: [{
|
1051
|
+
name: (addIndex += 1),
|
1052
|
+
size: 1001
|
1053
|
+
}]})
|
1054
|
+
.fileupload('add', {files: [{
|
1055
|
+
name: 'test',
|
1056
|
+
size: 999
|
1057
|
+
}]})
|
1058
|
+
.fileupload({
|
1059
|
+
send: function (e, data) {
|
1060
|
+
ok(
|
1061
|
+
!$.blueimpUI.fileupload.prototype.options
|
1062
|
+
.send.call(this, e, data)
|
1063
|
+
);
|
1064
|
+
return false;
|
1065
|
+
}
|
1066
|
+
})
|
1067
|
+
.fileupload('send', {files: [{
|
1068
|
+
name: 'test',
|
1069
|
+
size: 999
|
1070
|
+
}]});
|
1071
|
+
});
|
1072
|
+
|
1073
|
+
test('acceptFileTypes', function () {
|
1074
|
+
expect(3);
|
1075
|
+
var addIndex = 0,
|
1076
|
+
sendIndex = 0;
|
1077
|
+
$('#fileupload')
|
1078
|
+
.fileupload({
|
1079
|
+
autoUpload: true,
|
1080
|
+
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
|
1081
|
+
previewFileTypes: /none/,
|
1082
|
+
send: function (e, data) {
|
1083
|
+
strictEqual(
|
1084
|
+
sendIndex += 1,
|
1085
|
+
addIndex
|
1086
|
+
);
|
1087
|
+
return false;
|
1088
|
+
}
|
1089
|
+
})
|
1090
|
+
.fileupload('add', {files: [{
|
1091
|
+
name: (addIndex += 1) + '.jpg'
|
1092
|
+
}]})
|
1093
|
+
.fileupload('add', {files: [{
|
1094
|
+
name: (addIndex += 1),
|
1095
|
+
type: 'image/jpeg'
|
1096
|
+
}]})
|
1097
|
+
.fileupload('add', {files: [{
|
1098
|
+
name: 'test.txt',
|
1099
|
+
type: 'text/plain'
|
1100
|
+
}]})
|
1101
|
+
.fileupload({
|
1102
|
+
send: function (e, data) {
|
1103
|
+
ok(
|
1104
|
+
!$.blueimpUI.fileupload.prototype.options
|
1105
|
+
.send.call(this, e, data)
|
1106
|
+
);
|
1107
|
+
return false;
|
1108
|
+
}
|
1109
|
+
})
|
1110
|
+
.fileupload('send', {files: [{
|
1111
|
+
name: 'test.txt',
|
1112
|
+
type: 'text/plain'
|
1113
|
+
}]});
|
1114
|
+
});
|
1115
|
+
|
1116
|
+
});
|