CodeLiturgy.Dashboard/CodeLiturgy.Views/Utils/Routes.cs

92 lines
3.3 KiB
C#
Raw Normal View History

2022-09-26 04:05:23 +03:00
using System.Collections.Immutable;
2022-10-30 19:48:24 +03:00
namespace CodeLiturgy.Views.Utils
2022-09-26 04:05:23 +03:00
{
internal static class Routes
{
public const string DefaultCultureName = "en-gb";
2022-10-27 20:13:02 +03:00
#region View Data Keys
2022-09-26 04:05:23 +03:00
2022-10-27 20:13:02 +03:00
internal const string FooterMenuViewDataId = "m1";
internal const string UserViewDataId = "uvd";
2022-09-26 04:05:23 +03:00
internal const string HeaderMenuId = "m2";
2022-10-27 20:13:02 +03:00
internal const string LanguageViewStorage = "i81";
internal const string IpViewStorage = "ip";
internal const string AgentViewStorage = "ag2";
2022-09-26 04:05:23 +03:00
2022-10-27 20:13:02 +03:00
#endregion View Data Keys
2022-09-26 04:05:23 +03:00
2022-10-27 20:13:02 +03:00
2022-09-26 04:05:23 +03:00
internal const string RootKeyName = "root";
internal const string RootLocation = "/";
2022-10-27 20:13:02 +03:00
internal const string RootAuthRoute = "/auth";
internal const string RootAuthKeyName = "auth";
internal const string AuthLoginRoute = $"{RootAuthRoute}/login";
internal const string AuthLoginKeyName = "login";
internal const string AuthSignupRoute = $"{RootAuthRoute}/signup";
internal const string AuthSignupKeyName = "signup";
2022-09-26 04:05:23 +03:00
internal const string RolesLocation = $"{SystemRouteLocation}/roles";
2022-10-27 20:13:02 +03:00
internal const string RolesKeyName = "roles";
2022-09-26 04:05:23 +03:00
internal const string ApplicationUsersLocation = $"{SystemRouteLocation}/users";
2022-10-27 20:13:02 +03:00
internal const string ApplicationUsersKeyName = "app_users";
2022-09-26 04:05:23 +03:00
internal const string LogsLocation = $"{SystemRouteLocation}/logs";
2022-10-27 20:13:02 +03:00
internal const string LogsKeyName = "logs";
2022-09-26 04:05:23 +03:00
internal const string SettingsRouteLocation = $"{SystemRouteLocation}/settings";
2022-10-27 20:13:02 +03:00
internal const string SettingsKeyName = "settings";
2022-09-26 04:05:23 +03:00
internal const string DataLocation = $"/data";
2022-10-27 20:13:02 +03:00
internal const string DataKeyName = "data";
2022-09-26 04:05:23 +03:00
internal const string DataUsersLocation = "/data/users";
2022-10-27 20:13:02 +03:00
internal const string DataUsersKeyName = "users";
2022-09-26 04:05:23 +03:00
internal const string SystemRouteLocation = $"/system";
2022-10-27 20:13:02 +03:00
internal const string SystemKeyName = "system";
internal const string BanksKeyName = "banks";
2022-09-26 04:05:23 +03:00
internal const string BanksLocation = $"{DataLocation}/banks";
2022-10-27 20:13:02 +03:00
2022-09-26 04:05:23 +03:00
internal const string CountriesLocation = $"{DataLocation}/countries";
2022-10-27 20:13:02 +03:00
internal const string CountriesKeyName = "countries";
2022-09-26 04:05:23 +03:00
internal const string CurrenciesLocation = $"{DataLocation}/currencies";
2022-10-27 20:13:02 +03:00
internal const string CurrenciesKeyName = "currencies";
2022-09-26 04:05:23 +03:00
2022-10-27 20:13:02 +03:00
internal const string IndustriesKeyName = "industries";
2022-09-26 04:05:23 +03:00
internal const string IndustriesLocation = $"{DataLocation}/industries";
2022-10-27 20:13:02 +03:00
internal const string CompaniesLocation = $"{DataLocation}/companies";
internal const string CompaniesKeyName = "companies";
2022-09-26 04:05:23 +03:00
2022-10-27 20:13:02 +03:00
// Jobs
internal const string Curriculums = "curriculums";
internal const string Proposals = "proposals";
internal const string Offers = "offers";
internal const string Processes = "processes";
internal const string AuthLogoutRoute = "/auth/logout";
// Account
internal const string AccountRouteLocation = "/account";
internal const string AccountKeyName = "profile";
internal const string ChangePasswordKeyName = "changepwd";
internal const string ChangePasswordRouteLocation = $"{AccountRouteLocation}/change";
2022-09-26 04:05:23 +03:00
2022-10-27 20:13:02 +03:00
2022-09-26 04:05:23 +03:00
}
}