mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
card basic
This commit is contained in:
parent
51fb65cdb4
commit
cd0793655d
32 changed files with 807 additions and 260 deletions
|
|
@ -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>`,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue