allow host username to be specified during installation, allow user to be added to host role, refresh user list after delete, improve date/time entry in scheduled jobs, require license acceptance during module and theme install
This commit is contained in:
@ -8,6 +8,7 @@ namespace Oqtane.Services
|
||||
{
|
||||
Task<List<Package>> GetPackagesAsync(string type);
|
||||
Task<List<Package>> GetPackagesAsync(string type, string search);
|
||||
Task<Package> GetPackageAsync(string packageId, string version);
|
||||
Task DownloadPackageAsync(string packageId, string version, string folder);
|
||||
Task InstallPackagesAsync();
|
||||
}
|
||||
|
@ -30,6 +30,11 @@ namespace Oqtane.Services
|
||||
return await GetJsonAsync<List<Package>>($"{Apiurl}?type={type}&search={WebUtility.UrlEncode(search)}");
|
||||
}
|
||||
|
||||
public async Task<Package> GetPackageAsync(string packageId, string version)
|
||||
{
|
||||
return await PostJsonAsync<Package>($"{Apiurl}?packageid={packageId}&version={version}", null);
|
||||
}
|
||||
|
||||
public async Task DownloadPackageAsync(string packageId, string version, string folder)
|
||||
{
|
||||
await PostAsync($"{Apiurl}?packageid={packageId}&version={version}&folder={folder}");
|
||||
|
@ -47,6 +47,7 @@ namespace Oqtane.Services
|
||||
{
|
||||
return await PutJsonAsync<Role>($"{Apiurl}/{role.RoleId}", role);
|
||||
}
|
||||
|
||||
public async Task DeleteRoleAsync(int roleId)
|
||||
{
|
||||
await DeleteAsync($"{Apiurl}/{roleId}");
|
||||
|
Reference in New Issue
Block a user