nova
4 years ago
11 changed files with 183 additions and 17 deletions
-
10chatto/src/main/javascript/package.json
-
11chatto/src/main/javascript/ts/src/main.ts
-
3chatto/src/main/javascript/ts/src/model/ChatModel.ts
-
84chatto/src/main/javascript/ts/src/service/AlertifyNotificationService.ts
-
3chatto/src/main/javascript/ts/src/service/NotificationService.ts
-
29chatto/src/main/javascript/ts/src/view/UserView.ts
-
2chatto/src/main/javascript/ts/src/view/UserViewDeps.ts
-
4chatto/src/main/javascript/ts/src/viewmodel/ActiveUserViewModel.ts
-
38chatto/src/main/javascript/yarn.lock
-
4chatto/src/main/resources/templates/chat.html
-
2chatto/src/main/resources/templates/fragments/head.html
@ -1,7 +1,10 @@ |
|||
import { ActiveUserViewModel } from "../viewmodel/ActiveUserViewModel"; |
|||
|
|||
export interface NotificationService { |
|||
success(message: string): void; |
|||
error(message: string): void; |
|||
errorWithDelay(message: string, delay: number): void; |
|||
warning(message: string): void; |
|||
message(message: string): void; |
|||
passphrasePrompt(vm: ActiveUserViewModel, vms: ActiveUserViewModel[], cb1: (...x: any) => any, cb2: (...x: any) => any): void; |
|||
} |
@ -1,5 +1,7 @@ |
|||
export class ActiveUserViewModel { |
|||
userName: string | undefined; |
|||
online: boolean | undefined; |
|||
online: boolean = false; |
|||
unlocked: boolean = false; |
|||
passphrase: string = ""; |
|||
lastActive: Date | undefined; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue