summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
Commit message (Collapse)AuthorAgeFilesLines
* Bump eslint-config-nextcloud from 0.0.6 to 0.1.0dependabot-preview[bot]2019-12-191-1/+1
| | | | | | | | | | Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0. - [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases) - [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0) Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump css-loader from 3.2.1 to 3.3.2dependabot-preview[bot]2019-12-162-2/+2
| | | | | | | | | | Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.2.1 to 3.3.2. - [Release notes](https://github.com/webpack-contrib/css-loader/releases) - [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.2.1...v3.3.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix autocomplete suggestions with numeric user idsJoas Schilling2019-11-262-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Compile assetsnpmbuildbot[bot]2019-10-292-2/+2
| | | | Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Comply to eslintJohn Molakvoæ (skjnldsv)2019-10-012-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump webpack from 4.39.3 to 4.40.1dependabot-preview[bot]2019-09-132-2/+2
| | | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.39.3 to 4.40.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.39.3...v4.40.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump webpack from 4.39.2 to 4.39.3dependabot-preview[bot]2019-09-022-2/+2
| | | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.39.2 to 4.39.3. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.39.2...v4.39.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump sass-loader from 7.2.0 to 7.3.1dependabot-preview[bot]2019-08-252-2/+2
| | | | | | | | | | Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 7.2.0 to 7.3.1. - [Release notes](https://github.com/webpack-contrib/sass-loader/releases) - [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/sass-loader/compare/v7.2.0...v7.3.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump webpack from 4.39.1 to 4.39.2dependabot-preview[bot]2019-08-181-1/+1
| | | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.39.1 to 4.39.2. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.39.1...v4.39.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump style-loader from 0.23.1 to 1.0.0dependabot-preview[bot]2019-08-112-2/+2
| | | | | | | | | | Bumps [style-loader](https://github.com/webpack-contrib/style-loader) from 0.23.1 to 1.0.0. - [Release notes](https://github.com/webpack-contrib/style-loader/releases) - [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/style-loader/compare/v0.23.1...v1.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump webpack from 4.38.0 to 4.39.1dependabot-preview[bot]2019-08-042-2/+2
| | | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.38.0 to 4.39.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.38.0...v4.39.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump css-loader from 2.1.1 to 3.0.0dependabot-preview[bot]2019-06-252-2/+2
| | | | | | | | | | Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 2.1.1 to 3.0.0. - [Release notes](https://github.com/webpack-contrib/css-loader/releases) - [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/css-loader/compare/v2.1.1...v3.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump webpack from 4.31.0 to 4.32.2dependabot-preview[bot]2019-05-272-2/+2
| | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.31.0 to 4.32.2. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.31.0...v4.32.2) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Deprecate oc_current_user, fix usage and move currentUser to the bundleChristoph Wurst2019-05-082-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show comments and restore in popover menuJohn Molakvoæ (skjnldsv)2019-04-022-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move comments to webpackRoeland Jago Douma2019-02-2620-1715/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Show autocompletion as soon as "@" is typedDaniel Calviño Sánchez2019-01-311-3/+0
| | | | | | | | | In order to show the autocompletion it was needed to type at least another character after "@", so only the mentions that matched that character were shown. Now the autocompletion is shown as soon as "@" is typed, which shows all the possible mentions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix opening search results for commentsDaniel Calviño Sánchez2018-12-211-1/+3
| | | | | | | | | "OC.dirname" removes everything after the last "/", so a path without slashes is returned without changes. "result.path" does not include leading nor trailing "/", so when the path is for a file or folder in the base folder "OC.dirname(result.path)" returns "result.path". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix the comments UI and activities for space-mentionsJoas Schilling2018-11-071-4/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust some jsdocsJulius Härtl2018-10-241-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add icon to file sidebar tabsJulius Härtl2018-10-181-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move more comments to compiled handlebarsRoeland Jago Douma2018-10-155-27/+56
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove leftover 'Roeland Jago Douma2018-10-043-5/+5
| | | | | | Followup to #11583 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move Comments to compiled handlebarsRoeland Jago Douma2018-10-046-56/+128
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix contacts menu not triggered on certain areas of a mentionDaniel Calviño Sánchez2018-09-151-8/+7
| | | | | | | | | | The contacts menu was triggered only when the avatar or the name of the user were clicked. Due to this, clicking on certain (small) areas of a mention (like the right end, or the space between the avatar and the name) did not show the contacts menu. Now the contacts menu is shown when any area of the mention is clicked. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Reformat embedded HTML code to resemble HTML codeDaniel Calviño Sánchez2018-09-051-27/+31
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Remove space between avatar and user nameDaniel Calviño Sánchez2018-09-051-3/+3
| | | | | | | | | | | The avatar should be shown immediately after the avatar to be able to accurately define the space between them using only CSS rules. Note that in the case of the "atwho" menu it is not really needed, as a whitespace removal seems to be done automatically by the plugin, but it was modified for its displayed elements too for consistency. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Show avatar using "span" instead of "div"Daniel Calviño Sánchez2018-09-051-7/+7
| | | | | | | | Visually it makes no difference, but as the ".avatar" element is inside a "span" element it can not be a block element to be compliant with the HTML specification. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Do not parse HTML in user id and display nameJoas Schilling2018-08-281-16/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #9222 from ↵Morris Jobke2018-07-252-0/+135
|\ | | | | | | | | nextcloud/feature/noid/search-for-files-by-comments Allow to search files by comments
| * Brighter comments iconMorris Jobke2018-07-251-1/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Allow to search by commentsJoas Schilling2018-07-252-0/+133
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Limit small avatar rendering only to inline mentionsJulius Härtl2018-07-251-1/+5
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Focus the comment input on tab select/loadingJohn Molakvoæ (skjnldsv)2018-07-241-0/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix inline avatar display for mentions in commentsJulius Härtl2018-07-181-1/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fixing failing test cases due to change in functionality.Abijeet2018-03-271-3/+5
| | | | | | Also fixes scrutinizer warnings. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Adds a tooltip for the submit / save button in comments.Abijeet2018-03-272-3/+3
| | | | | | | | Towards #7281 Also hiding the menu before triggering click action. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Moves the edit and delete options into a dropdown menu.Abijeet2018-03-273-15/+149
| | | | | | | | | Fixes #7281 - Added a new View to render the dropdown. - Modified the existing code. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixes the following UI issues,Abijeet2018-03-271-5/+5
| | | | | | | | | | | | | | | | 1. Increased the size of the delete, edit, close and submit buttons to take up 44x44px. 2. Now showing the delete button at all times when editing to avoid usability issues with touch screens. 3. Edit icon is also shown at all times, rather than only on hover. 4. Reduced the gap between comments a wee bit. 5. Fixed issues with focus event now working properly for edit and delete. 6. Removed absolute positioning of elements for alignment. 7. Fixed issue with tooltips becoming too high due to padding around actions. Occurred due to my changes. 8. Changed the position of the submit and close icons. 9. Fixed issue with jumping of the delete icon in Firefox. Occurred due to my changes. 10. Fixed issue with wrapping of content due to long author names. Occurred due to my changes. 11. Fixed issue with longer comments not appearing properly. This might have occurred due to my changes. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixes div being added placed directly under ul during editing of comments.Abijeet2018-03-271-4/+5
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixes issue where saving a non-modified comment kept the edit window open.Abijeet2018-03-271-0/+6
| | | | | | Now irrespective of the whether the comment has been modified we are going to go back to the view mode. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Make the new autocomplete endpoint OCSJoas Schilling2018-03-211-6/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update commentstabview.jsrakekniven2018-03-011-1/+1
| | | | Changed typo reported at GitHub. See https://www.transifex.com/nextcloud/nextcloud/translate/#de_DE/$/91002505?issue=yes
* format links in commentsArthur Schiwon2018-01-031-3/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Show max warning comment lenth againRoeland Jago Douma2018-01-021-1/+1
| | | | | | | | | Fixes #7414 Since we no longer use an input field we have to use text instead of val. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7252 from nextcloud/send-comment-on-enterMorris Jobke2017-12-081-2/+6
|\ | | | | Submit comments with Enter and use Shift+Enter for new lines
| * Fix Enter sending comment instead of adding autocomplete item to messageDaniel Calviño Sánchez2017-12-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | When the autocomplete popover is shown the At.js plugin listens on the message input field for key down events, and when Enter is pressed it adds the selected item to the message. However, as "_onTypeComment" also handles key down events for the message input field, when Enter was pressed the comment was submitted and At.js had no chance to add the item before that happened. Now when Enter is pressed and the autocomplete popover is shown the comment is not submitted, and thus At.js adds the selected item to the message as expected. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Submit comments with Enter and use Shift+Enter for new linesDaniel Calviño Sánchez2017-11-231-2/+3
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #7256 from ↵blizzz2017-11-271-11/+23
|\ \ | | | | | | | | | | | | nextcloud/fix-cursor-for-avatar-and-user-names-in-comments Fix cursor for avatar and user names in comments
| * | Replace with non-deprecated JS callLukas Reschke2017-11-271-1/+1
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>