diff --git a/apps/clock/package.json b/apps/clock/package.json index 3bb465e..a2934d6 100644 --- a/apps/clock/package.json +++ b/apps/clock/package.json @@ -3,6 +3,9 @@ "module": "src/index.ts", "type": "module", "private": true, + "toes": { + "icon": "🕐" + }, "scripts": { "toes": "bun run --watch index.tsx", "start": "bun toes", diff --git a/apps/profile/package.json b/apps/profile/package.json index 992da2f..9f8d1f9 100644 --- a/apps/profile/package.json +++ b/apps/profile/package.json @@ -3,6 +3,9 @@ "module": "src/index.ts", "type": "module", "private": true, + "toes": { + "icon": "👤" + }, "scripts": { "toes": "bun run --watch index.tsx", "start": "bun toes", diff --git a/apps/truisms/package.json b/apps/truisms/package.json index b13aab3..d422f14 100644 --- a/apps/truisms/package.json +++ b/apps/truisms/package.json @@ -3,6 +3,9 @@ "module": "src/index.ts", "type": "module", "private": true, + "toes": { + "icon": "💬" + }, "scripts": { "toes": "bun run --watch index.ts", "dev": "bun run --hot index.ts" diff --git a/src/server/index.tsx b/src/server/index.tsx index dcae35b..4af416a 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -15,9 +15,10 @@ app.get('/api/apps/stream', c => { start(controller) { const send = () => { // Strip proc field from apps before sending - const apps: SharedApp[] = allApps().map(({ name, state, port, started, logs }) => ({ + const apps: SharedApp[] = allApps().map(({ name, state, icon, port, started, logs }) => ({ name, state, + icon, port, started, logs, diff --git a/src/shared/types.ts b/src/shared/types.ts index 0e4ee89..c9f54a0 100644 --- a/src/shared/types.ts +++ b/src/shared/types.ts @@ -8,6 +8,7 @@ export type LogLine = { export type App = { name: string state: AppState + icon?: string port?: number started?: number logs?: LogLine[]