Roeland Jago Douma
6c489a6d40
Move to escape-html
* 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>
4 years ago
John Molakvoæ (skjnldsv)
972279d31b
Split drone webpack tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
4 years ago
John Molakvoæ (skjnldsv)
b9bc2417e7
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
4 years ago
Daniel Kesselberg
90e22c25f1
Append / to data('path') for folder content request
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
4 years ago
Christoph Wurst
de6940352a
Move settings to an app
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
4 years ago
John Molakvoæ (skjnldsv)
f737dc9a86
Remove input id on login form
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
4 years ago
Roeland Jago Douma
d19ed224c1
Properly import DOMPurify in l10n.js
Fixes a bunch of warning in the console.
And fixed the doube escaping.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 years ago
Christoph Wurst
db7cd7d5d8
Deprecate the global DOMPurify
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Julius Härtl
a8a7972266
Fix opening apps with Ctrl+click
Signed-off-by: Julius Härtl <jus@bitgrid.net>
4 years ago
Christoph Wurst
0a547c94ff
Install Select2 via npm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Daniel Calviño Sánchez
cb93af6675
Ignore Enter key up event on menu button toggles
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>
4 years ago
Julius Härtl
f5352b9c67
filepicker: Add option to also choose folders without a mimetype limit
Signed-off-by: Julius Härtl <jus@bitgrid.net>
4 years ago
Julius Härtl
273cd3870d
Force proper action for login form
Signed-off-by: Julius Härtl <jus@bitgrid.net>
4 years ago
Daniel Kesselberg
6094c9dc39
Send new password instead of empty string
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
4 years ago
John Molakvoæ (skjnldsv)
287393609d
Fix ie app menu loading click
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
4 years ago
Julius Härtl
3b0d13944a
Move actual password reset to vue
Signed-off-by: Julius Härtl <jus@bitgrid.net>
4 years ago
Daniel Calviño Sánchez
03f2e8a10e
Fix default timeouts in OC.Notification
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>
4 years ago
Daniel Calviño Sánchez
916c95758f
Rename parameter in OCP.Toast for consistency with OC.Notification
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>
5 years ago
Phie
8fa2d70e9e
adding toggle password to be able to see it
Signed-off-by: Phie <phie@phie.ovh>
5 years ago
Akshala Bhatnagar
4bd639640b
Update core/src/components/login/ResetPassword.vue
Co-Authored-By: Julius Härtl <jus@bitgrid.net>
5 years ago
Akshala Bhatnagar
4cf360270f
changed the text for reset password
Signed-off-by: Akshala Bhatnagar <akshala.bhatnagar@gmail.com>
5 years ago
Christoph Wurst
e9860c89ca
Show contacts app mgmt link in contacts menu
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
409acf1131
Fix js l10n registration to also work with more than one bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
ac0e414a18
Deprecate window.location wrappers for redirect and reload
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Julius Härtl
e76a926ea7
Temporary fix for project translations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
5 years ago
Julius Härtl
6d848b545d
Adjust jsunit tests for new toast library
Signed-off-by: Julius Härtl <jus@bitgrid.net>
5 years ago
Julius Härtl
2d0337332d
Add toastify js as a OC.Notification replacement
Signed-off-by: Julius Härtl <jus@bitgrid.net>
5 years ago
nacho
3c30d293fa
CSS: adjust media query breakpoint to improve tablet readability
see https://github.com/nextcloud/news/pull/467
5 years ago
Christoph Wurst
64c4bb5bce
Vueify the login page
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Robin Appelman
1799e1acaf
dont use deprecated oc_config in url generation
Signed-off-by: Robin Appelman <robin@icewind.nl>
5 years ago
Christoph Wurst
0cfcccee29
Migrate the maintenance script to a modern module and bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
ab72bd64f5
Move legacy Ajax error handling logic to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
07699c199d
Move OC.appSettings to the bundle and deprecate it
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
291c4a121e
Move query string helpers to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
0f3e438f7c
Move OC.theme to the bundle and deprecate oc_defaults
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
2f5df9387d
Deprecate OC.fileIsBlacklisted and move it to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
6a8bc02b16
Move OC.addTranslations to the bundle and deprecate it
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
9aeed859c4
Move OC host/port/protocol helpers to the bundle and deprecate them
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
6b46d9f2e5
Move OC.getCapabilities to the bundle and deprecate OC._capabilities, oc_capabilities
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
a5ec4a9af4
Move l10n functions to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
e3ae7dc115
Move path helpers to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
c624c102a6
Move OC.requestToken to the bundle, deprecate oc_requesttoken
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Joas Schilling
fc1987b8c4
Revert displayName casing
Regression from 278c281cc9
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
51d49c3134
Move initCore to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
3cda6237ef
Do not show deprecation warnings during test runs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
John Molakvoæ (skjnldsv)
d6710b597b
Fix mobile vertical scrolling
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
5 years ago
Christoph Wurst
73f9f15607
Move the legacy OC.addScript and OC.addStyle helpers to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
278c281cc9
Deprecate oc_current_user, fix usage and move currentUser to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
b2165059d4
Move OC legacy menu helpers to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
944364d866
Move rest of contant-like OC props to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago