sitronik / vue3-beautiful-chat Goto Github PK
View Code? Open in Web Editor NEWA simple and beautiful Vue 3 chat component backend agnostic, fully customisable and extendable.
License: MIT License
A simple and beautiful Vue 3 chat component backend agnostic, fully customisable and extendable.
License: MIT License
A simple scenario - a simple app with two routes - one with the chat and another without it. When you leave the page with the chat component, it throws an error
Uncaught TypeError: Cannot read properties of null (reading 'scrollHeight')
at ResizeObserver.eval (vue3-beautiful-chat.umd.js:10:10950)
The ResizeObserver in https://github.com/Sitronik/vue3-beautiful-chat/blob/master/src/MessageList.vue#L132 is still there, while the $refs.scrollList is not.
Looks like ResizeObserver.disconnect() on unmount should solve the problem.
I m trying to create a project using the library generated "vue-beatiful-chat.css" and "vue3-beautiful-chat.umd.js" without the need to use other file but I didn't succeed,
Could you add an independant html page which use these libraries, and can create a chatbox once you call the tag
Hey, we love using the package and it works great when we build our Vue3 app statically and serve over nginx (eg for prod), but when we try to run it locally with a vite dev build we get the following error and the component does not resolve further in the DOM
This never used to be a problem, so it might be something to do with conflicting with a newer version of Vue (which we have no choice but to use due to other dependencies)
This is a superb component, demo works nicely, I am however struggling to get more than one user chatting to each other.
Messages are added to this.messageList in the method onMessageWasSent in App.vue but not saved to a database or JSON file.
How does another user join in the chat if the messages are not accessable from another browser session?
In your demo both the test area input form and the chat window are accessing the same variables so no need to store the messages. But how would you get mutliple users accessing the same conversation? I may have misinterperted how this works, if so apologies, but otherwise how would I achieve this?
Thank you so much for porting this to Vue 3!
I'd like to propose to pass the input value as a parameter to the onType
event. In our case, we want to push this to our backend.
This is simply amazing, thanks for this component, very well done!, I'd love to see a list of users to chat with, if you think that's interesting you might consider adding this in the next update, thanks in advance.
When I include beautiful-chat in a nested component the beautiful-chat isn't displayed.
Example:
Main Vue
<template>
<a />
</template>
A Source
<template>
<beautiful-chat.... />
</template>
Hi there,
Firstly I would like to thank you for all your hard work! Really appreciate it!
I notice a problem and would like to let you know.
【Problem】
Custom header is not overwriting default header in chat window.
【Possible cause】
Possible v-slot
tag missing in Header.vue
【Reference】
vue-beautiful-chat Header.vue
<template>
<div class="sc-header" :style="{background: colors.header.bg, color: colors.header.text}">
<slot>
<img v-if="titleImageUrl" class="sc-header--img" :src="titleImageUrl" alt="" />
<div v-if="!disableUserListToggle" class="sc-header--title enabled" @click="toggleUserList">
{{ title }}
</div>
<div v-else class="sc-header--title">{{ title }}</div>
</slot>
<div v-if="showCloseButton" class="sc-header--close-button" @click="$emit('close')">
<img :src="icons.close.img" :alt="icons.close.name" />
</div>
</div>
</template>
If you could confirm the above that'd be appreciated.
Thank you once again for your time and effort!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.