gex: add eslint, cleanup parsing of some stuff

This commit is contained in:
Luke D. Jones
2023-07-01 21:47:31 +12:00
parent b182fbd323
commit 13965b2261
15 changed files with 1750 additions and 881 deletions
@@ -1,14 +1,13 @@
declare const global: any, imports: any;
//@ts-ignore
const ThisModule = imports.misc.extensionUtils.getCurrentExtension();
declare const imports: any;
const Me = imports.misc.extensionUtils.getCurrentExtension();
const GLib = imports.gi.GLib;
export class File {
public static DBus(name: string) {
let file = `${ThisModule.path}/resources/dbus/${name}.xml`;
const file = `${Me.path}/resources/dbus/${name}.xml`;
try {
let [_ok, bytes] = GLib.file_get_contents(file)
const [_ok, bytes] = GLib.file_get_contents(file);
if (!_ok)
//@ts-ignore
log(`Couldn't read contents of "${file}"`);