[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 AddressSets addressSets = new();
|
||||
public Customers customers = new();
|
||||
public ArticleStore articles = new ArticleStore();
|
||||
|
||||
public string settingsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||
"logofclient", "config.json");
|
||||
@@ -62,6 +63,7 @@ public class Global
|
||||
}
|
||||
|
||||
public string config_path { get; set; } = "";
|
||||
public string wiki_storage_path { get; set; } = "";
|
||||
public List<Country> countries { get; set; } = new();
|
||||
|
||||
public static void Save()
|
||||
@@ -182,3 +184,9 @@ public class Country
|
||||
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