-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* polish export metadata * export menu * enhanced alert system and YAML editing * run cargo fmt * upgrade packages and run ts lint * clean up * more clean up * fix build break
- Loading branch information
1 parent
98e9795
commit 46710c8
Showing
49 changed files
with
1,516 additions
and
1,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//! Exporter plugin for LiveSplit split files | ||
|
||
use std::borrow::Cow; | ||
|
||
use serde_json::json; | ||
|
||
use crate::expo::{ExportIcon, ExportMetadata}; | ||
|
||
use crate::plugin::{PluginResult, PluginRuntime}; | ||
|
||
pub struct ExportLiveSplitPlugin; | ||
|
||
impl PluginRuntime for ExportLiveSplitPlugin { | ||
fn get_id(&self) -> Cow<'static, str> { | ||
Cow::Owned(super::BuiltInPlugin::ExportLiveSplit.id()) | ||
} | ||
|
||
fn on_prepare_export(&mut self) -> PluginResult<Option<Vec<ExportMetadata>>> { | ||
let metadata = ExportMetadata { | ||
plugin_id: self.get_id().into_owned(), | ||
name: "LiveSplit".to_string(), | ||
description: "Export to a LiveSplit split file".to_string(), | ||
icon: ExportIcon::Data, | ||
extension: Some("lss".to_string()), | ||
properties: json!(null), | ||
example_config: Some(include_str!("./livesplit.yaml").to_string()), | ||
}; | ||
Ok(Some(vec![metadata])) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Do you want subsplits? | ||
# -------- | ||
# Subsplits are divided by sections in the route document | ||
# Change below to `true` to enable subsplits | ||
subsplits: false | ||
|
||
# Do you want icons? | ||
# -------- | ||
# Change below to `false` to disable icons | ||
icons: true | ||
|
||
# Keep this as-is to use the splits configured in the settings | ||
split-types: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.