BookStack/app/Http/Controllers
Dan Brown f99af807d0
Reviewed and refactored additional editor draft save warnings
- Added testing to cover warning cases.
- Refactored logic to be simpler and move much of the business out of
  the controller.
- Added new message that's more suitable to the case this was handling.
- For detecting an outdated draft, checked the draft created_at time
  instead of updated_at to better fit the scenario being checked.
- Updated some method types to align with those potentially being used
  in the logic of the code.
- Added a cache of shown messages on the front-end to prevent them
  re-showing on every save during the session, even if dismissed.
2021-10-04 20:26:55 +01:00
..
Api Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
Auth Standardised facade usage to use via their FQCN 2021-09-26 15:37:55 +01:00
Images Reorgranised blade view files to form a convention 2021-08-22 13:17:32 +01:00
AttachmentController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
AuditLogController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
BookController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
BookExportController.php Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
BookshelfController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
BookSortController.php Reorgranised blade view files to form a convention 2021-08-22 13:17:32 +01:00
ChapterController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
ChapterExportController.php Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
CommentController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Controller.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
FavouriteController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
HomeController.php Allowed page includes on custom home 2021-10-04 11:26:26 +01:00
MaintenanceController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
PageController.php Reviewed and refactored additional editor draft save warnings 2021-10-04 20:26:55 +01:00
PageExportController.php Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
PageRevisionController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
PageTemplateController.php Reorgranised blade view files to form a convention 2021-08-22 13:17:32 +01:00
RecycleBinController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
RoleController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
SearchController.php Reorgranised blade view files to form a convention 2021-08-22 13:17:32 +01:00
SettingController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
StatusController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
TagController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
UserApiTokenController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
UserController.php Added MFA indicator to user list 2021-07-14 20:19:05 +01:00
UserProfileController.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
UserSearchController.php Reorgranised blade view files to form a convention 2021-08-22 13:17:32 +01:00