Testing trying to keep serialization through interface
More variables called through app, reversed to original. keep serialization through interface.
This commit is contained in:
@@ -62,7 +62,7 @@ const AboutDialog = class extends Component<AboutDialogProps, AboutDialogState>
|
|||||||
.then(jackStatus => {
|
.then(jackStatus => {
|
||||||
this.setState({ jackStatus: jackStatus });
|
this.setState({ jackStatus: jackStatus });
|
||||||
})
|
})
|
||||||
.catch(() => { /* ignore*/ });
|
.catch(_error => { /* ignore*/ });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,12 +116,12 @@ const AboutDialog = class extends Component<AboutDialogProps, AboutDialogState>
|
|||||||
this.mounted = false;
|
this.mounted = false;
|
||||||
this.updateNotifications();
|
this.updateNotifications();
|
||||||
}
|
}
|
||||||
componentDidUpdate(prevProps: Readonly<AboutDialogProps>, prevState: Readonly<AboutDialogState>, snapshot: unknown): void {
|
componentDidUpdate(prevProps: Readonly<AboutDialogProps>, prevState: Readonly<AboutDialogState>, snapshot: any): void {
|
||||||
super.componentDidUpdate?.(prevProps, prevState, snapshot);
|
super.componentDidUpdate?.(prevProps, prevState, snapshot);
|
||||||
this.updateNotifications();
|
this.updateNotifications();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDialogClose() {
|
handleDialogClose(_e: SyntheticEvent) {
|
||||||
this.props.onClose();
|
this.props.onClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,13 +54,13 @@ export class FakeAndroidHost implements AndroidHostInterface
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
setDisconnected(_isDisconnected: boolean): void {
|
setDisconnected(_isDisconnected: boolean): void {
|
||||||
void _isDisconnected;
|
|
||||||
}
|
}
|
||||||
showSponsorship() : void { }
|
showSponsorship() : void { }
|
||||||
|
|
||||||
launchExternalUrl(_url:string): boolean
|
launchExternalUrl(_url:string): boolean
|
||||||
{
|
{
|
||||||
void _url;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
private theme = 1;
|
private theme = 1;
|
||||||
@@ -72,7 +72,7 @@ export class FakeAndroidHost implements AndroidHostInterface
|
|||||||
}
|
}
|
||||||
setServerVersion(_serverVersion: string): void {
|
setServerVersion(_serverVersion: string): void {
|
||||||
// No-op for fake host
|
// No-op for fake host
|
||||||
void _serverVersion;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private keepScreenOn = false;
|
private keepScreenOn = false;
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ const theme = createTheme(
|
|||||||
/* make the selection state for MuiListItemButtons a smidgen darker (light theme only) */
|
/* make the selection state for MuiListItemButtons a smidgen darker (light theme only) */
|
||||||
MuiListItemButton: {
|
MuiListItemButton: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: () => ({
|
root: ({ theme }) => ({
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
backgroundColor: 'rgba(0, 0, 0, 0.2)', // Adjust for desired darkness
|
backgroundColor: 'rgba(0, 0, 0, 0.2)', // Adjust for desired darkness
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
|
|||||||
@@ -82,7 +82,8 @@ import { IDialogStackable, popDialogStack, pushDialogStack } from './DialogStack
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
type AppProps = WithStyles<typeof appStyles>;
|
interface AppProps extends WithStyles<typeof appStyles> {
|
||||||
|
};
|
||||||
|
|
||||||
const appStyles = ((theme: Theme) => (
|
const appStyles = ((theme: Theme) => (
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export function createStyles<T>(style: T): T {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default
|
export default
|
||||||
interface WithStyles<T extends (...args: unknown[]) => unknown> {
|
interface WithStyles<T extends (...args: any) => any> {
|
||||||
className?: string;
|
className?: string;
|
||||||
classes?: Partial<Record<keyof ReturnType<T>, string>>;
|
classes?: Partial<Record<keyof ReturnType<T>, string>>;
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ const ZoomedDial = withStyles(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onTouchStart() {
|
onTouchStart(e: TouchEvent<SVGSVGElement>) {
|
||||||
//must be defined to get onTouchMove
|
//must be defined to get onTouchMove
|
||||||
}
|
}
|
||||||
onTouchMove(e: TouchEvent<SVGSVGElement>) {
|
onTouchMove(e: TouchEvent<SVGSVGElement>) {
|
||||||
@@ -377,7 +377,8 @@ const ZoomedDial = withStyles(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onBodyPointerDownCapture(e: PointerEvent): any {
|
onBodyPointerDownCapture(e_: any): any {
|
||||||
|
let e = e_ as PointerEvent;
|
||||||
if (this.isExtraTouch(e)) {
|
if (this.isExtraTouch(e)) {
|
||||||
this.captureElement!.setPointerCapture(e.pointerId);
|
this.captureElement!.setPointerCapture(e.pointerId);
|
||||||
this.capturedPointers.push(e.pointerId);
|
this.capturedPointers.push(e.pointerId);
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ const ZoomedUiControl = withTheme(withStyles(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(oldProps: ZoomedUiControlProps) {
|
componentDidUpdate(oldProps: ZoomedUiControlProps, oldState: ZoomedUiControlState) {
|
||||||
if (this.hasControlChanged(oldProps, this.props)) {
|
if (this.hasControlChanged(oldProps, this.props)) {
|
||||||
let currentValue = this.getCurrentValue();
|
let currentValue = this.getCurrentValue();
|
||||||
if (this.state.value !== currentValue) {
|
if (this.state.value !== currentValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user