Added the ability to edit existing indexers with basic options, added a tags column to the indexers table, and fixed a bug in the counter fields that displayed the cursor next to the integer instead of on it to make understanding the counter easier. Also upgraded to confy v0.60.0 and rust version to 1.75

This commit is contained in:
2024-01-19 15:45:41 -07:00
parent 3d249cc51c
commit 2ec4472efc
29 changed files with 3513 additions and 362 deletions
+1 -18
View File
@@ -164,30 +164,13 @@ pub struct Indexer {
pub priority: i64,
#[serde(deserialize_with = "super::from_i64")]
pub download_client_id: i64,
pub tags: Option<Vec<String>>,
pub tags: Vec<Number>,
}
#[derive(Default, Deserialize, Serialize, Debug, Clone, Eq, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct IndexerField {
#[serde(deserialize_with = "super::from_i64")]
pub order: i64,
pub name: Option<String>,
pub label: Option<String>,
pub value: Option<Value>,
#[serde(rename(deserialize = "type"))]
pub field_type: Option<String>,
pub select_options: Option<Vec<IndexerSelectOption>>,
}
#[derive(Default, Deserialize, Serialize, Debug, Clone, Eq, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct IndexerSelectOption {
#[serde(deserialize_with = "super::from_i64")]
pub value: i64,
pub name: Option<String>,
#[serde(deserialize_with = "super::from_i64")]
pub order: i64,
}
#[derive(Default, Deserialize, Serialize, Debug, Clone, Eq, PartialEq)]