-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: re-write gui/constants to typescript
- Loading branch information
Showing
13 changed files
with
55 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {ValueOf} from 'type-fest'; | ||
|
||
export const ClientEvents = { | ||
BEGIN_SUITE: 'beginSuite', | ||
BEGIN_STATE: 'beginState', | ||
|
||
TEST_RESULT: 'testResult', | ||
|
||
RETRY: 'retry', | ||
ERROR: 'err', | ||
|
||
END: 'end' | ||
} as const; | ||
|
||
export type ClientEvents = typeof ClientEvents; | ||
|
||
export type ClientEvent = ValueOf<ClientEvents>; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const CONTROL_TYPE_BUTTON = 'button'; | ||
|
||
export const CONTROL_TYPE_RADIOBUTTON = 'radiobutton'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {ValueOf} from 'type-fest'; | ||
|
||
export const GuiEvents = { | ||
SERVER_INIT: 'serverInit', | ||
SERVER_READY: 'serverReady' | ||
} as const; | ||
|
||
export type GuiEvents = typeof GuiEvents; | ||
|
||
export type GuiEvent = ValueOf<GuiEvents>; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const MAX_REQUEST_SIZE = '100mb'; | ||
|
||
export const KEEP_ALIVE_TIMEOUT = 120 * 1000; | ||
|
||
export const HEADERS_TIMEOUT = 125 * 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters