From 3ce91179b29ddc4d166bbd5aa617c3b75d6fd297 Mon Sep 17 00:00:00 2001 From: supertiger Date: Sun, 17 Feb 2019 12:32:00 +0000 Subject: [PATCH] lots of changes ;o --- src/changelog.js | 17 ++++ src/components/app/LeftPanel.vue | 57 ++++++++++- src/components/app/MessageTemplate.vue | 47 +++++++-- src/components/app/MyMiniInformation.vue | 2 +- src/components/app/RightPanel.vue | 70 ++++++++++--- .../app/SettingsPanels/MyProfile.vue | 2 +- src/components/app/TypingStatus.vue | 26 ++--- .../app/relationships/AddFriendPanel.vue | 8 +- .../app/relationships/FriendsTemplate.vue | 94 +++++++++++++++--- .../app/relationships/OfflineFriends.vue | 2 +- .../app/relationships/OnlineFriends.vue | 2 +- .../app/relationships/PendingTemplate.vue | 2 +- .../app/relationships/RecentFriends.vue | 97 +++++++++++++++++++ src/components/app/relationships/Tab.vue | 3 + src/components/app/statusList.vue | 1 + src/date.js | 53 ++++++++++ src/statuses.js | 16 ++- src/store/index.js | 10 +- src/store/modules/channelModule.js | 18 +++- src/store/modules/messageModule.js | 10 +- src/store/modules/notificationsModule.js | 62 ++++++++++++ src/store/modules/socketIOModule.js | 45 +++++++-- src/views/App.vue | 4 + src/views/HomePage.vue | 5 +- 24 files changed, 553 insertions(+), 100 deletions(-) create mode 100644 src/components/app/relationships/RecentFriends.vue create mode 100644 src/date.js create mode 100644 src/store/modules/notificationsModule.js diff --git a/src/changelog.js b/src/changelog.js index 6f06b9e..38584f5 100644 --- a/src/changelog.js +++ b/src/changelog.js @@ -1,4 +1,21 @@ const config = [ + { + title: 'Typing Indicator', + shortTitle: 'Typing Indicator', + date: '08/02/2019', + new: [ + 'See who\'s typing with the new typing indicator!', + 'Online and offline friends now have their own category.', + 'Timestamps for each message.' + ], + fix: [ + 'Some bugs with the message list scrolling.', + 'Added some margin and padding to some places.' + ], + next: [ + 'Message notifications.', + ] + }, { title: 'Avatar', shortTitle: 'Avatar', diff --git a/src/components/app/LeftPanel.vue b/src/components/app/LeftPanel.vue index c033296..74a7c97 100644 --- a/src/components/app/LeftPanel.vue +++ b/src/components/app/LeftPanel.vue @@ -1,11 +1,19 @@ @@ -17,13 +25,20 @@ import PendingFriends from './relationships/PendingFriends.vue' import AddFriendPanel from './relationships/AddFriendPanel.vue' import OnlineFriends from './relationships/OnlineFriends.vue' import OfflineFriends from './relationships/OfflineFriends.vue' +import RecentFriends from './relationships/RecentFriends.vue' export default { components: { MyMiniInformation, PendingFriends, AddFriendPanel, OnlineFriends, - OfflineFriends + OfflineFriends, + RecentFriends + }, + data() { + return { + isFriendsTab: true + } } } @@ -35,7 +50,8 @@ export default { width: 300px; flex-shrink: 0; display: flex; - flex-direction: column + flex-direction: column; + z-index: 1; } .list{ margin: 10px; @@ -43,6 +59,39 @@ export default { overflow: auto; } +.tabs{ + display: flex; + color: white; + flex-shrink: 0; + margin-top: 20px; + position: relative; +} +.tab{ + flex: 1; + text-align: center; + margin: auto; + flex-shrink: 0; + user-select: none; + cursor: default; + padding: 10px; + background: rgba(0, 0, 0, 0.171); + margin-left: 1px; + margin-right: 1px; +} +.selector { + background: rgba(255, 255, 255, 0.137); + width: 148px; + height: 39px; + top: 0; + left: 1px; + position: absolute; + z-index: -1; + transition: 0.3s; +} +.right{ + left: 151px; +} + /* ------- SCROLL BAR -------*/ /* width */ .list::-webkit-scrollbar { diff --git a/src/components/app/MessageTemplate.vue b/src/components/app/MessageTemplate.vue index b1e481f..54d06b1 100644 --- a/src/components/app/MessageTemplate.vue +++ b/src/components/app/MessageTemplate.vue @@ -1,11 +1,14 @@