Danielv123
2dbf264d46
Add bun compatibility
2024-05-24 17:25:29 +01:00
Danielv123
ffc1a0fccd
Add devcontainer configuration file
2024-05-23 11:54:04 +01:00
Lars Corbijn
fddd65ddb8
Update documentation links for typescript change ( #633 )
2024-05-22 17:52:27 +01:00
Danielv123
e3ab71a2e9
Fix broken types
...
Some time between antd 5.15.0 and 5.17.3 they moved around some types, which caused our builds to break. This fixes the issue.
2024-05-21 19:08:15 +01:00
Cooldude2606
f4679ef6d1
Merge pull request #625 from Cooldude2606/fix/loopback-routing
...
Fix loopback routing message and add tests
2024-05-18 23:04:18 +01:00
Danielv123
eb78cdc322
Allow declaring custom config input components for objects
...
Input components allow us to customize the config field editing experience in plugins, but due to an oversight this did not include object definitions.
2024-05-18 20:57:46 +01:00
Danielv123
8705377232
Add typebox dependency
2024-05-18 20:57:16 +01:00
Danielv123
692075df1d
Add useInstanceConfig hook
...
Currently the web interface implements configs by pulling the state directly in the components where they are used. I need to access the instance config for a plugin, which would require me to duplicate parts of the instance config retrival code.
Instead, I implement it here under lib. This allows 3rd party consumers to get immediate access if we decide to implement a subscription model for configs in the future.
2024-05-18 20:57:16 +01:00
Cooldude2606
ebc0298115
Update changelog
2024-05-18 18:48:08 +01:00
Cooldude2606
d1fa5e67d4
Improve error throwing for sending events
2024-05-18 18:42:53 +01:00
Daniel
7489a76d4a
Merge pull request #602 from Danielv123/react-to-drag-and-drop
...
React to drag and drop
2024-05-18 17:57:31 +02:00
Cooldude2606
201209efb3
Fix undefined stack on some IPC errors ( #624 )
2024-05-18 14:56:37 +01:00
Danielv123
c6abe29e89
Correctly disable dropzone when host is offline
2024-05-18 10:27:40 +01:00
Danielv123
c8e54cd563
Fix crash loading mutiplayer map in singleplayer
...
Caused by on_player_created not being called when
loading a multiplayer map in singleplayer. For
further discussion see $622 and
https://forums.factorio.com/viewtopic.php?f=7&t=113497
2024-05-18 10:59:19 +02:00
Cooldude2606
0c9e91b953
Fix error message on instance loopback attempt
2024-05-18 03:40:18 +01:00
Cooldude2606
fb4a5e40f3
Add tests for loopbacks
2024-05-18 03:33:55 +01:00
Danielv123
05b697fd24
Prevent dropping files outside of dropzones
2024-05-15 19:43:40 +01:00
Daniel
d7c2e7eed7
Update mod management section of readme ( #618 )
...
* Update mod management section of readme
Resolves #617
* Update section after review
2024-05-15 10:41:24 -06:00
Cooldude2606
b9e9a754b8
Change all workspace versions to workspace:* ( #621 )
2024-05-08 20:38:05 +01:00
Cooldude2606
54f56d0ecd
Merge pull request #619 from Danielv123/prompt-for-http-port
...
Installer promt for http port
2024-05-05 20:39:25 +01:00
Danielv123
131e45e10a
Skip create integration tests
...
Tests are skipped because they are really slow and fail in CI
2024-05-05 02:24:57 +02:00
Danielv123
b27256421d
Fixed tests
2024-05-05 02:00:16 +02:00
Danielv123
e405f09f33
Add integration tests for create
2024-05-05 01:46:48 +02:00
Danielv123
78a9f73de8
Installer promt for http port
...
Resolves #564
2024-05-05 00:18:36 +02:00
Danielv123
b6113a1007
Merge branch 'master' into react-to-drag-and-drop
2024-05-04 20:49:29 +02:00
Danielv123
c34a13b3e4
Use global drag and drop hint overlay
2024-05-04 20:31:36 +02:00
Danielv123
920b5c1655
Merge branch 'master' into react-to-drag-and-drop
2024-05-04 15:55:33 +02:00
Hornwitser
e341adfb29
Remove redundant if condition
...
Noticed-By: @Cooldude2606
2024-04-28 20:39:27 +02:00
Hornwitser
464d588b5e
v2.0.0-alpha.18
v2.0.0-alpha.18
2024-04-28 19:14:27 +02:00
Hornwitser
0ddc1899fa
Merge pull request #616 from Hornwitser/fix-mod-settings-types
...
Handle bad mod setting types
2024-04-28 19:12:22 +02:00
Hornwitser
4e1116ae2d
Gracefully handle bad mod setting types in Web UI
...
Make sure all cobinations of missmatched types and missing mod settings
are gracefully handled by the Web UI.
Fixes #609 .
2024-04-28 16:59:03 +02:00
Hornwitser
3cf9f96233
Coerce mod settings types during data export
...
Use the settings prototypes to coerce any incorrectly typed mod settings
to the correct type either by casting or by replacing the value with the
default value from the prototype.
This will fix cases where an update to a mod changes the type of ono of
its defined settings.
2024-04-28 16:52:33 +02:00
Cooldude2606
c37fe0f438
Merge pull request #613 from Danielv123/Fix-patch-with-missing-file
...
Correctly handle module files missing from a previously patched save
2024-04-27 22:12:35 +01:00
Danielv123
8831b33c01
Filter out missing files on load
2024-04-27 22:09:16 +02:00
Hornwitser
56124574fb
Add changelog for #614
2024-04-27 19:58:00 +02:00
Hornwitser
9b416583f0
Add changelog for #570
2024-04-27 19:57:28 +02:00
Hornwitser
b885e37b5b
Add changelog for #606
2024-04-27 19:39:57 +02:00
Hornwitser
7e7e763517
Add changelog for #600
2024-04-27 19:38:21 +02:00
Daniel
811c4f7127
Use shell:true when running non-user input .cmd files on windows ( #614 )
...
Required after CVE fix: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2/
Resolves #612
2024-04-23 22:19:30 +01:00
Danielv123
f0fb471ea1
Correctly handle module files missing from a previously patched save
...
Resolves #611
2024-04-23 21:57:55 +02:00
Hornwitser
79c1a2dc99
Fix plugin hooks called before host removal ( #607 )
...
Due a bad order of operations when a host connection was closed the
event handler listening on "close" to remove the host from the
hostConnections mapping was added after the HostConnection's event
handler listening on "close" and invoking plugin hooks in response to
the host going offline. This in turn causes plugins that send
broadcasts in repsonse to thos hooks to throw an error due to the
broadcast sending code assuming connections that exist are valid target
to send messages to.
Fix by ordering the listener for the removal of the host connection
before the listener invoking plugin events.
2024-03-10 00:43:38 +01:00
Cooldude2606
a8ce8e7cc0
Merge pull request #570 from Cooldude2606/feature/plugin-template
...
Add command to create a new plugin from a template
2024-03-08 23:05:40 +00:00
Cooldude2606
50687515fa
Merge branch 'feature/plugin-template' of https://github.com/Cooldude2606/clusterio into feature/plugin-template
2024-03-08 22:00:55 +00:00
Cooldude2606
6f81216e7c
Addressed remaining review comments
2024-03-08 22:00:38 +00:00
Cooldude2606 and Hornwitser
3423e0a30c
Apply suggestions from code review
...
- Copy paste errors.
- Incorrect capitalisation.
- Incorrect exports.
- Missed find and replace.
Co-authored-by: Hornwitser <github@hornwitser.no >
2024-03-08 20:08:16 +00:00
Cooldude2606
8fbdb5dfab
Merge branch 'master' into feature/plugin-template
2024-03-06 20:12:08 +00:00
Hornwitser
7625fd82e3
Cache ModInfo to reduce startup time ( #606 )
...
Store and use a cache of the loaded ModInfo data to mod-info-cache.json
in the mods directory during startup. For simplicity this does not
cache mods added to the controller or host after startup, these get
added to the cache on the next startup.
2024-03-06 17:30:45 +00:00
Cooldude2606
5dcc66034b
Fix possible undefined title error ( #605 )
2024-03-06 18:11:45 +01:00
Cooldude2606
a66b1af454
Extra touch ups
2024-03-05 00:56:01 +00:00
Cooldude2606
3adfcf0a29
Updated web content permission
2024-02-28 16:36:35 +00:00