From 28f8db563faae2d7928fbfa0a6f2f88639c471f3 Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 10:24:12 +0100 Subject: [PATCH] Many improvements --- package-lock.json | 6 +- package.json | 2 +- src/app/app.component.ts | 2 +- .../app-scaffold/app-scaffold.component.html | 17 ++- .../app-scaffold/app-scaffold.component.sass | 8 +- .../app-scaffold/app-scaffold.component.ts | 45 +++++++- src/app/components/chat/chat.component.html | 4 +- src/app/components/chat/chat.component.ts | 12 +- .../chatlist/chatlist.component.html | 4 +- .../chatlist/chatlist.component.sass | 1 - .../components/chatlist/chatlist.component.ts | 11 +- .../chatmanager/chatmanager.component.ts | 10 +- src/app/components/feed/feed.component.html | 4 +- src/app/components/feed/feed.component.sass | 14 ++- src/app/components/feed/feed.component.ts | 35 +++--- .../feed/postlist/postlist.component.ts | 4 +- src/app/components/home/home.component.html | 4 +- src/app/components/home/home.component.sass | 3 +- src/app/components/home/home.component.ts | 10 +- src/app/components/login/login.component.ts | 2 + .../social/friends/friends.component.html | 6 +- .../social/friends/friends.component.sass | 22 ++-- .../social/friends/friends.component.ts | 45 +++++++- .../social/groups/groups.component.html | 6 +- .../social/groups/groups.component.sass | 22 ++-- .../social/groups/groups.component.ts | 3 +- src/app/models/groupinfo.ts | 11 ++ src/app/services/chat/chat.service.ts | 106 +++++++++++++++++- src/app/services/feed/feed.service.ts | 56 +++++++-- src/app/services/login/login.service.ts | 2 +- 30 files changed, 379 insertions(+), 98 deletions(-) create mode 100644 src/app/models/groupinfo.ts diff --git a/package-lock.json b/package-lock.json index 86c7311..49b375b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9444,9 +9444,9 @@ } }, "ts-md5": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/ts-md5/-/ts-md5-1.2.6.tgz", - "integrity": "sha512-VFW6O4CTZsgTPDBhF31i83hPhfwd9Dcp5RnbfGOIJPDRro9IhvXMYd8xBycD0yXqHZiAvv+iDG8F+UFrPEyQ5w==" + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/ts-md5/-/ts-md5-1.2.7.tgz", + "integrity": "sha512-emODogvKGWi1KO1l9c6YxLMBn6CEH3VrH5mVPIyOtxBG52BvV4jP3GWz6bOZCz61nLgBc3ffQYE4+EHfCD+V7w==" }, "ts-node": { "version": "7.0.1", diff --git a/package.json b/package.json index a943834..7ee7710 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "graphql-tag": "^2.10.0", "ngx-socket-io": "^2.0.0", "rxjs": "~6.3.3", - "ts-md5": "^1.2.6", + "ts-md5": "^1.2.7", "zone.js": "~0.8.26" }, "devDependencies": { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 9ac92e0..a377c4d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -30,7 +30,7 @@ export class AppComponent implements OnInit { this.data.currentUserInfo.subscribe(user => { this.userInfo = user; console.log(this.userInfo); - this.data.changeChatIDs(this.chatIDs) + this.data.changeChatIDs(user.chatIDs) }) } } diff --git a/src/app/components/app-scaffold/app-scaffold.component.html b/src/app/components/app-scaffold/app-scaffold.component.html index ed80193..df665b0 100644 --- a/src/app/components/app-scaffold/app-scaffold.component.html +++ b/src/app/components/app-scaffold/app-scaffold.component.html @@ -6,11 +6,18 @@