Commit Graph

325 Commits

Author SHA1 Message Date
James Lyne
9fd9cec08a Add some missing <button> types 2022-06-27 23:21:42 +01:00
James Lyne
5d304606a6 Fix sidebar button padding when sidebar is large enough to scroll on some browsers 2022-06-27 23:21:25 +01:00
James Lyne
edbdb712d5 Workaround for firefox radio button tab bug
https://bugzilla.mozilla.org/show_bug.cgi?id=1413213
2022-06-27 23:19:43 +01:00
James Lyne
e143471fa8 Some more tests 2022-06-23 21:30:05 +01:00
James Lyne
4d0e481f74 Use clipboard util methods in LinkControl 2022-06-21 23:25:33 +01:00
James Lyne
f4d489b474 Inspection fixes 2022-06-17 14:03:36 +01:00
James Lyne
46c4e6d3eb Simplify login logic
Let LOGIN action handle displaying the modal if required.
2022-06-17 13:44:53 +01:00
James Lyne
9bac5f601d Add option to disable marker UI 2022-04-01 13:27:25 +01:00
James Lyne
625e44a048 Remove per world default zoom, use per map instead 2022-02-27 20:42:47 +00:00
James Lyne
f4481a1d6c Move and rename player image util methods 2022-02-26 14:42:17 +00:00
James Lyne
80bb800e04 Preparation for overlay TileLayers 2022-02-26 01:02:32 +00:00
James Lyne
06ac12ba29 Move tileUpdateInterval handling to LiveAtlasTileLayer 2022-02-25 14:50:17 +00:00
James Lyne
2a47a99493 Fix marker counts in marker list when switching maps 2022-02-24 20:47:13 +00:00
James Lyne
475c53a688 Fix marker list icons 2022-02-24 20:44:17 +00:00
James Lyne
bd13e67f48 Replace MapProvider.getMarkerIconURL with passing full URL to GenericMarker 2022-02-24 18:39:37 +00:00
James Lyne
cde0c327a0 Round marker list locations 2022-02-23 23:22:08 +00:00
James Lyne
c4f2d106bf All per-map default zoom 2022-02-23 14:31:31 +00:00
James Lyne
61194c9c99 Fix error when marker set is removed when changing between maps on the same world 2022-02-23 13:58:32 +00:00
James Lyne
61b2a59e2a All per-map center points 2022-02-23 13:57:41 +00:00
James Lyne
50aba2dd7b MapProvider changes
- Add populateMap method to allow reacting to  the current map changes
- populateWorld, startUpdates and stopUpdates are no longer abstract
2022-02-23 00:42:53 +00:00
James Lyne
88f81efcf5 Update copyright headers 2022-02-21 21:53:49 +00:00
James Lyne
eba601e7fe Add option to disable map context menu 2022-02-20 19:35:10 +00:00
James Lyne
6d27068702 Remove debug log 2022-02-06 13:04:27 +00:00
James Lyne
b144b817af Re-fetch player images if the imageUrl changes 2022-02-06 13:04:04 +00:00
James Lyne
db41a585e6 Add PlayerImage component for showing player images in various parts of the UI 2022-02-05 17:23:55 +00:00
James Lyne
0b6bf8d206 Merge playerMarkers and playerList components in store state
- Merged playerMarkers and playerList into players
- playerMarkers is now players.markers
- Moved grayHiddenPlayers outside of players.markers, as it doesn't apply to markers
2022-02-05 15:41:48 +00:00
James Lyne
9bb797f23a Fix context menu 2022-02-05 12:54:06 +00:00
James Lyne
e91f820322 Improve handing of append_to_world
- Always use the store map list for checking for/retrieving maps, to avoid the non-unique map name problem append_to_world otherwise causes
- Change LiveAtlasWorldDefinition maps property to Set as map keys were not unique if appended maps with the same names existed
- Add appended map to both original and appended world's map set. The appended world needs this to display the map in the UI, the original world needs this to avoid situations where LiveAtlas needs the "first" map of a world, and that world has 0 non-appended maps (i.e switching worlds when following, URL without a map name)
- Add an appendedWorld property to maps to indicate when a map has been appended. This is used by MapContextMenu to show the appended world's map list instead, and in WorldListItem to filter out maps appended to other worlds
- Use the map's world property instead of the world prop in the template for WorldListItem. This fixes tooltips and prevents duplicate IDs.

Fixes #345
2022-02-04 21:58:07 +00:00
James Lyne
3ca7a72703 Fix player image not updating on follow target change 2022-01-22 12:03:40 +00:00
James Lyne
80fe8916f3 Refactor config loading
- Move config validation into map providers
- Move TileLayer creation into map providers
- Simplify config loading logic
2022-01-21 20:20:01 +00:00
James Lyne
b82c9f39d2 Only show "Show More" button if there is actually more to show. 2022-01-17 19:57:04 +00:00
James Lyne
91739d513a Markers sidebar section 2022-01-17 15:15:00 +00:00
James Lyne
9265f8a02a Scroll to top of list when searching players 2022-01-17 12:21:23 +00:00
James Lyne
14e67571b2 Use class for styling player search 2022-01-17 12:20:33 +00:00
James Lyne
f906264021 Add global marker update handler which handles all marker sets 2022-01-16 23:21:22 +00:00
James Lyne
687a31f0f7 Refactor Map pan handling
- Add setView method to handle all panning/zooming
- Replaced SET_PAN_TARGET mutation with more generic SET_VIEW_TARGET which accepts locations/bounds/zooms and leaflet options
- Merged all scheduled variables into single scheduledView
2022-01-16 22:15:12 +00:00
James Lyne
846f894502 Follow UI improvements
- Stick to bottom of screen
- Prevent layout shift when player visibility changes
- Increase image size
2022-01-16 00:50:10 +00:00
James Lyne
cfda231048 Rename marker layer utility methods 2022-01-15 18:45:01 +00:00
James Lyne
42e553bda7 Marker storage/display improvements
- Store markers of all types for a marker set in a single map
- Merge all marker type components into a single Markers component
- Add marker type prefixes to dynmap marker ids to ensure they remain unique
- Add id and type properties to marker objects
- Remove now-unused update handler for specific marker types
2022-01-15 15:45:59 +00:00
James Lyne
9abd96ccb1 Overhaul marker update handling
- Renamed pendingSetUpdates to pendingMarkerUpdates
- pendingMarkerUpdates is now a simple array of LiveAtlasMarkerUpdates
- Added separate ADD_MARKER_UPDATES mutation for marker updates
- Set updates via ADD_MARKER_SET_UPDATES are applied immediately and not stored in state
- Removed all marker pop actions and mutations except POP_MARKER_UPDATES, which now returns all marker types
- Added centralised markup update handler in markers.ts, replacing much of the logic in the individual marker type components. Allows additional handlers to be registered for specific marker sets and types
2022-01-15 00:07:25 +00:00
James Lyne
6b232f387b Rename markers.ts 2022-01-14 20:52:05 +00:00
James Lyne
4e8780b3a4 Sidebar cleanup and fixes
- Merge functions handling sidebar section events, focusing and toggling
- Use hidden attribute instead of v-show for sidebar sections
- Ignore hidden sidebar sections when navigating with the keyboard
- Allow focusing an already visible section via down arrow on its button
2022-01-14 13:16:04 +00:00
James Lyne
ef28afaceb Don't focus sidebar sections due to expandUI on initial load 2022-01-14 11:34:09 +00:00
James Lyne
fc55d56692 Fix sidebar repaint on scroll 2022-01-14 00:37:17 +00:00
James Lyne
1d1fa0abc8 Slightly increase sidebar width and player icon padding 2022-01-14 00:36:19 +00:00
James Lyne
4415b17ceb Rename Markers component to Points 2022-01-13 14:41:05 +00:00
James Lyne
7cd21a19e2 Rename marker types for clarity
- Add "Marker" suffix
- Rename regular marker to "PointMarker"
2022-01-13 14:14:11 +00:00
James Lyne
323b700568 Clear followTarget in SET_PAN_TARGET 2022-01-13 13:38:26 +00:00
James Lyne
9bed746ccc Move player search into PlayerList 2022-01-13 11:51:06 +00:00
James Lyne
763b4d907e Make player search sticky 2022-01-13 01:52:22 +00:00