From 66842ac1d85c9ec196a963819732472d0c31516e Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 5 Feb 2020 11:33:32 +0100 Subject: [PATCH] Add instruments to the my activity page --- .../components/profile/ContentBookmark.vue | 5 +- .../components/profile/InstrumentActivity.vue | 112 ++++++++++++++++++ client/src/graphql/gql/myActivity.gql | 24 ++++ client/src/pages/activity.vue | 17 +++ server/basicknowledge/queries.py | 1 - server/users/schema.py | 6 + 6 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 client/src/components/profile/InstrumentActivity.vue diff --git a/client/src/components/profile/ContentBookmark.vue b/client/src/components/profile/ContentBookmark.vue index fcc6a828..978670c2 100644 --- a/client/src/components/profile/ContentBookmark.vue +++ b/client/src/components/profile/ContentBookmark.vue @@ -12,12 +12,15 @@ + + diff --git a/client/src/graphql/gql/myActivity.gql b/client/src/graphql/gql/myActivity.gql index bfaa796b..46201edc 100644 --- a/client/src/graphql/gql/myActivity.gql +++ b/client/src/graphql/gql/myActivity.gql @@ -1,4 +1,28 @@ query MyActivityQuery { + myInstrumentActivity { + edges { + node { + id + title + contents + type + slug + bookmarks { + id + uuid + note { + id + text + } + instrument { + id + type + contents + } + } + } + } + } myActivity { edges { node { diff --git a/client/src/pages/activity.vue b/client/src/pages/activity.vue index 6a53f648..ca488882 100644 --- a/client/src/pages/activity.vue +++ b/client/src/pages/activity.vue @@ -13,17 +13,26 @@ :key="id" class="activity"> + + +