summaryrefslogtreecommitdiffstats
path: root/core/src/OC
Commit message (Collapse)AuthorAgeFilesLines
* Fix encoding issue with OC.Notification.showJoas Schilling2021-01-201-1/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix loading mtime of new file in conflict dialog in firefoxRobin Appelman2020-12-011-4/+4
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Bump jquery from 2.2.4 to 3.1.0Christoph Wurst2020-11-131-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not print deprecation warnings during testingChristoph Wurst2020-11-101-2/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* ensure filepicker list is empty before populatingRobin Appelman2020-11-021-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* catch errors when closing file conflict dialogRobin Appelman2020-10-281-1/+5
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Compile assetsnpmbuildbot[bot]2020-10-281-5/+5
| | | | | Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove outdated legacy search scriptsJohn Molakvoæ (skjnldsv)2020-08-042-43/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump @nextcloud/eslint-config and peersJohn Molakvoæ (skjnldsv)2020-07-311-11/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump compiled filesJohn Molakvoæ (skjnldsv)2020-07-318-47/+47
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use DOMContentLoaded and fix sharebymail loading issueJohn Molakvoæ (skjnldsv)2020-07-201-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix parsing of language codeDaniel Kesselberg2020-07-091-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Make closing dialogs callback with falseGary Kim2020-06-301-0/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Fix export for davclient.js legacy dependencyJulius Härtl2020-06-241-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make the confirm dialog modal by defaultJoas Schilling2020-06-151-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Actually remove _capabilitiesRoeland Jago Douma2020-06-051-2/+1
| | | | | | Leftover from a previous PR. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move humanFileSize and OC.getCanonicalLocale to npm packagesChristoph Wurst2020-06-053-13/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* OC.routing is just a @nextcloud/routing proxyRoeland Jago Douma2020-06-041-152/+5
| | | | | | So lets kill the duplicate code! Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix some linter warningRoeland Jago Douma2020-06-024-4/+9
| | | | | | | Part of my ongoing battle against deprecation messages. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Move to @nextcloud/capabilities packageRoeland Jago Douma2020-05-291-2/+5
| | | | | | And kill of oc_capabilities and _oc_capabilities globals Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make the translation sanitization optionalChristoph Wurst2020-05-271-8/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprectae OC.Util.formatDate and OC.Util.relativeModifiedDateRoeland Jago Douma2020-05-151-0/+2
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix replacement dialogRoeland Jago Douma2020-05-071-2/+2
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix breadcrumb in move or copy file dialogLoïc Hermann2020-04-171-0/+6
| | | | Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Inline usages of OCP.Toast in bundled filesChristoph Wurst2020-04-061-13/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update eslint and switch to @nextcloud packagesChristoph Wurst2020-03-252-3/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove deprecated global variablesChristoph Wurst2020-03-092-4/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Copy isFileNameValid function, so the filepicker works without the files appJoas Schilling2020-02-251-2/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix "TypeError: u.$form is undefined"Joas Schilling2020-02-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to create directories when they are selectableJoas Schilling2020-02-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Deprecate OC router helpers that are provided by packagesChristoph Wurst2020-02-133-10/+46
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add more tests for the new js modulesChristoph Wurst2020-02-101-9/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Added space before ellipsisrakekniven2020-02-051-1/+1
| | | | | Signed-off-by: rakekniven <mark.ziegler@rakekniven.de> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* l10n: Triple dot to ellipsisrakekniven2020-02-041-1/+1
| | | Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
* Bump eslint-config-nextcloud from 0.0.6 to 0.1.0dependabot-preview[bot]2019-12-1917-104/+103
| | | | | | | | | | 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>
* Allow to have mutliple buttons on the filepickerJoas Schilling2019-12-091-12/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a transfer ownership background jobRoeland Jago Douma2019-12-021-2/+2
| | | | | | | | | | | | This job can be initiated by a user to transfer a file/folder to a target user. The target user will have to accept the job. Once that is done the transfers is initiated in the background. Both parties get notified when the job is done. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Prompt on destructive user actionsGary Kim2019-11-051-0/+49
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Use @nextcloud/paths and deprecate OC helpersChristoph Wurst2019-10-052-124/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Emit an event when the CSRF token changesChristoph Wurst2019-10-052-11/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move to escape-htmlRoeland Jago Douma2019-10-041-0/+1
| | | | | | | * 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-041-3/+4
| | | | | 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-0132-1597/+1605
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Append / to data('path') for folder content requestDaniel Kesselberg2019-09-281-1/+1
| | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Move settings to an appChristoph Wurst2019-09-282-2/+2
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Properly import DOMPurify in l10n.jsRoeland Jago Douma2019-09-251-0/+1
| | | | | | | Fixes a bunch of warning in the console. And fixed the doube escaping. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Ignore Enter key up event on menu button togglesDaniel Calviño Sánchez2019-08-281-2/+2
| | | | | | | | | | | | 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>
* filepicker: Add option to also choose folders without a mimetype limitJulius Härtl2019-08-211-4/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix default timeouts in OC.NotificationDaniel Calviño Sánchez2019-07-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | 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>
* Rename parameter in OCP.Toast for consistency with OC.NotificationDaniel Calviño Sánchez2019-07-121-1/+1
| | | | | | | | 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>