From e5a969b3f79677c1b40414607906a2265adbe85f Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 8 Sep 2022 17:05:16 +0200 Subject: [PATCH] group settings add sidemenu --- .../CategoriesSelect/CategoriesSelect.vue | 1 - .../CommentCard/CommentCard.story.js | 3 +- webapp/components/DeleteData/DeleteData.vue | 2 +- webapp/components/Editor/Editor.story.js | 3 +- webapp/components/Editor/nodes/Embed.spec.js | 3 +- .../components/Embed/EmbedComponent.spec.js | 3 +- webapp/components/Emotions/Emotions.vue | 2 +- webapp/components/Group/GroupCard.vue | 61 +++++++++---- webapp/components/Group/GroupForm.vue | 27 ++++-- webapp/components/Group/GroupLink.vue | 15 ++++ webapp/components/Group/GroupList.vue | 72 ---------------- webapp/components/Group/GroupMember.vue | 9 -- .../components/LocaleSwitch/LocaleSwitch.vue | 2 +- webapp/components/Modal/DeleteUserModal.vue | 2 +- webapp/components/Modal/DisableModal.vue | 2 +- webapp/components/Password/Change.vue | 2 +- .../PasswordReset/ChangePassword.vue | 2 +- webapp/components/PasswordReset/Request.vue | 2 +- .../components/PostTeaser/PostTeaser.story.js | 3 +- .../Registration/RegistrationSlideEmail.vue | 7 +- .../Registration/RegistrationSlideInvite.vue | 2 +- .../Registration/RegistrationSlideNonce.vue | 2 +- webapp/components/Registration/Signup.vue | 2 +- .../components/ReleaseModal/ReleaseModal.vue | 2 +- .../SearchableInput/SearchableInput.story.js | 12 ++- webapp/graphql/CommentMutations.js | 4 +- webapp/graphql/Donations.js | 2 +- webapp/graphql/EmailAddress.js | 4 +- webapp/graphql/EmbedQuery.js | 2 +- webapp/graphql/Moderation.js | 6 +- webapp/graphql/PostMutations.js | 16 ++-- webapp/graphql/Registration.js | 2 +- webapp/graphql/Search.js | 8 +- webapp/graphql/User.js | 14 +-- webapp/graphql/admin/Roles.js | 2 +- webapp/graphql/groups.js | 12 +-- webapp/graphql/location.js | 2 +- webapp/graphql/settings/BlockedUsers.js | 4 +- webapp/graphql/settings/MutedUsers.js | 4 +- webapp/pages/admin/users.vue | 2 +- webapp/pages/group/_id.vue | 4 +- webapp/pages/group/create.vue | 11 +-- webapp/pages/group/edit/_id.vue | 86 +++++++++++-------- webapp/pages/group/my-groups.vue | 11 --- webapp/pages/post/_id.vue | 4 +- webapp/pages/profile/_id.vue | 4 +- webapp/pages/settings/my-social-media.vue | 6 +- 47 files changed, 213 insertions(+), 240 deletions(-) create mode 100644 webapp/components/Group/GroupLink.vue delete mode 100644 webapp/components/Group/GroupList.vue diff --git a/webapp/components/CategoriesSelect/CategoriesSelect.vue b/webapp/components/CategoriesSelect/CategoriesSelect.vue index 1fb95a8db..b7d71de2d 100644 --- a/webapp/components/CategoriesSelect/CategoriesSelect.vue +++ b/webapp/components/CategoriesSelect/CategoriesSelect.vue @@ -46,7 +46,6 @@ export default { }, methods: { toggleCategory(id) { - console.log('toggleCategory', id) this.selectedCategoryIds = xor(this.selectedCategoryIds, [id]) if (this.$parentForm) { this.$parentForm.update(this.model, this.selectedCategoryIds) diff --git a/webapp/components/CommentCard/CommentCard.story.js b/webapp/components/CommentCard/CommentCard.story.js index 75078657e..467a125d5 100644 --- a/webapp/components/CommentCard/CommentCard.story.js +++ b/webapp/components/CommentCard/CommentCard.story.js @@ -18,7 +18,8 @@ const comment = { author: { id: '1', avatar: { - url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg', + url: + 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg', }, slug: 'jenny-rostock', name: 'Rainer Unsinn', diff --git a/webapp/components/DeleteData/DeleteData.vue b/webapp/components/DeleteData/DeleteData.vue index a0cdcf29b..21b842fe6 100644 --- a/webapp/components/DeleteData/DeleteData.vue +++ b/webapp/components/DeleteData/DeleteData.vue @@ -103,7 +103,7 @@ export default { this.$apollo .mutate({ mutation: gql` - mutation ($id: ID!, $resource: [Deletable]) { + mutation($id: ID!, $resource: [Deletable]) { DeleteUser(id: $id, resource: $resource) { id } diff --git a/webapp/components/Editor/Editor.story.js b/webapp/components/Editor/Editor.story.js index 6e38eab7f..dfcc3cdf4 100644 --- a/webapp/components/Editor/Editor.story.js +++ b/webapp/components/Editor/Editor.story.js @@ -9,7 +9,8 @@ const embed = { title: 'Video Titel', // html: null, description: 'Video Description', - html: '', + html: + '', } const plugins = [ diff --git a/webapp/components/Editor/nodes/Embed.spec.js b/webapp/components/Editor/nodes/Embed.spec.js index 372b189f9..e87ee1570 100644 --- a/webapp/components/Editor/nodes/Embed.spec.js +++ b/webapp/components/Editor/nodes/Embed.spec.js @@ -33,7 +33,8 @@ describe('Embed.vue', () => { video: null, lang: 'de', sources: ['resource', 'oembed'], - html: '', + html: + '', }), } }) diff --git a/webapp/components/Embed/EmbedComponent.spec.js b/webapp/components/Embed/EmbedComponent.spec.js index cd3526368..fd7452c01 100644 --- a/webapp/components/Embed/EmbedComponent.spec.js +++ b/webapp/components/Embed/EmbedComponent.spec.js @@ -114,7 +114,8 @@ describe('EmbedComponent.vue', () => { video: null, lang: 'de', sources: ['resource', 'oembed'], - html: '', + html: + '', } wrapper = Wrapper() }) diff --git a/webapp/components/Emotions/Emotions.vue b/webapp/components/Emotions/Emotions.vue index b4dc14a61..e75c8848d 100644 --- a/webapp/components/Emotions/Emotions.vue +++ b/webapp/components/Emotions/Emotions.vue @@ -83,7 +83,7 @@ export default { this.$apollo .query({ query: gql` - query ($postId: ID!, $data: _EMOTEDInput!) { + query($postId: ID!, $data: _EMOTEDInput!) { PostsEmotionsCountByEmotion(postId: $postId, data: $data) } `, diff --git a/webapp/components/Group/GroupCard.vue b/webapp/components/Group/GroupCard.vue index b3463fa21..f5a4970fa 100644 --- a/webapp/components/Group/GroupCard.vue +++ b/webapp/components/Group/GroupCard.vue @@ -1,24 +1,39 @@ @@ -27,15 +42,23 @@ export default { name: 'GroupList', props: { items: { type: Array, default: () => [] }, - responseGroupListQuery: { type: Array, default: () => [] }, }, methods: { + removePending() { + alert('removePending group') + }, + editGroup(item) { + this.$router.push({ path: `/group/edit/${item.id}` }) + }, deleteGroup() { alert('delete group') }, unfollowGroup() { alert('unfollow group') }, + addMemeberToGroup() { + alert('addMemeberToGroup group') + }, }, } diff --git a/webapp/components/Group/GroupForm.vue b/webapp/components/Group/GroupForm.vue index c5d997920..1b2d2037f 100644 --- a/webapp/components/Group/GroupForm.vue +++ b/webapp/components/Group/GroupForm.vue @@ -1,9 +1,6 @@ + diff --git a/webapp/components/Group/GroupList.vue b/webapp/components/Group/GroupList.vue deleted file mode 100644 index 37b365b86..000000000 --- a/webapp/components/Group/GroupList.vue +++ /dev/null @@ -1,72 +0,0 @@ - - diff --git a/webapp/components/Group/GroupMember.vue b/webapp/components/Group/GroupMember.vue index 16f4ebecf..64edae6a3 100644 --- a/webapp/components/Group/GroupMember.vue +++ b/webapp/components/Group/GroupMember.vue @@ -1,14 +1,5 @@