Danielv123
51657bea44
Extend PageHeader for plugins
...
My plugins used the antd pageheader more than base did. I did not notice that these features dissappeared when we migrated from antd to our own implementation - this brings them back
2024-06-14 19:19:42 +02:00
Cooldude2606
498638c0c9
Improve config, message, and module templates ( #641 )
...
* Improve config, message, and module templates
* Update global handler in template module
* Add comments to empty instance template
2024-06-08 13:53:23 +01:00
Cooldude2606
dbc79779ea
Fix sending log messages across invalid link ( #639 )
2024-06-08 13:52:29 +01:00
Cooldude2606
2c2521a688
Add error tests for sendEvent and sendRequest ( #638 )
2024-06-07 15:46:49 +01:00
Danielv123
2dbf264d46
Add bun compatibility
2024-05-24 17:25:29 +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
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
Cooldude2606
0c9e91b953
Fix error message on instance loopback attempt
2024-05-18 03:40:18 +01:00
Danielv123
05b697fd24
Prevent dropping files outside of dropzones
2024-05-15 19:43:40 +01:00
Cooldude2606
b9e9a754b8
Change all workspace versions to workspace:* ( #621 )
2024-05-08 20:38:05 +01: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
2024-04-28 19:14:27 +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
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
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
Cooldude2606 and Hornwitser
9a4241e4cd
Update flags for output file
...
Co-authored-by: Hornwitser <github@hornwitser.no >
2024-02-28 16:26:53 +00:00
Cooldude2606
8dcb2197d6
Use try catch for output file existing
2024-02-28 15:25:08 +00:00
Cooldude2606
a168f7db5e
Add call to action for config desc
2024-02-27 23:57:13 +00:00
Cooldude2606
283aba70df
Update descriptions
2024-02-27 23:53:20 +00:00
Cooldude2606
62abfa903b
Change to new preprocessor style
2024-02-27 23:07:38 +00:00
Cooldude2606
ec19d5456e
Merge branch 'master' into feature/plugin-template
2024-02-27 13:07:08 +00:00
Danielv123
b70feb37f2
Show table overlay when dragging and dropping saves/mods
2024-02-26 22:04:37 -06:00
Danielv123
ebf6536374
Change style of mod upload button on drag and drop
2024-02-26 22:03:47 -06:00
Daniel
a68bb9c0a8
Increase libLink event emitter leak warning limit ( #600 )
2024-02-25 23:50:14 +01:00
Cooldude2606
46309ce5b8
Lint Fixes
2024-02-18 17:58:16 +00:00
Cooldude2606
f392b258f7
Add subscriptions and luacheck
2024-02-17 03:11:54 +00:00
Cooldude2606
1afee2ede5
Merge branch 'master' into feature/http-logging
2024-02-14 22:46:19 +00:00