diff --git a/webapp/components/SearchInput/SearchHeading.vue b/webapp/components/SearchInput/SearchHeading.vue new file mode 100644 index 000000000..e9d5aa662 --- /dev/null +++ b/webapp/components/SearchInput/SearchHeading.vue @@ -0,0 +1,16 @@ + + + + {{ $t(`search.heading.${resourceType}`) }} + + + + + diff --git a/webapp/components/SearchInput/SearchInput.vue b/webapp/components/SearchInput/SearchInput.vue index 44794768c..acddf4791 100644 --- a/webapp/components/SearchInput/SearchInput.vue +++ b/webapp/components/SearchInput/SearchInput.vue @@ -38,51 +38,19 @@ > - - - {{ $t(`search.heading.${option.__typename}`) }} - - + - - - - - - {{ option.name | truncate(70) }} - - - - @{{ option.slug | truncate(70) }} - - + + - - - {{ option.title | truncate(70) }} - - - - - - - {{ option.commentsCount }} - - - - {{ option.shoutedCount }} - - - - - - - {{ option.author.name | truncate(32) }} - - {{ option.createdAt | dateTime('dd.MM.yyyy') }} - - - - + + @@ -94,8 +62,16 @@ + diff --git a/webapp/components/SearchInput/SearchUser.vue b/webapp/components/SearchInput/SearchUser.vue new file mode 100644 index 000000000..e50d447e5 --- /dev/null +++ b/webapp/components/SearchInput/SearchUser.vue @@ -0,0 +1,50 @@ + + + + + + {{ option.name | truncate(70) }} + + + @{{ option.slug | truncate(70) }} + + + +