]> BookStack Code Mirror - bookstack/commit
Aligned user preference endpoints in style and behaviour
authorDan Brown <redacted>
Wed, 9 Nov 2022 19:30:08 +0000 (19:30 +0000)
committerDan Brown <redacted>
Wed, 9 Nov 2022 19:30:08 +0000 (19:30 +0000)
commita3fcc98d6ec2597a212b569898437d3d2d9421bd
treec3459689dbe7dad4c160d8bd8e0155b192076ca7
parent24a7e8500d71927e0a63b89f0a97601965f2357c
Aligned user preference endpoints in style and behaviour

Changes their endpoints and remove the user id from the URLs.
Simplifies list changes to share a single endpoint, which aligns it to
the behaviour of the existing sort preference endpoint.
Also added test to ensure user preferences are deleted on user delete.
16 files changed:
app/Auth/UserRepo.php
app/Http/Controllers/UserPreferencesController.php
app/Settings/SettingService.php
resources/js/components/code-editor.js
resources/js/components/shortcuts.js
resources/views/common/dark-mode-toggle.blade.php
resources/views/common/sort.blade.php
resources/views/entities/view-toggle.blade.php
resources/views/home/parts/expand-toggle.blade.php
resources/views/home/shelves.blade.php
resources/views/shelves/index.blade.php
resources/views/shelves/show.blade.php
routes/web.php
tests/Entity/BookTest.php
tests/User/UserManagementTest.php
tests/User/UserPreferencesTest.php