Add channel info box

This commit is contained in:
Jack Kingsman
2026-03-03 17:09:48 -08:00
parent 5d2aaa802b
commit 73a835688d
12 changed files with 536 additions and 18 deletions
+2
View File
@@ -2,6 +2,7 @@ import type {
AppSettings,
AppSettingsUpdate,
Channel,
ChannelDetail,
CommandResponse,
Contact,
ContactAdvertPath,
@@ -148,6 +149,7 @@ export const api = {
}),
deleteChannel: (key: string) =>
fetchJson<{ status: string }>(`/channels/${key}`, { method: 'DELETE' }),
getChannelDetail: (key: string) => fetchJson<ChannelDetail>(`/channels/${key}/detail`),
markChannelRead: (key: string) =>
fetchJson<{ status: string; key: string }>(`/channels/${key}/mark-read`, {
method: 'POST',