From 7bd345ceec827ff55a9837349278b9e8befc6f11 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Fri, 28 Dec 2018 20:10:01 +0100 Subject: [PATCH 01/38] WIP - First attemplte of Pluralization --- locales/de.json | 2 +- locales/en.json | 19 ++++++++++++++++++- pages/post/_slug.vue | 18 +++++++++--------- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/locales/de.json b/locales/de.json index bb879f4ea..56a6b0fe1 100644 --- a/locales/de.json +++ b/locales/de.json @@ -94,4 +94,4 @@ "author": "Afrikanisches Sprichwort" } } -} \ No newline at end of file +} diff --git a/locales/en.json b/locales/en.json index a36bdda3c..d5db12591 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,4 +1,21 @@ { + "common": { + "post": "Post ::: Posts", + "comment": "Comment ::: Comments", + "letsTalk": "Let`s Talk", + "versus": "Versus", + "moreInfo": "More Info", + "takeAction": "Take Action", + "shout": "Shout ::: Shouts", + "user": "User ::: Users", + "category": "Category ::: Categories", + "organization": "Organization ::: Organizations", + "project": "Project ::: Projects", + "tag": "Tag ::: Tags", + "name": "Name ::: Names", + "loadMore": "load more", + "loading": "loading" + }, "login": { "copy": "If you already have a human-connection account, login here.", "login": "Login", @@ -94,4 +111,4 @@ "author": "African proverb" } } -} \ No newline at end of file +} diff --git a/pages/post/_slug.vue b/pages/post/_slug.vue index b3e6e2ea8..0d147532c 100644 --- a/pages/post/_slug.vue +++ b/pages/post/_slug.vue @@ -18,33 +18,33 @@ @@ -191,4 +166,15 @@ export default { margin-top: -45px; border: #fff 5px solid; } +.author { + white-space: nowrap; + position: relative; + display: flex; + align-items: center; + + &:hover, + &.active { + z-index: 999; + } +} From 4676f5af5c60acc52ea31194c2e1413263b873cd Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Thu, 10 Jan 2019 12:01:27 +0100 Subject: [PATCH 36/38] Fixed is-exact usage ofr user menu and optimized Dropdown internals --- components/Dropdown.vue | 24 +++++++++---------- layouts/default.vue | 23 +++++++++++++----- .../components/navigation/Menu/MenuItem.vue | 4 ++++ 3 files changed, 32 insertions(+), 19 deletions(-) diff --git a/components/Dropdown.vue b/components/Dropdown.vue index d354dd257..1cfe84c2b 100644 --- a/components/Dropdown.vue +++ b/components/Dropdown.vue @@ -55,7 +55,6 @@ export default { isPopoverOpen: { immediate: true, handler(isOpen) { - console.log('isOpen', isOpen) try { if (isOpen) { this.$nextTick(() => { @@ -80,18 +79,14 @@ export default { }, methods: { toggleMenu() { - if (this.disabled) { - return - } - clearTimeout(mouseEnterTimer) - clearTimeout(mouseLeaveTimer) - this.isPopoverOpen = !this.isPopoverOpen + this.isPopoverOpen ? this.closeMenu(false) : this.openMenu(false) }, openMenu(useTimeout) { if (this.disabled) { return } - if (useTimeout) { + this.clearTimeouts() + if (useTimeout === true) { this.popoverMouseEnter() } else { this.isPopoverOpen = true @@ -101,7 +96,8 @@ export default { if (this.disabled) { return } - if (useTimeout) { + this.clearTimeouts() + if (useTimeout === true) { this.popoveMouseLeave() } else { this.isPopoverOpen = false @@ -111,8 +107,7 @@ export default { if (this.disabled) { return } - clearTimeout(mouseEnterTimer) - clearTimeout(mouseLeaveTimer) + this.clearTimeouts() if (!this.isPopoverOpen) { mouseEnterTimer = setTimeout(() => { this.isPopoverOpen = true @@ -123,13 +118,16 @@ export default { if (this.disabled) { return } - clearTimeout(mouseEnterTimer) - clearTimeout(mouseLeaveTimer) + this.clearTimeouts() if (this.isPopoverOpen) { mouseLeaveTimer = setTimeout(() => { this.isPopoverOpen = false }, 300) } + }, + clearTimeouts() { + clearTimeout(mouseEnterTimer) + clearTimeout(mouseLeaveTimer) } } } diff --git a/layouts/default.vue b/layouts/default.vue index e38eaeda8..f79b00db5 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -26,7 +26,7 @@