Add basic tables and graphs for viewing things like uploads over time, new users over time, comments over time, etc. Located at https://betabooru.donmai.us/reports. The graphing uses Apache ECharts: https://echarts.apache.org/en/index.html.
14 lines
311 B
Ruby
14 lines
311 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TimeSeriesComponent < ApplicationComponent
|
|
delegate :current_page_path, :search_params, to: :helpers
|
|
|
|
attr_reader :results, :columns, :mode
|
|
|
|
def initialize(results, columns, mode: :table)
|
|
@results = results
|
|
@columns = columns
|
|
@mode = mode.to_sym
|
|
end
|
|
end
|