From 6b03a69db9fd1fd03384fd37b4aeb8359d865eed Mon Sep 17 00:00:00 2001 From: Donely Gunn <32291941+itsMikeLowrey@users.noreply.github.com> Date: Wed, 14 Jun 2023 23:38:43 -0700 Subject: [PATCH] push image update --- .gitignore | 3 +- package.json | 1 + src/views/login.vue | 14 +- yarn.lock | 6887 ++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 6739 insertions(+), 166 deletions(-) diff --git a/.gitignore b/.gitignore index bfe353b..3deefc4 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,5 @@ dist-ssr *.sw? .env -.netlify/ \ No newline at end of file +.netlify/ +netlify/functions/getAll.js \ No newline at end of file diff --git a/package.json b/package.json index 6d2b7a6..7462401 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "libsodium-wrappers": "^0.7.11", "mailgun.js": "^9.0.1", "mongodb": "^5.6.0", + "netlify-cli": "^15.6.0", "vue": "^3.2.47", "vue-router": "4" }, diff --git a/src/views/login.vue b/src/views/login.vue index 3c92768..90d462d 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -93,6 +93,12 @@ function localTime(epoch) { var strTime = hours + ':' + minutes + ' ' + ampm + ' ' + day + '/' + month return strTime; } +function getChatImage(sender) { + if (sender !== 'dgoon') { + return 'https://res.cloudinary.com/dylevfpbl/image/upload/v1686024666/landingpage/avatars/man_2.svg' + } + return 'https://res.cloudinary.com/dylevfpbl/image/upload/v1686024702/landingpage/avatars/boy.svg' +} onMounted(() => { const routeInfo = router.currentRoute.value const routeName = routeInfo.name @@ -159,15 +165,15 @@ onMounted(() => { 'chat-end': message.sender !== 'dgoon' }">