-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type annotations to everything Typescript was complaining about. Remove extensions from import statements because Typescript doesn't like those either. Struggle to get ace-builds to behave in the webpack. Importing webpack-resolver doesn't seem to be doing anything.
- Loading branch information
Showing
9 changed files
with
78 additions
and
64 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 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 |
---|---|---|
@@ -1,29 +1,36 @@ | ||
import Topbar from './Topbar.tsx'; | ||
import Editor from './editor/Editor.tsx'; | ||
import DeviceInfo from './DeviceInfo.tsx'; | ||
import AppConsole from './AppConsole.tsx'; | ||
import ConnectionInfoModal from './modals/ConnectionInfoModal.tsx'; | ||
import GamepadInfoModal from './modals/GamepadInfoModal.tsx'; | ||
import ResizeBar from './ResizeBar.tsx'; | ||
import { StrictMode } from 'react'; | ||
import { Provider as ReduxProvider } from 'react-redux'; | ||
import store from './store/store'; | ||
import Topbar from './Topbar'; | ||
import Editor from './editor/Editor'; | ||
import DeviceInfo from './DeviceInfo'; | ||
import AppConsole from './AppConsole'; | ||
import ConnectionInfoModal from './modals/ConnectionInfoModal'; | ||
import GamepadInfoModal from './modals/GamepadInfoModal'; | ||
import ResizeBar from './ResizeBar'; | ||
import './App.css'; | ||
|
||
/** | ||
* Top-level component handling layout. | ||
*/ | ||
export default function App() { | ||
return ( | ||
<div className="App"> | ||
<Topbar /> | ||
<div className="App-cols"> | ||
<Editor /> | ||
<ResizeBar /> | ||
<DeviceInfo /> | ||
</div> | ||
<AppConsole /> | ||
<div className="App-modal-container"> | ||
<ConnectionInfoModal /> | ||
<GamepadInfoModal /> | ||
</div> | ||
</div> | ||
<StrictMode> | ||
<ReduxProvider store={store}> | ||
<div className="App"> | ||
<Topbar /> | ||
<div className="App-cols"> | ||
<Editor /> | ||
<ResizeBar /> | ||
<DeviceInfo /> | ||
</div> | ||
<AppConsole /> | ||
<div className="App-modal-container"> | ||
<ConnectionInfoModal /> | ||
<GamepadInfoModal /> | ||
</div> | ||
</div> | ||
</ReduxProvider> | ||
</StrictMode> | ||
); | ||
} |
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
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { createSlice } from '@reduxjs/toolkit'; | ||
|
||
const initialState = { | ||
runtimeVersion: "X.X.X", | ||
latencyMs: -1, | ||
batteryVoltage: 0 | ||
}; | ||
export const robotInfoSlice = createSlice({ | ||
name: 'robotInfo', | ||
initialState: { | ||
runtimeVersion: "X.X.X", | ||
latencyMs: -1, | ||
batteryVoltage: 0 | ||
}, | ||
initialState: initialState, | ||
reducers: {} | ||
}); | ||
export const robotInfoActions = robotInfoSlice.actions; | ||
export type RobotInfoState = typeof initialState; | ||
export default robotInfoSlice.reducer; |
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