-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
128 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,5 @@ type PartialAddress = DeepPartial<Address>; | |
// } | ||
// } | ||
``` | ||
|
||
And other... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ComponentType } from 'react'; | ||
|
||
/** | ||
* This type is ES Module import alias. | ||
*/ | ||
export type EsmImport<Import extends any = ComponentType<any>> = () => Promise<{ | ||
default: Import; | ||
}>; |
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,106 @@ | ||
export const KeyCodes = { | ||
Backspace: 'Backspace', | ||
Tab: 'Tab', | ||
Enter: 'Enter', | ||
ShiftLeft: 'ShiftLeft', | ||
ShiftRight: 'ShiftRight', | ||
ControlLeft: 'ControlLeft', | ||
ControlRight: 'ControlRight', | ||
AltLeft: 'AltLeft', | ||
Pause: 'Pause', | ||
CapsLock: 'CapsLock', | ||
Escape: 'Escape', | ||
Space: 'Space', | ||
PageUp: 'PageUp', | ||
PageDown: 'PageDown', | ||
End: 'End', | ||
Home: 'Home', | ||
ArrowLeft: 'ArrowLeft', | ||
ArrowUp: 'ArrowUp', | ||
ArrowRight: 'ArrowRight', | ||
ArrowDown: 'ArrowDown', | ||
PrintScreen: 'PrintScreen', | ||
Insert: 'Insert', | ||
Delete: 'Delete', | ||
'0': 'Digit0', | ||
'1': 'Digit1', | ||
'2': 'Digit2', | ||
'3': 'Digit3', | ||
'4': 'Digit4', | ||
'5': 'Digit5', | ||
'6': 'Digit6', | ||
'7': 'Digit7', | ||
'8': 'Digit8', | ||
'9': 'Digit9', | ||
A: 'KeyA', | ||
B: 'KeyB', | ||
C: 'KeyC', | ||
D: 'KeyD', | ||
E: 'KeyE', | ||
F: 'KeyF', | ||
G: 'KeyG', | ||
H: 'KeyH', | ||
I: 'KeyI', | ||
J: 'KeyJ', | ||
K: 'KeyK', | ||
L: 'KeyL', | ||
M: 'KeyM', | ||
N: 'KeyN', | ||
O: 'KeyO', | ||
P: 'KeyP', | ||
Q: 'KeyQ', | ||
R: 'KeyR', | ||
S: 'KeyS', | ||
T: 'KeyT', | ||
U: 'KeyU', | ||
V: 'KeyV', | ||
W: 'KeyW', | ||
X: 'KeyX', | ||
Y: 'KeyY', | ||
Z: 'KeyZ', | ||
/** Left Windows key */ | ||
MetaLeft: 'MetaLeft', | ||
/** Right Windows key */ | ||
MetaRight: 'MetaRight', | ||
ContextMenu: 'ContextMenu', | ||
Numpad0: 'Numpad0', | ||
Numpad1: 'Numpad1', | ||
Numpad2: 'Numpad2', | ||
Numpad3: 'Numpad3', | ||
Numpad4: 'Numpad4', | ||
Numpad5: 'Numpad5', | ||
Numpad6: 'Numpad6', | ||
Numpad7: 'Numpad7', | ||
Numpad8: 'Numpad8', | ||
Numpad9: 'Numpad9', | ||
NumpadMultiply: 'NumpadMultiply', | ||
NumpadAdd: 'NumpadAdd', | ||
NumpadSubtract: 'NumpadSubtract', | ||
NumpadDecimal: 'NumpadDecimal', | ||
NumpadDivide: 'NumpadDivide', | ||
F1: 'F1', | ||
F2: 'F2', | ||
F3: 'F3', | ||
F4: 'F4', | ||
F5: 'F5', | ||
F6: 'F6', | ||
F7: 'F7', | ||
F8: 'F8', | ||
F9: 'F9', | ||
F10: 'F10', | ||
F11: 'F11', | ||
F12: 'F12', | ||
NumLock: 'NumLock', | ||
ScrollLock: 'ScrollLock', | ||
Semicolon: 'Semicolon', | ||
Equal: 'Equal', | ||
Comma: 'Comma', | ||
Minus: 'Minus', | ||
Period: 'Period', | ||
Slash: 'Slash', | ||
Backquote: 'Backquote', | ||
BracketLeft: 'BracketLeft', | ||
Backslash: 'Backslash', | ||
BracketRight: 'BracketRight', | ||
Quote: 'Quote', | ||
}; |
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 interface MetaInfo { | ||
title: string; | ||
description?: string; | ||
keywords?: string; | ||
} |