initial commit

This commit is contained in:
felix
2026-09-16 17:16:19 +02:00
commit d120237521
80 changed files with 26582 additions and 0 deletions

21
app/routes/application.js Normal file
View File

@@ -0,0 +1,21 @@
import Route from '@ember/routing/route';
import { service } from '@ember/service';
import { warn } from '@ember/debug';
export default class ApplicationRoute extends Route {
@service router;
@service session;
@service currentSession;
async beforeModel() {
await this.session.setup();
return this._loadCurrentSession();
}
_loadCurrentSession() {
return this.currentSession.load().catch((e) => {
warn(e, { id: 'session-load-failure' });
this.session.invalidate();
});
}
}