Skip to content

Commit

Permalink
tachyon battle integration wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazcash committed Jan 18, 2024
1 parent 38cea43 commit 1fb9275
Show file tree
Hide file tree
Showing 14 changed files with 320 additions and 362 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ module.exports = {
rules: {
// Rules should only be added here for testing temporarily and should eventually be moved into jaz-ts-utils to ensure consistency across projects
"func-style": ["error", "declaration"],
"lines-between-class-members": ['error', 'always', { 'exceptAfterSingleLine': true }]
},
};
104 changes: 69 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"flag-icons": "^6.1.1",
"glob-promise": "^6.0.2",
"howler": "^2.2.3",
"jaz-ts-utils": "^6.2.2",
"jaz-ts-utils": "^7.10.0",
"kysely": "^0.21.6",
"luaparse": "^0.3.1",
"marked": "^5.0.2",
Expand Down
7 changes: 2 additions & 5 deletions src/renderer/api/comms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ export class CommsAPI extends TachyonClient {

api.session.offlineMode.value = false;

api.session.updateCurrentUser(userData);
api.session.updateCurrentUser(userResponse);

this.socket?.addEventListener("close", () => {
this.isConnectedRef.value = false;

api.session.onlineBattle.value = null;
api.session.users.clear();
api.session.battles.clear();
api.session.serverStats;
api.session.clear();

if (api.router.currentRoute.value.path !== "/" && api.router.currentRoute.value.path !== "/login" && !api.session.offlineMode.value) {
api.router.replace("/login");
Expand Down
Loading

0 comments on commit 1fb9275

Please sign in to comment.