threddedDANIEL 0.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +744 -0
- data/app/assets/images/favicons/README.md +3 -0
- data/app/assets/images/favicons/amazon.png +0 -0
- data/app/assets/images/favicons/github.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_calendar_128px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_docs_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_drive_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_forms_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_sheets_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_slides_48px.png +0 -0
- data/app/assets/images/favicons/stackexchange.png +0 -0
- data/app/assets/images/favicons/twitter.png +0 -0
- data/app/assets/images/favicons/wikipedia.png +0 -0
- data/app/assets/images/thredded/breadcrumb-chevron.svg +1 -0
- data/app/assets/images/thredded/follow.svg +1 -0
- data/app/assets/images/thredded/lock.svg +1 -0
- data/app/assets/images/thredded/moderation.svg +1 -0
- data/app/assets/images/thredded/private-messages.svg +1 -0
- data/app/assets/images/thredded/settings.svg +1 -0
- data/app/assets/images/thredded/three-dot-menu.svg +3 -0
- data/app/assets/images/thredded/unfollow.svg +1 -0
- data/app/assets/javascripts/thredded.es6 +2 -0
- data/app/assets/javascripts/thredded/components/currently_online.es6 +32 -0
- data/app/assets/javascripts/thredded/components/flash_messages.es6 +9 -0
- data/app/assets/javascripts/thredded/components/mention_autocompletion.es6 +40 -0
- data/app/assets/javascripts/thredded/components/post_form.es6 +37 -0
- data/app/assets/javascripts/thredded/components/preview_area.es6 +56 -0
- data/app/assets/javascripts/thredded/components/quote_post.es6 +49 -0
- data/app/assets/javascripts/thredded/components/time_stamps.es6 +25 -0
- data/app/assets/javascripts/thredded/components/topic_form.es6 +94 -0
- data/app/assets/javascripts/thredded/components/topics.es6 +46 -0
- data/app/assets/javascripts/thredded/components/turboforms.es6 +25 -0
- data/app/assets/javascripts/thredded/components/user_preferences_form.es6 +66 -0
- data/app/assets/javascripts/thredded/components/user_textcomplete.es6 +50 -0
- data/app/assets/javascripts/thredded/components/users_select.es6 +122 -0
- data/app/assets/javascripts/thredded/core/csrf_tokens.es6 +9 -0
- data/app/assets/javascripts/thredded/core/debounce.es6 +32 -0
- data/app/assets/javascripts/thredded/core/escape_html.es6 +7 -0
- data/app/assets/javascripts/thredded/core/hide_soft_keyboard.es6 +7 -0
- data/app/assets/javascripts/thredded/core/on_page_load.es6 +54 -0
- data/app/assets/javascripts/thredded/core/serialize_form.es6 +9 -0
- data/app/assets/javascripts/thredded/core/thredded.es6 +1 -0
- data/app/assets/javascripts/thredded/dependencies.js +8 -0
- data/app/assets/javascripts/thredded/dependencies/autosize.js +1 -0
- data/app/assets/javascripts/thredded/dependencies/textcomplete.js +1 -0
- data/app/assets/javascripts/thredded/dependencies/timeago.js +1 -0
- data/app/assets/javascripts/thredded/dependencies/ujs.js +1 -0
- data/app/assets/javascripts/thredded/thredded.es6 +2 -0
- data/app/assets/stylesheets/thredded.scss +3 -0
- data/app/assets/stylesheets/thredded/_base.scss +13 -0
- data/app/assets/stylesheets/thredded/_dependencies.scss +0 -0
- data/app/assets/stylesheets/thredded/_email.scss +51 -0
- data/app/assets/stylesheets/thredded/_thredded.scss +33 -0
- data/app/assets/stylesheets/thredded/base/_alerts.scss +44 -0
- data/app/assets/stylesheets/thredded/base/_buttons.scss +73 -0
- data/app/assets/stylesheets/thredded/base/_dropdown-menu.scss +83 -0
- data/app/assets/stylesheets/thredded/base/_forms.scss +84 -0
- data/app/assets/stylesheets/thredded/base/_grid.scss +58 -0
- data/app/assets/stylesheets/thredded/base/_lists.scss +31 -0
- data/app/assets/stylesheets/thredded/base/_nav.scss +67 -0
- data/app/assets/stylesheets/thredded/base/_tables.scss +17 -0
- data/app/assets/stylesheets/thredded/base/_typography.scss +72 -0
- data/app/assets/stylesheets/thredded/base/_variables.scss +141 -0
- data/app/assets/stylesheets/thredded/components/_alerts.scss +19 -0
- data/app/assets/stylesheets/thredded/components/_base.scss +25 -0
- data/app/assets/stylesheets/thredded/components/_currently-online.scss +54 -0
- data/app/assets/stylesheets/thredded/components/_empty.scss +11 -0
- data/app/assets/stylesheets/thredded/components/_flash-message.scss +19 -0
- data/app/assets/stylesheets/thredded/components/_following.scss +14 -0
- data/app/assets/stylesheets/thredded/components/_form-list.scss +39 -0
- data/app/assets/stylesheets/thredded/components/_icons.scss +3 -0
- data/app/assets/stylesheets/thredded/components/_main-section.scss +9 -0
- data/app/assets/stylesheets/thredded/components/_mention-autocomplete.scss +57 -0
- data/app/assets/stylesheets/thredded/components/_messageboard.scss +155 -0
- data/app/assets/stylesheets/thredded/components/_onebox.scss +275 -0
- data/app/assets/stylesheets/thredded/components/_pagination.scss +35 -0
- data/app/assets/stylesheets/thredded/components/_post-form.scss +27 -0
- data/app/assets/stylesheets/thredded/components/_post.scss +138 -0
- data/app/assets/stylesheets/thredded/components/_preferences.scss +19 -0
- data/app/assets/stylesheets/thredded/components/_preview_area.scss +11 -0
- data/app/assets/stylesheets/thredded/components/_topic-delete.scss +8 -0
- data/app/assets/stylesheets/thredded/components/_topic-header.scss +111 -0
- data/app/assets/stylesheets/thredded/components/_topics.scss +186 -0
- data/app/assets/stylesheets/thredded/layout/_main-container.scss +16 -0
- data/app/assets/stylesheets/thredded/layout/_main-navigation.scss +79 -0
- data/app/assets/stylesheets/thredded/layout/_moderation.scss +97 -0
- data/app/assets/stylesheets/thredded/layout/_navigation.scss +87 -0
- data/app/assets/stylesheets/thredded/layout/_search-navigation.scss +126 -0
- data/app/assets/stylesheets/thredded/layout/_user-navigation.scss +20 -0
- data/app/assets/stylesheets/thredded/layout/_user.scss +10 -0
- data/app/assets/stylesheets/thredded/utilities/_is-compact.scss +26 -0
- data/app/assets/stylesheets/thredded/utilities/_is-expanded.scss +16 -0
- data/app/commands/thredded/at_notification_extractor.rb +23 -0
- data/app/commands/thredded/autofollow_users.rb +62 -0
- data/app/commands/thredded/create_messageboard.rb +42 -0
- data/app/commands/thredded/mark_all_read.rb +22 -0
- data/app/commands/thredded/moderate_post.rb +48 -0
- data/app/commands/thredded/notify_following_users.rb +78 -0
- data/app/commands/thredded/notify_private_topic_users.rb +34 -0
- data/app/controllers/concerns/thredded/new_post_params.rb +21 -0
- data/app/controllers/concerns/thredded/new_private_post_params.rb +21 -0
- data/app/controllers/concerns/thredded/new_private_topic_params.rb +25 -0
- data/app/controllers/concerns/thredded/new_topic_params.rb +19 -0
- data/app/controllers/concerns/thredded/render_preview.rb +16 -0
- data/app/controllers/thredded/application_controller.rb +145 -0
- data/app/controllers/thredded/autocomplete_users_controller.rb +52 -0
- data/app/controllers/thredded/messageboard_groups_controller.rb +31 -0
- data/app/controllers/thredded/messageboards_controller.rb +53 -0
- data/app/controllers/thredded/moderation_controller.rb +103 -0
- data/app/controllers/thredded/post_permalinks_controller.rb +11 -0
- data/app/controllers/thredded/post_previews_controller.rb +29 -0
- data/app/controllers/thredded/posts_controller.rb +97 -0
- data/app/controllers/thredded/preferences_controller.rb +42 -0
- data/app/controllers/thredded/private_post_permalinks_controller.rb +12 -0
- data/app/controllers/thredded/private_post_previews_controller.rb +29 -0
- data/app/controllers/thredded/private_posts_controller.rb +96 -0
- data/app/controllers/thredded/private_topic_previews_controller.rb +15 -0
- data/app/controllers/thredded/private_topics_controller.rb +102 -0
- data/app/controllers/thredded/read_states_controller.rb +13 -0
- data/app/controllers/thredded/theme_previews_controller.rb +34 -0
- data/app/controllers/thredded/topic_previews_controller.rb +15 -0
- data/app/controllers/thredded/topics_controller.rb +205 -0
- data/app/forms/thredded/edit_topic_form.rb +51 -0
- data/app/forms/thredded/post_form.rb +54 -0
- data/app/forms/thredded/private_post_form.rb +50 -0
- data/app/forms/thredded/private_topic_form.rb +160 -0
- data/app/forms/thredded/topic_form.rb +95 -0
- data/app/forms/thredded/user_preferences_form.rb +110 -0
- data/app/helpers/thredded/application_helper.rb +129 -0
- data/app/helpers/thredded/nav_helper.rb +42 -0
- data/app/helpers/thredded/render_helper.rb +15 -0
- data/app/helpers/thredded/urls_helper.rb +134 -0
- data/app/jobs/thredded/activity_updater_job.rb +21 -0
- data/app/jobs/thredded/auto_follow_and_notify_job.rb +14 -0
- data/app/jobs/thredded/notify_private_topic_users_job.rb +12 -0
- data/app/mailer_previews/thredded/base_mailer_preview.rb +118 -0
- data/app/mailer_previews/thredded/post_mailer_preview.rb +13 -0
- data/app/mailer_previews/thredded/private_topic_mailer_preview.rb +13 -0
- data/app/mailers/thredded/base_mailer.rb +18 -0
- data/app/mailers/thredded/post_mailer.rb +21 -0
- data/app/mailers/thredded/private_topic_mailer.rb +21 -0
- data/app/models/concerns/thredded/content_moderation_state.rb +67 -0
- data/app/models/concerns/thredded/friendly_id_reserved_words_and_pagination.rb +17 -0
- data/app/models/concerns/thredded/moderation_state.rb +14 -0
- data/app/models/concerns/thredded/notifier_preference.rb +19 -0
- data/app/models/concerns/thredded/post_common.rb +76 -0
- data/app/models/concerns/thredded/search_parser.rb +41 -0
- data/app/models/concerns/thredded/topic_common.rb +94 -0
- data/app/models/concerns/thredded/topics_search.rb +67 -0
- data/app/models/concerns/thredded/user_topic_read_state_common.rb +42 -0
- data/app/models/thredded/category.rb +18 -0
- data/app/models/thredded/messageboard.rb +120 -0
- data/app/models/thredded/messageboard_group.rb +19 -0
- data/app/models/thredded/messageboard_notifications_for_followed_topics.rb +30 -0
- data/app/models/thredded/messageboard_user.rb +14 -0
- data/app/models/thredded/notifications_for_followed_topics.rb +25 -0
- data/app/models/thredded/notifications_for_private_topics.rb +22 -0
- data/app/models/thredded/null_user.rb +51 -0
- data/app/models/thredded/null_user_topic_read_state.rb +17 -0
- data/app/models/thredded/post.rb +77 -0
- data/app/models/thredded/post_moderation_record.rb +56 -0
- data/app/models/thredded/private_post.rb +63 -0
- data/app/models/thredded/private_topic.rb +89 -0
- data/app/models/thredded/private_user.rb +8 -0
- data/app/models/thredded/stats.rb +25 -0
- data/app/models/thredded/topic.rb +179 -0
- data/app/models/thredded/topic_category.rb +8 -0
- data/app/models/thredded/user_detail.rb +27 -0
- data/app/models/thredded/user_extender.rb +75 -0
- data/app/models/thredded/user_messageboard_preference.rb +45 -0
- data/app/models/thredded/user_permissions/admin/if_admin_column_true.rb +14 -0
- data/app/models/thredded/user_permissions/admin/none.rb +14 -0
- data/app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb +15 -0
- data/app/models/thredded/user_permissions/moderate/if_moderator_column_true.rb +16 -0
- data/app/models/thredded/user_permissions/moderate/none.rb +16 -0
- data/app/models/thredded/user_permissions/read/all.rb +27 -0
- data/app/models/thredded/user_permissions/write/all.rb +16 -0
- data/app/models/thredded/user_permissions/write/none.rb +16 -0
- data/app/models/thredded/user_post_notification.rb +29 -0
- data/app/models/thredded/user_preference.rb +26 -0
- data/app/models/thredded/user_private_topic_read_state.rb +13 -0
- data/app/models/thredded/user_topic_follow.rb +34 -0
- data/app/models/thredded/user_topic_read_state.rb +13 -0
- data/app/notifiers/thredded/email_notifier.rb +25 -0
- data/app/policies/thredded/messageboard_group_policy.rb +16 -0
- data/app/policies/thredded/messageboard_policy.rb +49 -0
- data/app/policies/thredded/post_policy.rb +64 -0
- data/app/policies/thredded/private_post_policy.rb +38 -0
- data/app/policies/thredded/private_topic_policy.rb +24 -0
- data/app/policies/thredded/topic_policy.rb +49 -0
- data/app/view_hooks/thredded/all_view_hooks.rb +125 -0
- data/app/view_models/thredded/base_topic_view.rb +43 -0
- data/app/view_models/thredded/messageboard_group_view.rb +27 -0
- data/app/view_models/thredded/post_view.rb +89 -0
- data/app/view_models/thredded/posts_page_view.rb +27 -0
- data/app/view_models/thredded/private_topic_view.rb +20 -0
- data/app/view_models/thredded/private_topics_page_view.rb +31 -0
- data/app/view_models/thredded/topic_email_view.rb +18 -0
- data/app/view_models/thredded/topic_posts_page_view.rb +17 -0
- data/app/view_models/thredded/topic_view.rb +68 -0
- data/app/view_models/thredded/topics_page_view.rb +38 -0
- data/app/views/layouts/thredded/application.html.erb +18 -0
- data/app/views/thredded/categories/_category.html.erb +1 -0
- data/app/views/thredded/error_pages/forbidden.html.erb +6 -0
- data/app/views/thredded/error_pages/not_found.html.erb +6 -0
- data/app/views/thredded/kaminari/_first_page.html.erb +11 -0
- data/app/views/thredded/kaminari/_gap.html.erb +8 -0
- data/app/views/thredded/kaminari/_last_page.html.erb +11 -0
- data/app/views/thredded/kaminari/_next_page.html.erb +11 -0
- data/app/views/thredded/kaminari/_page.html.erb +12 -0
- data/app/views/thredded/kaminari/_paginator.html.erb +23 -0
- data/app/views/thredded/kaminari/_prev_page.html.erb +11 -0
- data/app/views/thredded/messageboard_groups/new.html.erb +28 -0
- data/app/views/thredded/messageboards/_form.html.erb +30 -0
- data/app/views/thredded/messageboards/_messageboard.html.erb +20 -0
- data/app/views/thredded/messageboards/_messageboard_meta.html.erb +13 -0
- data/app/views/thredded/messageboards/edit.html.erb +15 -0
- data/app/views/thredded/messageboards/index.html.erb +34 -0
- data/app/views/thredded/messageboards/new.html.erb +15 -0
- data/app/views/thredded/moderation/_nav.html.erb +19 -0
- data/app/views/thredded/moderation/_post.html.erb +19 -0
- data/app/views/thredded/moderation/_post_moderation_actions.html.erb +12 -0
- data/app/views/thredded/moderation/_post_moderation_record.html.erb +46 -0
- data/app/views/thredded/moderation/_user_moderation_state.html.erb +3 -0
- data/app/views/thredded/moderation/_user_post.html.erb +12 -0
- data/app/views/thredded/moderation/_users_search_form.html.erb +13 -0
- data/app/views/thredded/moderation/activity.html.erb +20 -0
- data/app/views/thredded/moderation/history.html.erb +13 -0
- data/app/views/thredded/moderation/pending.html.erb +24 -0
- data/app/views/thredded/moderation/user.html.erb +54 -0
- data/app/views/thredded/moderation/users.html.erb +41 -0
- data/app/views/thredded/post_mailer/post_notification.html.erb +26 -0
- data/app/views/thredded/post_mailer/post_notification.text.erb +14 -0
- data/app/views/thredded/post_previews/preview.html.erb +1 -0
- data/app/views/thredded/post_previews/update.html.erb +1 -0
- data/app/views/thredded/posts/_content.html.erb +1 -0
- data/app/views/thredded/posts/_form.html.erb +5 -0
- data/app/views/thredded/posts/_post.html.erb +13 -0
- data/app/views/thredded/posts/_user.html.erb +3 -0
- data/app/views/thredded/posts/edit.html.erb +16 -0
- data/app/views/thredded/posts/new.html.erb +15 -0
- data/app/views/thredded/posts_common/_actions.html.erb +28 -0
- data/app/views/thredded/posts_common/_content.html.erb +3 -0
- data/app/views/thredded/posts_common/_form.html.erb +22 -0
- data/app/views/thredded/posts_common/_header.html.erb +8 -0
- data/app/views/thredded/posts_common/_header_with_topic.html.erb +15 -0
- data/app/views/thredded/posts_common/_header_with_user_and_topic.html.erb +18 -0
- data/app/views/thredded/posts_common/actions/_delete.html.erb +4 -0
- data/app/views/thredded/posts_common/actions/_edit.html.erb +3 -0
- data/app/views/thredded/posts_common/actions/_mark_as_unread.html.erb +2 -0
- data/app/views/thredded/posts_common/actions/_quote.html.erb +4 -0
- data/app/views/thredded/posts_common/form/_after_content.html.erb +8 -0
- data/app/views/thredded/posts_common/form/_before_content.html.erb +8 -0
- data/app/views/thredded/posts_common/form/_content.html.erb +7 -0
- data/app/views/thredded/posts_common/form/_content_field.html.erb +8 -0
- data/app/views/thredded/posts_common/form/_preview_area.html.erb +16 -0
- data/app/views/thredded/preferences/_form.html.erb +95 -0
- data/app/views/thredded/preferences/_messageboards_nav.html.erb +8 -0
- data/app/views/thredded/preferences/_messageboards_nav_item.html.erb +2 -0
- data/app/views/thredded/preferences/edit.html.erb +20 -0
- data/app/views/thredded/private_post_previews/preview.html.erb +1 -0
- data/app/views/thredded/private_post_previews/update.html.erb +1 -0
- data/app/views/thredded/private_posts/_content.html.erb +1 -0
- data/app/views/thredded/private_posts/_form.html.erb +6 -0
- data/app/views/thredded/private_posts/_private_post.html.erb +6 -0
- data/app/views/thredded/private_posts/edit.html.erb +16 -0
- data/app/views/thredded/private_posts/new.html.erb +11 -0
- data/app/views/thredded/private_topic_mailer/message_notification.html.erb +26 -0
- data/app/views/thredded/private_topic_mailer/message_notification.text.erb +15 -0
- data/app/views/thredded/private_topic_previews/preview.html.erb +1 -0
- data/app/views/thredded/private_topics/_breadcrumbs.html.erb +4 -0
- data/app/views/thredded/private_topics/_form.html.erb +39 -0
- data/app/views/thredded/private_topics/_header.html.erb +17 -0
- data/app/views/thredded/private_topics/_no_private_topics.html.erb +6 -0
- data/app/views/thredded/private_topics/_private_topic.html.erb +23 -0
- data/app/views/thredded/private_topics/edit.html.erb +35 -0
- data/app/views/thredded/private_topics/header/_participant.html.erb +1 -0
- data/app/views/thredded/private_topics/index.html.erb +32 -0
- data/app/views/thredded/private_topics/new.html.erb +11 -0
- data/app/views/thredded/private_topics/private_topic/_participant.html.erb +1 -0
- data/app/views/thredded/private_topics/show.html.erb +28 -0
- data/app/views/thredded/search/_form.html.erb +13 -0
- data/app/views/thredded/shared/_breadcrumbs.html.erb +6 -0
- data/app/views/thredded/shared/_content_moderation_blocked_state.html.erb +8 -0
- data/app/views/thredded/shared/_currently_online.html.erb +6 -0
- data/app/views/thredded/shared/_flash_messages.html.erb +7 -0
- data/app/views/thredded/shared/_header.html.erb +3 -0
- data/app/views/thredded/shared/_nav.html.erb +19 -0
- data/app/views/thredded/shared/_page.html.erb +15 -0
- data/app/views/thredded/shared/currently_online/_header.html.erb +5 -0
- data/app/views/thredded/shared/currently_online/_user_list.html.erb +3 -0
- data/app/views/thredded/shared/currently_online/_user_list_item.html.erb +6 -0
- data/app/views/thredded/shared/nav/_moderation.html.erb +14 -0
- data/app/views/thredded/shared/nav/_notification_preferences.html.erb +8 -0
- data/app/views/thredded/shared/nav/_private_topics.html.erb +12 -0
- data/app/views/thredded/shared/nav/_standalone.html.erb +12 -0
- data/app/views/thredded/shared/nav/_standalone_profile.html.erb +3 -0
- data/app/views/thredded/shared/preview.html.erb +10 -0
- data/app/views/thredded/theme_previews/_section_title.html.erb +3 -0
- data/app/views/thredded/theme_previews/show.html.erb +99 -0
- data/app/views/thredded/topic_previews/preview.html.erb +1 -0
- data/app/views/thredded/topics/_followers.html.erb +12 -0
- data/app/views/thredded/topics/_form.html.erb +32 -0
- data/app/views/thredded/topics/_header.html.erb +32 -0
- data/app/views/thredded/topics/_sticky_topics_divider.html.erb +1 -0
- data/app/views/thredded/topics/_topic.html.erb +47 -0
- data/app/views/thredded/topics/_topic_form_admin_options.html.erb +12 -0
- data/app/views/thredded/topics/edit.html.erb +50 -0
- data/app/views/thredded/topics/index.html.erb +35 -0
- data/app/views/thredded/topics/new.html.erb +12 -0
- data/app/views/thredded/topics/search.html.erb +39 -0
- data/app/views/thredded/topics/show.html.erb +46 -0
- data/app/views/thredded/users/_link.html.erb +14 -0
- data/app/views/thredded/users/_post.html.erb +6 -0
- data/app/views/thredded/users/_posts.html.erb +7 -0
- data/bin/rails +6 -0
- data/config/i18n-tasks.yml +16 -0
- data/config/locales/de.yml +257 -0
- data/config/locales/en.yml +253 -0
- data/config/locales/es.yml +257 -0
- data/config/locales/fr.yml +255 -0
- data/config/locales/it.yml +257 -0
- data/config/locales/pl.yml +257 -0
- data/config/locales/pt-BR.yml +258 -0
- data/config/locales/ru.yml +255 -0
- data/config/locales/zh-CN.yml +246 -0
- data/config/routes.rb +87 -0
- data/db/migrate/20160329231848_create_thredded.rb +257 -0
- data/db/seeds.rb +4 -0
- data/db/upgrade_migrations/20160611094616_upgrade_v0_5_to_v0_6.rb +28 -0
- data/db/upgrade_migrations/20160723012349_upgrade_v0_6_to_v0_7.rb +46 -0
- data/db/upgrade_migrations/20161019150201_upgrade_v0_7_to_v0_8.rb +34 -0
- data/db/upgrade_migrations/20161113161801_upgrade_v0_8_to_v0_9.rb +60 -0
- data/db/upgrade_migrations/20170125033319_upgrade_v0_9_to_v0_10.rb +36 -0
- data/db/upgrade_migrations/20170312131417_upgrade_thredded_v0_10_to_v0_11.rb +23 -0
- data/db/upgrade_migrations/20170420163138_upgrade_thredded_v0_11_to_v0_12.rb +28 -0
- data/db/upgrade_migrations/20170811090735_upgrade_thredded_v0_13_to_v_014.rb +21 -0
- data/lib/generators/thredded/install/USAGE +8 -0
- data/lib/generators/thredded/install/install_generator.rb +20 -0
- data/lib/generators/thredded/install/templates/initializer.rb +160 -0
- data/lib/tasks/thredded_tasks.rake +14 -0
- data/lib/thredded.rb +190 -0
- data/lib/thredded/base_migration.rb +14 -0
- data/lib/thredded/base_notifier.rb +28 -0
- data/lib/thredded/collection_to_strings_with_cache_renderer.rb +86 -0
- data/lib/thredded/content_formatter.rb +129 -0
- data/lib/thredded/database_seeder.rb +290 -0
- data/lib/thredded/db_tools.rb +103 -0
- data/lib/thredded/email_transformer.rb +22 -0
- data/lib/thredded/email_transformer/base.rb +47 -0
- data/lib/thredded/email_transformer/onebox.rb +21 -0
- data/lib/thredded/engine.rb +28 -0
- data/lib/thredded/errors.rb +68 -0
- data/lib/thredded/formatting_demo_content.rb +30 -0
- data/lib/thredded/html_pipeline/at_mention_filter.rb +78 -0
- data/lib/thredded/html_pipeline/autolink_filter.rb +15 -0
- data/lib/thredded/html_pipeline/kramdown_filter.rb +39 -0
- data/lib/thredded/html_pipeline/onebox_filter.rb +143 -0
- data/lib/thredded/html_pipeline/wrap_iframes_filter.rb +13 -0
- data/lib/thredded/version.rb +5 -0
- data/lib/thredded/view_hooks/config.rb +37 -0
- data/lib/thredded/view_hooks/renderer.rb +30 -0
- data/vendor/assets/javascripts/autosize.min.js +6 -0
- data/vendor/assets/javascripts/textcomplete.min.js +2 -0
- metadata +1035 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
.thredded--post-form {
|
2
|
+
label {
|
3
|
+
display: none;
|
4
|
+
}
|
5
|
+
|
6
|
+
&--wrapper {
|
7
|
+
border-top: $thredded-base-border;
|
8
|
+
margin-top: $thredded-base-spacing;
|
9
|
+
padding-top: $thredded-base-spacing;
|
10
|
+
}
|
11
|
+
|
12
|
+
&--title {
|
13
|
+
@extend %thredded--heading;
|
14
|
+
font-size: 1.25rem; // 20px
|
15
|
+
margin-bottom: $thredded-base-spacing;
|
16
|
+
}
|
17
|
+
|
18
|
+
&--submit {
|
19
|
+
margin-top: $thredded-small-spacing;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.thredded--post-form--wrapper {
|
24
|
+
@media print {
|
25
|
+
display: none;
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
.thredded--post {
|
2
|
+
position: relative;
|
3
|
+
margin-bottom: $thredded-base-spacing;
|
4
|
+
@include thredded-media-desktop-and-up {
|
5
|
+
margin-bottom: $thredded-large-spacing;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
.thredded--post--dropdown--toggle {
|
10
|
+
@extend %thredded--dropdown-menu--toggle;
|
11
|
+
fill: currentColor;
|
12
|
+
box-sizing: content-box;
|
13
|
+
color: $thredded-action-color;
|
14
|
+
display: inline-block;
|
15
|
+
width: 1rem;
|
16
|
+
height: 1rem;
|
17
|
+
padding: 0.875rem 0.875rem 0.875rem 1.5rem;
|
18
|
+
margin-right: -0.875rem;
|
19
|
+
-webkit-tap-highlight-color: transparent;
|
20
|
+
@include thredded-media-content-breakout {
|
21
|
+
margin-top: -0.75rem;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.thredded--post--dropdown {
|
26
|
+
@extend %thredded--dropdown-menu--container;
|
27
|
+
float: right;
|
28
|
+
@media print {
|
29
|
+
display: none;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.thredded--post--dropdown--actions {
|
34
|
+
@extend %thredded--dropdown-menu--actions-bottom-left;
|
35
|
+
margin-top: -0.875rem;
|
36
|
+
}
|
37
|
+
|
38
|
+
.thredded--post--dropdown--actions--item {
|
39
|
+
@extend %thredded--dropdown-menu--actions--item;
|
40
|
+
}
|
41
|
+
|
42
|
+
.thredded--post--avatar {
|
43
|
+
border-radius: 50%;
|
44
|
+
display: inline-block;
|
45
|
+
height: 1.75rem; // 28px
|
46
|
+
margin-right: $thredded-inline-spacing;
|
47
|
+
position: relative;
|
48
|
+
top: 6px;
|
49
|
+
vertical-align: baseline;
|
50
|
+
width: 1.75rem; // 28px
|
51
|
+
|
52
|
+
@media (min-width: $thredded-grid-container-max-width + $thredded-content-breakout-min-width + 0.00001rem) {
|
53
|
+
height: 2.25rem; // 36px
|
54
|
+
left: -3rem;
|
55
|
+
position: absolute;
|
56
|
+
top: -0.5rem;
|
57
|
+
width: 2.25rem; // 36px
|
58
|
+
}
|
59
|
+
|
60
|
+
@media (min-width: $thredded-grid-container-max-width + $thredded-content-breakout-min-width + 9.5rem + 0.00001rem) {
|
61
|
+
height: 3.25rem;
|
62
|
+
left: -4.125rem;
|
63
|
+
width: 3.25rem;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.thredded--post--topic {
|
68
|
+
@extend %thredded--heading;
|
69
|
+
font-size: $thredded-base-font-size * 1.25; // 24px
|
70
|
+
line-height: 1.2;
|
71
|
+
margin-bottom: $thredded-small-spacing / 2;
|
72
|
+
}
|
73
|
+
|
74
|
+
.thredded--post--user,
|
75
|
+
.thredded--post--topic,
|
76
|
+
.thredded--post--user-and-topic {
|
77
|
+
@extend %thredded--heading;
|
78
|
+
display: inline;
|
79
|
+
font-size: 1.125rem; // 18px
|
80
|
+
line-height: 1.2;
|
81
|
+
margin-right: $thredded-inline-spacing;
|
82
|
+
|
83
|
+
a {
|
84
|
+
@extend %thredded--link;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.thredded--post--user {
|
89
|
+
a {
|
90
|
+
color: $thredded-text-color;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
.thredded--post--created-at {
|
95
|
+
@extend %thredded--paragraph;
|
96
|
+
font-size: $thredded-font-size-small;
|
97
|
+
color: $thredded-secondary-text-color;
|
98
|
+
display: inline-block;
|
99
|
+
}
|
100
|
+
|
101
|
+
.thredded--post--content {
|
102
|
+
font-size: 1.063rem; // 17px
|
103
|
+
line-height: 1.65;
|
104
|
+
word-break: break-word;
|
105
|
+
a {
|
106
|
+
@extend %thredded--link;
|
107
|
+
}
|
108
|
+
p {
|
109
|
+
@extend %thredded--paragraph;
|
110
|
+
}
|
111
|
+
hr {
|
112
|
+
@extend %thredded--hr;
|
113
|
+
}
|
114
|
+
img {
|
115
|
+
max-width: 100%;
|
116
|
+
height: auto;
|
117
|
+
}
|
118
|
+
table {
|
119
|
+
@extend %thredded--table;
|
120
|
+
}
|
121
|
+
blockquote {
|
122
|
+
@extend %thredded--blockquote;
|
123
|
+
}
|
124
|
+
pre {
|
125
|
+
overflow-x: auto;
|
126
|
+
}
|
127
|
+
|
128
|
+
&--spoiler {
|
129
|
+
color: $thredded-spoiler-hidden-color;
|
130
|
+
background-color: $thredded-spoiler-hidden-color;
|
131
|
+
cursor: pointer;
|
132
|
+
|
133
|
+
&:hover,
|
134
|
+
&:focus {
|
135
|
+
color: $thredded-spoiler-shown-color;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.thredded--preferences--title {
|
2
|
+
@extend %thredded--heading;
|
3
|
+
font-size: 1.5rem; // 24px
|
4
|
+
}
|
5
|
+
|
6
|
+
.thredded--preferences--form {
|
7
|
+
padding-bottom: $thredded-base-spacing;
|
8
|
+
}
|
9
|
+
|
10
|
+
.thredded--preferences--messageboards-nav {
|
11
|
+
border-top: $thredded-base-border;
|
12
|
+
padding-top: $thredded-base-spacing;
|
13
|
+
}
|
14
|
+
|
15
|
+
.thredded--preferences--messageboards-nav--item {
|
16
|
+
&.thredded--messageboard {
|
17
|
+
padding: $thredded-small-spacing;
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
.thredded--topic-header {
|
2
|
+
margin-bottom: $thredded-small-spacing;
|
3
|
+
margin-top: 0;
|
4
|
+
@include thredded-media-desktop-and-up {
|
5
|
+
margin-bottom: $thredded-base-spacing + $thredded-small-spacing;
|
6
|
+
margin-top: $thredded-small-spacing;
|
7
|
+
@include thredded--clearfix;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.thredded--topic-header--title {
|
12
|
+
@extend %thredded--heading;
|
13
|
+
font-size: 1.25rem;
|
14
|
+
line-height: 1.2;
|
15
|
+
margin-bottom: $thredded-small-spacing / 2;
|
16
|
+
@include thredded-media-tablet-and-up {
|
17
|
+
font-size: 1.5rem;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.thredded--topic-header--participants {
|
22
|
+
color: $thredded-secondary-text-color;
|
23
|
+
|
24
|
+
&--participant {
|
25
|
+
> a {
|
26
|
+
@extend %thredded--link;
|
27
|
+
font-size: $thredded-font-size-small;
|
28
|
+
}
|
29
|
+
&::before {
|
30
|
+
content: '\2022\00A0'; // • and a non-breaking space
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.thredded--topic-header--started-by {
|
36
|
+
font-size: $thredded-font-size-small;
|
37
|
+
color: $thredded-secondary-text-color;
|
38
|
+
font-style: normal;
|
39
|
+
a {
|
40
|
+
@extend %thredded--link;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.thredded--topic-header--edit-topic {
|
45
|
+
@extend %thredded--link;
|
46
|
+
font-size: $thredded-font-size-small;
|
47
|
+
margin-left: 0.4rem;
|
48
|
+
@media print {
|
49
|
+
display: none;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.thredded--topic-header--follow-info {
|
54
|
+
color: $thredded-secondary-text-color;
|
55
|
+
font-size: $thredded-font-size-small;
|
56
|
+
font-style: normal;
|
57
|
+
@include thredded-media-desktop-and-up {
|
58
|
+
float: right;
|
59
|
+
text-align: right;
|
60
|
+
max-width: 25rem;
|
61
|
+
position: relative;
|
62
|
+
form {
|
63
|
+
// Do not introduce extra margin
|
64
|
+
position: absolute;
|
65
|
+
right: 0;
|
66
|
+
vertical-align: text-top;
|
67
|
+
&.thredded--topic-header--follow-info--unfollow {
|
68
|
+
top: 1.625em; // required for Safari and Firefox
|
69
|
+
}
|
70
|
+
}
|
71
|
+
&--reason {
|
72
|
+
display: block;
|
73
|
+
vertical-align: text-top;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
p {
|
77
|
+
margin: 0;
|
78
|
+
}
|
79
|
+
&--reason {
|
80
|
+
display: inline-block;
|
81
|
+
}
|
82
|
+
form {
|
83
|
+
display: inline-block;
|
84
|
+
input[type=submit], button {
|
85
|
+
background:none;
|
86
|
+
border:none;
|
87
|
+
padding:0;
|
88
|
+
font: inherit;
|
89
|
+
cursor: pointer;
|
90
|
+
@extend %thredded--link;
|
91
|
+
}
|
92
|
+
@media print {
|
93
|
+
display: none;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
.thredded--topic-header--follow-icon {
|
100
|
+
@extend %thredded--following-icon;
|
101
|
+
vertical-align: middle;
|
102
|
+
}
|
103
|
+
|
104
|
+
.thredded--topic-followers {
|
105
|
+
font-size: $thredded-font-size-small;
|
106
|
+
color: $thredded-secondary-text-color;
|
107
|
+
}
|
108
|
+
|
109
|
+
.thredded--svg-definitions {
|
110
|
+
display: none;
|
111
|
+
}
|
@@ -0,0 +1,186 @@
|
|
1
|
+
.thredded--topics--topic {
|
2
|
+
margin-bottom: $thredded-topics-list-gutter-y;
|
3
|
+
position: relative;
|
4
|
+
|
5
|
+
@include thredded-media-content-no-breakout {
|
6
|
+
margin-left: $thredded-topics-topic-posts-counter-width;
|
7
|
+
}
|
8
|
+
@include thredded-media-mobile {
|
9
|
+
margin-right: $thredded-topics-topic-follow-icon-width;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.thredded--topics--sticky-topics-divider {
|
14
|
+
margin-top: -$thredded-topics-list-gutter-y / 2;
|
15
|
+
margin-bottom: $thredded-topics-list-gutter-y / 2;
|
16
|
+
border: 0;
|
17
|
+
border-top: $thredded-base-border;
|
18
|
+
}
|
19
|
+
|
20
|
+
.thredded--topics--title {
|
21
|
+
@extend %thredded--heading;
|
22
|
+
display: inline;
|
23
|
+
font-size: 1.125rem; // 18px
|
24
|
+
line-height: 1.5;
|
25
|
+
|
26
|
+
a {
|
27
|
+
@extend %thredded--link;
|
28
|
+
color: $thredded-text-color;
|
29
|
+
display: inline;
|
30
|
+
|
31
|
+
&:hover {
|
32
|
+
color: $thredded-action-color;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.thredded--topics--categories {
|
38
|
+
list-style-type: none;
|
39
|
+
margin: 0;
|
40
|
+
padding: 0;
|
41
|
+
display: inline-block;
|
42
|
+
line-height: 1rem;
|
43
|
+
|
44
|
+
li {
|
45
|
+
font-size: .5rem;
|
46
|
+
display: inline-block;
|
47
|
+
color: $thredded-text-color;
|
48
|
+
background-color: lighten($thredded-text-color, 55%);
|
49
|
+
box-shadow: inset 0 -1px 0 lighten($thredded-text-color, 40%);
|
50
|
+
padding: 1px 6px;
|
51
|
+
border-radius: 2px;
|
52
|
+
text-transform: lowercase;
|
53
|
+
letter-spacing: 1px;
|
54
|
+
vertical-align: bottom;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.thredded--topics--started-by,
|
59
|
+
.thredded--topics--updated-by {
|
60
|
+
color: $thredded-secondary-text-color;
|
61
|
+
font-size: $thredded-font-size-small;
|
62
|
+
font-style: normal;
|
63
|
+
|
64
|
+
a {
|
65
|
+
@extend %thredded--link;
|
66
|
+
color: lighten($thredded-text-color, 20%);
|
67
|
+
|
68
|
+
&:hover {
|
69
|
+
color: $thredded-action-color;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
abbr {
|
74
|
+
&::after {
|
75
|
+
content: ' by ';
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.thredded--topics--updated-by {
|
81
|
+
margin-right: $thredded-small-spacing;
|
82
|
+
|
83
|
+
abbr {
|
84
|
+
&::before {
|
85
|
+
content: 'updated ';
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
.thredded--topics--participants--participant {
|
91
|
+
& + &::before {
|
92
|
+
content: '\2022\00A0'; // • and a non-breaking space
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
.thredded--topics--started-by {
|
97
|
+
display: none;
|
98
|
+
|
99
|
+
abbr {
|
100
|
+
&::before {
|
101
|
+
content: 'started ';
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
.thredded--topics--moderation-state {
|
107
|
+
padding: 0.3em 0.5em;
|
108
|
+
font-size: $thredded-font-size-small;
|
109
|
+
font-style: normal;
|
110
|
+
}
|
111
|
+
|
112
|
+
.thredded--topics--posts-count {
|
113
|
+
border-radius: 50%;
|
114
|
+
display: inline-block;
|
115
|
+
font-weight: 900;
|
116
|
+
font-size: 0.8rem;
|
117
|
+
height: 2rem;
|
118
|
+
left: -$thredded-topics-topic-posts-counter-width;
|
119
|
+
line-height: 2rem;
|
120
|
+
margin-right: $thredded-base-spacing;
|
121
|
+
position: absolute;
|
122
|
+
text-align: center;
|
123
|
+
top: 0;
|
124
|
+
width: 2rem;
|
125
|
+
transition: background 0.1s linear, color 0.1s linear;
|
126
|
+
}
|
127
|
+
|
128
|
+
.thredded--topic-read {
|
129
|
+
> .thredded--topics--title a {
|
130
|
+
font-weight: lighter;
|
131
|
+
}
|
132
|
+
> .thredded--topics--posts-count {
|
133
|
+
background: $thredded-badge-inactive-background;
|
134
|
+
color: $thredded-badge-inactive-color;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
.thredded--topic-unread {
|
139
|
+
> .thredded--topics--title a {
|
140
|
+
font-weight: bold;
|
141
|
+
}
|
142
|
+
> .thredded--topics--posts-count {
|
143
|
+
background: $thredded-badge-active-background;
|
144
|
+
color: $thredded-badge-active-color;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
.thredded--topics--follow-icon {
|
149
|
+
position: absolute;
|
150
|
+
right: -1.6rem;
|
151
|
+
top: 0;
|
152
|
+
@include thredded-media-mobile {
|
153
|
+
right: -$thredded-topics-topic-posts-counter-width;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
.thredded--topic-following {
|
158
|
+
.thredded--topics--follow-icon {
|
159
|
+
@extend %thredded--following-icon;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
.thredded--topic-notfollowing {
|
164
|
+
.thredded--topics--follow-icon {
|
165
|
+
@extend %thredded--not-following-icon;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.thredded--new-topic-form,
|
170
|
+
.thredded--new-private-topic-form {
|
171
|
+
@media print {
|
172
|
+
display: none;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
.thredded--topic-locked {
|
177
|
+
.thredded--topics--posts-count {
|
178
|
+
color: $thredded-badge-locked-color;
|
179
|
+
background-color: $thredded-badge-locked-background;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
.thredded--topic--locked-notice {
|
184
|
+
@extend %thredded--alert;
|
185
|
+
@extend %thredded--alert--warning;
|
186
|
+
}
|