mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:21:23 +08:00
FEATURE: Update Font Awesome to v5.4.1 and SVGs (#6557)
* First take on subsetting svg icons * FontAwesome 5 svg subset WIP * Include icons from plugins/badges into svg sprite subset * add svg icon support to themes * Add spec for SvgSprite * Misc. SVG icon fixes * Use FA5 svgs in local-dates plugin * CSS adjustments, fix SVG icons in group flair * Use SVG icons in poll plugin * Add SVG icons to /wizard
This commit is contained in:
@ -15,6 +15,7 @@ class DiscoursePluginRegistry
|
||||
attr_writer :handlebars
|
||||
attr_writer :serialized_current_user_fields
|
||||
attr_writer :seed_data
|
||||
attr_writer :svg_icons
|
||||
attr_writer :locales
|
||||
attr_accessor :custom_html
|
||||
|
||||
@ -59,6 +60,10 @@ class DiscoursePluginRegistry
|
||||
@sass_variables ||= Set.new
|
||||
end
|
||||
|
||||
def svg_icons
|
||||
@svg_icons ||= []
|
||||
end
|
||||
|
||||
def handlebars
|
||||
@handlebars ||= Set.new
|
||||
end
|
||||
@ -105,6 +110,10 @@ class DiscoursePluginRegistry
|
||||
self.service_workers << filename
|
||||
end
|
||||
|
||||
def self.register_svg_icon(icon)
|
||||
self.svg_icons << icon
|
||||
end
|
||||
|
||||
def register_css(filename)
|
||||
self.class.stylesheets << filename
|
||||
end
|
||||
|
Reference in New Issue
Block a user