Repository: ricodigo/shapado Branch: master Commit: 9e1bcf31ae1b Files: 2419 Total size: 5.8 MB Directory structure: gitextract_njqf0rgl/ ├── .gitignore ├── .gitmodules ├── .mailmap ├── .rspec ├── AUTHORS ├── COPYING ├── Gemfile ├── INSTALL_ON_PRODUCTION ├── README ├── Rakefile ├── Shapado.prj ├── Shapado.ubuntu.fra.pui ├── UPGRADE ├── VERSION ├── app/ │ ├── assets/ │ │ ├── images/ │ │ │ └── src/ │ │ │ ├── point1.xcf │ │ │ ├── point2.xcf │ │ │ ├── point3.xcf │ │ │ └── point4.xcf │ │ ├── javascripts/ │ │ │ ├── app/ │ │ │ │ ├── initializers/ │ │ │ │ │ ├── assets.js │ │ │ │ │ ├── init_dev.js │ │ │ │ │ ├── init_modernizr.js │ │ │ │ │ ├── retag.js │ │ │ │ │ ├── search.js │ │ │ │ │ ├── shapado_toolbar.js │ │ │ │ │ └── single/ │ │ │ │ │ └── question.js │ │ │ │ ├── main.js │ │ │ │ └── modules/ │ │ │ │ ├── activities.js │ │ │ │ ├── answers.js │ │ │ │ ├── app_config.js │ │ │ │ ├── authentication.js │ │ │ │ ├── comments.js │ │ │ │ ├── editor.js │ │ │ │ ├── effects.js │ │ │ │ ├── form.js │ │ │ │ ├── geo.js │ │ │ │ ├── groups.js │ │ │ │ ├── invitations.js │ │ │ │ ├── jqmath.js │ │ │ │ ├── layout_editor.js │ │ │ │ ├── loader.js │ │ │ │ ├── local_storage.js │ │ │ │ ├── members.js │ │ │ │ ├── messages.js │ │ │ │ ├── networks.js │ │ │ │ ├── notifier.js │ │ │ │ ├── pages.js │ │ │ │ ├── plans.js │ │ │ │ ├── questions.js │ │ │ │ ├── rewards.js │ │ │ │ ├── searches.js │ │ │ │ ├── shapado_ui.js │ │ │ │ ├── tags.js │ │ │ │ ├── themes.js │ │ │ │ ├── ui.js │ │ │ │ ├── updater.js │ │ │ │ ├── users.js │ │ │ │ ├── utils.js │ │ │ │ ├── votes.js │ │ │ │ ├── websocket.js │ │ │ │ └── widgets.js │ │ │ ├── application-init.js │ │ │ ├── application.js │ │ │ ├── codemirror.js │ │ │ ├── facebook_app/ │ │ │ │ ├── facebox/ │ │ │ │ │ ├── facebox.css │ │ │ │ │ └── facebox.js │ │ │ │ └── init.js │ │ │ ├── i18n/ │ │ │ │ ├── af.js │ │ │ │ ├── be-Tarask.js │ │ │ │ ├── br.js │ │ │ │ ├── ca.js │ │ │ │ ├── da.js │ │ │ │ ├── de.js │ │ │ │ ├── el.js │ │ │ │ ├── en.js │ │ │ │ ├── eo.js │ │ │ │ ├── es-419.js │ │ │ │ ├── es.js │ │ │ │ ├── fa.js │ │ │ │ ├── fi.js │ │ │ │ ├── fr.js │ │ │ │ ├── fur.js │ │ │ │ ├── gl.js │ │ │ │ ├── he.js │ │ │ │ ├── hu.js │ │ │ │ ├── ia.js │ │ │ │ ├── id.js │ │ │ │ ├── ig.js │ │ │ │ ├── it.js │ │ │ │ ├── ja.js │ │ │ │ ├── ksh.js │ │ │ │ ├── lb.js │ │ │ │ ├── mk.js │ │ │ │ ├── ms.js │ │ │ │ ├── nb.js │ │ │ │ ├── nl.js │ │ │ │ ├── pl.js │ │ │ │ ├── pms.js │ │ │ │ ├── pt-BR.js │ │ │ │ ├── pt-PT.js │ │ │ │ ├── qqq.js │ │ │ │ ├── ru.js │ │ │ │ ├── shi.js │ │ │ │ ├── si.js │ │ │ │ ├── sr-Latn.js │ │ │ │ ├── sr.js │ │ │ │ ├── sv.js │ │ │ │ ├── te.js │ │ │ │ ├── tl.js │ │ │ │ ├── uk.js │ │ │ │ ├── zh-CN.js │ │ │ │ ├── zh-HANT.js │ │ │ │ └── zh-TW.js │ │ │ ├── magent_web.js │ │ │ ├── mobile.js │ │ │ ├── payments/ │ │ │ │ ├── application.js │ │ │ │ └── payments.js │ │ │ ├── shapadocom.js │ │ │ └── vendor/ │ │ │ ├── ajax-chosen.js │ │ │ ├── highlight/ │ │ │ │ └── prettify.js │ │ │ ├── jHtmlArea.js │ │ │ ├── jquery-1.6.4.js │ │ │ ├── jquery.autovideo.js │ │ │ ├── jquery.cookie.js │ │ │ ├── jquery.droppy.js │ │ │ ├── jquery.notifyBar.js │ │ │ ├── jquery.pjax.js │ │ │ ├── jquery.smart-poll.js │ │ │ ├── jquery.textarea.js │ │ │ ├── mathscribe/ │ │ │ │ ├── jqmath-0.1.1.css │ │ │ │ ├── jqmath-0.1.1.js │ │ │ │ └── jscurry-0.1.js │ │ │ ├── polyfills/ │ │ │ │ ├── geolocation.js │ │ │ │ └── json2.js │ │ │ ├── showdown.js │ │ │ └── web-socket-js/ │ │ │ ├── FABridge.js │ │ │ ├── WebSocketMain.swf │ │ │ ├── swfobject.js │ │ │ └── web_socket.js │ │ └── stylesheets/ │ │ ├── application.css │ │ ├── codemirror.css │ │ ├── components/ │ │ │ ├── announcements.css.sass │ │ │ ├── badges.css.sass │ │ │ ├── devise.css.sass │ │ │ ├── doc.css.sass │ │ │ ├── groups.css.sass │ │ │ ├── history.css.sass │ │ │ ├── invitations.css.sass │ │ │ ├── invoices.css.sass │ │ │ ├── manage.css.sass │ │ │ ├── members.css.sass │ │ │ ├── pages.css.sass │ │ │ ├── plans.css.sass │ │ │ ├── questions.css.sass │ │ │ ├── themes.css.sass │ │ │ ├── users.css.sass │ │ │ └── widgets.css.sass │ │ ├── general.css.sass │ │ ├── helper/ │ │ │ ├── forms.css.sass │ │ │ ├── items/ │ │ │ │ ├── comments.css.sass │ │ │ │ ├── editors.css.sass │ │ │ │ ├── markdown.css.sass │ │ │ │ ├── menubar.css.sass │ │ │ │ ├── tags.css.sass │ │ │ │ └── widgets.css.sass │ │ │ ├── items.css.sass │ │ │ └── notifications.css.sass │ │ ├── mobile.css.scss │ │ ├── setup.sass │ │ ├── shapadocom.css │ │ └── structure/ │ │ ├── furniture.css.sass │ │ ├── general.css.sass │ │ └── layout.css.sass │ ├── controllers/ │ │ ├── activities_controller.rb │ │ ├── admin/ │ │ │ ├── manage_controller.rb │ │ │ └── moderate_controller.rb │ │ ├── announcements_controller.rb │ │ ├── answers_controller.rb │ │ ├── application_controller.rb │ │ ├── badges_controller.rb │ │ ├── close_requests_controller.rb │ │ ├── comments_controller.rb │ │ ├── constrains_configs_controller.rb │ │ ├── doc_controller.rb │ │ ├── facebook_controller.rb │ │ ├── flags_controller.rb │ │ ├── groups_controller.rb │ │ ├── imports_controller.rb │ │ ├── invitations_controller.rb │ │ ├── invoices_controller.rb │ │ ├── members_controller.rb │ │ ├── mobile_controller.rb │ │ ├── moderate/ │ │ │ ├── answers_controller.rb │ │ │ ├── questions_controller.rb │ │ │ └── users_controller.rb │ │ ├── open_requests_controller.rb │ │ ├── pages_controller.rb │ │ ├── public_errors_controller.rb │ │ ├── questions_controller.rb │ │ ├── reward_controller.rb │ │ ├── searches_controller.rb │ │ ├── tags_controller.rb │ │ ├── themes_controller.rb │ │ ├── users_controller.rb │ │ ├── votes_controller.rb │ │ ├── welcome_controller.rb │ │ └── widgets_controller.rb │ ├── helpers/ │ │ ├── activities_helper.rb │ │ ├── announcements_helper.rb │ │ ├── answers_helper.rb │ │ ├── application_helper.rb │ │ ├── badges_helper.rb │ │ ├── flags_helper.rb │ │ ├── groups_helper.rb │ │ ├── layout_helper.rb │ │ ├── mobile_helper.rb │ │ ├── pages_helper.rb │ │ ├── questions_helper.rb │ │ ├── searches_helper.rb │ │ ├── sessions_helper.rb │ │ ├── themes_helper.rb │ │ ├── users_helper.rb │ │ ├── votes_helper.rb │ │ └── welcome_helper.rb │ ├── middlewares/ │ │ └── dynamic_domain.rb │ ├── models/ │ │ ├── activity.rb │ │ ├── announcement.rb │ │ ├── answer.rb │ │ ├── badge.rb │ │ ├── close_request.rb │ │ ├── comment.rb │ │ ├── constrains_config.rb │ │ ├── custom_html.rb │ │ ├── draft.rb │ │ ├── export.rb │ │ ├── external_friends_list.rb │ │ ├── flag.rb │ │ ├── follow_up.rb │ │ ├── friend_list.rb │ │ ├── geo_position.rb │ │ ├── group.rb │ │ ├── group_notification_config.rb │ │ ├── group_stat.rb │ │ ├── invitation.rb │ │ ├── invoices/ │ │ │ ├── credit_card.rb │ │ │ ├── invoice.rb │ │ │ └── shapado_version.rb │ │ ├── membership.rb │ │ ├── notification_config.rb │ │ ├── notifier.rb │ │ ├── open_request.rb │ │ ├── page.rb │ │ ├── question.rb │ │ ├── read_list.rb │ │ ├── report.rb │ │ ├── reputation_stat.rb │ │ ├── reward.rb │ │ ├── search.rb │ │ ├── share.rb │ │ ├── tag.rb │ │ ├── tag_list.rb │ │ ├── theme.rb │ │ ├── user.rb │ │ ├── user_stat.rb │ │ ├── views_count.rb │ │ ├── widget_list.rb │ │ └── widgets/ │ │ ├── about_widget.rb │ │ ├── adsense_widget.rb │ │ ├── ask_question_widget.rb │ │ ├── badges_widget.rb │ │ ├── contributors_widget.rb │ │ ├── current_tags_widget.rb │ │ ├── custom_html_widget.rb │ │ ├── group_networks_widget.rb │ │ ├── groups_widget.rb │ │ ├── pages_widget.rb │ │ ├── question_badges_widget.rb │ │ ├── related_questions_widget.rb │ │ ├── share_widget.rb │ │ ├── suggestions_widget.rb │ │ ├── tag_cloud_widget.rb │ │ ├── top_groups_widget.rb │ │ ├── top_users_widget.rb │ │ ├── users_widget.rb │ │ └── widget.rb │ ├── mustache/ │ │ ├── activity_wrapper.rb │ │ ├── answer_form.rb │ │ ├── answer_wrapper.rb │ │ ├── ask_form.rb │ │ ├── badge_wrapper.rb │ │ ├── collection_wrapper.rb │ │ ├── comment_wrapper.rb │ │ ├── layouts/ │ │ │ └── theme_layout_view.rb │ │ ├── model_wrapper.rb │ │ ├── question_wrapper.rb │ │ ├── questions/ │ │ │ ├── index_view.rb │ │ │ └── show_view.rb │ │ ├── tag_wrapper.rb │ │ ├── theme_view_base.rb │ │ └── user_wrapper.rb │ └── views/ │ ├── activities/ │ │ ├── _activity.html.haml │ │ └── index.html.haml │ ├── admin/ │ │ ├── manage/ │ │ │ ├── _top_admin.html.haml │ │ │ ├── access.html.haml │ │ │ ├── actions.html.haml │ │ │ ├── appearance.html.haml │ │ │ ├── close_group.html.haml │ │ │ ├── content.html.haml │ │ │ ├── dashboard.html.haml │ │ │ ├── edit_card.html.haml │ │ │ ├── invitations.html.haml │ │ │ ├── properties/ │ │ │ │ ├── _ask_from_twitter.html.haml │ │ │ │ ├── _constrains.html.haml │ │ │ │ ├── _domain.html.haml │ │ │ │ ├── _facebook_app.html.haml │ │ │ │ ├── _general.html.haml │ │ │ │ ├── _invitations.html.haml │ │ │ │ ├── _invite.html.haml │ │ │ │ ├── _post_to_twitter.html.haml │ │ │ │ ├── _rewards.html.haml │ │ │ │ ├── _share.html.haml │ │ │ │ ├── _subtabs.html.haml │ │ │ │ ├── _tag_your_tweets.html.haml │ │ │ │ └── _twitter_account.html.haml │ │ │ ├── properties.html.haml │ │ │ ├── social.html.haml │ │ │ └── stats.html.haml │ │ └── moderate/ │ │ ├── _top_moderate.html.haml │ │ ├── index.html.haml │ │ └── subtabs/ │ │ ├── _banned.html.haml │ │ ├── _flagged_answers.html.haml │ │ ├── _flagged_questions.html.haml │ │ └── _retag.html.haml │ ├── announcements/ │ │ ├── _form.html.haml │ │ └── index.html.haml │ ├── answers/ │ │ ├── _answer.html.haml │ │ ├── _changes.html.haml │ │ ├── _diff_actions.html.haml │ │ ├── _edit_form.html.haml │ │ ├── _editor.html.haml │ │ ├── _form.html.haml │ │ ├── diff.html.haml │ │ ├── edit.html.haml │ │ ├── flag.html.haml │ │ ├── history.html.haml │ │ ├── index.html.haml │ │ ├── revert.html.haml │ │ ├── show.html.haml │ │ └── show.mobile.haml │ ├── badges/ │ │ ├── _badge.html.haml │ │ ├── _user.html.haml │ │ ├── index.html.haml │ │ └── show.html.haml │ ├── close_requests/ │ │ ├── _form.html.haml │ │ ├── _list.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ └── new.html.haml │ ├── comments/ │ │ ├── _comment.html.haml │ │ ├── _edit_form.html.haml │ │ ├── _form.html.haml │ │ ├── _form.mobile.haml │ │ ├── create.js.erb │ │ ├── edit.html.haml │ │ ├── edit.js.erb │ │ ├── show_errors.js.erb │ │ └── update.js.erb │ ├── constrains_configs/ │ │ ├── _form.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ └── new.html.haml │ ├── devise/ │ │ ├── confirmations/ │ │ │ └── new.html.haml │ │ ├── passwords/ │ │ │ ├── edit.html.haml │ │ │ └── new.html.haml │ │ ├── registrations/ │ │ │ ├── edit.html.haml │ │ │ └── new.html.haml │ │ ├── sessions/ │ │ │ ├── _login.html.haml │ │ │ ├── _openid.html.haml │ │ │ ├── new.html.haml │ │ │ └── new.mobile.haml │ │ └── unlocks/ │ │ └── new.html.haml │ ├── devise_mailer/ │ │ ├── confirmation_instructions.html.haml │ │ ├── reset_password_instructions.html.haml │ │ └── unlock_instructions.html.haml │ ├── doc/ │ │ ├── chat.html.haml │ │ ├── plans.html.haml │ │ ├── privacy.html.haml │ │ ├── privacy_en.html.haml │ │ ├── privacy_ja.html.haml │ │ ├── tos.html.haml │ │ ├── tos_en.html.haml │ │ └── tos_ja.html.haml │ ├── facebook/ │ │ ├── _answer.html.haml │ │ ├── _enable_page.html.haml │ │ ├── _form.html.haml │ │ ├── _question.html.haml │ │ ├── _user.html.haml │ │ └── index.html.haml │ ├── flags/ │ │ ├── _answer.html.haml │ │ ├── _comment.html.haml │ │ ├── _form.html.haml │ │ ├── _list.html.haml │ │ ├── _question.html.haml │ │ ├── edit.html.haml │ │ └── new.html.haml │ ├── groups/ │ │ ├── _form.html.haml │ │ ├── _group.html.haml │ │ ├── _reputation_constrains_form.haml │ │ ├── _reputation_rewards_form.haml │ │ ├── _top_grouplist.html.haml │ │ ├── check_custom_domain.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ ├── new.html.haml │ │ ├── show.html.haml │ │ └── upgrade.html.haml │ ├── imports/ │ │ ├── index.html.haml │ │ └── subtabs/ │ │ └── _need_confirmation.html.haml │ ├── invitations/ │ │ └── accept.html.haml │ ├── invoices/ │ │ ├── _form.html.haml │ │ ├── _invoice.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ ├── show.html.haml │ │ ├── success.html.haml │ │ └── upcoming.html.haml │ ├── kaminari/ │ │ ├── _first_page.mobile.haml │ │ ├── _gap.mobile.haml │ │ ├── _last_page.mobile.haml │ │ ├── _next_page.mobile.haml │ │ ├── _page.mobile.haml │ │ ├── _paginator.mobile.haml │ │ └── _prev_page.mobile.haml │ ├── layouts/ │ │ ├── application.html.haml │ │ ├── classic.html.haml │ │ ├── doc.html.haml │ │ ├── facebook.html.haml │ │ ├── invitations.html.haml │ │ ├── manage.html.haml │ │ ├── mobile.mobile.haml │ │ ├── notifications.html.haml │ │ ├── notifications.text.haml │ │ ├── plans.html.haml │ │ ├── printing.html.haml │ │ ├── sessions.html.haml │ │ ├── shapadocom.html.haml │ │ └── theme_layout.mustache.mustache │ ├── members/ │ │ ├── _member.html.haml │ │ └── index.html.haml │ ├── moderate/ │ │ ├── answers/ │ │ │ ├── _subtabs.html.haml │ │ │ ├── banning.html.haml │ │ │ └── index.html.haml │ │ ├── questions/ │ │ │ ├── _closing_form.html.haml │ │ │ ├── _opening_form.html.haml │ │ │ ├── _subtabs.html.haml │ │ │ ├── banning.html.haml │ │ │ ├── closing.html.haml │ │ │ ├── flagged.html.haml │ │ │ ├── index.html.haml │ │ │ ├── opening.html.haml │ │ │ ├── to_close.html.haml │ │ │ └── to_open.html.haml │ │ ├── shared/ │ │ │ └── _banning_form.html.haml │ │ └── users/ │ │ ├── _subtabs.html.haml │ │ └── index.html.haml │ ├── notifications/ │ │ ├── _notification_item.html.haml │ │ └── _notifications_menu.html.haml │ ├── notifier/ │ │ ├── admin_login.text.haml │ │ ├── created_flag.html.haml │ │ ├── created_flag.text.haml │ │ ├── earned_badge.html.haml │ │ ├── earned_badge.text.haml │ │ ├── favorited.html.haml │ │ ├── favorited.text.haml │ │ ├── follow.html.haml │ │ ├── follow.text.haml │ │ ├── give_advice.html.haml │ │ ├── give_advice.text.haml │ │ ├── new_answer.html.haml │ │ ├── new_answer.text.haml │ │ ├── new_comment.html.haml │ │ ├── new_comment.text.haml │ │ ├── new_feedback.text.haml │ │ ├── new_invitation.html.haml │ │ ├── new_invitation.text.haml │ │ └── report.text.haml │ ├── open_requests/ │ │ ├── _form.html.haml │ │ ├── _list.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ └── new.html.haml │ ├── pages/ │ │ ├── _form.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ ├── new.html.haml │ │ └── show.html.haml │ ├── public_errors/ │ │ ├── forbidden.html.haml │ │ ├── internal_server_error.html.haml │ │ ├── not_found.html.haml │ │ └── unprocessable_entity.html.haml │ ├── questions/ │ │ ├── _answer.html.haml │ │ ├── _answer.mobile.haml │ │ ├── _answer_toolbar.html.haml │ │ ├── _answered_by.html.haml │ │ ├── _answered_by.mobile.haml │ │ ├── _attachment_editor.html.haml │ │ ├── _attachments.html.haml │ │ ├── _changes.html.haml │ │ ├── _diff_actions.html.haml │ │ ├── _editor.html.haml │ │ ├── _followup_form.html.haml │ │ ├── _form.html.haml │ │ ├── _nav_filters.html.haml │ │ ├── _question.html.haml │ │ ├── _requests_menu.html.haml │ │ ├── _retag_form.haml │ │ ├── _reward_form.html.haml │ │ ├── _reward_info.html.haml │ │ ├── _toolbar.html.haml │ │ ├── diff.html.haml │ │ ├── edit.html.haml │ │ ├── flag.html.haml │ │ ├── history.html.haml │ │ ├── index.atom.builder │ │ ├── index.html.haml │ │ ├── index.mobile.haml │ │ ├── index.mustache.mustache │ │ ├── move.html.haml │ │ ├── new.html.haml │ │ ├── new.mobile.haml │ │ ├── retag.html.haml │ │ ├── revert.html.haml │ │ ├── share/ │ │ │ ├── _facebook.html.haml │ │ │ ├── _identica.html.haml │ │ │ ├── _linkedin.html.haml │ │ │ ├── _shapado.html.haml │ │ │ ├── _think.html.haml │ │ │ └── _twitter.html.haml │ │ ├── show.atom.builder │ │ ├── show.html.haml │ │ ├── show.mobile.haml │ │ └── show.mustache.mustache │ ├── searches/ │ │ ├── _form.html.haml │ │ ├── _question.html.haml │ │ ├── _search_box.html.haml │ │ ├── index.html.haml │ │ └── show.html.haml │ ├── shared/ │ │ ├── _action-tabs.html.haml │ │ ├── _analytics.haml │ │ ├── _content-nav.html.haml │ │ ├── _default_adsense.haml │ │ ├── _devise_links.html.haml │ │ ├── _editor.html.haml │ │ ├── _empty.html.haml │ │ ├── _error.html.haml │ │ ├── _external_widget_settings.haml │ │ ├── _flags.html.haml │ │ ├── _isolate_topbar.html.haml │ │ ├── _language_filter.html.haml │ │ ├── _login_drop_down.html.haml │ │ ├── _login_menu.html.haml │ │ ├── _manage_navigation.html.haml │ │ ├── _moderate_navigation.html.haml │ │ ├── _networks.html.haml │ │ ├── _pagination.html.haml │ │ ├── _post.html.haml │ │ ├── _posts.html.haml │ │ ├── _preferred_tags.html.haml │ │ ├── _quick_question_box.html.haml │ │ ├── _social_connect.haml │ │ ├── _suggestions.haml │ │ ├── _tag_cloud.html.haml │ │ ├── _tag_list.html.haml │ │ ├── _topbar.html.haml │ │ ├── _user-zone.html.haml:.user-zone.module.not_used │ │ ├── _user_navigation.html.haml │ │ ├── _vote_box.html.haml │ │ ├── _widgets.html.haml │ │ ├── layout/ │ │ │ ├── _activities.html.haml │ │ │ ├── _column1.html.haml │ │ │ ├── _column2.html.haml │ │ │ ├── _column3.html.haml │ │ │ ├── _css.html.haml │ │ │ ├── _feed_urls.html.haml │ │ │ ├── _feeds.html.haml │ │ │ ├── _footer.html.haml │ │ │ ├── _head.html.haml │ │ │ ├── _header.html.haml │ │ │ ├── _javascript.html.haml │ │ │ ├── _meta.html.haml │ │ │ ├── _notice.html.haml │ │ │ └── _websocket.html.haml │ │ └── mobile/ │ │ └── _header_actions.mobile.haml │ ├── tags/ │ │ ├── _form.html.haml │ │ ├── _show_json.haml │ │ ├── _tag.html.haml │ │ ├── _tag_table.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ ├── new.html.haml │ │ └── show.html.haml │ ├── themes/ │ │ ├── _form.html.haml │ │ ├── _theme.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ ├── new.html.haml │ │ └── show.html.haml │ ├── users/ │ │ ├── _anonymous_form.html.haml │ │ ├── _content-nav.html.haml │ │ ├── _content_nav.html-haml │ │ ├── _form.html.haml │ │ ├── _membership.html.haml │ │ ├── _top_user.html.haml │ │ ├── _user.html.haml │ │ ├── _user_bar.html.haml │ │ ├── _user_data.html.haml │ │ ├── _user_mini.html.haml │ │ ├── edit.html.haml │ │ ├── index.html.haml │ │ ├── new.html.haml │ │ ├── show/ │ │ │ ├── _show_json.haml │ │ │ ├── _user_activity_content.html.haml │ │ │ ├── _user_activity_filters.html.haml │ │ │ ├── _user_answers_content.html.haml │ │ │ ├── _user_answers_filters.html.haml │ │ │ ├── _user_follows_content.html.haml │ │ │ ├── _user_follows_filters.html.haml │ │ │ ├── _user_show_content.html.haml │ │ │ └── _user_show_filters.html.haml │ │ ├── show.atom.builder │ │ ├── show.html.haml │ │ ├── show.mobile.haml │ │ ├── social_connect.html.haml │ │ └── suggestions.html.haml │ ├── welcome/ │ │ ├── _feedback.haml │ │ ├── _question.html.haml │ │ ├── confirm_age.html.haml │ │ ├── feedback.html.haml │ │ ├── index.atom.builder │ │ └── index.html.haml │ ├── widgets/ │ │ ├── _about.html.haml │ │ ├── _about_settings.html.haml │ │ ├── _adbard_settings.html.haml │ │ ├── _adsense.html.haml │ │ ├── _adsense_settings.html.haml │ │ ├── _ask_question.html.haml │ │ ├── _ask_question_settings.html.haml │ │ ├── _badges.html.haml │ │ ├── _badges_settings.html.haml │ │ ├── _contributors.html.haml │ │ ├── _contributors_settings.html.haml │ │ ├── _current_tags.html.haml │ │ ├── _current_tags_settings.html.haml │ │ ├── _custom_html.html.haml │ │ ├── _custom_html_settings.html.haml │ │ ├── _form.html.haml │ │ ├── _group_networks.html.haml │ │ ├── _group_networks_settings.html.haml │ │ ├── _groups.html.haml │ │ ├── _groups_settings.html.haml │ │ ├── _header.html.haml │ │ ├── _pages.html.haml │ │ ├── _pages_settings.html.haml │ │ ├── _question_badges.html.haml │ │ ├── _question_badges_settings.html.haml │ │ ├── _related_questions.html.haml │ │ ├── _related_questions_settings.html.haml │ │ ├── _share.html.haml │ │ ├── _share_settings.html.haml │ │ ├── _suggestions.haml │ │ ├── _suggestions_settings.haml │ │ ├── _tag_cloud.html.haml │ │ ├── _tag_cloud_settings.html.haml │ │ ├── _top_groups.html.haml │ │ ├── _top_groups_settings.html.haml │ │ ├── _top_users.html.haml │ │ ├── _top_users_settings.html.haml │ │ ├── _users.html.haml │ │ ├── _users_settings.html.haml │ │ ├── _widget.html.haml │ │ ├── edit.html.haml │ │ ├── embedded.html.haml │ │ └── index.html.haml │ └── wiki/ │ ├── _changes.html.haml │ ├── _diff.html.haml │ └── _version.html.haml ├── autotest/ │ └── discover.rb ├── config/ │ ├── application.rb │ ├── assets.yml │ ├── auth_providers.yml.sample │ ├── boot.rb │ ├── compass.config │ ├── default_reputation.yml │ ├── deploy.rb.sample │ ├── environment.rb │ ├── environments/ │ │ ├── development.rb │ │ ├── production.rb │ │ ├── staging.rb │ │ └── test.rb │ ├── initializers/ │ │ ├── 00_config.rb │ │ ├── 01_locales.rb │ │ ├── 03_themes.rb │ │ ├── _mongoid_patches.rb │ │ ├── active_tab.rb │ │ ├── backtrace_silencers.rb │ │ ├── compass.rb │ │ ├── constants.rb │ │ ├── devise.rb │ │ ├── exceptions.rb │ │ ├── flash_helper.rb │ │ ├── geoip.rb │ │ ├── inflections.rb │ │ ├── kaminari_config.rb │ │ ├── logger.rb │ │ ├── mime_types.rb │ │ ├── mongo.rb │ │ ├── patches.rb │ │ ├── payments.rb │ │ └── session_store.rb │ ├── load_config.rb │ ├── locales/ │ │ ├── activities/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── de.yml │ │ │ ├── en.yml │ │ │ ├── es.yml │ │ │ ├── fi.yml │ │ │ ├── fo.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── lt.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── ne.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── qqq.yml │ │ │ ├── roa-tara.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── ta.yml │ │ │ ├── tl.yml │ │ │ ├── tr.yml │ │ │ └── zh-CN.yml │ │ ├── announcements/ │ │ │ ├── af.yml │ │ │ ├── ar.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── diq.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fo.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── haw.yml │ │ │ ├── hr.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── km.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── lt.yml │ │ │ ├── mk.yml │ │ │ ├── mr.yml │ │ │ ├── ms.yml │ │ │ ├── my.yml │ │ │ ├── nb.yml │ │ │ ├── ne.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pms.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── qqq.yml │ │ │ ├── roa-tara.yml │ │ │ ├── ru.yml │ │ │ ├── sah.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── ta.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ ├── tr.yml │ │ │ └── zh-CN.yml │ │ ├── answers/ │ │ │ ├── af.yml │ │ │ ├── ar.yml │ │ │ ├── az.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fo.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── haw.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── lt.yml │ │ │ ├── mk.yml │ │ │ ├── mr.yml │ │ │ ├── ms.yml │ │ │ ├── my.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── roa-tara.yml │ │ │ ├── ru.yml │ │ │ ├── sah.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── ta.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ ├── tr.yml │ │ │ └── zh-CN.yml │ │ ├── badges/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── cldr_lang/ │ │ │ ├── af.yml │ │ │ ├── am.yml │ │ │ ├── ar.yml │ │ │ ├── as.yml │ │ │ ├── az-Cyrl.yml │ │ │ ├── az.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── be.yml │ │ │ ├── bg.yml │ │ │ ├── bn-IN.yml │ │ │ ├── bn.yml │ │ │ ├── bo.yml │ │ │ ├── bs.yml │ │ │ ├── ca.yml │ │ │ ├── cs.yml │ │ │ ├── cy.yml │ │ │ ├── da.yml │ │ │ ├── de-CH.yml │ │ │ ├── de.yml │ │ │ ├── el-POLYTON.yml │ │ │ ├── el.yml │ │ │ ├── en-Dsrt.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── et.yml │ │ │ ├── eu.yml │ │ │ ├── fa-AF.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fil.yml │ │ │ ├── fo.yml │ │ │ ├── fr.yml │ │ │ ├── ga.yml │ │ │ ├── gl.yml │ │ │ ├── gsw.yml │ │ │ ├── gu.yml │ │ │ ├── gv.yml │ │ │ ├── ha.yml │ │ │ ├── haw.yml │ │ │ ├── he.yml │ │ │ ├── hi.yml │ │ │ ├── hr.yml │ │ │ ├── hu.yml │ │ │ ├── hy.yml │ │ │ ├── id.yml │ │ │ ├── ii.yml │ │ │ ├── is.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ka.yml │ │ │ ├── kk.yml │ │ │ ├── kl.yml │ │ │ ├── km.yml │ │ │ ├── kn.yml │ │ │ ├── ko.yml │ │ │ ├── kok.yml │ │ │ ├── kw.yml │ │ │ ├── ky.yml │ │ │ ├── ln.yml │ │ │ ├── lt.yml │ │ │ ├── lv.yml │ │ │ ├── mk.yml │ │ │ ├── ml.yml │ │ │ ├── mn.yml │ │ │ ├── mr.yml │ │ │ ├── ms.yml │ │ │ ├── mt.yml │ │ │ ├── my.yml │ │ │ ├── nb.yml │ │ │ ├── ne.yml │ │ │ ├── nl-BE.yml │ │ │ ├── nl.yml │ │ │ ├── nn.yml │ │ │ ├── nr.yml │ │ │ ├── nso.yml │ │ │ ├── om.yml │ │ │ ├── or.yml │ │ │ ├── pa-Arab.yml │ │ │ ├── pa.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-PT.yml │ │ │ ├── pt.yml │ │ │ ├── ro.yml │ │ │ ├── ru-UA.yml │ │ │ ├── ru.yml │ │ │ ├── sa.yml │ │ │ ├── se-FI.yml │ │ │ ├── si.yml │ │ │ ├── sk.yml │ │ │ ├── sl.yml │ │ │ ├── so.yml │ │ │ ├── sq.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── ss.yml │ │ │ ├── st.yml │ │ │ ├── sv.yml │ │ │ ├── sw.yml │ │ │ ├── ta.yml │ │ │ ├── te.yml │ │ │ ├── tg.yml │ │ │ ├── th.yml │ │ │ ├── ti.yml │ │ │ ├── tl.yml │ │ │ ├── tn.yml │ │ │ ├── tr.yml │ │ │ ├── trv.yml │ │ │ ├── ts.yml │ │ │ ├── uk.yml │ │ │ ├── ur.yml │ │ │ ├── uz-Arab.yml │ │ │ ├── uz-Latn.yml │ │ │ ├── uz.yml │ │ │ ├── ve.yml │ │ │ ├── vi.yml │ │ │ ├── xh.yml │ │ │ ├── yo.yml │ │ │ ├── zh-Hant-HK.yml │ │ │ ├── zh-Hant.yml │ │ │ ├── zh.yml │ │ │ └── zu.yml │ │ ├── close_requests/ │ │ │ ├── af.yml │ │ │ ├── ar.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── roa-tara.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── comments/ │ │ │ ├── af.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── diq.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pms.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── qqq.yml │ │ │ ├── roa-tara.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── ta.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── constrains_config/ │ │ │ ├── be-Tarask.yml │ │ │ ├── ca.yml │ │ │ ├── de.yml │ │ │ ├── en.yml │ │ │ ├── es.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ └── tl.yml │ │ ├── custom_html/ │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es.yml │ │ │ ├── fr.yml │ │ │ ├── ja.yml │ │ │ └── pt.yml │ │ ├── default/ │ │ │ ├── ar.yml │ │ │ ├── az.yml │ │ │ ├── bg.yml │ │ │ ├── bn-IN.yml │ │ │ ├── bs.yml │ │ │ ├── ca.yml │ │ │ ├── cs.yml │ │ │ ├── csb.yml │ │ │ ├── cy.yml │ │ │ ├── da.yml │ │ │ ├── de-AT.yml │ │ │ ├── de-CH.yml │ │ │ ├── de.yml │ │ │ ├── dsb.yml │ │ │ ├── el.yml │ │ │ ├── en-AU.yml │ │ │ ├── en-CA.yml │ │ │ ├── en-GB.yml │ │ │ ├── en-IN.yml │ │ │ ├── en-US.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es-AR.yml │ │ │ ├── es-CL.yml │ │ │ ├── es-CO.yml │ │ │ ├── es-MX.yml │ │ │ ├── es-PE.yml │ │ │ ├── es.yml │ │ │ ├── et.yml │ │ │ ├── eu.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr-CA.yml │ │ │ ├── fr-CH.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl-ES.yml │ │ │ ├── gsw.yml │ │ │ ├── he.yml │ │ │ ├── hi-IN.yml │ │ │ ├── hi.yml │ │ │ ├── hr.yml │ │ │ ├── hsb.yml │ │ │ ├── hu.yml │ │ │ ├── id.yml │ │ │ ├── is.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── kn.yml │ │ │ ├── ko.yml │ │ │ ├── lo.yml │ │ │ ├── lt.yml │ │ │ ├── lv.yml │ │ │ ├── mk.yml │ │ │ ├── mn.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── nn.yml │ │ │ ├── pl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── rm.yml │ │ │ ├── ro.yml │ │ │ ├── ru.yml │ │ │ ├── sk.yml │ │ │ ├── sl.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv-SE.yml │ │ │ ├── sw.yml │ │ │ ├── th.yml │ │ │ ├── tl.yml │ │ │ ├── tr.yml │ │ │ ├── uk.yml │ │ │ ├── vi.yml │ │ │ ├── wo.yml │ │ │ ├── zh-CN.yml │ │ │ └── zh-TW.yml │ │ ├── devise/ │ │ │ ├── devise.be-Tarask.yml │ │ │ ├── devise.br.yml │ │ │ ├── devise.ca.yml │ │ │ ├── devise.da.yml │ │ │ ├── devise.de.yml │ │ │ ├── devise.el.yml │ │ │ ├── devise.en.yml │ │ │ ├── devise.eo.yml │ │ │ ├── devise.es.yml │ │ │ ├── devise.fa.yml │ │ │ ├── devise.fi.yml │ │ │ ├── devise.fr.yml │ │ │ ├── devise.gl.yml │ │ │ ├── devise.hu.yml │ │ │ ├── devise.ia.yml │ │ │ ├── devise.it.yml │ │ │ ├── devise.ja.yml │ │ │ ├── devise.mk.yml │ │ │ ├── devise.ms.yml │ │ │ ├── devise.nl.yml │ │ │ ├── devise.pt-BR.yml │ │ │ ├── devise.pt-PT.yml │ │ │ ├── devise.ru.yml │ │ │ ├── devise.sr-Latn.yml │ │ │ ├── devise.sr.yml │ │ │ ├── devise.sv.yml │ │ │ ├── devise.tl.yml │ │ │ └── devise.zh-CN.yml │ │ ├── doc/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── errors/ │ │ │ ├── af.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── favorites/ │ │ │ ├── af.yml │ │ │ ├── az.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pms.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── qqq.yml │ │ │ ├── roa-tara.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── flags/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pms.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ ├── tt.yml │ │ │ └── zh-CN.yml │ │ ├── global/ │ │ │ ├── af.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── qqq.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── groups/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── imports/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── bs.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── he.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── lv.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pms.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── si.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── invitations/ │ │ │ ├── be-Tarask.yml │ │ │ ├── ca.yml │ │ │ ├── de.yml │ │ │ ├── en.yml │ │ │ ├── es.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ └── tl.yml │ │ ├── invoices/ │ │ │ └── en.yml │ │ ├── jobs/ │ │ │ ├── be-Tarask.yml │ │ │ ├── ca.yml │ │ │ ├── de.yml │ │ │ ├── en.yml │ │ │ ├── es.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ └── tl.yml │ │ ├── layouts/ │ │ │ ├── af.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── mailers/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pms.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── manage/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── members/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pms.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── moderate/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pms.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── notifier/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ └── tl.yml │ │ ├── open_requests/ │ │ │ ├── af.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── bs.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── pages/ │ │ │ ├── ar.yml │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── diq.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── ig.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── ku-Latn.yml │ │ │ ├── lb.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── questions/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── eo.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── qqq.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── rewards/ │ │ │ ├── be-Tarask.yml │ │ │ ├── ca.yml │ │ │ ├── de.yml │ │ │ ├── en.yml │ │ │ ├── es.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── sr-Latn.yml │ │ │ └── sr.yml │ │ ├── searches/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── pms.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── sessions/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── szl.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── shared/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pms.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── si.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── szl.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── tags/ │ │ │ └── en.yml │ │ ├── themes/ │ │ │ ├── be-Tarask.yml │ │ │ ├── ca.yml │ │ │ ├── de.yml │ │ │ ├── en.yml │ │ │ ├── es.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nl.yml │ │ │ ├── sr-Latn.yml │ │ │ └── sr.yml │ │ ├── unfavorites/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── diq.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pms.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── qqq.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── users/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── lb.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── versions/ │ │ │ └── en.yml │ │ ├── votes/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── ne.yml │ │ │ ├── nl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ ├── welcome/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── fur.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── id.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── ps.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ ├── tr.yml │ │ │ └── zh-CN.yml │ │ ├── widgets/ │ │ │ ├── be-Tarask.yml │ │ │ ├── br.yml │ │ │ ├── ca.yml │ │ │ ├── da.yml │ │ │ ├── de.yml │ │ │ ├── el.yml │ │ │ ├── en.yml │ │ │ ├── es-419.yml │ │ │ ├── es.yml │ │ │ ├── fa.yml │ │ │ ├── fi.yml │ │ │ ├── fr.yml │ │ │ ├── gl.yml │ │ │ ├── hu.yml │ │ │ ├── ia.yml │ │ │ ├── it.yml │ │ │ ├── ja.yml │ │ │ ├── ko.yml │ │ │ ├── mk.yml │ │ │ ├── ms.yml │ │ │ ├── nb.yml │ │ │ ├── nl.yml │ │ │ ├── pl.yml │ │ │ ├── pt-BR.yml │ │ │ ├── pt-PT.yml │ │ │ ├── ru.yml │ │ │ ├── sr-Latn.yml │ │ │ ├── sr.yml │ │ │ ├── sv.yml │ │ │ ├── te.yml │ │ │ ├── tl.yml │ │ │ └── zh-CN.yml │ │ └── wiki/ │ │ ├── be-Tarask.yml │ │ ├── br.yml │ │ ├── ca.yml │ │ ├── da.yml │ │ ├── de.yml │ │ ├── el.yml │ │ ├── en.yml │ │ ├── es-419.yml │ │ ├── es.yml │ │ ├── fa.yml │ │ ├── fi.yml │ │ ├── fr.yml │ │ ├── fur.yml │ │ ├── gl.yml │ │ ├── hu.yml │ │ ├── ia.yml │ │ ├── id.yml │ │ ├── it.yml │ │ ├── ja.yml │ │ ├── ko.yml │ │ ├── lb.yml │ │ ├── lt.yml │ │ ├── mk.yml │ │ ├── ms.yml │ │ ├── nb.yml │ │ ├── nl.yml │ │ ├── pl.yml │ │ ├── pms.yml │ │ ├── pt-BR.yml │ │ ├── pt-PT.yml │ │ ├── ru.yml │ │ ├── sl.yml │ │ ├── sr-Latn.yml │ │ ├── sr.yml │ │ ├── sv.yml │ │ ├── te.yml │ │ ├── tl.yml │ │ ├── tr.yml │ │ └── zh-CN.yml │ ├── magent.yml │ ├── mongoid.yml.sample │ ├── newrelic.yml.sample │ ├── payments.yml.sample │ ├── pills/ │ │ └── websocket.pill.erb │ ├── reputation.yml │ ├── routes.rb │ ├── schedule.rb │ ├── shapado.yml.sample │ ├── share_links.yml │ ├── unicorn/ │ │ ├── bluepill.rb │ │ ├── nginx.conf │ │ ├── postfix-main.cf │ │ └── unicorn.rb │ ├── versions.yml │ └── xapit.yml ├── config.ru ├── data/ │ └── countries.json ├── db/ │ ├── fixtures/ │ │ └── pages/ │ │ ├── faq.el.markdown │ │ ├── faq.en.markdown │ │ ├── faq.es.markdown │ │ ├── faq.fr.markdown │ │ └── faq.pt.markdown │ └── seeds.rb ├── doc/ │ └── README_FOR_APP ├── lib/ │ ├── assets/ │ │ └── stylesheets/ │ │ └── multiauth.css │ ├── fixed_array.rb │ ├── flash_helper/ │ │ ├── application.rb │ │ └── application_helper.rb │ ├── jobs/ │ │ ├── activities.rb │ │ ├── answers.rb │ │ ├── base.rb │ │ ├── images.rb │ │ ├── mailer.rb │ │ ├── questions.rb │ │ ├── tags.rb │ │ ├── themes.rb │ │ ├── users.rb │ │ └── votes.rb │ ├── level_system.rb │ ├── multiauth_support.rb │ ├── nominatim.rb │ ├── sass/ │ │ ├── generals.scss │ │ ├── items.scss │ │ ├── layout.scss │ │ ├── theme_template.scss │ │ └── widgets.scss │ ├── shapado/ │ │ ├── controllers/ │ │ │ ├── access.rb │ │ │ ├── locale.rb │ │ │ ├── routes.rb │ │ │ └── utils.rb │ │ ├── file_wrapper.rb │ │ ├── models/ │ │ │ ├── custom_html_methods.rb │ │ │ ├── geo_common.rb │ │ │ ├── networks.rb │ │ │ └── trackable.rb │ │ └── scripting/ │ │ ├── application.rb │ │ └── easy_loader.rb │ ├── smtp_tls.rb │ ├── sso_strategy.rb │ ├── subdomains.rb │ ├── sweepers.rb │ ├── tasks/ │ │ ├── fix_db.rake │ │ ├── jsassets.rake │ │ ├── populator.rake │ │ ├── setup.rake │ │ ├── shapado3-to-4.rake │ │ └── shapado40to41.rake │ └── twitter_renderer.rb ├── magent.init.rb ├── old_show.html.haml ├── public/ │ ├── close_popup.html │ ├── codemirror/ │ │ ├── LICENSE │ │ ├── README.md │ │ ├── compress.html │ │ ├── css/ │ │ │ └── docs.css │ │ ├── demo/ │ │ │ ├── activeline.html │ │ │ ├── changemode.html │ │ │ ├── complete.html │ │ │ ├── complete.js │ │ │ ├── fullscreen.html │ │ │ ├── marker.html │ │ │ ├── mustache.html │ │ │ ├── preview.html │ │ │ ├── resize.html │ │ │ ├── runmode.html │ │ │ ├── search.html │ │ │ └── theme.html │ │ ├── index.html │ │ ├── internals.html │ │ ├── lib/ │ │ │ ├── overlay.js │ │ │ └── runmode.js │ │ ├── manual.html │ │ ├── oldrelease.html │ │ ├── test/ │ │ │ ├── index.html │ │ │ └── test.js │ │ └── theme/ │ │ ├── cobalt.css │ │ ├── eclipse.css │ │ ├── elegant.css │ │ ├── neat.css │ │ └── night.css │ ├── errors/ │ │ ├── javascripts/ │ │ │ └── bug_hunter.js │ │ └── stylesheets/ │ │ └── highlight.css │ ├── robots.txt │ └── stylesheets/ │ ├── compoments/ │ │ └── dialog.css │ ├── ie7.css │ └── jquery.ui.tabs.css ├── script/ │ ├── cleanup │ ├── daily_report │ ├── export │ ├── find_experts │ ├── handle_email │ ├── import │ ├── import_email │ ├── import_twitter │ ├── rails │ ├── update_geoip │ └── websocket ├── spec/ │ ├── controllers/ │ │ ├── activities_controller_spec.rb │ │ ├── answers_controller_spec.rb │ │ ├── close_requests_controller_spec.rb │ │ ├── comments_controller_spec.rb │ │ ├── groups_controller_spec.rb │ │ ├── mobile_controller_spec.rb │ │ ├── questions_controller_spec.rb │ │ ├── searches_controller_spec.rb │ │ ├── themes_controller_spec.rb │ │ ├── users_controller_spec.rb │ │ └── votes_controller_spec.rb │ ├── fabricators/ │ │ ├── answer_fabricator.rb │ │ ├── close_request_fabricator.rb │ │ ├── comment_fabricator.rb │ │ ├── group_fabricator.rb │ │ ├── notification_config_fabricator.rb │ │ ├── question_fabricator.rb │ │ ├── search_fabricator.rb │ │ ├── theme_fabricator.rb │ │ ├── user_fabricator.rb │ │ └── user_stat_fabricator.rb │ ├── helpers/ │ │ ├── mobile_helper_spec.rb │ │ └── themes_helper_spec.rb │ ├── lib/ │ │ └── jobs/ │ │ ├── activities_spec.rb │ │ ├── answers_spec.rb │ │ ├── mailer_spec.rb │ │ ├── questions_spec.rb │ │ ├── tags_spec.rb │ │ ├── users_spec.rb │ │ └── votes_spec.rb │ ├── models/ │ │ ├── answer_spec.rb │ │ ├── group_spec.rb │ │ ├── question_spec.rb │ │ ├── theme_spec.rb │ │ └── user_spec.rb │ ├── requests/ │ │ └── questions_spec.rb │ ├── routing/ │ │ └── themes_routing_spec.rb │ ├── spec_helper.rb │ └── support/ │ └── omniauth.rb ├── vendor/ │ ├── assets/ │ │ ├── javascripts/ │ │ │ ├── codemirror/ │ │ │ │ ├── codemirror.js │ │ │ │ └── mode/ │ │ │ │ ├── clike/ │ │ │ │ │ ├── clike.js │ │ │ │ │ └── index.html │ │ │ │ ├── clojure/ │ │ │ │ │ ├── clojure.js │ │ │ │ │ └── index.html │ │ │ │ ├── coffeescript/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── coffeescript.js │ │ │ │ │ └── index.html │ │ │ │ ├── css/ │ │ │ │ │ ├── css.js │ │ │ │ │ └── index.html │ │ │ │ ├── diff/ │ │ │ │ │ ├── diff.css │ │ │ │ │ ├── diff.js │ │ │ │ │ └── index.html │ │ │ │ ├── groovy/ │ │ │ │ │ ├── groovy.js │ │ │ │ │ └── index.html │ │ │ │ ├── haskell/ │ │ │ │ │ ├── haskell.js │ │ │ │ │ └── index.html │ │ │ │ ├── htmlmixed/ │ │ │ │ │ ├── htmlmixed.js │ │ │ │ │ └── index.html │ │ │ │ ├── javascript/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── javascript.js │ │ │ │ ├── jinja2/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── jinja2.js │ │ │ │ ├── lua/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── lua.js │ │ │ │ ├── markdown/ │ │ │ │ │ ├── index.html │ │ │ │ │ ├── markdown.css │ │ │ │ │ └── markdown.js │ │ │ │ ├── ntriples/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── ntriples.js │ │ │ │ ├── pascal/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── index.html │ │ │ │ │ └── pascal.js │ │ │ │ ├── perl/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.html │ │ │ │ ├── php/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── php.js │ │ │ │ ├── plsql/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── plsql.js │ │ │ │ ├── python/ │ │ │ │ │ ├── LICENSE.txt │ │ │ │ │ ├── index.html │ │ │ │ │ └── python.js │ │ │ │ ├── r/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── index.html │ │ │ │ │ └── r.js │ │ │ │ ├── rst/ │ │ │ │ │ ├── index.html │ │ │ │ │ ├── rst.css │ │ │ │ │ └── rst.js │ │ │ │ ├── ruby/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── index.html │ │ │ │ │ └── ruby.js │ │ │ │ ├── rust/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── rust.js │ │ │ │ ├── scheme/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── scheme.js │ │ │ │ ├── smalltalk/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── smalltalk.js │ │ │ │ ├── sparql/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── sparql.js │ │ │ │ ├── stex/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── stex.js │ │ │ │ ├── tiddlywiki/ │ │ │ │ │ ├── index.html │ │ │ │ │ ├── tiddlywiki.css │ │ │ │ │ └── tiddlywiki.js │ │ │ │ ├── velocity/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── velocity.js │ │ │ │ ├── xml/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── xml.js │ │ │ │ ├── xmlpure/ │ │ │ │ │ ├── index.html │ │ │ │ │ └── xmlpure.js │ │ │ │ └── yaml/ │ │ │ │ ├── index.html │ │ │ │ └── yaml.js │ │ │ ├── jpicker.js │ │ │ ├── mobile/ │ │ │ │ └── jquery_mobile.js │ │ │ ├── modernizr.js │ │ │ └── tipsy/ │ │ │ └── jquery.tipsy.js │ │ └── stylesheets/ │ │ ├── chosen/ │ │ │ └── chosen.css │ │ ├── codemirror/ │ │ │ ├── codemirror.css.scss │ │ │ └── default.css.scss │ │ ├── h5bp/ │ │ │ ├── helpers.css.scss │ │ │ ├── media.css.scss │ │ │ ├── print.css.scss │ │ │ └── reset.css.scss │ │ ├── jpicker/ │ │ │ └── jPicker-1.1.6.css.scss │ │ ├── jquery-ui/ │ │ │ └── jquery-ui.css.scss │ │ ├── mobile/ │ │ │ └── jquery_mobile.css.scss │ │ ├── prettify.css │ │ └── tipsy/ │ │ └── tipsy.css │ └── plugins/ │ ├── exception_notification/ │ │ ├── README │ │ ├── exception_notification.gemspec │ │ └── lib/ │ │ ├── exception_notifier/ │ │ │ ├── notifier.rb │ │ │ └── views/ │ │ │ └── exception_notifier/ │ │ │ ├── _backtrace.text.erb │ │ │ ├── _environment.text.erb │ │ │ ├── _request.text.erb │ │ │ ├── _session.text.erb │ │ │ ├── _title.text.erb │ │ │ └── exception_notification.text.erb │ │ └── exception_notifier.rb │ └── gravatar/ │ ├── MIT-LICENSE │ ├── README.rdoc │ ├── Rakefile │ ├── about.yml │ ├── init.rb │ ├── lib/ │ │ └── gravatar.rb │ └── spec/ │ └── gravatar_spec.rb └── xapit.ru ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ *~ .DS_Store *.swp *.bak *.orig coverage public/stylesheets/compiled/ config/shapado.yml config/payments.yml data/*.dat config/mongoid.yml config/database.yml config/auth_providers.yml base_packaged.* .directory .bundle log/*.log tmp/**/* vendor/cache/*.gem public/javascripts/login_packaged.js public/javascripts/show_packaged.js public/javascripts/jsMath/fonts/ public/javascripts/packaged/ public/stylesheets/packaged/ public/packages/ .sass-cache *.kdev4 .redcar .idea tunnlr.yml ================================================ FILE: .gitmodules ================================================ ================================================ FILE: .mailmap ================================================ Jorge H. Cuadrado Jorge Cuadrado Carlos Carlos Cyril Mougel Cyril Mougel ================================================ FILE: .rspec ================================================ --colour ================================================ FILE: AUTHORS ================================================ Contributors ------------ David Cuadrado Diego Mazzocchi Jorge Cuadrado Patrick Aljord Victor Cedeno ================================================ FILE: COPYING ================================================ GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Remote Network Interaction; Use with the GNU General Public License. Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . ================================================ FILE: Gemfile ================================================ source 'http://rubygems.org' gem 'rails', '3.2.6' if RUBY_PLATFORM !~ /mswin|mingw/ gem 'rdiscount', :git => 'git://github.com/ricodigo/rdiscount.git' gem 'ruby-stemmer', '~> 0.8.2', :require => 'lingua/stemmer' gem 'sanitize', '2.0.3' gem 'magic' gem 'mini_magick', '~> 2.3' gem 'nokogiri' gem 'mechanize' else gem 'maruku', '0.6.0' end gem 'maruku' # ui gem 'haml', '>= 3.1.3' gem 'sass', '>= 3.1.10' gem 'compass-colors', '0.9.0' gem 'fancy-buttons', '1.1.1' gem 'kaminari' gem 'mustache' gem 'poirot', :git => 'git://github.com/dcu/poirot.git' # mongodb gem 'bson', '1.4.0' gem 'bson_ext', '1.4.0' gem 'mongo', '1.4.0' gem 'mongoid', :git => 'git://github.com/mongoid/mongoid.git', :branch => '2.4.0-stable' gem 'mongoid_ext', :git => 'git://github.com/dcu/mongoid_ext.git' gem 'mongo_store', :git => 'https://github.com/Houdini/mongo_store.git' #gem 'redis' #gem 'redis-store' #gem 'redis-rails' # utils gem 'whatlanguage', '1.0.0' gem 'uuidtools', '~> 2.1.1' gem 'magent', '0.6.2' gem 'bug_hunter', :git => 'git://github.com/ricodigo/bug_hunter.git' gem 'goalie', '~> 0.0.4' gem 'dynamic_form' gem 'rinku', '~> 1.2.2', :require => 'rails_rinku' gem 'rack-recaptcha', '0.2.2', :require => 'rack/recaptcha' gem 'twitter-text', '1.1.8' gem 'twitter_oauth' gem 'social_widgets', :git => 'https://git.gitorious.org/social_widgets/social_widgets.git' gem 'stripe' gem 'pdfkit' # apt-get install wkhtmltopdf gem 'geoip' gem 'rubyzip', '0.9.4', :require => 'zip/zip' gem 'newrelic_rpm' # authentication gem 'omniauth', '~> 0.3.0' gem 'oa-openid', '~> 0.3.0', :require => 'omniauth/openid' gem 'oa-oauth', '~> 0.3.0', :require => 'omniauth/oauth' gem 'multiauth', :git => 'http://github.com/dcu/multiauth.git' gem 'orm_adapter' gem 'devise', '~> 1.4.0' gem 'whenever', :require => false gem 'rack-ssl', :require => false gem 'state_machine', '1.1.2' gem 'xapian-ruby', '1.2.7.1' gem 'xapit', :git => 'git://github.com/kuadrosx/xapit.git' group :assets do gem 'compass-rails' gem 'compass' gem 'sass-rails', " ~> 3.2.0" gem 'uglifier' end gem 'yui-compressor' gem 'jquery-rails' group :deploy do gem 'capistrano', '2.9.0', :require => false gem 'ricodigo-capistrano-recipes', '~> 0.1.3', :require => false gem 'unicorn', '4.1.1', :require => false gem 'therubyracer' end group :scripts do gem 'eventmachine', '~> 0.12.10' gem 'em-websocket', '~> 0.3.0' gem 'twitter', '1.7.2' end group :test do gem 'capybara' gem 'capybara-webkit' gem 'launchy' gem 'ffaker' gem 'simplecov' gem 'autotest' gem 'fabrication' end group :development do gem 'pry' gem 'pry-rails' gem 'database_cleaner' gem 'rspec', '>= 2.0.1' gem 'rspec-rails', '>= 2.0.1' gem 'remarkable_mongoid', '>= 0.5.0' gem 'hpricot' gem 'ruby_parser' gem 'niftier-generators', '0.1.2' gem 'ruby-prof' gem 'tunnlr_connector', :git => 'git://github.com/dcu/tunnlr_connector.git', :branch => 'patch-1', :require => 'tunnlr' end ================================================ FILE: INSTALL_ON_PRODUCTION ================================================ == SERVER SIDE 1. add a user with sudo permissions sudo adduser deploy 2. edit sudo settings $ sudo visudo and add: 3. configure and upload config/shapado.yml to /etc/shapado.yml ---------------- copy from here ------------- Defaults env_keep += "RAILS_ROOT" Defaults secure_path = "/usr/local/rvm/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" app ALL=(ALL) NOPASSWD: ALL --------------------------------------------- NOTE: you can revoke sudo permissions after installing the application == CLIENT SIDE 1. Download the sources: $ git clone git://gitorious.org/shapado/shapado.git $ cd shapado/ 2. Configure the application $ cp config/shapado.sample.yml config/shapado.yml $ cp config/mongoid.sample.yml config/mongoid.yml edit shapado.yml 3. Install dependencies $ bundle install 4. Install required Gems $ sudo gem install capistrano ricodigo-capistrano-recipes $ cp config/deploy.rb.sample config/deploy.rb edit and configure config/deploy.rb (usually you just need to change the roles) 5. Install server dependencies $ ricodigo-install-server NOTE: if you entered user/password for mongodb you have to add it on server: $ mongo --eval 'db.addUser("","", false)' shapado-production 6. Setup your deployment server $ cap production deploy:setup 7. Deploy $ cap production bootstrap $ cap production bluepill:init $ cap production magent:setup $ cap production magent:init $ cap production websocket:setup $ cap production websocket:init $ cap production deploy ================================================ FILE: README ================================================ == Dependencies - git >= 1.5 - ruby >= 1.9.2 - rubygems >= 1.3.7 - mongodb >= 1.7 - ruby on rails 3 == Install Dependencies sudo gem install bundler == Getting Started 1. Download the sources: git clone git://gitorious.org/shapado/shapado.git cd shapado/ 2. Configure the application cp config/shapado.sample.yml config/shapado.yml cp config/mongoid.sample.yml config/mongoid.yml cp config/auth_providers.sample.yml config/auth_providers.yml edit shapado.yml and auth_providers.yml Go to https://rpm.newrelic.com/ and create an account, then: cp config/shapado.yml.sample config/newrelic.yml If you don't want to use newrelic, just comment it out in the Gemfile. Go to https://rpm.newrelic.com/ and create an account, then: cp config/shapado.yml.sample config/newrelic.yml If you don't want to use newrelic, just comment it out in the Gemfile. 3. Install dependencies bundle install 4. Load default data rake bootstrap RAILS_ENV=development 5. Add default subdomain to /etc/hosts, for example: "0.0.0.0 localhost.lan group1.localhost.lan group2.localhost.lan" 6. Start the server rails server -e development 7. When running shapado in production, you need to run: jammit == Postfix config add the following text to /etc/aliases shapado: "|/usr/local/rvm/bin/rvm 1.9.2 exec PATH/to/shapado/script/handle_email" in /etc/postfix/main.cf default_privs = shapado then type sudo newaliases Follow us on: * http://twitter.com/shapado * http://identi.ca/shapado * http://blog.ricodigo.com/shapado Talk to us at: * irc://irc.freenode.org/shapado * http://shapado.com/chat * contact \aT/ shapado d0t com Report bugs at http://shapado.com and use the tags "bug" or "feature-request" Happy hacking! ================================================ FILE: Rakefile ================================================ # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) require 'rake' Shapado::Application.load_tasks ================================================ FILE: Shapado.prj ================================================ 1 1 0 0 0 /home/fra/Documentos/Shapado/dgfranciscos-shapado UE Proj: v.1 ================================================ FILE: Shapado.ubuntu.fra.pui ================================================ 295 3900000001000000130000001A0000000A0000006E0000000500000049010000000000004F7F0000B0B9FFFFFFFFFFFFC0B7B0030000000089 -1 ================================================ FILE: UPGRADE ================================================ run 'rake fixall' to upgrade your database ================================================ FILE: VERSION ================================================ 4.1.0 ================================================ FILE: app/assets/javascripts/app/initializers/assets.js ================================================ /*THIS FILE IS AUTO-GENERATED FOR DEV, DO NOT MODIFY IT. MODIFY config/assets.yml INSTEAD*/ jsassets = {"modernizrdev":["/packages/modernizrdev.js"],"initdev":["/packages/initdev.js"],"websocket":["/packages/websocket.js"],"json":["/packages/json.js"],"jqueryautovideo":["/packages/jqueryautovideo.js"],"mobile":["/packages/mobile.js"],"facebook":["/packages/facebook.js"],"jpicker":["/packages/jpicker.js"],"geolocation":["/packages/geolocation.js"],"jqmath":["/packages/jqmath.js"],"codemirror":["/packages/codemirror.js"],"modernizr":["/packages/modernizr_7.js"],"base":["/packages/base_7.js"],"extra":["/packages/extra_1.js"]}; cssassets = {"base":["/packages/base.css"],"jqueryui":["/packages/jqueryui.css"],"jpicker":["/packages/jpicker.css"],"mobile":["/packages/mobile.css"],"jqmath":["/packages/jqmath.css"],"codemirror":["/packages/codemirror.css"]}; ================================================ FILE: app/assets/javascripts/app/initializers/init_dev.js ================================================ // any initializing code from init_modernizer.js should go here for dev $(document).ready(function() { Jqmath.initialize(); ShapadoSocket.initialize(); $('.auto-link').autoVideo(); Form.initialize(); Modernizr.load({ test: $('meta[data-has-js]').length > 0, yep: $('meta[data-theme-js]').attr('data-theme-js') }) }) ================================================ FILE: app/assets/javascripts/app/initializers/init_modernizr.js ================================================ //needed for IE fix_html5_on_ie(); Modernizr.load([{ load: '//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js', callback: function() { if (!window.jQuery) { Modernizr.load('/javascripts/vendor/jquery-1.6.4.js'); } }, complete: function() { Modernizr.load([{ test: window.JSON, nope: jsassets.json }, { test: navigator.geolocation, nope: jsassets.geolocation }, { load: jsassets.base, complete: function(){ if(typeof(Jqmath)!='undefined') Jqmath.initialize(); } }, { load: cssassets.jqueryui }]); $(document).ready(function() { Modernizr.load([{ test: ($('.offline').length == 0 || (location.pathname != '/' && location.pathname.indexOf('/questions' != 0))), yep: jsassets.extra }, { test: typeof(window.WebSocket)!=='undefined', nope: jsassets.websocket, complete: function() { ShapadoSocket.initialize(); } }, { test: $('meta[data-has-js]').length > 0, yep: $('meta[data-theme-js]').attr('data-theme-js') }, { test: $('meta[data-js=show]').length > 0 && $('.auto-link').length > 0, yep: jsassets.jqueryautovideo, complete: function(){ if($.fn.autoVideo) $('.auto-link').autoVideo(); } }, { test: $("input[type=color]").length>0, yep: jsassets.jpicker, complete: function(){ if($.jPicker) Form.initialize(); } }, { test: $("input[type=color]").length>0, yep: cssassets.jpicker }]) }) } }]); function fix_html5_on_ie() { document.createElement('header'); document.createElement('footer'); document.createElement('section'); document.createElement('aside'); document.createElement('nav'); document.createElement('article'); document.createElement('hgroup'); } ================================================ FILE: app/assets/javascripts/app/initializers/retag.js ================================================ $(document).ready(function() { $('.retag-link').live('click',function(){ var link = $(this); link.parent('.retag').hide(); link.parents('.tag-list').find('.tag').hide(); $.ajax({ dataType: "json", type: "GET", url : link.attr('href'), extraParams : { 'format' : 'js'}, success: function(data) { if(data.success){ link.parents(".tag-list").before(data.html); $(".chosen-retag").ajaxChosen({ method: 'GET', url: '/questions/tags_for_autocomplete.js', dataType: 'json' }, function (data) { var terms = {}; $.each(data, function (i, val) { console.log('i: '+i) console.log('val: '+val) terms[val["value"]] = val["caption"]; }); return terms; }); } else { Messages.show(data.message, "error"); if(data.status == "unauthenticate") { window.location="/users/login" } } } }); return false; }); $('.retag-form').live('submit', function() { form = $(this); var button = form.find('input[type=submit]'); button.attr('disabled', true) $.ajax({url: form.attr("action")+'.js', dataType: "json", type: "POST", data: form.serialize()+"&format=js", beforeSend: function(jqXHR, settings){ }, success: function(data, textStatus) { if(data.success) { var tags = $.map(data.tags, function(n){ return '
  • ' }) form.next('.tag-list').find('li a.tag').remove(); form.next('.tag-list').prepend($.unique(tags).join('')); form.remove(); console.log(tags.join('')) $('.retag').show(); Messages.show(data.message, "notice"); } else { Messages.show(data.message, "error") if(data.status == "unauthenticate") { window.location="/users/login"; } } }, error: Messages.ajax_error_handler, complete: function(XMLHttpRequest, textStatus) { button.attr('disabled', false); } }); return false; }); $('.cancel-retag').live('click', function(){ var link = $(this); var form = link.parents('form'); form.next('.tag-list').find('.tag').show(); form.next('.tag-list').find('.retag').show(); form.remove(); return false; }); }); ================================================ FILE: app/assets/javascripts/app/initializers/search.js ================================================ (function($){ $.fn.searcher = function(options) { var defaults = { timeout: 500, threshold: 100, minLength: 1, extraParams: {}, url: "", target: $("body"), behaviour : "live", success: function(data) {}, before_query: function(target) {}, after_reset: function(target) {}, } var options = $.extend(defaults, options); return this.each(function() { var timer = null; var last = ""; var settings = options; var self = $(this); var extraParams = []; var cache = settings.target.html(); if(typeof settings.fields == "undefined") { settings.fields = $(this).find("input[type=text],textarea"); } /*HACK?*/ for(var property in settings.extraParams) { extraParams.push({ name : property, value : settings.extraParams[property]}); } var query = function() { settings.before_query.call(self, settings.target); $.ajax({ url: settings.url, dataType: "json", type: "GET", data: $.merge(settings.fields.serializeArray(), extraParams), success: function(data) { settings.target.empty(); settings.target.append(data.html); settings.success(data); } }); } $.each(settings.fields, function(){ if(this.value) { query(); return false; } }); var live = function() { $.each(settings.fields, function(){ var timer = null; $(this).keyup(function() { if(!($(this).val().length <= settings.minLength)){ if(this.value != last) { if (timer){ clearTimeout(timer); } last = this.value; timer = setTimeout(query, settings.timeout); } } else { settings.target.empty(); settings.target.append(cache); settings.after_reset.call(self, settings.target); } }); }); } var focusout = function() { $.each(settings.fields, function(){ $(this).blur(function() { if (!($(this).val().length <= settings.minLength)) { if(this.value != last) { query(); } } else { settings.target.empty(); settings.target.append(cache); settings.after_reset.call(self, settings.target); } }); }); } switch(settings.behaviour) { case "live": live(); break; case "focusout": focusout(); live(); break; } }); } })(jQuery); ================================================ FILE: app/assets/javascripts/app/initializers/shapado_toolbar.js ================================================ (function($){ $.fn.shapadoToolbar = function(options) { var defaults = { formContainer: ".panel-forms", afterFetchForm: function(link,form) {} } var options = $.extend(defaults, options); return this.each(function() { var toolbar = $(this); var formContainer = toolbar.find(options.formContainer); toolbar.delegate("a.show_form", "click", function(event) { var link = $(this); var id = link.attr("data-lazy-form") || link.attr("id"); var lazy = link.attr("data-lazy") == "1"; var form = formContainer.find("."+id); if(link.hasClass("active")){ link.removeClass("active"); form.slideUp(); return false; } var actionsContent = link.parents("ul"); formContainer.find("form").slideUp(); if(lazy && form.length < 1) { var href = link.attr('href'); if(!link.hasClass('busy')){ link.addClass('busy'); $.getJSON(href+'.js', function(data){ if(data.status=='unauthenticate'){ Auth.startLoginDialog(); return false; } var nform = $(data.html); formContainer.prepend(nform); nform.slideDown("slow"); nform.show(); link.removeClass('busy'); options.afterFetchForm.call(toolbar, link, nform); actionsContent.find("li a").removeClass("active"); link.addClass("active"); }); } } else { form.slideDown("slow"); actionsContent.find("li a").removeClass("active"); link.addClass("active"); } return false; }); formContainer.delegate("form a.cancel", "click", function(event) { $(this).parents('form').slideUp(); toolbar.find("ul li a").removeClass("active"); return false; }); }); } })(jQuery); ================================================ FILE: app/assets/javascripts/app/initializers/single/question.js ================================================ $(document).ready(function() { // FIXME: why is it here? // Questions.initialize(); }); ================================================ FILE: app/assets/javascripts/app/main.js ================================================ $(document).ready(function() { var $body = $(document.body); Loader.initialize($body, true); }); ================================================ FILE: app/assets/javascripts/app/modules/activities.js ================================================ Activities = function(){ var self = this; function initialize() { } function createOnIndex(data) { Utils.log("[create] activity"); $.get('/activities/'+data.object_id, {notif: 1}, function(data) { $("ul.notifications-list li.notification-title").after("
  • "+data+"
  • "); var counter = $("ul.notifications-list li:first a#notification-counter"); counter.text(parseInt(counter.text())+1); }); } return { initialize:initialize, createOnIndex:createOnIndex } }(); ================================================ FILE: app/assets/javascripts/app/modules/answers.js ================================================ Answers = function(){ var self = this; function initialize($body) { if($body.hasClass("edit")) { Editor.setup($(".markdown_editor, .wysiwyg_editor")); } else if($body.hasClass("show")) { Votes.initialize_on_question(); Comments.initialize_on_question(); } } function initializeOnQuestion() { var add_another_answer = $('#add_another_answer'); if(add_another_answer.length > 0){ var form = $('.add_answer'); form.hide(); add_another_answer.click(function() { add_another_answer.hide(); form.show(); return false; }); } } function createOnIndex(data) { } function createOnShow(data) { var is_there = $('.'+data.object_id).length; if(is_there==0){ alert(is_there); $(".answers-list").prepend(data.html); $("article.answer."+data.object_id).effect("highlight", {}, 3000); Ui.hide_comments_form(); } } function updateOnIndex(data) { } function updateOnShow(data) { $("article.answer."+data.object_id).html(data.html); $("article.answer."+data.object_id).effect("highlight", {}, 3000); } function vote(data) { $("article.answer."+data.object_id+" li.votes_average").text(data.average); } return { initialize:initialize, initializeOnQuestion:initializeOnQuestion, createOnIndex:createOnIndex, createOnShow:createOnShow, updateOnIndex:updateOnIndex, updateOnShow:updateOnShow, vote:vote } }(); ================================================ FILE: app/assets/javascripts/app/modules/app_config.js ================================================ AppConfig = function(){ var self = this; function initialize() { var config = $("#appconfig"); if(config.length > 0) { $.each(config[0].attributes, function() { var att = this; var m = att.name.match("^data-(.+)"); if(m && m[1]) { AppConfig[m[1]] = att.value; } }); } } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/authentication.js ================================================ Auth = function() { var self = this; function initialize() { $('.auth-provider').live("click", function(e){ e.preventDefault(); var authUrl = $(this).attr('href'); openPopup(authUrl); }); $('#openid_url').parents('form').submit(function(){ var openid = $('#openid_url').val(); openid = openid.replace('http://',''); openid = openid.replace('https://',''); $('#openid_url').val(openid) }); } function positionDropdown() { if(Ui.offline() && !Ui.notMember()){ $('.providers-list').show().offset({left: $('.offline').offset().left+$('.offline').width()-$('.providers-list').width()}).hide(); //$('.providers-list').show().offset({left: $('body').width()/2-$('#column2').width()/2}).css({width: '290px'}); } } function dropdownToggle() { $('[data-toggle-dropdown]').click(function(){ var toggleClass = $(this).data('toggle-dropdown'); $('.dropdown-form').addClass('hidden'); var toggleEle = $('.'+toggleClass).toggleClass('hidden'); positionDropdown(); $('.providers-list').show(); return false; }) } function openPopup(authUrl) { var pparg; if(authUrl.indexOf('{')!=-1){ authUrl = authUrl.split('=')[1]; $('[data-toggle-dropdown=dropdown-signin-openid]').trigger('click'); $('#openid_url').val(authUrl); return false; } else { $.cookie('pp', 1); (authUrl.indexOf('?')==-1)? pparg = '?pp=1' : pparg = '&pp=1' window.open(authUrl+pparg, 'openid_popup', 'width=700,height=500'); $('#login_dialog').dialog('close'); } } function startLoginDialog(title,join){ if(Ui.notMember()){ var title = $('#join_dialog').attr('data-title'); $('#join_dialog').dialog({title: title, modal: true, resizable: false}) } else { $('.offline li:first').trigger('click'); Messages.show($('.offline').data('signin-notice'), 'error', 5000 ); return false; } } return { initialize:initialize, positionDropdown:positionDropdown, dropdownToggle:dropdownToggle, openPopup:openPopup, startLoginDialog:startLoginDialog } }(); ================================================ FILE: app/assets/javascripts/app/modules/comments.js ================================================ Comments = function() { var self = this; function initializeOnQuestion(data) { $('.comment-votes form.comment-form button.vote').hide(); var forms = $('.question_comment_form, .answer_comment_form'); forms.find('.buttons').hide(); forms.delegate('textarea', 'focus', function() { var form = $(this).parents('form'); form.find('.buttons').show(); if(!form.find('textarea').hasClass(form.data('editor'))) { form.find('textarea').addClass(form.data('editor')); Editor.setup(form.find('textarea')); } }); $.each($("a.toggle_comments"), function() { var l = $(this); var n = l.nextAll("article.read"); var s = n.length; if(s < 5) { l.hide(); } else { l.show(); var t = l.find('.counter').text(s); l.text(t); n.hide(); l.parents('.comments').find("article.comment:last").show(); } }); $("a.toggle_comments").click(function() { $(this).nextAll("article.read").toggle(); return false; }); $(".content-panel").on("hover", ".comment", function(handlerIn, handlerOut) { var show = (handlerIn.type == "mouseenter"); $(this).find(".comment-votes form.comment-form button.vote").toggle(show); }); $(".content-panel").on("submit", ".comment-votes .comment-form", function(event) { var form = $(this); var btn = form.find('button'); btn.attr('disabled', true); btn.hide(); $.post(form.attr("action"), form.serialize()+"&"+btn.attr("name")+"=1", function(data){ if(data.success){ if(data.vote_state == "destroyed") { btn.addClass("vote"); btn.hide(); } else { btn.removeClass("vote"); btn.show(); } btn.parents(".comment-votes").children(".votes_average").html(data.average); Messages.show(data.message, "notice"); } else { Messages.show(data.message, "error"); } btn.attr('disabled', false); btn.show(); }, "json"); return false; }); $(".Question-commentable").click(showCommentForm); $(".content-panel").delegate(".Answer-commentable, .Comment-commentable", "click", showCommentForm); $('.cancel_comment').on('click', function(){ var form = $(this).parents('form'); form.find('.buttons').hide(); var htmlarea = form.find('.jHtmlArea') if(htmlarea.length > 0) { htmlarea.remove(); form.find('.markdown').append(''); } else { form.find('.markdown_toolbar').remove(); form.find('textarea').removeClass('markdown_editor') } return false; }); } function showCommentForm() { var link = $(this); var answer_id = link.attr('data-commentable'); var form = $('form[data-commentable='+answer_id+']'); var textarea = form.find('textarea'); form.slideToggle(); textarea.focus(); var viewportHeight = window.innerHeight ? window.innerHeight : $(window).height(); var top = form.offset().top - viewportHeight/2; $('html,body').animate({scrollTop: top}, 1000); return false; } function createOnIndex(data) { } function createOnShow(data) { var comment = $('#'+data.object_id); if(comment.length==0){ var commentable = $('.'+data.commentable_id); var comments = commentable.find('.comments'); comments.append(data.html); Effects.fade(comment); } } function updateOnIndex(data) { } function updateOnShow(data) { var comment = $('#'+data.object_id); if($.trim(comment.html()) != data.html){ comment.replaceWith(data.html); Effects.fade(comment); } } function vote(data) { } return { initializeOnQuestion:initializeOnQuestion, showCommentForm:showCommentForm, createOnIndex:createOnIndex, createOnShow:createOnShow, updateOnIndex:updateOnIndex, updateOnShow:updateOnShow, vote:vote } }(); ================================================ FILE: app/assets/javascripts/app/modules/editor.js ================================================ Editor = function() { var self = this; function initialize() { setupEditor(); setupWysiwyg(); $(".markdown code").addClass("prettyprint"); $("textarea").focus(function() { if(!window.onbeforeunload) { window.onbeforeunload = function() { var filled = false; $('textarea').each(function(){ if($.trim($(this).val())!=''){ filled = true; } }) if(filled) {return I18n.on_leave_page; } return null; } } }); } function setup(editor) { if(editor.hasClass("wysiwyg_editor")) { setupWysiwyg(editor); } else if(editor.hasClass("markdown_editor")) { setupEditor(editor); } } function setupWysiwyg(editor) { var editor = editor || $(".wysiwyg_editor"); if(!editor || editor.length == 0) return; editor.htmlarea({ toolbar: [ ["html"], ["bold", "italic", "underline", "strikethrough", "|", "subscript", "superscript"], ["increasefontsize", "decreasefontsize"], ["orderedlist", "unorderedlist"], ["indent", "outdent"], ["justifyleft", "justifycenter", "justifyright"], ["link", "unlink", "image", "horizontalrule"], ["p", "h1", "h2", "h3", "h4", "h5", "h6"], ["cut", "copy", "paste"], [{ css: "removeformat", text: "Remove Format", action: function(btn) { this.removeFormat(); } }] ] }); } function setupEditor(editor) { var editor = editor || $(".markdown_editor"); if(!editor || editor.length == 0){ return; } var converter = new Showdown.converter; var timer_id = null; var converter_callback = function(value) { var preview = $('.markdown_preview'); if(preview.length > 0){ $('.markdown_preview')[0].innerHTML = converter.makeHtml(value); //addToLocalStorage(location.href, 'markdown_editor', value); $('.markdown_preview.markdown p code').addClass("prettyprint"); if(timer_id) clearTimeout(timer_id); timer_id = setTimeout(function(){ prettyPrint(); }, 500); } } var textarea = editor.TextArea({ change: converter_callback }); var toolbar = $.Toolbar(textarea, { className: "markdown_toolbar" }); //buttons toolbar.addButton('Italics',function(){ this.wrapSelection('*','*'); },{ id: 'markdown_italics_button' }); toolbar.addButton('Bold',function(){ this.wrapSelection('**','**'); },{ id: 'markdown_bold_button' }); toolbar.addButton('Link',function(){ var selection = this.getSelection(); var response = prompt('Enter Link URL',''); if(response == null) return; this.replaceSelection('[' + (selection == '' ? 'Link Text' : selection) + '](' + (response == '' ? 'http://link_url/' : response).replace(/^(?!(f|ht)tps?:\/\/)/,'http://') + ')'); },{ id: 'markdown_link_button' }); toolbar.addButton('Image',function(){ var selection = this.getSelection(); var response = prompt('Enter Image URL',''); if(response == null) return; this.replaceSelection('![' + (selection == '' ? 'Image Alt Text' : selection) + '](' + (response == '' ? 'http://image_url/' : response).replace(/^(?!(f|ht)tps?:\/\/)/,'http://') + ')'); },{ id: 'markdown_image_button' }); toolbar.addButton('Heading',function(){ var selection = this.getSelection(); if(selection == '') selection = 'Heading'; this.replaceSelection('##'+selection+'##'); },{ id: 'markdown_heading_button' }); toolbar.addButton('Unordered List',function(event){ this.collectFromEachSelectedLine(function(line){ return event.shiftKey ? (line.match(/^\*{2,}/) ? line.replace(/^\*/,'') : line.replace(/^\*\s/,'')) : (line.match(/\*+\s/) ? '*' : '* ') + line; }); },{ id: 'markdown_unordered_list_button' }); toolbar.addButton('Ordered List',function(event){ var i = 0; this.collectFromEachSelectedLine(function(line){ if(!line.match(/^\s+$/)){ ++i; return event.shiftKey ? line.replace(/^\d+\.\s/,'') : (line.match(/\d+\.\s/) ? '' : i + '. ') + line; } }); },{ id: 'markdown_ordered_list_button' }); toolbar.addButton('Block Quote',function(event){ this.collectFromEachSelectedLine(function(line){ return event.shiftKey ? line.replace(/^\> /,'') : '> ' + line; }); },{ id: 'markdown_quote_button' }); toolbar.addButton('Code Block',function(event){ this.collectFromEachSelectedLine(function(line){ return event.shiftKey ? line.replace(/ /,'') : ' ' + line; }); },{ id: 'markdown_code_button' }); toolbar.addButton('Latex', function(event) { this.wrapSelection('$$','$$'); }, { id: 'markdown_latex_button' }); toolbar.addButton('Help',function(){ window.open('http://daringfireball.net/projects/markdown/dingus'); },{ id: 'markdown_help_button' }); } return { initialize:initialize, setup:setup, setupWysiwyg:setupWysiwyg, setupEditor:setupEditor } }(); ================================================ FILE: app/assets/javascripts/app/modules/effects.js ================================================ Effects = function(){ var self =this; function initialize() { } function fade(object) { if(typeof object != "undefined") { object.fadeOut(400, function() { object.fadeIn(400) }); } } return { initialize:initialize, fade:fade } }(); ================================================ FILE: app/assets/javascripts/app/modules/form.js ================================================ Form = function() { var self = this; function initialize() { if(!Modernizr.inputtypes.color) { $("input[type=color]").jPicker({ window: { expandable: true, position: { x: 'screenCenter', y: 'center'} }, images: { clientPath: '/images/jpicker/' } }); $("input[type=color]").hide(); } } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/geo.js ================================================ Geo = function() { var self = this; function initialize() { $(document.body).delegate('#question_title', 'click', Geo.localize); $(document.body).delegate('#new_answer', 'hover', Geo.localize); } function localize() { if($('meta[geo_local]').length==1){ if($('meta[data-geo=1]').length==0){ $('body').append(''); navigator.geolocation.getCurrentPosition(function(position){ $('.lat_input').val(position.coords.latitude) $('.long_input').val(position.coords.longitude) }, function(){}); } } } return { initialize:initialize, localize:localize } }(); ================================================ FILE: app/assets/javascripts/app/modules/groups.js ================================================ Groups = function() { var self = this; function initialize($body) { if($body.hasClass("index")) { initializeOnIndex($body); } if($body.hasClass("manage-layout")) { initializeOnEdit($body); } } function initializeOnEdit($body) { $('#group_enable_latex').change(function(){ $('#group_enable_mathjax').removeAttr('checked') }) $('#group_enable_mathjax').change(function(){ $('#group_enable_latex').removeAttr('checked') }) } function initializeOnManageProperties($body) { $('#group_language').chosen(); $('#group_languages').chosen(); } function initializeOnIndex($body) { $("#filter_groups").find("input[type=submit]").hide(); $("#filter_groups").searcher({ url : "/groups.js", target : $("#groups"), behaviour : "live", timeout : 500, extraParams : { 'format' : 'js' }, success: function(data) { $('#additional_info .pagination').html(data.pagination); } }); } function join(link){ var href = $(link).attr('href'); $.ajax({ type: 'POST', url: href, dataType: 'json', success: function(data){ Messages.show(data.message, "notice"); $('#join_dialog').dialog('close'); $('.not_member').remove(); } }); return false; } return { initialize:initialize, initializeOnEdit:initializeOnEdit, initializeOnManageProperties:initializeOnManageProperties, initializeOnIndex:initializeOnIndex, join:join } }(); ================================================ FILE: app/assets/javascripts/app/modules/invitations.js ================================================ Invitations = function() { var self = this; function initialize() { } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/jqmath.js ================================================ Jqmath = function() { var self = this; function initialize() { Modernizr.load([{ test: $('meta[data-jqmath]').length > 0 && $('.markdown').text().indexOf('$$')>-1, yep: $.merge($.merge([],eval($('meta[data-jqmath]').data('jsassets'))||[]),eval($('meta[data-jqmath]').data('cssassets'))||[]) }]); } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/layout_editor.js ================================================ LayoutEditor = function() { var self = this, $sortable; function initialize() { if(window.location.search.match(/edit_layout=1/)) { start(); } } function start() { $sortable = $("#columns").sortable({ connectWith: '#columns', cursor: 'move', stop: dropHandler }); } function stop() { } function dropHandler(ev, ui) { var cols = []; $.each($("#columns").children("section"), function() { cols.push("columns[]="+$(this).attr("id")); }); $.ajax({ url: '/groups/'+AppConfig.g+'/set_columns.js', data: cols.join("&"), dataType: 'json', type: "POST", success: function(data) { } }); } return { initialize:initialize, start:start, stop:stop, dropHandler:dropHandler } }(); ================================================ FILE: app/assets/javascripts/app/modules/loader.js ================================================ Loader = function() { var self = this; //only for ready function initialize($body, refreshed) { Updater.initialize($body); Ui.initialize(); Messages.initialize(); Auth.initialize(); AppConfig.initialize(); Geo.initialize(); LocalStorage.initialize(); Notifier.initialize(); LayoutEditor.initialize(); Loader.refresh($body, false); } //for Updater function refresh($body, refreshed) { if(refreshed) { Ui.initialize(); Messages.initialize(); } if($body.hasClass("questions-controller")) { Questions.initialize($body); } else if($body.hasClass("widgets-controller")) { Widgets.initialize($body); } else if($body.hasClass("users-controller")) { Users.initialize($body); } else if($body.hasClass("announcements-controller")) { Editor.initialize($body); } else if($body.hasClass("tags-controller")) { Tags.initialize($body); } else if($body.hasClass("pages-controller")) { Pages.initialize($body); } else if($body.hasClass("members-controller")) { Members.initialize($body); } else if($body.hasClass("groups-controller") || $body.hasClass("admin-manage-controller")) { if($body.hasClass("content")) { Ui.initializeLangFields(); } Groups.initialize($body); } else if($body.hasClass("themes-controller")) { Themes.initialize($body); } else if($body.hasClass("searches-controller")) { Searches.initialize($body); } else if($body.hasClass("answers-controller")) { Answers.initialize($body); } if($body.is(".users-controller.edit.application")) { Users.initializeOnShow($body); } if($body.is(".admin-manage-controller.properties.application.manage-layout") || $body.is(".groups-controller.new.application") || $body.is(".users-controller.edit.application")) { Groups.initializeOnManageProperties($body); } Invitations.initialize(); //FIXME: empty function } return { initialize:initialize, refresh:refresh } }(); ================================================ FILE: app/assets/javascripts/app/modules/local_storage.js ================================================ LocalStorage = function() { var self = this; function initialize() { if(Modernizr.localstorage) { loadTextareas(); initializeTextAreas(); } } function remove(key, id) { if(hasStorage()){ var ls = localStorage[key]; if(typeof(ls)=='string'){ var storageArr = getObject(key); storageArr = $.map(storageArr, function(n, i){ if(n.id == id){ return null; } else { return n; } }); setObject(key, storageArr); } } } function initializeTextAreas() { $("form").live('submit', function() { var textarea = $(this).find('textarea'); remove(location.href, textarea.attr('id')); window.onbeforeunload = null; }); $('textarea').live('keyup',function(){ var value = $(this).val(); var id = $(this).attr('id'); add(location.href, id, value); }); } function hasStorage(){ if (Modernizr.localstorage && localStorage['setObject'] && localStorage['getObject']){ return true; } else { return false; } } function loadTextareas(){ if(hasStorage() && localStorage[location.href]!=null && localStorage[location.href]!='null'){ localStorageArr = getObject(location.href); $.each(localStorageArr, function(i, n){ $("#"+n.id).val(n.value); $("#"+n.id).parents('form.commentForm').show(); $("#"+n.id).parents('form.nestedAnswerForm').show(); }) } } function add(key, id, value){ if(hasStorage()){ var ls = localStorage[key]; if($.trim(value)!=""){ if(ls == null || ls == "null" || typeof(ls)=="undefined"){ setObject(key,[{id: id, value: value}]); } else { var storageArr = getObject(key); var isIn = false; storageArr = $.map(storageArr, function(n, i){ if(n.id == id){ n.value = value; isIn = true; } return n; }) if(!isIn) storageArr = $.merge(storageArr, [{id: id, value: value}]); setObject(key, storageArr); } } else {remove(key, id);} } } //private if(Modernizr.localstorage) { function setObject(key, value) { this.setItem(key, JSON.stringify(value)); } function getObject(key) { return JSON.parse(this.getItem(key)); } } return { initialize:initialize, remove:remove, initializeTextAreas:initializeTextAreas, hasStorage:hasStorage, loadTextareas:loadTextareas, add:add } }(); ================================================ FILE: app/assets/javascripts/app/modules/members.js ================================================ Members = function() { var self = this; function initialize(data) { //TODO use data-foo $("#filter_members").searcher({ url : "/manage/members.js", target : $("#members"), behaviour : "live", timeout : 500, extraParams : { 'format' : 'js' }, success: function(data) { $('.pagination').html(data.pagination) } }); $('.filter_input').hide(); } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/messages.js ================================================ Messages = function() { var self = this; function initialize() { $("a#hide_announcement").click(function() { $(".announcement").fadeOut(); $.get($(this).attr("href"), "format=js"); return false; }); } function show(message, t, delay) { $("#notifyBar").remove(); $.notifyBar({ html: "
    "+message+"
    ", delay: delay||3000, animationSpeed: "normal", barClass: "flash" }); } function ajaxErrorHandler(XMLHttpRequest, textStatus, errorThrown) { show("sorry, something went wrong.", "error"); } return { initialize:initialize, show:show, ajaxErrorHandler:ajaxErrorHandler } }(); ================================================ FILE: app/assets/javascripts/app/modules/networks.js ================================================ Networks = function() { var self = this; function initialize(form) { form = form || $('form') form.find(".network-config").hide(); form.find(".network-field").each(function(index, network_field) { network_field = $(network_field); var $network_select = network_field.find("select.network_select"); network_field.delegate("a.save_network", 'click', function(){ var entry = $(this).parents(".network-config-entry"); var network = entry.find("input.network_name").val(); entry.find("input").hide(); entry.find(".text").empty().append(network); entry.find(".buttons").empty(); return false; }); network_field.delegate("a.cancel_network", 'click', function(){ var entry = $(this).parents(".network-config-entry"); var network = entry.find("input.network_name").val(); entry.remove(); $.each($network_select.find('option[data-picked="true"]'), function(i, v) { var opt = $(v); if(opt.text() == network) { opt.attr("data-picked", false); opt.css("color", "black"); return; } }); return false; }); $network_select.change(function() { var networks = network_field.find(".networks"); var opt = $(this).find("option:selected"); if( opt.val() == "") return false; if(opt.attr("data-picked") == "true") return false; opt.attr("data-picked", true); opt.css("color", "grey"); if(opt.text() == "google") { var text = "enter the "+opt.val()+" for your "+opt.text()+ " account:
    "; var config = network_field.find(".network-config").clone(); config.removeClass("network-config"); config.attr("id", ".network-config-"+opt.text()); config.find("input.network_name").val(opt.text()); config.find("input.network_param").hide(); config.addClass("network-config-entry"); config.find(".text").append("google plus one"); config.show(); } else { var text = "enter the "+opt.val()+" for your "+opt.text()+ " account:
    "; var config = network_field.find(".network-config").clone(); config.removeClass("network-config"); config.attr("id", ".network-config-"+opt.text()); config.find("input.network_name").val(opt.text()); config.addClass("network-config-entry"); config.find(".text").append(text); config.show(); } networks.append(config); }); }); } return { initialize:initialize, } }(); ================================================ FILE: app/assets/javascripts/app/modules/notifier.js ================================================ Notifier = function() { var self = this; function initialize() { if(isValid()) { updateCheckbox(); $("#desktop_notifs").click(function() { window.webkitNotifications.requestPermission(); updateCheckbox(); }) } } function sendMessage(title, message, icon) { if(!icon) icon = "/images/rails.png" if(isValid() && isAllowed()) { window.webkitNotifications.createNotification(icon, title, message).show(); } } function isValid() { return window.webkitNotifications != null; } function isAllowed() { return window.webkitNotifications.checkPermission() == 0; } //private function updateCheckbox() { var cbox = $("#desktop_notifs"); var v = window.webkitNotifications.checkPermission(); if(v == 0 && $("#desktop_notifs").is(':not:checked')) { cbox.attr("checked", true) } else { cbox.attr("checked", false) } } return { initialize:initialize, sendMessage:sendMessage, isValid:isAllowed } }(); ================================================ FILE: app/assets/javascripts/app/modules/pages.js ================================================ Pages = function() { var self = this; function initialize($body) { if($body.hasClass("new") || $body.hasClass("edit") || $body.hasClass("create") || $body.hasClass("update") ) { Editor.initialize(); } } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/plans.js ================================================ var Plans = { initialize: function() { $('.users-qty input').change(function(){ $('.total_private').html('$'+$(this).val()*2); }); } } ================================================ FILE: app/assets/javascripts/app/modules/questions.js ================================================ Questions = function() { var self = this; function initialize($body) { if($body.hasClass("show")) { initializeOnShow($body); } else if($body.hasClass("index")) { initializeOnIndex($body); } else if($body.hasClass("new") || $body.hasClass("edit")) { initializeOnNew($body); } else if($body.hasClass("move")) { initializeOnMove($body); } } function initializeOnIndex($body) { Ui.navigateShortcuts($(".questions-index"), ".Question"); $(".Question .toolbar").shapadoToolbar(); Votes.initializeOnQuestions(); if(Questions.isIndexEmpty()){ var current_language = $('.current_language > a').data('language'); if(current_language!='any'){ $('.current_language').tipsy({trigger: 'manual', gravity: 'w'}); $('.current_language').tipsy('show'); } } var extraParams = Utils.urlVars(); extraParams['format'] = 'js'; // FIXME:filter is blocking mongodb $(".quick_question #ask_question").searcher({ url : "/questions/related_questions.js", target : $(".questions-index"), fields : $(".quick_question #ask_question input#question_title"), behaviour : "live", timeout : 500, // minLength: 5, extraParams : extraParams, before_query: function() { $('.quick_question .search-feedback').text("searching questions"); }, success: function(data) { $('.quick_question .search-feedback').text(data.message); $('#additional_info .pagination').html(data.pagination); }, after_reset: function(data) { $('.quick_question .search-feedback').text("type to search"); $('.content-tabs').show(); }, }); $(".flag-link-index").live("click", function(event) { var link = $(this).parents("article.Question").find("h2 a"); if(link) { window.location= link.attr("href")+"#to_flag" } return false; }); } function initializeOnShow($body) { $(".main-question .toolbar").shapadoToolbar({formContainer: "#panel-forms"}); $("article.answer .toolbar").shapadoToolbar({formContainer: ".article-forms", afterFetchForm : function(link, form) { Editor.setup(form.find(".markdown_editor, .wysiwyg_editor")); }}); $(".answer .toolbar, .comment .toolbar").shapadoToolbar({formContainer: ".article-forms", afterFetchForm: function(link, form) { Editor.setup(form.find(".markdown_editor, .wysiwyg_editor")); }}); Rewards.initialize(); Editor.initialize(); Votes.initializeOnQuestion(); Comments.initializeOnQuestion(); Answers.initializeOnQuestion(); if(typeof(Jqmath)!='undefined') Jqmath.initialize(); var anchor = document.location.hash; if(anchor == "#to_flag") { var flag_question = $("a#flag_question") flag_question.trigger('click'); $('html,body').animate({scrollTop: flag_question.offset().top-100}, 1000); } prettyPrint(); } function initializeOnNew($body) { $("#related_questions").hide(); Editor.initialize(); $("#question_tags").ajaxChosen({ method: 'GET', url: '/questions/tags_for_autocomplete.js', dataType: 'json' }, function (data) { var terms = {}; $.each(data, function (i, val) { console.log('i: '+i) console.log('val: '+val) terms[val["value"]] = val["caption"]; }); return terms; }); // FIXME:filter is blocking mongodb $(".ask_question #ask_question").searcher({url : "/questions/related_questions.js", target : $("#related_questions"), fields : $("form#ask_question input[type=text][name*=question]"), behaviour : "focusout", timeout : 2500, extraParams : { 'format' : 'js', 'per_page' : 5, mini: true }, before_query: function(target) { target.show(); }, success: function(data) { if(!data.html) { $("#related_questions").hide(); // TODO: show a message } $("label#rqlabel").show(); } }); var fields = $("#attachments #fields"); var template = fields.find(".template"); template.find("input").attr("name", "question[attachments[id]]"); template.hide(); $("#attachments #fields .attachment_field .remove_attachment").live("click", function(e) { $(this).parent().remove(); return false; }); $(".remove_attachment_link").live("click", function(e) { var url = $(this).attr("href"); var remove = confirm("are you sure?"); //TODO; i18n if (remove) { $.ajax({url: url, dataType: 'json', context: $(this), success: function(data, textStatus, XMLHttpRequest){ $(this).parent().remove(); }}); } return false; }); var count = -1; $("#attachments .add_attachment").live("click", function(e) { var template = fields.find(".template"); var new_field = template.clone(); new_field.removeClass("template"); count++; var new_name = new_field.find("input").attr("name").replace(/(id)/, count); new_field.find("input").attr("name",new_name) new_field.show(); fields.append(new_field); return false; }); } function initializeOnMove(data) { if($('#groups_slug').length){ $('#groups_slug').autocomplete({ source: "/groups/autocomplete_for_group_slug.json", minLength: 1, select: function( event, ui ) { $('#groups_slug').val(ui.item.slug); return false; } }) .data( "autocomplete" )._renderItem = function( ul, item ) { return $( "
  • " ) .data( "item.autocomplete", item ) .append( "" + item.slug + "" ) .appendTo( ul ); }; } } function createOnIndex(data) { var section = $("section.questions-index"); section.prepend(data.html).hide().slideToggle(); } function createOnShow(data) { } function updateOnIndex(data) { var key = "article.Question#"+data.object_id; for(var prop in data.changes) { if(prop == "title") { var n = data.changes[prop].pop(); $(key+" h2 a").text(n); } } } function updateOnShow(data) { var key = "section#question.main-question."+data.object_id; for(var prop in data.changes) { switch(prop) { case "title": { var n = data.changes[prop].pop(); $(key+" h1:first").text(n); } break; case "body": { var n = data.changes[prop].pop(); $(key+" .description").html(n); } break; } } } function isIndexEmpty() { var empty = $('.empty_questions').length; return empty > 0 } function updateWidgets(data) { } return { initialize:initialize, initializeOnIndex:initializeOnIndex, initializeOnShow:initializeOnShow, initializeOnNew:initializeOnNew, initializeOnMove:initializeOnMove, createOnIndex:createOnIndex, createOnShow:createOnShow, updateOnIndex:updateOnIndex, updateOnShow:updateOnShow, isIndexEmpty:isIndexEmpty, updateWidgets:updateWidgets } }(); ================================================ FILE: app/assets/javascripts/app/modules/rewards.js ================================================ Rewards = function() { var self = this; function initialize() { $("#reward_reputation" ).hide(); if(Ui.offline) { $("#reward_reputation" ).hide(); var slider_div = $("#reward_slider"); slider_div.slider({ value:50, min: 50, max: slider_div.data("max"), step: 50, slide: function( event, ui ) { $("#reward_value").text(ui.value); $("#reward_reputation").val( ui.value ); } }); } } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/searches.js ================================================ Searches = function() { var self = this; function initialize($body) { $(".advanced-search").click(function(){ $(".advanced-form").toggleClass("open").slideToggle("slow"); return false; }); } return { initialize:initialize } } ================================================ FILE: app/assets/javascripts/app/modules/shapado_ui.js ================================================ ShapadoUI = function() { var self = this; function newQuestion(data) { if(isOnQuestionIndex()){ Questions.createOnIndex(data); } else if(isOnQuestionShow()) { Questions.createOnShow(data); } else { // update widgets? } } function updateQuestion(data) { if(isOnQuestionIndex()){ Questions.updateOnIndex(data); } else if(isOnQuestionShow()) { Questions.updateOnShow(data); } else { // update widgets? } } function deleteQuestion(data) { $("article.Question#"+data.object_id).fadeOut(); } function newAnswer(data) { if(isOnQuestionIndex()){ Answers.updateOnIndex(data); } else if(isOnQuestionShow()) { Answers.createOnShow(data); } } function updateAnswer(data) { if(isOnQuestionIndex()){ Answers.updateOnIndex(data); } else if(isOnQuestionShow()) { Answers.updateOnShow(data); } } function newComment(data) { if(isOnQuestionShow()) { Comments.createOnShow(data); } } function updateComment(data) { if(isOnQuestionShow()) { Comments.updateOnShow(data); } } function vote(data) { switch(data.on) { case 'Question': { } break; case 'Answer': { Answers.vote(data); } break; } } function newActivity(data) { Activities.createOnIndex(data); } //PRIVATE function isOnQuestionIndex() { // TODO: Use body class return $("section.questions-index")[0] != null; } function isOnQuestionShow() { // TODO: Use body class return $("section.main-question#question")[0] != null; } return { newQuestion:newQuestion, updateQuestion:updateQuestion, deleteQuestion:deleteQuestion, newAnswer:newAnswer, updateAnswer:updateAnswer, newComment:newComment, updateComment:updateComment, vote:vote, newActivity:newActivity } }(); ================================================ FILE: app/assets/javascripts/app/modules/tags.js ================================================ Tags = function() { var self = this; function initialize($body) { if($body.hasClass("index")) { Tags.initializeOnIndex($body); } } function initializeOnIndex($body) { // TODO: Use data-foo $("#filter_tags").find("input[type=submit]").hide(); $("#filter_tags").searcher({ url : "/questions/tags.js", target : $("#tag_table"), behaviour : "live", timeout : 500, extraParams : { 'format' : 'js' }, success: function(data) { $('#tags').hide() } }); } return { initialize:initialize, initializeOnIndex:initializeOnIndex } }(); ================================================ FILE: app/assets/javascripts/app/modules/themes.js ================================================ Themes = function() { var self = this; function initialize($body) { if($body.hasClass("show")) { var message = $body.find("#not_ready") if(message.length > 0) { var show_theme = document.location.href; $.poll(5000, function(retry){ $.getJSON(show_theme+"/ready", {format: "js"}, function(response, status) { if(status == 'success' && (response.ready)) if(response.message) { message.text(response.message); Effects.fade(message); if(show_theme == document.location.href) document.location.href = document.location.href; } else if(response.last_error) { message.text(response.last_error); message.addClass("error"); Effects.fade(message); } else retry(); }); }); } } else if( $body.hasClass("new") || $body.hasClass("edit") || $body.hasClass("create") || $body.hasClass("update")) { $(".show_dialog").click(function(e){ var self = $(this); var target = $('.'+self.data('target')+"-code-editor"); target.dialog({width: ($body.width()-50)}); if(self.data("actived") != "1") { target.find("textarea.code").each(function(i, e){ CodeMirror.fromTextArea(e, {lineNumbers: true, theme: "default", mode: $(e).data("lang")}); }); self.data({"actived": "1"}); } return false; }); } else if($body.hasClass("index")) { $(".import_theme").click(function() { $(".import_dialog").dialog(); }); } } return { initialize:initialize } }(); ================================================ FILE: app/assets/javascripts/app/modules/ui.js ================================================ Ui = function() { var self = this; function initialize() { initDropdowns(); initQuickQuestion(); Auth.dropdownToggle(); Auth.positionDropdown(); initializeAjaxTooltips(); initializeSmoothScrollToTop(); Form.initialize(); } $('[rel=tipsy]').tipsy({gravity: 's'}); $('.tipsy-plans').tipsy({gravity: 'e', opacity: 1}); $('.lang-option').click(function(){ var path = $('#lang-select-toggle').data('language'); var language = $(this).data('language'); $.ajax({type: 'POST', url: path, data: {'language[filter]': language}, success: function(){window.location.reload()} }); }); sortValues('#group_language', 'option', ':last', 'text', null); sortValues('#user_language', 'option', false, 'text', null); sortValues('#lang_opts', '.radio_option', false, 'attr', 'id'); sortValues('select#question_language', 'option', false, 'text', null); if(offline()) { $("a[data-login-required], .toggle-action, .not_member").on('click', function(e) { e.preventDefault(); Auth.startLoginDialog(); }); // $(document.body).delegate("#ask_question,.plans-form,.downgrade-form", "submit", function(event) { $(document.body).delegate("#ask_question", "submit", function(event) { if(Ui.offline()){ Auth.startLoginDialog(); return false; } }); $(document.body).delegate("#join_dialog_link", "click", function(event) { Groups.join(this); }); $(document.body).delegate("click", ".join_group", function(event) { if(!$(this).hasClass('email')){ Auth.startLoginDialog($(this).text(),1); return false; } else {document.location=$(this).attr('href')} }); $(".toggle-action").on("ajax:success", function(xhr, data, status) { if(data.success) { var link = $(this); var href = link.attr('href'), title = link.attr('title'), text = link.data('ujs:enable-with'); var dataUndo = link.data('undo'), dataTitle = link.data('title'), dataText = link.data('text'); var img = link.children('img'); var counter = $(link.data('counter')); link.attr({href: dataUndo, title: dataTitle }); link.data({'undo': href, 'title': title, 'text': text}); if(dataText && $.trim(dataText)!=''){ link.text(dataText); link.data('ujs:enable-with', dataText); } img.attr({src: img.data('src'), 'data-src': img.attr('src')}); if(typeof(link.data('increment'))!='undefined') { counter.text(parseFloat($.trim(counter.text()))+link.data('increment')); } Messages.show(data.message, "notice"); } }); } function initializeFeedback() { var feedback = $("#feedbackform"); feedback.dialog({ title: "Feedback", autoOpen: false, modal: true, width:"420px" }); $('#feedbackform .cancel-feedback').click(function(){ $("#feedbackform").dialog('close'); return false; }); $('#feedback').click(function(){ var isOpen = feedback.dialog('isOpen'); if (isOpen){ feedback.dialog('close'); } else { feedback.dialog('open'); } return false; }); } function sortValues(selectID, child, keepers, method, arg) { if(keepers){ var any = $(selectID+' '+child+keepers); any.remove(); } var sortedVals = $.makeArray($(selectID+' '+child)).sort(function(a,b){ return $(a)[method](arg) > $(b)[method](arg) ? 1: -1; }); $(selectID).html(sortedVals); if(keepers) $(selectID).prepend(any); // needed for firefox: $(selectID).val($(selectID+' '+child+'[selected=selected]').val()); } function offline() { return $('.offline').length>0 || notMember(); } function notMember() { return $('.not_member').length>0; } function centerScroll(tag, container) { container = container || $('html,body'); viewportHeight = $(window).height(); if(window.innerHeight) viewportHeight = window.innerHeight; var top = tag.offset().top - (viewportHeight/2.0); container.scrollTop(top); } function navigateShortcuts(container, element_selector) { elements = container.find(element_selector); var first_element = elements[0]; if(first_element) { $(first_element).addClass("active"); } container.on("click", element_selector, function(ev) { elements.removeClass("active"); next = $(this); next.addClass("active"); }); $(document).keydown(function(ev) { if(container.is(':visible')) { current_element = $(container.find(element_selector+'.active')); moved = false; next = null; if(ev.keyCode == 74){ next = current_element.next(element_selector); } else if(ev.keyCode == 75){ next = current_element.prev(element_selector); } if(next && next.length > 0) { current_element.removeClass("active"); next.addClass("active"); Ui.center_scroll(next); } } }); } function initializeLangFields(container) { var fields = (container||$('body')).find('.lang-fields'); if(fields.length > 0){ fields.tabs(); } } function initializeSmoothScrollToTop() { $(".top-bar").click(function(e) { var isTopBar = $(e.target).hasClass('top-bar'); if(isTopBar) $("html, body").animate({ scrollTop: 0 }, "fast"); }); } function initializeAjaxTooltips() { $(document.body).on("mouseleave, scroll",".markdown, .toolbar, .Question, .comment-content, .tag-list, .user-data, .tooltip", function(event) { $(".tooltip").hide(); }); $(document.body).on("mouseenter", ".toolbar, .markdown, .Question, .comment-content, .tag-list, .user-data", function(event) { $(".tooltip").hide(); }); $(document.body).on("hover", ".ajax-tooltip", function(event) { var url = $(this).attr('href'); var tag_link = $(this); $('.tooltip').hide(); if(tag_link.data('tooltip')==1){ var tooltip = tag_link.next('.tooltip'); tooltip.show(); //.delay(1800).fadeIn(400).delay(1800); return false; } $.ajax({ url: url+'?tooltip=1', dataType: 'json', success: function(data){ $(".tooltip").hide(); tag_link.removeAttr('title'); tag_link.data('tooltip', 1); tag_link.after(data.html) var tooltip = tag_link.next('.tooltip'); tooltip.css({'display': 'block'}); tooltip.position({at: 'top center', of: tag_link, my: 'bottom', collision: 'fit fit'}) }}) return false; }) } //Private function initDropdowns() { $('ul.menubar').droppy({ className: 'dropHover', autoArrows: false, trigger: 'click' }); $('ul.menubar .has-subnav').click(function(e) { e.preventDefault(); }); } function initQuickQuestion() { var quick_question = $('.quick_question'); quick_question.find('.buttons-quickq').hide(); quick_question.find('form input[type=text]').focus(function(){ quick_question.find('.buttons-quickq').show(); }); } return { initialize:initialize, initializeFeedback:initializeFeedback, sortValues:sortValues, offline:offline, notMember:notMember, centerScroll:centerScroll, navigateShortcuts:navigateShortcuts, initializeLangFields:initializeLangFields, initializeSmoothScrollToTop:initializeSmoothScrollToTop, initializeAjaxTooltips:initializeAjaxTooltips } }(); ================================================ FILE: app/assets/javascripts/app/modules/updater.js ================================================ Updater = function() { var self = this; function initialize($body) { var $main_content_wrap = $("#main-content-wrap"); var current, prev, refreshed; setupLoadingIcon(); current = guessCurrentLayout(); $(document.body).on("click", "a.pjax", function(ev) { var link = $(this); prev = current; current = link.data("layout"); var current_page_layout = link.data("page-layout"); var parent = link.parent(); var gparent = parent.parent(); if(gparent[0].tagName == "UL") { $(".widget-links ul li").removeClass('active'); parent.addClass("active"); if(parent.hasClass("answers") || parent.hasClass("questions") || parent.hasClass("unanswered") || parent.hasClass("activities")) { $main_content_wrap.removeClass(); $main_content_wrap.addClass(parent.attr("class")); } } var data = {_pjax: true}; if(prev && prev != current){ refreshed = data._refresh = true; } // adsense is incompatible with pjax http://goo.gl/ieq2u // TODO remove this once adsense is compatible with html5 history if($('.widget-adsense').length > 0 && refreshed){ return true; } $.pjax({ data: data, timeout: 10000, url: $(this).attr("href"), container: '#main-content-wrap', success: function(data, state, xhr) { var body = $(document.body); var body_class = xhr.getResponseHeader('x-bodyclass') if(current_page_layout) body_class += ' ' + current_page_layout body.attr({"class": body_class}); Loader.refresh(body, refreshed); return false; } }); ev.preventDefault(); return false; }); } function setupLoadingIcon() { var text = 'Loading...'; if(typeof I18n.loading !== 'undefined'){ text = I18n.loading; } $("#main-content-wrap").bind('start.pjax', function() { var h = $( "
    " + "" + "

    " + text + "

    " + "
    " ); $("body").prepend(h); h.css({ top: $(window).scrollTop() + $(window).height() / 2 }); h.show(); }); $("#main-content-wrap").bind('end.pjax', function() { $(".loading-box").remove(); }); } function guessCurrentLayout() { var layout = ''; var page = $(document.body); if(page.hasClass('questions-controller index')) { layout = 'index'; } else if(page.hasClass('questions-controller show')) { layout = 'question'; } else if(page.hasClass('users-controller show')) { layout = 'user'; } else if(page.hasClass('badges-controller')) { layout = 'badges'; } else if(page.hasClass('pages-controller')) { layout = 'pages'; } else if(page.hasClass('questions-controller new')) { layout = 'new-question'; } else if(page.hasClass('admin-members-controller')) { layout = 'manage-members'; } else if(page.hasClass('admin-announcements-controller')) { layout = 'manage-announcements'; } else { layout = "index" // FIXME } return layout; } return { initialize:initialize, setupLoadingIcon:setupLoadingIcon, guessCurrentLayout:guessCurrentLayout } }(); ================================================ FILE: app/assets/javascripts/app/modules/users.js ================================================ Users = function() { var self = this; function initialize($body) { if($body.hasClass("index")) { Users.initializeOnIndex($body); } else if($body.hasClass("edit")) { Networks.initialize($body); } } function initializeOnEdit($body) { if($body.hasClass("index")) { Users.initialize_on_index($body); } else if($body.hasClass("edit")) { Networks.initialize($body); } } function initializeOnIndex($body) { $("#filter_users input[type=submit]").remove(); $("#filter_users").searcher({ url : "/users.js", target : $("#users"), behaviour : "live", timeout : 500, extraParams : { 'format' : 'js' }, success: function(data) { $('#additional_info .pagination').html(data.pagination) } }); } function initializeOnShow($body) { $('#user_language').chosen(); $('#user_timezone').chosen(); $('#user_preferred_languages').chosen(); } return { initialize:initialize, initializeOnIndex:initializeOnIndex, initializeOnShow:initializeOnShow } }(); ================================================ FILE: app/assets/javascripts/app/modules/utils.js ================================================ Utils = function() { var self=this; function urlVars() { var vars = {}, hash; var hashes = {} if(window.location.href.indexOf('?') > 0) { window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); } for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars[hash[0]] = hash[1]; } return vars; } function appendParams(url, params) { if(url.indexOf('?')==-1) url += '?'+params; else url += '&'+params; return url; } function log(data) { window.console && window.console.log(data); } return { urlVars:urlVars, appendParams:appendParams, log:log } }(); ================================================ FILE: app/assets/javascripts/app/modules/votes.js ================================================ Votes = function() { var self=this; function initialize() { } function initializeOnQuestions() { $(".quick-vote-button").live("click", function(event) { var btn = $(this); btn.hide(); var src = btn.attr('src'); if (src.indexOf('/images/dialog-ok.png') == 0){ var btn_name = $(this).attr("name") var form = $(this).parents("form"); $.post(form.attr("action"), form.serialize()+"&"+btn_name+"=1", function(data){ if(data.success){ btn.parents('.item').find('.votes .counter').text(data.average); btn.attr('src', '/images/dialog-ok-apply.png'); Messages.show(data.message, "notice") } else { Messages.show(data.message, "error") if(data.status == "unauthenticate") { window.onbeforeunload = null; window.location="/users/login" } } btn.show(); }, "json"); } return false; }); } function initializeOnQuestion() { $(".answer").delegate("form.vote_form button", "click", function(event) { if(Ui.offline()){ Auth.startLoginDialog(); } else { var btn_name = $(this).attr("name"); var form = $(this).parents("form"); $.post(form.attr("action")+'.js', form.serialize()+"&"+btn_name+"=1", function(data){ if(data.success){ form.find(".votes_average").text(data.average); if(data.vote_state == "destroyed") { form.find("button").removeClass("checked"); } else { if(data.vote_state == "updated") { form.find("button").removeClass("checked"); } if(data.vote_type == "vote_down") { form.find("button.negative").addClass("checked"); } else { form.find("button.positive").addClass("checked"); } } Messages.show(data.message, "notice"); } else { Messages.show(data.message, "error"); if(data.status == "unauthenticate") { window.onbeforeunload = null; window.location="/users/login"; } } }, "json"); } return false; }); } function updateOnIndex(data) { } function updateOnShow(data) { } return { initialize:initialize, initializeOnQuestions:initializeOnQuestions, initializeOnQuestion:initializeOnQuestion, updateOnIndex:updateOnIndex, updateOnShow:updateOnShow } }(); ================================================ FILE: app/assets/javascripts/app/modules/websocket.js ================================================ ShapadoSocket = function() { var self=this, $config; function initialize() { WEB_SOCKET_SWF_LOCATION = "/javascripts/web-socket-js/WebSocketMain.swf"; $config = $("#websocket"); this.error_count = 0; this.ws = new WebSocket("ws://"+$config.data("host")+":34567/"); this.socket_key = null; this.ws.onmessage = function(evt) { ShapadoSocket.parse(evt.data); }; window.webSocketError = function(message) { console.error(decodeURIComponent(message)); ShapadoSocket.error_count += 1; } this.ws.onclose = function() { if(ShapadoSocket.error_count < 3) setTimeout(ShapadoSocket.initialize, 5000) }; this.ws.onopen = function() { ShapadoSocket.send({id: 'start', key: $config.data("key"), channel_id: $config.data("group")}); }; } function addChatMessage(from, message) { $("#chat_div").chatbox("option", "boxManager").addMsg(from, message); } function parse(data) { var data = JSON.parse(data); window.console && console.log("received: "); window.console && console.log(data); switch(data.id) { case 'chatmessage': { addChatMessage(data.from, data.message); } break; case 'newquestion': { ShapadoUI.newQuestion(data); } break; case 'updatequestion': { ShapadoUI.updateQuestion(data); } break; case 'destroyquestion': { ShapadoUI.deleteQuestion(data); } break; case 'newanswer': { ShapadoUI.newAnswer(data); } break; case 'updateanswer': { ShapadoUI.updateAnswer(data); } break; case 'vote': { ShapadoUI.vote(data); } break; case 'newcomment': { ShapadoUI.newComment(data); } break; case 'updatedcomment': { ShapadoUI.updateComment(data); } break; case 'newactivity': { ShapadoUI.newActivity(data); } break; } } function send(data) { this.ws.send(JSON.stringify(data)) } return { initialize:initialize, addChatMessage:addChatMessage, parse:parse, send:send } }(); ================================================ FILE: app/assets/javascripts/app/modules/widgets.js ================================================ Widgets = function() { var self=this; function initialize(data) { Networks.initialize(); var widget = $('.widget-container'); $('a.delete-widget').bind('ajax:success', function() { var link = $(this); var parent = link.parents('.widget-container'); parent.remove(); return false; }); var dialogContainer = $('#edit-widget-dialog'); widget.delegate('.edit_widget', 'click', function(event) { var link = $(this); var parent = link.parents('.widget-container'); var display = parent.find('.widget-info'); var preview = display.find('.widget'); $.ajax( link.attr('href'), { dataType: 'json', data: {format: 'js'}, success: function(data) { var form = $(data.html); Ui.initializeLangFields(form); dialogContainer.html(form); var dialog = dialogContainer.dialog({modal: true, minWidth: 620, title: link.data('title')}); form.find('.cancel').bind('click', function(event) { dialogContainer.dialog("close"); return false; }); if(form.attr('id').match(/edit_group_networks_widget/)) { Networks.initialize(form); } } }); return false; }); $('#widget_position').change(function() { var opt = $(this).find("option:selected"); $('.select-widget .zone img').attr({src: '/images/zone-'+opt.val()+'.gif'}); $('.zone .name').text(opt.text()) }); } function createOnIndex(data) { } function createOnShow(data) { } function updateOnIndex(data) { } function updateOnShow(data) { } return { initialize:initialize, createOnIndex:createOnIndex, createOnShow:createOnShow, updateOnIndex:updateOnIndex, updateOnShow:updateOnShow } }(); ================================================ FILE: app/assets/javascripts/application-init.js ================================================ function initialize_all() { }; // $(document).ready(function() { // initialize_all(); // }); ================================================ FILE: app/assets/javascripts/application.js ================================================ //= require jquery-ui //= require jquery_ujs //= require app/modules/effects.js //= require vendor/chosen.jquery.min.js //= require vendor/ajax-chosen.js //= require vendor/jquery.cookie.js //= require vendor/jquery.pjax.js //= require tipsy/jquery.tipsy.js //= require jpicker.js //= require app/modules/app_config.js //= require app/modules/ui.js //= require app/modules/shapado_ui.js //= require app/modules/websocket.js //= require app/modules/authentication.js //= require app/modules/local_storage.js //= require app/modules/messages.js //= require app/modules/votes.js //= require app/modules/plans.js //= require app/modules/questions.js //= require app/modules/answers.js //= require app/modules/comments.js //= require app/modules/members.js //= require app/modules/rewards.js //= require app/modules/activities.js //= require app/modules/tags.js //= require app/modules/utils.js //= require app/modules/groups.js //= require app/modules/users.js //= require app/modules/pages.js //= require app/modules/loader.js //= require app/modules/updater.js //= require app/modules/layout_editor.js //= require app/initializers/search.js //= require app/initializers/retag.js //= require app/initializers/shapado_toolbar.js //= require vendor/jquery.droppy.js //= require app/modules/invitations.js //= require application-init.js //= require vendor/jquery.textarea.js //= require vendor/jHtmlArea.js //= require vendor/highlight/prettify.js //= require app/modules/editor.js //= require vendor/showdown.js //= require app/modules/rewards.js //= require app/initializers/single/question.js //= require app/modules/notifier.js //= require vendor/jquery.notifyBar.js //= require app/modules/form.js //= require app/modules/geo.js //= require app/modules/networks.js //= require app/modules/widgets.js //= require vendor/jquery.smart-poll.js //= require app/modules/themes.js //= require app/main.js ================================================ FILE: app/assets/javascripts/codemirror.js ================================================ //= require codemirror/codemirror.js //= require codemirror/mode/javascript/javascript.js //= require codemirror/mode/css/css.js //= require codemirror/mode/xml/xml.js //= require codemirror/mode/htmlmixed/htmlmixed.js ================================================ FILE: app/assets/javascripts/facebook_app/facebox/facebox.css ================================================ #facebox { position: absolute; top: 0; left: 0; z-index: 100; text-align: left; } #facebox .popup{ position:relative; border:3px solid rgba(0,0,0,0); -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; -webkit-box-shadow:0 0 18px rgba(0,0,0,0.4); -moz-box-shadow:0 0 18px rgba(0,0,0,0.4); box-shadow:0 0 18px rgba(0,0,0,0.4); } #facebox .content { display:table; width: 370px; padding: 10px; background: #fff; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; } #facebox .content > p:first-child{ margin-top:0; } #facebox .content > p:last-child{ margin-bottom:0; } #facebox .close{ position:absolute; top:5px; right:5px; padding:2px; background:#fff; } #facebox .close img{ opacity:0.3; } #facebox .close:hover img{ opacity:1.0; } #facebox .loading { text-align: center; } #facebox .image { text-align: center; } #facebox img { border: 0; margin: 0; } #facebox_overlay { position: fixed; top: 0px; left: 0px; height:100%; width:100%; } .facebox_hide { z-index:-100; } .facebox_overlayBG { background-color: #000; z-index: 99; } ================================================ FILE: app/assets/javascripts/facebook_app/facebox/facebox.js ================================================ /* * Facebox (for jQuery) * version: 1.2 (05/05/2008) * @requires jQuery v1.2 or later * * Examples at http://famspam.com/facebox/ * * Licensed under the MIT: * http://www.opensource.org/licenses/mit-license.php * * Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ] * * Usage: * * jQuery(document).ready(function() { * jQuery('a[rel*=facebox]').facebox() * }) * * Terms * Loads the #terms div in the box * * Terms * Loads the terms.html page in the box * * Terms * Loads the terms.png image in the box * * * You can also use it programmatically: * * jQuery.facebox('some html') * jQuery.facebox('some html', 'my-groovy-style') * * The above will open a facebox with "some html" as the content. * * jQuery.facebox(function($) { * $.get('blah.html', function(data) { $.facebox(data) }) * }) * * The above will show a loading screen before the passed function is called, * allowing for a better ajaxy experience. * * The facebox function can also display an ajax page, an image, or the contents of a div: * * jQuery.facebox({ ajax: 'remote.html' }) * jQuery.facebox({ ajax: 'remote.html' }, 'my-groovy-style') * jQuery.facebox({ image: 'stairs.jpg' }) * jQuery.facebox({ image: 'stairs.jpg' }, 'my-groovy-style') * jQuery.facebox({ div: '#box' }) * jQuery.facebox({ div: '#box' }, 'my-groovy-style') * * Want to close the facebox? Trigger the 'close.facebox' document event: * * jQuery(document).trigger('close.facebox') * * Facebox also has a bunch of other hooks: * * loading.facebox * beforeReveal.facebox * reveal.facebox (aliased as 'afterReveal.facebox') * init.facebox * afterClose.facebox * * Simply bind a function to any of these hooks: * * $(document).bind('reveal.facebox', function() { ...stuff to do after the facebox and contents are revealed... }) * */ (function($) { $.facebox = function(data, klass) { $.facebox.loading() if (data.ajax) fillFaceboxFromAjax(data.ajax, klass) else if (data.image) fillFaceboxFromImage(data.image, klass) else if (data.div) fillFaceboxFromHref(data.div, klass) else if ($.isFunction(data)) data.call($) else $.facebox.reveal(data, klass) } /* * Public, $.facebox methods */ $.extend($.facebox, { settings: { opacity : 0.2, overlay : true, loadingImage : '/javascripts/facebook_app/facebox/loading.gif', closeImage : '/javascripts/facebook_app/facebox/closelabel.png', imageTypes : [ 'png', 'jpg', 'jpeg', 'gif' ], faceboxHtml : '\ ' }, loading: function() { init() if ($('#facebox .loading').length == 1) return true showOverlay() $('#facebox .content').empty() $('#facebox .body').children().hide().end(). append('
    ') $('#facebox').css({ top: getPageScroll()[1] + (getPageHeight() / 10), left: $(window).width() / 2 - 205 }).show() $(document).bind('keydown.facebox', function(e) { if (e.keyCode == 27) $.facebox.close() return true }) $(document).trigger('loading.facebox') }, reveal: function(data, klass) { $(document).trigger('beforeReveal.facebox') if (klass) $('#facebox .content').addClass(klass) $('#facebox .content').append(data) $('#facebox .loading').remove() $('#facebox .body').children().fadeIn('normal') $('#facebox').css('left', $(window).width() / 2 - ($('#facebox .popup').width() / 2)) $(document).trigger('reveal.facebox').trigger('afterReveal.facebox') }, close: function() { $(document).trigger('close.facebox') return false } }) /* * Public, $.fn methods */ $.fn.facebox = function(settings) { if ($(this).length == 0) return init(settings) function clickHandler() { $.facebox.loading(true) // support for rel="facebox.inline_popup" syntax, to add a class // also supports deprecated "facebox[.inline_popup]" syntax var klass = this.rel.match(/facebox\[?\.(\w+)\]?/) if (klass) klass = klass[1] fillFaceboxFromHref(this.href, klass) return false } return this.bind('click.facebox', clickHandler) } /* * Private methods */ // called one time to setup facebox on this page function init(settings) { if ($.facebox.settings.inited) return true else $.facebox.settings.inited = true $(document).trigger('init.facebox') makeCompatible() var imageTypes = $.facebox.settings.imageTypes.join('|') $.facebox.settings.imageTypesRegexp = new RegExp('\.(' + imageTypes + ')$', 'i') if (settings) $.extend($.facebox.settings, settings) $('body').append($.facebox.settings.faceboxHtml) var preload = [ new Image(), new Image() ] preload[0].src = $.facebox.settings.closeImage preload[1].src = $.facebox.settings.loadingImage $('#facebox').find('.b:first, .bl').each(function() { preload.push(new Image()) preload.slice(-1).src = $(this).css('background-image').replace(/url\((.+)\)/, '$1') }) $('#facebox .close').click($.facebox.close) $('#facebox .close_image').attr('src', $.facebox.settings.closeImage) } // getPageScroll() by quirksmode.com function getPageScroll() { var xScroll, yScroll; if (self.pageYOffset) { yScroll = self.pageYOffset; xScroll = self.pageXOffset; } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict yScroll = document.documentElement.scrollTop; xScroll = document.documentElement.scrollLeft; } else if (document.body) {// all other Explorers yScroll = document.body.scrollTop; xScroll = document.body.scrollLeft; } return new Array(xScroll,yScroll) } // Adapted from getPageSize() by quirksmode.com function getPageHeight() { var windowHeight if (self.innerHeight) { // all except Explorer windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowHeight = document.body.clientHeight; } return windowHeight } // Backwards compatibility function makeCompatible() { var $s = $.facebox.settings $s.loadingImage = $s.loading_image || $s.loadingImage $s.closeImage = $s.close_image || $s.closeImage $s.imageTypes = $s.image_types || $s.imageTypes $s.faceboxHtml = $s.facebox_html || $s.faceboxHtml } // Figures out what you want to display and displays it // formats are: // div: #id // image: blah.extension // ajax: anything else function fillFaceboxFromHref(href, klass) { // div if (href.match(/#/)) { var url = window.location.href.split('#')[0] var target = href.replace(url,'') if (target == '#') return $.facebox.reveal($(target).html(), klass) // image } else if (href.match($.facebox.settings.imageTypesRegexp)) { fillFaceboxFromImage(href, klass) // ajax } else { fillFaceboxFromAjax(href, klass) } } function fillFaceboxFromImage(href, klass) { var image = new Image() image.onload = function() { $.facebox.reveal('
    ', klass) } image.src = href } function fillFaceboxFromAjax(href, klass) { $.get(href, function(data) { $.facebox.reveal(data, klass) }) } function skipOverlay() { return $.facebox.settings.overlay == false || $.facebox.settings.opacity === null } function showOverlay() { if (skipOverlay()) return if ($('#facebox_overlay').length == 0) $("body").append('
    ') $('#facebox_overlay').hide().addClass("facebox_overlayBG") .css('opacity', $.facebox.settings.opacity) .click(function() { $(document).trigger('close.facebox') }) .fadeIn(200) return false } function hideOverlay() { if (skipOverlay()) return $('#facebox_overlay').fadeOut(200, function(){ $("#facebox_overlay").removeClass("facebox_overlayBG") $("#facebox_overlay").addClass("facebox_hide") $("#facebox_overlay").remove() }) return false } /* * Bindings */ $(document).bind('close.facebox', function() { $(document).unbind('keydown.facebox') $('#facebox').fadeOut(function() { $('#facebox .content').removeClass().addClass('content') $('#facebox .loading').remove() $(document).trigger('afterClose.facebox') }) hideOverlay() }) })(jQuery); ================================================ FILE: app/assets/javascripts/facebook_app/init.js ================================================ var FbQuestions = { initialize: function() { if($(".unauthenticated").length > 0) { $("input, textarea").focus(function() { Auth.openPopup('/users/auth/facebook'); $(this).blur(); return false; }); $(".require_login").click(function() { Auth.openPopup('/users/auth/facebook'); return false; }); } $(".markdown a, a[rel=external]").click(function() { var u = $(this).attr("href"); window.open(u); return false; }); $("article.Question h3 a").click(function() { var l = $(this); var q = l.parents("article.Question"); q.find(".question-body").slideToggle(); return false; }); $(".quick_question form").submit(function() { var f = $(this); var step1 = f.find(".step1"); var step2 = f.find(".step2"); var href = f.attr("action"); if(!step2.is(':visible')) { step2.slideDown(); } else { $.ajax({ url: href+'.js', dataType: 'json', type: "POST", data: f.serialize()+"&facebook=1", success: function(data){ if(data.success){ step2.slideUp(); Messages.show(data.message, "notice"); $("section.questions-index").prepend(data.html); } else { Messages.show(data.message, "error"); if(data.status == "unauthenticate") { Auth.openPopup("/users/auth/facebook"); } } }, error: Messages.ajax_error_handler, complete: function(XMLHttpRequest, textStatus) { } }); } return false; }); $("form.new_answer").submit(function() { var f = $(this); var href = f.attr("action"); $.ajax({ url: href+'.js', dataType: 'json', type: "POST", data: f.serialize()+"&facebook=1", success: function(data){ if(data.success){ Messages.show(data.message, "notice"); $("article.Question#"+data.question_id+" .answers-list").prepend(data.html); } else { Messages.show(data.message, "error"); if(data.status == "unauthenticate") { Auth.openPopup("/users/auth/facebook"); } } }, error: Messages.ajax_error_handler, complete: function(XMLHttpRequest, textStatus) { } }); return false; }); $("a.follow_question").click(function() { console.lo("!!!") var l = $(this); var href = $(this).attr("href"); $.get(href+".js", function(data) { Messages.show(data.message, 'notice'); }, 'json'); return false; }); } }; var FbUsers = { initialize: function() { $('a[href^="/users/"]').click(function(e) { var href = $(this).attr("href"); href = Utils.append_params(href, "format=js&facebook=1"); $.facebox(function() { $.get(href, function(data, status, jqXHR) { Utils.log(data); $.facebox(data.html); }, "JSON"); }); return false; }); } }; $(document).ready(function() { $current_group = $("body").attr("data-group"); FbQuestions.initialize(); FbUsers.initialize(); }); ================================================ FILE: app/assets/javascripts/i18n/af.js ================================================ /** Messages for Afrikaans (Afrikaans) * Exported from translatewiki.net * * Translators: * - Naudefj */ var I18n = { on_leave_page: "U kan u veranderinge verloor" }; ================================================ FILE: app/assets/javascripts/i18n/be-Tarask.js ================================================ /** Messages for Belarusian (Taraškievica orthography) (‪беларуская (тарашкевіца)‬) * Exported from translatewiki.net * * Translators: * - Jim-by */ var I18n = { on_leave_page: "Вашыя зьмены могуць быць страчаныя", loading: "Загрузка…" }; ================================================ FILE: app/assets/javascripts/i18n/br.js ================================================ /** Messages for Breton (brezhoneg) * Exported from translatewiki.net * * Translators: * - Siebrand */ var I18n = { on_leave_page: "Marteze emaoc\'h o vont da goll kemmoù bet degaset d\'ar bajenn-mañ" }; ================================================ FILE: app/assets/javascripts/i18n/ca.js ================================================ /** Messages for Catalan (català) * Exported from translatewiki.net * * Translators: * - Gemmaa * - Papapep */ var I18n = { on_leave_page: "Podeu perdre els vostres canvis", loading: "Carregant..." }; ================================================ FILE: app/assets/javascripts/i18n/da.js ================================================ /** Messages for Danish (dansk) * Exported from translatewiki.net * * Translators: * - Emilkris33 */ var I18n = { on_leave_page: "Du kan miste dine ændringer" }; ================================================ FILE: app/assets/javascripts/i18n/de.js ================================================ /** Messages for German (Deutsch) * Exported from translatewiki.net * * Translators: * - Kghbln * - Siebrand */ var I18n = { on_leave_page: "Deine Änderungen könnten verloren gehen", loading: "Lade …" }; ================================================ FILE: app/assets/javascripts/i18n/el.js ================================================ /** Messages for Greek (Ελληνικά) * Exported from translatewiki.net * * Translators: * - Siebrand */ var I18n = { on_leave_page: "Μπορεί να χάσετε τις αλλαγές σας" }; ================================================ FILE: app/assets/javascripts/i18n/en.js ================================================ /** Messages for English (English) * Exported from translatewiki.net * */ var I18n = { on_leave_page: "You may lose your changes", loading: "Loading..." }; ================================================ FILE: app/assets/javascripts/i18n/eo.js ================================================ /** Messages for Esperanto (Esperanto) * Exported from translatewiki.net * * Translators: * - Darkweasel */ var I18n = { on_leave_page: "Vi eble perdos viajn ŝanĝojn" }; ================================================ FILE: app/assets/javascripts/i18n/es-419.js ================================================ /** Messages for Latin American Spanish (espanol de America Latina) * Exported from translatewiki.net * * Translators: * - Siebrand */ var I18n = { on_leave_page: "Podrias perder tus cambios" }; ================================================ FILE: app/assets/javascripts/i18n/es.js ================================================ /** Messages for Spanish (español) * Exported from translatewiki.net * * Translators: * - Patcito */ var I18n = { on_leave_page: "Podrías perder tus cambios", loading: "Cargando..." }; ================================================ FILE: app/assets/javascripts/i18n/fa.js ================================================ /** Messages for Persian (فارسی) * Exported from translatewiki.net * * Translators: * - MindHammerGames */ var I18n = { on_leave_page: "ممکن است تغییراتی که انجام داده اید را از دست بدهید" }; ================================================ FILE: app/assets/javascripts/i18n/fi.js ================================================ /** Messages for Finnish (suomi) * Exported from translatewiki.net * * Translators: * - Centerlink */ var I18n = { on_leave_page: "Saatat menettää tekemäsi muutokset", loading: "Ladataan…" }; ================================================ FILE: app/assets/javascripts/i18n/fr.js ================================================ /** Messages for French (français) * Exported from translatewiki.net * * Translators: * - Jean-Frédéric * - Siebrand */ var I18n = { on_leave_page: "Vous pourriez perdre des modifications faits à cette page", loading: "Chargement…" }; ================================================ FILE: app/assets/javascripts/i18n/fur.js ================================================ /** Messages for Friulian (furlan) * Exported from translatewiki.net * * Translators: * - Klenje */ var I18n = { on_leave_page: "Tu podaressis pierdi i tiei cambiaments" }; ================================================ FILE: app/assets/javascripts/i18n/gl.js ================================================ /** Messages for Galician (galego) * Exported from translatewiki.net * * Translators: * - Siebrand * - Toliño */ var I18n = { on_leave_page: "Pode perder as súas modificacións", loading: "Cargando..." }; ================================================ FILE: app/assets/javascripts/i18n/he.js ================================================ /** Messages for Hebrew (עברית) * Exported from translatewiki.net * * Translators: * - YaronSh */ var I18n = { on_leave_page: "השינויים שלך עלולים ללכת לאיבוד" }; ================================================ FILE: app/assets/javascripts/i18n/hu.js ================================================ /** Messages for Hungarian (magyar) * Exported from translatewiki.net * * Translators: * - Dani * - Dj */ var I18n = { on_leave_page: "Lehet, hogy elveszíted a változtatásaidat", loading: "Betöltés…" }; ================================================ FILE: app/assets/javascripts/i18n/ia.js ================================================ /** Messages for Interlingua (interlingua) * Exported from translatewiki.net * * Translators: * - McDutchie */ var I18n = { on_leave_page: "Tu poterea perder tu modificationes", loading: "Cargamento in curso…" }; ================================================ FILE: app/assets/javascripts/i18n/id.js ================================================ /** Messages for Indonesian (Bahasa Indonesia) * Exported from translatewiki.net * * Translators: * - Farras */ var I18n = { on_leave_page: "Perubahan yang Anda buat akan hilang" }; ================================================ FILE: app/assets/javascripts/i18n/ig.js ================================================ /** Messages for Igbo (Igbo) * Exported from translatewiki.net * * Translators: * - Ukabia */ var I18n = { on_leave_page: "Ihe Í rürü nwèríkí fù éfù" }; ================================================ FILE: app/assets/javascripts/i18n/it.js ================================================ /** Messages for Italian (italiano) * Exported from translatewiki.net * * Translators: * - Danmaz74 * - Giallu */ var I18n = { on_leave_page: "Le modifiche potrebbero andare perse", loading: "Caricamento in corso…" }; ================================================ FILE: app/assets/javascripts/i18n/ja.js ================================================ /** Messages for Japanese (日本語) * Exported from translatewiki.net * * Translators: * - Shirayuki */ var I18n = { on_leave_page: "変更内容を失う恐れがあります" }; ================================================ FILE: app/assets/javascripts/i18n/ksh.js ================================================ /** Messages for Colognian (Ripoarisch) * Exported from translatewiki.net * * Translators: * - Purodha */ var I18n = { on_leave_page: "Ding Änderonge künnte verschött jonn" }; ================================================ FILE: app/assets/javascripts/i18n/lb.js ================================================ /** Messages for Luxembourgish (Lëtzebuergesch) * Exported from translatewiki.net * * Translators: * - Robby */ var I18n = { on_leave_page: "Et ka sinn datt Är Ännerunge verluer ginn" }; ================================================ FILE: app/assets/javascripts/i18n/mk.js ================================================ /** Messages for Macedonian (македонски) * Exported from translatewiki.net * * Translators: * - Bjankuloski06 * - Siebrand */ var I18n = { on_leave_page: "Може да ви се изгубат промените", loading: "Вчитувам..." }; ================================================ FILE: app/assets/javascripts/i18n/ms.js ================================================ /** Messages for Malay (Bahasa Melayu) * Exported from translatewiki.net * * Translators: * - Anakmalaysia */ var I18n = { on_leave_page: "Anda mungkin kehilangan pengubahan anda", loading: "Sedang dimuatkan..." }; ================================================ FILE: app/assets/javascripts/i18n/nb.js ================================================ /** Messages for Norwegian Bokmål (‪norsk (bokmål)‬) * Exported from translatewiki.net * * Translators: * - Siebrand */ var I18n = { on_leave_page: "Du kan miste endringene dine" }; ================================================ FILE: app/assets/javascripts/i18n/nl.js ================================================ /** Messages for Dutch (Nederlands) * Exported from translatewiki.net * * Translators: * - Siebrand */ var I18n = { on_leave_page: "Uw wijzigingen kunnen verloren gaan.", loading: "Bezig met laden…" }; ================================================ FILE: app/assets/javascripts/i18n/pl.js ================================================ /** Messages for Polish (polski) * Exported from translatewiki.net * * Translators: * - Grzechooo * - Siebrand */ var I18n = { on_leave_page: "Możesz utracić wykonane zmiany", loading: "Ładowanie..." }; ================================================ FILE: app/assets/javascripts/i18n/pms.js ================================================ /** Messages for Piedmontese (Piemontèis) * Exported from translatewiki.net * * Translators: * - Dragonòt */ var I18n = { on_leave_page: "It peule perde ij tò cambi" }; ================================================ FILE: app/assets/javascripts/i18n/pt-BR.js ================================================ /** Messages for Brazilian Portuguese (português do Brasil) * Exported from translatewiki.net * * Translators: * - Giro720 */ var I18n = { on_leave_page: "Você poderá perder suas alterações" }; ================================================ FILE: app/assets/javascripts/i18n/pt-PT.js ================================================ /** Messages for Portuguese (português) * Exported from translatewiki.net * * Translators: * - Hamilton Abreu */ var I18n = { on_leave_page: "Poderá perder as suas alterações" }; ================================================ FILE: app/assets/javascripts/i18n/qqq.js ================================================ /** Messages for Message documentation (Message documentation) * Exported from translatewiki.net * * Translators: * - EugeneZelenko */ var I18n = { loading: "{{Identical|Loading}}" }; ================================================ FILE: app/assets/javascripts/i18n/ru.js ================================================ /** Messages for Russian (русский) * Exported from translatewiki.net * * Translators: * - Adata80 * - Siebrand */ var I18n = { on_leave_page: "Ваши изменения могут быть потеряны", loading: "Загрузка..." }; ================================================ FILE: app/assets/javascripts/i18n/shi.js ================================================ /** Messages for Tachelhit (Tašlḥiyt/ⵜⴰⵛⵍⵃⵉⵜ) * Exported from translatewiki.net * * Translators: * - Dalinanir */ var I18n = { on_leave_page: "Radak jlun imbdln lli tskrt ɣ tasna yad" }; ================================================ FILE: app/assets/javascripts/i18n/si.js ================================================ /** Messages for Sinhala (සිංහල) * Exported from translatewiki.net * * Translators: * - Singhalawap */ var I18n = { on_leave_page: "ඔබගේ වෙනස්කිරීම් අහිමිවනු ඇත" }; ================================================ FILE: app/assets/javascripts/i18n/sr-Latn.js ================================================ /** Messages for Serbian (Latin script) (‪srpski (latinica)‬) * Exported from translatewiki.net * * Translators: * - Rancher */ var I18n = { on_leave_page: "Izgubićete izmene koje ste napravili", loading: "Učitavam…" }; ================================================ FILE: app/assets/javascripts/i18n/sr.js ================================================ /** Messages for Serbian (Cyrillic script) (‪српски (ћирилица)‬) * Exported from translatewiki.net * * Translators: * - Rancher */ var I18n = { on_leave_page: "Изгубићете измене које сте направили", loading: "Учитавам…" }; ================================================ FILE: app/assets/javascripts/i18n/sv.js ================================================ /** Messages for Swedish (svenska) * Exported from translatewiki.net * * Translators: * - Tobulos1 */ var I18n = { on_leave_page: "Du kan förlora dina ändringar" }; ================================================ FILE: app/assets/javascripts/i18n/te.js ================================================ /** Messages for Telugu (తెలుగు) * Exported from translatewiki.net * * Translators: * - Veeven */ var I18n = { on_leave_page: "మీరు మీ మార్పులని కోల్పోవచ్చు" }; ================================================ FILE: app/assets/javascripts/i18n/tl.js ================================================ /** Messages for Tagalog (Tagalog) * Exported from translatewiki.net * * Translators: * - AnakngAraw */ var I18n = { on_leave_page: "Maaari mawala ang mga binago mo", loading: "Ikinakarga..." }; ================================================ FILE: app/assets/javascripts/i18n/uk.js ================================================ /** Messages for Ukrainian (українська) * Exported from translatewiki.net * * Translators: * - Тест */ var I18n = { on_leave_page: "Ви можете втратити ваші зміни" }; ================================================ FILE: app/assets/javascripts/i18n/zh-CN.js ================================================ /** Messages for Simplified Chinese (‪中文(简体)‬) * Exported from translatewiki.net * * Translators: * - Hydra * - Hzy980512 */ var I18n = { on_leave_page: "您可能会丢失所做的更改", loading: "载入中..." }; ================================================ FILE: app/assets/javascripts/i18n/zh-HANT.js ================================================ /** Messages for Traditional Chinese (‪中文(繁體)‬) * Exported from translatewiki.net * * Translators: * - Frankou */ var I18n = { on_leave_page: "你可能會失去您的變更" }; ================================================ FILE: app/assets/javascripts/i18n/zh-TW.js ================================================ /** Messages for Traditional Chinese (‪中文(繁體)‬) * Exported from translatewiki.net * * Translators: * - Frankou */ var I18n = { on_leave_page: "你可能會失去您的變更" }; ================================================ FILE: app/assets/javascripts/magent_web.js ================================================ $(document).ready(function() { $.mobile.page.prototype.options.addBackBtn = true; }); ================================================ FILE: app/assets/javascripts/mobile.js ================================================ $(document).ready(function() { $.mobile.page.prototype.options.addBackBtn = true; $('div[data-role*="page"]').live('pageshow',function(event, ui){ var internal = $("a").filter(function() { return (this.hostname == location.hostname && !this.href.match("mobile")); }); $.each(internal, function() { var link = $(this); var href = link.attr("href"); if(href.match('\\?')) { link.attr("href", href+"&format=mobile"); } else { link.attr("href", href+"?format=mobile"); } }); }); }); ================================================ FILE: app/assets/javascripts/payments/application.js ================================================ //= require payments/payments ================================================ FILE: app/assets/javascripts/payments/payments.js ================================================ var Payments = { initialize: function() { var form = $("#payment-form"); Stripe.setPublishableKey(form.attr("data-token")); form.submit(function(event) { // disable the submit button to prevent repeated clicks $('.submit-button').attr("disabled", "disabled"); console.log(form.find('.card-number').val()) console.log(form.find('.card-cvc').val()) console.log(form.find('.card-expiry-month').val()) console.log(form.find('.card-expiry-year').val()) Stripe.createToken({ number: form.find('.card-number').val(), cvc: form.find('.card-cvc').val(), exp_month: form.find('.card-expiry-month').val(), exp_year: form.find('.card-expiry-year').val() }, Payments.handler); // prevent the form from submitting with the default action return false; }); }, handler: function(status, response) { if (response.error) { $(".payment-errors").html(response.error.message); } else { var form$ = $("#payment-form"); var token = response['id']; form$.append(""); form$.get(0).submit(); } } }; $(document).ready(function() { Payments.initialize(); }); ================================================ FILE: app/assets/javascripts/shapadocom.js ================================================ //= require bootstrap/bootstrap.min.js ================================================ FILE: app/assets/javascripts/vendor/ajax-chosen.js ================================================ (function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; (function($) { return $.fn.ajaxChosen = function(options, itemBuilder) { var defaultedOptions, inputSelector, multiple, select; defaultedOptions = { minLength: 3, queryParameter: 'term', queryLimit: 10, data: {}, chosenOptions: {}, searchingText: "Searching...", noresultsText: "No results." }; $.extend(defaultedOptions, options); if (defaultedOptions.success) { defaultedOptions.userSuppliedSuccess = defaultedOptions.success; } defaultedOptions.chosenOptions.no_results_text = defaultedOptions.searchingText; multiple = this.attr('multiple') != null; if (multiple) { inputSelector = ".search-field > input"; } else { inputSelector = ".chzn-search > input"; } select = this; this.chosen(defaultedOptions.chosenOptions); return this.next('.chzn-container').find(inputSelector).bind('keyup', function(e) { var search; if (this.previousSearch) { clearTimeout(this.previousSearch); } search = __bind(function() { var clearSearchingLabel, currentOptions, field, prevVal, val, _ref; val = $.trim($(this).attr('value')); prevVal = (_ref = $(this).data('prevVal')) != null ? _ref : ''; $(this).data('prevVal', val); field = $(this); clearSearchingLabel = __bind(function() { var resultsDiv; if (multiple) { resultsDiv = field.parent().parent().siblings(); } else { resultsDiv = field.parent().parent(); } return resultsDiv.find('.no-results').html(defaultedOptions.noresultsText + " '" + $(this).attr('value') + "'"); }, this); if (val.length < defaultedOptions.minLength || val === prevVal) { clearSearchingLabel(); return false; } currentOptions = select.find('option'); if (currentOptions.length < defaultedOptions.queryLimit && val.indexOf(prevVal) === 0 && prevVal !== '') { clearSearchingLabel(); return false; } defaultedOptions.data[defaultedOptions.queryParameter] = val; defaultedOptions.success = function(data) { var currentOpt, items, keydownEvent, latestVal, newOpt, newOptions, noResult, _fn, _fn2, _i, _j, _len, _len2; if (!field.is(':focus')) { return; } items = itemBuilder(data); newOptions = []; $.each(items, function(value, text) { var newOpt; newOpt = $('