photos/composer.json

43 lines
1.2 KiB
JSON
Raw Permalink Normal View History

2020-01-23 12:20:08 +00:00
{
"name": "nextcloud/photos",
"config": {
"autoloader-suffix": "Photos",
"classmap-authoritative": true,
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
},
"platform": {
"php": "8.0.2"
}
},
"autoload": {
"psr-4": {
"OCA\\Photos\\": "./lib/"
}
},
"scripts": {
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"psalm": "psalm.phar --threads=1",
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
"psalm:clear": "psalm.phar --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"test:unit": "echo 'Only testing installation of the app'"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"nextcloud/coding-standard": "1.2.1",
"nextcloud/ocp": "dev-master",
"phpunit/phpunit": "^9",
"psalm/phar": "^5.17",
"sabre/dav": "^4.2.1",
"symfony/console": "5.4.24"
Add commands and listeners to generate location data of files: The location data is stored inside `oc_files_metadata`. - `occ photos:update-1000-cities` to update the cities1000 file. - `occ photos:map-media-to-location`to map picture coordinates to a location - `ReverseGeoCoderService` download the necessary files and build the `KDTree` - `UpdateReverseGeocodingFilesCommand` command to allow to manually create the needed reverse geocoding files - `MediaLocationManager` to manager the location mappings - `MapMediaToLocationCommand` command to manually trigger location data mapping. Useful for pre-existing pictures. - `LocationManagerNodeEventListener` to react to node, user and share events. - `MapMediaToLocationJob` to reduce the load in event listeners ```php ┌─────────────────────┐ ┌────────────►│MapMediaToLocationJob│ │ └─────────┬───────────┘ │ │ ┌────────────────────────┴───────┐ │ │LocationManagerNodeEventListener├──┐ ▼ └────────────────────────────────┘ │ ┌────────────────────┐ ┌──────────────┐ ├─►│MediaLocationManager├────►│LocationMapper│ ┌─────────────────────────┐ │ └─────────┬──────────┘ └──────────────┘ │MapMediaToLocationCommand├─────────┘ │ └─────────────────────────┘ │ ▼ ┌──────────────────────────────────┐ ┌──────────────────────┐ │UpdateReverseGeocodingFilesCommand├──►│ReverseGeoCoderService│ └──────────────────────────────────┘ └──────────────────────┘ ``` Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-02-22 13:58:09 +00:00
},
"require": {
"hexogen/kdtree": "^0.2.5"
}
}