move icon loading reflection logic to server
This commit is contained in:
@ -9,13 +9,13 @@ namespace Oqtane.Services
|
||||
public interface ISystemService
|
||||
{
|
||||
/// <summary>
|
||||
/// returns a key-value directory with the current system configuration information
|
||||
/// returns a key-value dictionary with the current system configuration information
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<Dictionary<string, object>> GetSystemInfoAsync();
|
||||
|
||||
/// <summary>
|
||||
/// returns a key-value directory with the current system information - "environment" or "configuration"
|
||||
/// returns a key-value dictionary with the current system information - "environment" or "configuration"
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<Dictionary<string, object>> GetSystemInfoAsync(string type);
|
||||
@ -32,5 +32,11 @@ namespace Oqtane.Services
|
||||
/// <param name="settings"></param>
|
||||
/// <returns></returns>
|
||||
Task UpdateSystemInfoAsync(Dictionary<string, object> settings);
|
||||
|
||||
/// <summary>
|
||||
/// returns a key-value dictionary with default system icons
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<Dictionary<string, string>> GetIconsAsync();
|
||||
}
|
||||
}
|
||||
|
@ -33,5 +33,10 @@ namespace Oqtane.Services
|
||||
{
|
||||
await PostJsonAsync(Apiurl, settings);
|
||||
}
|
||||
|
||||
public async Task<Dictionary<string, string>> GetIconsAsync()
|
||||
{
|
||||
return await GetJsonAsync<Dictionary<string, string>>($"{Apiurl}/icons");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user