- register_svg_icon "pencil"
- register_svg_icon "upload"
- add_admin_route "explorer.title", "discourse-data-explorer", use_new_show_route: true
- module ::DiscourseDataExplorer
- PLUGIN_NAME = "discourse-data-explorer"
- # This should always match the max value for the
- # data_explorer_query_result_limit site setting
- QUERY_RESULT_MAX_LIMIT = 10_000
- end
- require_relative "lib/discourse_data_explorer/engine"
- after_initialize do
- GlobalSetting.add_default(:max_data_explorer_api_reqs_per_10_seconds, 2)
- # Available options:
- # - warn
- # - warn+block