From e60d88dcf0af12fcc8288c9a3ea7cea4ef34a644 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 6 May 2020 16:52:22 +0200 Subject: [PATCH 1/3] Replace old instrument overview with new one --- client/src/components/InstrumentTeaser.vue | 41 ------- .../book-navigation/BookNavigation.vue | 17 ++- .../book-navigation/ContentNavigation.vue | 103 ++++++++++++++++++ .../book-navigation/InstrumentNavigation.vue | 31 ------ .../book-navigation/MobileSubnavigation.vue | 11 +- client/src/components/inputs/BaseInput.vue | 6 +- .../instruments/InstrumentFilter.vue | 94 ++++++++++++++++ .../ObjectiveGroupControl.vue | 73 ------------- client/src/graphql/gql/instrumentsQuery.gql | 13 +++ client/src/pages/instrumentOverview.vue | 88 +++++++++------ client/src/router/index.js | 2 +- 11 files changed, 281 insertions(+), 198 deletions(-) delete mode 100644 client/src/components/InstrumentTeaser.vue create mode 100644 client/src/components/book-navigation/ContentNavigation.vue delete mode 100644 client/src/components/book-navigation/InstrumentNavigation.vue create mode 100644 client/src/components/instruments/InstrumentFilter.vue delete mode 100644 client/src/components/objective-groups/ObjectiveGroupControl.vue create mode 100644 client/src/graphql/gql/instrumentsQuery.gql diff --git a/client/src/components/InstrumentTeaser.vue b/client/src/components/InstrumentTeaser.vue deleted file mode 100644 index b63a1a6f..00000000 --- a/client/src/components/InstrumentTeaser.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/client/src/components/book-navigation/BookNavigation.vue b/client/src/components/book-navigation/BookNavigation.vue index 01ecfb0f..3d054695 100644 --- a/client/src/components/book-navigation/BookNavigation.vue +++ b/client/src/components/book-navigation/BookNavigation.vue @@ -3,13 +3,14 @@ - - - + + Instrumente + + - - - + + + @@ -17,13 +18,11 @@ diff --git a/client/src/components/book-navigation/ContentNavigation.vue b/client/src/components/book-navigation/ContentNavigation.vue new file mode 100644 index 00000000..28ccf46e --- /dev/null +++ b/client/src/components/book-navigation/ContentNavigation.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/client/src/components/book-navigation/InstrumentNavigation.vue b/client/src/components/book-navigation/InstrumentNavigation.vue deleted file mode 100644 index e46e2bb0..00000000 --- a/client/src/components/book-navigation/InstrumentNavigation.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/client/src/components/book-navigation/MobileSubnavigation.vue b/client/src/components/book-navigation/MobileSubnavigation.vue index 4ae72695..b865c392 100644 --- a/client/src/components/book-navigation/MobileSubnavigation.vue +++ b/client/src/components/book-navigation/MobileSubnavigation.vue @@ -6,8 +6,11 @@
-

Instrumente

- + + + Instrumente + +
@@ -15,12 +18,10 @@ diff --git a/client/src/components/inputs/BaseInput.vue b/client/src/components/inputs/BaseInput.vue index 6a5b8c7e..1c231125 100644 --- a/client/src/components/inputs/BaseInput.vue +++ b/client/src/components/inputs/BaseInput.vue @@ -3,9 +3,9 @@ - + diff --git a/client/src/components/instruments/InstrumentFilter.vue b/client/src/components/instruments/InstrumentFilter.vue new file mode 100644 index 00000000..acbf18bb --- /dev/null +++ b/client/src/components/instruments/InstrumentFilter.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/client/src/components/objective-groups/ObjectiveGroupControl.vue b/client/src/components/objective-groups/ObjectiveGroupControl.vue deleted file mode 100644 index 50fa615f..00000000 --- a/client/src/components/objective-groups/ObjectiveGroupControl.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - - diff --git a/client/src/graphql/gql/instrumentsQuery.gql b/client/src/graphql/gql/instrumentsQuery.gql new file mode 100644 index 00000000..bed2a520 --- /dev/null +++ b/client/src/graphql/gql/instrumentsQuery.gql @@ -0,0 +1,13 @@ +query InstrumentQuery { + instruments { + edges { + node { + id + title + contents + slug + type + } + } + } +} diff --git a/client/src/pages/instrumentOverview.vue b/client/src/pages/instrumentOverview.vue index c5df2c5f..4957052c 100644 --- a/client/src/pages/instrumentOverview.vue +++ b/client/src/pages/instrumentOverview.vue @@ -2,54 +2,59 @@

- Instrument:
{{instrumentType}} + Instrumente

+ + +
- + + {{instrument.title}} +