Skip to content

Commit 107a60a

Browse files
committed
Update website for 0.62
1 parent 7c02b8b commit 107a60a

File tree

8 files changed

+307
-94
lines changed

8 files changed

+307
-94
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.0.0",
66
"scripts": {
77
"svg:cleanup": "trash src/SVGs/components",
8-
"svg:convert": "react-from-svg src/SVGs src/SVGs/components --with-reason",
8+
"svg:convert": "react-from-svg src/SVGs src/SVGs/components --with-web-for-reason",
99
"svg:format": "find src/SVGs/components -name \"*.re\" | grep -v \"node_modules\" | xargs bsrefmt --in-place",
1010
"svg": "yarn svg:cleanup && yarn svg:convert && yarn svg:format",
1111
"re:clean": "bsb -clean-world",
@@ -27,23 +27,23 @@
2727
"devDependencies": {
2828
"@moox/bs-react-helmet": "^2.0.0",
2929
"@phenomic/markdown-as-json": "^1.0.0",
30-
"@reason-react-native/safe-area-context": "^0.6.0",
31-
"bs-platform": "^7.1.0",
30+
"@reason-react-native/safe-area-context": "^3.0.0",
31+
"bs-platform": "^7.3.0",
3232
"copyfiles": "^2.2.0",
3333
"glob": "^7.1.3",
3434
"mkdirp": "^0.5.1",
3535
"module-alias": "^2.2.0",
3636
"opn-cli": "^4.1.0",
3737
"react": "^16.8.0",
3838
"react-dom": "^16.8.0",
39-
"react-from-svg": "^3.1.0",
39+
"react-from-svg": "^4.0.0",
4040
"react-helmet": "^5.2.0",
41-
"react-multiversal": "https://github.com/MoOx/react-multiversal.git#8239c04",
41+
"react-multiversal": "https://github.com/MoOx/react-multiversal.git#bf0f30f",
4242
"react-native-web": "^0.11.2",
4343
"reason-future": "^2.4.0",
4444
"reason-highlightjs": "^0.2.0",
45-
"reason-react": "^0.7.0",
46-
"reason-react-native": "https://github.com/reason-react-native/reason-react-native.git#bd0b3b1",
45+
"reason-react": "^0.8.0",
46+
"reason-react-native": "^0.62.0",
4747
"static-server-cli": "^1.0.2",
4848
"trash-cli": "^1.4.0"
4949
}

src/components/Head.re

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ let make = () =>
2626
~props=
2727
ReactDOMRe.objToDOMProps({
2828
"rel": "mask-icon",
29-
"href": {Consts.baseUrl ++ "/safari-pinned-tab.svg"},
29+
"href": {
30+
Consts.baseUrl ++ "/safari-pinned-tab.svg";
31+
},
3032
"color": "#222222",
3133
}),
3234
[||],

src/components/HeaderLarge.re

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ let make = (~currentLocation) => {
111111
<ViewLink href={Consts.baseUrl ++ "/"} style=styles##logoLink>
112112
<SpacedView style=styles##logo vertical=XS horizontal=XS>
113113
<SVGBsReactNative
114-
width={36.->ReactFromSvg.Size.dp}
115-
height={36.->ReactFromSvg.Size.dp}
114+
width="36"
115+
height="36"
116116
fill=Consts.Colors.lightest
117117
/>
118118
<WindowSizeFilter.Small>
@@ -175,7 +175,7 @@ let make = (~currentLocation) => {
175175
accessibilityLabel={item.text}>
176176
{item.componentFunc(
177177
~iconColor=Consts.Colors.light,
178-
~iconSize=22.->ReactFromSvg.Size.dp,
178+
~iconSize="22",
179179
)}
180180
<WindowSizeFilter.NotSmall>
181181
<Spacer size=XS />

src/components/PageContent.re

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ let make = (~pageData) => {
102102
->Option.map(officialDocHref =>
103103
<TextLink style=styles##officialDocLink href=officialDocHref>
104104
<SVGExternalLink
105-
width={14.->ReactFromSvg.Size.dp}
106-
height={14.->ReactFromSvg.Size.dp}
105+
width="14"
106+
height="14"
107107
fill={Predefined.Colors.Ios.light.blue}
108108
/>
109109
{| Official documentation |}->React.string

src/components/ScreenBlogIndex.re

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,22 @@ let make = (~docsIndex, ~blogIndex, ~currentLocation) => {
2727
style(~flexDirection=`row, ~flexWrap=`wrap, ~height=100.->pct, ())
2828
)>
2929
<ContentContainer>
30-
{{blogIndex->Array.map(indexEntry =>
31-
<ViewLink
32-
key=indexEntry##title
33-
href={Consts.baseUrl ++ "/en/blog/" ++ indexEntry##id}>
34-
<SpacedView style=styles##card>
35-
<Title> {indexEntry##title->React.string} Title>
36-
<Spacer />
37-
<TextLight>
38-
{indexEntry##date->React.string}
39-
{(" | By @" ++ indexEntry##author)->React.string}
40-
TextLight>
41-
SpacedView>
42-
ViewLink>
43-
)}
30+
{{
31+
blogIndex->Array.map(indexEntry =>
32+
<ViewLink
33+
key=indexEntry##title
34+
href={Consts.baseUrl ++ "/en/blog/" ++ indexEntry##id}>
35+
<SpacedView style=styles##card>
36+
<Title> {indexEntry##title->React.string} Title>
37+
<Spacer />
38+
<TextLight>
39+
{indexEntry##date->React.string}
40+
{(" | By @" ++ indexEntry##author)->React.string}
41+
TextLight>
42+
SpacedView>
43+
ViewLink>
44+
);
45+
}
4446
->React.array}
4547
ContentContainer>
4648
<SidebarDocs docsIndex currentLocation />

src/components/SidebarBlog.re

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ let makeSections =
3434
sections
3535
->List.toArray
3636
->Array.map(section =>
37-
{
38-
"key": Some(section.title),
39-
"data": section.data->List.toArray,
40-
"renderItem": None,
41-
"ItemSeparatorComponent": None,
42-
"keyExtractor": None,
43-
"sectionData": None,
44-
}
37+
VirtualizedSectionList.section(
38+
~key=section.title,
39+
~data=section.data->List.toArray,
40+
(),
41+
)
4542
);
4643
};
4744

src/components/SidebarDocs.re

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,11 @@ let makeSections =
3232
sections
3333
->List.toArray
3434
->Array.map(section =>
35-
{
36-
"key": Some(section.title),
37-
"data": section.data->List.toArray,
38-
"renderItem": None,
39-
"ItemSeparatorComponent": None,
40-
"keyExtractor": None,
41-
"sectionData": None,
42-
}
35+
VirtualizedSectionList.section(
36+
~key=section.title,
37+
~data=section.data->List.toArray,
38+
(),
39+
)
4340
);
4441
};
4542

0 commit comments

Comments
 (0)