2021-04-03 00:53:34 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-12-07 17:30:25 +01:00
|
|
|
# name: discourse-rewind
|
2021-04-03 00:53:34 +02:00
|
|
|
# about: TODO
|
2023-11-09 11:23:55 +10:00
|
|
|
# meta_topic_id: TODO
|
2021-04-03 00:53:34 +02:00
|
|
|
# version: 0.0.1
|
|
|
|
# authors: Discourse
|
|
|
|
# url: TODO
|
2021-06-22 11:00:35 +02:00
|
|
|
# required_version: 2.7.0
|
2021-04-03 00:53:34 +02:00
|
|
|
|
2024-12-07 17:30:25 +01:00
|
|
|
enabled_site_setting :discourse_rewind_enabled
|
2021-04-03 00:53:34 +02:00
|
|
|
|
2024-12-13 17:00:17 +01:00
|
|
|
register_svg_icon "repeat"
|
|
|
|
|
2025-01-13 13:46:41 +01:00
|
|
|
register_asset "stylesheets/common/_index.scss"
|
|
|
|
register_asset "stylesheets/mobile/_index.scss", :mobile
|
2024-12-13 17:00:17 +01:00
|
|
|
|
2024-12-07 17:30:25 +01:00
|
|
|
module ::DiscourseRewind
|
|
|
|
PLUGIN_NAME = "discourse-rewind"
|
|
|
|
|
|
|
|
def self.public_asset_path(name)
|
|
|
|
File.expand_path(File.join(__dir__, "public", name))
|
|
|
|
end
|
2023-02-24 13:00:01 +00:00
|
|
|
end
|
|
|
|
|
2024-12-07 17:30:25 +01:00
|
|
|
require_relative "lib/discourse_rewind/engine"
|
2023-02-24 13:00:01 +00:00
|
|
|
|
2024-12-07 17:30:25 +01:00
|
|
|
after_initialize {}
|