added defensive logic to app.razor, relocated shared resource definition in preparation for utilizing shared resources
This commit is contained in:
@ -40,7 +40,14 @@
|
||||
var interop = new Interop(JSRuntime);
|
||||
SiteState.AntiForgeryToken = await interop.GetElementByName(Constants.RequestVerificationToken);
|
||||
_installation = await InstallationService.IsInstalled();
|
||||
SiteState.Alias = _installation.Alias;
|
||||
if (_installation.Alias != null)
|
||||
{
|
||||
SiteState.Alias = _installation.Alias;
|
||||
}
|
||||
else
|
||||
{
|
||||
_installation.Message = "Site Not Configured Correctly - No Matching Alias Exists For Host Name";
|
||||
}
|
||||
_initialized = true;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
@ -1,47 +0,0 @@
|
||||
namespace Oqtane
|
||||
{
|
||||
public class SharedResources
|
||||
{
|
||||
public static readonly string UserLogin = "User Login";
|
||||
|
||||
public static readonly string UserRegistration = "User Registration";
|
||||
|
||||
public static readonly string PasswordReset = "Password Reset";
|
||||
|
||||
public static readonly string UserProfile = "User Profile";
|
||||
|
||||
public static readonly string AdminDashboard = "Admin Dashboard";
|
||||
|
||||
public static readonly string SiteSettings = "Site Settings";
|
||||
|
||||
public static readonly string PageManagement = "Page Management";
|
||||
|
||||
public static readonly string UserManagement = "User Management";
|
||||
|
||||
public static readonly string ProfileManagement = "Profile Management";
|
||||
|
||||
public static readonly string RoleManagement = "Role Management";
|
||||
|
||||
public static readonly string FileManagement = "File Management";
|
||||
|
||||
public static readonly string RecycleBin = "Recycle Bin";
|
||||
|
||||
public static readonly string EventLog = "Event Log";
|
||||
|
||||
public static readonly string SiteManagement = "Site Management";
|
||||
|
||||
public static readonly string ModuleManagement = "Module Management";
|
||||
|
||||
public static readonly string ThemeManagement = "Theme Management";
|
||||
|
||||
public static readonly string LanguageManagement = "Language Management";
|
||||
|
||||
public static readonly string ScheduledJobs = "Scheduled Jobs";
|
||||
|
||||
public static readonly string SqlManagement = "Sql Management";
|
||||
|
||||
public static readonly string SystemInfo = "System Info";
|
||||
|
||||
public static readonly string SystemUpdate = "System Update";
|
||||
}
|
||||
}
|
7
Oqtane.Client/Resources/SharedResources.cs
Normal file
7
Oqtane.Client/Resources/SharedResources.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Oqtane
|
||||
{
|
||||
public class SharedResources
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user