MCPcopy
hub / github.com/ocsjs/ocsjs / titleTransform

Function titleTransform

packages/scripts/src/projects/zhs.ts:2609–2617  ·  view source on GitHub ↗
(_: any, index: number)

Source from the content-addressed store, hash-verified

2607 ((workInfo?.rt?.examBase?.workExamParts as any[]) || [])?.map((p) => p.questionDtos).flat() || [];
2608
2609 const titleTransform = (_: any, index: number) => {
2610 const div = h('div');
2611
2612 div.innerHTML = allExamParts[index]?.name || '题目读取失败';
2613 return removeRedundantWords(
2614 optimizationElementWithImage(div, true).innerText || '',
2615 redundanceWordsText.split('\n')
2616 );
2617 };
2618 let request_index = 0;
2619 /** 新建答题器 */
2620 const worker = new OCSWorker({

Callers 7

gxkWorkAndExamFunction · 0.70
xnkWorkFunction · 0.70
smartWorkFunction · 0.70
smartExamFunction · 0.70
fusioncourseWorkFunction · 0.70
hikeWorkFunction · 0.70
hikeHomeworkFunction · 0.70

Calls 2

removeRedundantWordsFunction · 0.90

Tested by

no test coverage detected