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";
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-10 13:35:39 +02:00
|
|
|
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";
|
2020-04-16 12:56:17 +02:00
|
|
|
public const string Role = "zero.claim.rolealias";
|
2020-04-15 14:09:52 +02:00
|
|
|
public const string SecurityStamp = "zero.claim.securitystamp";
|
2020-04-16 12:56:17 +02:00
|
|
|
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-04-10 13:35:39 +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";
|
2020-04-30 11:53:59 +02:00
|
|
|
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
|
|
|
|
2020-04-27 15:49:14 +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";
|
2020-04-27 15:49:14 +02:00
|
|
|
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-08-31 11:48:05 +02:00
|
|
|
|
|
|
|
|
public const string Modules = "permissionCollectionModules";
|
2020-05-13 14:06:11 +02:00
|
|
|
}
|
2020-03-22 14:18:34 +01:00
|
|
|
}
|
|
|
|
|
}
|