aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_panel/chat_panel.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2021-08-08 16:14:22 +0300
committerShpuld Shpuldson <shp@cock.li>2021-08-08 16:14:22 +0300
commitcc170aa3ecffa75004760fc6d02bd87373132f7d (patch)
tree7d187ff11219399318f7482e0bc032cb20d025b9 /src/components/chat_panel/chat_panel.js
parentc3fcbbd918ddef4e3f574a464fd10f4899bb2dce (diff)
parent425919a0d292b79869ebefd2a4d52ed4db45d319 (diff)
Update master with 2.4.0
Diffstat (limited to 'src/components/chat_panel/chat_panel.js')
-rw-r--r--src/components/chat_panel/chat_panel.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/components/chat_panel/chat_panel.js b/src/components/chat_panel/chat_panel.js
deleted file mode 100644
index c3887098..00000000
--- a/src/components/chat_panel/chat_panel.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
-import { library } from '@fortawesome/fontawesome-svg-core'
-import {
- faBullhorn,
- faTimes
-} from '@fortawesome/free-solid-svg-icons'
-
-library.add(
- faBullhorn,
- faTimes
-)
-
-const chatPanel = {
- props: [ 'floating' ],
- data () {
- return {
- currentMessage: '',
- channel: null,
- collapsed: true
- }
- },
- computed: {
- messages () {
- return this.$store.state.chat.messages
- }
- },
- methods: {
- submit (message) {
- this.$store.state.chat.channel.push('new_msg', { text: message }, 10000)
- this.currentMessage = ''
- },
- togglePanel () {
- this.collapsed = !this.collapsed
- },
- userProfileLink (user) {
- return generateProfileLink(user.id, user.username, this.$store.state.instance.restrictedNicknames)
- }
- }
-}
-
-export default chatPanel