diff --git a/cypress/integration/administration/TagsAndCategories.feature b/cypress/integration/administration/TagsAndCategories.feature index 96196be01..e543b143b 100644 --- a/cypress/integration/administration/TagsAndCategories.feature +++ b/cypress/integration/administration/TagsAndCategories.feature @@ -29,9 +29,9 @@ Feature: Tags and Categories Scenario: See an overview of tags When I navigate to the administration dashboard - And I click on the menu item "Tags" + And I click on the menu item "Hashtags" Then I can see the following table: - | | Name | Users | Posts | - | 1 | Democracy | 3 | 4 | - | 2 | Nature | 2 | 3 | - | 3 | Ecology | 1 | 1 | + | No. | Hashtags | Users | Posts | + | 1 | #Democracy | 3 | 4 | + | 2 | #Nature | 2 | 3 | + | 3 | #Ecology | 1 | 1 | diff --git a/package.json b/package.json index 790365b6e..250279bd5 100644 --- a/package.json +++ b/package.json @@ -34,4 +34,4 @@ "npm-run-all": "^4.1.5", "slug": "^1.1.0" } -} +} \ No newline at end of file diff --git a/webapp/locales/de.json b/webapp/locales/de.json index d009240d9..b7604be02 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -215,6 +215,7 @@ }, "table": { "columns": { + "number": "Nr.", "name": "Name", "slug": "Slug", "role": "Rolle", @@ -235,7 +236,9 @@ "postCount": "Beiträge" }, "tags": { - "name": "Schlagworte", + "name": "Hashtags", + "number": "Nr.", + "nameOfHashtag": "Name", "tagCountUnique": "Benutzer", "tagCount": "Beiträge" }, @@ -251,7 +254,12 @@ "post": { "name": "Beitrag", "moreInfo": { - "name": "Mehr Info" + "name": "Mehr Info", + "title": "Mehr Informationen", + "description": "Hier findest du weitere Infos zum Thema.", + "titleOfCategoriesSection": "Kategorien", + "titleOfHashtagsSection": "Hashtags", + "titleOfRelatedContributionsSection": "Verwandte Beiträge" }, "takeAction": { "name": "Aktiv werden" diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 474a5a232..870cdd2b5 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -107,7 +107,7 @@ "follow": "Follow", "followers": "Followers", "following": "Following", - "shouted": "Recommended", + "shouted": "Shouted", "commented": "Commented", "userAnonym": "Anonymous", "socialMedia": "Where else can I find", @@ -203,7 +203,7 @@ "projects": "Projects", "invites": "Invites", "follows": "Follows", - "shouts": "Recommended" + "shouts": "Shouts" }, "organizations": { "name": "Organizations" @@ -215,6 +215,7 @@ }, "table": { "columns": { + "number": "No.", "name": "Name", "slug": "Slug", "role": "Role", @@ -235,7 +236,9 @@ "postCount": "Posts" }, "tags": { - "name": "Tags", + "name": "Hashtags", + "number": "No.", + "nameOfHashtag": "Name", "tagCountUnique": "Users", "tagCount": "Posts" }, @@ -251,7 +254,12 @@ "post": { "name": "Post", "moreInfo": { - "name": "More info" + "name": "More info", + "title": "More information", + "description": "Here you can find more information about this topic.", + "titleOfCategoriesSection": "Categories", + "titleOfHashtagsSection": "Hashtags", + "titleOfRelatedContributionsSection": "Related posts" }, "takeAction": { "name": "Take action" diff --git a/webapp/pages/admin/categories.vue b/webapp/pages/admin/categories.vue index ce795feaf..23aa4d606 100644 --- a/webapp/pages/admin/categories.vue +++ b/webapp/pages/admin/categories.vue @@ -31,7 +31,7 @@ export default { }, apollo: { Category: { - query: gql(` + query: gql` query { Category(orderBy: postCount_desc) { id @@ -41,7 +41,7 @@ export default { postCount } } - `), + `, }, }, } diff --git a/webapp/pages/admin/index.vue b/webapp/pages/admin/index.vue index 6732b2137..7790ed849 100644 --- a/webapp/pages/admin/index.vue +++ b/webapp/pages/admin/index.vue @@ -133,7 +133,7 @@ export default { }, apollo: { statistics: { - query: gql(` + query: gql` query { statistics { countUsers @@ -147,7 +147,7 @@ export default { countShouts } } - `), + `, }, }, } diff --git a/webapp/pages/admin/tags.vue b/webapp/pages/admin/tags.vue index 53808fc53..c5a28dc11 100644 --- a/webapp/pages/admin/tags.vue +++ b/webapp/pages/admin/tags.vue @@ -2,7 +2,12 @@ + @@ -20,8 +25,8 @@ export default { computed: { fields() { return { - id: '#', - name: 'Name', + id: this.$t('admin.tags.number'), + name: this.$t('admin.tags.name'), taggedCountUnique: { label: this.$t('admin.tags.tagCountUnique'), align: 'right', @@ -35,7 +40,7 @@ export default { }, apollo: { Tag: { - query: gql(` + query: gql` query { Tag(first: 20, orderBy: taggedCountUnique_desc) { id @@ -44,7 +49,7 @@ export default { taggedCountUnique } } - `), + `, }, }, } diff --git a/webapp/pages/admin/users.vue b/webapp/pages/admin/users.vue index 0d737cfc0..e58b413aa 100644 --- a/webapp/pages/admin/users.vue +++ b/webapp/pages/admin/users.vue @@ -21,7 +21,7 @@ @@ -92,7 +90,7 @@ export default { }, fields() { return { - index: '#', + index: this.$t('admin.users.table.columns.number'), name: this.$t('admin.users.table.columns.name'), slug: this.$t('admin.users.table.columns.slug'), createdAt: this.$t('admin.users.table.columns.createdAt'), @@ -118,20 +116,26 @@ export default { apollo: { User: { query() { - return gql(` - query($filter: _UserFilter, $first: Int, $offset: Int, $email: String) { - User(email: $email, filter: $filter, first: $first, offset: $offset, orderBy: createdAt_desc) { - id - name - slug - role - createdAt - contributionsCount - commentedCount - shoutedCount + return gql` + query($filter: _UserFilter, $first: Int, $offset: Int, $email: String) { + User( + email: $email + filter: $filter + first: $first + offset: $offset + orderBy: createdAt_desc + ) { + id + name + slug + role + createdAt + contributionsCount + commentedCount + shoutedCount + } } - } - `) + ` }, variables() { const { offset, first, email, filter } = this diff --git a/webapp/pages/post/_id/_slug/more-info.vue b/webapp/pages/post/_id/_slug/more-info.vue index c7d1a5f0e..ef442b7d6 100644 --- a/webapp/pages/post/_id/_slug/more-info.vue +++ b/webapp/pages/post/_id/_slug/more-info.vue @@ -1,11 +1,11 @@