280 Commits

Author SHA1 Message Date
817b57c747 Merge pull request #1464 from nextcloud/fix/add-files
fix: use filepicker API for placing photos on the map
2025-11-26 22:42:50 +01:00
b72b3e8694 refactor(QueryBuilder): Port away from deprecated execute method
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-10-13 16:36:43 +02:00
ab25f5436d fix: use filepicker API for placing photos on the map
With Nextcloud 28 the `OC.dialogs` API was deprecated,
instead we need to use `@nextcloud/dialogs` for the filepicker.
So this fixes:
1. The deprecated `OC.dialogs` usage
2. Bug where both dialogs where opened at the same time (file and folder
   picker).
3. Properly place photos on other than the default map

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-12 22:20:59 +02:00
cf9d52b541 feat: redirect when trying to open my map with .index.maps id
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-23 13:41:42 +02:00
a3ebe1d5d3 ContactsController: Ignore unset READONLY-attribute in addressbook.
Signed-off-by: umgfoin <umgfoin@users.noreply.github.com>
2025-07-24 13:22:30 +02:00
519c0f0336 Fix favorite category linking bug: use comparison instead of assignment
ref: https://github.com/nextcloud/maps/compare/copilot/fix-1288

Signed-off-by: umgfoin <umgfoin@users.noreply.github.com>
2025-07-24 13:22:30 +02:00
bd9eca8fbc Update Dependencies and Nextcloud Requirement
Signed-off-by: Alexander Ratajczak <a4blue@hotmail.de>
2025-04-23 16:38:34 +02:00
b1dec52386 Fix tiles not working on public pages because of missing CSP entries
A CSP entry for https://tile.openstreetmap.org was introduced in
8e9e960ac7, but it was only added
to the PageController but it should be added to all the places
where the CSP headers are generated.

Signed-off-by: chefe <hi@chefe.io>
2025-01-01 16:37:03 +01:00
ed6e01371b Prepare v1.5.0
Signed-off-by: Arne Hamann <git@arne.email>
2024-11-03 23:44:45 +01:00
c1247247f0 lib: refactor query builder handling
Rather than having to remember to reset the query builder in each method
that uses it, these are now created on-demand from the db connection.

Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2024-10-16 18:40:49 +02:00
8e9e960ac7 PageController: allow tile.openstreetmap.org in CSP
So far, we only allowed subdomains, but when I rolled out the other
changes, this was missing from having a working map with OSM tiles.

This is probably not related to the other changes (it worked fine a few
days ago, perhaps something was just changed within OSM), but I figured
it's still worth fixing.

Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2024-10-07 17:26:19 +02:00
03cc1dbf05 Bump app to Nextcloud 30
Closes #1333

I decided to not cross-check the availability of all all deprecated
things with older majors, so both min and max version are v30 for now.

A list of all things that I've fixed:

* Deprecated SCSS variables updated as documented in the upgrade notes[1].
* Fixed a bunch of query builder deprecations:
  * $qb->resetQueryParts() is deprecated, one should just create a new
    query-builder object. Done that.
  * Calling `$qb->expr()->andX()` (and `orX()`) with no arguments is
    deprecated. Instead, one should list all arguments in an array and
    pass that to the method. Reworked queries where necessary to do so.
* The PHPUnit version I got by running `make test` downloaded a version
  that prohibits non-static data providers. Made all affected data
  providers static.

With that, everything from `make test` passes in a local dev
installation of Nextcloud 30 except for two tests:

    1) OCA\Maps\Controller\PhotosControllerTest::testAddGetPhotos
    Failed asserting that actual size 0 matches expected size 1.

    /home/ma27/Projects/nextcloud/apps/maps/tests/Unit/Controller/PhotosControllerTest.php:206

    2) OCA\Maps\Controller\TracksControllerTest::testAddGetTracks
    Failed asserting that false matches expected true.

    /home/ma27/Projects/nextcloud/apps/maps/tests/Unit/Controller/TracksControllerTest.php:205

Both tests failed on the previous commit already, so I decided to leave
those for now.

[1] https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.html#front-end-changes

Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2024-10-07 17:26:12 +02:00
64f338689c chore: Migrate from ILogger to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-19 18:18:06 +02:00
c16bb363d0 chore: composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-16 19:39:17 +02:00
c8af84e090 chore: Remove two unused methods with incorrect code inside
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-16 18:26:03 +02:00
e75ec7c20a fix: Add psalm configuration, fix some of the errors, add stubs, add baseline
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-16 15:24:19 +02:00
b059d12c92 chore: composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-14 20:21:41 +02:00
ab32f373ca Moved remove_utf8_bom to Helper, to make maps load
Signed-off-by: Arne Hamann <git@arne.email>
2024-04-21 21:09:17 +02:00
a0e3c9d77f fixes #1157
Signed-off-by: Arne Hamann <git@arne.email>
2023-12-12 21:14:52 +01:00
e79ee7252e add basic auth support for map server
Signed-off-by: Benstone Zhang <benstonezhang@gmail.com>
2023-11-26 09:24:46 +08:00
37365f077a added "Download Track" button to AppNavigationTrackItem
Signed-off-by: wronny <github@wron.de>
2023-10-20 10:21:48 +02:00
380fb07898 add maplibreStreetStyleURL to CSP
Signed-off-by: Benstone Zhang <benstonezhang@gmail.com>
2023-10-06 12:07:06 +08:00
7892807a26 update copyright
Signed-off-by: Benstone Zhang <benstonezhang@gmail.com>
2023-10-05 23:09:48 +08:00
b5ccf97c1a support openstreetmap vector tiles with maplibre-gl-js
Signed-off-by: Benstone Zhang <benstonezhang@gmail.com>
2023-10-05 23:09:40 +08:00
d5b0bab828 Don't show empty devices
Signed-off-by: Arne Hamann <git@arne.email>
2023-09-26 12:45:16 +02:00
31fc004f1d First frontend parts
Signed-off-by: Arne Hamann <git@arne.email>
2023-09-26 12:45:16 +02:00
60f4c03f26 Backend for devices on custom maps
Signed-off-by: Arne Hamann <git@arne.email>
2023-09-26 12:45:16 +02:00
140c381dc4 Attempt fix 1033
Signed-off-by: Arne Hamann <git@arne.email>
2023-07-02 02:14:47 +02:00
c5a5c59423 Hide the trash and share button of duplicated contacts
Signed-off-by: Vincent GIRARD <vincent@heliosphere.fr>
2023-05-02 12:07:09 +02:00
d43cebf016 Solve Readonly issue while deleting addresses
Signed-off-by: Vincent GIRARD <vincent@heliosphere.fr>
2023-05-02 11:40:23 +02:00
24234cfe99 clean debugging comments and generalize the solution to the whole cases generating contacts
Signed-off-by: Vincent GIRARD <vincent@heliosphere.fr>
2023-05-01 21:37:40 +02:00
afc5d921b5 Deduplicate regarding geo attribute and concat adrtypes
Signed-off-by: Vincent GIRARD <vincent@heliosphere.fr>
2023-05-01 21:37:40 +02:00
e11fb24301 Deduplicate contact's adresses
Signed-off-by: Vincent GIRARD <vincent@heliosphere.fr>
2023-05-01 21:37:40 +02:00
51be3a5663 Merge pull request #995 from nextcloud/remove-big-error-messages
Remove big error messages
2023-03-10 13:33:33 +01:00
90e659ff85 direct link to contact
Signed-off-by: Arne Hamann <git@arne.email>
2023-03-03 21:23:16 +01:00
1a2a9f6f46 Show info that a backengroundjob scanning photos is running
Signed-off-by: Arne Hamann <git@arne.email>
2023-03-03 19:48:02 +01:00
fb81b91adc Update photosuggestion marker on timezone change
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-22 15:14:48 +01:00
a6d9ad6562 Add Track selection to PhotoSuggestionSidebar
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-13 23:18:45 +01:00
901bc2e011 Chunck load device point
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-13 19:06:22 +01:00
8bd0185103 Fixed do not load images from Maps folder test
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-10 13:01:00 +01:00
e33cab05f8 Limit photo Suggestions to 250 photos, per request
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-10 12:22:40 +01:00
15b1f2b3ff Timezone of image is selectable
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-31 18:06:45 +01:00
9e96f961d3 Public Contacts
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-26 20:39:27 +01:00
22d167e063 Public Tracks
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-26 10:47:28 +01:00
e90b557618 Fixed that photos from cache might be arrays, while from db are stdClass
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-25 00:34:07 +01:00
fa257d4020 PublicPhotosController
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-24 22:20:47 +01:00
4c01704475 PublicPhotosController
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-24 22:20:47 +01:00
c3c58d752f PublicFavoritesController
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-24 22:20:47 +01:00
b321ab4073 PublicUtilsController
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-24 22:20:47 +01:00
34b31e6512 Change Respond to publicTemplateResponse
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-24 22:20:47 +01:00