Skip to content

Commit

Permalink
Merge branch 'main' into 3841-update-user-two-meetings
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed Oct 15, 2024
2 parents 3b0ebfe + cebeb24 commit 0264d65
Show file tree
Hide file tree
Showing 8 changed files with 196 additions and 174 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.17 as build
FROM node:20.18 as build
ENV NODE_VERSION=20.14.0

WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.17-alpine
FROM node:20.18-alpine
ENV NODE_VERSION=20.14.0

RUN apk add --no-cache git
Expand Down
300 changes: 164 additions & 136 deletions client/package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
"get-available-languages": "npm run ts -- cli/get-available-languages.ts"
},
"dependencies": {
"@angular/animations": "^18.2.7",
"@angular/cdk": "^18.2.7",
"@angular/common": "^18.2.7",
"@angular/compiler": "^18.2.7",
"@angular/core": "^18.2.7",
"@angular/forms": "^18.2.7",
"@angular/material": "^18.2.7",
"@angular/material-date-fns-adapter": "^18.2.7",
"@angular/platform-browser": "^18.2.7",
"@angular/platform-browser-dynamic": "^18.2.7",
"@angular/router": "^18.2.7",
"@angular/service-worker": "^18.2.7",
"@angular/animations": "^18.2.8",
"@angular/cdk": "^18.2.8",
"@angular/common": "^18.2.8",
"@angular/compiler": "^18.2.8",
"@angular/core": "^18.2.8",
"@angular/forms": "^18.2.8",
"@angular/material": "^18.2.8",
"@angular/material-date-fns-adapter": "^18.2.8",
"@angular/platform-browser": "^18.2.8",
"@angular/platform-browser-dynamic": "^18.2.8",
"@angular/router": "^18.2.8",
"@angular/service-worker": "^18.2.8",
"@material/typography": "^14.0.0",
"@ngx-pwa/local-storage": "^18.0.0",
"@ngx-translate/core": "^15.0.0",
Expand Down Expand Up @@ -100,19 +100,19 @@
"zone.js": "^0.14.10"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.2.7",
"@angular-devkit/build-angular": "^18.2.8",
"@angular-eslint/builder": "^18.3.1",
"@angular-eslint/eslint-plugin": "^18.3.1",
"@angular-eslint/eslint-plugin-template": "^18.3.1",
"@angular-eslint/schematics": "^18.3.1",
"@angular-eslint/template-parser": "^18.3.1",
"@angular/cli": "^18.2.7",
"@angular/compiler-cli": "^18.2.7",
"@angular/cli": "^18.2.8",
"@angular/compiler-cli": "^18.2.8",
"@colsen1991/ngx-translate-extract-marker": "^2.0.8",
"@types/file-saver": "^2.0.7",
"@types/jasmine": "~5.1.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.16.10",
"@types/node": "^20.16.11",
"@types/pdfmake": "^0.2.9",
"@types/qrcode": "^1.5.5",
"@types/tinycolor2": "^1.4.6",
Expand All @@ -126,7 +126,7 @@
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unused-imports": "^4.1.4",
"fetch-mock": "^11.1.5",
"jasmine-core": "~5.3.0",
"jasmine-core": "~5.4.0",
"js-yaml": "^4.1.0",
"karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ export class AccountButtonComponent extends BaseUiComponent implements OnInit {
return this.theme.isDarkModeObservable;
}

public user: ViewUser | null = null;
public get user(): ViewUser {
return this.operator.user;
}

public username = ``;
public isLoggedIn = false;

private get activeMeetingId(): Id | null {
return this.activeMeetingIdService.meetingId;
}

private _userId: Id | null | undefined = undefined; // to distinguish from null!
private _isAllowedSelfSetPresent = false;
private _languageTrigger: MatMenuTrigger | undefined = undefined;
private clickCounter = 0;
Expand All @@ -81,7 +83,6 @@ export class AccountButtonComponent extends BaseUiComponent implements OnInit {
private theme: ThemeService,
private meetingSettingsService: MeetingSettingsService,
private activeMeetingIdService: ActiveMeetingIdService,
private controller: UserControllerService,
chessChallengeService: ChessChallengeService
) {
super();
Expand Down Expand Up @@ -117,11 +118,11 @@ export class AccountButtonComponent extends BaseUiComponent implements OnInit {
}

public toggleOperatorPresence(): void {
this.controller
this.userRepo
.setPresent({
isPresent: !this.isPresent,
meetingId: this.activeMeetingId,
users: [this.user!]
users: [this.user]
})
.resolve();
}
Expand Down Expand Up @@ -186,10 +187,5 @@ export class AccountButtonComponent extends BaseUiComponent implements OnInit {
private onOperatorUpdate(): void {
this.isLoggedIn = !this.operator.isAnonymous;
this.username = this.operator.shortName;
const userId = this.operator.operatorId;
if (this._userId !== userId) {
this._userId = userId;
this.user = this.operator.user;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,6 @@ <h3>{{ 'Reason' | translate }}</h3>
}
</div>
</section>

<!-- Reason -->
@if (data.data.reason) {
<div>
<h3>{{ 'Reason' | translate }}</h3>
<div [innerHTML]="data.data.reason | trust: 'html'"></div>
</div>
}
}
</div>
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
flex-direction: column;
margin-top: 10px;
}

.motion-content {
h3 {
font-weight: bold;
}
}
2 changes: 1 addition & 1 deletion client/src/meta
Submodule meta updated 1 files
+2 −2 dev/requirements.txt

0 comments on commit 0264d65

Please sign in to comment.