From f0253075d850f77fc05daeb454afe8984e31af87 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 16 Mar 2020 19:58:40 +0200 Subject: [PATCH] Create an event bus --- client/components/App.vue | 7 +++-- client/components/ChannelWrapper.vue | 3 +- client/components/Chat.vue | 5 ++-- client/components/ChatInput.vue | 5 ++-- client/components/ConfirmDialog.vue | 10 ++++--- client/components/ContextMenu.vue | 13 +++++---- client/components/DateMarker.vue | 7 +++-- client/components/ImageViewer.vue | 9 +++--- client/components/LinkPreview.vue | 5 ++-- client/components/Mentions.vue | 5 ++-- client/components/MessageList.vue | 5 ++-- client/components/Username.vue | 3 +- client/js/eventbus.js | 43 ++++++++++++++++++++++++++++ client/js/helpers/contextMenu.js | 3 +- client/js/vue.js | 9 +++--- 15 files changed, 95 insertions(+), 37 deletions(-) create mode 100644 client/js/eventbus.js diff --git a/client/components/App.vue b/client/components/App.vue index b4e8c023..b136874f 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -13,6 +13,7 @@