mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-09 02:40:50 +00:00
This PR addresses the effort to use one icon representing discourse-ai. Removed discourse-sparkles from discourse-ai, now included in core ``vendor/assets/svg-icons/discourse-additional.svg``
22 lines
560 B
Ruby
22 lines
560 B
Ruby
# frozen_string_literal: true
|
|
module DiscourseAi
|
|
module AiHelper
|
|
class EntryPoint
|
|
def load_files
|
|
require_relative "llm_prompt"
|
|
require_relative "semantic_categorizer"
|
|
require_relative "painter"
|
|
end
|
|
|
|
def inject_into(plugin)
|
|
plugin.register_seedfu_fixtures(
|
|
Rails.root.join("plugins", "discourse-ai", "db", "fixtures", "ai_helper"),
|
|
)
|
|
|
|
additional_icons = %w[spell-check language]
|
|
additional_icons.each { |icon| plugin.register_svg_icon(icon) }
|
|
end
|
|
end
|
|
end
|
|
end
|