From fbf45dab57663cb283f86bc57da4fec687e3e617 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 31 Mar 2024 01:18:19 +0800 Subject: [PATCH] :sparkles: Channels member manage --- .../chat/channels/ChannelAction.vue | 6 + .../chat/channels/ChannelInvitation.vue | 54 ++++++++ src/components/chat/channels/ChannelList.vue | 1 + .../chat/channels/ChannelMembers.vue | 124 ++++++++++++++++++ src/components/chat/channels/ChannelTools.vue | 4 + src/components/realms/RealmMembers.vue | 2 +- src/stores/channels.ts | 4 +- 7 files changed, 193 insertions(+), 2 deletions(-) create mode 100644 src/components/chat/channels/ChannelInvitation.vue create mode 100644 src/components/chat/channels/ChannelMembers.vue diff --git a/src/components/chat/channels/ChannelAction.vue b/src/components/chat/channels/ChannelAction.vue index 9808da7..d3e689e 100644 --- a/src/components/chat/channels/ChannelAction.vue +++ b/src/components/chat/channels/ChannelAction.vue @@ -7,6 +7,7 @@ + @@ -29,6 +30,11 @@ function editChannel() { channels.show.editor = true } +function manageChannel() { + channels.related.manage_to = props.item + channels.show.members = true +} + function deleteChannel() { channels.related.delete_to = props.item channels.show.delete = true diff --git a/src/components/chat/channels/ChannelInvitation.vue b/src/components/chat/channels/ChannelInvitation.vue new file mode 100644 index 0000000..cf38aa1 --- /dev/null +++ b/src/components/chat/channels/ChannelInvitation.vue @@ -0,0 +1,54 @@ + + + diff --git a/src/components/chat/channels/ChannelList.vue b/src/components/chat/channels/ChannelList.vue index 54e796a..e654705 100644 --- a/src/components/chat/channels/ChannelList.vue +++ b/src/components/chat/channels/ChannelList.vue @@ -36,6 +36,7 @@ const channels = useChannels() function createChannel() { channels.related.edit_to = null + channels.related.manage_to = null channels.related.delete_to = null channels.show.editor = true } diff --git a/src/components/chat/channels/ChannelMembers.vue b/src/components/chat/channels/ChannelMembers.vue new file mode 100644 index 0000000..467318a --- /dev/null +++ b/src/components/chat/channels/ChannelMembers.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/src/components/chat/channels/ChannelTools.vue b/src/components/chat/channels/ChannelTools.vue index d8f2724..578d92f 100644 --- a/src/components/chat/channels/ChannelTools.vue +++ b/src/components/chat/channels/ChannelTools.vue @@ -2,6 +2,9 @@ + + + @@ -10,6 +13,7 @@