Testing trying to keep serialization through interface

More variables called through app, reversed to original. keep serialization through interface.
This commit is contained in:
Extremesecrecy
2025-07-24 10:32:11 -07:00
parent 98708821be
commit 8fd86901e5
7 changed files with 14 additions and 12 deletions
+3 -3
View File
@@ -62,7 +62,7 @@ const AboutDialog = class extends Component<AboutDialogProps, AboutDialogState>
.then(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.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);
this.updateNotifications();
}
handleDialogClose() {
handleDialogClose(_e: SyntheticEvent) {
this.props.onClose();
}
+3 -3
View File
@@ -54,13 +54,13 @@ export class FakeAndroidHost implements AndroidHostInterface
return true;
}
setDisconnected(_isDisconnected: boolean): void {
void _isDisconnected;
}
showSponsorship() : void { }
launchExternalUrl(_url:string): boolean
{
void _url;
return false;
}
private theme = 1;
@@ -72,7 +72,7 @@ export class FakeAndroidHost implements AndroidHostInterface
}
setServerVersion(_serverVersion: string): void {
// No-op for fake host
void _serverVersion;
}
private keepScreenOn = false;
+1 -1
View File
@@ -154,7 +154,7 @@ const theme = createTheme(
/* make the selection state for MuiListItemButtons a smidgen darker (light theme only) */
MuiListItemButton: {
styleOverrides: {
root: () => ({
root: ({ theme }) => ({
'&.Mui-selected': {
backgroundColor: 'rgba(0, 0, 0, 0.2)', // Adjust for desired darkness
'&:hover': {
+2 -1
View File
@@ -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) => (
{
+1 -1
View File
@@ -30,7 +30,7 @@ export function createStyles<T>(style: T): T {
}
export default
interface WithStyles<T extends (...args: unknown[]) => unknown> {
interface WithStyles<T extends (...args: any) => any> {
className?: string;
classes?: Partial<Record<keyof ReturnType<T>, string>>;
+3 -2
View File
@@ -159,7 +159,7 @@ const ZoomedDial = withStyles(
}
onTouchStart() {
onTouchStart(e: TouchEvent<SVGSVGElement>) {
//must be defined to get onTouchMove
}
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)) {
this.captureElement!.setPointerCapture(e.pointerId);
this.capturedPointers.push(e.pointerId);
+1 -1
View File
@@ -142,7 +142,7 @@ const ZoomedUiControl = withTheme(withStyles(
}
componentDidUpdate(oldProps: ZoomedUiControlProps) {
componentDidUpdate(oldProps: ZoomedUiControlProps, oldState: ZoomedUiControlState) {
if (this.hasControlChanged(oldProps, this.props)) {
let currentValue = this.getCurrentValue();
if (this.state.value !== currentValue) {