]> BookStack Code Mirror - bookstack/commit
JS: Converted/updated translation code to TS, fixed some comment counts
authorDan Brown <redacted>
Mon, 7 Oct 2024 21:55:10 +0000 (22:55 +0100)
committerDan Brown <redacted>
Mon, 7 Oct 2024 21:55:10 +0000 (22:55 +0100)
commitd22413b9317b40110fa2fd41134d1831dd760d0b
tree26bf3db9d0f3a3ba799b9eda506af98654c0c9a5
parent8b9bcc1768c00ccbc3a6a6ff81b58659df925ce0
JS: Converted/updated translation code to TS, fixed some comment counts

- Migrated translation service to TS, stripping a lot of now unused code
  along the way.
- Added test to cover translation service.
- Fixed some comment count issues, where it was not showing correct
  value. or updating, on comment create or delete.
dev/docs/javascript-code.md
resources/js/app.js
resources/js/components/page-comment.js
resources/js/components/page-comments.js
resources/js/global.d.ts
resources/js/services/__tests__/translations.test.ts [new file with mode: 0644]
resources/js/services/translations.js [deleted file]
resources/js/services/translations.ts [new file with mode: 0644]