- 新增 social_graph_template_path 配置项,支持独立维护社交图模板路径 - 新增模板文件 plugins/value_rank/templates/social_graph.html,承载关系图样式与占位符 - 移除内嵌模板拼接,改为读取模板文件并进行变量替换后渲染截图
62 lines
1.6 KiB
HTML
62 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
background: linear-gradient(135deg, #f7fbff 0%, #f2f7ff 45%, #fff8ed 100%);
|
|
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
|
|
}
|
|
.card {
|
|
width: __WIDTH__px;
|
|
margin: 0 auto;
|
|
padding: 26px 26px 20px 26px;
|
|
box-sizing: border-box;
|
|
}
|
|
.title {
|
|
font-size: 38px;
|
|
color: #1f2d46;
|
|
font-weight: 800;
|
|
letter-spacing: 1px;
|
|
}
|
|
.subtitle {
|
|
margin-top: 8px;
|
|
font-size: 17px;
|
|
color: #5f6f8a;
|
|
}
|
|
.graph-wrap {
|
|
margin-top: 18px;
|
|
border-radius: 18px;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
border: 1px solid rgba(207, 221, 246, 0.9);
|
|
box-shadow: 0 8px 24px rgba(58, 82, 130, 0.12);
|
|
overflow: hidden;
|
|
}
|
|
.legend {
|
|
margin-top: 14px;
|
|
font-size: 14px;
|
|
color: #6f7d96;
|
|
line-height: 1.7;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<div class="title">群友社交关系图</div>
|
|
<div class="subtitle">__GROUP_TITLE__</div>
|
|
<div class="subtitle">__SUMMARY_TEXT__</div>
|
|
<div class="graph-wrap">
|
|
<svg width="__WIDTH__" height="__HEIGHT__" viewBox="0 0 __WIDTH__ __HEIGHT__">
|
|
<rect x="0" y="0" width="__WIDTH__" height="__HEIGHT__" fill="rgba(247,251,255,0.72)"></rect>
|
|
__EDGE_SVG__
|
|
__NODE_SVG__
|
|
</svg>
|
|
</div>
|
|
<div class="legend">
|
|
说明:节点越大代表连接群友越多;连线越粗代表互动越强。该图仅基于 @ 关系统计,不含纯文本对话引用关系。
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|