Skip to content

Commit

Permalink
feat: 增加节点版本显示
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Oct 30, 2023
1 parent aab146f commit 1f38da6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/status/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ <h3>节点状态 ({{Object.keys(nodes).length}})</h3>
<th scope="col" class="d-none d-sm-table-cell">运营商</th>
<th scope="col" class="d-none d-md-table-cell">入流量</th>
<th scope="col" class="d-none d-md-table-cell">出流量</th>
<th scope="col" class="d-none d-lg-table-cell">版本号</th>
<th scope="col">状态</th>
<th scope="col" class="d-none d-lg-table-cell">备注</th>
</tr>
Expand All @@ -63,6 +64,7 @@ <h3>节点状态 ({{Object.keys(nodes).length}})</h3>
<td class="d-none d-sm-table-cell">{{node.isp}}</td>
<td class="d-none d-md-table-cell">{{formatBytes(node.todayTrafficIn)}}</td>
<td class="d-none d-md-table-cell">{{formatBytes(node.todayTrafficOut)}}</td>
<td class="d-none d-lg-table-cell">v{{node.version || '1'}}</td>
<td :class="[node.status == 'online' ? 'text-success' : 'text-danger']">{{node.status}}</td>
<td class="d-none d-lg-table-cell">{{node.banner}}</td>
</tr>
Expand Down Expand Up @@ -134,8 +136,8 @@ <h3>环境变量说明</h3>
this.createMessage({ content: e.reason, type: 'error' });
e.preventDefault && e.preventDefault();
});
// every 60 seconds
setInterval(() => this.get_nodes(), 60000);
// every 30 seconds
setInterval(() => this.get_nodes(), 30000);
this.get_nodes();
},
methods: {
Expand Down

0 comments on commit 1f38da6

Please sign in to comment.