card basic

This commit is contained in:
bietiaop 2024-07-09 01:22:14 +08:00
parent 51fb65cdb4
commit cd0793655d
32 changed files with 807 additions and 260 deletions

View file

@ -36,6 +36,8 @@ function render(e, renderPath, renderData = {}, cfg = {}) {
const layoutPath = data.pluResPath + 'common/layout/';
const renderPathFull = data.pluResPath + renderPath.split('/')[0] + '/';
return {
player: e?.playerCard?.player,
avatar: e?.playerCard?.avatar,
...data,
_res_path: resPath,
_layout_path: layoutPath,
@ -44,6 +46,7 @@ function render(e, renderPath, renderData = {}, cfg = {}) {
scale: pct,
resourcesPath: resPath,
currentPath: renderPathFull,
playerInfo: path.join(layoutPathFull, 'playerinfo.html'),
copyright: `Created By ${version.name}<span class="version">${version.yunzai}</span> & ${pluginName}<span class="version">${version.version}</span>`,
createdby: `Created By <span class="highlight">${pluginName}</span> & Powered By <span class="highlight">ZZZure</span>`,
},