-
Notifications
You must be signed in to change notification settings - Fork 5
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
ed67377
commit 06b7f90
Showing
21 changed files
with
217 additions
and
80 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
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,68 @@ | ||
import React from 'react'; | ||
import { Router } from 'react-router'; | ||
import Synth from './synth'; | ||
/** | ||
* Top-level application component | ||
*/ | ||
declare class Application extends React.Component { | ||
state: { | ||
drawerOpen: boolean; | ||
snackbarOpen: boolean; | ||
snackbarMessage: string; | ||
snackbarAutoHideDuration: number; | ||
appBarTitle: string; | ||
appBarLeftElement: any; | ||
appBarRightElement: any; | ||
}; | ||
menuItems: { | ||
Home: { | ||
route: string; | ||
icon: any; | ||
}; | ||
"Sight Reading Practice": { | ||
route: string; | ||
icon: any; | ||
}; | ||
"Perfect Pitch Practice": { | ||
route: string; | ||
icon: any; | ||
}; | ||
"Free Play": { | ||
route: string; | ||
icon: any; | ||
}; | ||
About: { | ||
route: string; | ||
icon: any; | ||
}; | ||
}; | ||
synth: Synth; | ||
context: { | ||
router: Router; | ||
}; | ||
props: { | ||
children: any; | ||
}; | ||
static contextTypes: { | ||
router: Router; | ||
}; | ||
static childContextTypes: any; | ||
constructor(props: any); | ||
getChildContext(): { | ||
snackbar: any; | ||
appbar: any; | ||
synth: Synth; | ||
}; | ||
componentDidMount(): void; | ||
toggleDrawer(): void; | ||
leftNavChange(e: any, key: any, payload: any): void; | ||
drawerMenuItemTouched(e: any): void; | ||
snackbarRequestClose(): void; | ||
displaySnackbar(message: any, duration: any): void; | ||
/** | ||
* Used in child contexts to update the app bar | ||
*/ | ||
updateAppBar(title: any, leftElement: any, rightElement: any): void; | ||
render(): React.JSX.Element; | ||
} | ||
export default Application; |
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,8 +1,11 @@ | ||
import React from 'react'; | ||
import React, { ReactElement } from 'react'; | ||
/** | ||
* Wrapper around material-ui Card with some customizations | ||
*/ | ||
export default class extends React.Component { | ||
props: {}; | ||
render(): any; | ||
props: { | ||
children?: Element | Element[] | ReactElement | ReactElement[]; | ||
style?: React.CSSProperties; | ||
}; | ||
render(): React.JSX.Element; | ||
} |
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
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
Oops, something went wrong.