mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-01 06:49:30 +00:00
UI: Custom icon for Discobot discoveries (#1144)
This commit is contained in:
parent
04678cab04
commit
09f4895302
@ -25,7 +25,7 @@ export default class AiFullPageDiscobotDiscoveries extends Component {
|
||||
class="ai-search-discoveries__discoveries-title full-page-discoveries"
|
||||
>
|
||||
<span>
|
||||
{{icon "robot"}}
|
||||
{{icon "ai-bot"}}
|
||||
{{i18n "discourse_ai.discobot_discoveries.main_title"}}
|
||||
</span>
|
||||
|
||||
|
@ -20,7 +20,7 @@ export default class AiDiscobotDiscoveries extends Component {
|
||||
<div class="ai-discobot-discoveries">
|
||||
<h3 class="ai-search-discoveries__discoveries-title">
|
||||
<span>
|
||||
{{icon "robot"}}
|
||||
{{icon "ai-bot"}}
|
||||
{{i18n "discourse_ai.discobot_discoveries.main_title"}}
|
||||
</span>
|
||||
|
||||
|
@ -14,9 +14,6 @@ module DiscourseAi
|
||||
plugin.on(:post_created, &sentiment_analysis_cb)
|
||||
plugin.on(:post_edited, &sentiment_analysis_cb)
|
||||
|
||||
additional_icons = %w[face-smile face-meh face-angry]
|
||||
additional_icons.each { |icon| plugin.register_svg_icon(icon) }
|
||||
|
||||
EmotionFilterOrder.register!(plugin)
|
||||
EmotionDashboardReport.register!(plugin)
|
||||
SentimentDashboardReport.register!(plugin)
|
||||
|
@ -131,6 +131,10 @@ after_initialize do
|
||||
info
|
||||
bars-staggered
|
||||
far-circle-question
|
||||
face-smile
|
||||
face-meh
|
||||
face-angry
|
||||
ai-bot
|
||||
]
|
||||
plugin_icons.each { |icon| register_svg_icon(icon) }
|
||||
end
|
||||
|
8
svg-icons/ai-bot-icon.svg
Normal file
8
svg-icons/ai-bot-icon.svg
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
<symbol id="ai-bot" viewBox="0 0 365 267">
|
||||
<path d="M124.91 266.6H18.51c-4.8 0-9.5-1.9-13.1-5.4-3.6-3.6-5.6-8.4-5.4-13.4V131.1c.2-34.6 13.8-67.4 38.7-92.1 25.2-25.2 58.8-39 94.4-39h.4c35.4 0 68.5 13.9 93.3 39.2 17.1 17.5 29 39.3 34.5 63 3.6 15.5-4.4 31.4-19 37.8-10.4 4.6-49.2 19.7-121.4 27 3.2 8 11.5 16.6 33.2 21.1 21.2 4.4 45.9 3 62.3 2.1 7-.4 12-.7 15.5-.4 4.5.3 8.4 3 10.4 7.1 1.9 4 1.6 8.8-1 12.5-4.4 6.4-9.4 12.5-14.9 18-24.1 24.5-56.4 38.4-90.9 39.1h-10.5c0 .1-.1.1-.2.1h.1Zm-99.9-25h110c24.8-.5 48.3-9.5 67-25.5-15.7.5-35.2.3-53-3.4-41.6-8.7-52.8-32.3-54.9-50.7-.5-4.6.8-9.1 3.7-12.7s7.2-5.8 11.8-6.2c58.9-5.2 101.9-16.8 122.5-25.8 3.6-1.6 5.6-5.5 4.7-9.3-4.5-19.3-14.1-36.9-28-51.1-20-20.4-46.8-31.7-75.5-31.7h-.4c-29.1 0-56.3 11.3-76.8 31.7-20.1 20-31.2 46.5-31.2 74.4v110.3c-.1 0 0 0 0 0h.1Zm-7.2 0Zm-5.1-110.4Z" style="fill:#333"/>
|
||||
<circle cx="121.71" cy="79.3" r="22.8" style="fill:#333"/>
|
||||
<path d="M364.01 133.2c-.5-3.7-2.5-7-5.5-9.2s-6.7-3.2-10.4-2.6l-37.2 5.5c-3.7.5-7 2.5-9.2 5.5-2.2 3-3.2 6.7-2.6 10.4.7 4.7 3.7 8.7 8.1 10.7 1.8.8 3.8 1.2 5.7 1.2s1.4 0 2.1-.2l37.2-5.5c3.7-.5 7-2.5 9.2-5.5s3.2-6.7 2.6-10.4v.1ZM349.01 200.4l-51.2-25.9c-6.6-3.8-15.2-1.6-19 5-1.9 3.2-2.4 7-1.5 10.6s3.2 6.7 6.5 8.5l51.2 25.9c.9.5 1.8.9 2.8 1.2 1.4.4 2.8.6 4.2.6 4.9 0 9.5-2.5 12-6.9 3.9-6.7 1.7-15.3-5-19.2v.2Z" style="fill:#333"/>
|
||||
</symbol>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
Loading…
x
Reference in New Issue
Block a user