diff --git a/backend/src/schema/resolvers/messages.ts b/backend/src/schema/resolvers/messages.ts index b7e7a7a73..c1381045f 100644 --- a/backend/src/schema/resolvers/messages.ts +++ b/backend/src/schema/resolvers/messages.ts @@ -25,8 +25,8 @@ export default { chatMessageAdded: { subscribe: withFilter( () => pubsub.asyncIterator(CHAT_MESSAGE_ADDED), - (payload, variables) => { - return payload.userId === variables.userId + (payload, variables, context) => { + return payload.userId === context.user?.id }, ), }, diff --git a/backend/src/schema/resolvers/notifications.ts b/backend/src/schema/resolvers/notifications.ts index e427de227..6a3e232cc 100644 --- a/backend/src/schema/resolvers/notifications.ts +++ b/backend/src/schema/resolvers/notifications.ts @@ -7,8 +7,8 @@ export default { notificationAdded: { subscribe: withFilter( () => pubsub.asyncIterator(NOTIFICATION_ADDED), - (payload, variables) => { - return payload.notificationAdded.to.id === variables.userId + (payload, variables, context) => { + return payload.notificationAdded.to.id === context.user?.id }, ), }, diff --git a/backend/src/schema/resolvers/rooms.ts b/backend/src/schema/resolvers/rooms.ts index 5e931a446..5382c5ee7 100644 --- a/backend/src/schema/resolvers/rooms.ts +++ b/backend/src/schema/resolvers/rooms.ts @@ -20,8 +20,8 @@ export default { roomCountUpdated: { subscribe: withFilter( () => pubsub.asyncIterator(ROOM_COUNT_UPDATED), - (payload, variables) => { - return payload.userId === variables.userId + (payload, variables, context) => { + return payload.userId === context.user?.id }, ), }, diff --git a/backend/src/schema/types/type/Message.gql b/backend/src/schema/types/type/Message.gql index 71d175e1c..16e458151 100644 --- a/backend/src/schema/types/type/Message.gql +++ b/backend/src/schema/types/type/Message.gql @@ -46,5 +46,5 @@ type Query { } type Subscription { - chatMessageAdded(userId: ID!): Message + chatMessageAdded: Message } diff --git a/backend/src/schema/types/type/NOTIFIED.gql b/backend/src/schema/types/type/NOTIFIED.gql index 62a1f3696..1f825decc 100644 --- a/backend/src/schema/types/type/NOTIFIED.gql +++ b/backend/src/schema/types/type/NOTIFIED.gql @@ -38,5 +38,5 @@ type Mutation { } type Subscription { - notificationAdded(userId: ID!): NOTIFIED + notificationAdded: NOTIFIED } diff --git a/backend/src/schema/types/type/Room.gql b/backend/src/schema/types/type/Room.gql index 0cf5b22c8..60d54192c 100644 --- a/backend/src/schema/types/type/Room.gql +++ b/backend/src/schema/types/type/Room.gql @@ -8,6 +8,7 @@ # TODO change this to last message date enum _RoomOrdering { lastMessageAt_desc + createdAt_desc } type Room { @@ -57,5 +58,5 @@ type Query { } type Subscription { - roomCountUpdated(userId: ID!): Int + roomCountUpdated: Int } diff --git a/webapp/assets/_new/icons/svgs/align-center.svg b/webapp/assets/_new/icons/svgs/align-center.svg new file mode 100755 index 000000000..4232dff91 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/align-center.svg @@ -0,0 +1,5 @@ + + +align-center + + diff --git a/webapp/assets/_new/icons/svgs/align-justify.svg b/webapp/assets/_new/icons/svgs/align-justify.svg new file mode 100755 index 000000000..ce82c7f0a --- /dev/null +++ b/webapp/assets/_new/icons/svgs/align-justify.svg @@ -0,0 +1,5 @@ + + +align-justify + + diff --git a/webapp/assets/_new/icons/svgs/align-left.svg b/webapp/assets/_new/icons/svgs/align-left.svg new file mode 100755 index 000000000..c76e93dc9 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/align-left.svg @@ -0,0 +1,5 @@ + + +align-left + + diff --git a/webapp/assets/_new/icons/svgs/align-right.svg b/webapp/assets/_new/icons/svgs/align-right.svg new file mode 100755 index 000000000..24972ed83 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/align-right.svg @@ -0,0 +1,5 @@ + + +align-right + + diff --git a/webapp/assets/_new/icons/svgs/angle-left.svg b/webapp/assets/_new/icons/svgs/angle-left.svg new file mode 100755 index 000000000..826dd8e34 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/angle-left.svg @@ -0,0 +1,5 @@ + + +angle-left + + diff --git a/webapp/assets/_new/icons/svgs/angle-right.svg b/webapp/assets/_new/icons/svgs/angle-right.svg new file mode 100755 index 000000000..1df45a590 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/angle-right.svg @@ -0,0 +1,5 @@ + + +angle-right + + diff --git a/webapp/assets/_new/icons/svgs/archive.svg b/webapp/assets/_new/icons/svgs/archive.svg new file mode 100755 index 000000000..878713822 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/archive.svg @@ -0,0 +1,5 @@ + + +archive + + diff --git a/webapp/assets/_new/icons/svgs/arrow-up.svg b/webapp/assets/_new/icons/svgs/arrow-up.svg new file mode 100755 index 000000000..f48c186c0 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/arrow-up.svg @@ -0,0 +1,5 @@ + + +arrow-up + + diff --git a/webapp/assets/_new/icons/svgs/bar-chart.svg b/webapp/assets/_new/icons/svgs/bar-chart.svg new file mode 100755 index 000000000..0c853e737 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/bar-chart.svg @@ -0,0 +1,5 @@ + + +bar-chart + + diff --git a/webapp/assets/_new/icons/svgs/briefcase.svg b/webapp/assets/_new/icons/svgs/briefcase.svg new file mode 100755 index 000000000..c0f6552a0 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/briefcase.svg @@ -0,0 +1,5 @@ + + +briefcase + + diff --git a/webapp/assets/_new/icons/svgs/bug.svg b/webapp/assets/_new/icons/svgs/bug.svg new file mode 100755 index 000000000..66374d8bc --- /dev/null +++ b/webapp/assets/_new/icons/svgs/bug.svg @@ -0,0 +1,5 @@ + + +bug + + diff --git a/webapp/assets/_new/icons/svgs/calculator.svg b/webapp/assets/_new/icons/svgs/calculator.svg new file mode 100755 index 000000000..657b19919 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/calculator.svg @@ -0,0 +1,5 @@ + + +calculator + + diff --git a/webapp/assets/_new/icons/svgs/camera.svg b/webapp/assets/_new/icons/svgs/camera.svg new file mode 100755 index 000000000..793620544 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/camera.svg @@ -0,0 +1,5 @@ + + +camera + + diff --git a/webapp/assets/_new/icons/svgs/cart-plus.svg b/webapp/assets/_new/icons/svgs/cart-plus.svg new file mode 100755 index 000000000..84ea385bd --- /dev/null +++ b/webapp/assets/_new/icons/svgs/cart-plus.svg @@ -0,0 +1,5 @@ + + +cart-plus + + diff --git a/webapp/assets/_new/icons/svgs/certificate.svg b/webapp/assets/_new/icons/svgs/certificate.svg new file mode 100755 index 000000000..341b4af3e --- /dev/null +++ b/webapp/assets/_new/icons/svgs/certificate.svg @@ -0,0 +1,5 @@ + + +certificate + + diff --git a/webapp/assets/_new/icons/svgs/chain-broken.svg b/webapp/assets/_new/icons/svgs/chain-broken.svg new file mode 100755 index 000000000..4ba13f49c --- /dev/null +++ b/webapp/assets/_new/icons/svgs/chain-broken.svg @@ -0,0 +1,5 @@ + + +chain-broken + + diff --git a/webapp/assets/_new/icons/svgs/chain.svg b/webapp/assets/_new/icons/svgs/chain.svg new file mode 100755 index 000000000..9d390e126 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/chain.svg @@ -0,0 +1,5 @@ + + +chain + + diff --git a/webapp/assets/_new/icons/svgs/cloud-download.svg b/webapp/assets/_new/icons/svgs/cloud-download.svg new file mode 100755 index 000000000..fcc46456b --- /dev/null +++ b/webapp/assets/_new/icons/svgs/cloud-download.svg @@ -0,0 +1,5 @@ + + +cloud-download + + diff --git a/webapp/assets/_new/icons/svgs/cloud-upload.svg b/webapp/assets/_new/icons/svgs/cloud-upload.svg new file mode 100755 index 000000000..8a0c486b2 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/cloud-upload.svg @@ -0,0 +1,5 @@ + + +cloud-upload + + diff --git a/webapp/assets/_new/icons/svgs/cloud.svg b/webapp/assets/_new/icons/svgs/cloud.svg new file mode 100755 index 000000000..7ee840e92 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/cloud.svg @@ -0,0 +1,5 @@ + + +cloud + + diff --git a/webapp/assets/_new/icons/svgs/code.svg b/webapp/assets/_new/icons/svgs/code.svg new file mode 100755 index 000000000..2581fa884 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/code.svg @@ -0,0 +1,5 @@ + + +code + + diff --git a/webapp/assets/_new/icons/svgs/coffee.svg b/webapp/assets/_new/icons/svgs/coffee.svg new file mode 100755 index 000000000..302150d0a --- /dev/null +++ b/webapp/assets/_new/icons/svgs/coffee.svg @@ -0,0 +1,5 @@ + + +coffee + + diff --git a/webapp/assets/_new/icons/svgs/columns.svg b/webapp/assets/_new/icons/svgs/columns.svg new file mode 100755 index 000000000..f77576ed4 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/columns.svg @@ -0,0 +1,5 @@ + + +columns + + diff --git a/webapp/assets/_new/icons/svgs/compass.svg b/webapp/assets/_new/icons/svgs/compass.svg new file mode 100755 index 000000000..935cb5791 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/compass.svg @@ -0,0 +1,5 @@ + + +compass + + diff --git a/webapp/assets/_new/icons/svgs/credit-card.svg b/webapp/assets/_new/icons/svgs/credit-card.svg new file mode 100755 index 000000000..29c1fb96f --- /dev/null +++ b/webapp/assets/_new/icons/svgs/credit-card.svg @@ -0,0 +1,5 @@ + + +credit-card + + diff --git a/webapp/assets/_new/icons/svgs/crop.svg b/webapp/assets/_new/icons/svgs/crop.svg new file mode 100755 index 000000000..069de9d1e --- /dev/null +++ b/webapp/assets/_new/icons/svgs/crop.svg @@ -0,0 +1,5 @@ + + +crop + + diff --git a/webapp/assets/_new/icons/svgs/crosshairs.svg b/webapp/assets/_new/icons/svgs/crosshairs.svg new file mode 100755 index 000000000..6d8b9aa04 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/crosshairs.svg @@ -0,0 +1,5 @@ + + +crosshairs + + diff --git a/webapp/assets/_new/icons/svgs/cube.svg b/webapp/assets/_new/icons/svgs/cube.svg new file mode 100755 index 000000000..97fbdf121 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/cube.svg @@ -0,0 +1,5 @@ + + +cube + + diff --git a/webapp/assets/_new/icons/svgs/cubes.svg b/webapp/assets/_new/icons/svgs/cubes.svg new file mode 100755 index 000000000..aeb3d66d1 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/cubes.svg @@ -0,0 +1,5 @@ + + +cubes + + diff --git a/webapp/assets/_new/icons/svgs/cut.svg b/webapp/assets/_new/icons/svgs/cut.svg new file mode 100755 index 000000000..f04b85c3b --- /dev/null +++ b/webapp/assets/_new/icons/svgs/cut.svg @@ -0,0 +1,5 @@ + + +cut + + diff --git a/webapp/assets/_new/icons/svgs/dashboard.svg b/webapp/assets/_new/icons/svgs/dashboard.svg new file mode 100755 index 000000000..74358fd41 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/dashboard.svg @@ -0,0 +1,5 @@ + + +dashboard + + diff --git a/webapp/assets/_new/icons/svgs/diamond.svg b/webapp/assets/_new/icons/svgs/diamond.svg new file mode 100755 index 000000000..5cad085d9 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/diamond.svg @@ -0,0 +1,5 @@ + + +diamond + + diff --git a/webapp/assets/_new/icons/svgs/exchange.svg b/webapp/assets/_new/icons/svgs/exchange.svg new file mode 100755 index 000000000..fc8bfaa48 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/exchange.svg @@ -0,0 +1,5 @@ + + +exchange + + diff --git a/webapp/assets/_new/icons/svgs/exclamation-triangle.svg b/webapp/assets/_new/icons/svgs/exclamation-triangle.svg new file mode 100755 index 000000000..aa2f7bbac --- /dev/null +++ b/webapp/assets/_new/icons/svgs/exclamation-triangle.svg @@ -0,0 +1,5 @@ + + +exclamation-triangle + + diff --git a/webapp/assets/_new/icons/svgs/expand.svg b/webapp/assets/_new/icons/svgs/expand.svg new file mode 100755 index 000000000..dc21a7e24 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/expand.svg @@ -0,0 +1,5 @@ + + +expand + + diff --git a/webapp/assets/_new/icons/svgs/external-link.svg b/webapp/assets/_new/icons/svgs/external-link.svg new file mode 100755 index 000000000..3d7f95574 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/external-link.svg @@ -0,0 +1,5 @@ + + +external-link + + diff --git a/webapp/assets/_new/icons/svgs/eyedropper.svg b/webapp/assets/_new/icons/svgs/eyedropper.svg new file mode 100755 index 000000000..6cf4151ed --- /dev/null +++ b/webapp/assets/_new/icons/svgs/eyedropper.svg @@ -0,0 +1,5 @@ + + +eyedropper + + diff --git a/webapp/assets/_new/icons/svgs/facebook.svg b/webapp/assets/_new/icons/svgs/facebook.svg new file mode 100755 index 000000000..a9e41dfb3 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/facebook.svg @@ -0,0 +1,5 @@ + + +facebook + + diff --git a/webapp/assets/_new/icons/svgs/female.svg b/webapp/assets/_new/icons/svgs/female.svg new file mode 100755 index 000000000..2cbe5b470 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/female.svg @@ -0,0 +1,5 @@ + + +female + + diff --git a/webapp/assets/_new/icons/svgs/file-archive.svg b/webapp/assets/_new/icons/svgs/file-archive.svg new file mode 100755 index 000000000..94a1e7ab8 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-archive.svg @@ -0,0 +1,5 @@ + + +file-archive-o + + diff --git a/webapp/assets/_new/icons/svgs/file-audio.svg b/webapp/assets/_new/icons/svgs/file-audio.svg new file mode 100755 index 000000000..e253cbf94 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-audio.svg @@ -0,0 +1,5 @@ + + +file-audio-o + + diff --git a/webapp/assets/_new/icons/svgs/file-code.svg b/webapp/assets/_new/icons/svgs/file-code.svg new file mode 100755 index 000000000..c241a932b --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-code.svg @@ -0,0 +1,5 @@ + + +file-code-o + + diff --git a/webapp/assets/_new/icons/svgs/file-excel.svg b/webapp/assets/_new/icons/svgs/file-excel.svg new file mode 100755 index 000000000..77a7a73b0 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-excel.svg @@ -0,0 +1,5 @@ + + +file-excel-o + + diff --git a/webapp/assets/_new/icons/svgs/file-image.svg b/webapp/assets/_new/icons/svgs/file-image.svg new file mode 100755 index 000000000..ba296f51b --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-image.svg @@ -0,0 +1,5 @@ + + +file-image-o + + diff --git a/webapp/assets/_new/icons/svgs/file-movie.svg b/webapp/assets/_new/icons/svgs/file-movie.svg new file mode 100755 index 000000000..fd88fd23d --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-movie.svg @@ -0,0 +1,5 @@ + + +file-movie-o + + diff --git a/webapp/assets/_new/icons/svgs/file-pdf.svg b/webapp/assets/_new/icons/svgs/file-pdf.svg new file mode 100755 index 000000000..810128b55 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-pdf.svg @@ -0,0 +1,5 @@ + + +file-pdf-o + + diff --git a/webapp/assets/_new/icons/svgs/file-photo.svg b/webapp/assets/_new/icons/svgs/file-photo.svg new file mode 100755 index 000000000..c67616527 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-photo.svg @@ -0,0 +1,5 @@ + + +file-photo-o + + diff --git a/webapp/assets/_new/icons/svgs/file-picture.svg b/webapp/assets/_new/icons/svgs/file-picture.svg new file mode 100755 index 000000000..e16498317 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-picture.svg @@ -0,0 +1,5 @@ + + +file-picture-o + + diff --git a/webapp/assets/_new/icons/svgs/file-powerpoint.svg b/webapp/assets/_new/icons/svgs/file-powerpoint.svg new file mode 100755 index 000000000..8df8f896b --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-powerpoint.svg @@ -0,0 +1,5 @@ + + +file-powerpoint-o + + diff --git a/webapp/assets/_new/icons/svgs/file-sound.svg b/webapp/assets/_new/icons/svgs/file-sound.svg new file mode 100755 index 000000000..cb9b5dc76 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-sound.svg @@ -0,0 +1,5 @@ + + +file-sound-o + + diff --git a/webapp/assets/_new/icons/svgs/file-text.svg b/webapp/assets/_new/icons/svgs/file-text.svg new file mode 100755 index 000000000..38d75ef65 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-text.svg @@ -0,0 +1,5 @@ + + +file-text + + diff --git a/webapp/assets/_new/icons/svgs/file-video.svg b/webapp/assets/_new/icons/svgs/file-video.svg new file mode 100755 index 000000000..4a6db285b --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-video.svg @@ -0,0 +1,5 @@ + + +file-video-o + + diff --git a/webapp/assets/_new/icons/svgs/file-word.svg b/webapp/assets/_new/icons/svgs/file-word.svg new file mode 100755 index 000000000..c8447a696 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-word.svg @@ -0,0 +1,5 @@ + + +file-word-o + + diff --git a/webapp/assets/_new/icons/svgs/file-zip.svg b/webapp/assets/_new/icons/svgs/file-zip.svg new file mode 100755 index 000000000..c4eb66dd0 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/file-zip.svg @@ -0,0 +1,5 @@ + + +file-zip-o + + diff --git a/webapp/assets/_new/icons/svgs/files.svg b/webapp/assets/_new/icons/svgs/files.svg new file mode 100755 index 000000000..602a25658 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/files.svg @@ -0,0 +1,5 @@ + + +files-o + + diff --git a/webapp/assets/_new/icons/svgs/film.svg b/webapp/assets/_new/icons/svgs/film.svg new file mode 100755 index 000000000..2318d2f73 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/film.svg @@ -0,0 +1,5 @@ + + +film + + diff --git a/webapp/assets/_new/icons/svgs/fire.svg b/webapp/assets/_new/icons/svgs/fire.svg new file mode 100755 index 000000000..0d579c495 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/fire.svg @@ -0,0 +1,5 @@ + + +fire + + diff --git a/webapp/assets/_new/icons/svgs/flask.svg b/webapp/assets/_new/icons/svgs/flask.svg new file mode 100755 index 000000000..e1ca6bde6 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/flask.svg @@ -0,0 +1,5 @@ + + +flask + + diff --git a/webapp/assets/_new/icons/svgs/floppy.svg b/webapp/assets/_new/icons/svgs/floppy.svg new file mode 100755 index 000000000..f924d3bb5 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/floppy.svg @@ -0,0 +1,5 @@ + + +floppy-o + + diff --git a/webapp/assets/_new/icons/svgs/folder-open.svg b/webapp/assets/_new/icons/svgs/folder-open.svg new file mode 100755 index 000000000..63a941b71 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/folder-open.svg @@ -0,0 +1,5 @@ + + +folder-open + + diff --git a/webapp/assets/_new/icons/svgs/folder.svg b/webapp/assets/_new/icons/svgs/folder.svg new file mode 100755 index 000000000..287a37768 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/folder.svg @@ -0,0 +1,5 @@ + + +folder + + diff --git a/webapp/assets/_new/icons/svgs/frown.svg b/webapp/assets/_new/icons/svgs/frown.svg new file mode 100755 index 000000000..a03906c69 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/frown.svg @@ -0,0 +1,5 @@ + + +frown-o + + diff --git a/webapp/assets/_new/icons/svgs/gamepad.svg b/webapp/assets/_new/icons/svgs/gamepad.svg new file mode 100755 index 000000000..85a2b7434 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/gamepad.svg @@ -0,0 +1,5 @@ + + +gamepad + + diff --git a/webapp/assets/_new/icons/svgs/gear.svg b/webapp/assets/_new/icons/svgs/gear.svg new file mode 100755 index 000000000..f657c9494 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/gear.svg @@ -0,0 +1,5 @@ + + +gear + + diff --git a/webapp/assets/_new/icons/svgs/gears.svg b/webapp/assets/_new/icons/svgs/gears.svg new file mode 100755 index 000000000..f9727888d --- /dev/null +++ b/webapp/assets/_new/icons/svgs/gears.svg @@ -0,0 +1,5 @@ + + +gears + + diff --git a/webapp/assets/_new/icons/svgs/gift.svg b/webapp/assets/_new/icons/svgs/gift.svg new file mode 100755 index 000000000..355dc7b08 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/gift.svg @@ -0,0 +1,5 @@ + + +gift + + diff --git a/webapp/assets/_new/icons/svgs/github.svg b/webapp/assets/_new/icons/svgs/github.svg new file mode 100755 index 000000000..1d61e0788 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/github.svg @@ -0,0 +1,5 @@ + + +github + + diff --git a/webapp/assets/_new/icons/svgs/glass.svg b/webapp/assets/_new/icons/svgs/glass.svg new file mode 100755 index 000000000..c2a18e99f --- /dev/null +++ b/webapp/assets/_new/icons/svgs/glass.svg @@ -0,0 +1,5 @@ + + +glass + + diff --git a/webapp/assets/_new/icons/svgs/group.svg b/webapp/assets/_new/icons/svgs/group.svg new file mode 100755 index 000000000..efb1c6184 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/group.svg @@ -0,0 +1,5 @@ + + +group + + diff --git a/webapp/assets/_new/icons/svgs/hand-down.svg b/webapp/assets/_new/icons/svgs/hand-down.svg new file mode 100755 index 000000000..1a06a97fd --- /dev/null +++ b/webapp/assets/_new/icons/svgs/hand-down.svg @@ -0,0 +1,5 @@ + + +hand-o-down + + diff --git a/webapp/assets/_new/icons/svgs/hand-left.svg b/webapp/assets/_new/icons/svgs/hand-left.svg new file mode 100755 index 000000000..49fb68314 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/hand-left.svg @@ -0,0 +1,5 @@ + + +hand-o-left + + diff --git a/webapp/assets/_new/icons/svgs/hand-pointer.svg b/webapp/assets/_new/icons/svgs/hand-pointer.svg index bdd2c8fe0..e74339724 100644 --- a/webapp/assets/_new/icons/svgs/hand-pointer.svg +++ b/webapp/assets/_new/icons/svgs/hand-pointer.svg @@ -1,5 +1,5 @@ hand-pointer-o - + diff --git a/webapp/assets/_new/icons/svgs/hand-right.svg b/webapp/assets/_new/icons/svgs/hand-right.svg new file mode 100755 index 000000000..c165ea020 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/hand-right.svg @@ -0,0 +1,5 @@ + + +hand-o-right + + diff --git a/webapp/assets/_new/icons/svgs/hand-stop.svg b/webapp/assets/_new/icons/svgs/hand-stop.svg new file mode 100755 index 000000000..dbf393138 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/hand-stop.svg @@ -0,0 +1,5 @@ + + +hand-stop-o + + diff --git a/webapp/assets/_new/icons/svgs/hand-up.svg b/webapp/assets/_new/icons/svgs/hand-up.svg new file mode 100755 index 000000000..472c8435d --- /dev/null +++ b/webapp/assets/_new/icons/svgs/hand-up.svg @@ -0,0 +1,5 @@ + + +hand-o-up + + diff --git a/webapp/assets/_new/icons/svgs/headphones.svg b/webapp/assets/_new/icons/svgs/headphones.svg new file mode 100755 index 000000000..a197eca3a --- /dev/null +++ b/webapp/assets/_new/icons/svgs/headphones.svg @@ -0,0 +1,5 @@ + + +headphones + + diff --git a/webapp/assets/_new/icons/svgs/heart.svg b/webapp/assets/_new/icons/svgs/heart.svg new file mode 100755 index 000000000..64f1195b1 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/heart.svg @@ -0,0 +1,5 @@ + + +heart + + diff --git a/webapp/assets/_new/icons/svgs/history.svg b/webapp/assets/_new/icons/svgs/history.svg new file mode 100755 index 000000000..fd5fcc328 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/history.svg @@ -0,0 +1,5 @@ + + +history + + diff --git a/webapp/assets/_new/icons/svgs/hourglass.svg b/webapp/assets/_new/icons/svgs/hourglass.svg new file mode 100755 index 000000000..e5e5ea6a1 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/hourglass.svg @@ -0,0 +1,5 @@ + + +hourglass + + diff --git a/webapp/assets/_new/icons/svgs/inbox.svg b/webapp/assets/_new/icons/svgs/inbox.svg new file mode 100755 index 000000000..aba1d2eb0 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/inbox.svg @@ -0,0 +1,5 @@ + + +inbox + + diff --git a/webapp/assets/_new/icons/svgs/indent.svg b/webapp/assets/_new/icons/svgs/indent.svg new file mode 100755 index 000000000..35f087427 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/indent.svg @@ -0,0 +1,5 @@ + + +indent + + diff --git a/webapp/assets/_new/icons/svgs/info-circle.svg b/webapp/assets/_new/icons/svgs/info-circle.svg new file mode 100755 index 000000000..f971f5b3a --- /dev/null +++ b/webapp/assets/_new/icons/svgs/info-circle.svg @@ -0,0 +1,5 @@ + + +info-circle + + diff --git a/webapp/assets/_new/icons/svgs/keyboard.svg b/webapp/assets/_new/icons/svgs/keyboard.svg new file mode 100755 index 000000000..cf49166d4 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/keyboard.svg @@ -0,0 +1,5 @@ + + +keyboard-o + + diff --git a/webapp/assets/_new/icons/svgs/leaf.svg b/webapp/assets/_new/icons/svgs/leaf.svg new file mode 100755 index 000000000..52b1693ba --- /dev/null +++ b/webapp/assets/_new/icons/svgs/leaf.svg @@ -0,0 +1,5 @@ + + +leaf + + diff --git a/webapp/assets/_new/icons/svgs/level-up.svg b/webapp/assets/_new/icons/svgs/level-up.svg new file mode 100755 index 000000000..1c3c82192 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/level-up.svg @@ -0,0 +1,5 @@ + + +level-up + + diff --git a/webapp/assets/_new/icons/svgs/life-ring.svg b/webapp/assets/_new/icons/svgs/life-ring.svg new file mode 100755 index 000000000..64f4aa7e8 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/life-ring.svg @@ -0,0 +1,5 @@ + + +life-ring + + diff --git a/webapp/assets/_new/icons/svgs/list.svg b/webapp/assets/_new/icons/svgs/list.svg new file mode 100755 index 000000000..f07692281 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/list.svg @@ -0,0 +1,5 @@ + + +list + + diff --git a/webapp/assets/_new/icons/svgs/location-arrow.svg b/webapp/assets/_new/icons/svgs/location-arrow.svg new file mode 100755 index 000000000..942a37fa5 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/location-arrow.svg @@ -0,0 +1,5 @@ + + +location-arrow + + diff --git a/webapp/assets/_new/icons/svgs/magnet.svg b/webapp/assets/_new/icons/svgs/magnet.svg new file mode 100755 index 000000000..998495351 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/magnet.svg @@ -0,0 +1,5 @@ + + +magnet + + diff --git a/webapp/assets/_new/icons/svgs/male.svg b/webapp/assets/_new/icons/svgs/male.svg new file mode 100755 index 000000000..5c35184b4 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/male.svg @@ -0,0 +1,5 @@ + + +male + + diff --git a/webapp/assets/_new/icons/svgs/map-pin.svg b/webapp/assets/_new/icons/svgs/map-pin.svg new file mode 100755 index 000000000..dbba740b1 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/map-pin.svg @@ -0,0 +1,5 @@ + + +map-pin + + diff --git a/webapp/assets/_new/icons/svgs/map-signs.svg b/webapp/assets/_new/icons/svgs/map-signs.svg new file mode 100755 index 000000000..0d46cc195 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/map-signs.svg @@ -0,0 +1,5 @@ + + +map-signs + + diff --git a/webapp/assets/_new/icons/svgs/map.svg b/webapp/assets/_new/icons/svgs/map.svg new file mode 100755 index 000000000..157a29ea8 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/map.svg @@ -0,0 +1,5 @@ + + +map + + diff --git a/webapp/assets/_new/icons/svgs/microphone.svg b/webapp/assets/_new/icons/svgs/microphone.svg index 121342b70..9a051cebe 100644 --- a/webapp/assets/_new/icons/svgs/microphone.svg +++ b/webapp/assets/_new/icons/svgs/microphone.svg @@ -1,4 +1,3 @@ - microphone diff --git a/webapp/assets/_new/icons/svgs/mobile-phone.svg b/webapp/assets/_new/icons/svgs/mobile-phone.svg new file mode 100755 index 000000000..542ad25b8 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/mobile-phone.svg @@ -0,0 +1,5 @@ + + +mobile-phone + + diff --git a/webapp/assets/_new/icons/svgs/paperclip.svg b/webapp/assets/_new/icons/svgs/paperclip.svg new file mode 100755 index 000000000..099453e71 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/paperclip.svg @@ -0,0 +1,5 @@ + + +paperclip + + diff --git a/webapp/assets/_new/icons/svgs/paste.svg b/webapp/assets/_new/icons/svgs/paste.svg new file mode 100755 index 000000000..32084e808 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/paste.svg @@ -0,0 +1,5 @@ + + +paste + + diff --git a/webapp/assets/_new/icons/svgs/pause.svg b/webapp/assets/_new/icons/svgs/pause.svg new file mode 100755 index 000000000..ce3acef04 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/pause.svg @@ -0,0 +1,5 @@ + + +pause + + diff --git a/webapp/assets/_new/icons/svgs/pencil.svg b/webapp/assets/_new/icons/svgs/pencil.svg new file mode 100755 index 000000000..0c1b963f8 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/pencil.svg @@ -0,0 +1,5 @@ + + +pencil + + diff --git a/webapp/assets/_new/icons/svgs/phone.svg b/webapp/assets/_new/icons/svgs/phone.svg new file mode 100755 index 000000000..413c48f16 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/phone.svg @@ -0,0 +1,5 @@ + + +phone + + diff --git a/webapp/assets/_new/icons/svgs/photo.svg b/webapp/assets/_new/icons/svgs/photo.svg new file mode 100755 index 000000000..abc66b8f3 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/photo.svg @@ -0,0 +1,5 @@ + + +photo + + diff --git a/webapp/assets/_new/icons/svgs/pie-chart.svg b/webapp/assets/_new/icons/svgs/pie-chart.svg new file mode 100755 index 000000000..1d942226e --- /dev/null +++ b/webapp/assets/_new/icons/svgs/pie-chart.svg @@ -0,0 +1,5 @@ + + +pie-chart + + diff --git a/webapp/assets/_new/icons/svgs/play-circle.svg b/webapp/assets/_new/icons/svgs/play-circle.svg new file mode 100755 index 000000000..e8b842bf5 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/play-circle.svg @@ -0,0 +1,5 @@ + + +play-circle + + diff --git a/webapp/assets/_new/icons/svgs/play.svg b/webapp/assets/_new/icons/svgs/play.svg new file mode 100755 index 000000000..a0b1eafa2 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/play.svg @@ -0,0 +1,5 @@ + + +play + + diff --git a/webapp/assets/_new/icons/svgs/power-off.svg b/webapp/assets/_new/icons/svgs/power-off.svg new file mode 100755 index 000000000..7b362c167 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/power-off.svg @@ -0,0 +1,5 @@ + + +power-off + + diff --git a/webapp/assets/_new/icons/svgs/print.svg b/webapp/assets/_new/icons/svgs/print.svg new file mode 100755 index 000000000..a9fc409e2 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/print.svg @@ -0,0 +1,5 @@ + + +print + + diff --git a/webapp/assets/_new/icons/svgs/recycle.svg b/webapp/assets/_new/icons/svgs/recycle.svg new file mode 100755 index 000000000..9bbdb3ad3 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/recycle.svg @@ -0,0 +1,5 @@ + + +recycle + + diff --git a/webapp/assets/_new/icons/svgs/refresh.svg b/webapp/assets/_new/icons/svgs/refresh.svg new file mode 100755 index 000000000..1995ab604 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/refresh.svg @@ -0,0 +1,5 @@ + + +refresh + + diff --git a/webapp/assets/_new/icons/svgs/rocket.svg b/webapp/assets/_new/icons/svgs/rocket.svg new file mode 100755 index 000000000..f83674f15 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/rocket.svg @@ -0,0 +1,5 @@ + + +rocket + + diff --git a/webapp/assets/_new/icons/svgs/server.svg b/webapp/assets/_new/icons/svgs/server.svg new file mode 100755 index 000000000..fa00771ea --- /dev/null +++ b/webapp/assets/_new/icons/svgs/server.svg @@ -0,0 +1,5 @@ + + +server + + diff --git a/webapp/assets/_new/icons/svgs/share.svg b/webapp/assets/_new/icons/svgs/share.svg new file mode 100755 index 000000000..b2fee7622 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/share.svg @@ -0,0 +1,5 @@ + + +share + + diff --git a/webapp/assets/_new/icons/svgs/sort-alpha-asc.svg b/webapp/assets/_new/icons/svgs/sort-alpha-asc.svg new file mode 100755 index 000000000..f96023d0d --- /dev/null +++ b/webapp/assets/_new/icons/svgs/sort-alpha-asc.svg @@ -0,0 +1,5 @@ + + +sort-alpha-asc + + diff --git a/webapp/assets/_new/icons/svgs/sort-alpha-desc.svg b/webapp/assets/_new/icons/svgs/sort-alpha-desc.svg new file mode 100755 index 000000000..461e65611 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/sort-alpha-desc.svg @@ -0,0 +1,5 @@ + + +sort-alpha-desc + + diff --git a/webapp/assets/_new/icons/svgs/sort.svg b/webapp/assets/_new/icons/svgs/sort.svg new file mode 100755 index 000000000..d7fc07efd --- /dev/null +++ b/webapp/assets/_new/icons/svgs/sort.svg @@ -0,0 +1,5 @@ + + +sort + + diff --git a/webapp/assets/_new/icons/svgs/spinner.svg b/webapp/assets/_new/icons/svgs/spinner.svg new file mode 100755 index 000000000..b5d0cf71a --- /dev/null +++ b/webapp/assets/_new/icons/svgs/spinner.svg @@ -0,0 +1,5 @@ + + +spinner + + diff --git a/webapp/assets/_new/icons/svgs/star-half-o.svg b/webapp/assets/_new/icons/svgs/star-half-o.svg new file mode 100755 index 000000000..40070bbef --- /dev/null +++ b/webapp/assets/_new/icons/svgs/star-half-o.svg @@ -0,0 +1,5 @@ + + +star-half-o + + diff --git a/webapp/assets/_new/icons/svgs/star-o.svg b/webapp/assets/_new/icons/svgs/star-o.svg new file mode 100755 index 000000000..3bc7af681 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/star-o.svg @@ -0,0 +1,5 @@ + + +star-o + + diff --git a/webapp/assets/_new/icons/svgs/star.svg b/webapp/assets/_new/icons/svgs/star.svg new file mode 100755 index 000000000..5b4236991 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/star.svg @@ -0,0 +1,5 @@ + + +star + + diff --git a/webapp/assets/_new/icons/svgs/subscript.svg b/webapp/assets/_new/icons/svgs/subscript.svg new file mode 100755 index 000000000..07663bcc6 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/subscript.svg @@ -0,0 +1,5 @@ + + +subscript + + diff --git a/webapp/assets/_new/icons/svgs/sun.svg b/webapp/assets/_new/icons/svgs/sun.svg new file mode 100755 index 000000000..bddbcebcc --- /dev/null +++ b/webapp/assets/_new/icons/svgs/sun.svg @@ -0,0 +1,5 @@ + + +sun-o + + diff --git a/webapp/assets/_new/icons/svgs/superscript.svg b/webapp/assets/_new/icons/svgs/superscript.svg new file mode 100755 index 000000000..08938a2b5 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/superscript.svg @@ -0,0 +1,5 @@ + + +superscript + + diff --git a/webapp/assets/_new/icons/svgs/table.svg b/webapp/assets/_new/icons/svgs/table.svg new file mode 100755 index 000000000..bdb7c8e7b --- /dev/null +++ b/webapp/assets/_new/icons/svgs/table.svg @@ -0,0 +1,5 @@ + + +table + + diff --git a/webapp/assets/_new/icons/svgs/tablet.svg b/webapp/assets/_new/icons/svgs/tablet.svg new file mode 100755 index 000000000..7142d4644 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/tablet.svg @@ -0,0 +1,5 @@ + + +tablet + + diff --git a/webapp/assets/_new/icons/svgs/tag.svg b/webapp/assets/_new/icons/svgs/tag.svg new file mode 100755 index 000000000..875a3be33 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/tag.svg @@ -0,0 +1,5 @@ + + +tag + + diff --git a/webapp/assets/_new/icons/svgs/tags.svg b/webapp/assets/_new/icons/svgs/tags.svg new file mode 100755 index 000000000..f248cc080 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/tags.svg @@ -0,0 +1,5 @@ + + +tags + + diff --git a/webapp/assets/_new/icons/svgs/terminal.svg b/webapp/assets/_new/icons/svgs/terminal.svg new file mode 100755 index 000000000..9f336dc12 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/terminal.svg @@ -0,0 +1,5 @@ + + +terminal + + diff --git a/webapp/assets/_new/icons/svgs/ticket.svg b/webapp/assets/_new/icons/svgs/ticket.svg new file mode 100755 index 000000000..5e7cfb92c --- /dev/null +++ b/webapp/assets/_new/icons/svgs/ticket.svg @@ -0,0 +1,5 @@ + + +ticket + + diff --git a/webapp/assets/_new/icons/svgs/toggle-off.svg b/webapp/assets/_new/icons/svgs/toggle-off.svg new file mode 100755 index 000000000..c69ce1b5f --- /dev/null +++ b/webapp/assets/_new/icons/svgs/toggle-off.svg @@ -0,0 +1,5 @@ + + +toggle-off + + diff --git a/webapp/assets/_new/icons/svgs/toggle-on.svg b/webapp/assets/_new/icons/svgs/toggle-on.svg new file mode 100755 index 000000000..280c7d249 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/toggle-on.svg @@ -0,0 +1,5 @@ + + +toggle-on + + diff --git a/webapp/assets/_new/icons/svgs/undo.svg b/webapp/assets/_new/icons/svgs/undo.svg new file mode 100755 index 000000000..707b60150 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/undo.svg @@ -0,0 +1,5 @@ + + +undo + + diff --git a/webapp/assets/_new/icons/svgs/upload.svg b/webapp/assets/_new/icons/svgs/upload.svg new file mode 100755 index 000000000..83dfe5bcf --- /dev/null +++ b/webapp/assets/_new/icons/svgs/upload.svg @@ -0,0 +1,5 @@ + + +upload + + diff --git a/webapp/assets/_new/icons/svgs/video-camera.svg b/webapp/assets/_new/icons/svgs/video-camera.svg new file mode 100755 index 000000000..b6a9cc0df --- /dev/null +++ b/webapp/assets/_new/icons/svgs/video-camera.svg @@ -0,0 +1,5 @@ + + +video-camera + + diff --git a/webapp/assets/_new/icons/svgs/volume-down.svg b/webapp/assets/_new/icons/svgs/volume-down.svg new file mode 100755 index 000000000..f8b25dc25 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/volume-down.svg @@ -0,0 +1,5 @@ + + +volume-down + + diff --git a/webapp/assets/_new/icons/svgs/volume-off.svg b/webapp/assets/_new/icons/svgs/volume-off.svg new file mode 100755 index 000000000..daaeb19f5 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/volume-off.svg @@ -0,0 +1,5 @@ + + +volume-off + + diff --git a/webapp/assets/_new/icons/svgs/volume-up.svg b/webapp/assets/_new/icons/svgs/volume-up.svg new file mode 100755 index 000000000..03816d0d3 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/volume-up.svg @@ -0,0 +1,5 @@ + + +volume-up + + diff --git a/webapp/assets/_new/icons/svgs/wheelchair.svg b/webapp/assets/_new/icons/svgs/wheelchair.svg new file mode 100755 index 000000000..3854969b8 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/wheelchair.svg @@ -0,0 +1,5 @@ + + +wheelchair + + diff --git a/webapp/assets/_new/icons/svgs/wifi.svg b/webapp/assets/_new/icons/svgs/wifi.svg new file mode 100755 index 000000000..0df70f686 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/wifi.svg @@ -0,0 +1,5 @@ + + +wifi + + diff --git a/webapp/assets/_new/icons/svgs/youtube-play.svg b/webapp/assets/_new/icons/svgs/youtube-play.svg new file mode 100755 index 000000000..80370a4e6 --- /dev/null +++ b/webapp/assets/_new/icons/svgs/youtube-play.svg @@ -0,0 +1,5 @@ + + +youtube-play + + diff --git a/webapp/assets/_new/styles/export.scss b/webapp/assets/_new/styles/export.scss index 5b866d6b7..e29c014e2 100644 --- a/webapp/assets/_new/styles/export.scss +++ b/webapp/assets/_new/styles/export.scss @@ -31,4 +31,7 @@ chatMessageTimestamp: $chat-message-timestamp; chatMessageCheckmarkSeen: $chat-message-checkmark-seen; chatMessageCheckmark: $chat-message-checkmark; + + chatRoomBackgroundCounterBadge: $chat-room-background-counter-badge; + chatRoomColorCounterBadge: $chat-room-color-counter-badge; } \ No newline at end of file diff --git a/webapp/assets/_new/styles/tokens.scss b/webapp/assets/_new/styles/tokens.scss index ef5086240..dd3a042d1 100644 --- a/webapp/assets/_new/styles/tokens.scss +++ b/webapp/assets/_new/styles/tokens.scss @@ -420,3 +420,5 @@ $chat-new-message-color: $color-secondary-active; $chat-message-timestamp: $text-color-soft; $chat-message-checkmark-seen: $text-color-secondary; $chat-message-checkmark: $text-color-soft; +$chat-room-color-counter-badge: $text-color-inverse; +$chat-room-background-counter-badge: $color-secondary; diff --git a/webapp/components/Chat/AddChatRoomByUserSearch.vue b/webapp/components/Chat/AddChatRoomByUserSearch.vue new file mode 100644 index 000000000..8ab21f06f --- /dev/null +++ b/webapp/components/Chat/AddChatRoomByUserSearch.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index 63cf045e8..c2e767272 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -4,7 +4,7 @@ -
-
- -
+
+ + + + + + + +
+ + + +
+
+
@@ -89,11 +110,6 @@ export default { data() { return { menuActions: [ - // NOTE: if menuActions is empty, the related slot is not shown - { - name: 'dummyItem', - title: 'Just a dummy item', - }, /* { name: 'inviteUser', @@ -159,22 +175,7 @@ export default { }, mounted() { if (this.singleRoom) { - this.$apollo - .mutate({ - mutation: createRoom(), - variables: { - userId: this.roomId, - }, - }) - .then(({ data: { CreateRoom } }) => { - this.fetchRooms({ room: CreateRoom }) - }) - .catch((error) => { - this.$toast.error(error) - }) - .finally(() => { - // this.loading = false - }) + this.newRoom(this.roomId) } else { this.fetchRooms() } @@ -182,9 +183,6 @@ export default { // Subscriptions const observer = this.$apollo.subscribe({ query: chatMessageAdded(), - variables: { - userId: this.currentUser.id, - }, }) observer.subscribe({ @@ -197,10 +195,24 @@ export default { computed: { ...mapGetters({ currentUser: 'auth/user', + getStoreRoomId: 'chat/roomID', }), computedChatStyle() { return chatStyle.STYLE.light }, + computedRoomId() { + let roomId = null + + if (!this.singleRoom) { + roomId = this.roomId + + if (this.getStoreRoomId.roomId) { + roomId = this.getStoreRoomId.roomId + } + } + + return roomId + }, textMessages() { return { ROOMS_EMPTY: this.$t('chat.roomsEmpty'), @@ -221,10 +233,12 @@ export default { methods: { ...mapMutations({ commitUnreadRoomCount: 'chat/UPDATE_ROOM_COUNT', + commitRoomIdFromSingleRoom: 'chat/UPDATE_ROOM_ID', }), - async fetchRooms({ room, options = {} } = {}) { - this.roomsLoaded = options.refetch ? this.roomsLoaded : false - const offset = (options.refetch ? 0 : this.roomPage) * this.roomPageSize + + async fetchRooms({ room } = {}) { + this.roomsLoaded = false + const offset = this.roomPage * this.roomPageSize try { const { data: { Room }, @@ -242,17 +256,7 @@ export default { const rmsIds = [] ;[...Room, ...this.rooms].forEach((r) => { if (!rmsIds.find((v) => v === r.id)) { - rms.push({ - ...r, - index: r.lastMessage?.date, - lastMessage: { - ...r.lastMessage, - content: r.lastMessage?.content.trim().substring(0, 30), - }, - users: r.users.map((u) => { - return { ...u, username: u.name, avatar: u.avatar?.url } - }), - }) + rms.push(this.fixRoomObject(r)) rmsIds.push(r.id) } }) @@ -262,6 +266,13 @@ export default { this.roomsLoaded = true } this.roomPage += 1 + + if (this.singleRoom && this.rooms.length > 0) { + this.commitRoomIdFromSingleRoom(this.rooms[0].roomId) + } else if (this.getStoreRoomId.roomId) { + // reset store room id + this.commitRoomIdFromSingleRoom(null) + } } catch (error) { this.rooms = [] this.$toast.error(error.message) @@ -366,6 +377,10 @@ export default { const changedRoom = { ...this.rooms[roomIndex] } changedRoom.lastMessage = createdMessage changedRoom.lastMessage.content = changedRoom.lastMessage.content.trim().substring(0, 30) + // move current room to top (not 100% working) + // const rooms = [...this.rooms] + // rooms.splice(roomIndex,1) + // this.rooms = [changedRoom, ...rooms] this.rooms[roomIndex] = changedRoom } catch (error) { this.$toast.error(error.message) @@ -380,6 +395,58 @@ export default { if (!fullname) return return fullname.match(/\b\w/g).join('').substring(0, 3).toUpperCase() }, + + toggleUserSearch() { + this.$emit('toggle-user-search') + }, + + fixRoomObject(room) { + // This fixes the room object which arrives from the backend + const fixedRoom = { + ...room, + index: room.lastMessage ? room.lastMessage.date : room.createdAt, + lastMessage: room.lastMessage + ? { + ...room.lastMessage, + content: room.lastMessage?.content?.trim().substring(0, 30), + } + : null, + users: room.users.map((u) => { + return { ...u, username: u.name, avatar: u.avatar?.url } + }), + } + if (!fixedRoom.avatar) { + // as long as we cannot query avatar on CreateRoom + fixedRoom.avatar = fixedRoom.users.find((u) => u.id !== this.currentUser.id).avatar + } + return fixedRoom + }, + + newRoom(userId) { + this.$apollo + .mutate({ + mutation: createRoom(), + variables: { + userId, + }, + }) + .then(({ data: { CreateRoom } }) => { + const roomIndex = this.rooms.findIndex((r) => r.id === CreateRoom.roomId) + const room = this.fixRoomObject(CreateRoom) + + if (roomIndex === -1) { + this.rooms = [room, ...this.rooms] + } + this.fetchMessages({ room, options: { refetch: true } }) + this.$emit('show-chat', CreateRoom.id) + }) + .catch((error) => { + this.$toast.error(error.message) + }) + .finally(() => { + // this.loading = false + }) + }, }, } @@ -408,4 +475,8 @@ body { transform: translate(-50%, -50%); } } + +.ds-flex-item.single-chat-bubble { + margin-right: 1em; +} diff --git a/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue b/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue index ec3f9fbc7..dd36b965a 100644 --- a/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue +++ b/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue @@ -44,11 +44,6 @@ export default { }, subscribeToMore: { document: roomCountUpdated(), - variables() { - return { - userId: this.user.id, - } - }, updateQuery: (previousResult, { subscriptionData }) => { return { UnreadRooms: subscriptionData.data.roomCountUpdated } }, diff --git a/webapp/components/CommentForm/CommentForm.vue b/webapp/components/CommentForm/CommentForm.vue index 5f6a2420d..6d9b59de6 100644 --- a/webapp/components/CommentForm/CommentForm.vue +++ b/webapp/components/CommentForm/CommentForm.vue @@ -8,7 +8,6 @@ :disabled="disabled && !update" @click="handleCancel" data-test="cancel-button" - danger > {{ $t('actions.cancel') }} diff --git a/webapp/components/ContentMenu/GroupContentMenu.vue b/webapp/components/ContentMenu/GroupContentMenu.vue index 7a7737320..1ca1b5b33 100644 --- a/webapp/components/ContentMenu/GroupContentMenu.vue +++ b/webapp/components/ContentMenu/GroupContentMenu.vue @@ -58,14 +58,14 @@ export default { routes.push({ label: this.$t('group.contentMenu.visitGroupPage'), icon: 'home', - name: 'group-id-slug', + path: `/groups/${this.group.id}`, params: { id: this.group.id, slug: this.group.slug }, }) } if (this.group.myRole === 'owner') { routes.push({ label: this.$t('admin.settings.name'), - path: `/group/edit/${this.group.id}`, + path: `/groups/edit/${this.group.id}`, icon: 'edit', }) } diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 0067dab72..0a5eba0cd 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -1,190 +1,190 @@ + diff --git a/webapp/store/chat.js b/webapp/store/chat.js index ed6b5256c..1e0b496ac 100644 --- a/webapp/store/chat.js +++ b/webapp/store/chat.js @@ -14,6 +14,9 @@ export const mutations = { UPDATE_ROOM_COUNT(state, count) { state.unreadRoomCount = count }, + UPDATE_ROOM_ID(state, roomid) { + state.roomId = roomid || null + }, } export const getters = {