Danielv123
a3d98595e2
Fix linter errors
2021-11-22 13:28:29 +01:00
Danielv123
6af34dc3a6
Update BaseConfigTree when props.id changes
2021-11-22 13:17:39 +01:00
Danielv123
1cf3e39d72
Avoid savesProvider throwing errors on missing instanceId
2021-11-22 12:44:48 +01:00
Danielv123
b192c82dcc
Export induvidual components from the web interface for plugin use
2021-11-22 10:20:44 +01:00
Danielv123
9138efca6f
Clear log console when changing props
2021-11-22 10:20:06 +01:00
Danielv123
52238de9b3
Expose react-router-dom to allow plugins to use useHistory()
...
See https://githubmemory.com/repo/module-federation/module-federation-examples/issues/716
2021-11-22 10:19:43 +01:00
Daniel
8638632600
Merge pull request #425 from Danielv123/fix-invokeHook
...
Add timeout to invokeHook on plugins
2021-11-21 10:03:30 +01:00
danielv
770e6a41d4
Add timeout to invokeHook on plugins
2021-11-20 12:44:46 +01:00
Daniel
fcdbf59f7a
Merge pull request #433 from Danielv123/fix-node12-support
...
Support node12 by removing optional chaining
2021-11-20 12:17:34 +01:00
Danielv123
6c80227103
Support node12 by removing optional chaining
2021-11-20 12:03:46 +01:00
Daniel
0016c6271a
Merge pull request #427 from Danielv123/gh-actions
...
Gh actions
2021-11-20 11:50:24 +01:00
Daniel
c557b7d6b2
Merge pull request #428 from Hornwitser/fix-localhost-resolve
...
Fix error when localhost resolves to ::1
2021-11-20 11:49:56 +01:00
Arvids Godjuks
3b8e89ea00
Merge pull request #424 from bbassie/slave-instance-ui-updates
...
Slave instance UI updates
2021-11-19 21:48:52 +02:00
Danielv123
e72ee3ecaf
Added linter to CI action
2021-11-19 17:58:54 +01:00
bbassie
15381ac260
Final running status color update
2021-11-16 23:50:13 +01:00
bbassie
b7e6acb24e
Added instance deleted alert and updated not found
2021-11-16 23:44:07 +01:00
bbassie
b86305db8c
Updated colors of the instance tag
2021-11-16 23:42:02 +01:00
bbassie
fe803a99ca
Instance status tag color changes
2021-11-16 21:50:21 +01:00
Hornwitser
a5a99e2ab1
Fix error when localhost resolves to ::1
...
Some systems may resolve localhost to ::1 while Factorio doesn't respond
to RCON connection over IPv6 loopback, this causes instances startup to
fail. Fix by using 127.0.0.1 instead of localhost.
2021-11-15 21:29:51 +01:00
Danielv123
56584a25c8
Remove old pipeline
2021-11-15 10:26:32 +01:00
Danielv123
03ba7cb68c
Added new testing pipeline
2021-11-15 10:20:18 +01:00
bbassie
f5ce0a8a8c
Missing import
2021-11-07 22:00:27 +01:00
bbassie
55bbc10986
Added slave status indicator tag to slave details page
...
Co-authored-by: Danielv123 <danielv@live.no >
2021-11-07 21:54:10 +01:00
bbassie
4fef2d8143
Fix message null issues
2021-11-07 21:35:48 +01:00
bbassie
4432a689bb
Fix instance list
2021-11-07 21:31:56 +01:00
bbassie
69d4a883ad
Add copy public address button
2021-11-04 22:25:53 +01:00
bbassie
2e5617c4b5
Fix instance port and status update
...
Master was not recieving instance status after restart. Instead only a status from the slave but the slave doesn't store the full instance status.
2021-11-04 22:25:36 +01:00
bbassie
f930ed36a0
Changed to using the real factorio port
2021-11-04 21:29:53 +01:00
bbassie
83b720eade
Added public_address field to lists
...
- InstanceList
- SlavesPage
Added public_address field to messages
- slaveProperties
- instanceProperties
2021-11-04 01:39:28 +01:00
bbassie
c3a1b420ea
Added InstanceStatusTag react component
...
- Modified InstanceList & InstanceViewPage to use it
2021-11-04 01:36:56 +01:00
Hornwitser
c889d8f325
Ignore SessionLost from updateInstances ( #422 )
...
Don't shutdown the slave if the connection session is lost during
updateInstances. Resolves #418 .
2021-11-03 16:27:21 +01:00
Hornwitser
e23d07e965
Use safe file writing pattern ( #421 )
...
Write new file contents to a temporary file and then rename over the
target file to avoid data loss in the unlikely event there's an error
writing the new file contents or the process is interrupted.
Resolves #416 .
2021-11-03 16:14:18 +01:00
Hornwitser
9e7a7a602f
Merge pull request #420 from Hornwitser/slave-page
...
Slave page
2021-10-31 16:53:34 +01:00
Hornwitser
6e5e5f0aeb
Show log console for master and slaves in web UI
...
Rename InstanceConsole to LogConsole and use it to show logs for the
master server and slaves as well.
2021-10-31 10:41:25 +01:00
Hornwitser
7769c1f89e
Add SlaveViewPage
...
Add slave overview page displaying instances assigned and some basic
properties.
2021-10-31 10:41:25 +01:00
Hornwitser
a2a5cf6d4c
Warn on instances with duplicated ids
...
It's possible that someone copies an instance folder and don't change
the instance id in it. Emit a warning in case this happens.
2021-10-31 07:26:56 +01:00
Hornwitser
bdfe8e630e
v2.0.0-alpha.10.b hotfix for installer
v2.0.0-alpha.10.b
2021-10-05 20:19:58 +02:00
Hornwitser
66719375af
Fix installer not setting address and ctl config ( #417 )
...
Somehow the step of automatically obtaining the right address to apply
to slave.public_address, and asking for the master url and token for ctl
installations was implemented but the code to actually set it in the
relevant config was forgotten.
2021-10-05 20:05:44 +02:00
Hornwitser
ef3d5209eb
v2.0.0-alpha.10
v2.0.0-alpha.10
2021-10-01 17:59:16 +02:00
Hornwitser
e4eac3f9ad
Merge pull request #415 from Hornwitser/small-things-6
...
Small things 6
2021-10-01 17:55:07 +02:00
Hornwitser
107284e796
Fix > and < being present in docs
...
< and > must apparently not be escaped inside backticks.
2021-10-01 01:52:18 +02:00
Hornwitser
bad86a5ff2
Fix inventory_sync uploading editor mode
...
The serialization and deserialization of editor mode is not supported by
the current code, and while the download correctly checked for the
player being in editor mode, the upload did not check for the player
being in editor mode causing players in editor mode to break. Fix by
adding check in upload_inventory.
2021-10-01 01:52:18 +02:00
Hornwitser
034ca4c250
Fix research_sync sending commands before instance start
...
Fix commands syncing researces being sent before the instance is started
up, and potential desync of research progress as a result of out of
order execution of RCON commands sent.
2021-10-01 01:52:18 +02:00
Hornwitser
2b101d594a
Fix statistics_exporter sending commands before start
...
Fix statistics_exporter potentially sending commands before an instance
is started when metrics are collected.
2021-10-01 01:52:18 +02:00
Hornwitser
c40362fa7f
Add sendOrderedRcon for plugins
...
Add BaseInstancePlugin method for sending RCON commands in order to
simplify logic in plugins that depend on commands being delivered in
order.
2021-10-01 01:52:18 +02:00
Hornwitser
e8b515c733
Update missing docs from connector refactor
...
Fix documentation of max_reconnect_delay, heartbeat_interval and
session_timeout which where changed with the connector refactor.
2021-09-28 23:04:30 +02:00
Hornwitser
e5582b5558
Skip gatherng metrics from dropped slaves
...
Avoid stacking up huge amounts of metrics requests while a slave
connection is in the dropped state.
2021-09-28 21:36:28 +02:00
Hornwitser
3b6ebeb653
Handle errors gathering metrics from slaves
...
If the session to a slave is lost while gathering metrics the error
would propagate out to the metrics route handler and break collection of
statistics. Fix by handling errors thrown from sending the getMetrics
request to slaves.
2021-09-28 21:32:29 +02:00
Hornwitser
bfec83996a
Expect close in WsServer connection disconnect
...
Don't bother doing the prepareDisconnect dance if the connection is
already broken. This avoids having to wait until the connection times
out when a slave gives up on a current connection and starts a new one.
2021-09-28 21:28:38 +02:00
Hornwitser
4a72c14b74
Terminate connection on timeout
...
If a connection has timed out the most likely cause is the connection
going stale, in which case calling close could take up to 30 seconds
before the ws lib gives up on waiting for the close message. Terminate
the connection instead on the Node.js side. Note that Firefox does not
permit applications from closing connections with a code other than
1000, or in the range 3000-4999.
2021-09-28 21:24:42 +02:00