Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
src/ui/mod-menu.js builds the moderator menu for one chat line - Remove, Mute 10m/1h/24h/forever, Ban - and the exact /live frame each sends - module and test only #384
Sign in to join this conversation.
From #198, piece 1 of 2. The server side is on main:
/livetakes{type:'delete',id},{type:'mute',id,on:true,for:'10m'|'1h'|'24h'|'forever'}and{type:'ban',id,on:true}from the owner or a verified moderator (src/lobby.ts,MUTE_FOR).Done:
Software/so101/src/ui/mod-menu.jsexports puremenuItems(line, me)(empty for your own line, for the owner's or a moderator's line when you are a moderator, and for anyone not owner or moderator) andframeFor(item, line)returning exactly the frames above, plusrenderMenu(doc, items, onPick)that builds buttons of at least 44x44 px with text throughtextContent.src/ui/mod-menu.test.tschecks every frame shape, who sees no menu, and the button size.viewer.htmlandlobby-panel.jsare unchanged.bun --cwd Software/so101 testpasses.