summaryrefslogtreecommitdiffstats
path: root/core/js
Commit message (Collapse)AuthorAgeFilesLines
* Bump nextcloud/event-bus to 0.2.1Roeland Jago Douma2019-10-116-43/+43
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use @nextcloud/paths and deprecate OC helpersChristoph Wurst2019-10-057-327/+60
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Switch to @nextcloud/axios for the CSRF update fixChristoph Wurst2019-10-056-154/+91
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Remove the tests since the library is testedRoeland Jago Douma2019-10-041-11/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move to escape-htmlRoeland Jago Douma2019-10-046-82/+83
| | | | | | | * If there is a package that does exactly the same then lets us use that * Import it properly in the internals (less deprecation warnings) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Split drone webpack testsJohn Molakvoæ (skjnldsv)2019-10-046-6/+6
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Comply to eslintJohn Molakvoæ (skjnldsv)2019-10-0124-2296/+2327
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump dompurify from 2.0.1 to 2.0.3dependabot-preview[bot]2019-09-306-6/+6
| | | | | | | | | Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.1 to 2.0.3. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/2.0.1...2.0.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump webpack from 4.40.2 to 4.41.0dependabot-preview[bot]2019-09-296-11/+11
| | | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.40.2 to 4.41.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.40.2...v4.41.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Append / to data('path') for folder content requestDaniel Kesselberg2019-09-286-6/+6
| | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Move oauth admin settings to initialstateRoeland Jago Douma2019-09-2812-316/+316
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Move settings to an appChristoph Wurst2019-09-286-6/+6
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Remove input id on login formJohn Molakvoæ (skjnldsv)2019-09-2812-99/+99
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Properly import DOMPurify in l10n.jsRoeland Jago Douma2019-09-256-49/+49
| | | | | | | Fixes a bunch of warning in the console. And fixed the doube escaping. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump dompurify from 2.0.0 to 2.0.1dependabot-preview[bot]2019-09-232-2/+2
| | | | | | | | | Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.0 to 2.0.1. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/2.0.0...2.0.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump handlebars from 4.2.0 to 4.2.1dependabot-preview[bot]2019-09-226-139/+58
| | | | | | | | | | Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/v4.2.1/release-notes.md) - [Commits](https://github.com/wycats/handlebars.js/compare/v4.2.0...v4.2.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump bundlesJulius Härtl2019-09-152-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fallback to directory icon based on the mount typeJulius Härtl2019-09-151-4/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump dompurify from 1.0.11 to 2.0.0dependabot-preview[bot]2019-09-152-2/+2
| | | | | | | | | | Bumps [dompurify](https://github.com/cure53/DOMPurify) from 1.0.11 to 2.0.0. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/1.0.11...2.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump css-vars-ponyfill from 2.1.1 to 2.1.2dependabot-preview[bot]2019-09-152-3/+3
| | | | | | | | | | Bumps [css-vars-ponyfill](https://github.com/jhildenbiddle/css-vars-ponyfill) from 2.1.1 to 2.1.2. - [Release notes](https://github.com/jhildenbiddle/css-vars-ponyfill/releases) - [Changelog](https://github.com/jhildenbiddle/css-vars-ponyfill/blob/master/CHANGELOG.md) - [Commits](https://github.com/jhildenbiddle/css-vars-ponyfill/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump jstimezonedetect from 1.0.6 to 1.0.7dependabot-preview[bot]2019-09-144-4/+4
| | | | | | | | | | Bumps [jstimezonedetect](https://github.com/pellepim/jstimezonedetect) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/pellepim/jstimezonedetect/releases) - [Changelog](https://github.com/pellepim/jstimezonedetect/blob/master/changelog.md) - [Commits](https://github.com/pellepim/jstimezonedetect/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Deprecate the global DOMPurifyChristoph Wurst2019-09-142-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump webpack from 4.39.3 to 4.40.1dependabot-preview[bot]2019-09-1310-84/+84
| | | | | | | | | 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>
* Fix opening apps with Ctrl+clickJulius Härtl2019-09-102-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump handlebars from 4.1.2 to 4.2.0dependabot-preview[bot]2019-09-086-60/+141
| | | | | | | | | | Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.2.0. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.2.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump @babel/polyfill from 7.4.4 to 7.6.0dependabot-preview[bot]2019-09-081-1/+1
| | | | | | | | | | Bumps [@babel/polyfill](https://github.com/babel/babel) from 7.4.4 to 7.6.0. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](https://github.com/babel/babel/compare/v7.4.4...v7.6.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Install Select2 via npmChristoph Wurst2019-09-052-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #16454 from ↵Roeland Jago Douma2019-09-043-7/+2
|\ | | | | | | | | nextcloud/bugfix/noid/sharelink-shouldnt-open-menu-automatically Dont show menu automatically when share link is clicked
| * Dont show menu automatically when share link is clickedGreta Doci2019-08-293-7/+2
| | | | | | | | Signed-off-by: Greta Doci <gretadoci@gmail.com>
* | Bump webpack from 4.39.2 to 4.39.3dependabot-preview[bot]2019-09-028-58/+16
|/ | | | | | | | | 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>
* Ignore Enter key up event on menu button togglesDaniel Calviño Sánchez2019-08-286-6/+6
| | | | | | | | | | | | Like links, buttons generate a "click" event as well as the regular "keydown" and "keyup" events when pressing Enter. Due to this, if both the "click" and the "keyup" events are handled, when the menu is open and Enter is pressed in the toggle the menu is first hidden when the first event is handled, but then shown again when the second event is handled. To prevent that only the "click" event should be handled when the toggle is a button, like it is already done with links. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Bump sass-loader from 7.2.0 to 7.3.1dependabot-preview[bot]2019-08-254-4/+4
| | | | | | | | | | 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>
* adviced should be advisedVictor Goff2019-08-232-2/+2
| | | | Signed-off-by: Victor Goff <keeperotphones@gmail.com>
* Properly handle failures and allow choosing folders for projectsJulius Härtl2019-08-216-6/+6
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Merge pull request #16781 from nextcloud/bug/fix-password-resetRoeland Jago Douma2019-08-192-2/+2
|\ | | | | Send new password instead of empty string
| * Update bundlesJulius Härtl2019-08-192-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Bump css-vars-ponyfill from 2.0.2 to 2.1.1dependabot-preview[bot]2019-08-182-4/+4
|/ | | | | | | | | | Bumps [css-vars-ponyfill](https://github.com/jhildenbiddle/css-vars-ponyfill) from 2.0.2 to 2.1.1. - [Release notes](https://github.com/jhildenbiddle/css-vars-ponyfill/releases) - [Changelog](https://github.com/jhildenbiddle/css-vars-ponyfill/blob/master/CHANGELOG.md) - [Commits](https://github.com/jhildenbiddle/css-vars-ponyfill/commits) 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-188-15/+15
| | | | | | | | | 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-118-42/+42
| | | | | | | | | | 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 css-loader from 3.1.0 to 3.2.0dependabot-preview[bot]2019-08-112-2/+2
| | | | | | | | | | Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.1.0 to 3.2.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/v3.1.0...v3.2.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump blueimp-md5 from 2.11.0 to 2.11.1dependabot-preview[bot]2019-08-111-1/+1
| | | | | | | | | Bumps [blueimp-md5](https://github.com/blueimp/JavaScript-MD5) from 2.11.0 to 2.11.1. - [Release notes](https://github.com/blueimp/JavaScript-MD5/releases) - [Commits](https://github.com/blueimp/JavaScript-MD5/compare/v2.11.0...v2.11.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix ie app menu loading clickJohn Molakvoæ (skjnldsv)2019-08-062-2/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.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-048-35/+35
| | | | | | | | | 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>
* Move actual password reset to vueJulius Härtl2019-07-316-41/+41
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add unit tests for "OC.Notification.hide()"Daniel Calviño Sánchez2019-07-261-0/+56
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix default timeouts in OC.NotificationDaniel Calviño Sánchez2019-07-267-10/+36
| | | | | | | | | | | | | | | | | | | | | | When no timeout was given "show()" used the default timeout of "OCP.Toast", which is 7 seconds instead of indefinitely as stated in the documentation of "show()". "showHtml()" should also indefinitely show the notification if no timeout is given, but due to the strict comparison the notification was indefinitely shown only when a timeout of 0 was explicitly given. Now both methods show the notification indefinitely (or until it is explicitly hidden) when no timeout is given. The unit tests did not catch this error because "showHtml()" had no tests (as before the move to Toastify it was called from "show()" and thus implicitly tested), and because "show()" verified that "hide()" was not called after some time; "hide()" is no longer called from "show()" since "OCP.Toast" is used internally, so the test always passed even if the notification was indeed hidden. Now the test is based on whether the element is found or not, and explicit tests were added too for "showHtml()". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix mixed test for "show" and "showTemporary"Daniel Calviño Sánchez2019-07-261-1/+19
| | | | | | | | "showTemporary()" when a timeout was given was being tested along with the "show()" tests; now there are two separate tests when a timeout is given, one for "showTemporary()" and one for "show()". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Check number of elements instead of if the jQuery object is definedDaniel Calviño Sánchez2019-07-261-4/+4
| | | | | | | | Tje jQuery object created through "$('#testArea .toastify')" will be always defined even if no elements were found, so the check does not really work; instead, it should be checked the number of elements found. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Bump blueimp-md5 from 2.10.0 to 2.11.0dependabot-preview[bot]2019-07-211-1/+1
| | | | | | | | | Bumps [blueimp-md5](https://github.com/blueimp/JavaScript-MD5) from 2.10.0 to 2.11.0. - [Release notes](https://github.com/blueimp/JavaScript-MD5/releases) - [Commits](https://github.com/blueimp/JavaScript-MD5/compare/v2.10.0...v2.11.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Rename parameter in OCP.Toast for consistency with OC.NotificationDaniel Calviño Sánchez2019-07-127-13/+18
| | | | | | | | This fixes HTML messages in "OC.Notification.showTemporary" (as "showHtml" was not set based on "isHTML"), and also makes OCP.Toast to keep the old OC.Notification API when used directly. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>