Commit Graph

69 Commits (d790c27a19494346bc7293bee00026201f2910f0)

Author SHA1 Message Date
Morris Jobke d790c27a19
Reduce JSHint errors/warnings
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Morris Jobke 413d671d9e Merge pull request #3635 from individual-it/fix_quota_validation
better quota validation
7 years ago
Artur Neumann 9790fe7f5d make values with white spaces possible
a user might enter values with white spaces, and that should be possible
and valid

Signed-off-by: Artur Neumann <info@individual-it.net>
7 years ago
Artur Neumann f1fccaca06 better quota validation
this fixes #3634

1. fixed computerFileSize to be more picky about incorrect values
2. more tests for computerFileSize
3. use computerFileSize to validate user quota

Signed-off-by: Artur Neumann <info@individual-it.net>
7 years ago
m3ntalsp00n dd9ee2db6f fix tests, longer wait time, update notification stub
Signed-off-by: m3ntalsp00n <m3ntalsp00n@gmail.com>
7 years ago
Christoph Wurst da28a1612e expect warning to be shown
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
7 years ago
Patrick Paysant d4c088cb79
Verify input, add more unit tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Patrick Paysant ec4bca619d
Add test for unparseable string
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Patrick Paysant ff018d48cf
Implements all comments from @PVince81
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Patrick Paysant 6217393d6a
Adding computerFileSize in OC.Util
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Robin Appelman e055fbd4da
adjust js tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
8 years ago
Vincent Petry 25d9dce067
JS utility function to compare paths
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Christoph Wurst 5ae6d62811
do not reload the page if the server is (temporarily) unreachable 8 years ago
Hendrik Leppelsack 61e604c2d9 adjusts tests to removal of svg fallback 8 years ago
Lukas Reschke 2c4ef37025 Merge pull request #24126 from owncloud/err-reload-delay
Delay reloading the page if an ajax error occurs, show notification
8 years ago
Robin McCorkell 62024d74d4 Add test for reload delay 8 years ago
Morris Jobke 6b66f2dfb4 Merge pull request #23990 from owncloud/heartbeat-debounce
Debounce heartbeat ajax calls to lower the number of requests
8 years ago
Christoph Wurst 2d772eaaa8
Debounce heartbeat ajax calls to lower the number of requests
fixes #22397
8 years ago
Christoph Wurst 5900e46f01
Turn off jQuery animations when testing 8 years ago
Christoph Wurst 3e1f1ccc76 downgrade jquery, update jquery-migrate 8 years ago
Vincent Petry 06e7856400 Adjust core unit tests for unload/reload cases 8 years ago
Vincent Petry 8ea80e114a Accumulate notifications instead of blinking
This makes it possible to display multiple notifications.
If the options.type is set to "error", it will also add a close button.
8 years ago
Vincent Petry b8b77709c0 Add handler for global ajax errors 8 years ago
Morris Jobke 6e096936e5 update JS humanFileSize to use KB instead of kB 8 years ago
Joas Schilling f04151f69b Close the user menu when clicking it again 9 years ago
Vincent Petry 1b7d42c569 Fix OC.joinPaths with empty arguments
When empty arguments are given, the leading or trailing slash was not
detected properly.
9 years ago
Vincent Petry fbc03b43b9 More tests for joinPaths 9 years ago
Vincent Petry 119e27166e Add OC.joinPaths for convenient path joining 9 years ago
Jan-Christoph Borchardt d1db727d1f mock up missing elements in the tests 9 years ago
Lukas Reschke 27c1409be5 Encode parameters in `OC.generateUrl` by itself
This function is often used in a wrong and potential dangerous way... Thus we should escape the URL per default and offer developers to disable the automatic escaping via an option parameter if they really want that behaviour.

Might break some things, however, those things are then easy to fix and we really have a ton of bugs caused by this...

Fixes https://github.com/owncloud/core/issues/14228
9 years ago
Thomas Müller ccc1f09627 generate valid human readable text for 0 - fixed #9342 9 years ago
Morris Jobke 8e1904386f Add timeout for notifications
* options for timeout in seconds and if it contains HTML
* if timeout is 0 it will show the message permanently
* removes the notification after a given (default: 5 seconds) timeframe
* based on work by @brantje
* provide JS unit tests for notifications
9 years ago
Vincent Petry c02ef69521 Simple Plugin system for Javascript 10 years ago
Lukas Reschke d2743e6ad6 Merge pull request #7254 from owncloud/core-sortalgo
Fixed JS sort comparator to be consistent between JS and PHP
10 years ago
Thomas Müller fd92fc7c47 Merge pull request #9753 from owncloud/filepath-css
Remove special case for css in OC.filePath
10 years ago
Lukas Reschke e3c99a8505 Add beforeeach and aftereach 10 years ago
Lukas Reschke cabd70148f Add unittest for filePath 10 years ago
Clark Tomlinson ba0e65753b Init vars with a value if none is provided 10 years ago
Vincent Petry f2001a48a4 Fixed sort algo for additional cases 10 years ago
Vincent Petry 173059f6d0 Fixed file list sorting
Now using a natural sort algorithm that is more consistent between JS
and PHP (although not perfect in some corner cases)

- added OC.Util.naturalSortComparator that uses the same algo that was
  used for the user list
- changed user list and files list to use OC.Util.naturalSortComparator
- removed toLowerCase() and changed the comparator to use
  String.localeCompare()
- added unit tests
- added OC_NaturalSort that is used by OCP\Util::naturalSortCompare()
10 years ago
Vincent Petry 4fea521102 Fix enforced share expiration date to be based on share time 10 years ago
Vincent Petry 6a0f5cfc61 Added unit tests for heartbeat interval min/max values 10 years ago
Morris Jobke e186871996 fix unit test template 10 years ago
Morris Jobke e3cbcadbd8 fix first failing test 10 years ago
Vincent Petry 52d9e313d1 Remove obsoleted code to trigger navigation menu
Now that the navigation menu is always togglable, the media query
dependent code can be removed.
10 years ago
Morris Jobke 5add56b6ca Merge pull request #7485 from owncloud/scrutinizer_fix_1_kondou
Scrutinizer cleanup
10 years ago
Frank Karlitschek f12a5248a3 Merge pull request #8820 from owncloud/design-details
Design details
10 years ago
kondou 9bc3f3cf30 Scrutinizer cleanup 10 years ago
Morris Jobke fbe42a771f fix unit tests after introduction of animations - adds delays for click trigger 10 years ago
Morris Jobke dd8b7b7af8 Merge pull request #8613 from owncloud/filesize-alignment
Improve aligment of file size
10 years ago