]> BookStack Code Mirror - bookstack/commit
Organised activity types and moved most to repos
authorDan Brown <redacted>
Sat, 7 Nov 2020 22:37:27 +0000 (22:37 +0000)
committerDan Brown <redacted>
Sat, 7 Nov 2020 22:37:27 +0000 (22:37 +0000)
commitc157dc3490c39aa236e22714019a649ebeb11f13
treeb38789d55760314d238f7cef3b3b865c53606c3a
parent4824ef2760564b738a36d48672d8ffa543087c30
Organised activity types and moved most to repos

Repos are generally better since otherwise we end up duplicating
things between front-end and API.

Types moved to by CONST values within a class for better visibilty
of usage and listing of types.
19 files changed:
app/Actions/ActivityService.php
app/Actions/ActivityType.php [new file with mode: 0644]
app/Actions/CommentRepo.php
app/Entities/Repos/BookRepo.php
app/Entities/Repos/BookshelfRepo.php
app/Entities/Repos/ChapterRepo.php
app/Entities/Repos/PageRepo.php
app/Http/Controllers/Api/BookApiController.php
app/Http/Controllers/Api/BookshelfApiController.php
app/Http/Controllers/Api/ChapterApiController.php
app/Http/Controllers/BookController.php
app/Http/Controllers/BookSortController.php
app/Http/Controllers/BookshelfController.php
app/Http/Controllers/ChapterController.php
app/Http/Controllers/CommentController.php
app/Http/Controllers/PageController.php
app/Http/Controllers/PageRevisionController.php
tests/CommandsTest.php
tests/User/UserProfileTest.php