Граф коммитов

461 Коммитов

Автор SHA1 Сообщение Дата
Christian Wolf 11aad12318
Added test for microdata parser
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:21 +02:00
Christian Wolf 0ee3f89cab
Created tests for JSON+LD metadata parser
This has shown one bug that was fixed as a byproduct.

Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:20 +02:00
Christian Wolf 0f35d9a53d
Fixed some bugs in the code
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:20 +02:00
Christian Wolf fe7533e753
Include extraction service in import routines
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:20 +02:00
Christian Wolf e06c657803
Created basic Microdata parser
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:20 +02:00
Christian Wolf 145d9f87cb
Basic HTML parser structure plus a JSON+LD parser created
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:20 +02:00
Christian Wolf a98a1a2940
Corrected casing of class names
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:19 +02:00
Christian Wolf 3855fe23ac
Integrating download service partially with existing RecipeService
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:19 +02:00
Christian Wolf f01786f2f7
Save HTML in object field for later recovery
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:19 +02:00
Christian Wolf 9fa557a24a
Created basic structure for a download service
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-24 20:02:19 +02:00
Christian Wolf 7da7c2346a
Quick fix to prevent long name of recipes
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-21 09:38:22 +02:00
Christian Wolf 2fe46989ad
Added some minor documentation and updated changelog
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-18 19:41:10 +02:00
Christian Wolf c9104b5a6d
Fixup existing code structure with current code base to make tests work again
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-18 07:57:34 +02:00
Christian Wolf e7723c2816
Usage of the user folder helper instead of in-class methods
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-18 07:57:34 +02:00
Christian Wolf 3891a20067
Corrected name for DI
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-17 21:18:28 +02:00
Christian Wolf d7cb5398ff
Corrected exception handling on user folder
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-17 21:18:28 +02:00
Christian Wolf 108e90c31e
Created basic class for management of user folders
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-17 21:18:27 +02:00
rakekniven d89f3458b9
l10n: Change to uppercase
See https://en.wikipedia.org/wiki/MIME

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2022-05-13 16:04:41 +02:00
Github actions bot 3643a4aae0 Bump to version 0.9.12
Signed-off-by: Github actions bot <bot@noreply.github.com>
2022-05-12 07:04:28 +00:00
Christian 868aee4e3f
Merge pull request #982 from nextcloud/fix/954-image-file-types
Allow the client to specify the image type using Accept header
2022-05-12 08:24:02 +02:00
Christian 68a3171554
Apply suggestions from code review
Co-authored-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-12 07:56:16 +02:00
Christian Wolf 56011dbfda
Fix bug that thumbnail file needs to be created if not yet existing
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-11 21:58:13 +02:00
Christian Wolf efd53c1404
Removed obsolete private method from new class
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-10 21:17:53 +02:00
Christian Wolf 80a49f2d85
Only serve SVG if requested/accepted
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-10 20:38:54 +02:00
Christian Wolf 9c7598e77e
Create parser for Accept header
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-10 20:38:54 +02:00
Christian Wolf 14a5ff5e9c
Change port from 400 to 422
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-10 19:39:11 +02:00
Christian Wolf ae23e6e6a2
Fix issues with PR
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-10 07:51:27 +02:00
Christian Wolf 36de8ac752
Merge remote-tracking branch 'upstream/master' into fix/923-unknown-name-exception 2022-05-10 07:36:25 +02:00
Christian Wolf 7860dc3c22
Update documentation on newly introduced status
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-02 11:08:39 +02:00
Christian Wolf 32b32e2c35
Insert dedicated exception class in case no recipe name was provided.
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-05-02 10:42:12 +02:00
Christian Wolf 6cc079cb36
Removed typo mentioned in #964
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-04-28 08:13:34 +02:00
Christian Wolf c20e2d77de
Added some documentation
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-04-12 09:59:59 +02:00
Christian Wolf 76aa82b1a7
Update user config helper to handle not logged in users
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-04-12 09:53:58 +02:00
Valdnet 5c26142a01
Correct spelling (#941)
* l10n: Correct spelling

* l10n: Add dot
2022-03-29 09:27:20 +02:00
Christian Wolf e8ea33aa74
Added some more phpdoc comments regarding possible exceptions
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 18:08:13 +02:00
Christian Wolf 6a92dbe702
Repair the tests
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 18:08:13 +02:00
Christian Wolf d7ac9f29f4
Added some PHPDoc throws annotations as suggested by review.
I have to make sure I got all, thus a first commit.

Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 18:08:13 +02:00
Christian Wolf b07b465ce9
Fix code styling
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 18:08:13 +02:00
Christian 3ffeec8d70
Apply suggestions from code review
Adding the spelling issues from the code review process

Signed-Off-By: Christian Wolf <github@christianwolf.email>

Co-authored-by: Sebastian Fey <info@sebastianfey.de>
2022-03-28 18:08:02 +02:00
Christian Wolf f7f895e4f9
Integrate ImageService in RecipeService class
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 14:28:42 +02:00
Christian Wolf 5e5aab39cd
Create image service
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 14:28:42 +02:00
Christian Wolf 83af7e89f9
Created helper classes for management of image files
Added tests for helper classes

Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 14:28:42 +02:00
Christian Wolf 247b166e33
Create image generation class to save thumbnails
Added test for complete coverage

Added dropping of thumbnails

Prevent accidential removal of primary image

Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 14:28:42 +02:00
Christian Wolf 10a1e78c15
Created services to create images thumbnails
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-28 14:28:41 +02:00
Github actions bot 4f4692b020 Bump to version 0.9.11
Signed-off-by: Github actions bot <bot@noreply.github.com>
2022-03-28 12:24:02 +00:00
Christian Wolf 8a1242d645
Extract magic values into constants
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-23 07:38:12 +01:00
Christian cf2194607c
Apply suggestions from code review
Review by @seyfeb

Co-authored-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-23 07:27:42 +01:00
Christian Wolf 00ecbd2807
Fix type hint for PHP 7.3
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-22 19:20:11 +01:00
Christian Wolf a419af4b03
Replaced user config by class access
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-22 17:29:58 +01:00
Christian Wolf d8129b5a12
Create config abstraction for user configurations
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-22 16:53:07 +01:00
Christian Wolf 9c21283b88
Make hot reload possible by using @nextcloud config
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-03-12 10:53:31 +01:00
Github actions bot f962794afd Bump to version 0.9.10
Signed-off-by: Github actions bot <bot@noreply.github.com>
2022-03-04 21:30:52 +00:00
Github actions bot 60bcba4e21 Bump to version 0.9.9
Signed-off-by: Github actions bot <bot@noreply.github.com>
2022-01-13 09:43:49 +00:00
Github actions bot 9b353af543 Bump to version 0.9.8
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-12-05 16:59:32 +00:00
Github actions bot 4b35e4ed4a Bump to version 0.9.7
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-11-26 20:23:12 +00:00
Christian Wolf 1743ceae1b
Smoothly handle arrays of keywords in the JSON file
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-11-26 20:33:35 +01:00
Github actions bot 3356b10bb7 Bump to version 0.9.6
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-10-18 11:20:08 +00:00
Christian Wolf 9e65c09e4a
Fixed fix introduced to avoid empty category name
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-10-18 11:53:52 +02:00
Christian Wolf fab0f497d6
Make space out of tabs by default
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-10-17 18:22:07 +02:00
Christian Wolf ed873c7c21
Remove multiple strings and trim names
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-10-17 18:15:51 +02:00
Christian Wolf dc0d072815
Store data into temp file and use that to parse image metadata
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-10-17 16:11:22 +02:00
Github actions bot 701a8b65ac Bump to version 0.9.5
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-10-16 13:56:17 +00:00
Jonas Rittershofer 736f99c511
Fix empty Category
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-10-11 22:35:39 +02:00
Github actions bot 4b090c20d5 Bump to version 0.9.4
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-09-29 12:51:01 +00:00
Christian Wolf d8cb07abef
Corrected code styling
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-09-26 17:35:37 +02:00
Christian Wolf a88110beb4
Hotfix to avoid error on trim invocation
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-09-26 17:00:56 +02:00
Github actions bot 36452558a5 Bump to version 0.9.3
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-09-26 09:18:50 +00:00
Christian Wolf f17126c4bf
Updated MainController to remove obsolete code
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-09-11 14:01:15 +02:00
Christian Wolf 94c1ac72ee
Update recipe controller to use parameter correctly
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-09-11 14:01:15 +02:00
Christian Wolf fce78517ae
Removed obsolete property from class
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-09-03 14:42:30 +02:00
Christian Wolf 1a1cfa1caa
Corrected executable mode of migrations
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-22 16:02:27 +02:00
Github actions bot fdcd177663 Bump to version 0.9.2
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-08-09 15:44:44 +00:00
Christian Wolf 193304ec68
Corrected code styling
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:22 +02:00
Christian Wolf e6b220fd45
Simplyfy migration SQL code
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:22 +02:00
Christian Wolf d462f148e6
Correct handling for PSQL
Signed-off-by: Christian Wolf <github@christianwolf.email>

Final fix related to  having clause

Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:49:17 +02:00
Christian Wolf 7f94a7ba3e
Implemented fix for issue #763
Signed-off-by: Christian Wolf <github@christianwolf.email>

Corrected typo on migration step

Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:49:16 +02:00
Christian Wolf 957d603b21
Started implementation of fix
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:49:16 +02:00
Github actions bot 7c0b3ac919 Bump to version 0.9.1
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-07-05 15:19:36 +00:00
Christian Wolf 02d4d02411
Removed faulty primary key from old migration to avoid further conflicts
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-07-05 15:19:53 +02:00
Christian Wolf 213c6ffa87
Corrected code styling (cs:fix)
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-07-05 15:19:01 +02:00
Christian Wolf b85f4af5d8
Update schema to cope well with shared recipes
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-07-05 15:19:01 +02:00
Christian Wolf 12fe10e5d6
Removed API endpoints no longer working
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-07-02 12:57:33 +02:00
Github actions bot e92e32eb1a Bump to version 0.9.0
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-07-01 06:43:09 +00:00
Christian Wolf d51c0efbb9
Make code requirements of NC happy
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-05-23 19:30:00 +02:00
Christian Wolf 535922e5cc
Corrected HP file styling
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-05-23 19:20:51 +02:00
Christian Wolf 75f6394e24
Correct handling of arrays on recipeYields property
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-05-23 19:09:54 +02:00
Christian Wolf da580b117c
Corrected PHP styles
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-05-12 15:47:51 +02:00
Christian Wolf 762c13acb4
Implement in the backend the check for existing recipes
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-05-12 15:47:51 +02:00
Christian Wolf 432b0f72f9
Rename indices to make them distict in Postgres and Sqlite as well.
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-04-27 11:08:48 +02:00
Christian Wolf 5740bc1cce
Added migration to add indices to all tables
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-04-27 10:51:27 +02:00
Christian Wolf bcd9c765a6
Corrected styling in PHP files
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-04-25 17:53:46 +02:00
Christian Wolf a69938d9b2
Corrected styling according to php-cs-fixer (auto-fix)
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-04-03 18:35:29 +02:00
Philipp Fischbeck 599c868664
Fix IURLGenerator case
Co-authored-by: Christian <github@christianwolf.email>
Signed-off-by: Philipp Fischbeck <pfischbeck@googlemail.com>
2021-04-03 18:35:29 +02:00
Philipp Fischbeck 520dbd7cce
Provide class definitions for NC 19
Signed-off-by: Philipp Fischbeck <pfischbeck@googlemail.com>
2021-04-03 18:35:29 +02:00
Philipp Fischbeck 4d7d9002b8
Support NC <= 19
Signed-off-by: Philipp Fischbeck <pfischbeck@googlemail.com>
2021-04-03 18:35:29 +02:00
Philipp Fischbeck 4f441a9f78
Implement unified search provider
Signed-off-by: Philipp Fischbeck <pfischbeck@googlemail.com>
2021-04-03 18:35:29 +02:00
Christian Wolf cc9e3b5ac2
Updated styling of code according to cs fixer
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-03-27 18:45:15 +01:00
Christian Wolf 82f64f17ed
Handling of arbitrary exceptions in axios
Coded along https://github.com/axios/axios#handling-errors

Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-03-13 18:49:14 +01:00
Github actions bot 01dd68dcf5 Bump to version 0.8.4
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-03-08 10:39:14 +00:00
Sebastian Fey bf119437b5
Cleanup
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-03-06 15:23:25 +01:00
Sebastian Fey 5dbcb209d9
Moved and added creation & modification dates for the data response to service for recipe search, fetching recipes by tag and category, and fetching all recipes.
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-03-06 15:23:25 +01:00
Sebastian Fey c69e17d590
- Returning created and modified date for recipes in index
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-03-06 15:23:18 +01:00
Github actions bot a6b945adda Bump to version 0.8.3
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-03-03 20:05:21 +00:00
Github actions bot e18db5bc33 Bump to version 0.8.2
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-03-03 19:23:36 +00:00
Christian Wolf 704b265fc8
Usage of polyfill class to cope with backward incompatible change in NC 21
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-03-03 14:35:41 +01:00
Robin Appelman c2288595ba
adjust to new dbal
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-03 14:35:41 +01:00
Christian Wolf 1544e5a8ae
Deprecate some routes by comments
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-23 09:24:55 +01:00
Github actions bot 8e9df26d88 Bump to version 0.8.1
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-02-15 11:03:04 +00:00
Github actions bot 3cfa3e2a1f Bump to version 0.8.0
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-02-14 16:07:50 +00:00
Christian Wolf bc068466b7
Update the folder settings before checking for new files
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-14 13:22:03 +01:00
Christian Wolf 4c6b9b6d2d
Catch guest account without correct setting at loading of page
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-14 13:22:02 +01:00
Christian Wolf 3bd74de1d8
Update backend to issue a 403 on a guest account
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-14 13:22:02 +01:00
Christian Wolf aabc4da51b
Added epoch to API version endpoint
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-12 20:46:23 +01:00
Christian Wolf eba5312427
Simplified main controller template usage
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-12 20:16:39 +01:00
Christian Wolf 8c0ccad3f7
Update API endpoint minor version
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-04 16:18:42 +01:00
Sebastian Fey 065e23081c
Updating backend cache after renaming category
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-02-04 16:17:48 +01:00
Sebastian Fey ed906d1c67
Minor fixes
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-02-04 16:17:48 +01:00
Sebastian Fey c2a04f66d3
Added route for updating category name
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-02-04 16:16:49 +01:00
Christian Wolf e038dcd1d9
Fixed some bugs in the code
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-23 18:14:00 +01:00
Christian Wolf 40cd320dc6
Verify context on check for valid schema org object
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-23 18:12:20 +01:00
Christian Wolf f468477d50
Removed Controller not in use
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-18 15:33:06 +01:00
Sebastian Fey 9ea5ad1912
Attaching keywords to recipe results for keyword searches
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-01-17 19:37:29 +01:00
Valdnet 212fb433fa
l10n: Fix of typos
Reported on Transifex.
2021-01-17 12:48:34 +01:00
Github actions bot 2a69a164df Bump to version 0.7.10
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-01-16 17:58:05 +00:00
Christian Wolf c65e25ff3c
Removed str_starts_with and str_end_with calls
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-16 18:01:12 +01:00
Github actions bot 36b0f862ed Bump to version 0.7.9
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-01-15 22:16:02 +00:00
Christian Wolf fe8eb481e1
Extracted one more constant in class
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-15 18:39:52 +01:00
Christian Wolf ca52a4c5f2
Corrected code styling
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-15 18:39:52 +01:00
Christian Wolf 6267a4ce90
Removed bugs in parameter parser class
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-15 18:39:29 +01:00
Christian Wolf 9dae03b79b
Encapsulate all parameter parsing routines into separate class
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-15 18:39:29 +01:00
Christian Wolf 4ab6313559
Send data to the config controller using JSON
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-15 18:39:29 +01:00
Christian Wolf b315cc4b23
Handle recipes without category well
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-11 18:19:49 +01:00
Sebastian Fey 80ba1c7da7 Adding only keywords of current user to returned recipe results
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2021-01-10 11:37:14 +01:00
Github actions bot 2a1826aa55 Bump to version 0.7.8
Signed-off-by: Github actions bot <bot@noreply.github.com>
2021-01-09 17:47:04 +00:00
Christian Wolf b0c9e678cf
Added automatic insert of version into controller class during deploy
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-09 18:21:52 +01:00
Christian Wolf 8c5f42bd2b
Create a basic structure to fetch the api version
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-09 18:13:57 +01:00
Christian Wolf e64aea6020
Added forgotten execute call
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-07 19:14:38 +01:00
Sebastian Fey 1285536805
Fixed only partly returned keywords from recipe search
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-12-28 17:35:53 +01:00
Sebastian Fey 32c4a6536d
Minor fixes, code cleanup
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-12-21 17:16:25 +01:00
Sebastian Fey 0d3acf1bc4
Added nutrition info to recipe view
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-12-21 17:15:59 +01:00
Sebastian Fey cab45f40bd
Adding, updating, and retrieving dateCreated and dateModified for recipe
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-12-21 13:24:23 +01:00
Christian Wolf d725a091a1
Make app compatible with NC code checker
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-12-21 11:07:00 +01:00
Sebastian Fey e4c2cd451f
Added lazy-loading images also to categories and tags
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-12-21 10:37:14 +01:00
Christian Wolf 943869e268
Added lazy-loading images also to search results
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-12-21 10:36:57 +01:00
Sebastian Fey fb28a57541
Creating small thumbnail preview on request if it doesnt already exist
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-12-21 10:29:56 +01:00
Sebastian Fey ff7243fac9
Creating 256x256 thumbnail and 16x16 preview thumbnail instead of 128x128 thumbnail for recipes
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-12-21 10:27:47 +01:00
Christian Wolf 37b8ba0937
Removed typos from refactory
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-12-12 13:33:59 +01:00
Christian Wolf 0e829d1a59
Corrected code to be valid with code styler
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-12-12 12:19:29 +01:00
Marcel Auclair 7b0a39408d
Delete One SVG and change Css to set Background-Color
Signed-off-by: Marcel Auclair <thembeat@gmx.de>
2020-12-08 17:36:26 +01:00
TheMBeat f6ac3d125d
Update Recipe-Controller
Signed-off-by: TheMBeat <thembeat@gmx.de>
2020-12-08 17:35:53 +01:00
Christian Wolf bb59f146e5
Corrected style of PHP files to be consistent
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-17 17:06:20 +01:00
Christian Wolf 788700a5f7
Corrected namespaces of classes
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-15 11:57:42 +01:00
Christian Wolf 6a9df5d69f
Added a basic version of a JSON service
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-12 16:35:29 +01:00
Sebastian Fey 2c29cb268b
Added keyword list to recipes fetched from database
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-11-12 12:10:21 +01:00
Sebastian Fey 96331cfd16 Added backend functionality for retrieving recipes by multiple keywords
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-11-07 16:27:09 +01:00
Christian Wolf 59ab428fa2
Set the folder parameter if none was found.
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-04 13:21:40 +01:00
Sebastian Fey 2221441f60 Using underscore in url as placeholder for uncategorized recipes
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-10-29 20:43:20 +01:00
Sebastian Fey 51c80052b5 Requesting category 'None' returns recipes without category
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-10-29 20:43:19 +01:00
Sebastian Fey 49718403ba Added comments, changed variable of categories database
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
2020-10-29 20:43:19 +01:00
Maximilian Ammann e470015d93 Add url to error message
Signed-off-by: Maximilian Ammann <max@maxammann.org>
2020-10-25 19:05:57 +01:00
Maximilian Ammann eaec03f017 Change how error messages are formatted
Signed-off-by: Maximilian Ammann <max@maxammann.org>
2020-10-25 18:48:34 +01:00
Maximilian Ammann 12b37d8045 Add more complex error handling by counting the same issues
Signed-off-by: Maximilian Ammann <max@maxammann.org>
2020-10-25 17:29:38 +01:00
Maximilian Ammann 85e37299be Add simple handling for libxml errors
Signed-off-by: Maximilian Ammann <max@maxammann.org>
2020-10-25 17:01:31 +01:00
victorjoos 9959223c5f Add workaround for recipeInstructions
Some json recipes don't contain the array directly, but have it inside the 'itemListElement'. While this is clearly a mistaken understanding of the spec, this is a workaround that shouldn't impact existing json parsing.

Signed-off-by: Victor Joos <victorjoosdtb@gmail.com>
2020-10-20 13:55:42 +02:00
Christian Wolf 5e7a258fd2
Merge remote-tracking branch 'upstream/master' into filter-n-search-recipes
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-17 09:49:36 +02:00
Christian Wolf feeff811bf
Removed bugs related to searching of recipes in the backend, outer joins needed
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-17 09:33:30 +02:00
Christian Wolf f2645c4d95
Do a case-insensitive ordering of recipes
This should solve #333.

Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-13 18:26:07 +02:00
Christian Wolf 94381b239a
Extraction of all table named to static class constants in DB connection source
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:18 +02:00
Christian Wolf 475ebdb9b4
Removed bug in DB access causing wrong count of recipes in GUI
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf 8297fba099
More housekeeping
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf 652e8c3105
Do some house keeping.
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf 629ae7876c
Added calls to regular checks to the controllers and refactoring out some no more needed functions
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf 71341f49e5
Moved a few typos in code
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf 33c4838f0c
Hook the new service in the main code and refactored a bit
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf 7f54891d98
Added error handling codes as in original code.
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf c9367f86f6
Correct processing of categories and keywords during sync
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf efa267fa70
Removed unneeded debugging line
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:17 +02:00
Christian Wolf 7b448c35d8
Basic Service created to make an incremental update to database
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-06 12:49:11 +02:00
zwoabier a56e6ed88e Change RegEx for yield value to match digits in json-ld less restrictive
According to https://schema.org/recipeYield the yield value is specified like "recipeYield": "1 loaf"
The suggested RegEx  /(\d*)/ is a more generic approach to find digits in the recipeYield string instead of  /^.*?(\d*)/

For example this works for chefkoch.de ("recipeYield": "6 Portion(en)") and fittastetic.com ("recipeYield": ["2","2 Portionen"]).
The old RegEx /^.*?(\d*)/ worked on chefkoch.de but not e.g. on fittastetic.com

Because we have the if function in the next line (221) that deals with several occurrences and picks the first one, it should be save to do it that way.

Signed-off-by: ZwoaBier <ichhasseapple@gmail.com>
2020-10-06 10:33:58 +02:00
sam-19 69f17741e3 Filter and search features for front page
Signed-off-by: sam-19 <26563023+sam-19@users.noreply.github.com>
2020-09-22 17:47:24 +03:00
mrzapp 9a0418158a Removing slashes for categories 2020-06-26 09:35:41 +02:00
Tim Andrews 64e6fb7fb1 strip of slashes as an option, using for names only 2020-06-23 09:43:40 -04:00
Tim Andrews 7ef2c30806 formatting, issue # 262 2020-06-18 22:47:33 -04:00
Tim Andrews 5f1a55d06b added preserve_slashes functionality to cleanUpString, so we may have slashes in fractional ingredieents, issue # 262 2020-06-18 22:44:31 -04:00
mrzapp 4554ebd3af Fixes #234 2020-06-13 07:41:47 +02:00
mrzapp 4fb636375d Fixes #205 2020-06-13 07:15:29 +02:00
mrzapp f281cbb989 Fix for keyed list items 2020-06-13 07:06:33 +02:00
Timvde 338ab1f18e Improve support for json arrays
A website can contain multiple JSON-LD parts for different data types.
We need to make sure to pick the one which is a recipe.

This fixes parsing for allrecipes.com.
2020-06-12 00:42:32 +02:00
Timvde ca03ceb55b Replace repeated whitespace with a single space
This fixes some edge cases where extraneous whitespace characters are
inserted inside the recipe json.
2020-06-11 23:59:24 +02:00
mrzapp 1d1b98df5e Fixes #239 2020-06-08 09:38:55 +02:00
mrzapp 5e2c9a9055 Fixes #201 2020-06-01 14:05:42 +02:00
mrzapp e7a3be8b93 Fixes #227 2020-06-01 13:49:04 +02:00
mrzapp 1123f22413 Fixes #215 2020-06-01 13:32:38 +02:00
mrzapp f1e9acf6ad Should fix #230 2020-06-01 13:28:50 +02:00
mrzapp 43ec32917c Merging in 0.7.0 2020-06-01 13:08:11 +02:00
mrzapp 915339ade1 Fixes #232 2020-06-01 10:39:26 +02:00
Maxime Corteel f87509da98 Allow null UserId (fixes #204) 2020-05-23 21:30:34 +02:00
Sampsa Lohi 8e2d17e7b0 Prune unnecessary files 2020-05-07 20:52:36 +03:00
mrzapp c1f9ec88fc Merge branch 'master' of github.com:mrzapp/nextcloud-cookbook 2020-05-05 12:37:52 +02:00
mrzapp 74ead85acd Fixes #177 2020-05-05 12:37:50 +02:00