-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
ab1ee60
commit 277b305
Showing
5 changed files
with
68 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ | |
] | ||
}, | ||
"devDependencies": { | ||
"gh-pages": "^3.2.0" | ||
"gh-pages": "^3.2.0", | ||
"husky": "^6.0.0" | ||
} | ||
} |
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,30 @@ | ||
export const BASE_BROKER_URL = 'mqtt.raghavdhingra.com'; | ||
|
||
export const PROTOCOL_TYPE = | ||
process.env.NODE_ENV === 'development' ? 'ws' : 'wss'; | ||
|
||
export const PORT_NUMBER = | ||
process.env.NODE_ENV === 'development' ? '3033' : '8083'; | ||
|
||
export const PUBLISH_EVENT = { | ||
up: 'up', | ||
down: 'down', | ||
right: 'right', | ||
left: 'left', | ||
}; | ||
|
||
export const BASE_PUBLISH_EVENT = 'car/remote/'; | ||
|
||
export const ARROW_WIDTH = '40px'; | ||
|
||
export const BUTTON_KEY = { | ||
up: 'button_up', | ||
down: 'button_down', | ||
right: 'button_right', | ||
left: 'button_left', | ||
}; | ||
|
||
export const MOUSE_EVENT = { | ||
up: 'mouse_up', | ||
down: 'mouse_down', | ||
}; |
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 |
---|---|---|
|
@@ -5892,6 +5892,11 @@ humanize-url@^1.0.0: | |
normalize-url "^1.0.0" | ||
strip-url-auth "^1.0.0" | ||
|
||
husky@^6.0.0: | ||
version "6.0.0" | ||
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e" | ||
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ== | ||
|
||
[email protected]: | ||
version "0.4.24" | ||
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" | ||
|