190 lines
6.5 KiB
C#
190 lines
6.5 KiB
C#
|
using System.Collections.Immutable;
|
||
|
|
||
|
namespace BlueWest.Views.Utils
|
||
|
{
|
||
|
internal static class Routes
|
||
|
{
|
||
|
public const string DefaultCultureName = "en-gb";
|
||
|
|
||
|
#region Layout Keys
|
||
|
|
||
|
internal const string FooterMenuId = "m1";
|
||
|
internal const string HeaderMenuId = "m2";
|
||
|
internal const string LanguageViewStorage = "i80";
|
||
|
|
||
|
#endregion Layout Keys
|
||
|
|
||
|
#region Route Keys
|
||
|
|
||
|
internal const string DataKeyName = "data";
|
||
|
internal const string RootKeyName = "root";
|
||
|
internal const string RootLocation = "/";
|
||
|
|
||
|
internal const string SystemKeyName = "system";
|
||
|
internal const string RolesKeyName = "roles";
|
||
|
internal const string CompaniesKeyName = "companies";
|
||
|
internal const string CountriesKeyName = "countries";
|
||
|
internal const string CurrenciesKeyName = "currencies";
|
||
|
internal const string IndustriesKeyName = "industries";
|
||
|
internal const string DataUsersKeyName = "users";
|
||
|
internal const string BanksKeyName = "banks";
|
||
|
internal const string JobsKeyName = "jobs";
|
||
|
internal const string SettingsKeyName = "settings";
|
||
|
internal const string LogsKeyName = "logs";
|
||
|
internal const string ApplicationUsersKeyName = "app_users";
|
||
|
|
||
|
#endregion Route Keys
|
||
|
// Translation Database Keys
|
||
|
|
||
|
#region Routes Data
|
||
|
|
||
|
// Routes
|
||
|
internal const string RolesLocation = $"{SystemRouteLocation}/roles";
|
||
|
internal const string ApplicationUsersLocation = $"{SystemRouteLocation}/users";
|
||
|
internal const string LogsLocation = $"{SystemRouteLocation}/logs";
|
||
|
internal const string SettingsRouteLocation = $"{SystemRouteLocation}/settings";
|
||
|
internal const string DataLocation = $"/data";
|
||
|
|
||
|
|
||
|
// Banks
|
||
|
|
||
|
// Data users
|
||
|
internal const string DataUsersLocation = "/data/users";
|
||
|
internal const string JobsRouteLocation = "/jobs";
|
||
|
internal const string SystemRouteLocation = $"/system";
|
||
|
internal const string BanksLocation = $"{DataLocation}/banks";
|
||
|
internal const string CountriesLocation = $"{DataLocation}/countries";
|
||
|
internal const string CurrenciesLocation = $"{DataLocation}/currencies";
|
||
|
|
||
|
internal const string CompaniesLocation = $"{DataLocation}/companies";
|
||
|
internal const string IndustriesLocation = $"{DataLocation}/industries";
|
||
|
|
||
|
|
||
|
#endregion Routes Data
|
||
|
|
||
|
internal static Dictionary<string, Dictionary<string, string>> Translation =
|
||
|
new Dictionary<string, Dictionary<string, string>>
|
||
|
{
|
||
|
{
|
||
|
RootKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Inicio"},
|
||
|
{"eng", "Home"},
|
||
|
{"en-gb", "Home"}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
SystemKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Sistema"},
|
||
|
{"eng", "System"},
|
||
|
{"en-gb", "System"},
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
DataKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Dados"},
|
||
|
{"eng", "Data"},
|
||
|
{"en-gb", "Data"}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
{
|
||
|
RolesKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Tipos de Utilizador"},
|
||
|
{"en-gb", "Roles"},
|
||
|
{"eng", "Roles"}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
ApplicationUsersKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Utilizadores da Aplicação"},
|
||
|
{"en-gb", "Users"},
|
||
|
{"eng", "Users"}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
LogsKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Logs"},
|
||
|
{"en-gb", "logs"},
|
||
|
{"eng", "logs"}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
SettingsKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Personalização"},
|
||
|
{"eng", "Settings"},
|
||
|
{"en-gb", "Settings"},
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
CompaniesKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Empresas"},
|
||
|
{"eng", "Companies"},
|
||
|
{"en-gb", "Companies"},
|
||
|
}
|
||
|
},
|
||
|
|
||
|
{
|
||
|
IndustriesKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Indústrias"},
|
||
|
{"en-gb", "Industries"},
|
||
|
{"eng", "Industries"},
|
||
|
}
|
||
|
},
|
||
|
|
||
|
{
|
||
|
CurrenciesKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Moedas"},
|
||
|
{"en-gb", "Currencies"},
|
||
|
{"eng", "Currencies"},
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
CountriesKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Países"},
|
||
|
{"eng", "Countries"},
|
||
|
{"en-gb", "Countries"}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
{
|
||
|
BanksKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Bancos"},
|
||
|
{"eng", "Banks"},
|
||
|
{"en-gb", "Banks"},
|
||
|
}
|
||
|
},
|
||
|
|
||
|
|
||
|
{
|
||
|
DataUsersKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Utilizadores"},
|
||
|
{"eng", "Users"},
|
||
|
{"en-gb", "Users"},
|
||
|
}
|
||
|
},
|
||
|
|
||
|
{
|
||
|
JobsKeyName, new Dictionary<string, string>()
|
||
|
{
|
||
|
{"pt", "Anúncios de trabalho"},
|
||
|
{"eng", "Jobs"},
|
||
|
{"en-gb", "Jobs"},
|
||
|
}
|
||
|
},
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|