Skip to content

Commit

Permalink
Change server name to alias instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
HinataKato committed May 12, 2022
1 parent 2ad45f2 commit 52fde6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/CardItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<svg viewBox="0 0 100 100" class="flag-icon">
<use :href="`#${server.location}`"></use>
</svg>
<span> {{ server.name }} </span>
<span> {{ server.alias }} </span>
<p>{{ server.type }}</p>
</div>
<div class="ui tiny progress success">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ServersTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<thead>
<tr>
<th id="status4">运行状态</th>
<th id="name">节点名</th>
<th id="alias">节点名</th>
<th id="type">类型</th>
<th id="location">服务器位置</th>
<th id="uptime">在线时间</th>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
</div>
</td>
<td>{{ server.name }}</td>
<td>{{ server.alias }}</td>
<td>{{ server.type }}</td>
<td>{{ server.location }}</td>
<td>{{ server.uptime || '–' }}</td>
Expand Down
5 changes: 2 additions & 3 deletions types/servers.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* eslint-disable */
declare global {
interface BoxItem {
'name': string;
'alias': string;
'host': string;
'type': string;
'online4': boolean;
'online6': boolean;
'location': string;
'region': string;
}

interface StatusItem extends BoxItem {
Expand All @@ -32,7 +31,7 @@ declare global {
subHeader: string;
interval: number;
footer: string;
}

}
}
export {};

0 comments on commit 52fde6c

Please sign in to comment.