Commit e61fe01c authored by Chocobozzz's avatar Chocobozzz

Merge branch 'api-ipv6' into 'develop'

add supportsIPv6 to the main API

See merge request !6
parents 3b7ecc8b 11eb8358
......@@ -25,7 +25,7 @@
<span class="check-mark" v-if="props.row.signupAllowed">&#x2714;</span>
<span v-else>&#x274C;</span>
</td>
<td class="icon-cell" :title="props.row.health + '%'">
<td class="icon-cell" :title="'Over the course of the last 4 days, the instance was available ' + props.row.health + '% of the time.'">
<font-awesome-icon class="health-icon"
:icon="getIcon(props.row.health)" :style="{ color: getIconColor(props.row.health) }"
></font-awesome-icon>
......
......@@ -214,18 +214,24 @@ export class InstanceModel extends Model<InstanceModel> {
id: this.id,
host: this.host,
// config
name: this.config.instance.name,
shortDescription: this.config.instance.shortDescription,
version: this.config.serverVersion,
signupAllowed: this.config.signup.allowed,
userVideoQuota,
// stats
totalUsers: this.stats.totalUsers,
totalVideos: this.stats.totalVideos,
totalLocalVideos: this.stats.totalLocalVideos,
totalInstanceFollowers: this.stats.totalInstanceFollowers,
totalInstanceFollowing: this.stats.totalInstanceFollowing,
// connectivity
supportsIPv6: this.connectivityStats.supportsIPv6,
// computed stats
health: Math.round((this.score / INSTANCE_SCORE.MAX) * 100)
}
}
......
......@@ -14,5 +14,7 @@ export interface Instance {
totalInstanceFollowers: number
totalInstanceFollowing: number
supportsIPv6: boolean
health: number
}
......@@ -175,6 +175,8 @@ components:
type: number
totalInstanceFollowing:
type: number
supportsIPv6:
type: boolean
health:
type: number
InstanceStats:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment