From 22a005eb1c1067e525623be18d5fc82e8a17d26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 16 Sep 2019 11:14:13 +0200 Subject: [PATCH] Show categories translated in all places and even in tooltips Show `#` symbol in front of hashtags. Minor design changes on posts more info page. --- .../{Tag/spec.js => Hashtag/Hashtag.spec.js} | 6 ++-- .../{Tag/index.vue => Hashtag/Hashtag.vue} | 7 ++-- webapp/components/{Tag => Hashtag}/Readme.md | 2 +- webapp/components/PostCard/index.vue | 2 +- webapp/graphql/Fragments.js | 1 + webapp/pages/post/_id/_slug/index.vue | 9 +++-- webapp/pages/post/_id/_slug/more-info.vue | 33 +++++++------------ 7 files changed, 24 insertions(+), 36 deletions(-) rename webapp/components/{Tag/spec.js => Hashtag/Hashtag.spec.js} (83%) rename webapp/components/{Tag/index.vue => Hashtag/Hashtag.vue} (60%) rename webapp/components/{Tag => Hashtag}/Readme.md (54%) diff --git a/webapp/components/Tag/spec.js b/webapp/components/Hashtag/Hashtag.spec.js similarity index 83% rename from webapp/components/Tag/spec.js rename to webapp/components/Hashtag/Hashtag.spec.js index 4824c65fc..cfb7d7e3f 100644 --- a/webapp/components/Tag/spec.js +++ b/webapp/components/Hashtag/Hashtag.spec.js @@ -1,15 +1,15 @@ import { shallowMount, createLocalVue } from '@vue/test-utils' import Styleguide from '@human-connection/styleguide' -import Tag from './' +import Hashtag from './Hashtag' const localVue = createLocalVue() localVue.use(Styleguide) -describe('Tag', () => { +describe('Hashtag', () => { let id let Wrapper = () => { - return shallowMount(Tag, { + return shallowMount(Hashtag, { localVue, propsData: { id, diff --git a/webapp/components/Tag/index.vue b/webapp/components/Hashtag/Hashtag.vue similarity index 60% rename from webapp/components/Tag/index.vue rename to webapp/components/Hashtag/Hashtag.vue index 1895d4fcf..a6085fabc 100644 --- a/webapp/components/Tag/index.vue +++ b/webapp/components/Hashtag/Hashtag.vue @@ -1,13 +1,10 @@