Initial setup for new frontend.

This commit is contained in:
baldo 2022-02-22 15:39:39 +01:00
commit 59f7897d8e
33 changed files with 2594 additions and 12 deletions

View file

@ -0,0 +1,30 @@
<script setup lang="ts">
import { useStatisticsStore } from "@/stores/statistics";
const statistics = useStatisticsStore();
function refresh(): void {
statistics.refresh();
}
refresh();
</script>
<template>
<main>
<div v-if="statistics.getStatistics">
<h1>Nodes</h1>
<div>
Registered: {{ statistics.getStatistics.nodes.registered }}<br />
With VPN-key: {{ statistics.getStatistics.nodes.withVPN }}<br />
With coordinates: {{ statistics.getStatistics.nodes.withCoords }}<br />
Monitoring active: {{ statistics.getStatistics.nodes.monitoring.active }}<br />
Monitoring pending: {{ statistics.getStatistics.nodes.monitoring.pending }}
</div>
<button @click="refresh()">Refresh</button>
</div>
</main>
</template>
<style lang="scss" scoped></style>

View file

@ -0,0 +1,8 @@
<script setup lang="ts">
</script>
<template>
Home
</template>
<style lang="scss" scoped></style>