INNER CODE UNIT · TypeScript
embedView
gbtami/pychess-variants · client/analysis/index.ts:93
export function embedView(model: PyChessModel): VNode[] {
const variant = VARIANTS[model.variant];
const chess960 = model.chess960 === 'True';
return renderEmbedPage(
model,
vnode => runGround(vnode, model),
h(
'a.gamelink',
{ attrs: { rel: 'noopener', target: '_blank', href: '/' + model['gameId'] } },
[variant.displayName(chess960), '•', model.wtitle, model.wplayer, 'vs', model.btitle, model.bplayer].join(
' ',
),
),
);
}
export function analysisUnderboard(
model: PyChessModel,