mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-26 14:28:23 +00:00
* Implement notifications logic, basic calls, and admin command * Remove unnecessary code * Add ability to stack notifications and return manually created XML * Remove test that is no longer needed and is causing failures * Apply suggestions from code review * Merge notifications with existing announcements page * Order notifications by descending ID instead of ascending ID * Move notification send task to moderation options under user Also restyles the buttons to line up next to each other like in the slot pages. * Style/position fixes with granted slots/notification partials * Fix incorrect form POST route * Prevent notification text area from breaking out of container * Actually use builder result for notification text * Minor restructuring of the notifications page * Add notifications for team picks, publish issues, and moderation * Mark notifications as dismissed instead of deleting them * Add XMLdoc to SendNotification method * Fix incorrect URL in announcements webhook * Remove unnecessary inline style from granted slots partial * Apply suggestions from code review * Apply first batch of suggestions from code review * Apply second batch of suggestions from code review * Change notification icon depending on if user has unread notifications * Show unread notification icon if there is an announcement posted * Remove "potential" wording from definitive fixes in error docs * Remove "Error code:" from publish notifications * Send notification if user tries to unlock a mod-locked level * Change notification timestamp format to include date * Add clarification to level mod-lock notification message * Change team pick notifications to moderation notifications Apparently the MMPick type doesn't show a visual notification. * Apply suggestions from code review * Add obsolete to notification types that display nothing in-game * Remove unused imports and remove icon switch case in favor of bell icon * Last minute fixes * Send notification upon earth wipe and clarify moderation case notifications * Add check for empty/too long notification text
22 lines
No EOL
1.4 KiB
C#
22 lines
No EOL
1.4 KiB
C#
namespace LBPUnion.ProjectLighthouse.Localization.StringLists;
|
|
|
|
public static class GeneralStrings
|
|
{
|
|
public static readonly TranslatableString Username = create("username");
|
|
public static readonly TranslatableString Password = create("password");
|
|
public static readonly TranslatableString Email = create("email");
|
|
public static readonly TranslatableString Register = create("register");
|
|
public static readonly TranslatableString ResetPassword = create("reset_password");
|
|
public static readonly TranslatableString ForgotPassword = create("forgot_password");
|
|
public static readonly TranslatableString Success = create("success");
|
|
public static readonly TranslatableString Error = create("error");
|
|
public static readonly TranslatableString LogIn = create("log_in");
|
|
public static readonly TranslatableString Unknown = create("unknown");
|
|
public static readonly TranslatableString RecentPhotos = create("recent_photos");
|
|
public static readonly TranslatableString RecentActivity = create("recent_activity");
|
|
public static readonly TranslatableString Soon = create("soon");
|
|
public static readonly TranslatableString Announcements = create("announcements");
|
|
public static readonly TranslatableString Notifications = create("notifications");
|
|
|
|
private static TranslatableString create(string key) => new(TranslationAreas.General, key);
|
|
} |