mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-12-11 10:05:32 +00:00
This adds some new visualizations and styles and reports and cleans up some existing styles and class names. Daily activity rhythm <img width="1588" height="412" alt="image" src="https://github.com/user-attachments/assets/0c7980e4-7bb6-4e08-9957-24c3c5718572" /> Helping new members <img width="1456" height="310" alt="image" src="https://github.com/user-attachments/assets/096a13da-ab63-45d4-9b68-53a01df62a78" /> Chat activity <img width="1442" height="926" alt="image" src="https://github.com/user-attachments/assets/07ce2cab-1963-4918-a9ff-805c251a1377" /> Assigns <img width="1388" height="844" alt="image" src="https://github.com/user-attachments/assets/ee49c6ee-2da6-4bfa-b500-715ed7ceb13a" /> AI usage <img width="1442" height="1254" alt="image" src="https://github.com/user-attachments/assets/b382bffb-010d-4072-9144-cb7e6a8680e3" /> Invitations <img width="1486" height="1346" alt="image" src="https://github.com/user-attachments/assets/020f68a9-69d2-46ed-9f38-b0d5e98d02de" /> Writing analysis <img width="917" height="409" alt="image" src="https://github.com/user-attachments/assets/1147427c-513f-4737-8f28-99bfc6f4aff9" /> --------- Co-authored-by: awesomerobot <kris.aubuchon@discourse.org> Co-authored-by: Martin Brennan <martin@discourse.org>
37 lines
1.0 KiB
Ruby
37 lines
1.0 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
# name: discourse-rewind
|
|
# about: A fun end-of-year summary for members' activity in the community.
|
|
# meta_topic_id: https://meta.discourse.org/t/discourse-rewind-2024/348063
|
|
# version: 0.0.1
|
|
# authors: Discourse
|
|
# url: https://github.com/discourse/discourse-rewind
|
|
# required_version: 2.7.0
|
|
|
|
enabled_site_setting :discourse_rewind_enabled
|
|
|
|
register_svg_icon "repeat"
|
|
register_svg_icon "volume-high"
|
|
register_svg_icon "volume-xmark"
|
|
|
|
register_asset "stylesheets/common/_index.scss"
|
|
register_asset "stylesheets/mobile/_index.scss", :mobile
|
|
|
|
module ::DiscourseRewind
|
|
PLUGIN_NAME = "discourse-rewind"
|
|
|
|
def self.public_asset_path(name)
|
|
File.expand_path(File.join(__dir__, "public", name))
|
|
end
|
|
end
|
|
|
|
require_relative "lib/discourse_rewind/engine"
|
|
|
|
after_initialize do
|
|
add_to_serializer(:current_user, :is_rewind_active) do
|
|
Rails.env.development? || Date.today.month == 1 || Date.today.month == 12
|
|
end
|
|
|
|
add_to_serializer(:current_user, :is_development_env) { Rails.env.development? }
|
|
end
|