Module: TurboChat::ApplicationHelper

Includes:
ConfigSupport, MentionSupport, MessageRendering, ParticipantSupport
Defined in:
app/helpers/turbo_chat/application_helper.rb,
app/helpers/turbo_chat/application_helper/config_support.rb,
app/helpers/turbo_chat/application_helper/mention_support.rb,
app/helpers/turbo_chat/application_helper/message_rendering.rb,
app/helpers/turbo_chat/application_helper/participant_support.rb,
app/helpers/turbo_chat/application_helper/mention_support/entry_builder.rb,
app/helpers/turbo_chat/application_helper/mention_support/token_builder.rb,
app/helpers/turbo_chat/application_helper/mention_support/permission_support.rb

Defined Under Namespace

Modules: ConfigSupport, MentionSupport, MessageRendering, ParticipantSupport

Constant Summary collapse

HEX_COLOR_PATTERN =
/\A#(?:\h{3}|\h{6}|\h{8})\z/.freeze
EMOJI_ALIAS_PATTERN =
/:([a-z0-9_+\-]{2,32}):/i.freeze
MENTION_PATTERN =
/(?<![[:alnum:]_])@[[:alpha:]][[:alnum:]_]{0,31}/.freeze

Constants included from ConfigSupport

ConfigSupport::BOOLEAN_CHAT_SETTINGS

Method Summary

Methods included from MentionSupport

#chat_member_mention_lookup, #chat_mention_options, #chat_mentions_enabled_for?, #chat_self_mention_tokens, #chat_self_role_mention_token

Methods included from MessageRendering

#chat_mentions_container_inline_style, #chat_message_css_classes, #chat_message_inline_style, #chat_message_mention_tokens, #render_chat_message_body

Methods included from ParticipantSupport

#can_edit_chat_message?, #chat_participant_email, #chat_participant_invite_option_label, #chat_participant_name, #chat_participant_search_text, #own_chat_message?

Methods included from ConfigSupport

#chat_assistant_mode?, #chat_composer_placeholder_text, #chat_message_append_start?, #chat_message_insert_position, #chat_message_source_badge_label, #chat_message_source_label, #chat_message_source_labels, #chat_mode_key, #chat_shell_style_class, #chat_signal_ttl_seconds, #chat_style_key, #chat_unbounded_style?