2021-11-20 13:52:28 +01:00
|
|
|
namespace zero.Configuration;
|
2021-11-19 14:59:24 +01:00
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Constants
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string ErrorFieldNone = "__zero_no_field";
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Tabs
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string General = "general";
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Auth
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string SystemUser = "system";
|
|
|
|
|
public const string DefaultScheme = "zeroScheme";
|
2021-11-29 00:38:55 +01:00
|
|
|
public const string BackofficeDisplayName = "Zero Backoffice";
|
2021-11-19 14:59:24 +01:00
|
|
|
public const string BackofficeScheme = "zeroBackoffice";
|
|
|
|
|
public const string BackofficeCookieName = "zero.be.session";
|
|
|
|
|
public const string DefaultCookieName = "zero.session";
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Claims
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string IsZero = "zero.claim.iszero";
|
|
|
|
|
public const string IsSuper = "zero.claim.issuper";
|
|
|
|
|
public const string UserId = "zero.claim.userid";
|
|
|
|
|
public const string UserName = "zero.claim.username";
|
|
|
|
|
public const string Role = "zero.claim.rolealias";
|
|
|
|
|
public const string SecurityStamp = "zero.claim.securitystamp";
|
|
|
|
|
public const string Email = "zero.claim.email";
|
|
|
|
|
public const string Permission = "zero.claim.permission";
|
|
|
|
|
public const string DefaultAppId = "zero.claim.defaultAppId";
|
|
|
|
|
public const string AppId = "zero.claim.appId";
|
|
|
|
|
public const string TicketExpires = "zero.claim.ticketExpires";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-29 00:38:55 +01:00
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Permissions
|
2021-11-29 00:38:55 +01:00
|
|
|
{
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Groups
|
2021-11-29 00:38:55 +01:00
|
|
|
{
|
|
|
|
|
public const string Sections = "zero.permissions.groups.sections";
|
|
|
|
|
public const string Spaces = "zero.permissions.groups.spaces";
|
|
|
|
|
public const string Settings = "zero.permissions.groups.settings";
|
|
|
|
|
public const string Pages = "zero.permissions.groups.pages";
|
|
|
|
|
public const string Modules = "zero.permissions.groups.modules";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Database
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string ReservationPrefix = "zero.";
|
|
|
|
|
public const string Expires = Raven.Client.Constants.Documents.Metadata.Expires;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Sections
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string Dashboard = "dashboard";
|
|
|
|
|
public const string Pages = "pages";
|
|
|
|
|
public const string Spaces = "spaces";
|
|
|
|
|
public const string Media = "media";
|
|
|
|
|
public const string Settings = "settings";
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Settings
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string Updates = "updates";
|
|
|
|
|
public const string Applications = "applications";
|
|
|
|
|
public const string Users = "users";
|
|
|
|
|
public const string Languages = "languages";
|
|
|
|
|
public const string Translations = "translations";
|
|
|
|
|
public const string Countries = "countries";
|
|
|
|
|
public const string Mails = "mailTemplates";
|
|
|
|
|
public const string Integrations = "integrations";
|
|
|
|
|
public const string Logging = "logs";
|
|
|
|
|
public const string Plugins = "plugins";
|
|
|
|
|
public const string CreatePlugin = "createplugin";
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class PermissionCollections
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string Sections = "permissionCollectionSections";
|
|
|
|
|
public const string Spaces = "permissionCollectionSpaces";
|
|
|
|
|
public const string Settings = "permisssionCollectionSettings";
|
|
|
|
|
public const string Modules = "permissionCollectionModules";
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Pages
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string FolderAlias = "zero.folder";
|
|
|
|
|
public const string DefaultRootPageTypeAlias = "root";
|
|
|
|
|
public const string PageRouteProviderAlias = "zero.pages";
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static partial class Routing
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public const string InternalRoutePrefix = "/__zero/";
|
|
|
|
|
|
|
|
|
|
public const string ErrorRoute = InternalRoutePrefix + "error";
|
|
|
|
|
}
|
|
|
|
|
}
|