Commit Graph
100 Commits
Author SHA1 Message Date
thallada 79631cbc05 Fix react warnings 2022-03-19 15:38:33 -04:00
thallada 7df5cbb324 Limit parsed plugin cell displays to plugins for Skyrim.esm
In-case someone drag and drops a fallout 4 folder onto the page, it should not display any selected cells.
2022-03-19 15:28:10 -04:00
thallada 21eaa5cb11 Upgrade Next.js to canary version to fix web worker load bug
See https://github.com/vercel/next.js/issues/25484
2022-03-19 01:41:31 -04:00
thallada fd7d22e16a Enable processing plugins as soon as there is one available worker 2022-03-19 01:20:24 -04:00
thallada 38d3536340 Create workers using new webpack 5 syntax
Drop worker-loader which isn't needed anymore.
2022-03-19 01:15:25 -04:00
thallada 6527c6d5f7 Display parse errors on PluginDetail page 2022-03-18 23:41:06 -04:00
thallada daa4d3c039 Fix clearing map selected cells between pages
Also limits fitBounds zooming to selecting mods or plugins only.
2022-03-18 20:20:12 -04:00
thallada 68796f6f9c Store ModList filter states in redux
So that navigating between cells and back from other pages will persist the filters.
2022-03-18 20:08:31 -04:00
thallada 0b85e30043 Add sort direction controls to ModList 2022-03-18 19:52:14 -04:00
thallada e1c0c5b4fa Use unicode bullet separator in map attribution 2022-03-18 18:56:12 -04:00
thallada c5c4d71c94 Add donate link 2022-03-18 18:54:21 -04:00
thallada 1a39f7c5e4 Show exterior cells edited in ModList
Also abstracts jsonFetcher and csvFetcher into common lib functions.
2022-03-18 01:06:20 -04:00
thallada f120090039 Add filter to CellList 2022-03-17 20:24:25 -04:00
thallada 1d40fb16df Keep plugin conflict outlines while selecting a cell 2022-03-17 01:22:17 -04:00
thallada 914fbbb540 Add sort/filter controls to mod list 2022-03-17 01:11:59 -04:00
thallada 351785713c Prevent staging sites from getting indexed 2022-03-16 23:37:30 -04:00
thallada 3bff4ce4a2 Reword cell list header to "Exterior Cells" 2022-03-16 23:37:11 -04:00
thallada 1a2da9d4fc Add a checkbox to include/exclude translations 2022-03-16 00:37:08 -04:00
thallada f33fd3b49c Sort plugin mod file list by nexus_file_id 2022-03-15 22:50:51 -04:00
thallada 0616a92bbc Allow selecting Skyrim folder, more language tweaks 2022-03-15 22:33:44 -04:00
thallada 8c30a7bd92 UI experience tweaks 2022-03-15 19:59:16 -04:00
thallada 8e5d2750ec Use normal img tag since Image doesn't work in static mode 2022-03-15 19:08:38 -04:00
thallada ee7c956525 Add enable/disable all plugins buttons 2022-03-15 01:03:51 -04:00
thallada 72b7981e8c Add github link to map attribution 2022-03-15 01:03:40 -04:00
thallada 7e4f6d977f Tweaks to sidebar styling 2022-03-15 00:47:31 -04:00
thallada a7e4b2e657 Clear fetched plugin on clearSelectedCells
Fixes issue with selected cells persisting when navigating between different plugins.
2022-03-15 00:22:08 -04:00
thallada f1afb2d258 Update README.md 2022-03-15 00:13:27 -04:00
thallada e43352ba94 Add last modified date to all sidebar pages 2022-03-14 23:53:55 -04:00
thallada 8c86871723 Fix searchbar styling 2022-03-14 23:42:09 -04:00
thallada 621cb6a9f8 Fix plugin -> cell navigation 2022-03-14 23:33:37 -04:00
thallada 824202d3a6 Fix rendering fetchedPlugin cells on initial load 2022-03-14 21:59:03 -04:00
thallada a590dbd02c Add cell list to plugin detail page
Also add mod counts in parenthesis.
2022-03-14 21:55:52 -04:00
thallada e7e392a7b7 Replace unicode sidebar icons with svgs
Unicode characters weren't rendering reliably on all platforms.
2022-03-14 21:28:08 -04:00
thallada 6769b815e7 Display mod files on plugin detail page 2022-03-14 20:47:26 -04:00
thallada e21271f78b Fix updating map as plugins are selected 2022-03-12 21:29:40 -05:00
thallada 85630949c5 Fix tsc error with FileSystemFileHandle 2022-03-12 20:36:55 -05:00
thallada 1fa2e3e660 WIP Render plugin data from static server 2022-03-12 18:34:45 -05:00
thallada 6a76bfac33 Render plugin data from static server 2022-03-12 14:00:40 -05:00
thallada 74c8920edf WIP plugin details sourced from static server 2022-03-10 23:41:43 -05:00
thallada 559b6600ac Wording tweak in DataDirPicker 2022-03-10 01:18:19 -05:00
thallada ae6b3bff12 Bug fixes for selected cell plugin list 2022-03-10 01:10:14 -05:00
thallada cc625d9029 Show loaded plugins that edit cell on cell pane 2022-03-10 00:59:13 -05:00
thallada d45c4f51b1 Fix pluginstxt dialog 2022-03-10 00:46:59 -05:00
thallada 391fa0669d Show alert when non-Data dir selected/dropped 2022-03-10 00:40:34 -05:00
thallada 8496c775f2 Refactor drag-n-drop to component with overlay 2022-03-10 00:35:04 -05:00
thallada d681d84416 Handle drag and drop of Data dir
Also some general fixes to the data dir picker button.
2022-03-09 01:35:20 -05:00
thallada 1b48c34974 Better default worker count value 2022-03-04 23:56:36 -05:00
thallada 05a780c4a9 Consistent quotes 2022-03-04 23:55:06 -05:00
thallada 5dd061627a Move WorkerPoolContext into WorkerPool.ts 2022-03-04 23:53:36 -05:00
thallada eebae85a65 Implement WorkerPool, use webkitdirectory input
WorkerPool speeds up processing of plugins by using more cores on separate threads. It terminates and recreates a worker after it finishes a task since web assembly seems to slow down a ton when a worker is reused (maybe memory becomes to large / unfragmented, idk).

I switched to the deprecated input tag with webkitdirectory since it is the only way to load a folder under the program files folder. Drag and drop might be another alternative, but I'd rather have a picker.
2022-03-04 23:49:14 -05:00
thallada 3a34f48e6c Remove console.logs 2022-03-03 22:11:40 -05:00
thallada 20144ae130 Process plugins round-robin in a web worker queue
Speeds it up a lot!
2022-03-03 01:33:36 -05:00
thallada 5144f8d6e1 Move worker init to index page 2022-03-02 23:53:20 -05:00
thallada 96599cb2c8 Fix load order re-applying and transition between sidebar pages 2022-03-02 23:23:06 -05:00
thallada de445627bf Refactor PluginsLoader into separate components 2022-03-02 22:19:26 -05:00
thallada f6d02c6d33 Basic plugin data page 2022-02-27 02:25:34 -05:00
thallada 761ef80669 Default sidebar and WIP PluginLoader 2022-02-27 01:17:52 -05:00
thallada bf994d896f Change title & meta tags on cell/mod selection 2022-02-14 00:41:03 -05:00
thallada 11be05854f Add .nvmrc file for cloudflare pages 2022-02-14 00:16:48 -05:00
thallada 452799192a Add sitemap, generated at build time 2022-02-13 23:45:41 -05:00
thallada 9f46000eff Fix z-index of sidebar for landscape mobile views 2022-02-13 15:04:54 -05:00
thallada e2ff1f2348 Use absolute urls for meta tag images 2022-02-12 20:48:22 -05:00
thallada 6772a74bb8 Add meta tags to header 2022-02-12 20:40:55 -05:00
thallada b77c8f50d9 Better sidebar header css styling
Use sticky header which removes some hard-coded pixel positions and should work in safari.
2022-02-12 19:36:52 -05:00
thallada 141d9c025d Refactor cell selection method
Pre-draw lines during map init and then use feature-state to toggle them.

Renables pitch and rotation controls. To avoid bad panning / fitBounds, use easeTo to fix bearing and pitch back to 0 before panning.
2022-02-11 12:40:27 -05:00
thallada 641957cfb5 Disable drag rotate and compass
My cell selection code breaks horribly if the map is rotated.
2022-02-09 00:09:41 -05:00
thallada bc41a41099 Disable changing camera pitch 2022-02-08 22:46:27 -05:00
thallada df27a85aa1 Merge branch 'main' of github.com:thallada/modmapper-web into main 2022-02-08 00:21:39 -05:00
thallada aabef69948 Update favicon.ico 2022-02-08 00:21:37 -05:00
thallada 4f5fa4917d Improve mod search 2022-02-07 10:43:51 -05:00
thallada 59d4e80248 Reserve top space for sidebar close button 2022-02-07 00:09:47 -05:00
thallada 53ad361085 Increase mod fitBounds padding 2022-02-06 23:02:00 -05:00
thallada 4ae16515bf Add cells to search bar 2022-02-06 22:55:58 -05:00
thallada f5cb888a72 Add cell count to mod cell list header 2022-02-06 22:15:34 -05:00
thallada dabc4ec633 Add Nexus Mods to attribution string 2022-02-06 22:13:06 -05:00
thallada e6743cd65e Display form ids in hex 2022-02-06 22:09:24 -05:00
thallada 6d27db3122 Add layer to show cells a selected cell edits
Also removes the link color to make links clearer.
2022-02-06 22:00:14 -05:00
thallada 6005028439 Use downshift-js for better search bar experience 2022-02-06 20:45:18 -05:00
thallada 86a7516c3b Add list of cells to mod detail pane 2022-02-06 19:38:48 -05:00
thallada 16a2ec3ac9 Sort mod search results by unique downloads 2022-01-30 16:55:50 -05:00
thallada 8bae1c03c8 Fix mod selection and deselection 2022-01-30 16:14:32 -05:00
thallada 716900a397 Faster search with minisearch 2022-01-25 00:52:52 -05:00
thallada 8d3b801aab Very slow mod search, and mod data component 2022-01-25 00:31:25 -05:00
thallada b263c6b0cb Add search, query url based state
Still need to wire up the mod and cell data to the search.
2022-01-24 00:59:36 -05:00
thallada dbec8def39 Add titles to toggle layer control buttons 2022-01-23 19:51:28 -05:00
thallada bb8a640d08 Fix sidebar close button to top of panel 2022-01-23 19:49:28 -05:00
thallada 7b5cc02993 Fix fullscreen controls 2022-01-23 19:39:36 -05:00
thallada c031524bd4 Prevent multiplying click handlers 2022-01-23 18:29:30 -05:00
thallada c5b2ede9d2 Increase double click timeout 2022-01-23 18:05:36 -05:00
thallada d6720da142 Allow double click zooms with setTimeout
Still not perfect, but good enough for now.
2022-01-23 13:06:44 -05:00
thallada c417222e2c Put sidebar on bottom half of small screens 2022-01-23 13:06:13 -05:00
thallada 7983e0d30b Try to prevent race with data loading 2022-01-23 12:34:59 -05:00
thallada a5e2c4a8c8 Remove console.logs 2022-01-19 01:07:32 -05:00
thallada a1f2cc830a Fetch & display data for selected cell in sidebar 2022-01-19 01:06:19 -05:00
thallada 8d94b68332 Improve heatmap layer coloring and opacity
Also fix cell selection with heatmap layer disabled.
2022-01-17 17:46:44 -05:00
thallada fb13ebfa6c Add selected cell line outline layer 2022-01-17 17:46:43 -05:00
thallada 576eb5b583 First attempt at selected cell state display 2022-01-17 17:46:42 -05:00
thallada 79015201b0 Add sidebar for displaying selected cell 2022-01-17 17:46:41 -05:00
thallada 9a07f552b5 Fix types and lints 2022-01-17 17:46:39 -05:00
thallada bb5a2ea8c4 Add @types/types/javascript-color-gradient 2022-01-17 17:46:38 -05:00