gex: cleanup

This commit is contained in:
Luke D. Jones
2023-06-30 10:42:36 +12:00
parent dbe80d1914
commit 59b1059aee
7 changed files with 33 additions and 32 deletions

View File

@@ -1,10 +1,9 @@
declare const global: any, imports: any;
declare var asusctlGexInstance: any;
declare const imports: any;
//@ts-ignore
const Me = imports.misc.extensionUtils.getCurrentExtension();
import { DbusBase } from '../modules/dbus';
import { DeviceState, AnimBooting, Brightness, AnimAwake, AnimSleeping, AnimShutdown } from '../bindings/anime';
import { DbusBase } from './base';
import { DeviceState, AnimBooting, Brightness, AnimAwake, AnimSleeping, AnimShutdown } from '../../bindings/anime';
export class AnimeDbus extends DbusBase {
deviceState: DeviceState = {

View File

@@ -1,8 +1,8 @@
declare const global: any, imports: any;
declare const imports: any;
//@ts-ignore
const Me = imports.misc.extensionUtils.getCurrentExtension();
import * as Resources from '../modules/resources';
import * as Resources from '../resources';
const { Gio } = imports.gi;

View File

@@ -1,10 +1,9 @@
declare const global: any, imports: any;
declare var asusctlGexInstance: any;
declare const imports: any;
//@ts-ignore
const Me = imports.misc.extensionUtils.getCurrentExtension();
import * as bios from '../bindings/platform';
import { DbusBase } from '../modules/dbus';
import * as bios from '../../bindings/platform';
import { DbusBase } from './base';
// TODO: add callbacks for notifications
export class Platform extends DbusBase {

View File

@@ -1,9 +1,8 @@
declare const global: any, imports: any;
declare var asusctlGexInstance: any;
declare const imports: any;
//@ts-ignore
const Me = imports.misc.extensionUtils.getCurrentExtension();
import { DbusBase } from '../modules/dbus';
import { DbusBase } from './base';
// function getMethods(obj: { [x: string]: { toString: () => string; }; }) {
// var result = [];

View File

@@ -2,9 +2,9 @@ declare const global: any, imports: any;
//@ts-ignore
const Me = imports.misc.extensionUtils.getCurrentExtension();
import { SupportedFunctions, AdvancedAura } from '../bindings/platform';
import { AuraDevice, AuraModeNum, AuraZone } from '../bindings/aura';
import { DbusBase } from '../modules/dbus';
import { SupportedFunctions, AdvancedAura } from '../../bindings/platform';
import { AuraDevice, AuraModeNum, AuraZone } from '../../bindings/aura';
import { DbusBase } from './base';
export class Supported extends DbusBase {
// False,