${t`My applications`}

${until( uiConfig().then((config) => { if (!config.enabledFeatures.search) { return html``; } return html` { const query = (ev.target as HTMLInputElement).value; if (!this.fuse) return; const apps = this.fuse.search(query); if (apps.length < 1) return; this.selectedApp = apps[0].item; }} @keydown=${(ev: KeyboardEvent) => { if (ev.key === "Enter" && this.selectedApp?.launchUrl) { window.location.assign(this.selectedApp.launchUrl); } else if (ev.key === "Escape") { (ev.target as HTMLInputElement).value = ""; this.selectedApp = undefined; } }} type="text" autofocus placeholder=${t`Search...`} />`; }), )}
${loading( this.apps, html`${(this.apps?.results.length || 0) > 0 ? this.renderApps() : this.renderEmptyState()}`, )}