Maxence Lange
37fa478048
Merge pull request #748 from nextcloud/timeline-to-grid
...
👌 IMPROVE: move timeline to css grid layout and restructure code
2020-10-19 10:04:15 -01:00
Robin Appelman
ef8c6f81fc
fix js
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-16 14:06:04 +02:00
Robin Appelman
6e7cb67c93
fix alignment for posts without boosts
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-16 14:06:04 +02:00
Robin Appelman
4f127bd298
fix boosted layout
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-16 14:06:04 +02:00
Jonas Sulzer
ea53553e91
👌 IMPROVE: move timeline to css grid layout and restructure code
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2020-10-16 14:06:04 +02:00
Robin Appelman
638b79ca25
remove empty content after a post has been added
...
Fixes #1070
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-15 15:21:01 +02:00
Robin Appelman
1b52eb4860
dont increase main post font size for now since it messes up the ui a bit
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-13 23:55:31 +02:00
Cyrille Bollu
591a89ba8e
FIX: Uses proper API when showing a resized image to an un-authenticated user.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:55:21 +02:00
Cyrille Bollu
615d80c444
ENHANCEMENT: single post should only be triggered on a click on the 'date' and not the full post
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:54:16 +02:00
Cyrille Bollu
54302fff68
IMPROVE: Display main post with a bigger font in SinglePostTimeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:54:16 +02:00
Cyrille Bollu
a75cb8ca85
FIX: updated Profile.vue to use computed properties rather than methods for the account mixins
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:54:16 +02:00
Cyrille Bollu
1e378654dc
Adds doc to some mixins
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:54:16 +02:00
Cyrille Bollu
f0970a19d8
FIX: Uses computed properties rather than methods for the account mixins.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:54:14 +02:00
Cyrille Bollu
d8792993d4
IMPROVEMENT: In single-post timeline, automaticaly hide the composer when
...
clicking its close ('x') icon.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:53:40 +02:00
Cyrille Bollu
265c2686a2
DOC: Updated serverData mixin doc
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:53:40 +02:00
Cyrille Bollu
9467e267e0
ENHANCEMENT: Adds a composer to the single post timeline.
...
This composer is hidden by default and will only show when
some authenticated user clicks on the 'reply' icon of a post.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:53:37 +02:00
Cyrille Bollu
13fdd63efb
FIX: In single post timeline, do not load TimelineList component when
...
there are no answers.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:53:01 +02:00
Cyrille Bollu
8f6aa483b4
FIX: Properly adds replies to timeline for single-post timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:52:59 +02:00
Cyrille Bollu
b352892a3f
FIX: Automatically adds the original post's author to the list of
...
recipients when composing a reply.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:51:41 +02:00
Cyrille Bollu
4394435990
FIX: Uses the accountInfo() mixin in FollowButton
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:51:41 +02:00
Cyrille Bollu
5a5d9ce3aa
DOC: Adds documentation to serverData mixins
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:51:41 +02:00
Cyrille Bollu
3421661ee9
MISC: Adds a getAllAccounts() getter
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:51:41 +02:00
Cyrille Bollu
f57f0c5093
ENHANCEMENT: Adds profile info to single post timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:51:41 +02:00
Cyrille Bollu
11f129a30c
REFACTORING: Adds account-related mixins to avoid code duplication
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:51:39 +02:00
Cyrille Bollu
b5e374f3a3
FIX: Changes empty content message for single-post timelines.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2020-10-13 23:50:27 +02:00
Robin Appelman
6158665a33
use prefered username as fallback if no account name is provided
...
instead of falling back directly to the full account id (@userid@example.com) use the prefered username if available
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-12 17:48:36 +02:00
Robin Appelman
2ef6613857
migrate away from depricated OC.generateUrl
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-12 17:03:49 +02:00
Robin Appelman
d41a216c49
link at mentions to external profile page
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-08 18:36:55 +02:00
Robin Appelman
2966545f3e
fix rendering of local messages
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-08 18:36:55 +02:00
Robin Appelman
5eb3e4d87c
lint
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-08 18:36:55 +02:00
Robin Appelman
5adc6e0004
generate router-link for mention and hashtag links
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-08 18:36:55 +02:00
Robin Appelman
6e57649ce5
emojify message content
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-08 18:36:53 +02:00
Robin Appelman
34ec87cd4f
render messages based on the source html
...
instead of first stripping, and then repopulating html.
this makes it possible to do proper manipulation on mention and hashtag links
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-08 18:35:56 +02:00
Jan C. Borchardt
c593c989a5
Fix documentation link going to outdated version
...
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2020-10-08 15:05:18 +02:00
Robin Appelman
952ffb94a6
render profile page for ostatus follow url
...
when initiating a follow from a remote mastadon instance, the user gets directed to 'apps/social/ostatus/follow/?uri=' which is currently broken.
this changes it to render the regular profile page for that link, allowing the user to follow the profile.
I'm not sure what the previous behavior was before things got broken
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-09-18 19:25:13 +02:00
Jonas Sulzer
ff9224e4ad
👌 IMPROVE: use vue Content components and transmit serverData over initialState
...
- use vue components `Content` and `AppContent` with it's respective styling
to be independent from server styling
- use OCP\IInitialStateService and @nextcloud/initial-state to transmit the serverData
instead of using a hidden span element and jsonEncode/Decode
this is needed to use the `Content` component, so the vue instance can be mounted to
#content directly (otherwise server styling for #content interfers with the vue styling)
- also improves some general styling (mostly widths and margins/paddings)
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2020-09-02 10:05:22 +02:00
Curtis Parfitt-Ford
a3c1a4ca0f
Standard hover background colour
...
Signed-off-by: Curtis Parfitt-Ford <curtis@mashedkeyboard.me>
2020-08-24 17:51:13 +01:00
Curtis Parfitt-Ford
8546a5ac5a
Dark timeline entries for the dark Nextcloud theme
...
Signed-off-by: Curtis Parfitt-Ford <curtis@mashedkeyboard.me>
2020-08-23 00:08:58 +01:00
Maxence Lange
db9a804de0
fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-22 01:51:40 -01:00
Maxence Lange
600dc4a008
vue issues
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-25 21:06:15 -01:00
Maxence Lange
ad633a712c
eslint issue
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-23 12:57:18 -01:00
Jonas Sulzer
e4194be71b
👌 IMPROVE: update nextcloud npm dependencies to the new @nextcloud namespace versions && update the AppNavigation to the work with the new component
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2020-06-19 13:47:03 -01:00
Cyrille Bollu
240cbabeb1
Allows long URL's in post messages to be wrapped so as to not overflow
...
their parent element.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-11-08 14:38:09 +01:00
Maxence Lange
05134a1c38
Merge pull request #787 from StCyr/bugfix/776/do-not-show-followbutton
...
FIX: do not show follow button when viewer is same as viewed
2019-10-04 19:02:04 -01:00
Maxence Lange
d82cb4906b
Merge pull request #785 from StCyr/bugfix/noid/do-not-post-on-enter
...
FIX: Hitting 'Enter' without the shift key pressed should not post the message
2019-10-04 18:56:55 -01:00
Cyrille Bollu
d055a2efcf
Allows ctrl+enter to also post a message (in addition to shift+enter)
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-04 16:23:11 +02:00
Cyrille Bollu
c82befe38b
FIX: Uses only local part of account's uid when an un-authenticated user clicks
...
on a profile's follow button.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-04 15:08:03 +02:00
Cyrille Bollu
5b948b76e6
FIX: Do not show follow button when viewer's account is the same as viewed one.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-04 15:07:24 +02:00
Maxence Lange
7ac1be6545
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-04 10:40:05 -01:00
Cyrille Bollu
a1d2489332
Uses the 'he' library to decode HTML entities form composer's content.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-04 09:59:52 +02:00
Jonas Sulzer
5303d2692b
🐛 FIX: line breaks not handled correctly
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-10-03 21:54:49 +02:00
Cyrille Bollu
18f1def34e
FIX: Hitting 'Enter' without the shift key pressed should not post
...
the message
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-03 21:43:48 +02:00
Maxence Lange
17cc13d273
Merge pull request #777 from StCyr/bugfix/769/duplicate-results-on-new-mention
...
Remove old code that creates twin entries
2019-10-02 15:32:02 -01:00
Maxence Lange
c0d71b7e09
Merge pull request #774 from StCyr/bugfix/773/search_with_#
...
FIX: Removes heading '#' from the search terms as search won't work
2019-10-02 15:11:46 -01:00
Cyrille Bollu
02b1ffe7ab
FIX: decode search term before displaying it on screen.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-02 17:17:20 +02:00
Cyrille Bollu
d1f84b78e8
FIX: Do not store current user in followers/following lists.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-02 17:06:02 +02:00
Maxence Lange
1d960fa4f1
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-02 13:40:09 -01:00
Cyrille Bollu
1138191342
FIX: Removes obsolete code that creates twin entries in composer's tribute component.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-02 16:35:00 +02:00
Cyrille Bollu
eca50cd168
FIX: Encode search terms before creating the search URL
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-02 16:04:29 +02:00
Cyrille Bollu
b2f836631c
FIX: Changes text on profile page when viewed by another user.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-02 15:42:49 +02:00
Cyrille Bollu
0ad91d78eb
FIX: Change the empty content's text on profile pages when they are
...
accessed by a public (non-authenticated) user.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-10-02 11:23:33 +02:00
Cyrille Bollu
4462403af6
FIX: Corrects the remaining value of the composer's post that may
...
still be there while considering the composer empty.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-26 15:33:06 +02:00
Maxence Lange
e0e26d9a49
Merge pull request #746 from nextcloud/bugfix/745/social-address-on-local-account
...
check social address during local actor
2019-09-26 12:32:49 +02:00
Cyrille Bollu
0e67827a48
FIX: Removes a superfluous '@' in a message's 'to' array.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-26 09:45:22 +02:00
Cyrille Bollu
ddccc7cba1
Automaticaly validates the last mention of a post when the user directly
...
clicks on the "post" button without validating the mention first.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:47:21 +02:00
Cyrille Bollu
503c404445
IMPROVEMENT: In composer, when writing a mention or hashtag, makes the
...
spacebar acts as the enter and tab keys.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:47:21 +02:00
Cyrille Bollu
fe3f3e39a3
Makes sure there are valid recipients when posting to a direct message
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:47:21 +02:00
Cyrille Bollu
94e366c259
Workaround an issue in Composer when deleting the post's content and
...
it can't remove the last 'br'.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:47:21 +02:00
Cyrille Bollu
7a92cf1574
Single post timeline can be displayed to non logged in users.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:11:10 +02:00
Cyrille Bollu
6d6fa8a527
Proper URL for the single-post timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:11:10 +02:00
Cyrille Bollu
15b7336751
New, working, TimelineSinglePost view
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:11:10 +02:00
Cyrille Bollu
9920fb13fe
Clicking on an external post or announce opens the corresponding
...
post in another window
Also, implements nextcloud-logger in TimelineEntry.vue
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
9b51fc5834
Do not call the single post timeline when clicking on a link, a post's attachment,
...
or a post's author name.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Maxence Lange
a4de752d9c
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
c3d605f3ef
Uses proper endpoint to get a single post's content.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
bf5b4483b7
fixes bugs in single-post timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
f167062477
lint fixes
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
4fd2473dda
Adapts timeline.js's fetchTimeline for the single-post timeline.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
3ef6790240
Makes TimelineEntry clickable, displays single-post timeline.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
eb83711ddf
Adapts Timeline view for the single-post view.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
5e45fcaf8d
Adds a routes for the single-post timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:07:24 +02:00
Cyrille Bollu
de841d1826
Trying to create a new timeline for showing a single post's context (replies and partens)
...
using Maxence's new endpoints (eg: 'apps/social/local/v1/post/replies?id=').
It doesn't work yet though.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:06:47 +02:00
Cyrille Bollu
115a8f87db
Prevents a timeline entry's modal to show in certain cases.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:06:47 +02:00
Cyrille Bollu
c3eb2f8f2a
Show modal with v-if rather than v-show to workaround an issue with
...
that component.
See https://github.com/nextcloud/nextcloud-vue/issues/497
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:06:47 +02:00
Cyrille Bollu
6ba7c765d2
Makes timeline entries clickable.
...
When clicked they will show a modal component to display the toot in a
single page.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-25 14:06:47 +02:00
Cyrille Bollu
2f7683a0ae
FIX: Show the account avatar when displaying a user profile to an unauthenticated user.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-19 10:45:44 +02:00
Cyrille Bollu
9fac5aea32
Do not show post action buttons when non-authenticated
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-19 10:05:34 +02:00
Cyrille Bollu
128438e705
Profiles view is now able to load an account whose domain part is
...
a host-meta of the real domain.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-17 17:10:08 +02:00
Cyrille Bollu
66419f061f
fixes the "empty content" message of various route
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 14:47:17 +02:00
Cyrille Bollu
399888f88f
Adds an error message when notifications are found
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 14:19:09 +02:00
Cyrille Bollu
42645328c1
Don't display post's actions in the notifications timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 13:34:56 +02:00
Cyrille Bollu
33ba9440b9
Fixes the wrong account info used for creating an author's profile link in the
...
notification timeline
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 13:22:52 +02:00
Cyrille Bollu
461292237b
Displays correct avatars in the notifications timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 13:14:43 +02:00
Cyrille Bollu
540118b34d
Fixes a bug in notification summary's ellipsing
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 09:16:03 +02:00
Cyrille Bollu
fb789ead94
removes an un-necessary comma when ellipsing notifications
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 09:16:03 +02:00
Cyrille Bollu
30930e7a89
Ellipses actors' list when its big when displaying a notification
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 09:16:03 +02:00
Cyrille Bollu
f80d9c6b4d
Displays "actor is following you" notifications in the same way as
...
"actor boosted/liked your post" notifications in the Notifications
timeline.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-10 09:16:03 +02:00
Jonas Sulzer
050b66277d
📦 NEW: show notifications timeline with icon in navigation
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-09-10 09:15:21 +02:00
Jonas Sulzer
0d42d2d0c6
📦 NEW: display a post block for like and boost notifications
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-09-10 09:15:21 +02:00
Jonas Sulzer
24a2e12b17
👌 IMPROVE: correctly display all keys in summary (like account/s etc)
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-09-10 09:15:21 +02:00
Jonas Sulzer
a727183fe2
📦 NEW: show user block for {actor} is following you
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-09-10 09:15:21 +02:00
Maxence Lange
5f374f9b9e
Merge pull request #712 from StCyr/stcyr-fix708
...
Fixes Composer's weird behavior when hashtag or mention is last element in post
2019-09-09 13:41:22 -01:00
Maxence Lange
c21cb5e2ba
fixing imports
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-09-09 13:16:40 -01:00
Maxence Lange
121d3866c1
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-09-09 11:06:12 -01:00
Cyrille Bollu
f85cfae459
updates vue-contenteditable when vue-tribute replaces a mention or hashtag.
...
fixes https://github.com/nextcloud/social/issues/708
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-09-09 11:06:12 -01:00
Jonas Sulzer
f848000925
🐛 FIX: linting errors
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-09-08 18:42:46 +02:00
Cyrille Bollu
7f112d2bb0
- Draws a border around miniatures in Composer
...
- Made miniatures a little bit smaller
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-27 15:27:29 +02:00
Cyrille Bollu
d0b2aa39e9
Adds an imagemap to the close badge of miniatures in Composer
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-27 15:13:55 +02:00
Cyrille Bollu
7453d5dd6e
Merge branch 'stCyr_uploadPostAttachments' of https://github.com/StCyr/social into stCyr_uploadPostAttachments
2019-08-27 12:07:32 +02:00
Cyrille Bollu
decebd853d
Changes Composer's upload icon tooltip to "upload document"
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-27 12:06:37 +02:00
Cyrille Bollu
d9696ac74f
Better positioned upload icon in Composer.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-27 12:06:12 +02:00
Cyrille Bollu
a8ae148231
Nice upload button in Composer
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-27 11:55:04 +02:00
Maxence Lange
8ef030c108
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-26 15:58:54 -01:00
Cyrille Bollu
b44d4e6636
Draws a 'close' badge on the miniatures in the Composer.
...
The badge isn't functional yet and too big.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 16:40:30 +02:00
Cyrille Bollu
a39e731977
Adds filename to miniatures of non-image documents.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 16:17:02 +02:00
Cyrille Bollu
8e28e75e96
Draws generic icon when uploaded document is not an image in Composer
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 12:55:22 +02:00
Cyrille Bollu
2e56fef2fd
Attachments can now be removed in Composer
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 11:04:53 +02:00
Cyrille Bollu
a00090254c
Resets postAttachements and miniatures variables after a toot is posted
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 09:48:07 +02:00
Maxence Lange
82e87b8aff
eslint + canvas.toDataUrl()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
eslint
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-26 09:45:13 +02:00
Cyrille Bollu
a7b84cfeb0
Adds attachments to the data sent to the server when posting a toot.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 09:45:13 +02:00
Cyrille Bollu
f0fb14e29c
Adds an upload button.
...
Not yet perfectly layed out though
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 09:45:13 +02:00
Cyrille Bollu
26e8755438
PoC: Upload images in Composer
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 09:45:13 +02:00
Cyrille Bollu
36fb838476
Adds a div to the Composer to show post attachments.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-26 09:45:13 +02:00
Maxence Lange
afe2f7732f
Merge pull request #692 from StCyr/StCyr_fix690
...
Better layout of the profile views on small screen
2019-08-22 14:24:39 -01:00
Maxence Lange
704a964bd5
Merge branch 'master' into feature/noid/push
2019-08-22 12:46:49 -01:00
Maxence Lange
1efbd581ec
renaming to Nextcloud Push
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-22 11:04:25 -01:00
Cyrille Bollu
ae1028f7c0
Better layout of the followers/following list.
...
Can't get them to layout with a width of 50% though (ie: 2 accounts per line) ;-(
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-22 10:06:02 +02:00
Cyrille Bollu
abb87325e6
Wraps profile-info-sections (posts/following/followers) when space is short
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-22 09:24:32 +02:00
Cyrille Bollu
ee41671e72
Fixes style not been applied to emoji in profile timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-20 10:53:19 +02:00
Cyrille Bollu
1dd3363836
Better layout of TimelinePost component: Moves post's timestamp above
...
its message and attachments so that its message has more horizontal space.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-19 15:46:36 +02:00
Maxence Lange
c09fff65f9
fix
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-15 20:55:27 -01:00
Maxence Lange
135bb96694
update if on the right timeline
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-15 12:56:29 -01:00
Maxence Lange
576f7fb905
revert noMatchTemplate
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-03 17:24:40 -01:00
Maxence Lange
cb9be8bbb6
-noMatchTemplate
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-02 01:20:49 -01:00
Cyrille Bollu
889eaa9115
Merge branch 'stCyr_fixHashtags' of https://github.com/StCyr/social into stCyr_fixHashtags
2019-08-01 15:44:08 +02:00
Cyrille Bollu
68d5048aaf
Give 'undefined' to tributejs when user hasn't typed any text as hashtag yet.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-01 15:40:25 +02:00
Maxence Lange
1923b345a7
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-08-01 12:07:16 -01:00
Cyrille Bollu
e08c50ff9a
Removes unecessary refs in Composer
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-01 14:19:26 +02:00
Cyrille Bollu
9f19f71aa4
Better regular expression to identify hashtags in Composer
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-01 13:59:20 +02:00
Cyrille Bollu
b5b929472d
Don't show the noMatchTemplate menu when the user didn't enter any hashtag yet.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-01 13:15:54 +02:00
Cyrille Bollu
e880ceedac
Makes composer's tribute able to add unknown hashtags
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-01 13:08:13 +02:00
Cyrille Bollu
e15f56895a
Composer uses the next tags/search route to search for existing hashtags in the DB
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-01 12:03:10 +02:00
Cyrille Bollu
93241d3b8e
Adds a noMatchTemplate function to vue-tribute so that unknown hashtags
...
can be added.
Not functional yet.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-08-01 10:53:07 +02:00
Cyrille Bollu
10ac856110
Adds a very basic config to vue-tribute to also support hashtags.
...
The part of the config that supports hashtags is not yet functional.
But at least it doesn't break the part supporting mentions.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-30 15:54:30 +02:00
Cyrille Bollu
9dc9eb4223
Identifies hashtags of a toot based on what's found in the DB rather
...
than using hashtag-regex, or (worse) linkifyjs.
The question is: Why are hashtags found stored in lowercase in the DB?
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-29 16:04:42 +02:00
Maxence Lange
baf8aa54e0
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-26 14:11:00 -01:00
Cyrille Bollu
b35dd395a5
Creates a mangleHashtags() function in TimelinePost.vue
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-26 16:04:21 +02:00
Cyrille Bollu
18862db660
Uses hashtag-regex to rewrite hashtag's href rather than linkifyjs.
...
Reason: linkifyjs doesn't support non-latin characters. So "#Framasphère"
is identified as "#Framasph" for example.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-26 15:35:20 +02:00
Maxence Lange
cc857c43c0
syntax
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-25 09:38:07 -01:00
Cyrille Bollu
0ae9051f2e
Automaticaly removes posts from the liked timeline when they are unliked
...
Signed-off-by: Cyrille Bollu <cyrille@bollu.be>
2019-07-22 11:53:09 +02:00
Cyrille Bollu
f6a775ea53
Adds a empty page to the liked timeline
...
Signed-off-by: Cyrille Bollu <cyrille@bollu.be>
2019-07-22 11:39:57 +02:00
Maxence Lange
e376768c34
Merge pull request #643 from StCyr/stCyr_fix640
...
St cyr fix640
2019-07-21 17:49:15 -01:00
Maxence Lange
201196a7d7
eslint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-20 19:26:51 -01:00
Cyrille Bollu
672a7f672f
Resizes images when viewing attachments
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-20 22:15:37 +02:00
Cyrille Bollu
5bcf85fbde
Shows attachment's modal viewer with size 'large' rather than 'full'
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-20 18:59:13 +02:00
Cyrille Bollu
febb64c897
Adds a menu entry for a liked timeline
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-20 18:47:38 +02:00
Maxence Lange
eadc04fc61
set type to props
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-20 15:44:08 -01:00
Maxence Lange
fff29cd492
smaller resize + lint errors
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-20 15:34:02 -01:00
Cyrille Bollu
d6b424bb81
Implements a modal slideshow viewer for post's attachemnts.
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-19 17:11:49 +02:00
Cyrille Bollu
e9a63421a7
Adds an attachment viewer using nextcloud-vue's modal component.
...
Slideshow functionality doesn't work yet though.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-19 15:43:28 +02:00
Cyrille Bollu
3be4a067f6
Uses vue-masonry-css to display post attachments in a masonry style
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-19 13:21:20 +02:00
Cyrille Bollu
ad7c3770a3
Shows attachments with a hooper carousel
...
Signed-off-by: Cyrille Bollu <cyrille@bollu.be>
2019-07-15 17:31:38 +02:00
Cyrille Bollu
4ae052c6a0
Fixes some lint warnings/errors.
...
Signed-off-by: Cyrille Bollu <cyrille@bollu.be>
2019-07-15 15:13:35 +02:00
Cyrille Bollu
d025569f5e
Fixes the PostAttachment component: It now works.
...
Note: This requires adding NoCSRFRequired in NavigationController'
documentGet() function. It doesn't seem to raise any risk though.
Signed-off-by: Cyrille Bollu <cyrille@bollu.be>
2019-07-15 14:40:21 +02:00
Cyrille Bollu
c8d98a421a
Creates a PostAttachment component an makes TimeLinePost use it.
...
The PostAttachment can atm only display images.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-15 14:40:21 +02:00
Cyrille Bollu
894eeb161b
Adds a div to show post's attachments (if any)
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-15 14:40:21 +02:00
Cyrille Bollu
adace1855c
Merge branch 'master' into StCyr_fix617
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-10 18:43:57 +02:00
Cyrille Bollu
9253af78ac
Fixes the overlap of the tooltip and the popover menu in TimeLinePost
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-10 17:41:59 +02:00
Cyrille Bollu
e4515688de
Corrected typo in a debug message
...
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-10 17:40:21 +02:00
Cyrille Bollu
1481a51e16
- Should fix the issue that post couldn't be unliked
...
- Fixes a typo in a comment
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-10 17:40:12 +02:00
Cyrille Bollu
27afa18436
Creates a 'like' button.
...
The following problems remain:
1- Once a post has been liked (the star icon turned yellow), it is impossible
to unlike it (the star stays yellow, no matter what)
2- Communication with backend doesn't work; 'got 'failed to like post'
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2019-07-10 17:39:49 +02:00
Maxence Lange
5ec02bf5f2
Merge pull request #531 from nextcloud/feature/noid/notifications
...
new notification timeline
2019-07-04 10:53:56 -01:00
Maxence Lange
106e70f39d
comment notification timeline
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-04 10:52:50 -01:00
Maxence Lange
dce161e62e
manage notification on unboost/unlike
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-03 14:46:09 -01:00
Maxence Lange
9d27b85c88
cleaning noDuplicateBoost as not necessary anymore
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-07-01 09:26:33 -01:00
Jonas Sulzer
b532d2d6aa
👌 IMPROVE: generically replace all keys in notification summary
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-06-28 09:29:01 +02:00
Jonas Sulzer
deff21f189
🐛 FIX: displaying of Notes and Announces in normal Timelines
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-06-28 09:27:17 +02:00
Jonas Sulzer
2174d828e2
📦 NEW: restructuring and basic displaying of '{account} followed you'
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-06-27 18:25:51 +02:00
Jonas Sulzer
11061e1965
🐛 FIX: displaying of exact alias maches
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-06-26 18:18:52 +02:00
Maxence Lange
6d820876ab
new notification timeline
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-26 07:08:13 -01:00
Jonas Sulzer
e2b9ed22e5
👌 IMPROVE: don't display Announce if original Note is already present in stream
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-30 01:32:41 +02:00
Jonas Sulzer
8e7d1f7d7e
👌 IMPROVE: add padding between boost icon and text
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-30 00:57:58 +02:00
Jonas Sulzer
d7baae9735
🐛 FIX: eslint && normal boost (parentAnnounce check)
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-29 23:58:16 +02:00
Jonas Sulzer
c5f9828788
🐛 FIX: correctly toggle boosted state when boosting an Announce
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-29 23:35:30 +02:00
Jonas Sulzer
2714c14e09
🐛 FIX: don't error when boosting on an Announce whereof the original Note isn't in the stream as well
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-29 19:51:16 +02:00
Jonas Sulzer
99b7b37e57
🐛 FIX: lint && design
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-29 16:54:00 +02:00
Jonas Sulzer
f117996654
🐛 FIX: also toggle boosted state on the chached object inside of the Announce
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-28 16:08:09 +02:00
Jonas Sulzer
bc634c42a8
📦 NEW: display boosted posts with an according indication
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-28 13:03:14 +02:00
Julius Härtl
f9e35642cd
Catch undefined message in announcements
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-05-06 20:31:11 -01:00
Julius Härtl
3d45ecfbcc
Use mutation to change vuex store
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-05-06 20:31:11 -01:00
Jonas Sulzer
369e741f56
🐛 FIX: syntax
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 20:05:05 +02:00
Jonas Sulzer
75102c41cb
👌 IMPROVE: remove unused icon && add myself as author to timeline.js
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
9ecd060527
👌 IMPROVE: use blue icon with full opacity to indicate boosted state
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
d78758b0b6
🐛 FIX: correctly handle boost state
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
717acf0a81
👌 IMPROVE: use white icon on blue background to indicate a boosted post
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
d9c37be5ec
👌 IMPROVE: immediate UI feedback / button change for successful boost/unboost
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
cb408e8fb3
🐛 FIX: copy past error
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
3e0572b3c3
🐛 FIX: no error if 'item.action' is undefined
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
a27ea99ff3
📦 NEW: different icon if post is boosted
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00
Jonas Sulzer
360b69d020
📦 NEW: unboost post if it was boosted previously
...
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-05-03 16:31:15 -01:00