Class: Avo::PrivateController

Inherits:
ApplicationController show all
Defined in:
app/controllers/avo/private_controller.rb

Constant Summary

Constants included from Concerns::FindAssociationField

Concerns::FindAssociationField::ASSOCIATIONS

Instance Method Summary collapse

Methods inherited from BaseApplicationController

#exception_logger, #turbo_frame_request?

Methods included from Concerns::FindAssociationField

#find_association_field

Methods included from Concerns::Breadcrumbs

#add_breadcrumb, #avo_breadcrumbs

Methods included from UrlHelpers

#edit_resource_path, #new_resource_path, #preview_resource_path, #related_resources_path, #resource_attach_path, #resource_detach_path, #resource_path, #resource_view_path, #resources_path

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, #manual_frame_cookie_name, #manual_frame_remembered?, #mount_path, #number_to_social, #possibly_rails_authentication?, #render_header_menu_items, #render_license_warning, #root_path_without_url, #rtl?, #safe_blob_path, #safe_blob_representation_url, #safe_blob_url, #text_direction, #ui, #wrap_in_modal

Methods included from SummaryChartHelper

#summary_chart_params_for

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

Methods included from CommonController

#default_url_options, #extra_default_url_options

Methods included from InitializesAvo

#_current_user, #context, #init_app, #load_appearance_settings

Methods included from Concerns::SafeCall

#safe_call

Instance Method Details

#appearanceObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'app/controllers/avo/private_controller.rb', line 11

def appearance
  @page_title = "Color Tokens [Private]"

  @foundation_tokens = [
    {name: "--color-background", desc: "Page background"},
    {name: "--color-foreground", desc: "Text foreground"},
    {name: "--color-primary", desc: "Primary surface"},
    {name: "--color-secondary", desc: "Secondary surface"},
    {name: "--color-tertiary", desc: "Tertiary surface"},
    {name: "--color-content", desc: "Text content"},
    {name: "--color-content-secondary", desc: "Secondary text"}
  ]

  @neutral_scale = Avo::Configuration::Appearance::NEUTRAL_SHADES.map do |shade|
    {name: shade.to_s, css_var: "--color-avo-neutral-#{shade}"}
  end

  @accent_tokens = [
    {name: "--color-accent", value: "var(--color-accent)", desc: "Accent"},
    {name: "--color-accent-content", value: "var(--color-accent-content)", desc: "Accent subtle"},
    {name: "--color-accent-foreground", value: "var(--color-accent-foreground)", desc: "Accent text"}
  ]

  @accent_options = [
    {name: "red"},
    {name: "orange"},
    {name: "amber"},
    {name: "yellow"},
    {name: "lime"},
    {name: "green"},
    {name: "emerald"},
    {name: "teal"},
    {name: "cyan"},
    {name: "sky"},
    {name: "blue"},
    {name: "indigo"},
    {name: "violet"},
    {name: "purple"},
    {name: "fuchsia"},
    {name: "pink"},
    {name: "rose"}
  ]
end

#designObject



7
8
9
# File 'app/controllers/avo/private_controller.rb', line 7

def design
  @page_title = "Design [Private]"
end