Class: Spree::Admin::StyleGuideController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/admin/style_guide_controller.rb

Instance Method Summary collapse

Methods included from SetsUserLanguageLocaleKey

#set_user_language_locale_key

Instance Method Details

#indexObject



9
10
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
# File 'app/controllers/spree/admin/style_guide_controller.rb', line 9

def index
  @topics = {
    typography: [
      "fonts",
      "colors",
      "lists",
      "icons"
    ],
    forms: [
      "building_forms",
      "buttons",
      "helper_text",
      "inputs",
      "labels",
      "validation"
    ],
    components: [
      "pills",
      "modals",
      "tabs"
    ],
    messaging: [
      "loading",
      "flashes",
      "tooltips"
    ],
    tables: [
      "building_tables",
      "pagination"
    ]
  }
end