Class: Avo::Debug::StatusComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Avo::Debug::StatusComponent
- Includes:
- ApplicationHelper
- Defined in:
- app/components/avo/debug/status_component.rb
Instance Method Summary collapse
Methods included from ApplicationHelper
#a_button, #a_link, #body_classes, #button_classes, #chart_color, #container_classes, #d, #decode_filter_params, #e, #editor_file_path, #editor_url, #empty_state, #encode_filter_params, #frame_id, #get_model_class, #input_classes, #mount_path, #number_to_social, #possibly_rails_authentication?, #render_license_warning, #root_path_without_url, #rtl?, #text_direction, #ui, #wrap_in_modal
Methods included from ResourcesHelper
#field_wrapper, #filter_wrapper, #index_field_wrapper, #item_selector_data_attributes, #record_path, #record_title, #resource_for_record, #resource_grid, #resource_show_path, #resource_table
Instance Method Details
#cache_operational ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'app/components/avo/debug/status_component.rb', line 21 def cache_operational icon, color = if Avo::Services::TelemetryService.cache_operational? ["tabler/outline/circle-check", "text-green-500"] else ["tabler/outline/circle-x", "text-red-500"] end helpers.svg(icon, class: "h-5 inline -mt-1 relative #{color}") end |
#information_items ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/components/avo/debug/status_component.rb', line 6 def information_items @information_items ||= { license_key: Avo.configuration.license_key, ruby_version: RUBY_VERSION, rails_version: Rails::VERSION::STRING, environment: Rails.env, host: Avo::Current.request&.host, port: Avo::Current.request&.port, ip: Avo::Current.request&.ip, app_name: Avo.configuration.app_name, cache_store: Avo.cache_store.class, cache_operational:, }.stringify_keys.except(*Avo.configuration.exclude_from_status) end |