Folder and file management service

This commit is contained in:
Shaun Walker
2020-02-11 14:25:38 -05:00
parent ee682516c3
commit 6a92c9f764
45 changed files with 1075 additions and 421 deletions

View File

@ -98,7 +98,7 @@
</tr>
<tr>
<td>
<label for="Title" class="control-label" style="font-weight: bold">Confirm Password: </label>
<label for="Title" class="control-label" style="font-weight: bold">Confirm: </label>
</td>
<td>
<input type="password" class="form-control" @bind="@ConfirmPassword" />
@ -142,7 +142,7 @@
private void SetIntegratedSecurity(ChangeEventArgs e)
{
if (Convert.ToBoolean(e.Value))
if (Convert.ToBoolean((string)e.Value))
{
IntegratedSecurityDisplay = "display: none;";
}
@ -183,7 +183,7 @@
Site site = new Site();
site.TenantId = -1; // will be populated on server
site.Name = "Default Site";
site.Logo = "oqtane.png";
site.LogoFileId = null;
site.DefaultThemeType = Constants.DefaultTheme;
site.DefaultLayoutType = Constants.DefaultLayout;
site.DefaultContainerType = Constants.DefaultContainer;

View File

@ -87,13 +87,13 @@ namespace Oqtane.Shared
}
}
public ValueTask<string[]> GetFiles(string name)
public ValueTask<string[]> GetFiles(string id)
{
try
{
return jsRuntime.InvokeAsync<string[]>(
"interop.getFiles",
name);
id);
}
catch
{
@ -101,13 +101,13 @@ namespace Oqtane.Shared
}
}
public Task UploadFiles(string posturl, string folder, string name)
public Task UploadFiles(string posturl, string folder, string id)
{
try
{
jsRuntime.InvokeAsync<string>(
"interop.uploadFiles",
posturl, folder, name);
posturl, folder, id);
return Task.CompletedTask;
}
catch