MCPcopy
hub / github.com/ocsjs/ocsjs / showChangelog

Function showChangelog

packages/scripts/src/projects/common.ts:1457–1478  ·  view source on GitHub ↗

* 查看更新日志

()

Source from the content-addressed store, hash-verified

1455 * 查看更新日志
1456 */
1457 async showChangelog() {
1458 const changelog = h('div', {
1459 className: 'markdown card',
1460 innerHTML: '加载中...',
1461 style: { maxWidth: '600px' }
1462 });
1463 $modal.simple({
1464 width: 600,
1465 content: h('div', [
1466 h('div', { className: 'notes card' }, [
1467 $ui.notes(['此页面实时更新,遇到问题可以查看最新版本是否修复。'])
1468 ]),
1469 changelog
1470 ])
1471 });
1472 const md = await request('https://cdn.ocsjs.com/articles/ocs/changelog.md?t=' + Date.now(), {
1473 type: 'GM_xmlhttpRequest',
1474 responseType: 'text',
1475 method: 'get'
1476 });
1477 changelog.innerHTML = markdown(md);
1478 }
1479 };
1480 },
1481 onrender({ panel }) {

Callers

nothing calls this directly

Calls 2

requestFunction · 0.90
markdownFunction · 0.90

Tested by

no test coverage detected