[chore:] initial article store implementation for Settings.cs
This commit is contained in:
@@ -10,6 +10,7 @@ public class Settings
|
|||||||
public static Settings _instance = new();
|
public static Settings _instance = new();
|
||||||
public AddressSets addressSets = new();
|
public AddressSets addressSets = new();
|
||||||
public Customers customers = new();
|
public Customers customers = new();
|
||||||
|
public ArticleStore articles = new ArticleStore();
|
||||||
|
|
||||||
public string settingsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
public string settingsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||||
"logofclient", "config.json");
|
"logofclient", "config.json");
|
||||||
@@ -62,6 +63,7 @@ public class Global
|
|||||||
}
|
}
|
||||||
|
|
||||||
public string config_path { get; set; } = "";
|
public string config_path { get; set; } = "";
|
||||||
|
public string wiki_storage_path { get; set; } = "";
|
||||||
public List<Country> countries { get; set; } = new();
|
public List<Country> countries { get; set; } = new();
|
||||||
|
|
||||||
public static void Save()
|
public static void Save()
|
||||||
@@ -181,4 +183,10 @@ public class Country
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class ArticleStore
|
||||||
|
{
|
||||||
|
// Placeholder for article metadata; actual content is stored as markdown files
|
||||||
|
public List<string> articles { get; set; } = new List<string>();
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user