Skip to content

Commit 370680d

Browse files
committed
Generating static files
1 parent 2836f56 commit 370680d

File tree

4 files changed

+138
-2
lines changed

4 files changed

+138
-2
lines changed

static/arguments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5775,7 +5775,7 @@
57755775
"name": "src",
57765776
"type": "String",
57775777
"default": "`nil`",
5778-
"description": "The source url of the avatar image. When nil, renders a fallback with initials."
5778+
"description": "The source url of the avatar image. When nil, or broken URL it renders a fallback with initials."
57795779
},
57805780
{
57815781
"name": "alt",

static/constants.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,12 @@
16991699
"GeneratedSlotMethods": "Primer::OpenProject::AvatarStack::GeneratedSlotMethods"
17001700
},
17011701
"Primer::OpenProject::AvatarWithFallback": {
1702+
"ALLOWED_AVATAR_HOSTS": [
1703+
"gravatar.com",
1704+
"www.gravatar.com",
1705+
"secure.gravatar.com",
1706+
"avatars.githubusercontent.com"
1707+
],
17021708
"FONT_STACK": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
17031709
"GeneratedSlotMethods": "Primer::OpenProject::AvatarWithFallback::GeneratedSlotMethods"
17041710
},

static/info_arch.json

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18882,7 +18882,7 @@
1888218882
"name": "src",
1888318883
"type": "String",
1888418884
"default": "`nil`",
18885-
"description": "The source url of the avatar image. When nil, renders a fallback with initials."
18885+
"description": "The source url of the avatar image. When nil, or broken URL it renders a fallback with initials."
1888618886
},
1888718887
{
1888818888
"name": "alt",
@@ -19040,6 +19040,71 @@
1904019040
"color-contrast"
1904119041
]
1904219042
}
19043+
},
19044+
{
19045+
"preview_path": "primer/open_project/avatar_with_fallback/broken_gravatar_url",
19046+
"name": "broken_gravatar_url",
19047+
"snapshot": "true",
19048+
"skip_rules": {
19049+
"wont_fix": [
19050+
"region"
19051+
],
19052+
"will_fix": [
19053+
"color-contrast"
19054+
]
19055+
}
19056+
},
19057+
{
19058+
"preview_path": "primer/open_project/avatar_with_fallback/multiple_broken_gravatar_urls",
19059+
"name": "multiple_broken_gravatar_urls",
19060+
"snapshot": "false",
19061+
"skip_rules": {
19062+
"wont_fix": [
19063+
"region"
19064+
],
19065+
"will_fix": [
19066+
"color-contrast"
19067+
]
19068+
}
19069+
},
19070+
{
19071+
"preview_path": "primer/open_project/avatar_with_fallback/broken_non_allowlisted_url",
19072+
"name": "broken_non_allowlisted_url",
19073+
"snapshot": "true",
19074+
"skip_rules": {
19075+
"wont_fix": [
19076+
"region"
19077+
],
19078+
"will_fix": [
19079+
"color-contrast"
19080+
]
19081+
}
19082+
},
19083+
{
19084+
"preview_path": "primer/open_project/avatar_with_fallback/broken_relative_url",
19085+
"name": "broken_relative_url",
19086+
"snapshot": "true",
19087+
"skip_rules": {
19088+
"wont_fix": [
19089+
"region"
19090+
],
19091+
"will_fix": [
19092+
"color-contrast"
19093+
]
19094+
}
19095+
},
19096+
{
19097+
"preview_path": "primer/open_project/avatar_with_fallback/multiple_broken_non_allowlisted_urls",
19098+
"name": "multiple_broken_non_allowlisted_urls",
19099+
"snapshot": "false",
19100+
"skip_rules": {
19101+
"wont_fix": [
19102+
"region"
19103+
],
19104+
"will_fix": [
19105+
"color-contrast"
19106+
]
19107+
}
1904319108
}
1904419109
],
1904519110
"subcomponents": []

static/previews.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,71 @@
16331633
"color-contrast"
16341634
]
16351635
}
1636+
},
1637+
{
1638+
"preview_path": "primer/open_project/avatar_with_fallback/broken_gravatar_url",
1639+
"name": "broken_gravatar_url",
1640+
"snapshot": "true",
1641+
"skip_rules": {
1642+
"wont_fix": [
1643+
"region"
1644+
],
1645+
"will_fix": [
1646+
"color-contrast"
1647+
]
1648+
}
1649+
},
1650+
{
1651+
"preview_path": "primer/open_project/avatar_with_fallback/multiple_broken_gravatar_urls",
1652+
"name": "multiple_broken_gravatar_urls",
1653+
"snapshot": "false",
1654+
"skip_rules": {
1655+
"wont_fix": [
1656+
"region"
1657+
],
1658+
"will_fix": [
1659+
"color-contrast"
1660+
]
1661+
}
1662+
},
1663+
{
1664+
"preview_path": "primer/open_project/avatar_with_fallback/broken_non_allowlisted_url",
1665+
"name": "broken_non_allowlisted_url",
1666+
"snapshot": "true",
1667+
"skip_rules": {
1668+
"wont_fix": [
1669+
"region"
1670+
],
1671+
"will_fix": [
1672+
"color-contrast"
1673+
]
1674+
}
1675+
},
1676+
{
1677+
"preview_path": "primer/open_project/avatar_with_fallback/broken_relative_url",
1678+
"name": "broken_relative_url",
1679+
"snapshot": "true",
1680+
"skip_rules": {
1681+
"wont_fix": [
1682+
"region"
1683+
],
1684+
"will_fix": [
1685+
"color-contrast"
1686+
]
1687+
}
1688+
},
1689+
{
1690+
"preview_path": "primer/open_project/avatar_with_fallback/multiple_broken_non_allowlisted_urls",
1691+
"name": "multiple_broken_non_allowlisted_urls",
1692+
"snapshot": "false",
1693+
"skip_rules": {
1694+
"wont_fix": [
1695+
"region"
1696+
],
1697+
"will_fix": [
1698+
"color-contrast"
1699+
]
1700+
}
16361701
}
16371702
]
16381703
},

0 commit comments

Comments
 (0)