Commit graph

7860 commits

Author SHA1 Message Date
Anton Khorev
6cc31259e4 Add addNewNoteMarker() and removeNewNoteMarker() functions
This ensures that marker is always added/removed together with its halo.
2025-01-01 02:13:59 +03:00
Anton Khorev
4ea6077ddb Convert newHalo() to addHalo() and removeHalo()
newHalo() wasn't always creating new halos. It had an event type argument that was checked against drag event. Depending on this check, newHalo() could remove the halo.
2025-01-01 01:53:55 +03:00
Anton Khorev
f1835c914c Move new note page.pushstate/popstate next to page.load 2024-12-31 23:47:55 +03:00
Anton Khorev
dc59b37fe1 Add new note marker to root map layer instead of noteLayer
We want the new note marker in the same layer with its halo. Also we don't want to put anything in noteLayer because it clears its contents on certain zoom levels.
2024-12-31 23:47:55 +03:00
Anton Khorev
18f3adbf5d Remove unused return value of addCreatedNoteMarker()
This function adds a marker to notes layer. This controller doesn't need to do anything with markers of existing notes.
2024-12-31 23:46:29 +03:00
Anton Khorev
ae5b7812cc Rename updateMarker() to addCreatedNoteMarker()
This function doesn't update any existing marker.
2024-12-31 23:46:29 +03:00
Anton Khorev
9d8ca8be11 Pass location instead of marker to createNote() 2024-12-31 23:42:40 +03:00
Anton Khorev
954eafd424 Move create note callback to button click handler 2024-12-31 23:37:34 +03:00
Anton Khorev
f169299b53 Don't pass url to createNote() 2024-12-31 23:25:11 +03:00
Anton Khorev
63a4f12550 Pass text instead of form to createNote() 2024-12-31 23:22:59 +03:00
Anton Khorev
fa0c12cdcd Disable new note submit button in click handler 2024-12-31 23:02:47 +03:00
Anton Khorev
c4709e2a05 Rename newNote to newNoteMarker 2024-12-31 22:37:41 +03:00
Tom Hughes
7565f5aa4a Merge remote-tracking branch 'upstream/pull/5440' 2024-12-30 12:40:11 +00:00
Tom Hughes
782e619de2 Merge remote-tracking branch 'upstream/pull/5448' 2024-12-29 19:11:13 +00:00
Tom Hughes
bdd36c763d Merge remote-tracking branch 'upstream/pull/5447' 2024-12-29 19:00:23 +00:00
Tom Hughes
2042cb1ac6 Merge remote-tracking branch 'upstream/pull/5446' 2024-12-29 18:55:54 +00:00
Tom Hughes
cffadd7c91 Merge remote-tracking branch 'upstream/pull/5442' 2024-12-29 18:43:29 +00:00
Anton Khorev
c7e038a4d0 Use resourceful routes for web mailboxes 2024-12-29 08:40:39 +03:00
Anton Khorev
fcfb7d4af1 Replace resent confirmation link with button 2024-12-29 06:28:26 +03:00
Anton Khorev
127e376bf0 Move code that runs after user save from save_new_user to create method 2024-12-29 04:43:18 +03:00
Anton Khorev
c4e473ed89 Wrap diary entry location coordinates 2024-12-25 00:55:36 +03:00
Anton Khorev
df1c59280f Add revoke all actions to received blocks resource 2024-12-24 08:18:58 +03:00
Anton Khorev
2df389c97e Create received blocks resource 2024-12-24 07:54:50 +03:00
Anton Khorev
7a4115f090 Create issued blocks resource 2024-12-24 07:54:11 +03:00
Anton Khorev
5dbf32d945 Remove check_api_readable from api messages controller 2024-12-23 04:10:05 +03:00
Anton Khorev
45c90003c6 Use resourceful routes for api messages in/outbox 2024-12-22 07:03:41 +03:00
Anton Khorev
cdce867183 Merge ApiCapability class into ApiAbility 2024-12-20 18:39:08 +03:00
Tom Hughes
0b42688ae2 Merge remote-tracking branch 'upstream/pull/5425' 2024-12-20 08:39:16 +00:00
Anton Khorev
6b41f14ff8 Simplify calls to user block path helpers 2024-12-20 06:30:21 +03:00
Anton Khorev
b95a8d03e3 Replace show and index abilities with read ability 2024-12-20 05:21:06 +03:00
Anton Khorev
2ba85472be Change image download warning message to a list 2024-12-19 18:58:32 +03:00
Anton Khorev
6c1704b245 Add 'canDownloadImage' layer option 2024-12-19 18:58:32 +03:00
Andy Allan
f8b04635a7
Merge pull request #5417 from tomhughes/social-share-helper
Refactor social sharing helper
2024-12-19 10:28:13 +00:00
Tom Hughes
5ce51e9748 Merge remote-tracking branch 'upstream/pull/5419' 2024-12-19 08:42:02 +00:00
Tom Hughes
07fc605923 Use safe_join to join social sharing buttons 2024-12-19 08:16:58 +00:00
Tom Hughes
88946c3e8b Drop unused options from social_share_buttons 2024-12-19 08:16:58 +00:00
Tom Hughes
dee02bccd3 Drop unused ability to filter social sharing sites 2024-12-19 08:16:57 +00:00
Tom Hughes
e1a1bebd95 Drop render prefix from social_share_buttons function 2024-12-19 08:16:57 +00:00
Anton Khorev
25e4a80760 Get note text only from textarea within left sidebar 2024-12-19 05:22:54 +03:00
Anton Khorev
2c57c66195 Center share popup inside the browser window 2024-12-19 04:25:15 +03:00
Anton Khorev
8a8c2517f2 Add 'canEmbed' layer option 2024-12-18 18:36:44 +03:00
Anton Khorev
2c84465cc2 Add map.getMapBaseLayer() 2024-12-18 18:31:46 +03:00
Anton Khorev
de0bf25499 Rename return values of getMapBaseLayerId() to layerId 2024-12-18 18:28:18 +03:00
Tom Hughes
2a5e35c716 Convert social share helper library into a real helper 2024-12-18 15:07:08 +00:00
Tom Hughes
7a2e53c225 Add Bluesky to social sharing buttons 2024-12-18 14:47:18 +00:00
Tom Hughes
6094a97ce6 Merge remote-tracking branch 'upstream/pull/5391' 2024-12-18 14:11:51 +00:00
Anton Khorev
7e7ede890e Merge branch 'pull/4985' 2024-12-18 16:35:01 +03:00
Emin Kocan
95e1aff234 Add social sharing functionality 2024-12-17 23:36:47 +01:00
Tom Hughes
18409c05ab Merge remote-tracking branch 'upstream/pull/5408' 2024-12-17 19:12:49 +00:00
Anton Khorev
ca4ee6faa9 Show 'api offline' message on new note page 2024-12-17 03:34:14 +03:00