使用CodeMirror高亮各处的配置信息

This commit is contained in:
刘祥超
2021-05-24 11:23:20 +08:00
parent f738ba9152
commit c768f22059
11 changed files with 161 additions and 69 deletions

View File

@@ -1,6 +1,7 @@
{$layout}
{$template "menu"}
{$template "/left_menu"}
{$template "/code_editor"}
<div class="right-box">
<p>在官网下载节点安装包,然后通过修改节点安装包中的<code-label>configs/cluster.yaml</code-label>,启动后会自动注册节点。</p>
@@ -10,10 +11,10 @@
<em><download-link :v-element="'cluster-config-box'" :v-file="'cluster.yaml'">[下载]</download-link></em>
</td>
<td>
<pre id="cluster-config-box">rpc:
<source-code-box id="cluster-config-box" type="text/yaml">rpc:
endpoints: [ {{cluster.endpoints}} ]
clusterId: "{{cluster.uniqueId}}"
secret: "{{cluster.secret}}"</pre>
clusterId: "{{cluster.uniqueId}}"
secret: "{{cluster.secret}}"</source-code-box>
</td>
</tr>
</table>