From 1efcfda37d36a5cd6882170a9a11e6b2e5dc27b9 Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 9 Mar 2021 17:30:28 +0100 Subject: [PATCH] adapt TextCard to display Textprod objects --- src/App.vue | 4 ---- src/api/queries/TextCard.gql | 16 +++++++++++++++- src/components/text/TextCard.vue | 22 +++++++++++++++++----- src/pages/Library.vue | 18 ++++++------------ 4 files changed, 38 insertions(+), 22 deletions(-) diff --git a/src/App.vue b/src/App.vue index d7c3051..6238e36 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,10 +29,6 @@
- - diff --git a/src/api/queries/TextCard.gql b/src/api/queries/TextCard.gql index 617a935..5d51b19 100644 --- a/src/api/queries/TextCard.gql +++ b/src/api/queries/TextCard.gql @@ -25,7 +25,21 @@ query TextRef ($id: Int!) { # degres_detrangement: Int notes { note - numero + number: numero + } + } + + ... on Textprod { + tags: tagsprod { + id + name + } + notes { + note + number: numero + links: liens { + id + } } } } diff --git a/src/components/text/TextCard.vue b/src/components/text/TextCard.vue index fa76c91..932e11c 100644 --- a/src/components/text/TextCard.vue +++ b/src/components/text/TextCard.vue @@ -4,9 +4,14 @@

- {{ text.authors | list }}, - {{ text.title }}, - {{ text.edition }} + +

@@ -20,7 +25,7 @@
- + Textes rebonds - +
{{ bounce.authors | list }}, @@ -82,6 +90,10 @@ export default {