diff --git a/src/plugins/apps.ts b/src/plugins/apps.ts index f17b3ef..3f5d960 100644 --- a/src/plugins/apps.ts +++ b/src/plugins/apps.ts @@ -12,7 +12,7 @@ export const run = (element: HTMLDivElement): void => { element.style.alignItems = 'center' element.style.gap = '5px' element.style.flex = '1' - + // @ts-expect-error window.addEventListener('app_opened', (e: AppOpenedEvent): void => { const appIcon = document.createElement('app') const app = e.detail.app @@ -20,7 +20,7 @@ export const run = (element: HTMLDivElement): void => { appIcon.style.background = 'var(--surface-0)' appIcon.style.padding = '5px 7.5px' appIcon.style.borderRadius = '5px' - appIcon.innerHTML = ` ${app.meta.name}` + appIcon.innerHTML = ` ${app.meta.name}` appIcon.onclick = async () => { const win = await e.detail.win win.focus() @@ -28,7 +28,7 @@ export const run = (element: HTMLDivElement): void => { } element.appendChild(appIcon) }) - + // @ts-expect-error window.addEventListener('app_closed', (e: AppClosedEvent): void => { const win = e.detail.win element.querySelector(`img[data-id="${win.id}"]`)?.parentElement?.remove() diff --git a/src/preloader.ts b/src/preloader.ts index 88dbcf1..8037edb 100644 --- a/src/preloader.ts +++ b/src/preloader.ts @@ -1,3 +1,4 @@ +// @ts-expect-error import flowIcon from './assets/flow.png' class Preloader { @@ -7,7 +8,7 @@ class Preloader { this.element = document.createElement('preloader') this.element.innerHTML = ` - +
` diff --git a/src/types.ts b/src/types.ts index d44775e..efc497f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -32,6 +32,7 @@ export interface FlowWindowConfig { export interface App { meta: { + id: any name: string description: string pkg: string