Skip to content

Commit

Permalink
Generating static files
Browse files Browse the repository at this point in the history
  • Loading branch information
openprojectci committed Nov 9, 2023
1 parent ac9f727 commit 2142e3b
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 0 deletions.
9 changes: 9 additions & 0 deletions static/classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@
"PageHeader-actions": [
"Primer::OpenProject::PageHeader"
],
"PageHeader-backButton": [
"Primer::OpenProject::PageHeader"
],
"PageHeader-breadcrumbs": [
"Primer::OpenProject::PageHeader"
],
"PageHeader-description": [
"Primer::OpenProject::PageHeader"
],
Expand All @@ -444,6 +450,9 @@
"PageHeader-title--large": [
"Primer::OpenProject::PageHeader"
],
"PageHeader-titleBar": [
"Primer::OpenProject::PageHeader"
],
"Popover": [
"Primer::Beta::Popover"
],
Expand Down
12 changes: 12 additions & 0 deletions static/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,18 @@
]
},
"Primer::OpenProject::PageHeader": {
"BACK_BUTTON_ICON_OPTIONS": [
"arrow-left",
"chevron-left",
"triangle-left"
],
"BACK_BUTTON_SIZE_OPTIONS": [
"small",
"medium",
"large"
],
"DEFAULT_BACK_BUTTON_ICON": "arrow-left",
"DEFAULT_BACK_BUTTON_SIZE": "medium",
"DEFAULT_HEADER_VARIANT": "medium",
"HEADER_VARIANT_OPTIONS": [
"large",
Expand Down
81 changes: 81 additions & 0 deletions static/info_arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15472,10 +15472,65 @@
"description": "{{link_to_system_arguments_docs}}"
}
]
},
{
"name": "back_button",
"description": "Optional back button prepend the title",
"parameters": [
{
"name": "size",
"type": "Symbol",
"default": "N/A",
"description": "One of `:large`, `:medium`, or `:small`."
},
{
"name": "icon",
"type": "String",
"default": "N/A",
"description": "One of `arrow-left`, `chevron-left`, or `triangle-left`."
},
{
"name": "system_arguments",
"type": "Hash",
"default": "N/A",
"description": "{{link_to_system_arguments_docs}}"
}
]
},
{
"name": "breadcrumbs",
"description": "Optional breadcrumbs above the title row",
"parameters": [
{
"name": "items",
"type": "Array<String, Hash>",
"default": "N/A",
"description": "Items is an array of strings, hash {href, text} or an anchor tag string"
},
{
"name": "system_arguments",
"type": "Hash",
"default": "N/A",
"description": "{{link_to_system_arguments_docs}}"
}
]
}
],
"methods": [
{
"name": "anchor_string_to_object",
"description": "transform anchor tag strings to {href, text} objects\ne.g \"\\u003ca href=\\\"/admin\\\"\\u003eAdministration\\u003c/a\\u003e\"",
"parameters": [

]
},
{
"name": "anchor_tag_string?",
"description": "Check if the item is an anchor tag string e.g \"\\u003ca href=\\\"/admin\\\"\\u003eAdministration\\u003c/a\\u003e\"",
"parameters": [

]
}
],
"previews": [
{
Expand Down Expand Up @@ -15529,6 +15584,32 @@
"color-contrast"
]
}
},
{
"preview_path": "primer/open_project/page_header/back_button",
"name": "back_button",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/open_project/page_header/breadcrumbs",
"name": "breadcrumbs",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
}
],
"subcomponents": [
Expand Down
26 changes: 26 additions & 0 deletions static/previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -4755,6 +4755,32 @@
"color-contrast"
]
}
},
{
"preview_path": "primer/open_project/page_header/back_button",
"name": "back_button",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/open_project/page_header/breadcrumbs",
"name": "breadcrumbs",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
}
]
},
Expand Down

0 comments on commit 2142e3b

Please sign in to comment.