Skip to content

Commit 4ed88e9

Browse files
committed
QOL and other various changes
1 parent 4e2790e commit 4ed88e9

File tree

7 files changed

+42
-4
lines changed

7 files changed

+42
-4
lines changed

client/tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"noImplicitThis": false,
1010
"alwaysStrict": false,
1111
"esModuleInterop": true,
12-
"forceConsistentCasingInFileNames": true
13-
}
12+
"forceConsistentCasingInFileNames": true,
13+
"outDir": "./dist"
14+
},
15+
"exclude": [
16+
"./dist"
17+
]
1418
}

controller/package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controller/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "obscore-controller",
33
"version": "0.1.0",
4+
"homepage": "./",
45
"dependencies": {
56
"@fortawesome/fontawesome-free": "^5.13.0",
67
"@fortawesome/fontawesome-svg-core": "^1.2.28",
@@ -17,6 +18,7 @@
1718
"laco-react": "^1.1.0",
1819
"node-sass": "^4.13.1",
1920
"react": "^16.13.1",
21+
"react-app-rewired": "^2.1.6",
2022
"react-bootstrap": "^1.0.0",
2123
"react-dom": "^16.13.1",
2224
"react-scripts": "^3.4.1",
@@ -46,5 +48,8 @@
4648
"last 1 firefox version",
4749
"last 1 safari version"
4850
]
51+
},
52+
"devDependencies": {
53+
"babel-plugin-root-import": "^6.5.0"
4954
}
5055
}

controller/src/elements/SponsorTagInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ export default function SponsorTagInput({
2525
style={{flex: 0.3}}
2626
value={sponsor}
2727
onChange={changeSponsor}
28+
placeholder="Sponsor"
2829
/>
2930
<div className="border border-light"/>
3031
<FormControl
3132
value={tag}
3233
onChange={changeTag}
34+
placeholder="Tag"
3335
/>
3436
</InputGroup>
3537
)

controller/src/tabs/meta/CommentatorInfo.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export default function CommentatorInfo({slot}: {slot: number}) {
6262
<FormControl
6363
value={commentator.twitter ?? ""}
6464
onChange={changeTwitter}
65+
placeholder="Username"
6566
/>
6667
</InputGroup>
6768
<InputGroup size="sm">
@@ -73,6 +74,7 @@ export default function CommentatorInfo({slot}: {slot: number}) {
7374
<FormControl
7475
value={commentator.twitch ?? ""}
7576
onChange={changeTwitch}
77+
placeholder="Twitch handle"
7678
/>
7779
</InputGroup>
7880
</div>

controller/src/tabs/players/SideComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function SideButton({
1111
}: {
1212
value: string
1313
active: boolean,
14-
onClick: (Event) => void,
14+
onClick: (Event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void,
1515
label: string,
1616
tooltip: string
1717
}) {

controller/src/tabs/players/level/Custom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function Custom({
1010
}: {
1111
style: any, className?: string
1212
}) {
13-
const state = useStore(Store)
13+
const state: Scoreboard = useStore(Store)
1414

1515
const changeCustom = ({target}) => {
1616
Store.set((state: Scoreboard) => {

0 commit comments

Comments
 (0)