Skip to content

Commit 90d5096

Browse files
committed
Fix portfolio content visibility for partials CI
1 parent 1e72d65 commit 90d5096

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

crates/http/src/views/partials/components/composed/portfolio/content/crate_gallery.rs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ use crate::views::partials::components::primitives::Icon;
55
use crate::views::partials::components::tab_set;
66

77
#[derive(Clone, Debug, Deserialize)]
8-
pub struct CrateGalleryContent {
9-
pub id: Text,
10-
pub aria_label: Text,
11-
pub signal_name: Text,
12-
pub tabs: Vec<CrateGalleryTabContent>,
8+
pub(crate) struct CrateGalleryContent {
9+
pub(crate) id: Text,
10+
pub(crate) aria_label: Text,
11+
pub(crate) signal_name: Text,
12+
pub(crate) tabs: Vec<CrateGalleryTabContent>,
1313
}
1414

1515
impl CrateGalleryContent {
@@ -25,12 +25,12 @@ impl CrateGalleryContent {
2525
}
2626

2727
#[derive(Clone, Debug, Deserialize)]
28-
pub struct CrateGalleryTabContent {
29-
pub id: Text,
30-
pub label: CrateGalleryLabelContent,
31-
pub icon: Option<Icon>,
32-
pub preview: CrateGalleryPreviewContent,
33-
pub body: CrateGalleryBodyContent,
28+
pub(crate) struct CrateGalleryTabContent {
29+
pub(crate) id: Text,
30+
pub(crate) label: CrateGalleryLabelContent,
31+
pub(crate) icon: Option<Icon>,
32+
pub(crate) preview: CrateGalleryPreviewContent,
33+
pub(crate) body: CrateGalleryBodyContent,
3434
}
3535

3636
impl CrateGalleryTabContent {
@@ -47,10 +47,10 @@ impl CrateGalleryTabContent {
4747
}
4848

4949
#[derive(Clone, Debug, Deserialize)]
50-
pub struct CrateGalleryLabelContent {
51-
pub primary: Text,
50+
pub(crate) struct CrateGalleryLabelContent {
51+
pub(crate) primary: Text,
5252
#[serde(default)]
53-
pub secondary: Option<Text>,
53+
pub(crate) secondary: Option<Text>,
5454
}
5555

5656
impl CrateGalleryLabelContent {
@@ -63,13 +63,13 @@ impl CrateGalleryLabelContent {
6363
}
6464

6565
#[derive(Clone, Debug, Deserialize)]
66-
pub struct CrateGalleryPreviewContent {
66+
pub(crate) struct CrateGalleryPreviewContent {
6767
#[serde(default)]
68-
pub code_examples: Vec<CrateGalleryCodeExampleContent>,
68+
pub(crate) code_examples: Vec<CrateGalleryCodeExampleContent>,
6969
#[serde(default)]
70-
pub image: Option<CrateGalleryImageContent>,
70+
pub(crate) image: Option<CrateGalleryImageContent>,
7171
#[serde(default)]
72-
pub badge: Option<CrateGalleryBadgeContent>,
72+
pub(crate) badge: Option<CrateGalleryBadgeContent>,
7373
}
7474

7575
impl CrateGalleryPreviewContent {
@@ -93,10 +93,10 @@ impl CrateGalleryPreviewContent {
9393
}
9494

9595
#[derive(Clone, Debug, Deserialize)]
96-
pub struct CrateGalleryCodeExampleContent {
96+
pub(crate) struct CrateGalleryCodeExampleContent {
9797
#[serde(default)]
98-
pub label: Option<Text>,
99-
pub code: Text,
98+
pub(crate) label: Option<Text>,
99+
pub(crate) code: Text,
100100
}
101101

102102
impl CrateGalleryCodeExampleContent {
@@ -109,10 +109,10 @@ impl CrateGalleryCodeExampleContent {
109109
}
110110

111111
#[derive(Clone, Debug, Deserialize)]
112-
pub struct CrateGalleryImageContent {
113-
pub asset_ref: Text,
112+
pub(crate) struct CrateGalleryImageContent {
113+
pub(crate) asset_ref: Text,
114114
#[serde(default, rename = "alt")]
115-
pub alt: Option<Text>,
115+
pub(crate) alt: Option<Text>,
116116
}
117117

118118
impl CrateGalleryImageContent {
@@ -125,8 +125,8 @@ impl CrateGalleryImageContent {
125125
}
126126

127127
#[derive(Clone, Debug, Deserialize)]
128-
pub struct CrateGalleryBadgeContent {
129-
pub text: Text,
128+
pub(crate) struct CrateGalleryBadgeContent {
129+
pub(crate) text: Text,
130130
}
131131

132132
impl CrateGalleryBadgeContent {
@@ -138,11 +138,11 @@ impl CrateGalleryBadgeContent {
138138
}
139139

140140
#[derive(Clone, Debug, Deserialize)]
141-
pub struct CrateGalleryBodyContent {
142-
pub title: Text,
141+
pub(crate) struct CrateGalleryBodyContent {
142+
pub(crate) title: Text,
143143
#[serde(default)]
144-
pub subtitle: Option<Text>,
145-
pub features: Vec<CrateGalleryFeatureContent>,
144+
pub(crate) subtitle: Option<Text>,
145+
pub(crate) features: Vec<CrateGalleryFeatureContent>,
146146
}
147147

148148
impl CrateGalleryBodyContent {
@@ -160,8 +160,8 @@ impl CrateGalleryBodyContent {
160160
}
161161

162162
#[derive(Clone, Debug, Deserialize)]
163-
pub struct CrateGalleryFeatureContent {
164-
pub text: Text,
163+
pub(crate) struct CrateGalleryFeatureContent {
164+
pub(crate) text: Text,
165165
}
166166

167167
impl CrateGalleryFeatureContent {

crates/http/src/views/partials/components/composed/portfolio/content/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mod fixture_loader;
33
mod types;
44
mod validation;
55

6-
pub use crate_gallery::CrateGalleryContent;
6+
pub(crate) use crate_gallery::CrateGalleryContent;
77
pub use fixture_loader::{
88
open_source_index_content, portfolio_home_content, work_case_content, work_index_content,
99
};

0 commit comments

Comments
 (0)