diff --git a/ui/analyse/src/plugins/analyse.study.ts b/ui/analyse/src/plugins/analyse.study.ts index 17f5d45d0e1f..401f7a3f1c56 100644 --- a/ui/analyse/src/plugins/analyse.study.ts +++ b/ui/analyse/src/plugins/analyse.study.ts @@ -9,7 +9,6 @@ export const start = makeStart(patch, studyDeps); export const boot = makeBoot(start); export function initModule(cfg: any) { - // console.log('initModule', cfg); site.socket = new site.StrongSocket(cfg.socketUrl || '/analysis/socket/v5', cfg.socketVersion, { receive: (t: string, d: any) => analyse.socketReceive(t, d), }); diff --git a/ui/analyse/src/study/relay/relayView.ts b/ui/analyse/src/study/relay/relayView.ts index 17e9bc6901e8..02957cd7989d 100644 --- a/ui/analyse/src/study/relay/relayView.ts +++ b/ui/analyse/src/study/relay/relayView.ts @@ -24,12 +24,9 @@ export function relayView( relay: RelayCtrl, deps: typeof studyDeps, ): VNode { - // console.log(ctrl); - // console.log(site.analysis) const ctx: RelayViewContext = { ...viewContext(ctrl, deps), study, deps, relay, allowVideo: allowVideo() }; const renderTourView = () => [renderRelayTour(ctx), tourSide(ctx), deps.relayManager(relay, study)]; - // console.log(renderTourView()); return renderMain(ctx, [ ctrl.keyboardHelp && keyboardView(ctrl), deps.studyView.overboard(study), diff --git a/ui/analyse/src/view/components.ts b/ui/analyse/src/view/components.ts index 495accde3ce8..2fa0472cf560 100644 --- a/ui/analyse/src/view/components.ts +++ b/ui/analyse/src/view/components.ts @@ -90,7 +90,6 @@ export function renderMain( { ctrl, playerBars, gaugeOn, gamebookPlayView, needsInnerCoords, hasRelayTour }: ViewContext, kids: VNodeKids, ): VNode { - // console.log('renderMainmake'); return h( 'main.analyse.variant-' + ctrl.data.game.variant.key, { @@ -405,8 +404,7 @@ function broadcastChatHandler(ctrl: AnalyseCtrl):BroadcastChatHandler { if (msg.includes('\ue666') && ctrl.study?.relay) { let segs = msg.split('\ue666'); if (segs.length == 3) { - const [text, chapterId, ply] = segs; - // console.log(text, chapterId, ply); + const [_, chapterId, ply] = segs; ctrl.study.setChapter(chapterId); ctrl.jumpToMain(parseInt(ply)); } @@ -430,7 +428,6 @@ function broadcastChatHandler(ctrl: AnalyseCtrl):BroadcastChatHandler { } export function makeChat(ctrl: AnalyseCtrl, insert: (chat: HTMLElement) => void) { - // console.log('makeChat'); if (ctrl.opts.chat) { const chatEl = document.createElement('section'); chatEl.classList.add('mchat'); diff --git a/ui/chat/src/chat.ts b/ui/chat/src/chat.ts index 41b18bae7101..362ab43333b3 100644 --- a/ui/chat/src/chat.ts +++ b/ui/chat/src/chat.ts @@ -9,7 +9,6 @@ export type { ChatPlugin } from './interfaces'; export { default as ChatCtrl } from './ctrl'; export function initModule(opts: ChatOpts): { preset: PresetCtrl } { - // console.log('hi chat.ts',opts); const patch = init([classModule, attributesModule]); const ctrl = new ChatCtrl(opts, redraw); diff --git a/ui/chat/src/ctrl.ts b/ui/chat/src/ctrl.ts index 6d0620db2ce9..0594a0226236 100644 --- a/ui/chat/src/ctrl.ts +++ b/ui/chat/src/ctrl.ts @@ -37,7 +37,6 @@ export default class ChatCtrl { readonly opts: ChatOpts, readonly redraw: Redraw, ) { - // console.log(opts); this.data = opts.data; this.broadcastChatHandler = opts.broadcastChatHandler; if (opts.noteId) this.allTabs.push('note'); @@ -100,7 +99,6 @@ export default class ChatCtrl { post = (text: string): boolean => { text = text.trim(); - // console.log(text); if (!text) return false; if (text == 'You too!' && !this.data.lines.some(l => l.u != this.data.userId)) return false; if (text.length > 125) { @@ -110,7 +108,6 @@ export default class ChatCtrl { if (text.includes('\ue666')) return false; if (this.broadcastChatHandler) text = this.broadcastChatHandler.encode(text); - // console.log(text); site.pubsub.emit('socket.send', 'talk', text); return true;