]> BookStack Code Mirror - bookstack/commit
Updated some comment elements and standardised more JS
authorDan Brown <redacted>
Tue, 28 Jul 2020 17:19:18 +0000 (18:19 +0100)
committerDan Brown <redacted>
Tue, 28 Jul 2020 17:19:18 +0000 (18:19 +0100)
commit7590ecd37c49b12fb6cf2ad251b1e65c1ea7d1ee
tree32b9386812b7db285ee0811b125444f090339f43
parent2c0fdf83c129f3a89fb3d1d8720b6af547188af4
Updated some comment elements and standardised more JS

- Updated comment routes to be simpler.
- Updated comments JS to align better with updated component system.
- Documented available global JS functions/services.
- Removed redundant controller method.
- Added window.$events helpers for validation messages and
success/error.
- Updated JS events system to not be class based for simplicity.
- Added window.trans_plural method to handle pluralisation/replacements
where you already have the translation string itself.

Fixes #1836
app/Http/Controllers/Controller.php
dev/docs/components.md
resources/js/components/page-comments.js
resources/js/index.js
resources/js/services/events.js
resources/js/services/http.js
resources/js/services/translations.js
resources/views/comments/comments.blade.php
resources/views/comments/create.blade.php
routes/web.php
tests/Entity/CommentTest.php