Use constants instead of hardcoded strings
This commit is contained in:
committed by
Sebastiaan Janssen
parent
da9eae1252
commit
4f129baebd
@@ -4,7 +4,7 @@ public class AnalyticsDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "settingsAnalytics";
|
||||
|
||||
public string[] Sections => new[] { "settings" };
|
||||
public string[] Sections => new[] { Constants.Applications.Settings };
|
||||
|
||||
public string View => "views/dashboard/settings/analytics.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class ContentDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "contentIntro";
|
||||
|
||||
public string[] Sections => new[] { "content" };
|
||||
public string[] Sections => new[] { Constants.Applications.Content };
|
||||
|
||||
public string View => "views/dashboard/default/startupdashboardintro.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class ExamineDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "settingsExamine";
|
||||
|
||||
public string[] Sections => new[] { "settings" };
|
||||
public string[] Sections => new[] { Constants.Applications.Settings };
|
||||
|
||||
public string View => "views/dashboard/settings/examinemanagement.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class HealthCheckDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "settingsHealthCheck";
|
||||
|
||||
public string[] Sections => new[] { "settings" };
|
||||
public string[] Sections => new[] { Constants.Applications.Settings };
|
||||
|
||||
public string View => "views/dashboard/settings/healthcheck.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class MediaDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "mediaFolderBrowser";
|
||||
|
||||
public string[] Sections => new[] { "media" };
|
||||
public string[] Sections => new[] { Constants.Applications.Media };
|
||||
|
||||
public string View => "views/dashboard/media/mediafolderbrowser.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class MembersDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "memberIntro";
|
||||
|
||||
public string[] Sections => new[] { "member" };
|
||||
public string[] Sections => new[] { Constants.Applications.Members };
|
||||
|
||||
public string View => "views/dashboard/members/membersdashboardvideos.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class ModelsBuilderDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "settingsModelsBuilder";
|
||||
|
||||
public string[] Sections => new[] { "settings" };
|
||||
public string[] Sections => new[] {Constants.Applications.Settings };
|
||||
|
||||
public string View => "views/dashboard/settings/modelsbuildermanagement.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class ProfilerDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "settingsProfiler";
|
||||
|
||||
public string[] Sections => new[] { "settings" };
|
||||
public string[] Sections => new[] { Constants.Applications.Settings };
|
||||
|
||||
public string View => "views/dashboard/settings/profiler.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class PublishedStatusDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "settingsPublishedStatus";
|
||||
|
||||
public string[] Sections => new[] { "settings" };
|
||||
public string[] Sections => new[] { Constants.Applications.Settings };
|
||||
|
||||
public string View => "views/dashboard/settings/publishedstatus.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class RedirectUrlDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "contentRedirectManager";
|
||||
|
||||
public string[] Sections => new[] { "content" };
|
||||
public string[] Sections => new[] { Constants.Applications.Content };
|
||||
|
||||
public string View => "views/dashboard/content/redirecturls.html";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ public class SettingsDashboard : IDashboard
|
||||
{
|
||||
public string Alias => "settingsWelcome";
|
||||
|
||||
public string[] Sections => new[] { "settings" };
|
||||
public string[] Sections => new[] { Constants.Applications.Settings };
|
||||
|
||||
public string View => "views/dashboard/settings/settingsdashboardintro.html";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user