diff --git a/package-lock.json b/package-lock.json index 67a731a..55ea6ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3291,7 +3291,7 @@ }, "get-stream": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", "dev": true } @@ -3372,7 +3372,7 @@ "dependencies": { "globby": { "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "resolved": "http://registry.npmjs.org/globby/-/globby-6.1.0.tgz", "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", "dev": true, "requires": { @@ -3385,7 +3385,7 @@ "dependencies": { "pify": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true } @@ -5251,6 +5251,11 @@ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, + "futoji": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/futoji/-/futoji-0.2.0.tgz", + "integrity": "sha512-V3q7YwYGisBmr9J0/24yBafW4ClSjbLok/WztF/GtpfVO6K36DCyWMD++68TlyiDN5xxcA+LNue6Zo4iON2BRQ==" + }, "get-caller-file": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", @@ -5713,7 +5718,7 @@ }, "http-proxy-middleware": { "version": "0.18.0", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.18.0.tgz", + "resolved": "http://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.18.0.tgz", "integrity": "sha512-Fs25KVMPAIIcgjMZkVHJoKg9VcXcC1C8yb9JUgeDvVXY0S/zgVIhMb+qVswDIgtJe2DfckMSY2d6TuTEutlk6Q==", "dev": true, "requires": { @@ -7461,7 +7466,7 @@ }, "p-is-promise": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", "integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=", "dev": true }, @@ -10934,7 +10939,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { diff --git a/package.json b/package.json index 92d40f5..83da411 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "dependencies": { "@vue/eslint-plugin": "^4.2.0", "axios": "^0.18.0", + "futoji": "^0.2.0", "jquery": "^3.3.1", "socket.io": "^2.2.0", "socket.io-client": "^2.2.0", diff --git a/src/assets/sounds/FriendRequest.mp3 b/src/assets/sounds/FriendRequest.mp3 new file mode 100644 index 0000000..baf6a4a Binary files /dev/null and b/src/assets/sounds/FriendRequest.mp3 differ diff --git a/src/assets/sounds/Notification.mp3 b/src/assets/sounds/Notification.mp3 new file mode 100644 index 0000000..ab867ca Binary files /dev/null and b/src/assets/sounds/Notification.mp3 differ diff --git a/src/changelog.js b/src/changelog.js index 38584f5..853b6dc 100644 --- a/src/changelog.js +++ b/src/changelog.js @@ -1,4 +1,23 @@ const config = [ + { + title: 'Notifications are finally here!', + shortTitle: 'Notifications', + date: '18/02/2019', + new: [ + 'When you get a notification, you will now be notified by the red flashing Indicator.', + 'When you get a new friend request, you will notified by a sound.', + 'Added a new Recents tab to easily see who messaged you last.', + 'Adjusted the padding and size in some places such as the friends list.', + 'Messages can now be formated (e.g. **Hello**)' + ], + fix: [ + 'Performance improvements were made in some places.', + 'Yesterday is now spelt with a capital "Y" in the timestamp.' + ], + next: [ + 'Uploading images or any files.', + ] + }, { title: 'Typing Indicator', shortTitle: 'Typing Indicator', diff --git a/src/components/app/MessageTemplate.vue b/src/components/app/MessageTemplate.vue index 54d06b1..325c46b 100644 --- a/src/components/app/MessageTemplate.vue +++ b/src/components/app/MessageTemplate.vue @@ -9,7 +9,7 @@
{{this.$props.username}}
{{getDate}}
-
{{this.$props.message}}
+
{{statusMessage}}
@@ -17,11 +17,15 @@ diff --git a/src/components/app/relationships/FriendsTemplate.vue b/src/components/app/relationships/FriendsTemplate.vue index e6861cd..eced4ec 100644 --- a/src/components/app/relationships/FriendsTemplate.vue +++ b/src/components/app/relationships/FriendsTemplate.vue @@ -1,5 +1,5 @@