Commit Graph

707 Commits

Author SHA1 Message Date
Nina Pypchenko c14638877c Add "Crop image previews" setting to files
Added a new user setting that toggles cropping on image previews
in grid view.

True (default value): crops each image to a square. False: keep original
aspect ratio.

Signed-off-by: Nina Pypchenko <22447785+nina-py@users.noreply.github.com>

Closes #18439.

Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-01-14 17:36:17 +00:00
Julius Härtl f9536b0809
Check for target folder available quota when uploading
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-17 09:43:44 +01:00
Christoph Wurst ae0a496da8
Bump jquery from 2.2.4 to 3.1.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-13 08:46:35 +01:00
Vincent Petry 805676309b
Bring back the restore share button
Fix disabled default file action to still use an anchor element, as this
is used in many other places (and potentially apps).

Adjusted anchor style to not look like it's clickable and added extras
to make sure everything inside still looks clickable as before.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-10-22 15:06:11 +02:00
John Molakvoæ (skjnldsv) 9172b9ad20
Fix sidebar legacy fileinfo
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-10-17 15:55:14 +02:00
John Molakvoæ (skjnldsv) 4de6e80771
Upgrade lifecycle and vue parent context
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-10-07 09:40:59 +02:00
John Molakvoæ (skjnldsv) 843d799a2e
Move Files Sidebar to proper javascript standard
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-10-07 09:40:58 +02:00
Julius Härtl d5e854e7ef Expose currently active file list though OCA.Files.App
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-25 22:42:44 +02:00
John Molakvoæ (skjnldsv) 6eced42b7a
Remove outdated legacy search scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-08-04 20:56:22 +02:00
John Molakvoæ (skjnldsv) 6fcd075730
Use DOMContentLoaded and fix sharebymail loading issue
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-07-20 12:42:08 +02:00
Robin Appelman 128910ebf1
provide feedback about minimum length needed to trigger search
instead of telling users that there are no results, tell them that search hasn't been triggered yet

Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-07-15 11:19:51 +02:00
Azul 43f0d2a3b5 Allow opening files for editing in new tabs
In a file list files with a default action
have an href that will trigger the action.
This way ctrl-click and middle button click open the default action in a new tab.

In order to achieve this a new param `openfile` was introduced to the files app.
It will make the files app trigger the default action for the file in question.
This also allows linking to file content rather than just the details display.

Introduce fileList.getDefaultActionUrl()
to create a link with that param set.
It's overwritten in the trashbin fileList
so that anchors continue to have `#` as a href.

Fix the link generation for subfolders of public shares:
58a87d0 was the last commit that touched the linkTo function in public.js.
It included the params as arguments to the generateUrl function.
Turns out this completely ignores the dir parameter now.
The inclusion was reverted in other places
so revert it here as well.
Also change `dir` to `path` in the param as that is respected
when following the link.

Add Test for the new link url for files with default action.
Remove test for multiple selects with ctrl-click
as that is not what we are doing anymore.

Signed-off-by: Azul <azul@riseup.net>
2020-04-09 16:41:09 +02:00
Azul d2728cbdc1 refactor: fileActions.getCurrentDefaultFileAction()
fileActions.getCurrentDefaultFileAction() returns the default file action
for the currently selected file.

There were a number of places querying for the mime, type and permissions
of that file first to then query for the default action.

Signed-off-by: Azul <azul@riseup.net>
2020-04-08 18:19:58 +02:00
GretaD b201121e62 Fix default action for deleted shares
Signed-off-by: GretaD <gretadoci@gmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-03-09 20:16:38 +00:00
Christoph Wurst bb1d8b3189
Remove deprecated global variables
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-09 13:31:50 +01:00
Julius Härtl af4139ce64
Show proper file name when fetching details fails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-12 14:14:14 +01:00
Joas Schilling 034fefa7b7
Removed nested call to beforeunload
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-06 20:35:00 +01:00
John Molakvoæ (skjnldsv) b476659ac8
Fix legacy tabs
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-01-29 16:44:53 +01:00
Julius Härtl bfaf28452b
Adjust filelist color handling to new dark theme value
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-24 10:31:18 +01:00
Julius Härtl 8a5632d3a1
Do not show sidebar on rename (fixes #18613)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-15 11:00:07 +01:00
Julius Härtl f7b267a61b
Properly set current file info when switching the details view
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-15 11:00:07 +01:00
John Molakvoæ (skjnldsv) 27dc4ef268 Fix Sidebar enabled check
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2019-12-19 07:51:49 +00:00
John Molakvoæ (skjnldsv) f3cdf7e4c1
Properly reload file list on share accept
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-12-04 11:29:04 +01:00
John Molakvoæ (skjnldsv) 16e0887ec6
Use function to open a sidebar file
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-11-13 14:34:44 +01:00
John Molakvoæ (skjnldsv) d88b93c919 Add LoadSidebar event
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-10-29 13:20:07 +01:00
John Molakvoæ (skjnldsv) fd90af50d9 Add OCA.Files.Sidebar
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-10-29 12:56:00 +01:00
Julius Härtl 975c1982a0
Allow registering header sections in the file lists
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-10-23 08:48:15 +02:00
Julius Härtl 5e4eda1ae0
Remove deprecated legacy file actions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-10-14 19:19:16 +02:00
Thomas Ebert e47a7f0a95 Allow options to be passed to `FileList.createFile`, so that `scrollTo` can be overridden.
Signed-off-by: Thomas Ebert <thomas.ebert@te-online.net>
2019-09-16 15:17:05 +02:00
Roeland Jago Douma 6093acd4f0
Merge pull request #16969 from nextcloud/bugfix/14350/thumbnail_should_open_thefile_not_sidebar
When you click on thumbnail of a file, it should open the file not the sidebar
2019-09-03 07:52:34 +02:00
Greta Doci ac2c1ddd4e Change filelist _onClickFile function so thumbnail to open the file instead of the sidebar
Signed-off-by: Greta Doci <gretadoci@gmail.com>
2019-09-02 15:11:52 +02:00
Jonathan Matthews 1ae45bdaa1
Fix grid view
Signed-off-by: Jonathan Matthews <jgit@pixelnet.work>
2019-08-19 15:18:05 -04:00
Morris Jobke 003e23520d
Trigger fallback code to get max contrast value and use integer there
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-07-25 09:45:09 +02:00
Morris Jobke 5e02d71588
Fix max contrast retrieval to limit minimum color for relative time
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-07-24 21:48:52 +02:00
Julius Härtl 51683fa9d1
Properly load permissions in showActions
When setViewerMode(false) is called, the permissions should be fetched from the available dirInfo

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-07-05 12:21:21 +02:00
Robin Appelman 258902b337
fix permissions for drag-n-drop uploads
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-07-01 11:58:13 +02:00
Julius Härtl bf56f2843c
Fix window scroll container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-06-19 11:14:57 +02:00
Morris Jobke 64fb083dd9
Merge pull request #15767 from nextcloud/bugfix/0b-quota-create
Hide newFile menu if quota is set to 0B
2019-05-28 14:27:01 +02:00
Julius Härtl 1cf16fa7aa
Hide newFile menu if quota is set to 0B
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-05-28 10:27:01 +02:00
Julius Härtl d48787e661
Also allow dragging below the file list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-05-27 13:00:45 +02:00
Christoph Wurst 0f3e438f7c
Move OC.theme to the bundle and deprecate oc_defaults
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-05-14 11:14:29 +02:00
Morris Jobke aa47358812
Merge pull request #15302 from nextcloud/enhancement/files/table-head-sticky
Floating files header
2019-05-07 23:59:51 +02:00
John Molakvoæ (skjnldsv) faff807ba6
Floating files header
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-05-07 19:06:58 +02:00
John Molakvoæ (skjnldsv) 54afe0bca2
Do NOT assume all files are selected if the first checkbox is
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-04-30 16:53:50 +02:00
John Molakvoæ (skjnldsv) ec09f121af
Use max contrast variable to cap the generated colours
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-03-21 08:45:01 +01:00
John Molakvoæ 6a3f4e4957
Merge pull request #12652 from tomasz-grobelny/operation_progress_improvements3
Operation progress improvements
2019-02-14 14:24:20 +01:00
Christian Aigner ce37930910 HBOX-297 trim in webfrontend for new files to stay compatible with windows 2019-02-01 09:47:07 +00:00
fnuesse f13b3ab4ae Add drop zone for favorites quick access in navigation
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
2019-02-01 01:45:03 +01:00
Daniel Calviño Sánchez 75edcad549 Replace double quotes with single quotes
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-01-31 19:55:51 +01:00
Daniel Calviño Sánchez 96bc1397b1 Add missing trailing ";"
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-01-31 19:55:33 +01:00