Add launcher preferences and modular landing studio [skip ci]
This commit is contained in:
1 parent
454620f21e
commit
6deff62a3a
25 files changed
+822
-682
No files matched your search
@@ -31,6 +31,7 @@ pub struct Branding {
|
||||
pub version_label: String,
|
||||
pub news: Vec<NewsItem>,
|
||||
pub links: Vec<SocialLink>,
|
||||
pub about: AboutContent,
|
||||
pub features: Features,
|
||||
/// Raw CSS appended to the launcher stylesheet (power users).
|
||||
pub custom_css: String,
|
||||
@@ -60,12 +61,28 @@ impl Default for Branding {
|
||||
tag: Some("News".into()),
|
||||
}],
|
||||
links: vec![],
|
||||
about: AboutContent::default(),
|
||||
features: Features::default(),
|
||||
custom_css: String::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[serde(default)]
|
||||
pub struct AboutContent {
|
||||
pub title: String,
|
||||
pub icon_url: Option<String>,
|
||||
pub body: String,
|
||||
pub links: Vec<SocialLink>,
|
||||
}
|
||||
|
||||
impl Default for AboutContent {
|
||||
fn default() -> Self {
|
||||
Self { title: String::new(), icon_url: None, body: String::new(), links: Vec::new() }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[serde(default)]
|
||||
pub struct Background {
|
||||
|
||||
Reference in new issue
Block a user