Merge pull request #834 from suxscribe/feat-update-client-layout

Show total RX/TX data for each client in UI
This commit is contained in:
Peter Lewis 2024-02-16 21:57:55 +00:00 committed by GitHub
commit 4a7700bfb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 201 additions and 78 deletions

View file

@ -43,6 +43,13 @@ class API {
});
}
async getUiDetailedStats() {
return this.call({
method: 'get',
path: '/ui-detailed-stats',
});
}
async getSession() {
return this.call({
method: 'get',

View file

@ -53,6 +53,7 @@ new Vue({
latestRelease: null,
isDark: null,
uiDetailedStats: false,
chartOptions: {
chart: {
@ -299,6 +300,8 @@ new Vue({
i18n.locale = lang;
}
this.uiDetailedStats = await this.api.getUiDetailedStats();
const currentRelease = await this.api.getRelease();
const latestRelease = await fetch('https://wg-easy.github.io/wg-easy/changelog.json')
.then((res) => res.json())