summaryrefslogtreecommitdiffstats
path: root/src/components/Quote.vue
AgeCommit message (Collapse)Author
2023-05-12shorten components namesMaksim Sukharev
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-05-12Use the color-primary-element* variablesSimon L
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-03-09run linterMaksim Sukharev
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-03-02use all RichText related components/functions from @nextcloud/vueJulien Veyssier
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-02-23apply lint rules to .vue filesMaksim Sukharev
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2022-09-26Fix quotes of expired messagesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-31Move to @nextcloud/vue-richtextJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-08-18Adjust importsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-15Fix importsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-12Fix import of ButtonVueJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-23Update my emailMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2022-07-13Since v5.0.0 of the lib, the property decorative has been removed.Joas Schilling
This means the "decorative" is added to the span element, causing the HTML validation to fail: > Attribute decorative not allowed on element span at this point. Upstream commit https://github.com/robcresswell/vue-material-design-icons/commit/c65d8ea786ea49210193cb3129c12a68ed6c0baf > This patch also removes the default title, encouraging better > accessibility by removing unhelpful titles that dont indicate usage. The > `decorative` prop has been removed and any icons that do not have a > meaningful title will be hidden from screen readers. Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-11Focus input after closing quoteMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2022-07-11Move to single button and add label to "Cancel quote" buttonJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-18Fix remaining warningsmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Fix reply functionalitymarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-01-24Fix eslintJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-20Fix linter errorsmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2021-10-28Replace all mentions in quotesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-09-14Unify handling of deleted usersJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-23Fix event names to kebap-caseJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-23AutofixesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-12Remove "guest/" from actorStores actorId, so it matches the API valuesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-01-13Detect guest actor id for quote borderVincent Petry
Properly detect reply to guest users to update the quote border accordingly. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-01-13Quote border difference when own message is quotedVincent Petry
When a message different than an own is quoted, the border now appears grey. Otherwise for own messages it will still appear blue. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-23Adjusted heading levels in messages listVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-23Adjust headings in messages list to be more coherentVincent Petry
- h2 for the date which groups messages - h3 for actor display name and quote actor - replaced h6 with span for the date indicators on the right side Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-19Hide redundant elements from screen readersVincent Petry
Hide an extra "li" that was read as "one list item". Prevent saying "heading level 6" for h6 elements. Hide the already hidden file input dialog so one cannot tab to it. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-16Reduce preview size for reply boxVincent Petry
In the reply box the preview is too big and generates a scrollbar. This reduces the preview size there and also simplifies the matching property. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-13Adjustments for highlight messageVincent Petry
Added rounded borders. Whenever the hash changes as a result of clicking a link, the message is now also highlighted. However, it seems the browser already teleports there so scrollIntoView does nothing. This will need further research. Fixed Quote logic to actually receive a parent-id from NewMessageForm, which removes the console message about the missing required property. Tweaked scroll into view to focus on the top instead of center. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-13Fix click quote in new message formVincent Petry
When clicking the quote in the new message form, the original message is not properly focussed. The issue was that the Quote component is used in two separate scenarios and has inconsistent attributes (added FIXME to refactor that later). Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-13Highlight quote after scrolling to itVincent Petry
When clicking on a quote, we scroll to it and now there's a new highlight animation that fades out The animation and scrolling logic was moved from the Quote vue to the Message vue. The Quote vue will now only send an event to tell that we want to focus a specific message. A DOM-level method was used for triggering the highlight to be able to access it with document.getElementById() as it's cheaper than trying to look up the message by id within the collection of MessagesList. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-08-25Add scroll to parent upon clicking quoteMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-08-20Fix semantic markup for repliesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-09Show previews of files in quotesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-31Make quote color slightly lighterMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-02-06Merge pull request #2882 from nextcloud/rakekniven-patch-1Joas Schilling
l10n: Changed spelling of "user name" to "username"
2020-02-03Shorten the quote message when above 250 charsMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-02-01l10n: Changed spelling of "user name" to "username"rakekniven
Using "username" like on > 200 strings over the whole Nextcloud project. Signed-off-by: rakekniven mark.ziegler@rakekniven.de
2020-01-31Use CSS to shorten quoted messageMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-01-31Fix quote layoutMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-01-16Fix layout bugsMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-01-07Fix missing "Guests" placeholder on quotesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-18Fix m message width in the messages listMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2019-11-15Cut the quote after 2 newlines or max. 200 charsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-11-07Move Quote component to the root components folderMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>