This commit is contained in:
iVampireSP.com 2023-03-16 20:39:49 +08:00
parent cca6c0c710
commit d4b45ebb98
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -1,37 +1,38 @@
<template> <template>
<div> <div>
<h3>服务器列表</h3> <h3>服务器列表</h3>
<div class="list-group"> <div class="list-group">
<template v-for="server in servers"> <template v-for="server in servers">
<router-link :to="{ <router-link :to="{
name: 'servers.edit', name: 'servers.edit',
params: { params: {
id: server.id id: server.id
} }
}" class="list-group-item list-group-item-action" aria-current="true"> }" class="list-group-item list-group-item-action" aria-current="true">
<div class="d-flex w-100 justify-content-between"> <div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">{{ server.name }}</h5> <h5 class="mb-1">{{ server.name }}</h5>
<small> <small>
<server-status :status="server.status" /> <server-status :status="server.status"/>
</small> </small>
</div> </div>
<p class="mb-1"> <p class="mb-1">
<span class="badge bg-primary" v-show="server.allow_http">HTTP</span> 支持的协议:
<span class="badge bg-primary" v-show="server.allow_https">HTTPS</span> <span v-show="server.allow_http">HTTP &nbsp;</span>
<span class="badge bg-primary" v-show="server.allow_tcp">TCP</span> <span v-show="server.allow_tcp">TCP &nbsp;</span>
<span class="badge bg-primary" v-show="server.allow_udp">UDP</span> <span v-show="server.allow_https">HTTPS &nbsp;</span>
<span class="badge bg-primary" v-show="server.allow_stcp">STCP</span> <span v-show="server.allow_udp">UDP &nbsp;</span>
<span class="badge bg-primary" v-show="server.allow_sudp">SUDP</span> <span v-show="server.allow_stcp">STCP &nbsp;</span>
<span class="badge bg-primary" v-show="server.allow_xtcp">XTCP</span> <span v-show="server.allow_sudp">SUDP &nbsp;</span>
</p> <span v-show="server.allow_xtcp">XTCP</span>
<small>{{ server.server_address }}:{{ server.server_port }}</small> </p>
</router-link> <small>{{ server.server_address }}:{{ server.server_port }}</small>
</template> </router-link>
</div> </template>
</div>
</div> </div>
</template> </template>