From 7efe3debf404668487b8f0dda3d92b9ad27a2412 Mon Sep 17 00:00:00 2001 From: AlexHalb <46549413+AlexHalb@users.noreply.github.com> Date: Fri, 1 May 2020 17:40:24 -0500 Subject: [PATCH 001/223] Settings panel with ignored users list --- src/app/App.vue | 12 +++ src/app/components/Panes/SettingsPane.vue | 95 +++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 src/app/components/Panes/SettingsPane.vue diff --git a/src/app/App.vue b/src/app/App.vue index 6e420799..a123a57e 100644 --- a/src/app/App.vue +++ b/src/app/App.vue @@ -18,6 +18,11 @@ :name="`Online(${userCount})`" @input="activeTab = messageTabs.length" /> +
+
@@ -48,6 +54,7 @@ import ReportDialog from '@/components/ReportDialog.vue'; import MessagePane from '@/components/Panes/MessagePane.vue'; import UserPane from '@/components/Panes/UserPane.vue'; + import SettingsPane from '@/components/Panes/SettingsPane.vue'; @Component({ components: { @@ -57,6 +64,7 @@ ConnectingPopup, MessagePane, UserPane, + SettingsPane, }, }) export default class App extends Vue { @@ -89,6 +97,10 @@ return Object.keys(this.$vxm.chat.connectedUsers).length; } + get settingsPaneSelected() { + return this.activeTab === (this.messageTabs.length + 1); + } + postMessage(rawMessage: string, channel: string) { this.$vxm.chat.sendMessage({ rawMessage, channel }); } diff --git a/src/app/components/Panes/SettingsPane.vue b/src/app/components/Panes/SettingsPane.vue new file mode 100644 index 00000000..a608afa3 --- /dev/null +++ b/src/app/components/Panes/SettingsPane.vue @@ -0,0 +1,95 @@ + + + + From 8c73025dfa87431677be2ae9333268e761b85c38 Mon Sep 17 00:00:00 2001 From: AlexHalb <46549413+AlexHalb@users.noreply.github.com> Date: Fri, 1 May 2020 18:09:04 -0500 Subject: [PATCH 002/223] Put unignore buttons on settings tab for each ignored user. Also put an unignore all button that unignores everyone and disappears when no one is ignored --- src/app/components/Panes/SettingsPane.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/app/components/Panes/SettingsPane.vue b/src/app/components/Panes/SettingsPane.vue index a608afa3..44a30bea 100644 --- a/src/app/components/Panes/SettingsPane.vue +++ b/src/app/components/Panes/SettingsPane.vue @@ -8,7 +8,10 @@
  • {{ user }} +
  • +