Luciole
e59027f557
don't cast filename to string
2023-08-14 22:27:35 +02:00
Luciole
4024969be8
no default for routes
2023-08-14 18:54:49 +02:00
Luciole
f2736bae40
tsconfig update; fix function signature; test: add .default
2023-08-14 14:34:56 +02:00
Luciole
a26dcf5075
defaultRoleId: explicitly check for null
2023-08-14 13:31:55 +02:00
Luciole
8108fcac81
update package.json to fix test running and import version
2023-08-14 11:56:41 +02:00
Luciole
8256f06a6a
update QueryLogFilter: make maxLevel optional
2023-08-14 11:29:24 +02:00
Luciole
25e65910dd
Controller: back to hosts, instances, modPacks, mods init to null
2023-08-14 11:26:48 +02:00
Luciole
ef32f6f466
.closing > .connector.closing
2023-08-14 11:03:44 +02:00
Luciole
23089aa1af
createUser: if no default_role_id, assign no role
2023-08-14 11:00:11 +02:00
Luciole
3036507baa
clarify null / undefined / 0
...
remove useless type import and signature
export directly
cleanup
2023-08-14 10:54:30 +02:00
Luciole
c96a13ef30
fix removed Buffer from base64 auth_secret
2023-08-14 10:03:31 +02:00
Luciole
3fac5b00d3
non-null assertion on response.socket
2023-08-14 09:48:38 +02:00
Luciole
3e4acaaf4e
use instance.game_port
2023-08-14 09:47:50 +02:00
Luciole
799cfe7ff2
test: import controller/* from dist folder
2023-08-13 19:21:51 +02:00
Luciole
6104843858
transition of controller package to typescript
2023-08-13 18:12:12 +02:00
Luciole
e011625a2d
expose and/or modify signatures from lib package
2023-08-13 16:53:03 +02:00
Hornwitser
b72fa25d3f
Merge pull request #494 from Hornwitser/typescript-ctl
...
Port ctl package to Typescript
2023-08-12 20:52:14 +02:00
Hornwitser
ec0fded0cc
Port ctl package to TypeScript
2023-08-12 20:36:33 +02:00
Hornwitser
5ec7c9f99c
Fix bad typings in lib
...
These were missed or broken in the in the inital porting of lib to
TypeScript.
2023-08-12 19:59:44 +02:00
Hornwitser
6d523096ce
Merge pull request #493 from Hornwitser/typescript-lib
...
Port lib package to TypeScript
2023-08-12 14:44:59 +02:00
Hornwitser
f875843c5c
Turn on source maps for .ts files
...
Fix coverage checking not being able to deduce the original TypeScript
files due to lacking a way to link the compiled .js output files with
the .ts input files.
2023-08-12 14:34:36 +02:00
Hornwitser
954bc9b314
Use composite build
...
Make TypeScript build faster for a multi package setup by allowing the
compiller to quickly determine if a package is already built.
2023-08-12 02:31:17 +02:00
Hornwitser
a66e930997
Use strict type checking
2023-08-12 02:31:17 +02:00
Hornwitser
2ca8e69025
Remove message_validate.js ignore
...
This file was relocated to the dist folder.
2023-08-11 01:16:12 +02:00
Hornwitser
679c00527f
Port remaining lib/data modules to TypeScript
2023-08-11 01:13:38 +02:00
Hornwitser
2a52a82fb7
Port message types to TypeScript
2023-08-11 00:24:00 +02:00
Hornwitser
15ea9a91dc
Port basic lib sub-modules to TypeScript
2023-08-06 18:38:20 +02:00
Hornwitser
e0c197b9bc
Port basic lib modules to TypeScript
2023-08-06 01:03:13 +02:00
Hornwitser
2988cd962c
Port stream.ts to TypeScript
2023-08-03 15:51:58 +02:00
Hornwitser
dedb42447c
Port helpers.js to TypeScript
2023-08-03 15:03:52 +02:00
Hornwitser
74e9ed8257
Replace jsdoc with typedoc
...
Use TypeDoc instead of JSDoc because it has better support for
documenting TypeScript APIs.
2023-08-03 15:02:31 +02:00
Hornwitser
3a321b39e1
Remove incorrect validation of forwared messages
...
Messages are forwareded when received from another link, this means it's
too late to throw an error that bubbles up to the code trying to send
the incorrect message thus defeating the purpose of the validation.
2023-08-03 15:01:34 +02:00
Hornwitser
90798205e0
Set up TypeScript for lib
...
Add a TypeScript build suitable for incremental migration to TypeScript
to the lib package.
2023-08-03 15:01:34 +02:00
Hornwitser
a1ee147c46
Merge pull request #490 from Hornwitser/speedup-ctl
...
Speedup ctl
2023-07-30 02:27:19 +02:00
Hornwitser
5eb91be6fb
Pre-compile Message validator
...
Use a script to pre-compile the validator for the Message class to
reduce the loading time for ctl by about 40ms.
2023-07-30 01:54:59 +02:00
Hornwitser
83695e3e4c
Merge pull request #488 from Hornwitser/refactor-lib
...
Refactor lib
2023-07-30 00:10:25 +02:00
Hornwitser
ae542e9501
Lazy compile schema validators for ctl
...
Speed up the startup time for ctl by delaying schemas compilation until
the validator is used. Saves approximately 120ms on startup time.
2023-07-28 21:36:43 +02:00
Hornwitser
a5c7eb3a27
Move user token signing to UserManager
...
Only the controller has access to the secret needed to sign user tokens
so it makes sense for the user signing code to live in the controller.
This saves about 20ms on the time ctl takes to start up due to lib no
longer needing to import jsonwebtoken.
2023-07-28 16:03:29 +02:00
Hornwitser
6af25e085c
Move Factorio server implementation to host
...
Move Factorio related code in lib that's only used by the host into the
host package.
2023-07-28 16:03:29 +02:00
Hornwitser
bc574ee1cb
Reorganise packages/lib
...
Move the majority of the script files into a src directory to be
consistent with the organisation of the other packages.
2023-07-28 16:03:29 +02:00
Hornwitser
bfe119eaa3
Flatten lib namespace
...
Move all functions and classes currently available through lib/name and
libName to be under a single flat namespace in lib. This make
reorganising the lib namespace much simpler as the location of symbols
can move without breaking the consumers of lib.
The multi-entrypoint design was already problematic for the web plugin
system which couldn't effectively use it due to how webpack's shared
module system is awkward to set up with multiple entrypoints per package.
2023-07-28 16:03:29 +02:00
Hornwitser
bb58670597
Merge pull request #487 from Hornwitser/node-js-16
...
Bump supported Node.js to v18 and update dependencies
2023-07-27 23:17:09 +02:00
Hornwitser
c2fa873d85
Update version of pnpm used on CI
2023-07-27 21:04:27 +02:00
Hornwitser
d9e94648d3
Fix wrong Node.js version in contributing docs.
2023-07-27 17:55:34 +02:00
Hornwitser
fd709fd98c
Update web dependencies
...
- react: Update to new root rendering method
- react-router: Replace useHistory with useNavigate
- react-router: Replace <Switch> with <Routes>
- reimplement sticky notice from scratch in ModPackViewPage
- remove isomorphic-ws as it's latest version doesn't work and only
saves one line of code.
- remove import of antd.dark.css
- fix misc css breakages.
2023-07-27 17:50:14 +02:00
Hornwitser
8d98eaf3a5
Reimplement PageHeader
...
Implement our own version ofwhe PageHeader component, due to it being
removed from ant design v5.
2023-07-27 17:37:27 +02:00
Hornwitser
789c02b5c7
Fix missing return in applyModPackChanges
2023-07-27 13:43:32 +02:00
Hornwitser
a1c9bc5f9b
Migrate deprecated ant design APIs
...
Rename visible to open and use menu instead of overlay in Dropdown as
both of these have been removed in the next major version of Antd.
2023-07-27 13:42:35 +02:00
Hornwitser
2de029b96e
Fix strict mode warnings from Ajv
...
Add type object to schemas specifying properties and minItems to schemas
specifying tuples. Disable strictTuples because it's desirable to be
able to add additional items to the tuples in the future.
2023-07-27 00:35:26 +02:00
Hornwitser
1a9cbd26b3
Update non-web dependencies
...
Update non-web related dependencies to their latest version were
possible. It appears yargs has changed its parsing of command line
options to no longer remove a layer of quotes.
2023-07-27 00:35:26 +02:00