social_stream 1.1.12 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CONTRIBUTING.md +14 -0
- data/Gemfile +3 -0
- data/README.rdoc +11 -12
- data/Rakefile +2 -0
- data/base/app/assets/images/brand-index.png +0 -0
- data/base/app/assets/images/btn/error.png +0 -0
- data/base/app/assets/images/btn/facebook.png +0 -0
- data/base/app/assets/images/btn/linkedin.png +0 -0
- data/base/app/assets/images/characteristic/flexible.png +0 -0
- data/base/app/assets/images/characteristic/github.png +0 -0
- data/base/app/assets/images/characteristic/modular.png +0 -0
- data/base/app/assets/images/facebook.png +0 -0
- data/base/app/assets/images/fiware.png +0 -0
- data/base/app/assets/images/group.png +0 -0
- data/base/app/assets/images/header-logo-index.png +0 -0
- data/base/app/assets/images/header-logo.png +0 -0
- data/base/app/assets/images/icons/favicon.ico +0 -0
- data/base/app/assets/images/icons/files_ico-50.png +0 -0
- data/base/app/assets/images/icons/files_ico-70.png +0 -0
- data/base/app/assets/images/icons/mess_ico-50.png +0 -0
- data/base/app/assets/images/icons/navbar_ico-20.png +0 -0
- data/base/app/assets/images/icons/tools_ico-16.png +0 -0
- data/base/app/assets/images/linkedin.png +0 -0
- data/base/app/assets/images/logo-index.png +0 -0
- data/base/app/assets/images/logos/medium/group.png +0 -0
- data/base/app/assets/images/logos/medium/user.png +0 -0
- data/base/app/assets/images/logos/original/user.png +0 -0
- data/base/app/assets/images/logos/small/group.png +0 -0
- data/base/app/assets/images/logos/small/site.png +0 -0
- data/base/app/assets/images/logos/small/user.png +0 -0
- data/base/app/assets/images/nota.png +0 -0
- data/base/app/assets/images/pattern.png +0 -0
- data/base/app/assets/images/socialstream.png +0 -0
- data/base/app/assets/images/user.png +0 -0
- data/base/app/assets/javascripts/social_stream-base.js +4 -4
- data/base/app/assets/javascripts/social_stream/action.js +32 -0
- data/base/app/assets/javascripts/social_stream/audience.js +30 -0
- data/base/app/assets/javascripts/social_stream/callback.js +69 -0
- data/base/app/assets/javascripts/social_stream/comment.js +153 -0
- data/base/app/assets/javascripts/social_stream/contact.js +324 -0
- data/base/app/assets/javascripts/social_stream/conversation.js +22 -0
- data/base/app/assets/javascripts/social_stream/explore.js +52 -0
- data/base/app/assets/javascripts/social_stream/flash.js +13 -0
- data/base/app/assets/javascripts/social_stream/follow.js +28 -0
- data/base/app/assets/javascripts/social_stream/group.js +32 -0
- data/base/app/assets/javascripts/social_stream/message.js.erb +30 -0
- data/base/app/assets/javascripts/social_stream/notification.js +32 -0
- data/base/app/assets/javascripts/social_stream/object.js +84 -0
- data/base/app/assets/javascripts/social_stream/pagination.js +48 -0
- data/base/app/assets/javascripts/social_stream/permission.js +20 -0
- data/base/app/assets/javascripts/{posts.js → social_stream/post.js} +0 -0
- data/base/app/assets/javascripts/social_stream/profile.js +42 -0
- data/base/app/assets/javascripts/social_stream/relation_customs.js +175 -0
- data/base/app/assets/javascripts/social_stream/repository.js +41 -0
- data/base/app/assets/javascripts/social_stream/search.js +17 -0
- data/base/app/assets/javascripts/social_stream/search_header.js +51 -0
- data/base/app/assets/javascripts/social_stream/tag.js +46 -0
- data/base/app/assets/javascripts/social_stream/tie.js +67 -0
- data/base/app/assets/javascripts/social_stream/timeline.js +74 -0
- data/base/app/assets/javascripts/social_stream/user.js +1 -0
- data/base/app/assets/javascripts/social_stream/wall.js +44 -0
- data/base/app/assets/stylesheets/social_stream-base.css.sass +185 -0
- data/base/app/assets/stylesheets/social_stream/base/_adjust.css.sass +31 -0
- data/base/app/assets/stylesheets/social_stream/base/_buttons.scss.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/_groups.css.sass +45 -0
- data/base/app/assets/stylesheets/social_stream/base/_jquery-ui.css.sass +6 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/_contacts.css.sass +55 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +162 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/responsive/_responsive-1200px-min.css.sass +16 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/responsive/_responsive-767px-max.css.sass +53 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/responsive/_responsive-768px-979px.css.sass +16 -0
- data/base/app/assets/stylesheets/social_stream/base/conversation/_conversation.css.sass +98 -0
- data/base/app/assets/stylesheets/social_stream/base/conversation/layout/_conversation.css.sass +123 -0
- data/base/app/assets/stylesheets/social_stream/base/conversation/responsive/_responsive-1200px-min.css.sass +72 -0
- data/base/app/assets/stylesheets/social_stream/base/conversation/responsive/_responsive-767px-max.css.sass +134 -0
- data/base/app/assets/stylesheets/social_stream/base/conversation/responsive/_responsive-768px-979px.css.sass +76 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/_explore-search.css.sass +102 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/_explore-timeline.css.sass +19 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/_explore.css.sass +29 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/layout/_explore-search.css.sass +151 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/layout/_explore-timeline.css.sass +141 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/layout/_explore.css.sass +92 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/responsive/_responsive-1200px-min.css.sass +41 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/responsive/_responsive-767px-max.css.sass +75 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/responsive/_responsive-768px-979px.css.sass +42 -0
- data/base/app/assets/stylesheets/social_stream/base/footer/layout/_footer.css.sass +11 -0
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/_devise.css.sass +35 -0
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/_frontpage.css.sass +47 -0
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_devise.css.sass +67 -0
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_frontpage.css.sass +88 -0
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-1200px-min.css.sass +45 -0
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-767px-max.css.sass +126 -0
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-768px-979px.css.sass +34 -0
- data/base/app/assets/stylesheets/social_stream/base/icons/icon.css.css +386 -0
- data/base/app/assets/stylesheets/social_stream/base/layouts/_header.css.sass +115 -0
- data/base/app/assets/stylesheets/social_stream/base/layouts/_layout.css.sass +40 -0
- data/base/app/assets/stylesheets/social_stream/base/logo/_logo-in.css +93 -0
- data/base/app/assets/stylesheets/social_stream/base/logo/_logo-out.css +93 -0
- data/base/app/assets/stylesheets/social_stream/base/logo/layout/_logo-in.css +93 -0
- data/base/app/assets/stylesheets/social_stream/base/logo/layout/_logo-out.css +93 -0
- data/base/app/assets/stylesheets/social_stream/base/logo/responsive/_responsive-767px-max.css.sass +52 -0
- data/base/app/assets/stylesheets/social_stream/base/mixins/_buttons.css.sass +150 -0
- data/base/app/assets/stylesheets/social_stream/base/mixins/_inputs.css.sass +5 -0
- data/base/app/assets/stylesheets/social_stream/base/mixins/_layout.css.sass +35 -0
- data/base/app/assets/stylesheets/social_stream/base/notifications/_notifications.css.sass +5 -0
- data/base/app/assets/stylesheets/social_stream/base/notifications/layout/_notifications.css.sass +44 -0
- data/base/app/assets/stylesheets/social_stream/base/notifications/responsive/_responsive-1200px-min.css.sass +6 -0
- data/base/app/assets/stylesheets/social_stream/base/notifications/responsive/_responsive-767px-max.css.sass +36 -0
- data/base/app/assets/stylesheets/social_stream/base/notifications/responsive/_responsive-768px-979px.css.sass +12 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/_profile.css.sass +37 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/layout/_profile.css.sass +100 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/responsive/_responsive-1200px-min.css.sass +30 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/responsive/_responsive-767px-max.css.sass +33 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/responsive/_responsive-768px-979px.css.sass +23 -0
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-1200px-min.css.sass +86 -0
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-767px-max.css.sass +178 -0
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-768px-979px.css.sass +102 -0
- data/base/app/assets/stylesheets/social_stream/base/search/_header.css.sass +46 -0
- data/base/app/assets/stylesheets/social_stream/base/select2/_sselect2.css.sass +43 -0
- data/base/app/assets/stylesheets/social_stream/base/select2/layout/_sselect2.css.sass +25 -0
- data/base/app/assets/stylesheets/social_stream/base/settings/layout/_settings.css.sass +47 -0
- data/base/app/assets/stylesheets/social_stream/base/settings/responsive/_responsive-1200px-min.css.sass +11 -0
- data/base/app/assets/stylesheets/social_stream/base/settings/responsive/_responsive-767px-max.css.sass +44 -0
- data/base/app/assets/stylesheets/social_stream/base/settings/responsive/_responsive-768px-979px.css.sass +34 -0
- data/base/app/assets/stylesheets/social_stream/base/sidebar/_sidebar.css.sass +42 -0
- data/base/app/assets/stylesheets/social_stream/base/sidebar/layout/_sidebar.css.sass +60 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/_timeline.css.sass +159 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/_wrapper_activities.css.sass +71 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/layout/_timeline.css.sass +161 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/layout/_wrapper_activities.css.sass +53 -0
- data/base/app/assets/stylesheets/social_stream/base/toolbar/_toolbar.css.sass +99 -0
- data/base/app/assets/stylesheets/social_stream/base/toolbar/layout/_toolbar.css.sass +91 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_alerts.scss +8 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_button-groups.scss +162 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_dropdowns.scss +237 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_forms.scss +9 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_modal.scss +9 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_nav.scss +24 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_navbar.scss +54 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_variables.scss +308 -0
- data/base/app/assets/stylesheets/social_stream/fonts/BreeSerif-Regular.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/GiveYouGlory.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/RockSalt.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/fonts.css +16 -0
- data/base/app/assets/stylesheets/social_stream/fonts/opensans-regular-webfont.eot +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/opensans-regular-webfont.svg +244 -0
- data/base/app/assets/stylesheets/social_stream/fonts/opensans-regular-webfont.woff +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/opensans-regular.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SIL OFL Font License - Source Sans Pro.txt +93 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Black.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-BlackIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Bold.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-BoldIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-ExtraLight.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-ExtraLightIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-It.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Light.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-LightIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Regular.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Semibold.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-SemiboldIt.otf +0 -0
- data/base/app/controllers/activities_controller.rb +13 -5
- data/base/app/controllers/contacts_controller.rb +56 -47
- data/base/app/controllers/conversations_controller.rb +8 -4
- data/base/app/controllers/explore_controller.rb +11 -0
- data/base/app/controllers/frontpage_controller.rb +2 -0
- data/base/app/controllers/groups_controller.rb +1 -7
- data/base/app/controllers/messages_controller.rb +6 -7
- data/base/app/controllers/notifications_controller.rb +10 -6
- data/base/app/controllers/omniauth_callbacks_controller.rb +7 -10
- data/base/app/controllers/permissions_controller.rb +13 -8
- data/base/app/controllers/profiles_controller.rb +10 -5
- data/base/app/controllers/repositories_controller.rb +33 -0
- data/base/app/controllers/search_controller.rb +15 -7
- data/base/app/controllers/tags_controller.rb +24 -6
- data/base/app/controllers/users_controller.rb +9 -7
- data/base/app/helpers/activities_helper.rb +6 -21
- data/base/app/helpers/contacts_helper.rb +9 -1
- data/base/app/helpers/explore_helper.rb +16 -0
- data/base/app/helpers/layouts_helper.rb +31 -0
- data/base/app/helpers/profiles_helper.rb +1 -30
- data/base/app/helpers/search_helper.rb +0 -25
- data/base/app/helpers/tags_helper.rb +13 -0
- data/base/app/models/activity.rb +19 -3
- data/base/app/models/activity_object.rb +72 -21
- data/base/app/models/activity_object/properties.rb +115 -0
- data/base/app/models/activity_object_property.rb +41 -2
- data/base/app/models/actor.rb +39 -96
- data/base/app/models/contact.rb +5 -1
- data/base/app/models/group.rb +3 -8
- data/base/app/models/post.rb +3 -1
- data/base/app/models/profile.rb +44 -5
- data/base/app/models/relation.rb +4 -0
- data/base/app/models/relation/custom.rb +3 -14
- data/base/app/models/relation/reject.rb +5 -0
- data/base/app/models/site.rb +2 -3
- data/base/app/models/site/current.rb +8 -0
- data/base/app/models/tie.rb +1 -1
- data/base/app/models/user.rb +12 -8
- data/base/app/views/activities/_actions.html.erb +18 -0
- data/base/app/views/activities/_audience.html.erb +15 -0
- data/base/app/views/activities/_child.html.erb +13 -10
- data/base/app/views/activities/_comment.html.erb +4 -0
- data/base/app/views/activities/_comments.html.erb +1 -1
- data/base/app/views/activities/_index.html.erb +10 -13
- data/base/app/views/activities/_like.html.erb +5 -0
- data/base/app/views/activities/_likes.html.erb +3 -3
- data/base/app/views/activities/_new.html.erb +22 -51
- data/base/app/views/activities/_root.html.erb +23 -24
- data/base/app/views/activities/_time_ago.html.erb +3 -0
- data/base/app/views/activities/_timeline.html.erb +21 -0
- data/base/app/views/activities/_timeline_modal.html.erb +12 -0
- data/base/app/views/activity_actions/_follow_form.html.erb +3 -1
- data/base/app/views/activity_objects/_activity_object.html.erb +1 -7
- data/base/app/views/activity_objects/_timeline.html.erb +3 -0
- data/base/app/views/audience/_list.html.erb +1 -1
- data/base/app/views/comments/_comment.html.erb +3 -1
- data/base/app/views/comments/_new.html.erb +8 -28
- data/base/app/views/comments/_new_form.html.erb +11 -0
- data/base/app/views/comments/_quick_search_result.html.erb +3 -0
- data/base/app/views/comments/_search_result.html.erb +1 -0
- data/base/app/views/comments/create.js.erb +5 -7
- data/base/app/views/contacts/_contact.html.erb +19 -14
- data/base/app/views/contacts/_form.html.erb +4 -3
- data/base/app/views/contacts/_link_custom.html.erb +2 -8
- data/base/app/views/contacts/_pendings.html.erb +7 -15
- data/base/app/views/contacts/_suggestions.html.erb +10 -13
- data/base/app/views/contacts/destroy.js.erb +7 -6
- data/base/app/views/contacts/index.html.erb +37 -30
- data/base/app/views/contacts/update.js.erb +7 -0
- data/base/app/views/conversations/_conversation.html.erb +45 -37
- data/base/app/views/conversations/_conversation_full.html.erb +38 -35
- data/base/app/views/conversations/_index.html.erb +8 -9
- data/base/app/views/conversations/_show.html.erb +1 -11
- data/base/app/views/conversations/index.html.erb +9 -7
- data/base/app/views/conversations/show.html.erb +5 -5
- data/base/app/views/devise/confirmations/new.html.erb +14 -0
- data/base/app/views/devise/passwords/edit.html.erb +27 -18
- data/base/app/views/devise/passwords/new.html.erb +25 -22
- data/base/app/views/devise/registrations/_delete_account.html.erb +10 -18
- data/base/app/views/devise/registrations/_edit_user.html.erb +28 -46
- data/base/app/views/devise/registrations/edit.html.erb +6 -12
- data/base/app/views/devise/registrations/new.html.erb +39 -39
- data/base/app/views/devise/sessions/_form.html.erb +34 -0
- data/base/app/views/devise/sessions/new.html.erb +4 -33
- data/base/app/views/devise/shared/_links.erb +21 -19
- data/base/app/views/explore/_explore.html.erb +19 -0
- data/base/app/views/explore/_followed.html.erb +16 -0
- data/base/app/views/explore/_header.html.erb +12 -0
- data/base/app/views/explore/_index.html.erb +19 -0
- data/base/app/views/explore/_last.html.erb +18 -0
- data/base/app/views/explore/_last_active.html.erb +12 -0
- data/base/app/views/explore/_last_registered.html.erb +11 -0
- data/base/app/views/explore/_likes.html.erb +15 -0
- data/base/app/views/explore/_members.html.erb +12 -0
- data/base/app/views/explore/_participants.html.erb +17 -0
- data/base/app/views/explore/_resources.html.erb +19 -0
- data/base/app/views/explore/_resources_last_uploaded.html.erb +11 -0
- data/base/app/views/explore/_resources_most_visited.html.erb +11 -0
- data/base/app/views/explore/_search.html.erb +1 -0
- data/base/app/views/explore/_tags.html.erb +145 -0
- data/base/app/views/explore/_timeline.html.erb +2 -0
- data/base/app/views/explore/_trending.html.erb +18 -0
- data/base/app/views/explore/index.html.erb +1 -0
- data/base/app/views/followers/index.html.erb +29 -25
- data/base/app/views/followers/update.js.erb +1 -1
- data/base/app/views/frontpage/_characteristics.html.erb +23 -0
- data/base/app/views/frontpage/_presentation.html.erb +3 -0
- data/base/app/views/frontpage/_presentation_default.html.erb +27 -0
- data/base/app/views/frontpage/_sponsor.html.erb +3 -12
- data/base/app/views/frontpage/index.html.erb +5 -67
- data/base/app/views/groups/_group.html.erb +2 -4
- data/base/app/views/groups/_index.html.erb +1 -1
- data/base/app/views/groups/_new.html.erb +43 -77
- data/base/app/views/groups/_quick_search_result.html.erb +1 -0
- data/base/app/views/groups/_search_result.html.erb +1 -0
- data/base/app/views/groups/_show.html.erb +7 -31
- data/base/app/views/groups/_timeline.html.erb +3 -0
- data/base/app/views/groups/new.html.erb +7 -7
- data/base/app/views/groups/show.html.erb +16 -0
- data/base/app/views/home/index.html.erb +7 -17
- data/base/app/views/home/index.js.erb +2 -2
- data/base/app/views/invitations/_new.html.erb +15 -23
- data/base/app/views/invitations/new.html.erb +5 -7
- data/base/app/views/layouts/_account.html.erb +17 -15
- data/base/app/views/layouts/_explanation.html.erb +10 -0
- data/base/app/views/layouts/_footer.html.erb +16 -13
- data/base/app/views/layouts/_header.erb +4 -4
- data/base/app/views/layouts/_header_dropdown_menu.html.erb +28 -18
- data/base/app/views/layouts/_header_dropdown_menu_sessions.html.erb +14 -14
- data/base/app/views/layouts/_header_signed_in.erb +72 -41
- data/base/app/views/layouts/_header_signed_out.erb +6 -33
- data/base/app/views/layouts/_loading.html.erb +6 -0
- data/base/app/views/layouts/_logo-in.html.erb +17 -0
- data/base/app/views/layouts/_logo-out.html.erb +17 -0
- data/base/app/views/layouts/_logo_in.html.erb +17 -0
- data/base/app/views/layouts/_more.html.erb +7 -0
- data/base/app/views/layouts/application.html.erb +12 -29
- data/base/app/views/likes/create.js.erb +1 -1
- data/base/app/views/likes/destroy.js.erb +1 -1
- data/base/app/views/{activities/index.html.erb → loading/_loaging.html.erb} +0 -0
- data/base/app/views/messages/_form.html.erb +33 -35
- data/base/app/views/messages/_message.html.erb +24 -29
- data/base/app/views/messages/_new.html.erb +0 -7
- data/base/app/views/messages/new.html.erb +9 -30
- data/base/app/views/messages/new.js.erb +1 -24
- data/base/app/views/notifications/_index.html.erb +17 -18
- data/base/app/views/notifications/_notification.html.erb +11 -40
- data/base/app/views/notifications/activities/_follow.html.erb +2 -7
- data/base/app/views/notifications/activities/_follow.text.erb +0 -2
- data/base/app/views/notifications/activities/_join.text.erb +0 -2
- data/base/app/views/notifications/activities/_like.html.erb +4 -17
- data/base/app/views/notifications/activities/_make-friend.html.erb +4 -10
- data/base/app/views/notifications/activities/_post.html.erb +2 -5
- data/base/app/views/notifications/activities/_update.html.erb +3 -11
- data/base/app/views/notifications/index.html.erb +5 -6
- data/base/app/views/objects/_counters.html.erb +5 -0
- data/base/app/views/objects/_form_privacy.html.erb +4 -0
- data/base/app/views/objects/_show.html.erb +2 -2
- data/base/app/views/objects/_timeline_description.html.erb +3 -0
- data/base/app/views/permissions/_index.html.erb +15 -37
- data/base/app/views/posts/_post.html.erb +1 -1
- data/base/app/views/posts/_quick_search_result.html.erb +3 -0
- data/base/app/views/posts/_search_result.html.erb +1 -0
- data/base/app/views/posts/_timeline.html.erb +1 -0
- data/base/app/views/posts/create.js.erb +1 -1
- data/base/app/views/posts/show.html.erb +5 -3
- data/base/app/views/profiles/_avatar.html.erb +16 -0
- data/base/app/views/profiles/_comunication-info.html.erb +98 -0
- data/base/app/views/profiles/_edit_icon.html.erb +6 -0
- data/base/app/views/profiles/_empty.html.erb +1 -0
- data/base/app/views/profiles/_experience.html.erb +26 -21
- data/base/app/views/profiles/_personal.html.erb +104 -71
- data/base/app/views/profiles/_profile.html.erb +29 -36
- data/base/app/views/profiles/_tags.html.erb +24 -20
- data/base/app/views/profiles/show.html.erb +9 -9
- data/base/app/views/profiles/update.js.erb +9 -8
- data/base/app/views/relation/customs/_custom.html.erb +27 -0
- data/base/app/views/relation/customs/_form.html.erb +3 -3
- data/base/app/views/relation/customs/_list.html.erb +13 -67
- data/base/app/views/relation/customs/create.js.erb +8 -18
- data/base/app/views/relation/customs/destroy.js.erb +8 -0
- data/base/app/views/relation/customs/index.html.erb +20 -39
- data/base/app/views/relation/customs/update.js.erb +9 -9
- data/base/app/views/repositories/_filter.html.erb +1 -0
- data/base/app/views/repositories/show.html.erb +26 -0
- data/base/app/views/search/_index.html.erb +39 -12
- data/base/app/views/search/_quick.html.erb +13 -0
- data/base/app/views/search/_results.html.erb +4 -0
- data/base/app/views/search/index.html.erb +1 -5
- data/base/app/views/settings/_api_key.html.erb +8 -16
- data/base/app/views/settings/_destroy.html.erb +7 -7
- data/base/app/views/settings/_index.html.erb +27 -8
- data/base/app/views/settings/_language.html.erb +15 -24
- data/base/app/views/settings/_notifications.html.erb +21 -32
- data/base/app/views/settings/index.html.erb +4 -11
- data/base/app/views/sidebar/_groups.html.erb +7 -0
- data/base/app/views/sidebar/_groups_tag_cloud.html.erb +22 -0
- data/base/app/views/sidebar/_show.html.erb +5 -0
- data/base/app/views/sidebar/_suggestions_and_pendings.html.erb +4 -0
- data/base/app/views/subjects/_show.js.erb +1 -1
- data/base/app/views/subjects/_subject.html.erb +13 -6
- data/base/app/views/subjects/_timeline.html.erb +8 -0
- data/base/app/views/toolbar/_contacts.html.erb +18 -0
- data/base/app/views/toolbar/_groups.html.erb +18 -0
- data/base/app/views/toolbar/_home.html.erb +5 -0
- data/base/app/views/toolbar/_logo.html.erb +9 -11
- data/base/app/views/toolbar/_messages.html.erb +26 -0
- data/base/app/views/toolbar/_profile.html.erb +48 -0
- data/base/app/views/toolbar/_subject.html.erb +6 -10
- data/base/app/views/users/_index.html.erb +14 -17
- data/base/app/views/users/_quick_search_result.html.erb +1 -0
- data/base/app/views/users/_search_result.html.erb +1 -0
- data/base/app/views/users/_show.html.erb +7 -32
- data/base/app/views/users/_timeline.html.erb +3 -0
- data/base/app/views/users/_user.html.erb +2 -2
- data/base/app/views/users/show.html.erb +16 -0
- data/base/config/locales/devise.es.yml +59 -0
- data/base/config/locales/en.yml +109 -50
- data/base/config/locales/es.yml +105 -46
- data/base/config/routes.rb +29 -16
- data/base/db/migrate/20120326083509_create_social_stream.rb +31 -23
- data/base/db/migrate/20130125100112_sites_as_actor.rb +10 -0
- data/base/db/migrate/20130212092035_main_activity_object_properties.rb +18 -0
- data/base/db/migrate/20130305101231_move_avatars.rb +45 -0
- data/base/lib/generators/social_stream/base/install_generator.rb +5 -1
- data/base/lib/generators/social_stream/base/templates/initializer.rb +8 -0
- data/base/lib/generators/social_stream/base/templates/social_stream.css.sass +8 -0
- data/base/lib/logos/users/2.jpg +0 -0
- data/base/lib/mailboxer/social_stream.rb +4 -0
- data/base/lib/social_stream-base.rb +1 -143
- data/base/lib/social_stream/base.rb +61 -0
- data/base/lib/social_stream/base/ability.rb +1 -1
- data/base/lib/social_stream/base/autoload.rb +63 -0
- data/base/lib/social_stream/base/dependencies.rb +10 -4
- data/base/lib/social_stream/base/engine.rb +1 -29
- data/base/lib/social_stream/base/version.rb +1 -1
- data/base/lib/social_stream/controllers/helpers.rb +3 -3
- data/base/lib/social_stream/controllers/mark_notifications_read.rb +1 -1
- data/base/lib/social_stream/controllers/objects.rb +41 -33
- data/base/lib/social_stream/devise/controllers/user_sign_in.rb +36 -0
- data/base/lib/social_stream/models/object.rb +5 -0
- data/base/lib/social_stream/models/subject.rb +11 -0
- data/base/lib/social_stream/population/activity_object.rb +4 -3
- data/base/lib/social_stream/population/actor.rb +12 -0
- data/base/lib/social_stream/population/timestamps.rb +8 -2
- data/base/lib/social_stream/search.rb +25 -15
- data/base/lib/tasks/attachments.rake +12 -15
- data/base/lib/tasks/db/populate.rake +169 -177
- data/base/social_stream-base.gemspec +15 -11
- data/base/spec/controllers/contacts_controller_spec.rb +18 -20
- data/base/spec/controllers/explore_controller_spec.rb +41 -0
- data/base/spec/controllers/groups_controller_spec.rb +3 -21
- data/base/spec/controllers/home_controller_spec.rb +2 -2
- data/base/spec/controllers/notifications_controller_spec.rb +1 -1
- data/base/spec/controllers/permissions_controller_spec.rb +3 -3
- data/base/spec/controllers/profiles_controller_spec.rb +6 -26
- data/base/spec/controllers/users_controller_spec.rb +0 -12
- data/base/spec/factories/activity.rb +2 -2
- data/base/spec/models/activity_object_property_spec.rb +59 -0
- data/base/spec/models/activity_spec.rb +34 -19
- data/base/spec/models/actor_spec.rb +0 -29
- data/base/spec/models/like_spec.rb +46 -26
- data/base/spec/models/site/current_spec.rb +16 -0
- data/base/spec/models/site_spec.rb +0 -12
- data/base/spec/views/profiles_spec.rb +92 -0
- data/base/spec/views/settings_spec.rb +39 -0
- data/base/vendor/assets/javascripts/bootstrap-multiselect.js +231 -0
- data/base/vendor/assets/javascripts/jquery.autosize.js +180 -0
- data/base/vendor/assets/javascripts/jquery.browser.js +43 -0
- data/base/vendor/assets/javascripts/jquery.cleditor.js +1132 -0
- data/base/vendor/assets/javascripts/jquery.inview.js +125 -0
- data/config/locales/en.yml +3 -0
- data/config/locales/es.yml +3 -0
- data/documents/app/assets/images/icons/attach.png +0 -0
- data/documents/app/assets/javascripts/social_stream-documents.js +1 -1
- data/documents/app/assets/javascripts/social_stream/audio.js.erb +29 -0
- data/documents/app/assets/javascripts/social_stream/document.js +27 -0
- data/documents/app/assets/javascripts/social_stream/documents.timeline.js +11 -0
- data/documents/app/assets/javascripts/social_stream/documents.wall.js +48 -0
- data/documents/app/assets/javascripts/social_stream/video.js.erb +42 -0
- data/documents/app/assets/stylesheets/social_stream-documents.css.sass +49 -0
- data/documents/{spec/dummy/config/navigation.rb → app/assets/stylesheets/social_stream/documents/_toolbar.css.sass} +0 -0
- data/documents/app/assets/stylesheets/social_stream/documents/aside/_documents.css.sass +4 -0
- data/documents/app/assets/stylesheets/social_stream/documents/aside/layout/_documents.css.sass +30 -0
- data/documents/{spec/dummy/db/.gitkeep → app/assets/stylesheets/social_stream/documents/create/_new.css.sass} +0 -0
- data/documents/app/assets/stylesheets/social_stream/documents/create/layout/_new.css.sass +32 -0
- data/documents/app/assets/stylesheets/social_stream/documents/documents/_documents.css.sass +4 -0
- data/documents/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass +52 -0
- data/documents/app/assets/stylesheets/social_stream/documents/explore/_explore-documents.css.sass +12 -0
- data/documents/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass +20 -0
- data/documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-1200px-min.css.sass +21 -0
- data/documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-767px-max.css.sass +58 -0
- data/documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-768px-979px.css.sass +54 -0
- data/documents/app/assets/stylesheets/social_stream/documents/search/_header.css.sass +25 -0
- data/documents/app/assets/stylesheets/social_stream/documents/search/layout/_header.css.sass +33 -0
- data/documents/app/assets/stylesheets/social_stream/documents/show/_show.css.sass +72 -0
- data/documents/app/assets/stylesheets/social_stream/documents/show/layout/_show.css.sass +112 -0
- data/documents/app/assets/stylesheets/social_stream/documents/timeline/_audios.css.sass +21 -0
- data/documents/app/assets/stylesheets/social_stream/documents/timeline/_wallinput.css.sass +10 -0
- data/documents/app/assets/stylesheets/social_stream/documents/timeline/layout/_audios.css.sass +67 -0
- data/documents/app/assets/stylesheets/social_stream/documents/timeline/layout/_wallinput.css.sass +10 -0
- data/documents/app/controllers/documents_controller.rb +16 -5
- data/documents/app/decorators/social_stream/base/activity_object_decorator.rb +1 -0
- data/documents/app/helpers/documents_helper.rb +35 -18
- data/documents/app/models/audio.rb +1 -6
- data/documents/app/models/document.rb +23 -28
- data/documents/app/models/picture.rb +0 -19
- data/documents/app/models/video.rb +0 -5
- data/documents/app/views/audios/_audio.html.erb +2 -11
- data/documents/app/views/audios/_audio_processed.html.erb +28 -23
- data/documents/app/views/audios/_audio_processing.html.erb +5 -5
- data/documents/app/views/audios/_quick_search_result.html.erb +3 -0
- data/documents/app/views/audios/_search_result.html.erb +1 -0
- data/documents/app/views/audios/_timeline.html.erb +11 -0
- data/documents/app/views/audios/index.html.erb +3 -1
- data/documents/app/views/common_documents/_document.html.erb +18 -0
- data/documents/app/views/common_documents/_filter.html.erb +1 -0
- data/documents/app/views/common_documents/_form.html.erb +44 -0
- data/documents/app/views/common_documents/_index.html.erb +27 -63
- data/documents/app/views/common_documents/_info.html.erb +50 -0
- data/documents/app/views/common_documents/_list.html.erb +2 -0
- data/documents/app/views/common_documents/_new.modal.html.erb +13 -0
- data/documents/app/views/common_documents/_new_button.html.erb +11 -0
- data/documents/app/views/common_documents/_quick_search_result.html.erb +19 -0
- data/documents/app/views/common_documents/_show.html.erb +76 -27
- data/documents/app/views/documents/_document.html.erb +2 -26
- data/documents/app/views/documents/_document_show.html.erb +2 -4
- data/documents/app/views/documents/_new_activity.html.erb +3 -1
- data/documents/app/views/documents/_quick_search_result.html.erb +3 -0
- data/documents/app/views/documents/_search_result.html.erb +1 -0
- data/documents/app/views/documents/_timeline.html.erb +15 -0
- data/documents/app/views/documents/index.html.erb +7 -1
- data/documents/app/views/documents/new.html.erb +9 -0
- data/documents/app/views/documents/search.html.erb +1 -1
- data/documents/app/views/pictures/_picture.html.erb +2 -41
- data/documents/app/views/pictures/_picture_show.html.erb +1 -16
- data/documents/app/views/pictures/_quick_search_result.html.erb +3 -0
- data/documents/app/views/pictures/_search_result.html.erb +1 -0
- data/documents/app/views/pictures/_timeline.html.erb +17 -0
- data/documents/app/views/pictures/index.html.erb +3 -1
- data/documents/app/views/videos/_quick_search_result.html.erb +3 -0
- data/documents/app/views/videos/_search_result.html.erb +1 -0
- data/documents/app/views/videos/_timeline.html.erb +9 -0
- data/documents/app/views/videos/_video.html.erb +2 -11
- data/documents/app/views/videos/_video_processed.html.erb +11 -15
- data/documents/app/views/videos/_video_processing.html.erb +6 -5
- data/documents/app/views/videos/_video_show.html.erb +1 -1
- data/documents/app/views/videos/index.html.erb +3 -1
- data/documents/config/locales/en.yml +25 -12
- data/documents/config/locales/es.yml +23 -12
- data/documents/lib/generators/social_stream/documents/install_generator.rb +2 -3
- data/documents/lib/generators/social_stream/documents/templates/initializer.rb +37 -9
- data/documents/lib/social_stream-documents.rb +56 -13
- data/documents/lib/social_stream/documents/dependencies.rb +1 -0
- data/documents/lib/social_stream/documents/engine.rb +5 -14
- data/documents/lib/social_stream/documents/models/activity_object.rb +18 -0
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/lib/tasks/db/populate.rake +21 -0
- data/documents/social_stream-documents.gemspec +4 -1
- data/documents/spec/controllers/documents_controller_spec.rb +15 -9
- data/documents/spec/controllers/pictures_controller_spec.rb +8 -8
- data/documents/spec/socialstream_documents_spec.rb +6 -0
- data/documents/vendor/assets/stylesheets/jplayer.blue.monday.css +2 -1
- data/events/app/assets/javascripts/social_stream-events.js +1 -1
- data/events/app/assets/javascripts/social_stream/calendar.js.erb +135 -0
- data/events/app/assets/javascripts/social_stream/event.js +44 -0
- data/events/app/assets/javascripts/social_stream/events.action.js +36 -0
- data/events/app/assets/javascripts/social_stream/events.poster.js +23 -0
- data/events/app/assets/javascripts/social_stream/events.timeline.js +6 -0
- data/events/app/assets/javascripts/social_stream/fullcalendar.js +135 -0
- data/events/app/assets/stylesheets/social_stream-events.css.sass +42 -0
- data/events/app/assets/stylesheets/social_stream/events/calendar/_calendar.css.sass +63 -0
- data/events/app/assets/stylesheets/social_stream/events/calendar/_calendar_modal.css.sass +15 -0
- data/events/app/assets/stylesheets/social_stream/events/calendar/_calendar_sidebar.css.sass +50 -0
- data/events/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar.css.sass +28 -0
- data/events/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar_modal.css.sass +60 -0
- data/events/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar_sidebar.css.sass +26 -0
- data/events/app/assets/stylesheets/social_stream/events/explore/layout/_explore_timeline_events.css.sass +6 -0
- data/events/app/assets/stylesheets/social_stream/events/header_nav/layout/_header_nav_events.css.sass +2 -0
- data/events/app/assets/stylesheets/social_stream/events/repository/_repository.css.sass +16 -0
- data/events/app/assets/stylesheets/social_stream/events/repository/layout/_repository.css.sass +24 -0
- data/events/app/assets/stylesheets/social_stream/events/responsive/_responsive-1200px-min.css.sass +34 -0
- data/events/app/assets/stylesheets/social_stream/events/responsive/_responsive-767px-max.css.sass +77 -0
- data/events/app/assets/stylesheets/social_stream/events/responsive/_responsive-768px-979px.css.sass +32 -0
- data/events/app/assets/stylesheets/social_stream/events/timeline/_timeline_events.css.sass +66 -0
- data/events/app/assets/stylesheets/social_stream/events/timeline/layout/_timeline_events.css.sass +70 -0
- data/events/app/helpers/events_helper.rb +12 -1
- data/events/app/models/event.rb +7 -9
- data/events/app/overrides/layouts/_header_signed_in/icon_nav.html.erb.deface +8 -0
- data/events/app/overrides/settings/_index/add_rooms.html.erb.deface +6 -0
- data/events/app/overrides/sidebar/_show/add_calendar.html.erb.deface +5 -0
- data/events/app/views/events/_calendar_month.erb +3 -1
- data/events/app/views/events/_date.html.erb +17 -0
- data/events/app/views/events/_date_sidebar.html.erb +14 -0
- data/events/app/views/events/_details.html.erb +24 -0
- data/events/app/views/events/_event.html.erb +17 -9
- data/events/app/views/events/_event_sidebar.html.erb +3 -3
- data/events/app/views/events/_form_poster.html.erb +2 -2
- data/events/app/views/events/_new.html.erb +11 -20
- data/events/app/views/events/_poster.html.erb +13 -0
- data/events/app/views/events/_quick_search_result.html.erb +1 -0
- data/events/app/views/events/_search_result.html.erb +1 -0
- data/events/app/views/events/_timeline.html.erb +8 -0
- data/events/app/views/events/create.js.erb +4 -16
- data/events/app/views/events/edit.js.erb +2 -2
- data/events/app/views/events/index.html.erb +23 -91
- data/events/app/views/events/index.js.erb +1 -1
- data/events/app/views/rooms/_form.html.erb +11 -16
- data/events/app/views/rooms/_index.html.erb +3 -7
- data/events/app/views/settings/_rooms.html.erb +11 -0
- data/events/app/views/sidebar/_calendar.html.erb +48 -0
- data/events/config/locales/en.yml +6 -0
- data/events/config/locales/es.yml +6 -0
- data/events/lib/generators/social_stream/events/install_generator.rb +2 -3
- data/events/lib/social_stream-events.rb +3 -12
- data/events/lib/social_stream/events/engine.rb +0 -12
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/lib/tasks/db/populate.rake +44 -0
- data/events/social_stream-events.gemspec +2 -2
- data/events/spec/controllers/events_controller_spec.rb +20 -0
- data/events/spec/views/settings_spec.rb +39 -0
- data/lib/social_stream.rb +11 -1
- data/lib/social_stream/release/global/version_file.rb +1 -1
- data/lib/social_stream/version.rb +1 -1
- data/linkser/app/assets/javascripts/social_stream-linkser.js +1 -1
- data/linkser/app/assets/javascripts/social_stream/link.js +30 -0
- data/linkser/app/assets/javascripts/social_stream/linkser.timeline.js +6 -0
- data/linkser/app/assets/javascripts/social_stream/linkser.wall.js +91 -0
- data/linkser/app/assets/stylesheets/social_stream-linkser.css.sass +20 -0
- data/linkser/app/assets/stylesheets/social_stream/linkser/explore/search/layout/_search-result.css.sass +13 -0
- data/linkser/app/assets/stylesheets/social_stream/linkser/explore/timeline/layout/_timeline-result.css.sass +15 -0
- data/linkser/app/assets/stylesheets/social_stream/linkser/repository/_repository.css.sass +15 -0
- data/linkser/app/assets/stylesheets/social_stream/linkser/repository/layout/_repository.css.sass +27 -0
- data/linkser/app/assets/stylesheets/social_stream/linkser/timeline/_timeline-link.css.sass +26 -0
- data/linkser/app/assets/stylesheets/social_stream/linkser/timeline/layout/_timeline-link.css.sass +44 -0
- data/linkser/app/controllers/links_controller.rb +1 -1
- data/linkser/app/models/link.rb +14 -7
- data/linkser/app/views/links/_link.html.erb +14 -35
- data/linkser/app/views/links/_link_preview.html.erb +1 -1
- data/linkser/app/views/links/_new_activity.html.erb +6 -0
- data/linkser/app/views/links/_quick_search_result.html.erb +7 -0
- data/linkser/app/views/links/_search_result.html.erb +1 -0
- data/linkser/app/views/links/_timeline.html.erb +26 -0
- data/linkser/app/views/links/create.js.erb +3 -10
- data/linkser/app/views/links/show.html.erb +5 -3
- data/linkser/config/locales/en.yml +3 -1
- data/linkser/config/locales/es.yml +4 -2
- data/linkser/lib/generators/social_stream/linkser/install_generator.rb +2 -3
- data/linkser/lib/social_stream-linkser.rb +3 -4
- data/linkser/lib/social_stream/linkser/version.rb +1 -1
- data/linkser/lib/tasks/db/populate.rake +20 -0
- data/linkser/social_stream-linkser.gemspec +1 -1
- data/oauth2_server/.gitignore +10 -0
- data/oauth2_server/Gemfile +5 -0
- data/oauth2_server/README.rdoc +3 -0
- data/oauth2_server/Rakefile +26 -0
- data/oauth2_server/app/assets/images/logos/small/site.png +0 -0
- data/oauth2_server/app/assets/javascripts/social_stream-oauth2_server.js +6 -0
- data/oauth2_server/app/assets/javascripts/social_stream/site_client.js +15 -0
- data/oauth2_server/app/assets/stylesheets/social_stream-oauth2_server.css.sass +24 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/_applications-oauth2server.css.sass +45 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/layout/_applications-oauth2server.css.sass +51 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/responsive/_responsive-1200px-min.css.sass +7 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/responsive/_responsive-767px-max.css.sass +35 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/responsive/_responsive-768px-979px.css.sass +8 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/_create-oauth2server.css.sass +11 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/_error_create-oauth2server.css.sass +13 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/layout/_create-oauth2server.css.sass +19 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/responsive/_responsive-1200px-min.css.sass +7 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/responsive/_responsive-767px-max.css.sass +16 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/responsive/_responsive-768px-979px.css.sass +8 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/_show-oauth2server.css.sass +42 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/layout/_show-oauth2server.css.sass +71 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/responsive/_responsive-1200px-min.css.sass +7 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/responsive/_responsive-767px-max.css.sass +16 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/responsive/_responsive-768px-979px.css.sass +8 -0
- data/oauth2_server/app/controllers/authorizations_controller.rb +67 -0
- data/oauth2_server/app/controllers/site/clients_controller.rb +39 -0
- data/oauth2_server/app/decorators/social_stream/base/actor_decorator.rb +3 -0
- data/oauth2_server/app/decorators/social_stream/base/user_decorator.rb +3 -0
- data/oauth2_server/app/helpers/site_client_helper.rb +17 -0
- data/oauth2_server/app/models/oauth2_token.rb +33 -0
- data/oauth2_server/app/models/oauth2_token/access_token.rb +32 -0
- data/oauth2_server/app/models/oauth2_token/authorization_code.rb +5 -0
- data/oauth2_server/app/models/oauth2_token/refresh_token.rb +7 -0
- data/oauth2_server/app/models/relation/admin.rb +9 -0
- data/oauth2_server/app/models/relation/auth.rb +8 -0
- data/oauth2_server/app/models/site/client.rb +38 -0
- data/oauth2_server/app/overrides/frontpage/_presentation/client_site_presentation.html.erb.deface +8 -0
- data/oauth2_server/app/overrides/layouts/_header_dropdown_menu/applications_entry.html.erb.deface +4 -0
- data/oauth2_server/app/views/authorizations/error.html.erb +4 -0
- data/oauth2_server/app/views/authorizations/new.html.erb +27 -0
- data/oauth2_server/app/views/site/clients/_form.html.erb +39 -0
- data/oauth2_server/app/views/site/clients/_new.modal.html.erb +9 -0
- data/oauth2_server/app/views/site/clients/_presentation.html.erb +13 -0
- data/oauth2_server/app/views/site/clients/index.html.erb +42 -0
- data/oauth2_server/app/views/site/clients/new.html.erb +10 -0
- data/oauth2_server/app/views/site/clients/show.html.erb +44 -0
- data/oauth2_server/config/locales/en.yml +29 -0
- data/oauth2_server/config/locales/es.yml +29 -0
- data/oauth2_server/config/routes.rb +10 -0
- data/oauth2_server/db/migrate/20130115102300_create_social_stream_oauth2_server.rb +25 -0
- data/oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb +23 -0
- data/oauth2_server/lib/social_stream-oauth2_server.rb +19 -0
- data/oauth2_server/lib/social_stream/migrations/oauth2_server.rb +8 -0
- data/oauth2_server/lib/social_stream/oauth2_server.rb +5 -0
- data/oauth2_server/lib/social_stream/oauth2_server/controllers/helpers.rb +41 -0
- data/oauth2_server/lib/social_stream/oauth2_server/engine.rb +21 -0
- data/oauth2_server/lib/social_stream/oauth2_server/models/actor.rb +11 -0
- data/oauth2_server/lib/social_stream/oauth2_server/models/user.rb +35 -0
- data/oauth2_server/lib/social_stream/oauth2_server/token_endpoint.rb +41 -0
- data/oauth2_server/lib/social_stream/oauth2_server/version.rb +5 -0
- data/oauth2_server/lib/tasks/db/populate.rake +37 -0
- data/oauth2_server/social_stream-oauth2_server.gemspec +19 -0
- data/oauth2_server/spec/controllers/authorizations_controller_spec.rb +179 -0
- data/oauth2_server/spec/controllers/dummy_controller_spec.rb +43 -0
- data/oauth2_server/spec/factories/site_client.rb +6 -0
- data/oauth2_server/spec/models/relation/auth_spec.rb +15 -0
- data/oauth2_server/spec/models/site/client_spec.rb +22 -0
- data/ostatus/Rakefile +2 -0
- data/ostatus/app/assets/images/logos/medium/remote_subject.png +0 -0
- data/ostatus/app/assets/images/logos/small/remote_subject.png +0 -0
- data/ostatus/app/assets/images/logos/small/site.png +0 -0
- data/ostatus/app/views/remote_subjects/_show.html.erb +6 -5
- data/ostatus/db/migrate/20120905145030_create_social_stream_ostatus.rb +13 -7
- data/ostatus/lib/social_stream/ostatus/version.rb +1 -1
- data/ostatus/social_stream-ostatus.gemspec +1 -1
- data/places/.gitignore +10 -0
- data/places/Gemfile +5 -0
- data/places/README.rdoc +3 -0
- data/places/Rakefile +26 -0
- data/places/app/assets/images/icons/places_ico-50.png +0 -0
- data/places/app/assets/javascripts/form.js +120 -0
- data/places/app/assets/javascripts/social_stream-places.js +10 -0
- data/places/app/assets/stylesheets/social_stream-places.css.sass +4 -0
- data/places/app/assets/stylesheets/social_stream/places/_carousel.css.sass +14 -0
- data/places/app/assets/stylesheets/social_stream/places/_maps.css.sass +16 -0
- data/places/app/assets/stylesheets/social_stream/places/_places.css.sass +9 -0
- data/places/app/assets/stylesheets/social_stream/places/icons/places_icon.css.css +22 -0
- data/places/app/controllers/places_controller.rb +32 -0
- data/places/app/decorators/social_stream/base/activity_object_decorator.rb +3 -0
- data/places/app/helpers/places_helper.rb +32 -0
- data/places/app/models/address.rb +30 -0
- data/places/app/models/geotag.rb +20 -0
- data/places/app/models/place.rb +45 -0
- data/places/app/views/places/_carousel.html.erb +21 -0
- data/places/app/views/places/_form.html.erb +64 -0
- data/places/app/views/places/_form_description.html.erb +9 -0
- data/places/app/views/places/_form_photo.html.erb +12 -0
- data/places/app/views/places/_info.html.erb +35 -0
- data/places/app/views/places/_map_form.html.erb +7 -0
- data/places/app/views/places/_place.html.erb +14 -0
- data/places/app/views/places/_place_info.html.erb +7 -0
- data/places/app/views/places/index.html.erb +7 -0
- data/places/app/views/places/new.html.erb +10 -0
- data/places/app/views/places/show.html.erb +73 -0
- data/places/app/views/shared/_address_form.html.erb +15 -0
- data/places/config/locales/en.yml +93 -0
- data/places/config/locales/es.yml +85 -0
- data/places/config/routes.rb +2 -0
- data/places/db/migrate/20130114184300_create_social_stream_places.rb +42 -0
- data/places/lib/generators/social_stream/places/install_generator.rb +25 -0
- data/places/lib/social_stream-places.rb +16 -0
- data/places/lib/social_stream/migrations/places.rb +8 -0
- data/places/lib/social_stream/places/engine.rb +7 -0
- data/places/lib/social_stream/places/models/activity_object.rb +38 -0
- data/places/lib/social_stream/places/version.rb +5 -0
- data/places/lib/tasks/db/populate.rake +63 -0
- data/places/social_stream-places.gemspec +20 -0
- data/places/vendor/assets/javascripts/gmaps4rails/gmaps4rails.base.js.coffee +501 -0
- data/places/vendor/assets/javascripts/gmaps4rails/gmaps4rails.bing.js.coffee +163 -0
- data/places/vendor/assets/javascripts/gmaps4rails/gmaps4rails.googlemaps.js.coffee +263 -0
- data/places/vendor/assets/javascripts/gmaps4rails/gmaps4rails.mapquest.js.coffee +134 -0
- data/places/vendor/assets/javascripts/gmaps4rails/gmaps4rails.openlayers.js.coffee +209 -0
- data/places/vendor/assets/stylesheets/gmaps4rails.css +24 -0
- data/presence/app/assets/images/chat-off.png +0 -0
- data/presence/app/assets/images/chat-on.png +0 -0
- data/presence/app/assets/javascripts/jquery.ui.chatbox.sstreampresence.js +3 -5
- data/presence/app/assets/javascripts/presence_XmppClient.js.erb +6 -2
- data/presence/app/assets/javascripts/presence_uiManager.js.erb +1 -1
- data/presence/app/assets/javascripts/presence_windowManager.js +1 -1
- data/presence/app/assets/stylesheets/social_stream-presence.css.sass +9 -0
- data/presence/app/assets/stylesheets/social_stream/presence/_toolbar-chat.css.sass +65 -0
- data/presence/app/assets/stylesheets/social_stream/presence/_wrapper-chatBox.css.sass +25 -0
- data/presence/app/assets/stylesheets/social_stream/responsive/_responsive-1200px-min.css.sass +9 -0
- data/presence/app/assets/stylesheets/social_stream/responsive/_responsive-767px-max.css.sass +16 -0
- data/presence/app/assets/stylesheets/social_stream/responsive/_responsive-768px-979px.css.sass +9 -0
- data/presence/app/overrides/settings/_index/add_chat.html.erb.deface +6 -0
- data/presence/app/overrides/toolbar/_home/add_chat.html.erb.deface +3 -0
- data/presence/app/overrides/toolbar/_profile/add_chat.html.erb.deface +4 -0
- data/presence/app/views/chat/_contacts.html.erb +1 -1
- data/presence/app/views/chat/_index.html.erb +126 -94
- data/presence/app/views/settings/_chat.html.erb +23 -0
- data/presence/config/locales/en.yml +5 -5
- data/presence/config/locales/es.yml +5 -5
- data/presence/lib/generators/social_stream/presence/install_generator.rb +2 -3
- data/presence/lib/social_stream-presence.rb +0 -10
- data/presence/lib/social_stream/presence/engine.rb +0 -11
- data/presence/lib/social_stream/presence/version.rb +1 -1
- data/presence/social_stream-presence.gemspec +2 -2
- data/presence/spec/views/settings_spec.rb +41 -0
- data/social_stream.gemspec +14 -16
- data/spec/dummy/.gitignore +2 -1
- data/spec/dummy/app/assets/javascripts/application.js +1 -0
- data/spec/dummy/app/assets/stylesheets/application.css.sass +8 -0
- data/spec/dummy/app/assets/stylesheets/social_stream.css.sass +13 -0
- data/spec/dummy/app/controllers/dummy_controller.rb +4 -0
- data/{documents/spec/dummy/public/favicon.ico → spec/dummy/app/views/dummy/index.html.erb} +0 -0
- data/spec/dummy/config/database.yml +10 -8
- data/spec/dummy/config/environments/development.rb +2 -0
- data/spec/dummy/config/initializers/devise.rb +67 -25
- data/spec/dummy/config/initializers/social_stream-presence.rb +44 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/config/sphinx.yml +12 -0
- data/spec/dummy/public/404.html +321 -24
- data/spec/dummy/public/500.html +72 -17
- data/spec/support/db.rb +7 -1
- metadata +554 -610
- data/base/app/assets/images/Jcrop.gif +0 -0
- data/base/app/assets/images/arrow-end.png +0 -0
- data/base/app/assets/images/arrow-start.png +0 -0
- data/base/app/assets/images/arrow.png +0 -0
- data/base/app/assets/images/big-logo.png +0 -0
- data/base/app/assets/images/btn/1-facebook.png +0 -0
- data/base/app/assets/images/btn/activity.png +0 -0
- data/base/app/assets/images/btn/arrowBlue.png +0 -0
- data/base/app/assets/images/btn/arrow_session_change.png +0 -0
- data/base/app/assets/images/btn/arrows-ffffff.png +0 -0
- data/base/app/assets/images/btn/bold.png +0 -0
- data/base/app/assets/images/btn/btn_account.png +0 -0
- data/base/app/assets/images/btn/btn_activities.png +0 -0
- data/base/app/assets/images/btn/btn_bookmark.png +0 -0
- data/base/app/assets/images/btn/btn_browse.png +0 -0
- data/base/app/assets/images/btn/btn_check.png +0 -0
- data/base/app/assets/images/btn/btn_close.png +0 -0
- data/base/app/assets/images/btn/btn_comment.png +0 -0
- data/base/app/assets/images/btn/btn_comment_add.png +0 -0
- data/base/app/assets/images/btn/btn_config.png +0 -0
- data/base/app/assets/images/btn/btn_date.png +0 -0
- data/base/app/assets/images/btn/btn_delete.png +0 -0
- data/base/app/assets/images/btn/btn_down.png +0 -0
- data/base/app/assets/images/btn/btn_edit.png +0 -0
- data/base/app/assets/images/btn/btn_exit.png +0 -0
- data/base/app/assets/images/btn/btn_find.png +0 -0
- data/base/app/assets/images/btn/btn_follow.png +0 -0
- data/base/app/assets/images/btn/btn_foward.png +0 -0
- data/base/app/assets/images/btn/btn_friend.png +0 -0
- data/base/app/assets/images/btn/btn_gallery.png +0 -0
- data/base/app/assets/images/btn/btn_group.png +0 -0
- data/base/app/assets/images/btn/btn_help.png +0 -0
- data/base/app/assets/images/btn/btn_home.png +0 -0
- data/base/app/assets/images/btn/btn_inbox.png +0 -0
- data/base/app/assets/images/btn/btn_info.png +0 -0
- data/base/app/assets/images/btn/btn_invitation.png +0 -0
- data/base/app/assets/images/btn/btn_like.png +0 -0
- data/base/app/assets/images/btn/btn_next.png +0 -0
- data/base/app/assets/images/btn/btn_notification.png +0 -0
- data/base/app/assets/images/btn/btn_notification_delete.png +0 -0
- data/base/app/assets/images/btn/btn_notification_read.png +0 -0
- data/base/app/assets/images/btn/btn_notifications.png +0 -0
- data/base/app/assets/images/btn/btn_page_link.png +0 -0
- data/base/app/assets/images/btn/btn_partner.png +0 -0
- data/base/app/assets/images/btn/btn_photo.png +0 -0
- data/base/app/assets/images/btn/btn_play.png +0 -0
- data/base/app/assets/images/btn/btn_printer.png +0 -0
- data/base/app/assets/images/btn/btn_profile.png +0 -0
- data/base/app/assets/images/btn/btn_rank.png +0 -0
- data/base/app/assets/images/btn/btn_read.png +0 -0
- data/base/app/assets/images/btn/btn_send.png +0 -0
- data/base/app/assets/images/btn/btn_spam.png +0 -0
- data/base/app/assets/images/btn/btn_star.png +0 -0
- data/base/app/assets/images/btn/btn_tag.png +0 -0
- data/base/app/assets/images/btn/btn_write.png +0 -0
- data/base/app/assets/images/btn/cheese_close_edit.png +0 -0
- data/base/app/assets/images/btn/cheese_edit.png +0 -0
- data/base/app/assets/images/btn/close.png +0 -0
- data/base/app/assets/images/btn/date.png +0 -0
- data/base/app/assets/images/btn/delete.png +0 -0
- data/base/app/assets/images/btn/download.png +0 -0
- data/base/app/assets/images/btn/flag.png +0 -0
- data/base/app/assets/images/btn/group_left.png +0 -0
- data/base/app/assets/images/btn/group_right.png +0 -0
- data/base/app/assets/images/btn/header_notifications.png +0 -0
- data/base/app/assets/images/btn/index_71.png +0 -0
- data/base/app/assets/images/btn/info.png +0 -0
- data/base/app/assets/images/btn/italic.png +0 -0
- data/base/app/assets/images/btn/like.png +0 -0
- data/base/app/assets/images/btn/message_conversation.png +0 -0
- data/base/app/assets/images/btn/message_inbox.png +0 -0
- data/base/app/assets/images/btn/message_new.png +0 -0
- data/base/app/assets/images/btn/message_sentbox.png +0 -0
- data/base/app/assets/images/btn/message_trash.png +0 -0
- data/base/app/assets/images/btn/new.png +0 -0
- data/base/app/assets/images/btn/next_conference.png +0 -0
- data/base/app/assets/images/btn/next_space.png +0 -0
- data/base/app/assets/images/btn/nolike.png +0 -0
- data/base/app/assets/images/btn/notifications.png +0 -0
- data/base/app/assets/images/btn/permission_negative.png +0 -0
- data/base/app/assets/images/btn/permission_positive.png +0 -0
- data/base/app/assets/images/btn/pixel.png +0 -0
- data/base/app/assets/images/btn/point_blue.png +0 -0
- data/base/app/assets/images/btn/point_gray.png +0 -0
- data/base/app/assets/images/btn/post.png +0 -0
- data/base/app/assets/images/btn/public.png +0 -0
- data/base/app/assets/images/btn/restricted.png +0 -0
- data/base/app/assets/images/btn/search.png +0 -0
- data/base/app/assets/images/btn/search_icon.png +0 -0
- data/base/app/assets/images/btn/shadow.png +0 -0
- data/base/app/assets/images/btn/share.png +0 -0
- data/base/app/assets/images/btn/subtime.png +0 -0
- data/base/app/assets/images/btn/success.png +0 -0
- data/base/app/assets/images/btn/tag_cloud.png +0 -0
- data/base/app/assets/images/btn/twitter-follow-icon.png +0 -0
- data/base/app/assets/images/btn/twitter.png +0 -0
- data/base/app/assets/images/btn/uno.png +0 -0
- data/base/app/assets/images/btn/viewer.png +0 -0
- data/base/app/assets/images/btn/warning.png +0 -0
- data/base/app/assets/images/flags/de.png +0 -0
- data/base/app/assets/images/flags/fr.png +0 -0
- data/base/app/assets/images/flags/hu.png +0 -0
- data/base/app/assets/images/flags/nl.png +0 -0
- data/base/app/assets/images/frontpage/collaborate.png +0 -0
- data/base/app/assets/images/frontpage/comments.png +0 -0
- data/base/app/assets/images/frontpage/green_sq.png +0 -0
- data/base/app/assets/images/frontpage/meet.png +0 -0
- data/base/app/assets/images/frontpage/people.png +0 -0
- data/base/app/assets/images/frontpage/purple_sq.png +0 -0
- data/base/app/assets/images/frontpage/right_comments.gif +0 -0
- data/base/app/assets/images/frontpage/right_conference.png +0 -0
- data/base/app/assets/images/frontpage/right_organizers.gif +0 -0
- data/base/app/assets/images/frontpage/right_people.gif +0 -0
- data/base/app/assets/images/frontpage/right_social.gif +0 -0
- data/base/app/assets/images/frontpage/right_tags.gif +0 -0
- data/base/app/assets/images/frontpage/right_webcam.gif +0 -0
- data/base/app/assets/images/frontpage/share.png +0 -0
- data/base/app/assets/images/frontpage/tags.png +0 -0
- data/base/app/assets/images/frontpage/yellow_sq.png +0 -0
- data/base/app/assets/images/icon_checkbox.png +0 -0
- data/base/app/assets/images/left.png +0 -0
- data/base/app/assets/images/lightbox-blank.gif +0 -0
- data/base/app/assets/images/lightbox-btn-close.gif +0 -0
- data/base/app/assets/images/lightbox-btn-next.gif +0 -0
- data/base/app/assets/images/lightbox-btn-prev.gif +0 -0
- data/base/app/assets/images/lightbox-ico-loading.gif +0 -0
- data/base/app/assets/images/loader.gif +0 -0
- data/base/app/assets/images/loading.gif +0 -0
- data/base/app/assets/images/logo.png +0 -0
- data/base/app/assets/images/logos/actor/group.png +0 -0
- data/base/app/assets/images/logos/actor/user.png +0 -0
- data/base/app/assets/images/logos/contact/group.png +0 -0
- data/base/app/assets/images/logos/contact/user.png +0 -0
- data/base/app/assets/images/logos/profile/group.png +0 -0
- data/base/app/assets/images/logos/profile/user.png +0 -0
- data/base/app/assets/images/logos/representation/group.png +0 -0
- data/base/app/assets/images/logos/representation/user.png +0 -0
- data/base/app/assets/images/mini-loading.gif +0 -0
- data/base/app/assets/images/right.png +0 -0
- data/base/app/assets/images/tipsy.gif +0 -0
- data/base/app/assets/javascripts/activities.js.erb +0 -49
- data/base/app/assets/javascripts/activities_security_chosen-modified.jquery.js +0 -767
- data/base/app/assets/javascripts/cheesecake.js +0 -6
- data/base/app/assets/javascripts/contacts.js +0 -4
- data/base/app/assets/javascripts/conversations.js +0 -3
- data/base/app/assets/javascripts/groups.js +0 -5
- data/base/app/assets/javascripts/invitations.js +0 -8
- data/base/app/assets/javascripts/jquery.ad-gallery.js +0 -850
- data/base/app/assets/javascripts/jquery.ad-gallery.pack.js +0 -10
- data/base/app/assets/javascripts/layouts.js +0 -20
- data/base/app/assets/javascripts/messages.js +0 -4
- data/base/app/assets/javascripts/preloader.js +0 -6
- data/base/app/assets/javascripts/profiles.js +0 -9
- data/base/app/assets/javascripts/relation_customs.js +0 -32
- data/base/app/assets/javascripts/search.js.erb +0 -3
- data/base/app/assets/javascripts/settings.js +0 -14
- data/base/app/assets/javascripts/social_stream.action.js +0 -40
- data/base/app/assets/javascripts/social_stream.activity.js +0 -16
- data/base/app/assets/javascripts/social_stream.comments.js +0 -95
- data/base/app/assets/javascripts/social_stream.follow.js +0 -23
- data/base/app/assets/javascripts/social_stream.objects.js +0 -23
- data/base/app/assets/javascripts/social_stream.search.js.erb +0 -29
- data/base/app/assets/javascripts/social_stream.timeline.js +0 -79
- data/base/app/assets/javascripts/social_stream.toolbar.js +0 -41
- data/base/app/assets/javascripts/social_stream.wall.js.erb +0 -159
- data/base/app/assets/javascripts/ties.js +0 -67
- data/base/app/assets/javascripts/users.js +0 -2
- data/base/app/assets/stylesheets/_colors.scss +0 -26
- data/base/app/assets/stylesheets/activities.css.scss.erb +0 -101
- data/base/app/assets/stylesheets/base.css.scss +0 -257
- data/base/app/assets/stylesheets/cheesecake.css.scss +0 -372
- data/base/app/assets/stylesheets/contacts.css.scss +0 -100
- data/base/app/assets/stylesheets/conversations.css +0 -4
- data/base/app/assets/stylesheets/footer.css.scss +0 -22
- data/base/app/assets/stylesheets/frontpage.css.scss +0 -70
- data/base/app/assets/stylesheets/groups.css +0 -4
- data/base/app/assets/stylesheets/header.css.scss +0 -205
- data/base/app/assets/stylesheets/home.css.scss +0 -53
- data/base/app/assets/stylesheets/images/add-policy.png +0 -0
- data/base/app/assets/stylesheets/images/fcbkcomplete/close.gif +0 -0
- data/base/app/assets/stylesheets/images/loading.gif +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/base/app/assets/stylesheets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/base/app/assets/stylesheets/images/ui-icons_222222_256x240.png +0 -0
- data/base/app/assets/stylesheets/images/ui-icons_2e83ff_256x240.png +0 -0
- data/base/app/assets/stylesheets/images/ui-icons_454545_256x240.png +0 -0
- data/base/app/assets/stylesheets/images/ui-icons_888888_256x240.png +0 -0
- data/base/app/assets/stylesheets/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/base/app/assets/stylesheets/invitations.css +0 -3
- data/base/app/assets/stylesheets/location.css.scss +0 -38
- data/base/app/assets/stylesheets/menu.css.scss +0 -19
- data/base/app/assets/stylesheets/messages.css.scss +0 -141
- data/base/app/assets/stylesheets/opa75.png +0 -0
- data/base/app/assets/stylesheets/profiles.css +0 -4
- data/base/app/assets/stylesheets/relation_customs.css.scss +0 -233
- data/base/app/assets/stylesheets/search.css.scss +0 -165
- data/base/app/assets/stylesheets/settings.css +0 -21
- data/base/app/assets/stylesheets/social_stream-base.css.scss +0 -13
- data/base/app/assets/stylesheets/ties.css.scss +0 -12
- data/base/app/assets/stylesheets/toolbar.css +0 -10
- data/base/app/assets/stylesheets/users.css +0 -4
- data/base/app/controllers/cheesecake_controller.rb +0 -21
- data/base/app/helpers/settings_helper.rb +0 -9
- data/base/app/helpers/sidebar_helper.rb +0 -10
- data/base/app/helpers/toolbar_helper.rb +0 -93
- data/base/app/views/activities/_options.html.erb +0 -32
- data/base/app/views/activities/_wall.html.erb +0 -11
- data/base/app/views/activities/index.js.erb +0 -3
- data/base/app/views/actors/_actor_cheesecake.html.erb +0 -24
- data/base/app/views/cheesecake/_cheesecake.html.erb +0 -224
- data/base/app/views/cheesecake/_index.html.erb +0 -141
- data/base/app/views/cheesecake/_sector_form.html.erb +0 -269
- data/base/app/views/cheesecake/index.html.erb +0 -12
- data/base/app/views/cheesecake/update.js.erb +0 -3
- data/base/app/views/comments/_comment_focus_search.html.erb +0 -37
- data/base/app/views/comments/_comment_global_search.html.erb +0 -18
- data/base/app/views/comments/_comment_with_details.html.erb +0 -3
- data/base/app/views/contacts/_index.html.erb +0 -40
- data/base/app/views/contacts/_suggestions_and_pendings.html.erb +0 -6
- data/base/app/views/contacts/edit.html.erb +0 -6
- data/base/app/views/contacts/index.js.erb +0 -3
- data/base/app/views/conversations/_conversations.html.erb +0 -5
- data/base/app/views/frontpage/_caracteristics.html.erb +0 -23
- data/base/app/views/frontpage/_social_networks.html.erb +0 -3
- data/base/app/views/groups/_group_focus_search.html.erb +0 -2
- data/base/app/views/groups/_group_global_search.html.erb +0 -2
- data/base/app/views/groups/_group_with_details.html.erb +0 -2
- data/base/app/views/groups/_tag_cloud.html.erb +0 -25
- data/base/app/views/groups/index.html.erb +0 -57
- data/base/app/views/home/_groups.html.erb +0 -24
- data/base/app/views/layouts/_devise_style.html.erb +0 -30
- data/base/app/views/layouts/_flash.html.erb +0 -5
- data/base/app/views/layouts/_representation.html.erb +0 -28
- data/base/app/views/layouts/_search.html.erb +0 -62
- data/base/app/views/layouts/frontpage.html.erb +0 -43
- data/base/app/views/message_mailer/new_message_email.html.erb +0 -36
- data/base/app/views/message_mailer/reply_message_email.html.erb +0 -36
- data/base/app/views/notification_mailer/new_notification_email.html.erb +0 -36
- data/base/app/views/objects/_new_activity.html.erb +0 -8
- data/base/app/views/posts/_new_activity.html.erb +0 -1
- data/base/app/views/posts/_new_activity_fields.erb +0 -1
- data/base/app/views/posts/_post_focus_search.html.erb +0 -37
- data/base/app/views/posts/_post_global_search.html.erb +0 -18
- data/base/app/views/posts/_post_with_details.html.erb +0 -3
- data/base/app/views/profiles/_contact.html.erb +0 -81
- data/base/app/views/profiles/edit.html.erb +0 -205
- data/base/app/views/relation/customs/_update_rules.js.erb +0 -5
- data/base/app/views/search/_form.html.erb +0 -33
- data/base/app/views/search/_header_search.html.erb +0 -16
- data/base/app/views/subjects/_contacts.html.erb +0 -18
- data/base/app/views/subjects/_subject_with_details.html.erb +0 -17
- data/base/app/views/users/_groups.html.erb +0 -22
- data/base/app/views/users/_user_focus_search.html.erb +0 -2
- data/base/app/views/users/_user_global_search.html.erb +0 -2
- data/base/app/views/users/_user_with_details.html.erb +0 -2
- data/base/app/views/users/index.html.erb +0 -41
- data/base/config/locales/de.yml +0 -552
- data/base/config/locales/fr.yml +0 -550
- data/base/config/locales/hu.yml +0 -551
- data/base/config/locales/nl.yml +0 -551
- data/base/config/locales/rails.de.yml +0 -203
- data/base/config/locales/rails.fr.yml +0 -222
- data/base/config/locales/rails.hu.yml +0 -199
- data/base/config/locales/rails.nl.yml +0 -199
- data/base/db/migrate/20120403175913_create_activity_object_audiences.rb +0 -34
- data/base/db/migrate/20120411132550_add_visit_count_to_activity_object.rb +0 -9
- data/base/db/migrate/20120411151413_relation_public_permissions.rb +0 -8
- data/base/db/migrate/20120526171311_remove_activity_channels.rb +0 -35
- data/base/db/migrate/20120621135650_add_comment_count_to_activity_object.rb +0 -24
- data/base/db/migrate/20120627115244_fix_activity_object_follower_count.rb +0 -17
- data/base/db/migrate/20121031111857_create_sites.rb +0 -9
- data/base/db/migrate/20130114114602_add_missing_activivity_indexes.rb +0 -17
- data/base/lib/social_stream/views/settings/base.rb +0 -48
- data/base/lib/social_stream/views/sidebar/base.rb +0 -27
- data/base/lib/social_stream/views/toolbar/base.rb +0 -149
- data/base/spec/dummy/.gitignore +0 -5
- data/base/spec/dummy/Rakefile +0 -7
- data/base/spec/dummy/app/assets/javascripts/application.js +0 -8
- data/base/spec/dummy/app/assets/stylesheets/application.css +0 -8
- data/base/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/base/spec/dummy/config.ru +0 -4
- data/base/spec/dummy/config/application.rb +0 -44
- data/base/spec/dummy/config/boot.rb +0 -10
- data/base/spec/dummy/config/database.yml +0 -40
- data/base/spec/dummy/config/environment.rb +0 -5
- data/base/spec/dummy/config/environments/development.rb +0 -30
- data/base/spec/dummy/config/environments/production.rb +0 -54
- data/base/spec/dummy/config/environments/test.rb +0 -40
- data/base/spec/dummy/config/environments/test_pg.rb +0 -35
- data/base/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/base/spec/dummy/config/initializers/devise.rb +0 -214
- data/base/spec/dummy/config/initializers/inflections.rb +0 -10
- data/base/spec/dummy/config/initializers/mailboxer.rb +0 -8
- data/base/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/base/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/base/spec/dummy/config/initializers/session_store.rb +0 -8
- data/base/spec/dummy/config/initializers/social_stream.rb +0 -47
- data/base/spec/dummy/config/initializers/wrap_parameters.rb +0 -12
- data/base/spec/dummy/config/locales/en.yml +0 -5
- data/base/spec/dummy/config/navigation.rb +0 -4
- data/base/spec/dummy/config/relations.yml +0 -39
- data/base/spec/dummy/config/routes.rb +0 -60
- data/base/spec/dummy/db/schema.rb +0 -5
- data/base/spec/dummy/db/seeds.rb +0 -8
- data/base/spec/dummy/public/404.html +0 -26
- data/base/spec/dummy/public/422.html +0 -26
- data/base/spec/dummy/public/500.html +0 -26
- data/base/spec/dummy/public/favicon.ico +0 -0
- data/base/spec/dummy/script/rails +0 -6
- data/base/spec/models/activity_wall_spec.rb +0 -96
- data/base/vendor/assets/javascripts/ajax.paginate.js +0 -46
- data/base/vendor/assets/javascripts/jquery.cleditor.min.js +0 -31
- data/base/vendor/assets/javascripts/jquery.fcbkcomplete.js +0 -553
- data/base/vendor/assets/javascripts/jquery.lightbox-with-resize-plugin.js +0 -533
- data/base/vendor/assets/javascripts/jquery.livequery.js +0 -250
- data/base/vendor/assets/javascripts/jquery.screw.js +0 -186
- data/documents/app/assets/javascripts/social_stream.audio.js.erb +0 -25
- data/documents/app/assets/javascripts/social_stream.repository.js.erb +0 -27
- data/documents/app/assets/javascripts/social_stream.video.js.erb +0 -39
- data/documents/app/assets/stylesheets/documents.css.scss +0 -302
- data/documents/app/assets/stylesheets/show.css.scss +0 -111
- data/documents/app/assets/stylesheets/social_stream-documents.css +0 -6
- data/documents/app/views/audios/_audio_focus_search.html.erb +0 -3
- data/documents/app/views/audios/_audio_global_search.html.erb +0 -3
- data/documents/app/views/audios/_audio_with_details.html.erb +0 -3
- data/documents/app/views/common_documents/_document_info.html.erb +0 -48
- data/documents/app/views/common_documents/_edit_form.html.erb +0 -57
- data/documents/app/views/common_documents/_headers.html.erb +0 -77
- data/documents/app/views/documents/_document_focus_search.html.erb +0 -2
- data/documents/app/views/documents/_document_global_search.html.erb +0 -2
- data/documents/app/views/documents/_document_with_details.html.erb +0 -13
- data/documents/app/views/documents/_new_activity_fields.html.erb +0 -15
- data/documents/app/views/pictures/_picture_focus_search.html.erb +0 -2
- data/documents/app/views/pictures/_picture_global_search.html.erb +0 -2
- data/documents/app/views/pictures/_picture_with_details.html.erb +0 -2
- data/documents/app/views/videos/_video_focus_search.html.erb +0 -2
- data/documents/app/views/videos/_video_global_search.html.erb +0 -2
- data/documents/app/views/videos/_video_with_details.html.erb +0 -2
- data/documents/config/locales/de.yml +0 -78
- data/documents/config/locales/fr.yml +0 -78
- data/documents/config/locales/hu.yml +0 -77
- data/documents/config/locales/nl.yml +0 -78
- data/documents/lib/social_stream/views/toolbar/documents.rb +0 -28
- data/documents/lib/tasks/db/populate_documents.rake +0 -19
- data/documents/spec/dummy/.gitignore +0 -1
- data/documents/spec/dummy/Rakefile +0 -7
- data/documents/spec/dummy/app/assets/javascripts/application.js +0 -9
- data/documents/spec/dummy/app/assets/stylesheets/application.css +0 -7
- data/documents/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/documents/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/documents/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/documents/spec/dummy/config.ru +0 -4
- data/documents/spec/dummy/config/application.rb +0 -45
- data/documents/spec/dummy/config/boot.rb +0 -10
- data/documents/spec/dummy/config/database.yml +0 -25
- data/documents/spec/dummy/config/environment.rb +0 -5
- data/documents/spec/dummy/config/environments/development.rb +0 -30
- data/documents/spec/dummy/config/environments/production.rb +0 -60
- data/documents/spec/dummy/config/environments/test.rb +0 -39
- data/documents/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/documents/spec/dummy/config/initializers/devise.rb +0 -176
- data/documents/spec/dummy/config/initializers/inflections.rb +0 -10
- data/documents/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/documents/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/documents/spec/dummy/config/initializers/session_store.rb +0 -8
- data/documents/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/documents/spec/dummy/config/locales/en.yml +0 -5
- data/documents/spec/dummy/config/relations.yml +0 -39
- data/documents/spec/dummy/config/routes.rb +0 -60
- data/documents/spec/dummy/db/schema.rb +0 -6
- data/documents/spec/dummy/public/404.html +0 -26
- data/documents/spec/dummy/public/422.html +0 -26
- data/documents/spec/dummy/public/500.html +0 -26
- data/documents/spec/dummy/public/javascripts/application.js +0 -2
- data/documents/spec/dummy/public/javascripts/controls.js +0 -965
- data/documents/spec/dummy/public/javascripts/dragdrop.js +0 -974
- data/documents/spec/dummy/public/javascripts/effects.js +0 -1123
- data/documents/spec/dummy/public/javascripts/prototype.js +0 -6001
- data/documents/spec/dummy/public/javascripts/rails.js +0 -191
- data/documents/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/documents/spec/dummy/script/rails +0 -6
- data/events/app/assets/javascripts/social_stream.calendar.js.erb +0 -104
- data/events/app/assets/javascripts/social_stream.event.js +0 -55
- data/events/app/assets/javascripts/social_stream.events.action.js +0 -31
- data/events/app/assets/javascripts/social_stream.events.poster.js +0 -22
- data/events/app/assets/stylesheets/events.css.scss +0 -218
- data/events/app/assets/stylesheets/social_stream-events.css +0 -3
- data/events/app/decorators/social_stream/base/document_decorator.rb +0 -3
- data/events/app/models/activity_object_property/poster.rb +0 -2
- data/events/app/views/events/_event_date.html.erb +0 -20
- data/events/app/views/events/_event_date_sidebar.html.erb +0 -14
- data/events/app/views/events/_event_details.html.erb +0 -21
- data/events/app/views/events/_event_poster.html.erb +0 -9
- data/events/app/views/events/_sidebar_calendar.html.erb +0 -45
- data/events/app/views/rooms/_settings.html.erb +0 -23
- data/events/lib/social_stream/events/models/document.rb +0 -26
- data/events/lib/social_stream/views/settings/events.rb +0 -18
- data/events/lib/social_stream/views/sidebar/events.rb +0 -17
- data/linkser/app/assets/javascripts/linkser.js.erb +0 -82
- data/linkser/app/assets/stylesheets/linkser.css.scss +0 -69
- data/linkser/app/assets/stylesheets/social_stream-linkser.css +0 -3
- data/linkser/config/locales/de.yml +0 -14
- data/linkser/config/locales/fr.yml +0 -14
- data/linkser/config/locales/hu.yml +0 -14
- data/linkser/config/locales/nl.yml +0 -14
- data/linkser/lib/tasks/db/populate_links.rake +0 -16
- data/linkser/spec/dummy/Rakefile +0 -7
- data/linkser/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/linkser/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/linkser/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/linkser/spec/dummy/config.ru +0 -4
- data/linkser/spec/dummy/config/application.rb +0 -45
- data/linkser/spec/dummy/config/boot.rb +0 -10
- data/linkser/spec/dummy/config/database.yml +0 -22
- data/linkser/spec/dummy/config/environment.rb +0 -5
- data/linkser/spec/dummy/config/environments/development.rb +0 -25
- data/linkser/spec/dummy/config/environments/production.rb +0 -49
- data/linkser/spec/dummy/config/environments/test.rb +0 -37
- data/linkser/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/linkser/spec/dummy/config/initializers/devise.rb +0 -172
- data/linkser/spec/dummy/config/initializers/inflections.rb +0 -10
- data/linkser/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/linkser/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/linkser/spec/dummy/config/initializers/session_store.rb +0 -8
- data/linkser/spec/dummy/config/locales/en.yml +0 -5
- data/linkser/spec/dummy/config/navigation.rb +0 -0
- data/linkser/spec/dummy/config/relations.yml +0 -39
- data/linkser/spec/dummy/config/routes.rb +0 -60
- data/linkser/spec/dummy/db/.gitkeep +0 -0
- data/linkser/spec/dummy/documents/documents/000/000/001/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/002/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/003/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/004/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/005/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/006/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/007/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/008/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/009/original.pdf +0 -157
- data/linkser/spec/dummy/documents/documents/000/000/010/original.pdf +0 -157
- data/linkser/spec/dummy/documents/pictures/000/000/011/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/011/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/011/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/012/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/012/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/012/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/013/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/013/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/013/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/014/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/014/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/014/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/015/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/015/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/015/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/016/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/016/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/016/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/017/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/017/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/017/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/018/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/018/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/018/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/019/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/019/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/019/thumb0.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/020/original.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/020/thumb.png +0 -0
- data/linkser/spec/dummy/documents/pictures/000/000/020/thumb0.png +0 -0
- data/linkser/spec/dummy/public/404.html +0 -26
- data/linkser/spec/dummy/public/422.html +0 -26
- data/linkser/spec/dummy/public/500.html +0 -26
- data/linkser/spec/dummy/public/favicon.ico +0 -0
- data/linkser/spec/dummy/public/javascripts/application.js +0 -2
- data/linkser/spec/dummy/public/javascripts/controls.js +0 -965
- data/linkser/spec/dummy/public/javascripts/dragdrop.js +0 -974
- data/linkser/spec/dummy/public/javascripts/effects.js +0 -1123
- data/linkser/spec/dummy/public/javascripts/prototype.js +0 -6001
- data/linkser/spec/dummy/public/javascripts/rails.js +0 -191
- data/linkser/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/linkser/spec/dummy/script/rails +0 -6
- data/ostatus/app/assets/images/logos/actor/remote_subject.png +0 -0
- data/ostatus/app/assets/images/logos/contact/remote_subject.png +0 -0
- data/ostatus/app/assets/images/logos/original/remote_subject.png +0 -0
- data/ostatus/app/assets/images/logos/profile/remote_subject.png +0 -0
- data/ostatus/db/migrate/20120918194708_create_actor_keys.rb +0 -18
- data/ostatus/spec/dummy/Rakefile +0 -7
- data/ostatus/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/ostatus/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/ostatus/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/ostatus/spec/dummy/config.ru +0 -4
- data/ostatus/spec/dummy/config/application.rb +0 -45
- data/ostatus/spec/dummy/config/boot.rb +0 -10
- data/ostatus/spec/dummy/config/database.yml +0 -22
- data/ostatus/spec/dummy/config/environment.rb +0 -5
- data/ostatus/spec/dummy/config/environments/development.rb +0 -26
- data/ostatus/spec/dummy/config/environments/production.rb +0 -49
- data/ostatus/spec/dummy/config/environments/test.rb +0 -35
- data/ostatus/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/ostatus/spec/dummy/config/initializers/inflections.rb +0 -10
- data/ostatus/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/ostatus/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/ostatus/spec/dummy/config/initializers/session_store.rb +0 -8
- data/ostatus/spec/dummy/config/locales/en.yml +0 -5
- data/ostatus/spec/dummy/config/routes.rb +0 -58
- data/ostatus/spec/dummy/public/404.html +0 -26
- data/ostatus/spec/dummy/public/422.html +0 -26
- data/ostatus/spec/dummy/public/500.html +0 -26
- data/ostatus/spec/dummy/public/favicon.ico +0 -0
- data/ostatus/spec/dummy/public/javascripts/application.js +0 -2
- data/ostatus/spec/dummy/public/javascripts/controls.js +0 -965
- data/ostatus/spec/dummy/public/javascripts/dragdrop.js +0 -974
- data/ostatus/spec/dummy/public/javascripts/effects.js +0 -1123
- data/ostatus/spec/dummy/public/javascripts/prototype.js +0 -6001
- data/ostatus/spec/dummy/public/javascripts/rails.js +0 -191
- data/ostatus/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/ostatus/spec/dummy/script/rails +0 -6
- data/presence/app/assets/stylesheets/TresEnRaya.css +0 -57
- data/presence/app/assets/stylesheets/chat.css.scss +0 -521
- data/presence/app/assets/stylesheets/social_stream-presence.css +0 -5
- data/presence/app/views/chat/_settings.html.erb +0 -34
- data/presence/lib/social_stream/views/settings/presence.rb +0 -20
- data/presence/lib/social_stream/views/toolbar/presence.rb +0 -28
- data/presence/spec/demo/.gitignore +0 -5
- data/presence/spec/demo/.rspec +0 -1
- data/presence/spec/demo/README +0 -261
- data/presence/spec/demo/Rakefile +0 -7
- data/presence/spec/demo/app/assets/images/rails.png +0 -0
- data/presence/spec/demo/app/assets/javascripts/application.js +0 -9
- data/presence/spec/demo/app/assets/stylesheets/application.css +0 -7
- data/presence/spec/demo/app/controllers/application_controller.rb +0 -3
- data/presence/spec/demo/app/helpers/application_helper.rb +0 -2
- data/presence/spec/demo/app/mailers/.gitkeep +0 -0
- data/presence/spec/demo/app/models/.gitkeep +0 -0
- data/presence/spec/demo/app/views/layouts/application.html.erb +0 -14
- data/presence/spec/demo/autotest/discover.rb +0 -2
- data/presence/spec/demo/config.ru +0 -4
- data/presence/spec/demo/config/application.rb +0 -41
- data/presence/spec/demo/config/boot.rb +0 -6
- data/presence/spec/demo/config/database.yml +0 -25
- data/presence/spec/demo/config/environment.rb +0 -5
- data/presence/spec/demo/config/environments/development.rb +0 -27
- data/presence/spec/demo/config/environments/production.rb +0 -54
- data/presence/spec/demo/config/environments/test.rb +0 -39
- data/presence/spec/demo/config/initializers/backtrace_silencers.rb +0 -7
- data/presence/spec/demo/config/initializers/inflections.rb +0 -10
- data/presence/spec/demo/config/initializers/mime_types.rb +0 -5
- data/presence/spec/demo/config/initializers/secret_token.rb +0 -7
- data/presence/spec/demo/config/initializers/session_store.rb +0 -8
- data/presence/spec/demo/config/initializers/wrap_parameters.rb +0 -12
- data/presence/spec/demo/config/locales/en.yml +0 -5
- data/presence/spec/demo/config/routes.rb +0 -58
- data/presence/spec/demo/db/seeds.rb +0 -7
- data/presence/spec/demo/doc/README_FOR_APP +0 -2
- data/presence/spec/demo/lib/tasks/.gitkeep +0 -0
- data/presence/spec/demo/log/.gitkeep +0 -0
- data/presence/spec/demo/public/404.html +0 -26
- data/presence/spec/demo/public/422.html +0 -26
- data/presence/spec/demo/public/500.html +0 -26
- data/presence/spec/demo/public/favicon.ico +0 -0
- data/presence/spec/demo/public/index.html +0 -241
- data/presence/spec/demo/public/robots.txt +0 -5
- data/presence/spec/demo/script/rails +0 -6
- data/presence/spec/demo/spec/spec_helper.rb +0 -27
- data/presence/spec/demo/test/fixtures/.gitkeep +0 -0
- data/presence/spec/demo/test/functional/.gitkeep +0 -0
- data/presence/spec/demo/test/integration/.gitkeep +0 -0
- data/presence/spec/demo/test/performance/browsing_test.rb +0 -12
- data/presence/spec/demo/test/test_helper.rb +0 -13
- data/presence/spec/demo/test/unit/.gitkeep +0 -0
- data/presence/spec/demo/vendor/assets/stylesheets/.gitkeep +0 -0
- data/presence/spec/demo/vendor/plugins/.gitkeep +0 -0
- data/spec/dummy/app/assets/stylesheets/application.css +0 -12
@@ -1,1123 +0,0 @@
|
|
1
|
-
// script.aculo.us effects.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
|
2
|
-
|
3
|
-
// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
|
4
|
-
// Contributors:
|
5
|
-
// Justin Palmer (http://encytemedia.com/)
|
6
|
-
// Mark Pilgrim (http://diveintomark.org/)
|
7
|
-
// Martin Bialasinki
|
8
|
-
//
|
9
|
-
// script.aculo.us is freely distributable under the terms of an MIT-style license.
|
10
|
-
// For details, see the script.aculo.us web site: http://script.aculo.us/
|
11
|
-
|
12
|
-
// converts rgb() and #xxx to #xxxxxx format,
|
13
|
-
// returns self (or first argument) if not convertable
|
14
|
-
String.prototype.parseColor = function() {
|
15
|
-
var color = '#';
|
16
|
-
if (this.slice(0,4) == 'rgb(') {
|
17
|
-
var cols = this.slice(4,this.length-1).split(',');
|
18
|
-
var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);
|
19
|
-
} else {
|
20
|
-
if (this.slice(0,1) == '#') {
|
21
|
-
if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase();
|
22
|
-
if (this.length==7) color = this.toLowerCase();
|
23
|
-
}
|
24
|
-
}
|
25
|
-
return (color.length==7 ? color : (arguments[0] || this));
|
26
|
-
};
|
27
|
-
|
28
|
-
/*--------------------------------------------------------------------------*/
|
29
|
-
|
30
|
-
Element.collectTextNodes = function(element) {
|
31
|
-
return $A($(element).childNodes).collect( function(node) {
|
32
|
-
return (node.nodeType==3 ? node.nodeValue :
|
33
|
-
(node.hasChildNodes() ? Element.collectTextNodes(node) : ''));
|
34
|
-
}).flatten().join('');
|
35
|
-
};
|
36
|
-
|
37
|
-
Element.collectTextNodesIgnoreClass = function(element, className) {
|
38
|
-
return $A($(element).childNodes).collect( function(node) {
|
39
|
-
return (node.nodeType==3 ? node.nodeValue :
|
40
|
-
((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
|
41
|
-
Element.collectTextNodesIgnoreClass(node, className) : ''));
|
42
|
-
}).flatten().join('');
|
43
|
-
};
|
44
|
-
|
45
|
-
Element.setContentZoom = function(element, percent) {
|
46
|
-
element = $(element);
|
47
|
-
element.setStyle({fontSize: (percent/100) + 'em'});
|
48
|
-
if (Prototype.Browser.WebKit) window.scrollBy(0,0);
|
49
|
-
return element;
|
50
|
-
};
|
51
|
-
|
52
|
-
Element.getInlineOpacity = function(element){
|
53
|
-
return $(element).style.opacity || '';
|
54
|
-
};
|
55
|
-
|
56
|
-
Element.forceRerendering = function(element) {
|
57
|
-
try {
|
58
|
-
element = $(element);
|
59
|
-
var n = document.createTextNode(' ');
|
60
|
-
element.appendChild(n);
|
61
|
-
element.removeChild(n);
|
62
|
-
} catch(e) { }
|
63
|
-
};
|
64
|
-
|
65
|
-
/*--------------------------------------------------------------------------*/
|
66
|
-
|
67
|
-
var Effect = {
|
68
|
-
_elementDoesNotExistError: {
|
69
|
-
name: 'ElementDoesNotExistError',
|
70
|
-
message: 'The specified DOM element does not exist, but is required for this effect to operate'
|
71
|
-
},
|
72
|
-
Transitions: {
|
73
|
-
linear: Prototype.K,
|
74
|
-
sinoidal: function(pos) {
|
75
|
-
return (-Math.cos(pos*Math.PI)/2) + .5;
|
76
|
-
},
|
77
|
-
reverse: function(pos) {
|
78
|
-
return 1-pos;
|
79
|
-
},
|
80
|
-
flicker: function(pos) {
|
81
|
-
var pos = ((-Math.cos(pos*Math.PI)/4) + .75) + Math.random()/4;
|
82
|
-
return pos > 1 ? 1 : pos;
|
83
|
-
},
|
84
|
-
wobble: function(pos) {
|
85
|
-
return (-Math.cos(pos*Math.PI*(9*pos))/2) + .5;
|
86
|
-
},
|
87
|
-
pulse: function(pos, pulses) {
|
88
|
-
return (-Math.cos((pos*((pulses||5)-.5)*2)*Math.PI)/2) + .5;
|
89
|
-
},
|
90
|
-
spring: function(pos) {
|
91
|
-
return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6));
|
92
|
-
},
|
93
|
-
none: function(pos) {
|
94
|
-
return 0;
|
95
|
-
},
|
96
|
-
full: function(pos) {
|
97
|
-
return 1;
|
98
|
-
}
|
99
|
-
},
|
100
|
-
DefaultOptions: {
|
101
|
-
duration: 1.0, // seconds
|
102
|
-
fps: 100, // 100= assume 66fps max.
|
103
|
-
sync: false, // true for combining
|
104
|
-
from: 0.0,
|
105
|
-
to: 1.0,
|
106
|
-
delay: 0.0,
|
107
|
-
queue: 'parallel'
|
108
|
-
},
|
109
|
-
tagifyText: function(element) {
|
110
|
-
var tagifyStyle = 'position:relative';
|
111
|
-
if (Prototype.Browser.IE) tagifyStyle += ';zoom:1';
|
112
|
-
|
113
|
-
element = $(element);
|
114
|
-
$A(element.childNodes).each( function(child) {
|
115
|
-
if (child.nodeType==3) {
|
116
|
-
child.nodeValue.toArray().each( function(character) {
|
117
|
-
element.insertBefore(
|
118
|
-
new Element('span', {style: tagifyStyle}).update(
|
119
|
-
character == ' ' ? String.fromCharCode(160) : character),
|
120
|
-
child);
|
121
|
-
});
|
122
|
-
Element.remove(child);
|
123
|
-
}
|
124
|
-
});
|
125
|
-
},
|
126
|
-
multiple: function(element, effect) {
|
127
|
-
var elements;
|
128
|
-
if (((typeof element == 'object') ||
|
129
|
-
Object.isFunction(element)) &&
|
130
|
-
(element.length))
|
131
|
-
elements = element;
|
132
|
-
else
|
133
|
-
elements = $(element).childNodes;
|
134
|
-
|
135
|
-
var options = Object.extend({
|
136
|
-
speed: 0.1,
|
137
|
-
delay: 0.0
|
138
|
-
}, arguments[2] || { });
|
139
|
-
var masterDelay = options.delay;
|
140
|
-
|
141
|
-
$A(elements).each( function(element, index) {
|
142
|
-
new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay }));
|
143
|
-
});
|
144
|
-
},
|
145
|
-
PAIRS: {
|
146
|
-
'slide': ['SlideDown','SlideUp'],
|
147
|
-
'blind': ['BlindDown','BlindUp'],
|
148
|
-
'appear': ['Appear','Fade']
|
149
|
-
},
|
150
|
-
toggle: function(element, effect, options) {
|
151
|
-
element = $(element);
|
152
|
-
effect = (effect || 'appear').toLowerCase();
|
153
|
-
|
154
|
-
return Effect[ Effect.PAIRS[ effect ][ element.visible() ? 1 : 0 ] ](element, Object.extend({
|
155
|
-
queue: { position:'end', scope:(element.id || 'global'), limit: 1 }
|
156
|
-
}, options || {}));
|
157
|
-
}
|
158
|
-
};
|
159
|
-
|
160
|
-
Effect.DefaultOptions.transition = Effect.Transitions.sinoidal;
|
161
|
-
|
162
|
-
/* ------------- core effects ------------- */
|
163
|
-
|
164
|
-
Effect.ScopedQueue = Class.create(Enumerable, {
|
165
|
-
initialize: function() {
|
166
|
-
this.effects = [];
|
167
|
-
this.interval = null;
|
168
|
-
},
|
169
|
-
_each: function(iterator) {
|
170
|
-
this.effects._each(iterator);
|
171
|
-
},
|
172
|
-
add: function(effect) {
|
173
|
-
var timestamp = new Date().getTime();
|
174
|
-
|
175
|
-
var position = Object.isString(effect.options.queue) ?
|
176
|
-
effect.options.queue : effect.options.queue.position;
|
177
|
-
|
178
|
-
switch(position) {
|
179
|
-
case 'front':
|
180
|
-
// move unstarted effects after this effect
|
181
|
-
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
|
182
|
-
e.startOn += effect.finishOn;
|
183
|
-
e.finishOn += effect.finishOn;
|
184
|
-
});
|
185
|
-
break;
|
186
|
-
case 'with-last':
|
187
|
-
timestamp = this.effects.pluck('startOn').max() || timestamp;
|
188
|
-
break;
|
189
|
-
case 'end':
|
190
|
-
// start effect after last queued effect has finished
|
191
|
-
timestamp = this.effects.pluck('finishOn').max() || timestamp;
|
192
|
-
break;
|
193
|
-
}
|
194
|
-
|
195
|
-
effect.startOn += timestamp;
|
196
|
-
effect.finishOn += timestamp;
|
197
|
-
|
198
|
-
if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit))
|
199
|
-
this.effects.push(effect);
|
200
|
-
|
201
|
-
if (!this.interval)
|
202
|
-
this.interval = setInterval(this.loop.bind(this), 15);
|
203
|
-
},
|
204
|
-
remove: function(effect) {
|
205
|
-
this.effects = this.effects.reject(function(e) { return e==effect });
|
206
|
-
if (this.effects.length == 0) {
|
207
|
-
clearInterval(this.interval);
|
208
|
-
this.interval = null;
|
209
|
-
}
|
210
|
-
},
|
211
|
-
loop: function() {
|
212
|
-
var timePos = new Date().getTime();
|
213
|
-
for(var i=0, len=this.effects.length;i<len;i++)
|
214
|
-
this.effects[i] && this.effects[i].loop(timePos);
|
215
|
-
}
|
216
|
-
});
|
217
|
-
|
218
|
-
Effect.Queues = {
|
219
|
-
instances: $H(),
|
220
|
-
get: function(queueName) {
|
221
|
-
if (!Object.isString(queueName)) return queueName;
|
222
|
-
|
223
|
-
return this.instances.get(queueName) ||
|
224
|
-
this.instances.set(queueName, new Effect.ScopedQueue());
|
225
|
-
}
|
226
|
-
};
|
227
|
-
Effect.Queue = Effect.Queues.get('global');
|
228
|
-
|
229
|
-
Effect.Base = Class.create({
|
230
|
-
position: null,
|
231
|
-
start: function(options) {
|
232
|
-
if (options && options.transition === false) options.transition = Effect.Transitions.linear;
|
233
|
-
this.options = Object.extend(Object.extend({ },Effect.DefaultOptions), options || { });
|
234
|
-
this.currentFrame = 0;
|
235
|
-
this.state = 'idle';
|
236
|
-
this.startOn = this.options.delay*1000;
|
237
|
-
this.finishOn = this.startOn+(this.options.duration*1000);
|
238
|
-
this.fromToDelta = this.options.to-this.options.from;
|
239
|
-
this.totalTime = this.finishOn-this.startOn;
|
240
|
-
this.totalFrames = this.options.fps*this.options.duration;
|
241
|
-
|
242
|
-
this.render = (function() {
|
243
|
-
function dispatch(effect, eventName) {
|
244
|
-
if (effect.options[eventName + 'Internal'])
|
245
|
-
effect.options[eventName + 'Internal'](effect);
|
246
|
-
if (effect.options[eventName])
|
247
|
-
effect.options[eventName](effect);
|
248
|
-
}
|
249
|
-
|
250
|
-
return function(pos) {
|
251
|
-
if (this.state === "idle") {
|
252
|
-
this.state = "running";
|
253
|
-
dispatch(this, 'beforeSetup');
|
254
|
-
if (this.setup) this.setup();
|
255
|
-
dispatch(this, 'afterSetup');
|
256
|
-
}
|
257
|
-
if (this.state === "running") {
|
258
|
-
pos = (this.options.transition(pos) * this.fromToDelta) + this.options.from;
|
259
|
-
this.position = pos;
|
260
|
-
dispatch(this, 'beforeUpdate');
|
261
|
-
if (this.update) this.update(pos);
|
262
|
-
dispatch(this, 'afterUpdate');
|
263
|
-
}
|
264
|
-
};
|
265
|
-
})();
|
266
|
-
|
267
|
-
this.event('beforeStart');
|
268
|
-
if (!this.options.sync)
|
269
|
-
Effect.Queues.get(Object.isString(this.options.queue) ?
|
270
|
-
'global' : this.options.queue.scope).add(this);
|
271
|
-
},
|
272
|
-
loop: function(timePos) {
|
273
|
-
if (timePos >= this.startOn) {
|
274
|
-
if (timePos >= this.finishOn) {
|
275
|
-
this.render(1.0);
|
276
|
-
this.cancel();
|
277
|
-
this.event('beforeFinish');
|
278
|
-
if (this.finish) this.finish();
|
279
|
-
this.event('afterFinish');
|
280
|
-
return;
|
281
|
-
}
|
282
|
-
var pos = (timePos - this.startOn) / this.totalTime,
|
283
|
-
frame = (pos * this.totalFrames).round();
|
284
|
-
if (frame > this.currentFrame) {
|
285
|
-
this.render(pos);
|
286
|
-
this.currentFrame = frame;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
},
|
290
|
-
cancel: function() {
|
291
|
-
if (!this.options.sync)
|
292
|
-
Effect.Queues.get(Object.isString(this.options.queue) ?
|
293
|
-
'global' : this.options.queue.scope).remove(this);
|
294
|
-
this.state = 'finished';
|
295
|
-
},
|
296
|
-
event: function(eventName) {
|
297
|
-
if (this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this);
|
298
|
-
if (this.options[eventName]) this.options[eventName](this);
|
299
|
-
},
|
300
|
-
inspect: function() {
|
301
|
-
var data = $H();
|
302
|
-
for(property in this)
|
303
|
-
if (!Object.isFunction(this[property])) data.set(property, this[property]);
|
304
|
-
return '#<Effect:' + data.inspect() + ',options:' + $H(this.options).inspect() + '>';
|
305
|
-
}
|
306
|
-
});
|
307
|
-
|
308
|
-
Effect.Parallel = Class.create(Effect.Base, {
|
309
|
-
initialize: function(effects) {
|
310
|
-
this.effects = effects || [];
|
311
|
-
this.start(arguments[1]);
|
312
|
-
},
|
313
|
-
update: function(position) {
|
314
|
-
this.effects.invoke('render', position);
|
315
|
-
},
|
316
|
-
finish: function(position) {
|
317
|
-
this.effects.each( function(effect) {
|
318
|
-
effect.render(1.0);
|
319
|
-
effect.cancel();
|
320
|
-
effect.event('beforeFinish');
|
321
|
-
if (effect.finish) effect.finish(position);
|
322
|
-
effect.event('afterFinish');
|
323
|
-
});
|
324
|
-
}
|
325
|
-
});
|
326
|
-
|
327
|
-
Effect.Tween = Class.create(Effect.Base, {
|
328
|
-
initialize: function(object, from, to) {
|
329
|
-
object = Object.isString(object) ? $(object) : object;
|
330
|
-
var args = $A(arguments), method = args.last(),
|
331
|
-
options = args.length == 5 ? args[3] : null;
|
332
|
-
this.method = Object.isFunction(method) ? method.bind(object) :
|
333
|
-
Object.isFunction(object[method]) ? object[method].bind(object) :
|
334
|
-
function(value) { object[method] = value };
|
335
|
-
this.start(Object.extend({ from: from, to: to }, options || { }));
|
336
|
-
},
|
337
|
-
update: function(position) {
|
338
|
-
this.method(position);
|
339
|
-
}
|
340
|
-
});
|
341
|
-
|
342
|
-
Effect.Event = Class.create(Effect.Base, {
|
343
|
-
initialize: function() {
|
344
|
-
this.start(Object.extend({ duration: 0 }, arguments[0] || { }));
|
345
|
-
},
|
346
|
-
update: Prototype.emptyFunction
|
347
|
-
});
|
348
|
-
|
349
|
-
Effect.Opacity = Class.create(Effect.Base, {
|
350
|
-
initialize: function(element) {
|
351
|
-
this.element = $(element);
|
352
|
-
if (!this.element) throw(Effect._elementDoesNotExistError);
|
353
|
-
// make this work on IE on elements without 'layout'
|
354
|
-
if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
|
355
|
-
this.element.setStyle({zoom: 1});
|
356
|
-
var options = Object.extend({
|
357
|
-
from: this.element.getOpacity() || 0.0,
|
358
|
-
to: 1.0
|
359
|
-
}, arguments[1] || { });
|
360
|
-
this.start(options);
|
361
|
-
},
|
362
|
-
update: function(position) {
|
363
|
-
this.element.setOpacity(position);
|
364
|
-
}
|
365
|
-
});
|
366
|
-
|
367
|
-
Effect.Move = Class.create(Effect.Base, {
|
368
|
-
initialize: function(element) {
|
369
|
-
this.element = $(element);
|
370
|
-
if (!this.element) throw(Effect._elementDoesNotExistError);
|
371
|
-
var options = Object.extend({
|
372
|
-
x: 0,
|
373
|
-
y: 0,
|
374
|
-
mode: 'relative'
|
375
|
-
}, arguments[1] || { });
|
376
|
-
this.start(options);
|
377
|
-
},
|
378
|
-
setup: function() {
|
379
|
-
this.element.makePositioned();
|
380
|
-
this.originalLeft = parseFloat(this.element.getStyle('left') || '0');
|
381
|
-
this.originalTop = parseFloat(this.element.getStyle('top') || '0');
|
382
|
-
if (this.options.mode == 'absolute') {
|
383
|
-
this.options.x = this.options.x - this.originalLeft;
|
384
|
-
this.options.y = this.options.y - this.originalTop;
|
385
|
-
}
|
386
|
-
},
|
387
|
-
update: function(position) {
|
388
|
-
this.element.setStyle({
|
389
|
-
left: (this.options.x * position + this.originalLeft).round() + 'px',
|
390
|
-
top: (this.options.y * position + this.originalTop).round() + 'px'
|
391
|
-
});
|
392
|
-
}
|
393
|
-
});
|
394
|
-
|
395
|
-
// for backwards compatibility
|
396
|
-
Effect.MoveBy = function(element, toTop, toLeft) {
|
397
|
-
return new Effect.Move(element,
|
398
|
-
Object.extend({ x: toLeft, y: toTop }, arguments[3] || { }));
|
399
|
-
};
|
400
|
-
|
401
|
-
Effect.Scale = Class.create(Effect.Base, {
|
402
|
-
initialize: function(element, percent) {
|
403
|
-
this.element = $(element);
|
404
|
-
if (!this.element) throw(Effect._elementDoesNotExistError);
|
405
|
-
var options = Object.extend({
|
406
|
-
scaleX: true,
|
407
|
-
scaleY: true,
|
408
|
-
scaleContent: true,
|
409
|
-
scaleFromCenter: false,
|
410
|
-
scaleMode: 'box', // 'box' or 'contents' or { } with provided values
|
411
|
-
scaleFrom: 100.0,
|
412
|
-
scaleTo: percent
|
413
|
-
}, arguments[2] || { });
|
414
|
-
this.start(options);
|
415
|
-
},
|
416
|
-
setup: function() {
|
417
|
-
this.restoreAfterFinish = this.options.restoreAfterFinish || false;
|
418
|
-
this.elementPositioning = this.element.getStyle('position');
|
419
|
-
|
420
|
-
this.originalStyle = { };
|
421
|
-
['top','left','width','height','fontSize'].each( function(k) {
|
422
|
-
this.originalStyle[k] = this.element.style[k];
|
423
|
-
}.bind(this));
|
424
|
-
|
425
|
-
this.originalTop = this.element.offsetTop;
|
426
|
-
this.originalLeft = this.element.offsetLeft;
|
427
|
-
|
428
|
-
var fontSize = this.element.getStyle('font-size') || '100%';
|
429
|
-
['em','px','%','pt'].each( function(fontSizeType) {
|
430
|
-
if (fontSize.indexOf(fontSizeType)>0) {
|
431
|
-
this.fontSize = parseFloat(fontSize);
|
432
|
-
this.fontSizeType = fontSizeType;
|
433
|
-
}
|
434
|
-
}.bind(this));
|
435
|
-
|
436
|
-
this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;
|
437
|
-
|
438
|
-
this.dims = null;
|
439
|
-
if (this.options.scaleMode=='box')
|
440
|
-
this.dims = [this.element.offsetHeight, this.element.offsetWidth];
|
441
|
-
if (/^content/.test(this.options.scaleMode))
|
442
|
-
this.dims = [this.element.scrollHeight, this.element.scrollWidth];
|
443
|
-
if (!this.dims)
|
444
|
-
this.dims = [this.options.scaleMode.originalHeight,
|
445
|
-
this.options.scaleMode.originalWidth];
|
446
|
-
},
|
447
|
-
update: function(position) {
|
448
|
-
var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position);
|
449
|
-
if (this.options.scaleContent && this.fontSize)
|
450
|
-
this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType });
|
451
|
-
this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale);
|
452
|
-
},
|
453
|
-
finish: function(position) {
|
454
|
-
if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle);
|
455
|
-
},
|
456
|
-
setDimensions: function(height, width) {
|
457
|
-
var d = { };
|
458
|
-
if (this.options.scaleX) d.width = width.round() + 'px';
|
459
|
-
if (this.options.scaleY) d.height = height.round() + 'px';
|
460
|
-
if (this.options.scaleFromCenter) {
|
461
|
-
var topd = (height - this.dims[0])/2;
|
462
|
-
var leftd = (width - this.dims[1])/2;
|
463
|
-
if (this.elementPositioning == 'absolute') {
|
464
|
-
if (this.options.scaleY) d.top = this.originalTop-topd + 'px';
|
465
|
-
if (this.options.scaleX) d.left = this.originalLeft-leftd + 'px';
|
466
|
-
} else {
|
467
|
-
if (this.options.scaleY) d.top = -topd + 'px';
|
468
|
-
if (this.options.scaleX) d.left = -leftd + 'px';
|
469
|
-
}
|
470
|
-
}
|
471
|
-
this.element.setStyle(d);
|
472
|
-
}
|
473
|
-
});
|
474
|
-
|
475
|
-
Effect.Highlight = Class.create(Effect.Base, {
|
476
|
-
initialize: function(element) {
|
477
|
-
this.element = $(element);
|
478
|
-
if (!this.element) throw(Effect._elementDoesNotExistError);
|
479
|
-
var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { });
|
480
|
-
this.start(options);
|
481
|
-
},
|
482
|
-
setup: function() {
|
483
|
-
// Prevent executing on elements not in the layout flow
|
484
|
-
if (this.element.getStyle('display')=='none') { this.cancel(); return; }
|
485
|
-
// Disable background image during the effect
|
486
|
-
this.oldStyle = { };
|
487
|
-
if (!this.options.keepBackgroundImage) {
|
488
|
-
this.oldStyle.backgroundImage = this.element.getStyle('background-image');
|
489
|
-
this.element.setStyle({backgroundImage: 'none'});
|
490
|
-
}
|
491
|
-
if (!this.options.endcolor)
|
492
|
-
this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff');
|
493
|
-
if (!this.options.restorecolor)
|
494
|
-
this.options.restorecolor = this.element.getStyle('background-color');
|
495
|
-
// init color calculations
|
496
|
-
this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
|
497
|
-
this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this));
|
498
|
-
},
|
499
|
-
update: function(position) {
|
500
|
-
this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){
|
501
|
-
return m+((this._base[i]+(this._delta[i]*position)).round().toColorPart()); }.bind(this)) });
|
502
|
-
},
|
503
|
-
finish: function() {
|
504
|
-
this.element.setStyle(Object.extend(this.oldStyle, {
|
505
|
-
backgroundColor: this.options.restorecolor
|
506
|
-
}));
|
507
|
-
}
|
508
|
-
});
|
509
|
-
|
510
|
-
Effect.ScrollTo = function(element) {
|
511
|
-
var options = arguments[1] || { },
|
512
|
-
scrollOffsets = document.viewport.getScrollOffsets(),
|
513
|
-
elementOffsets = $(element).cumulativeOffset();
|
514
|
-
|
515
|
-
if (options.offset) elementOffsets[1] += options.offset;
|
516
|
-
|
517
|
-
return new Effect.Tween(null,
|
518
|
-
scrollOffsets.top,
|
519
|
-
elementOffsets[1],
|
520
|
-
options,
|
521
|
-
function(p){ scrollTo(scrollOffsets.left, p.round()); }
|
522
|
-
);
|
523
|
-
};
|
524
|
-
|
525
|
-
/* ------------- combination effects ------------- */
|
526
|
-
|
527
|
-
Effect.Fade = function(element) {
|
528
|
-
element = $(element);
|
529
|
-
var oldOpacity = element.getInlineOpacity();
|
530
|
-
var options = Object.extend({
|
531
|
-
from: element.getOpacity() || 1.0,
|
532
|
-
to: 0.0,
|
533
|
-
afterFinishInternal: function(effect) {
|
534
|
-
if (effect.options.to!=0) return;
|
535
|
-
effect.element.hide().setStyle({opacity: oldOpacity});
|
536
|
-
}
|
537
|
-
}, arguments[1] || { });
|
538
|
-
return new Effect.Opacity(element,options);
|
539
|
-
};
|
540
|
-
|
541
|
-
Effect.Appear = function(element) {
|
542
|
-
element = $(element);
|
543
|
-
var options = Object.extend({
|
544
|
-
from: (element.getStyle('display') == 'none' ? 0.0 : element.getOpacity() || 0.0),
|
545
|
-
to: 1.0,
|
546
|
-
// force Safari to render floated elements properly
|
547
|
-
afterFinishInternal: function(effect) {
|
548
|
-
effect.element.forceRerendering();
|
549
|
-
},
|
550
|
-
beforeSetup: function(effect) {
|
551
|
-
effect.element.setOpacity(effect.options.from).show();
|
552
|
-
}}, arguments[1] || { });
|
553
|
-
return new Effect.Opacity(element,options);
|
554
|
-
};
|
555
|
-
|
556
|
-
Effect.Puff = function(element) {
|
557
|
-
element = $(element);
|
558
|
-
var oldStyle = {
|
559
|
-
opacity: element.getInlineOpacity(),
|
560
|
-
position: element.getStyle('position'),
|
561
|
-
top: element.style.top,
|
562
|
-
left: element.style.left,
|
563
|
-
width: element.style.width,
|
564
|
-
height: element.style.height
|
565
|
-
};
|
566
|
-
return new Effect.Parallel(
|
567
|
-
[ new Effect.Scale(element, 200,
|
568
|
-
{ sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }),
|
569
|
-
new Effect.Opacity(element, { sync: true, to: 0.0 } ) ],
|
570
|
-
Object.extend({ duration: 1.0,
|
571
|
-
beforeSetupInternal: function(effect) {
|
572
|
-
Position.absolutize(effect.effects[0].element);
|
573
|
-
},
|
574
|
-
afterFinishInternal: function(effect) {
|
575
|
-
effect.effects[0].element.hide().setStyle(oldStyle); }
|
576
|
-
}, arguments[1] || { })
|
577
|
-
);
|
578
|
-
};
|
579
|
-
|
580
|
-
Effect.BlindUp = function(element) {
|
581
|
-
element = $(element);
|
582
|
-
element.makeClipping();
|
583
|
-
return new Effect.Scale(element, 0,
|
584
|
-
Object.extend({ scaleContent: false,
|
585
|
-
scaleX: false,
|
586
|
-
restoreAfterFinish: true,
|
587
|
-
afterFinishInternal: function(effect) {
|
588
|
-
effect.element.hide().undoClipping();
|
589
|
-
}
|
590
|
-
}, arguments[1] || { })
|
591
|
-
);
|
592
|
-
};
|
593
|
-
|
594
|
-
Effect.BlindDown = function(element) {
|
595
|
-
element = $(element);
|
596
|
-
var elementDimensions = element.getDimensions();
|
597
|
-
return new Effect.Scale(element, 100, Object.extend({
|
598
|
-
scaleContent: false,
|
599
|
-
scaleX: false,
|
600
|
-
scaleFrom: 0,
|
601
|
-
scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
|
602
|
-
restoreAfterFinish: true,
|
603
|
-
afterSetup: function(effect) {
|
604
|
-
effect.element.makeClipping().setStyle({height: '0px'}).show();
|
605
|
-
},
|
606
|
-
afterFinishInternal: function(effect) {
|
607
|
-
effect.element.undoClipping();
|
608
|
-
}
|
609
|
-
}, arguments[1] || { }));
|
610
|
-
};
|
611
|
-
|
612
|
-
Effect.SwitchOff = function(element) {
|
613
|
-
element = $(element);
|
614
|
-
var oldOpacity = element.getInlineOpacity();
|
615
|
-
return new Effect.Appear(element, Object.extend({
|
616
|
-
duration: 0.4,
|
617
|
-
from: 0,
|
618
|
-
transition: Effect.Transitions.flicker,
|
619
|
-
afterFinishInternal: function(effect) {
|
620
|
-
new Effect.Scale(effect.element, 1, {
|
621
|
-
duration: 0.3, scaleFromCenter: true,
|
622
|
-
scaleX: false, scaleContent: false, restoreAfterFinish: true,
|
623
|
-
beforeSetup: function(effect) {
|
624
|
-
effect.element.makePositioned().makeClipping();
|
625
|
-
},
|
626
|
-
afterFinishInternal: function(effect) {
|
627
|
-
effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: oldOpacity});
|
628
|
-
}
|
629
|
-
});
|
630
|
-
}
|
631
|
-
}, arguments[1] || { }));
|
632
|
-
};
|
633
|
-
|
634
|
-
Effect.DropOut = function(element) {
|
635
|
-
element = $(element);
|
636
|
-
var oldStyle = {
|
637
|
-
top: element.getStyle('top'),
|
638
|
-
left: element.getStyle('left'),
|
639
|
-
opacity: element.getInlineOpacity() };
|
640
|
-
return new Effect.Parallel(
|
641
|
-
[ new Effect.Move(element, {x: 0, y: 100, sync: true }),
|
642
|
-
new Effect.Opacity(element, { sync: true, to: 0.0 }) ],
|
643
|
-
Object.extend(
|
644
|
-
{ duration: 0.5,
|
645
|
-
beforeSetup: function(effect) {
|
646
|
-
effect.effects[0].element.makePositioned();
|
647
|
-
},
|
648
|
-
afterFinishInternal: function(effect) {
|
649
|
-
effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle);
|
650
|
-
}
|
651
|
-
}, arguments[1] || { }));
|
652
|
-
};
|
653
|
-
|
654
|
-
Effect.Shake = function(element) {
|
655
|
-
element = $(element);
|
656
|
-
var options = Object.extend({
|
657
|
-
distance: 20,
|
658
|
-
duration: 0.5
|
659
|
-
}, arguments[1] || {});
|
660
|
-
var distance = parseFloat(options.distance);
|
661
|
-
var split = parseFloat(options.duration) / 10.0;
|
662
|
-
var oldStyle = {
|
663
|
-
top: element.getStyle('top'),
|
664
|
-
left: element.getStyle('left') };
|
665
|
-
return new Effect.Move(element,
|
666
|
-
{ x: distance, y: 0, duration: split, afterFinishInternal: function(effect) {
|
667
|
-
new Effect.Move(effect.element,
|
668
|
-
{ x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
|
669
|
-
new Effect.Move(effect.element,
|
670
|
-
{ x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
|
671
|
-
new Effect.Move(effect.element,
|
672
|
-
{ x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
|
673
|
-
new Effect.Move(effect.element,
|
674
|
-
{ x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
|
675
|
-
new Effect.Move(effect.element,
|
676
|
-
{ x: -distance, y: 0, duration: split, afterFinishInternal: function(effect) {
|
677
|
-
effect.element.undoPositioned().setStyle(oldStyle);
|
678
|
-
}}); }}); }}); }}); }}); }});
|
679
|
-
};
|
680
|
-
|
681
|
-
Effect.SlideDown = function(element) {
|
682
|
-
element = $(element).cleanWhitespace();
|
683
|
-
// SlideDown need to have the content of the element wrapped in a container element with fixed height!
|
684
|
-
var oldInnerBottom = element.down().getStyle('bottom');
|
685
|
-
var elementDimensions = element.getDimensions();
|
686
|
-
return new Effect.Scale(element, 100, Object.extend({
|
687
|
-
scaleContent: false,
|
688
|
-
scaleX: false,
|
689
|
-
scaleFrom: window.opera ? 0 : 1,
|
690
|
-
scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
|
691
|
-
restoreAfterFinish: true,
|
692
|
-
afterSetup: function(effect) {
|
693
|
-
effect.element.makePositioned();
|
694
|
-
effect.element.down().makePositioned();
|
695
|
-
if (window.opera) effect.element.setStyle({top: ''});
|
696
|
-
effect.element.makeClipping().setStyle({height: '0px'}).show();
|
697
|
-
},
|
698
|
-
afterUpdateInternal: function(effect) {
|
699
|
-
effect.element.down().setStyle({bottom:
|
700
|
-
(effect.dims[0] - effect.element.clientHeight) + 'px' });
|
701
|
-
},
|
702
|
-
afterFinishInternal: function(effect) {
|
703
|
-
effect.element.undoClipping().undoPositioned();
|
704
|
-
effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); }
|
705
|
-
}, arguments[1] || { })
|
706
|
-
);
|
707
|
-
};
|
708
|
-
|
709
|
-
Effect.SlideUp = function(element) {
|
710
|
-
element = $(element).cleanWhitespace();
|
711
|
-
var oldInnerBottom = element.down().getStyle('bottom');
|
712
|
-
var elementDimensions = element.getDimensions();
|
713
|
-
return new Effect.Scale(element, window.opera ? 0 : 1,
|
714
|
-
Object.extend({ scaleContent: false,
|
715
|
-
scaleX: false,
|
716
|
-
scaleMode: 'box',
|
717
|
-
scaleFrom: 100,
|
718
|
-
scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
|
719
|
-
restoreAfterFinish: true,
|
720
|
-
afterSetup: function(effect) {
|
721
|
-
effect.element.makePositioned();
|
722
|
-
effect.element.down().makePositioned();
|
723
|
-
if (window.opera) effect.element.setStyle({top: ''});
|
724
|
-
effect.element.makeClipping().show();
|
725
|
-
},
|
726
|
-
afterUpdateInternal: function(effect) {
|
727
|
-
effect.element.down().setStyle({bottom:
|
728
|
-
(effect.dims[0] - effect.element.clientHeight) + 'px' });
|
729
|
-
},
|
730
|
-
afterFinishInternal: function(effect) {
|
731
|
-
effect.element.hide().undoClipping().undoPositioned();
|
732
|
-
effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom});
|
733
|
-
}
|
734
|
-
}, arguments[1] || { })
|
735
|
-
);
|
736
|
-
};
|
737
|
-
|
738
|
-
// Bug in opera makes the TD containing this element expand for a instance after finish
|
739
|
-
Effect.Squish = function(element) {
|
740
|
-
return new Effect.Scale(element, window.opera ? 1 : 0, {
|
741
|
-
restoreAfterFinish: true,
|
742
|
-
beforeSetup: function(effect) {
|
743
|
-
effect.element.makeClipping();
|
744
|
-
},
|
745
|
-
afterFinishInternal: function(effect) {
|
746
|
-
effect.element.hide().undoClipping();
|
747
|
-
}
|
748
|
-
});
|
749
|
-
};
|
750
|
-
|
751
|
-
Effect.Grow = function(element) {
|
752
|
-
element = $(element);
|
753
|
-
var options = Object.extend({
|
754
|
-
direction: 'center',
|
755
|
-
moveTransition: Effect.Transitions.sinoidal,
|
756
|
-
scaleTransition: Effect.Transitions.sinoidal,
|
757
|
-
opacityTransition: Effect.Transitions.full
|
758
|
-
}, arguments[1] || { });
|
759
|
-
var oldStyle = {
|
760
|
-
top: element.style.top,
|
761
|
-
left: element.style.left,
|
762
|
-
height: element.style.height,
|
763
|
-
width: element.style.width,
|
764
|
-
opacity: element.getInlineOpacity() };
|
765
|
-
|
766
|
-
var dims = element.getDimensions();
|
767
|
-
var initialMoveX, initialMoveY;
|
768
|
-
var moveX, moveY;
|
769
|
-
|
770
|
-
switch (options.direction) {
|
771
|
-
case 'top-left':
|
772
|
-
initialMoveX = initialMoveY = moveX = moveY = 0;
|
773
|
-
break;
|
774
|
-
case 'top-right':
|
775
|
-
initialMoveX = dims.width;
|
776
|
-
initialMoveY = moveY = 0;
|
777
|
-
moveX = -dims.width;
|
778
|
-
break;
|
779
|
-
case 'bottom-left':
|
780
|
-
initialMoveX = moveX = 0;
|
781
|
-
initialMoveY = dims.height;
|
782
|
-
moveY = -dims.height;
|
783
|
-
break;
|
784
|
-
case 'bottom-right':
|
785
|
-
initialMoveX = dims.width;
|
786
|
-
initialMoveY = dims.height;
|
787
|
-
moveX = -dims.width;
|
788
|
-
moveY = -dims.height;
|
789
|
-
break;
|
790
|
-
case 'center':
|
791
|
-
initialMoveX = dims.width / 2;
|
792
|
-
initialMoveY = dims.height / 2;
|
793
|
-
moveX = -dims.width / 2;
|
794
|
-
moveY = -dims.height / 2;
|
795
|
-
break;
|
796
|
-
}
|
797
|
-
|
798
|
-
return new Effect.Move(element, {
|
799
|
-
x: initialMoveX,
|
800
|
-
y: initialMoveY,
|
801
|
-
duration: 0.01,
|
802
|
-
beforeSetup: function(effect) {
|
803
|
-
effect.element.hide().makeClipping().makePositioned();
|
804
|
-
},
|
805
|
-
afterFinishInternal: function(effect) {
|
806
|
-
new Effect.Parallel(
|
807
|
-
[ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }),
|
808
|
-
new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }),
|
809
|
-
new Effect.Scale(effect.element, 100, {
|
810
|
-
scaleMode: { originalHeight: dims.height, originalWidth: dims.width },
|
811
|
-
sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true})
|
812
|
-
], Object.extend({
|
813
|
-
beforeSetup: function(effect) {
|
814
|
-
effect.effects[0].element.setStyle({height: '0px'}).show();
|
815
|
-
},
|
816
|
-
afterFinishInternal: function(effect) {
|
817
|
-
effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle);
|
818
|
-
}
|
819
|
-
}, options)
|
820
|
-
);
|
821
|
-
}
|
822
|
-
});
|
823
|
-
};
|
824
|
-
|
825
|
-
Effect.Shrink = function(element) {
|
826
|
-
element = $(element);
|
827
|
-
var options = Object.extend({
|
828
|
-
direction: 'center',
|
829
|
-
moveTransition: Effect.Transitions.sinoidal,
|
830
|
-
scaleTransition: Effect.Transitions.sinoidal,
|
831
|
-
opacityTransition: Effect.Transitions.none
|
832
|
-
}, arguments[1] || { });
|
833
|
-
var oldStyle = {
|
834
|
-
top: element.style.top,
|
835
|
-
left: element.style.left,
|
836
|
-
height: element.style.height,
|
837
|
-
width: element.style.width,
|
838
|
-
opacity: element.getInlineOpacity() };
|
839
|
-
|
840
|
-
var dims = element.getDimensions();
|
841
|
-
var moveX, moveY;
|
842
|
-
|
843
|
-
switch (options.direction) {
|
844
|
-
case 'top-left':
|
845
|
-
moveX = moveY = 0;
|
846
|
-
break;
|
847
|
-
case 'top-right':
|
848
|
-
moveX = dims.width;
|
849
|
-
moveY = 0;
|
850
|
-
break;
|
851
|
-
case 'bottom-left':
|
852
|
-
moveX = 0;
|
853
|
-
moveY = dims.height;
|
854
|
-
break;
|
855
|
-
case 'bottom-right':
|
856
|
-
moveX = dims.width;
|
857
|
-
moveY = dims.height;
|
858
|
-
break;
|
859
|
-
case 'center':
|
860
|
-
moveX = dims.width / 2;
|
861
|
-
moveY = dims.height / 2;
|
862
|
-
break;
|
863
|
-
}
|
864
|
-
|
865
|
-
return new Effect.Parallel(
|
866
|
-
[ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }),
|
867
|
-
new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}),
|
868
|
-
new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition })
|
869
|
-
], Object.extend({
|
870
|
-
beforeStartInternal: function(effect) {
|
871
|
-
effect.effects[0].element.makePositioned().makeClipping();
|
872
|
-
},
|
873
|
-
afterFinishInternal: function(effect) {
|
874
|
-
effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); }
|
875
|
-
}, options)
|
876
|
-
);
|
877
|
-
};
|
878
|
-
|
879
|
-
Effect.Pulsate = function(element) {
|
880
|
-
element = $(element);
|
881
|
-
var options = arguments[1] || { },
|
882
|
-
oldOpacity = element.getInlineOpacity(),
|
883
|
-
transition = options.transition || Effect.Transitions.linear,
|
884
|
-
reverser = function(pos){
|
885
|
-
return 1 - transition((-Math.cos((pos*(options.pulses||5)*2)*Math.PI)/2) + .5);
|
886
|
-
};
|
887
|
-
|
888
|
-
return new Effect.Opacity(element,
|
889
|
-
Object.extend(Object.extend({ duration: 2.0, from: 0,
|
890
|
-
afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); }
|
891
|
-
}, options), {transition: reverser}));
|
892
|
-
};
|
893
|
-
|
894
|
-
Effect.Fold = function(element) {
|
895
|
-
element = $(element);
|
896
|
-
var oldStyle = {
|
897
|
-
top: element.style.top,
|
898
|
-
left: element.style.left,
|
899
|
-
width: element.style.width,
|
900
|
-
height: element.style.height };
|
901
|
-
element.makeClipping();
|
902
|
-
return new Effect.Scale(element, 5, Object.extend({
|
903
|
-
scaleContent: false,
|
904
|
-
scaleX: false,
|
905
|
-
afterFinishInternal: function(effect) {
|
906
|
-
new Effect.Scale(element, 1, {
|
907
|
-
scaleContent: false,
|
908
|
-
scaleY: false,
|
909
|
-
afterFinishInternal: function(effect) {
|
910
|
-
effect.element.hide().undoClipping().setStyle(oldStyle);
|
911
|
-
} });
|
912
|
-
}}, arguments[1] || { }));
|
913
|
-
};
|
914
|
-
|
915
|
-
Effect.Morph = Class.create(Effect.Base, {
|
916
|
-
initialize: function(element) {
|
917
|
-
this.element = $(element);
|
918
|
-
if (!this.element) throw(Effect._elementDoesNotExistError);
|
919
|
-
var options = Object.extend({
|
920
|
-
style: { }
|
921
|
-
}, arguments[1] || { });
|
922
|
-
|
923
|
-
if (!Object.isString(options.style)) this.style = $H(options.style);
|
924
|
-
else {
|
925
|
-
if (options.style.include(':'))
|
926
|
-
this.style = options.style.parseStyle();
|
927
|
-
else {
|
928
|
-
this.element.addClassName(options.style);
|
929
|
-
this.style = $H(this.element.getStyles());
|
930
|
-
this.element.removeClassName(options.style);
|
931
|
-
var css = this.element.getStyles();
|
932
|
-
this.style = this.style.reject(function(style) {
|
933
|
-
return style.value == css[style.key];
|
934
|
-
});
|
935
|
-
options.afterFinishInternal = function(effect) {
|
936
|
-
effect.element.addClassName(effect.options.style);
|
937
|
-
effect.transforms.each(function(transform) {
|
938
|
-
effect.element.style[transform.style] = '';
|
939
|
-
});
|
940
|
-
};
|
941
|
-
}
|
942
|
-
}
|
943
|
-
this.start(options);
|
944
|
-
},
|
945
|
-
|
946
|
-
setup: function(){
|
947
|
-
function parseColor(color){
|
948
|
-
if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff';
|
949
|
-
color = color.parseColor();
|
950
|
-
return $R(0,2).map(function(i){
|
951
|
-
return parseInt( color.slice(i*2+1,i*2+3), 16 );
|
952
|
-
});
|
953
|
-
}
|
954
|
-
this.transforms = this.style.map(function(pair){
|
955
|
-
var property = pair[0], value = pair[1], unit = null;
|
956
|
-
|
957
|
-
if (value.parseColor('#zzzzzz') != '#zzzzzz') {
|
958
|
-
value = value.parseColor();
|
959
|
-
unit = 'color';
|
960
|
-
} else if (property == 'opacity') {
|
961
|
-
value = parseFloat(value);
|
962
|
-
if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
|
963
|
-
this.element.setStyle({zoom: 1});
|
964
|
-
} else if (Element.CSS_LENGTH.test(value)) {
|
965
|
-
var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/);
|
966
|
-
value = parseFloat(components[1]);
|
967
|
-
unit = (components.length == 3) ? components[2] : null;
|
968
|
-
}
|
969
|
-
|
970
|
-
var originalValue = this.element.getStyle(property);
|
971
|
-
return {
|
972
|
-
style: property.camelize(),
|
973
|
-
originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0),
|
974
|
-
targetValue: unit=='color' ? parseColor(value) : value,
|
975
|
-
unit: unit
|
976
|
-
};
|
977
|
-
}.bind(this)).reject(function(transform){
|
978
|
-
return (
|
979
|
-
(transform.originalValue == transform.targetValue) ||
|
980
|
-
(
|
981
|
-
transform.unit != 'color' &&
|
982
|
-
(isNaN(transform.originalValue) || isNaN(transform.targetValue))
|
983
|
-
)
|
984
|
-
);
|
985
|
-
});
|
986
|
-
},
|
987
|
-
update: function(position) {
|
988
|
-
var style = { }, transform, i = this.transforms.length;
|
989
|
-
while(i--)
|
990
|
-
style[(transform = this.transforms[i]).style] =
|
991
|
-
transform.unit=='color' ? '#'+
|
992
|
-
(Math.round(transform.originalValue[0]+
|
993
|
-
(transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() +
|
994
|
-
(Math.round(transform.originalValue[1]+
|
995
|
-
(transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart() +
|
996
|
-
(Math.round(transform.originalValue[2]+
|
997
|
-
(transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() :
|
998
|
-
(transform.originalValue +
|
999
|
-
(transform.targetValue - transform.originalValue) * position).toFixed(3) +
|
1000
|
-
(transform.unit === null ? '' : transform.unit);
|
1001
|
-
this.element.setStyle(style, true);
|
1002
|
-
}
|
1003
|
-
});
|
1004
|
-
|
1005
|
-
Effect.Transform = Class.create({
|
1006
|
-
initialize: function(tracks){
|
1007
|
-
this.tracks = [];
|
1008
|
-
this.options = arguments[1] || { };
|
1009
|
-
this.addTracks(tracks);
|
1010
|
-
},
|
1011
|
-
addTracks: function(tracks){
|
1012
|
-
tracks.each(function(track){
|
1013
|
-
track = $H(track);
|
1014
|
-
var data = track.values().first();
|
1015
|
-
this.tracks.push($H({
|
1016
|
-
ids: track.keys().first(),
|
1017
|
-
effect: Effect.Morph,
|
1018
|
-
options: { style: data }
|
1019
|
-
}));
|
1020
|
-
}.bind(this));
|
1021
|
-
return this;
|
1022
|
-
},
|
1023
|
-
play: function(){
|
1024
|
-
return new Effect.Parallel(
|
1025
|
-
this.tracks.map(function(track){
|
1026
|
-
var ids = track.get('ids'), effect = track.get('effect'), options = track.get('options');
|
1027
|
-
var elements = [$(ids) || $$(ids)].flatten();
|
1028
|
-
return elements.map(function(e){ return new effect(e, Object.extend({ sync:true }, options)) });
|
1029
|
-
}).flatten(),
|
1030
|
-
this.options
|
1031
|
-
);
|
1032
|
-
}
|
1033
|
-
});
|
1034
|
-
|
1035
|
-
Element.CSS_PROPERTIES = $w(
|
1036
|
-
'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' +
|
1037
|
-
'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' +
|
1038
|
-
'borderRightColor borderRightStyle borderRightWidth borderSpacing ' +
|
1039
|
-
'borderTopColor borderTopStyle borderTopWidth bottom clip color ' +
|
1040
|
-
'fontSize fontWeight height left letterSpacing lineHeight ' +
|
1041
|
-
'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+
|
1042
|
-
'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' +
|
1043
|
-
'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' +
|
1044
|
-
'right textIndent top width wordSpacing zIndex');
|
1045
|
-
|
1046
|
-
Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;
|
1047
|
-
|
1048
|
-
String.__parseStyleElement = document.createElement('div');
|
1049
|
-
String.prototype.parseStyle = function(){
|
1050
|
-
var style, styleRules = $H();
|
1051
|
-
if (Prototype.Browser.WebKit)
|
1052
|
-
style = new Element('div',{style:this}).style;
|
1053
|
-
else {
|
1054
|
-
String.__parseStyleElement.innerHTML = '<div style="' + this + '"></div>';
|
1055
|
-
style = String.__parseStyleElement.childNodes[0].style;
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
Element.CSS_PROPERTIES.each(function(property){
|
1059
|
-
if (style[property]) styleRules.set(property, style[property]);
|
1060
|
-
});
|
1061
|
-
|
1062
|
-
if (Prototype.Browser.IE && this.include('opacity'))
|
1063
|
-
styleRules.set('opacity', this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]);
|
1064
|
-
|
1065
|
-
return styleRules;
|
1066
|
-
};
|
1067
|
-
|
1068
|
-
if (document.defaultView && document.defaultView.getComputedStyle) {
|
1069
|
-
Element.getStyles = function(element) {
|
1070
|
-
var css = document.defaultView.getComputedStyle($(element), null);
|
1071
|
-
return Element.CSS_PROPERTIES.inject({ }, function(styles, property) {
|
1072
|
-
styles[property] = css[property];
|
1073
|
-
return styles;
|
1074
|
-
});
|
1075
|
-
};
|
1076
|
-
} else {
|
1077
|
-
Element.getStyles = function(element) {
|
1078
|
-
element = $(element);
|
1079
|
-
var css = element.currentStyle, styles;
|
1080
|
-
styles = Element.CSS_PROPERTIES.inject({ }, function(results, property) {
|
1081
|
-
results[property] = css[property];
|
1082
|
-
return results;
|
1083
|
-
});
|
1084
|
-
if (!styles.opacity) styles.opacity = element.getOpacity();
|
1085
|
-
return styles;
|
1086
|
-
};
|
1087
|
-
}
|
1088
|
-
|
1089
|
-
Effect.Methods = {
|
1090
|
-
morph: function(element, style) {
|
1091
|
-
element = $(element);
|
1092
|
-
new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { }));
|
1093
|
-
return element;
|
1094
|
-
},
|
1095
|
-
visualEffect: function(element, effect, options) {
|
1096
|
-
element = $(element);
|
1097
|
-
var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1);
|
1098
|
-
new Effect[klass](element, options);
|
1099
|
-
return element;
|
1100
|
-
},
|
1101
|
-
highlight: function(element, options) {
|
1102
|
-
element = $(element);
|
1103
|
-
new Effect.Highlight(element, options);
|
1104
|
-
return element;
|
1105
|
-
}
|
1106
|
-
};
|
1107
|
-
|
1108
|
-
$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+
|
1109
|
-
'pulsate shake puff squish switchOff dropOut').each(
|
1110
|
-
function(effect) {
|
1111
|
-
Effect.Methods[effect] = function(element, options){
|
1112
|
-
element = $(element);
|
1113
|
-
Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);
|
1114
|
-
return element;
|
1115
|
-
};
|
1116
|
-
}
|
1117
|
-
);
|
1118
|
-
|
1119
|
-
$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each(
|
1120
|
-
function(f) { Effect.Methods[f] = Element[f]; }
|
1121
|
-
);
|
1122
|
-
|
1123
|
-
Element.addMethods(Effect.Methods);
|