summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/js
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-06-063-66/+8
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(tests): Adjust legacy tests for nextcloud-router updateFerdinand Thiessen2024-01-251-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: public dav and files_sharing testing fixesJohn Molakvoæ2024-01-092-6/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: adjust testingJohn Molakvoæ2023-07-111-125/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix jsunit testsJulius Härtl2022-09-011-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove legacy #dir element in files listVincent Petry2022-07-271-1/+4
| | | | | | | | | | Removed legacy "#dir" input element in the DOM. Apps should use OCA.Files.App.currentFileList or OCA.Sharing.PublicApp.fileList and call getCurrentDirectory() to retrieve the current directory and changeDirectory() to change it. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add missing closing spans and avoid empty hrefVincent Petry2022-07-261-0/+1
| | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Replace files app ids to classesVincent Petry2022-07-263-8/+8
| | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace license information to SPDX expressionLouis Chemineau2022-01-114-7/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-314-41/+67
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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