summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/js
Commit message (Collapse)AuthorAgeFilesLines
* Fix sharing breadcrumbsJohn Molakvoæ (skjnldsv)2019-11-062-1024/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Adjust unit tests to new OCA.SidebarJohn Molakvoæ (skjnldsv)2019-10-291-207/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove deprecated legacy file actionsJulius Härtl2019-10-141-26/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move oc_webroot, OC.webroot and OC.getRootPath() to the bundleChristoph Wurst2019-05-061-3/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add link icon for public link tooJohn Molakvoæ (skjnldsv)2019-03-211-5/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Call proper function when fetching link shares in the breadcrumb viewJulius Härtl2019-01-221-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use grid view in other file views tooJan-Christoph Borchardt2018-10-183-6/+6
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix usage of deprecated OC.webrootChristoph Wurst2018-10-092-16/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add room shares to DAV and recent files "share-types" propertyDaniel Calviño Sánchez2018-08-081-0/+20
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix testsRoeland Jago Douma2018-05-011-2/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix sharedfilelistSpec.js testsRoeland Jago Douma2018-04-261-3/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix constructor spy in unit test with Sinon 4.1.3Daniel Calviño Sánchez2017-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a constructor is spied using Sinon it is wrapped by a proxy function, which calls the original constructor when invoked. When "new Foo()" is executed a "Foo" object is created, "Foo" is invoked with the object as "this", and the object is returned as the result of the whole "new" expression. Before Sinon 4.1.3 the proxy called the original constructor directly using the "thisValue" of the spied call; "thisValue" was the object created by the "new" operator that called the proxy. The proxy assigned "thisValue" to "returnValue", so it was also the value returned by the proxy and, in turn, the value returned by the whole "new" expression. Since Sinon 4.1.3 (see pull request 1626) the proxy calls the original constructor using "new" instead of directly. The "thisValue" created by the outermost "new" (the one that called the proxy) is no longer used by the original constructor; the internal "new" creates a new object, which is the one passed to the original constructor and returned by the internal "new" expression. This object is also the value returned by the proxy ("returnValue") and, in turn, the value returned by the whole outermost "new" expression. Thus, now "returnValue" should be used instead of "thisValue" to get the object created by the spied constructor. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* rip out obsolete recipientsDisplayNameArthur Schiwon2017-11-232-57/+4
| | | | | | also needs tests adjustements, and this also brings in natural sorting Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust tests and apply sortingArthur Schiwon2017-11-231-9/+23
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust more js unit testsArthur Schiwon2017-11-021-6/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix share indicator handlingVincent Petry2017-04-261-0/+78
| | | | | Properly update the fileInfoModel with the updated share types, which also updates the file list row indicator properly
* Merge pull request #4412 from individual-it/masterMorris Jobke2017-04-201-1/+0
|\ | | | | deleted forgotten code in test
| * deleted forgotten code in testArtur Neumann2017-04-201-1/+0
| | | | | | | | how embarrassing, left code from before I've done the loop around the test Signed-off-by: Artur Neumann <info@individual-it.net>
* | Merge pull request #4212 from individual-it/masterJoas Schilling2017-04-201-0/+99
|\| | | | | validate file name before uploading in upload only folder
| * remove accidently left over *f*itArtur Neumann2017-04-181-1/+1
| | | | | | Signed-off-by: Artur Neumann <info@individual-it.net>
| * JS tests for upload only functionArtur Neumann2017-04-181-0/+99
| | | | | | Signed-off-by: Artur Neumann <info@individual-it.net>
* | Fix AdBlock blocking share icon, ref #866Jan-Christoph Borchardt2017-04-122-22/+22
| | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | share api expanded by tags (#26583)Michael Jobst2017-04-111-15/+45
|/ | | | | | | | | | | | | | | | | | | | | | | | * share api expanded by tags * Modified files_sharing JS Unit tests * modified tests. renamed request parameter. refactoring * Update Share20OCS.php Added missing function description * Update Helper.php Added missing function description * Update Helper.php implicit boolean conversion to !empty() * Update Share20OCSTest.php Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix public link download buttonVincent Petry2017-03-201-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* shares-circlesMaxence Lange2017-03-171-1/+17
| | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* Add testsRoeland Jago Douma2016-11-071-0/+224
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-0/+23
| | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move some stuff over to the federatedfilesharing appBjoern Schiessle2016-07-141-245/+0
|
* Simplify test code and don't show anything if no date is setMorris Jobke2016-07-071-9/+3
|
* add unit testsMorris Jobke2016-07-071-3/+40
|
* Fix displaying owner before share icon in file listVincent Petry2016-03-301-1/+1
| | | | Initial display of owner was missing
* Add webdav property for share info in PROPFIND responseVincent Petry2016-03-171-21/+12
|
* Make file actions use icon CSS classesRoeland Jago Douma2016-02-251-13/+18
| | | | This makes theming of file actions possible
* Revert back to non-webdav download link for public URLsVincent Petry2016-02-101-4/+4
| | | | | Fixes issues with browsers not happy with the token. Fixes activities which were not sent.
* Construct valid URLRoeland Jago Douma2016-02-031-5/+3
|
* Fix public page URL JS testVincent Petry2016-01-081-1/+3
| | | | Stub the port so it doesn't use the one configured by karma
* Add token in webdav download link of public pageVincent Petry2016-01-071-3/+3
|
* Merge pull request #21200 from owncloud/files-authorizationheaderThomas Müller2015-12-171-1/+2
|\ | | | | Use Authorization headers for public webdav in web UI
| * Use Authorization headers for public webdav instead of URLVincent Petry2015-12-141-1/+2
| | | | | | | | | | | | Instead of prepending the token as username in the URL, use the Authorization header instead. This is because IE9 considers this a cross-domain call and refuses to do it in the first place.
* | Merge pull request #21189 from owncloud/fix_21187Thomas Müller2015-12-151-1/+1
|\ \ | | | | | | File shares can't have create permissions
| * | File shares can't have create permissionsRoeland Jago Douma2015-12-141-1/+1
| |/ | | | | | | fixes #21187
* / Fixed JS unit tests for fed owner display nameVincent Petry2015-12-141-0/+4
|/
* Fix public link getDownloadUrl to return Webdav public linkVincent Petry2015-11-251-4/+4
| | | | | | | | This is for apps that use getDownloadUrl() to access the Webdav endpoint for example for streaming. Also happens when clicking on the download action of a file. Note that the regular visible download URL is still the same.
* Fix port issue - options.host already has the port attachedThomas Müller2015-11-221-4/+2
|
* Make public link share page work with Webdav and add operationsVincent Petry2015-11-221-2/+18
| | | | | | | | The public page now uses the public.php/webdav endpoint. Also enabled more file operations like rename, move, delete and create folder from the public page, which are now all possible thanks to the public.php/webdav endpoint.
* Make files app use Webdav for most operationsVincent Petry2015-11-221-17/+9
|
* Bring back delete permission in share overviewVincent Petry2015-10-291-17/+9
|
* Fix and extend unit testsRoeland Jago Douma2015-10-021-11/+104
|
* Still show share link when recipient but no share permissionVincent Petry2015-09-281-10/+3
| | | | | | | | This makes it possible for the recipient to still trigger the sidebar and share tab to see information about the share. In the case where the file is not shared and no permissions exists, no action icon will be displayed.
* Update JS unit tests for share dialog (WIP)Vincent Petry2015-09-161-68/+57
|