From 4314b489249ffa77e3eb4743b19f9b2f60a8c730 Mon Sep 17 00:00:00 2001 From: lambadalambda Date: Thu, 19 Jan 2017 11:51:27 -0500 Subject: [PATCH 1/9] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 117bd6ee..ee1e5ef1 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ > A Qvitter-style frontend for certain GS servers. +# FOR ADMINS + +You don't need to build Pleroma yourself. Check out https://gitgud.io/lambadalambda/pleroma-fe/wikis/dual-boot-with-qvitter to see how to run Pleroma and Qvitter at the same time. + ## Build Setup ``` bash From e81b3ea245c650377126242d928bd96ea64ec0a4 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Fri, 20 Jan 2017 23:39:38 +0100 Subject: [PATCH 2/9] Fix style setting in Chrome. --- src/services/style_setter/style_setter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index b8c978b4..79b68b38 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -22,6 +22,7 @@ const setStyle = (href) => { const setDynamic = () => { const baseEl = document.createElement('div') + body.appendChild(baseEl) baseEl.setAttribute('class', 'base05') const base05Color = window.getComputedStyle(baseEl).getPropertyValue('color') baseEl.setAttribute('class', 'base08') @@ -29,6 +30,7 @@ const setStyle = (href) => { const styleEl = document.createElement('style') head.appendChild(styleEl) const styleSheet = styleEl.sheet + body.removeChild(baseEl) styleSheet.insertRule(`a { color: ${base08Color}`, 'index-max') styleSheet.insertRule(`body { color: ${base05Color}`, 'index-max') From b98a6fe5bc486f07d4b8d5a9dd3fedd6bf4b7b66 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Fri, 20 Jan 2017 23:58:58 +0100 Subject: [PATCH 3/9] Fix file uploads in Chrome. --- .../status_poster/status_poster.service.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/services/status_poster/status_poster.service.js b/src/services/status_poster/status_poster.service.js index 850993f7..bc1fd37d 100644 --- a/src/services/status_poster/status_poster.service.js +++ b/src/services/status_poster/status_poster.service.js @@ -20,12 +20,23 @@ const uploadMedia = ({ store, formData }) => { const credentials = store.state.users.currentUser.credentials return apiService.uploadMedia({ credentials, formData }).then((xml) => { - return { + // Firefox and Chrome treat method differently... + let link = xml.getElementsByTagName('link') + + if (link.length === 0) { + link = xml.getElementsByTagName('atom:link') + } + + link = link[0] + + const mediaData = { id: xml.getElementsByTagName('media_id')[0].textContent, url: xml.getElementsByTagName('media_url')[0].textContent, - image: xml.getElementsByTagName('atom:link')[0].getAttribute('href'), - mimetype: xml.getElementsByTagName('atom:link')[0].getAttribute('type') + image: link.getAttribute('href'), + mimetype: link.getAttribute('type') } + + return mediaData }) } From 5a518fa817fbd64fcf9b3a18b02acefcff5fc307 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 26 Jan 2017 12:03:07 +0100 Subject: [PATCH 4/9] Break after user name in notifications. --- src/components/notifications/notifications.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index ba5d8971..0846c27b 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -9,15 +9,15 @@
-

{{ notification.action.user.name }} favorited your status

+

{{ notification.action.user.name }}
favorited your status

{{ notification.status.text }}

-

{{ notification.action.user.name }} repeated your status

+

{{ notification.action.user.name }}
repeated your status

{{ notification.status.text }}

-

{{ notification.action.user.name }} mentioned you

+

{{ notification.action.user.name }}
mentioned you

{{ notification.status.text }}

From ea25708bf365e865334877c8625996f9386b44e0 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 4 Feb 2017 13:51:44 +0100 Subject: [PATCH 5/9] Set color on status instead of on timeline. --- src/components/friends_timeline/friends_timeline.vue | 2 +- src/components/mentions/mentions.vue | 2 +- .../public_and_external_timeline.vue | 2 +- src/components/public_timeline/public_timeline.vue | 2 +- src/components/status/status.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/friends_timeline/friends_timeline.vue b/src/components/friends_timeline/friends_timeline.vue index 88c477ab..afe5cc89 100644 --- a/src/components/friends_timeline/friends_timeline.vue +++ b/src/components/friends_timeline/friends_timeline.vue @@ -1,5 +1,5 @@