Files
mixtape/zero.Core/Constants.cs
T

70 lines
2.2 KiB
C#
Raw Normal View History

2020-03-24 23:09:29 +01:00
namespace zero.Core
2020-03-22 14:18:34 +01:00
{
public static class Constants
{
2020-04-15 15:13:38 +02:00
public const string ErrorFieldNone = "__zero_no_field";
2020-04-29 15:03:45 +02:00
public static class Tabs
{
public const string General = "general";
}
public static class Auth
{
public const string Scheme = "zeroCookies";
public const string CookieName = "zero.session";
2020-04-15 14:09:52 +02:00
public static class Claims
{
public const string IsZero = "zero.claim.iszero";
2020-04-16 00:56:22 +02:00
public const string IsSuper = "zero.claim.issuper";
2020-04-15 14:09:52 +02:00
public const string UserId = "zero.claim.userid";
public const string UserName = "zero.claim.username";
public const string Role = "zero.claim.rolealias";
2020-04-15 14:09:52 +02:00
public const string SecurityStamp = "zero.claim.securitystamp";
public const string Permission = "zero.claim.permission";
2020-05-20 16:09:56 +02:00
public const string DefaultAppId = "zero.claim.defaultAppId";
public const string CurrentAppId = "zero.claim.currentAppId";
2020-04-15 14:09:52 +02:00
}
}
2020-03-24 20:30:03 +01:00
public static class Database
{
public const string SharedAppId = "shared";
2020-04-14 20:16:04 +02:00
public const string ReservationPrefix = "zero.";
2020-04-22 15:46:35 +02:00
public const string Expires = Raven.Client.Constants.Documents.Metadata.Expires;
2020-03-24 20:30:03 +01:00
}
2020-03-22 14:18:34 +01:00
public static class Sections
{
public const string Dashboard = "dashboard";
public const string Pages = "pages";
public const string Spaces = "spaces";
2020-03-22 14:18:34 +01:00
public const string Media = "media";
public const string Settings = "settings";
}
2020-04-08 00:22:04 +02:00
public static class Settings
2020-04-08 00:22:04 +02:00
{
public const string Updates = "updates";
public const string Applications = "applications";
public const string Users = "users";
2020-05-04 16:00:39 +02:00
public const string Languages = "languages";
2020-04-08 00:22:04 +02:00
public const string Translations = "translations";
public const string Countries = "countries";
public const string Logging = "logs";
public const string Plugins = "plugins";
public const string CreatePlugin = "createplugin";
2020-04-08 00:22:04 +02:00
}
2020-05-13 14:06:11 +02:00
public static class PermissionCollections
{
public const string Sections = "permissionCollectionSections";
public const string Spaces = "permissionCollectionSpaces";
public const string Settings = "permisssionCollectionSettings";
}
2020-03-22 14:18:34 +01:00
}
}