chore: kanban template

This commit is contained in:
e2e
2026-06-21 18:23:51 +02:00
commit c8a1fa4519
209 changed files with 215578 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { wireChannel } from '#pikku'
import {
onCardsConnect,
onCardsDisconnect,
onCardsEcho,
onCardsSetSession,
onCardsGetSession,
onCardsClearSession,
} from '../functions/cards-channel.function.js'
wireChannel({
name: 'cards',
route: '/cards/live',
auth: false,
onConnect: onCardsConnect,
onDisconnect: onCardsDisconnect,
// Route messages by `action` so pikku JSON-parses the frame + dispatches
// to the right handler. Frames look like `{action:'echo', text:'…'}`.
onMessageWiring: {
action: {
echo: { func: onCardsEcho },
setSession: { func: onCardsSetSession },
getSession: { func: onCardsGetSession },
clearSession: { func: onCardsClearSession },
},
},
tags: ['kanban'],
})