create default rex files with static keys

This commit is contained in:
Grayson Walker
2021-06-18 14:45:38 -04:00
parent 216dd39474
commit ae0edcfd2d
133 changed files with 12555 additions and 352 deletions

View File

@ -44,12 +44,12 @@
if (!String.IsNullOrEmpty(CreatedBy))
{
_text += $" {Localizer["by"]} <b>{CreatedBy}</b>";
_text += $" {Localizer["By"]} <b>{CreatedBy}</b>";
}
if (CreatedOn != null)
{
_text += $" {Localizer["on"]} <b>{CreatedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}</b>";
_text += $" {Localizer["On"]} <b>{CreatedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}</b>";
}
_text += "</p>";
@ -57,7 +57,7 @@
if (!String.IsNullOrEmpty(ModifiedBy) || ModifiedOn.HasValue)
{
_text += $"<p style=\"{Style}\">{Localizer["Last modified"]} ";
_text += $"<p style=\"{Style}\">{Localizer["LastModified"]} ";
if (!String.IsNullOrEmpty(ModifiedBy))
{
@ -78,12 +78,12 @@
if (!String.IsNullOrEmpty(DeletedBy))
{
_text += $" {Localizer["by"]} <b>{DeletedBy}</b>";
_text += $" {Localizer["By"]} <b>{DeletedBy}</b>";
}
if (DeletedOn != null)
{
_text += $" {Localizer["on"]} <b>{DeletedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}</b>";
_text += $" {Localizer["On"]} <b>{DeletedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}</b>";
}
_text += "</p>";

View File

@ -15,7 +15,7 @@
<select class="form-control" value="@FolderId" @onchange="(e => FolderChanged(e))">
@if (string.IsNullOrEmpty(Folder))
{
<option value="-1">&lt;@Localizer["Select Folder"]&gt;</option>
<option value="-1">&lt;@Localizer["Folder.Select"]&gt;</option>
}
@foreach (Folder folder in _folders)
{
@ -28,7 +28,7 @@
{
<div>
<select class="form-control" value="@FileId" @onchange="(e => FileChanged(e))">
<option value="-1">&lt;@Localizer["Select File"]&gt;</option>
<option value="-1">&lt;@Localizer["File.Select"]&gt;</option>
@foreach (File file in _files)
{
<option value="@(file.FileId)">@(file.Name)</option>
@ -208,7 +208,7 @@
{
await logger.LogError(ex, "Error Loading Files {Error}", ex.Message);
_message = Localizer["Error Loading Files"];
_message = Localizer["Error.File.Load"];
_messagetype = MessageType.Error;
}
}
@ -268,7 +268,7 @@
{
await logger.LogInformation("File Upload Succeeded {Files}", upload);
_message = Localizer["File Upload Succeeded"];
_message = Localizer["Success.File.Upload"];
_messagetype = MessageType.Success;
await GetFiles();
@ -288,7 +288,7 @@
{
await logger.LogError("File Upload Failed For {Files}", result.Replace(",", ", "));
_message = Localizer["File Upload Failed"];
_message = Localizer["Error.File.Upload"];
_messagetype = MessageType.Error;
}
}
@ -296,13 +296,13 @@
{
await logger.LogError(ex, "File Upload Failed {Error}", ex.Message);
_message = Localizer["File Upload Failed"];
_message = Localizer["Error.File.Upload"];
_messagetype = MessageType.Error;
}
}
else
{
_message = Localizer["You Have Not Selected A File To Upload"];
_message = Localizer["Message.File.NotSelected"];
_messagetype = MessageType.Warning;
}
}
@ -315,7 +315,7 @@
await FileService.DeleteFileAsync(FileId);
await logger.LogInformation("File Deleted {File}", FileId);
_message = Localizer["File Deleted"];
_message = Localizer["Success.File.Delete"];
_messagetype = MessageType.Success;
await GetFiles();
@ -327,7 +327,7 @@
{
await logger.LogError(ex, "Error Deleting File {File} {Error}", FileId, ex.Message);
_message = Localizer["Error Deleting File"];
_message = Localizer["Error.File.Delete"];
_messagetype = MessageType.Error;
}
}

View File

@ -65,7 +65,7 @@
<tbody>
<tr>
<td class="input-group">
<input type="text" name="Username" class="form-control" placeholder="@Localizer["Enter Username"]" @bind="@_username" />
<input type="text" name="Username" class="form-control" placeholder="@Localizer["Username.Enter"]" @bind="@_username" />
<button type="button" class="btn btn-primary" @onclick="AddUser">@Localizer["Add"]</button>
</td>
</tr>
@ -180,7 +180,7 @@
}
catch
{
_message = Localizer["Username Does Not Exist"];
_message = Localizer["Message.Username.DontExist"];
}
}

View File

@ -15,8 +15,8 @@
<br />
}
<div class="row justify-content-center" style="margin-bottom: 20px;">
<button type="button" class="btn btn-secondary" @onclick="RefreshRichText">@Localizer["Synchronize Content"]</button>&nbsp;&nbsp;
<button type="button" class="btn btn-primary" @onclick="InsertImage">@Localizer["Insert Image"]</button>
<button type="button" class="btn btn-secondary" @onclick="RefreshRichText">@Localizer["SynchronizeContent"]</button>&nbsp;&nbsp;
<button type="button" class="btn btn-primary" @onclick="InsertImage">@Localizer["InsertImage"]</button>
@if (_filemanagervisible)
{
@((MarkupString)"&nbsp;&nbsp;")
@ -67,7 +67,7 @@
</TabPanel>
<TabPanel Name="Raw" Heading="Raw HTML Editor" ResourceKey="HtmlEditor">
<div class="row justify-content-center" style="margin-bottom: 20px;">
<button type="button" class="btn btn-secondary" @onclick="RefreshRawHtml">@Localizer["Synchronize Content"]</button>
<button type="button" class="btn btn-secondary" @onclick="RefreshRawHtml">@Localizer["SynchronizeContent"]</button>
</div>
@if (ReadOnly)
{
@ -200,7 +200,7 @@
}
else
{
_message = Localizer["You Must Select An Image To Insert"];
_message = Localizer["Message.Require.Image"];
}
}
else

View File

@ -52,11 +52,11 @@
{
case true:
_src = "images/checked.png";
_title = Localizer["Permission Granted"];
_title = Localizer["PermissionGranted"];
break;
case false:
_src = "images/unchecked.png";
_title = Localizer["Permission Denied"];
_title = Localizer["PermissionDenied"];
break;
case null:
_src = "images/null.png";