From c167f3cdeda742dca17e2e547b8f85f675448b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Sat, 10 Sep 2022 12:49:42 +0200 Subject: [PATCH 01/23] Upgrade neode from v^0.4.7 to v^0.4.8 in main folder --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a36063f04..d7463adac 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "jsonwebtoken": "^8.5.1", "mock-socket": "^9.0.3", "neo4j-driver": "^4.3.4", - "neode": "^0.4.7", + "neode": "^0.4.8", "npm-run-all": "^4.1.5", "rosie": "^2.1.0", "slug": "^6.0.0" diff --git a/yarn.lock b/yarn.lock index 7b1c5eb79..6103f10a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4481,10 +4481,10 @@ neo4j-driver@^4.2.2, neo4j-driver@^4.3.4: neo4j-driver-core "^4.3.4" rxjs "^6.6.3" -neode@^0.4.7: - version "0.4.7" - resolved "https://registry.yarnpkg.com/neode/-/neode-0.4.7.tgz#033007b57a2ee167e9ee5537493086db08d005eb" - integrity sha512-YXlc187JRpeKCBcUIkY6nimXXG+Tvlopfe71/FPno2THrwmYt5mm0RPHZ+mXF2O1Xg6zvjKvOpCpDz2vHBfroQ== +neode@^0.4.8: + version "0.4.8" + resolved "https://registry.yarnpkg.com/neode/-/neode-0.4.8.tgz#0889b4fc7f1bf0b470b01fa5b8870373b5d47ad6" + integrity sha512-pb91NfCOg4Fj5o+98H+S2XYC+ByQfbdhwcc1UVuzuUQ0Ezzj+jWz8NmKWU8ZfCH6l4plk71yDAPd2eTwpt+Xvg== dependencies: "@hapi/joi" "^15.1.1" dotenv "^4.0.0" From ee026a3e1547a377403205873c7f02421b518bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Sat, 10 Sep 2022 13:16:34 +0200 Subject: [PATCH 02/23] Remove unused parameters in 'GroupMembers' query --- backend/src/db/graphql/groups.js | 4 ++-- webapp/graphql/groups.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/db/graphql/groups.js b/backend/src/db/graphql/groups.js index c5c6756ed..640a70009 100644 --- a/backend/src/db/graphql/groups.js +++ b/backend/src/db/graphql/groups.js @@ -149,8 +149,8 @@ export const groupQuery = gql` ` export const groupMembersQuery = gql` - query ($id: ID!, $first: Int, $offset: Int, $orderBy: [_UserOrdering], $filter: _UserFilter) { - GroupMembers(id: $id, first: $first, offset: $offset, orderBy: $orderBy, filter: $filter) { + query ($id: ID!) { + GroupMembers(id: $id) { id name slug diff --git a/webapp/graphql/groups.js b/webapp/graphql/groups.js index c5c6756ed..640a70009 100644 --- a/webapp/graphql/groups.js +++ b/webapp/graphql/groups.js @@ -149,8 +149,8 @@ export const groupQuery = gql` ` export const groupMembersQuery = gql` - query ($id: ID!, $first: Int, $offset: Int, $orderBy: [_UserOrdering], $filter: _UserFilter) { - GroupMembers(id: $id, first: $first, offset: $offset, orderBy: $orderBy, filter: $filter) { + query ($id: ID!) { + GroupMembers(id: $id) { id name slug From a9376cb9790d9a0b451047b6e1c36210d1afe830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 12 Sep 2022 07:32:18 +0200 Subject: [PATCH 03/23] Renamed folder 'FollowList' to 'ProfileList' --- .../features/{FollowList => ProfileList}/FollowList.spec.js | 0 .../features/{FollowList => ProfileList}/FollowList.story.js | 0 .../features/{FollowList => ProfileList}/FollowList.story.json | 0 .../features/{FollowList => ProfileList}/FollowList.vue | 0 webapp/pages/profile/_id/_slug.vue | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) rename webapp/components/features/{FollowList => ProfileList}/FollowList.spec.js (100%) rename webapp/components/features/{FollowList => ProfileList}/FollowList.story.js (100%) rename webapp/components/features/{FollowList => ProfileList}/FollowList.story.json (100%) rename webapp/components/features/{FollowList => ProfileList}/FollowList.vue (100%) diff --git a/webapp/components/features/FollowList/FollowList.spec.js b/webapp/components/features/ProfileList/FollowList.spec.js similarity index 100% rename from webapp/components/features/FollowList/FollowList.spec.js rename to webapp/components/features/ProfileList/FollowList.spec.js diff --git a/webapp/components/features/FollowList/FollowList.story.js b/webapp/components/features/ProfileList/FollowList.story.js similarity index 100% rename from webapp/components/features/FollowList/FollowList.story.js rename to webapp/components/features/ProfileList/FollowList.story.js diff --git a/webapp/components/features/FollowList/FollowList.story.json b/webapp/components/features/ProfileList/FollowList.story.json similarity index 100% rename from webapp/components/features/FollowList/FollowList.story.json rename to webapp/components/features/ProfileList/FollowList.story.json diff --git a/webapp/components/features/FollowList/FollowList.vue b/webapp/components/features/ProfileList/FollowList.vue similarity index 100% rename from webapp/components/features/FollowList/FollowList.vue rename to webapp/components/features/ProfileList/FollowList.vue diff --git a/webapp/pages/profile/_id/_slug.vue b/webapp/pages/profile/_id/_slug.vue index bfb7adf0d..c4945db45 100644 --- a/webapp/pages/profile/_id/_slug.vue +++ b/webapp/pages/profile/_id/_slug.vue @@ -175,7 +175,7 @@ import PostTeaser from '~/components/PostTeaser/PostTeaser.vue' import HcFollowButton from '~/components/FollowButton.vue' import HcCountTo from '~/components/CountTo.vue' import HcBadges from '~/components/Badges.vue' -import FollowList from '~/components/features/FollowList/FollowList' +import FollowList from '~/components/features/ProfileList/FollowList' import HcEmpty from '~/components/Empty/Empty' import ContentMenu from '~/components/ContentMenu/ContentMenu' import AvatarUploader from '~/components/Uploader/AvatarUploader' From b7be7018e885bcffbe806f9f6f78d9876b70456e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 12 Sep 2022 08:26:10 +0200 Subject: [PATCH 04/23] Move important parts of 'FollowList' to sub component 'ProfileList' --- .../features/ProfileList/FollowList.vue | 147 ++-------------- .../features/ProfileList/ProfileList.vue | 158 ++++++++++++++++++ 2 files changed, 169 insertions(+), 136 deletions(-) create mode 100644 webapp/components/features/ProfileList/ProfileList.vue diff --git a/webapp/components/features/ProfileList/FollowList.vue b/webapp/components/features/ProfileList/FollowList.vue index 114a610f1..635eccd5b 100644 --- a/webapp/components/features/ProfileList/FollowList.vue +++ b/webapp/components/features/ProfileList/FollowList.vue @@ -1,64 +1,28 @@ - - diff --git a/webapp/components/features/ProfileList/ProfileList.vue b/webapp/components/features/ProfileList/ProfileList.vue new file mode 100644 index 000000000..c619da8fc --- /dev/null +++ b/webapp/components/features/ProfileList/ProfileList.vue @@ -0,0 +1,158 @@ + + + + + From 9e544b0e64ed65959fb198ea6702327af2f9c3f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 12 Sep 2022 08:35:52 +0200 Subject: [PATCH 05/23] Rename props and classes in 'ProfileList' --- .../features/ProfileList/FollowList.vue | 6 ++--- .../features/ProfileList/ProfileList.vue | 24 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/webapp/components/features/ProfileList/FollowList.vue b/webapp/components/features/ProfileList/FollowList.vue index 635eccd5b..366c01be5 100644 --- a/webapp/components/features/ProfileList/FollowList.vue +++ b/webapp/components/features/ProfileList/FollowList.vue @@ -3,10 +3,10 @@ :uniqueName="`${type}Filter`" :title="$filters.truncate(userName, 15) + ' ' + $t(`profile.network.${type}`)" :titleNobody="$filters.truncate(userName, 15) + ' ' + $t(`profile.network.${type}Nobody`)" - :allConnectionsCount="allConnectionsCount" - :connections="connections" + :allProfilesCount="allConnectionsCount" + :profiles="connections" :loading="loading" - @fetchAllConnections="$emit('fetchAllConnections', type)" + @fetchAllProfiles="$emit('fetchAllConnections', type)" /> diff --git a/webapp/components/features/ProfileList/ProfileList.vue b/webapp/components/features/ProfileList/ProfileList.vue index c619da8fc..44de2eab5 100644 --- a/webapp/components/features/ProfileList/ProfileList.vue +++ b/webapp/components/features/ProfileList/ProfileList.vue @@ -1,6 +1,6 @@