Hornwitser
9f31394318
Name a type for event data
...
Use a named type for the EventData used in subscriptions. This was done
as a workaround for a bug in the linter.
2023-11-20 14:43:03 +01:00
Hornwitser
3cc9ec3c68
Ignore complexity in ConfigGroup.define
...
This method will most likely be rewritten in a future config refactor.
Ignore linter complexity for now.
2023-11-20 13:50:20 +01:00
Hornwitser
af9ed19af0
Setup typescript-eslint
...
Configure eslint to work with TypeScript via the typescript-eslint
plugin.
2023-11-19 04:50:07 +01:00
Hornwitser
b78ca31b09
Add typing for serialized collector type
...
Setup TypeScript tyings and JSON schema for serializeResult and
deserializeResult and use these in the metrics related requests.
2023-11-19 04:50:07 +01:00
Hornwitser
b66138587b
Move exposition content type to its own var
...
Remove anti-pattern of setting properties on Function object that is
difficult to document.
2023-11-19 04:50:07 +01:00
Hornwitser
80e1904175
Fix bad typings left over from the migration
2023-11-19 04:50:07 +01:00
Hornwitser
7314dc99c8
Fix code style errors
...
Remove extra whitespace, use more consistent spacing, add missing
semicolons, using dangling commas, break up long lines, consistent
multiline operator placement, add missing JSDoc strings and so on.
2023-11-19 04:48:38 +01:00
Hornwitser
60f09b11f9
Merge pull request #510 from Cooldude2606/refactor/subscriptions
...
Refactor/subscriptions - Create a generalized event subscription class
2023-10-13 14:45:44 +02:00
Cooldude2606 and Hornwitser
54cb483a31
Convert overloads to generic function
...
Co-authored-by: Hornwitser <github@hornwitser.no >
2023-10-13 11:21:55 +01:00
Hornwitser
d84445baa1
Fix line endings and indents
2023-10-12 17:07:07 +02:00
Cooldude2606
b15b1a6007
Fixed bugs found during pre-review
2023-10-06 18:30:15 +01:00
Luciole
e2dea35e02
allow to revoke host tokens from web ui ( #511 )
...
* allow to revoke / restore host access from web ui
* refector to what is expected
* remove core.admin check on HostViewPage.tsx
* update core.host.revoke_token description
2023-09-29 19:50:14 +02:00
Cooldude2606
4986a06cdf
Fixed web_ui websocket type error
2023-09-07 21:58:10 +01:00
Cooldude2606
621f850804
Some cleanup
2023-09-07 21:36:27 +01:00
Cooldude2606
2afddafe4d
All tests passing
2023-09-07 20:54:21 +01:00
Cooldude2606
2c9050824e
Test suite mostly ready
2023-09-07 03:36:38 +01:00
Cooldude2606
71166af75b
Fixed TestControl subscription requests
2023-09-06 01:09:02 +01:00
Cooldude2606
da25196830
Refactor to use subsribers
2023-09-05 01:46:45 +01:00
Cooldude2606
17943c48c3
A few renames and comments
2023-09-04 22:26:18 +01:00
Cooldude2606
62e69e3dbf
Add SubscriptionController and EventSubscriber
2023-09-04 21:46:28 +01:00
Luciole
838170a9ff
Port packages/web_ui to TypeScript ( #508 )
...
* .jsx to .tsx
* controller: tsc --build before webpack-cli
* Type Annotation
* disabled move into the <Input/> and <Checkbox/>
* cleanup debug left over
* documentation
* default ModPack
* modPackUpdateHandlers no undefined
* PluginInfo changes proposition
* PluginInfo changes proposition miss
* ModRecord & ModInfo feedback loop at const mods = [ ?
* ["connect", "drop", "resume", "close"] as const
* .tsx to .ts when possible
2023-09-02 14:51:35 +02:00
Hornwitser
c3d78a8cb8
Organise TSConfig files using inheritance
...
Removed duplicated TSConfig options by using a shared base config which
all plugins inherit shared settings from.
2023-08-26 17:11:46 +02:00
Hornwitser
36ced0d3ba
Merge pull request #503 from Luciole0x/inventory_sync-fix
...
fix inventory_sync plugin
2023-08-26 14:52:25 +02:00
Luciole
29eccb27ed
Allow pluggins to get custom config field
2023-08-26 00:08:56 +02:00
Hornwitser
a1148c7ec9
Refactor module patching logic
...
Break out the module info and patch info into data classes and pack all
the files for a module into one more easily modified structure.
2023-08-25 16:33:02 +02:00
Luciole
0b3550b472
Port remaining plugins to Typescript ( #499 )
...
* .js to .ts
* Allow access to _items entries; getItemCount return number
* add permission field to PluginPage interface
* port plugins to typescript
* update Request classes
* fix IpcFlowType
2023-08-22 16:17:16 +02:00
Luciole
50f12c719b
Port global_chat plugin to typescript ( #497 )
...
* .js to .ts
* translate
* update paths to dist/plugin
* add "tsc --build" to prepare
* use field main in package.json de find info
* tsc --build need to append before webpack
* update test and use for plugins package.main
2023-08-18 00:06:49 +02:00
Hornwitser
946c6e93c4
Port host package to TypeScript
2023-08-17 16:47:09 +02:00
Hornwitser
880fc77b88
Fix logger.child returning incorrect type
2023-08-17 16:47:09 +02:00
Hornwitser
94fbb8a92f
Rename MessageSrcDst to MessageRoutable
2023-08-17 16:47:09 +02:00
Hornwitser
9c9adf7c8e
Use return type deduction for timers
...
Fix updates to Node.js timers types breaking the TypeScript build by
deducing the correct type from the return type of the
setTimeout/setInterval functions.
2023-08-15 18:01:27 +02:00
Luciole
f2736bae40
tsconfig update; fix function signature; test: add .default
2023-08-14 14:34:56 +02:00
Luciole
8256f06a6a
update QueryLogFilter: make maxLevel optional
2023-08-14 11:29:24 +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
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
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
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