INNER CODE UNIT · TypeScript
renderView
gbtami/pychess-variants · client/main.ts:291
const renderView = () => {
patch(placeholder, view(el, model));
// The controller must be mounted before the engine emits its startup handshake.
if (['analysis', 'puzzle', 'study'].includes(dataView)) {
void initAnalysisEngine().catch(error => console.warn(error));
}
};
if (['round', 'analysis', 'study', 'puzzle', 'editor', 'tv', 'embed', 'paste'].includes(dataView)) {
console.time('load ffish');
const variantIni =
dataView === 'paste'
? allVariantsIni(variantsIni)
: variantConfigIni(variantsIni, model.variant);
if (model['variant'] === 'alice') {
const loadModule = ffishAliceModule(
dataView === 'paste' ? ffishModuleOptions(recordImportFfishError) : ffishModuleOptions(),
);