mirror of
https://github.com/goauthentik/authentik
synced 2026-05-10 09:02:18 +02:00
* Add fallback weights to accept language header. * Fix context cache lifecycle, compatibility. * Fix stale locale on API provided values. * Update locale after changing user settings. * Remove legacy XLF files. * Apply suggestion from @BeryJu Signed-off-by: Jens L. <jens@beryju.org> --------- Signed-off-by: Jens L. <jens@beryju.org> Co-authored-by: Jens L. <jens@goauthentik.io>
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import { LicenseContextController } from "#elements/controllers/LicenseContextController";
|
|
import { NotificationsContextController } from "#elements/controllers/NotificationsContextController";
|
|
import { SessionContextController } from "#elements/controllers/SessionContextController";
|
|
import { VersionContextController } from "#elements/controllers/VersionContextController";
|
|
import { Interface } from "#elements/Interface";
|
|
import { LicenseContext } from "#elements/mixins/license";
|
|
import { NotificationsContext } from "#elements/mixins/notifications";
|
|
import { SessionContext } from "#elements/mixins/session";
|
|
import { VersionContext } from "#elements/mixins/version";
|
|
|
|
export class AuthenticatedInterface extends Interface {
|
|
constructor() {
|
|
super();
|
|
|
|
this.addController(new LicenseContextController(this), LicenseContext);
|
|
this.addController(new SessionContextController(this), SessionContext);
|
|
this.addController(new VersionContextController(this), VersionContext);
|
|
this.addController(new NotificationsContextController(this), NotificationsContext);
|
|
}
|
|
}
|