Add a consolidated single export to each app

This commit is contained in:
James Babcock committed 2026-08-03 00:51:57 -07:00
1 parent 9b3832d7a7
commit f38366df6e
23 files changed
+597 -337

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { launchWorkerAppWindow, type AppDefinition } from "../app-definition";
const terminalApp: AppDefinition = {
appId: "terminal",
title: "Terminal",
icon: "terminal",
launch: (ctx) =>
launchWorkerAppWindow(ctx, {
createWorker: () => new Worker("./terminal-app.worker"),
windowId: "terminal:hub",
title: "Terminal",
iconLetter: "T",
icon: "terminal",
// Session windows stay independent: launching reopens the hub even
// while terminal sessions are open.
matchExistingBy: "windowId",
}),
};
export default terminalApp;