GithubHelp home page GithubHelp logo

sitronik / vue3-beautiful-chat Goto Github PK

View Code? Open in Web Editor NEW
87.0 87.0 25.0 1.09 MB

A simple and beautiful Vue 3 chat component backend agnostic, fully customisable and extendable.

License: MIT License

JavaScript 17.50% Vue 82.50%

vue3-beautiful-chat's People

Contributors

hognevevle avatar sitronik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue3-beautiful-chat's Issues

Cannot read properties of null (reading 'scrollHeight')

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.

Demo repository is dependent on index.js which is outside

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

Doesn't work in vite dev build

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

image

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)

How are messages accessed by multiple users?

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?

Breaks the v-menu from Vuetify

We use vue v3.3.4 with vuetify v3.3.16.
When we add your library to our application, we identified that our v-menu is broken.
Before adding the library, our v-menu looked like this. this
but now v-btn is missing and only partial v-list appearing like this

[Feature Request] Chat list for multiple chats support

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.

Doesn't work when included in nested component

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>

[v-slot] Problem with custom header

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.