aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC/notification.js
Commit message (Collapse)AuthorAgeFilesLines
* chore: fix usage of deprecated functions and adjust code styleFerdinand Thiessen2024-09-201-2/+2
| | | | | | | | This solves 57 ESLint warnings by replacing deprecated code with `@nextcloud/` libraries, as well as adding missing type information, importing jQuery instead of relying on global one, and the same with Moment.js. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Enable ESLint for apps and fix all errorsFerdinand Thiessen2024-07-091-4/+4
| | | | | | | | | Nevertheless this causes a huge amount of new warnings. Previously the shell script for directories to lint was wrong it was generating all app names to lint, but was missing the `apps/` prefix. Causing only `core` to be linted. Co-authored-by: Grigorii K. Shartsev <me@shgk.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-24/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Replace license information to SPDX expressionLouis Chemineau2022-01-111-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Import type from packagesLouis Chemineau2022-01-111-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Typing correctionsLouis Chemineau2022-01-111-3/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Eslint fixJohn Molakvoæ (skjnldsv)2022-01-081-8/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-311-2/+8
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix encoding issue with OC.Notification.showJoas Schilling2021-01-201-1/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.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>
* Bump compiled filesJohn Molakvoæ (skjnldsv)2020-07-311-7/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Inline usages of OCP.Toast in bundled filesChristoph Wurst2020-04-061-13/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Comply to eslintJohn Molakvoæ (skjnldsv)2019-10-011-34/+31
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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>
* Add toastify js as a OC.Notification replacementJulius Härtl2019-06-071-113/+42
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move OC.Notification to the server bundleChristoph Wurst2019-02-011-0/+232
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>