discourse/app/models
Penar Musaraj 03deda2147
Upgrade to FontAwesome 5 (take two) (#6673)
* Add missing icons to set

* Revert FA5 revert

 This reverts commit 42572ff

* use new SVG syntax in locales

* Noscript page changes (remove login button, center "powered by" footer text)

* Cast wider net for SVG icons in settings

- include any _icon setting for SVG registry (offers better support for plugin settings)

- let themes store multiple pipe-delimited icons in a setting

- also replaces broken onebox image icon with SVG reference in cooked post processor

* interpolate icons in locales

* Fix composer whisper icon alignment

* Add support for stacked icons

* SECURITY: enforce hostname to match discourse hostname

This ensures that the hostname rails uses for various helpers always matches
the Discourse hostname

* load SVG sprite with pre-initializers

* FIX: enable caching on SVG sprites

* PERF: use JSONP for SVG sprites so they are served from CDN

This avoids needing to deal with CORS for loading of the SVG

Note, added the svg- prefix to the filename so we can quickly tell in
dev tools what the file is

* Add missing SVG sprite JSONP script to CSP

* Upgrade to FA 5.5.0

* Add support for all FA4.7 icons

- adds complete frontend and backend for renamed FA4.7 icons

- improves performance of SvgSprite.bundle and SvgSprite.all_icons

* Fix group avatar flair preview

- adds an endpoint at /svg-sprites/search/:keyword

- adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset

* Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
..
concerns FIX: Wrap custom fields database statements in a transaction. 2018-10-18 12:23:04 +08:00
about.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_dashboard_data.rb FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
admin_dashboard_next_data.rb FIX: makes dashboard more resilient to errors (#6217) 2018-07-31 21:23:28 -04:00
admin_dashboard_next_general_data.rb FIX: treats users_(by_type|tl) as other reports (#6391) 2018-09-13 17:35:54 +02:00
admin_dashboard_next_index_data.rb UI: improves dashboard table reports 2018-07-31 17:35:13 -04:00
api_key.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
application_request.rb FEATURE: control which web crawlers can access using a whitelist or blacklist 2018-03-22 15:41:02 -04:00
auto_track_duration_site_setting.rb
backup_file.rb FEATURE: Support backup uploads/downloads directly to/from S3. 2018-10-15 09:43:31 +08:00
backup_location_site_setting.rb FEATURE: Support backup uploads/downloads directly to/from S3. 2018-10-15 09:43:31 +08:00
badge_grouping.rb Update annotations. 2018-02-20 14:28:58 +08:00
badge_type.rb Update annotations. 2018-02-20 14:28:58 +08:00
badge.rb Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
category_and_topic_lists.rb
category_custom_field.rb
category_featured_topic.rb refinement and test for batch mode on feature_topics 2017-12-20 13:58:05 +11:00
category_group.rb FEATURE: move staff tags setting to tag group settings 2018-04-20 15:34:23 -04:00
category_list.rb FEATURE: hide muted categories from /categories list (#6531) 2018-10-26 11:34:39 +11:00
category_page_style.rb Feature: add boxes with subcategories option for desktop categories page (#6471) 2018-10-11 15:59:37 +08:00
category_search_data.rb Update annotations. 2018-07-16 14:19:07 +08:00
category_tag_group.rb Update annotations. 2018-02-20 14:28:58 +08:00
category_tag_stat.rb Update annotations. 2018-07-16 14:19:07 +08:00
category_tag.rb Update annotations. 2018-02-20 14:28:58 +08:00
category_user.rb FIX: don't send multiple requests when changing category notification (#6435) 2018-10-01 23:41:23 +08:00
category.rb FIX: Fix broken theme field URLs. (#6622) 2018-11-23 16:11:05 +01:00
child_theme.rb FEATURE: themes and components split 2018-08-24 11:30:00 +10:00
color_scheme_color.rb Update annotations. 2018-02-20 14:28:58 +08:00
color_scheme.rb FIX: use current user color scheme when filling theme-color attribute (#6384) 2018-09-12 11:04:58 +10:00
custom_emoji.rb
developer.rb
digest_email_site_setting.rb
directory_item.rb FIX user directory time period count (#6586) 2018-11-12 15:30:05 +01:00
discourse_single_sign_on.rb SECURITY: correct edge case when SSO provides unvalidated emails 2018-09-11 08:24:02 +10:00
discourse_version_check.rb REFACTOR: Avoid duplicated logic on server and client. 2017-11-21 17:10:04 +08:00
draft_sequence.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
draft.rb FIX: only send originalText when we need to 2018-11-14 17:47:59 +01:00
email_change_request.rb
email_log.rb FEATURE: add external details to user fields 2018-09-20 08:10:51 +05:30
email_token.rb Review Changes for f4f8a293e7. 2018-02-21 14:55:49 +08:00
embeddable_host.rb FIX: store the topic links using the cooked upload url 2018-08-14 12:23:32 +02:00
embedding.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
emoji_set_site_setting.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
emoji.rb FEATURE: emoji 11.0 "recently added" update (#6275) 2018-08-16 11:59:45 +02:00
facebook_user_info.rb Update annotations. 2018-07-16 14:19:07 +08:00
github_user_info.rb Update annotations. 2018-02-20 14:28:58 +08:00
given_daily_like.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
global_setting.rb rollback changes 2018-07-06 17:16:40 -05:00
google_user_info.rb Update annotations. 2018-02-20 14:28:58 +08:00
group_archived_message.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
group_custom_field.rb
group_history.rb
group_manager.rb
group_mention.rb Update annotations. 2018-02-20 14:28:58 +08:00
group_user.rb FIX: change title when primary group changes (#6602) 2018-11-14 08:28:41 +08:00
group.rb Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
incoming_domain.rb
incoming_email.rb FEATURE: Use Message-ID for detecting email replies to group 2018-04-05 11:00:38 +02:00
incoming_link.rb FIX: ignore invalid usernames in incoming link tracker 2018-09-04 12:28:32 +10:00
incoming_links_report.rb FIX: adds support for missing reports from old dashboard (#6624) 2018-11-19 12:20:05 +01:00
incoming_referer.rb
instagram_user_info.rb
invite_redeemer.rb FIX: Remove user fields when anonymizing user 2018-09-07 00:02:56 +02:00
invite.rb FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
invited_group.rb
javascript_cache.rb FIX: extracted theme JavaScripts for multisite (#6502) 2018-10-18 17:05:34 +11:00
like_notification_frequency_site_setting.rb
locale_site_setting.rb FEATURE: Allow plugins to register a new locale 2018-01-25 14:57:41 +01:00
mailing_list_mode_site_setting.rb
muted_user.rb Update annotations. 2018-02-20 14:28:58 +08:00
new_topic_duration_site_setting.rb
notification_level_when_replying_site_setting.rb
notification.rb Update annotations. 2018-07-16 14:19:07 +08:00
oauth2_user_info.rb Update annotations. 2018-02-20 14:28:58 +08:00
onceoff_log.rb
optimized_image.rb FIX: correct svg handling for images 2018-11-07 15:29:26 +11:00
permalink.rb Remove use of rescue nil. 2018-04-02 13:52:51 +08:00
plugin_store_row.rb Update annotations. 2018-02-20 14:28:58 +08:00
plugin_store.rb FEATURE: Added method to get multiple values at once from PluginStore. (#6225) 2018-08-01 18:42:40 +02:00
post_action_type.rb Remove legacy vote post action code. (#6009) 2018-07-09 16:54:18 +08:00
post_action.rb FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
post_analyzer.rb DEV: Avoid using send and make the method public instead. 2018-09-13 16:34:32 +08:00
post_custom_field.rb Update annotations. 2018-07-16 14:19:07 +08:00
post_detail.rb Update annotations. 2018-02-20 14:28:58 +08:00
post_mover.rb FIX: Moving posts to existing topic didn't update topic metadata 2018-08-01 18:05:43 +02:00
post_reply_key.rb Update annotations. 2018-07-24 15:49:55 +08:00
post_reply.rb
post_revision.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
post_search_data.rb Update annotations. 2018-07-16 14:19:07 +08:00
post_stat.rb Update annotations. 2018-02-20 14:28:58 +08:00
post_timing.rb DEV: add API endpoint to destroy_timings only of last post 2018-11-13 16:07:48 +11:00
post_upload.rb
post.rb FEATURE: automatically hide non-TL4 posts when flagged by a TL4 user 2018-10-11 17:11:46 +05:30
previous_replies_site_setting.rb
push_subscription.rb Update annotations. 2018-07-16 14:19:07 +08:00
queued_post.rb Rename approval web hook event type to queued post 2018-07-26 10:29:38 +05:30
quoted_post.rb FIX: ignore self-quotes from the same post when saving (#6082) 2018-07-10 16:17:28 +08:00
remote_theme.rb FEATURE: add branch option to remote theme import 2018-10-09 17:01:08 +11:00
report.rb FIX: adds support for missing reports from old dashboard (#6624) 2018-11-19 12:20:05 +01:00
s3_region_site_setting.rb FEATURE: Use S3 dualstack endpoints 2018-08-27 11:22:46 +10:00
scheduler_stat.rb
screened_email.rb Update annotations. 2018-02-20 14:28:58 +08:00
screened_ip_address.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
screened_url.rb Update annotations. 2018-02-20 14:28:58 +08:00
search_log.rb refactors trending search report to use SearchLog 2018-09-17 10:19:40 +10:00
shared_draft.rb Update annotations. 2018-07-16 14:19:07 +08:00
single_sign_on_record.rb Update annotations. 2018-05-09 07:52:45 +08:00
site_setting.rb Fix the build. 2018-11-14 17:32:32 +08:00
site.rb FIX: Include auth_providers for anonymous users when login_required 2018-08-07 09:24:16 +01:00
skipped_email_log.rb Add missing copy 2018-08-23 09:44:15 +02:00
slug_setting.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
stylesheet_cache.rb FIX: correctly keep stylesheet cache entries 2018-09-14 12:54:11 +10:00
tag_group_membership.rb Update annotations. 2018-02-20 14:28:58 +08:00
tag_group_permission.rb Update annotations. 2018-07-16 14:19:07 +08:00
tag_group.rb FIX: tags in a 'visible by everyone but usable only by staff' group weren't visible by everyone 2018-05-16 09:48:19 +02:00
tag_search_data.rb Update annotations. 2018-07-16 14:19:07 +08:00
tag_user.rb FEATURE: Mixed case tagging (#6454) 2018-10-05 10:23:52 +01:00
tag.rb FEATURE: Add button to delete unused tags (#6587) 2018-11-12 16:24:34 +00:00
theme_field.rb FIX: only extract script tags with certain types (#6553) 2018-11-01 16:01:46 -04:00
theme_setting.rb Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
theme.rb FIX: clear color scheme cache when clearing theme cache 2018-10-16 12:00:46 +11:00
top_lists.rb
top_menu_item.rb
top_topic.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
topic_allowed_group.rb
topic_allowed_user.rb
topic_converter.rb FIX: update categories topic_count when converting topic to a PM and vice versa 2018-04-04 12:01:56 +05:30
topic_custom_field.rb Update annotations. 2018-07-16 14:19:07 +08:00
topic_embed.rb FIX: drop title updates through RSS feeds 2018-08-28 16:25:04 +10:00
topic_featured_users.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
topic_invite.rb
topic_link_click.rb FIX: store the topic links using the cooked upload url 2018-08-14 12:23:32 +02:00
topic_link.rb FIX: Don't rescue PG::UniqueViolation within a transaction. 2018-10-18 10:54:30 +08:00
topic_list.rb FIX: Shared draft performance fix + missing avatars 2018-03-28 16:11:43 -04:00
topic_notifier.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_participants_summary.rb
topic_poster.rb
topic_posters_summary.rb Require dependency otherwise it causes Sidekiq to lock up in development. 2017-09-25 13:48:59 +08:00
topic_search_data.rb Update annotations. 2018-07-16 14:19:07 +08:00
topic_tag.rb FIX: automatically in/decrement topic_tags.pm_topic_count 2018-05-15 16:05:48 +02:00
topic_timer.rb Update annotations. 2018-07-16 14:19:07 +08:00
topic_tracking_state.rb Enable Lint/ShadowingOuterLocalVariable for Rubocop. 2018-09-04 10:16:42 +08:00
topic_user.rb FIX: don't allow inviting more than max_allowed_message_recipients 2018-08-23 14:36:49 +10:00
topic_view_item.rb DEV: remove all calls to SqlBuilder use DB.build instead 2018-06-20 17:53:49 +10:00
topic.rb FIX: reset bump date resets bumped_at to the last regular post in topic (#6605) 2018-11-14 18:56:22 +01:00
translation_override.rb Fix the build 2018-03-16 22:55:42 +01:00
trust_level_and_staff_setting.rb FEATURE: Support disabling tag creation for non-staff users. 2018-06-27 07:15:02 +08:00
trust_level_setting.rb FEATURE: Display trust level descriptions in site settings (#6421) 2018-09-21 15:10:38 +01:00
trust_level3_requirements.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
twitter_user_info.rb Update annotations. 2018-07-16 14:19:07 +08:00
unsubscribe_key.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
upload.rb FEATURE: Upload Site Settings. (#6573) 2018-11-14 15:03:02 +08:00
user_action.rb make linter happy 2018-06-20 18:03:27 +10:00
user_api_key.rb FEATURE: adds latest to user-api-key session scope 2018-10-19 09:54:06 +02:00
user_archived_message.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
user_auth_token_log.rb FEATURE: Let users see their user auth tokens. (#6313) 2018-08-31 10:18:06 +02:00
user_auth_token.rb FEATURE: Compute distance between logins to generate login alerts. (#6562) 2018-11-14 13:26:47 +01:00
user_avatar.rb FIX: stop logging every 404 error when searching for gravatars 2018-10-23 11:43:14 +11:00
user_badge.rb Update annotations. 2018-07-16 14:19:07 +08:00
user_badges.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_custom_field.rb
user_email.rb Update annotations. 2018-07-16 14:19:07 +08:00
user_export.rb FIX: Clean up stale UserExport records daily. 2018-06-05 09:43:40 +08:00
user_field_option.rb Update annotations. 2018-02-20 14:28:58 +08:00
user_field.rb FEATURE: add external details to user fields 2018-09-20 08:10:51 +05:30
user_history.rb FEATURE: Show change name of user in staff logs (#6647) 2018-11-22 10:13:02 +08:00
user_open_id.rb Update annotations. 2018-02-20 14:28:58 +08:00
user_option.rb DEV: Update annotations. 2018-11-07 11:11:19 +08:00
user_profile_view.rb DEV: remove all calls to SqlBuilder use DB.build instead 2018-06-20 17:53:49 +10:00
user_profile.rb FIX: store the topic links using the cooked upload url 2018-08-14 12:23:32 +02:00
user_search_data.rb Update annotations. 2018-07-16 14:19:07 +08:00
user_search.rb DEV: remove all calls to SqlBuilder use DB.build instead 2018-06-20 17:53:49 +10:00
user_second_factor.rb PERF: Add missing index on user_id for user_second_factors table. 2018-07-16 14:21:07 +08:00
user_stat.rb DEV: Update annotations. 2018-11-07 11:11:19 +08:00
user_summary.rb FIX: User AvatarLookup for looking up avatar details (#6508) 2018-10-18 15:49:34 -04:00
user_upload.rb Add missing annotations 2018-10-08 18:01:21 +02:00
user_visit.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
user_warning.rb Update annotations. 2018-02-20 14:28:58 +08:00
user.rb FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
username_validator.rb Revert "FIX: Username uniqueness check should not happen to current user_id" 2018-04-03 00:44:04 +08:00
watched_word.rb Update annotations. 2018-02-20 14:28:58 +08:00
web_crawler_request.rb Update annotations. 2018-07-16 14:19:07 +08:00
web_hook_event_type.rb Rename approval web hook event type to queued post 2018-07-26 10:29:38 +05:30
web_hook_event.rb Update annotations. 2018-02-20 14:28:58 +08:00
web_hook.rb FIX: Generate webhook payloads before destroy events (#6325) 2018-10-05 16:53:59 +08:00