refactor(web): Refactor web logic to extract reusable remote client management module (#1465)

This commit is contained in:
Mg Pig
2025-10-13 23:59:46 +08:00
committed by GitHub
parent 999a486928
commit 87b7b7ed7c
24 changed files with 1382 additions and 995 deletions

View File

@@ -1,15 +1,16 @@
<script setup lang="ts">
import { Card, useToast } from 'primevue';
import { computed, onMounted, onUnmounted, ref } from 'vue';
import { Api, Utils } from 'easytier-frontend-lib';
import { Utils } from 'easytier-frontend-lib';
import ApiClient, { Summary } from '../modules/api';
const props = defineProps({
api: Api.ApiClient,
api: ApiClient,
});
const toast = useToast();
const summary = ref<Api.Summary | undefined>(undefined);
const summary = ref<Summary | undefined>(undefined);
const loadSummary = async () => {
const resp = await props.api?.get_summary();