mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
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.
This commit is contained in:
2
resources/js/global.d.ts
vendored
2
resources/js/global.d.ts
vendored
@ -1,6 +1,7 @@
|
||||
import {ComponentStore} from "./services/components";
|
||||
import {EventManager} from "./services/events";
|
||||
import {HttpManager} from "./services/http";
|
||||
import {Translator} from "./services/translations";
|
||||
|
||||
declare global {
|
||||
const __DEV__: boolean;
|
||||
@ -8,6 +9,7 @@ declare global {
|
||||
interface Window {
|
||||
$components: ComponentStore;
|
||||
$events: EventManager;
|
||||
$trans: Translator;
|
||||
$http: HttpManager;
|
||||
baseUrl: (path: string) => string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user