diff --git a/client/components/Chat.vue b/client/components/Chat.vue
index 7363ca5a..09332682 100644
--- a/client/components/Chat.vue
+++ b/client/components/Chat.vue
@@ -90,6 +90,7 @@ import MessageList from "./MessageList.vue";
import ChatInput from "./ChatInput.vue";
import ChatUserList from "./ChatUserList.vue";
import ListBans from "./Special/ListBans.vue";
+import ListChannels from "./Special/ListChannels.vue";
export default {
name: "Chat",
@@ -105,8 +106,9 @@ export default {
},
computed: {
specialComponent() {
- if (this.channel.special === "list_bans") {
- return ListBans;
+ switch (this.channel.special) {
+ case "list_bans": return ListBans;
+ case "list_channels": return ListChannels;
}
},
},
diff --git a/client/components/Special/ListChannels.vue b/client/components/Special/ListChannels.vue
new file mode 100644
index 00000000..1b182259
--- /dev/null
+++ b/client/components/Special/ListChannels.vue
@@ -0,0 +1,34 @@
+
+ {{channel.data.text}}
+
+
+
+
+
+
diff --git a/client/css/style.css b/client/css/style.css
index cbc72e55..4533db76 100644
--- a/client/css/style.css
+++ b/client/css/style.css
@@ -1200,16 +1200,6 @@ background on hover (unless active) */
color: var(--body-color-muted);
}
-#chat .special .time,
-#chat .special .from {
- display: none;
-}
-
-#chat .special .date-marker-container,
-#chat .special .unread-marker {
- display: none;
-}
-
#chat .special table th {
word-break: normal;
}
diff --git a/client/js/socket-events/index.js b/client/js/socket-events/index.js
index 508c4f5a..78ea469a 100644
--- a/client/js/socket-events/index.js
+++ b/client/js/socket-events/index.js
@@ -7,6 +7,7 @@ require("./join");
require("./more");
require("./msg");
require("./msg_preview");
+require("./msg_special");
require("./names");
require("./network");
require("./nick");
diff --git a/client/js/socket-events/msg_special.js b/client/js/socket-events/msg_special.js
index 27e9ebfc..d602e9b2 100644
--- a/client/js/socket-events/msg_special.js
+++ b/client/js/socket-events/msg_special.js
@@ -1,7 +1,8 @@
"use strict";
const socket = require("../socket");
+const {findChannel} = require("../vue");
socket.on("msg:special", function(data) {
- findChannel(data.chan).data = data.data;
+ findChannel(data.chan).channel.data = data.data;
});
diff --git a/client/views/user.tpl b/client/views/user.tpl
deleted file mode 100644
index b48da880..00000000
--- a/client/views/user.tpl
+++ /dev/null
@@ -1,13 +0,0 @@
-
-{{#diff "reset"}}{{/diff}}
-{{#each users}}
- {{#diff mode}}
- {{#unless @first}}
-
- {{/unless}}
-
+
+
+
+ Channel
+ Users
+ Topic
+
+
+
+
+ {{ chan.num_users }}
+
+