Files
ZelWiki/ZelWiki.Library/Constants.cs
2025-02-20 15:20:28 +08:00

66 lines
2.3 KiB
C#

namespace ZelWiki.Library
{
public static class Constants
{
public const string CRYPTOCHECK = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
public const string DEFAULTUSERNAME = "admin@tightwiki.com";
public const string DEFAULTACCOUNT = "admin";
public const string DEFAULTPASSWORD = "2Tight2Wiki@";
public enum WikiTheme
{
Light,
Dark
}
public enum AdminPasswordChangeState
{
/// <summary>
/// The password has not been changed, display a big warning.
/// </summary>
IsDefault,
/// <summary>
/// All is well!
/// </summary>
HasBeenChanged,
/// <summary>
/// The default password status does not exist and the password needs to be set to default.
/// </summary>
NeedsToBeSet
}
public static class WikiInstruction
{
public static string Deprecate { get; } = "Deprecate";
public static string Protect { get; } = "Protect";
public static string Template { get; } = "Template";
public static string Review { get; } = "Review";
public static string Include { get; } = "Include";
public static string Draft { get; } = "Draft";
public static string NoCache { get; } = "NoCache";
public static string HideFooterComments { get; } = "HideFooterComments";
public static string HideFooterLastModified { get; } = "HideFooterLastModified";
}
public static class Roles
{
/// <summary>
/// Administrators can do anything. Add, edit, delete, pages, users, etc.
/// </summary>
public const string Administrator = "Administrator";
/// <summary>
/// Read-only user with a profile.
/// </summary>
public const string Member = "Member";
/// <summary>
/// Contributor can add and edit pages.
/// </summary>
public const string Contributor = "Contributor";
/// <summary>
/// Moderators can add, edit and delete pages.
/// </summary>
public const string Moderator = "Moderator";
}
}
}