aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Preview
Commit message (Collapse)AuthorAgeFilesLines
* ci: Fix psalm by typing the QuestionHelperJoas Schilling2024-10-211-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-263-56/+6
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Fix newly spotted psalm issues, add exhaustive typed magic properties ↵Côme Chilliet2024-04-301-2/+2
| | | | | | for LDAP classes Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-5/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Uses PHP8's constructor property promotion.Faraz Samapoor2023-06-203-36/+19
| | | | | | in core/Command/Info, /Integrity, and /Preview classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* add command to generate a preview for a fileRobin Appelman2023-04-031-0/+141
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* FIX: This fill finish -> This will finishsodimel2023-01-261-1/+1
| | | | Signed-off-by: sodimel <corentin@244466666.xyz>
* Attempt to fix errors in Repair command testsCôme Chilliet2023-01-201-0/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update core to PHP 7.4 standardCarl Schwan2022-05-202-38/+29
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to delete non-migrated previews instead of moving themJohn Molakvoæ2021-12-091-6/+25
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add OCC command to reset rendered textsDaniel Calviño Sánchez2021-03-011-0/+202
| | | | | | | | | | The command is meant to be used when the fonts used to render texts ("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf") are changed (for example, to add support for other scripts). The avatar and text file previews will be removed, so they will be generated again with the updated font when needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate verbose messages to inline syntax of writeln()Morris Jobke2020-09-171-11/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show lock messages only in verbose modeMorris Jobke2020-09-171-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to run occ preview:repair in parallelMorris Jobke2020-09-171-1/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use array_filter insteadMorris Jobke2020-08-071-10/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add occ preview:migrate to migrate previews from the old flat structure to a ↵Morris Jobke2020-08-061-0/+280
subfolder structure * `php occ preview:repair` - a preview migration tool that moves existing previews into the new location introduced with #19214 * moves `appdata_INSTANCEID/previews/FILEID` to `appdata_INSTANCEID/previews/0/5/8/4/c/e/5/FILEID` * migration tool can be stopped during migration via `CTRL+C` - it then finishes the current folder (with the previews of one file) and stops gracefully * if a PHP memory limit is set in the `php.ini` then it will stop automatically once it has less than 25 MiB memory left (this is to avoid hard crashes in the middle of a migration) * the tool can be used during operation - possible drawbacks: * there is the chance of a race condition that a new preview is generated in the moment the folder is already migrated away - so the old folder with the newly cached preview is deleted and one cached preview needs to be re-generated * there is the chance of a race condition during access of a preview while it is migrated to the other folder - then no preview can be shown and results in a 404 (as of now this is an accepted risk) Signed-off-by: Morris Jobke <hey@morrisjobke.de>