refactor: improve code formatting and consistency across components

- Updated button and span elements in ThemeToggle.vue and TopActions.vue for better readability.
- Enhanced UninstallConfirmModal.vue and UpdateAppsModal.vue with consistent indentation and spacing.
- Refactored downloadStatus.ts and storeConfig.ts for improved code clarity.
- Standardized string quotes and spacing in typedefinition.ts and processInstall.ts.
- Ensured consistent use of arrow functions and improved variable declarations throughout the codebase.
This commit is contained in:
Elysia
2026-02-12 18:32:41 +08:00
parent e11740ad4c
commit 6622e70033
29 changed files with 1681 additions and 1042 deletions

View File

@@ -1,14 +1,20 @@
<template>
<div class="flex flex-wrap gap-3">
<button type="button"
<button
type="button"
class="inline-flex items-center gap-2 rounded-2xl bg-gradient-to-r from-brand to-brand-dark px-4 py-2 text-sm font-semibold text-white shadow-lg transition hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
@click="handleUpdate" title="启动 apm-update-tool">
@click="handleUpdate"
title="启动 apm-update-tool"
>
<i class="fas fa-sync-alt"></i>
<span>软件更新</span>
</button>
<button type="button"
<button
type="button"
class="inline-flex items-center gap-2 rounded-2xl bg-slate-900/90 px-4 py-2 text-sm font-semibold text-white shadow-lg shadow-slate-900/40 transition hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/40 dark:bg-white/90 dark:text-slate-900"
@click="handleList" title="启动 apm-installer --list">
@click="handleList"
title="启动 apm-installer --list"
>
<i class="fas fa-download"></i>
<span>应用管理</span>
</button>
@@ -17,15 +23,15 @@
<script setup lang="ts">
const emit = defineEmits<{
(e: 'update'): void;
(e: 'list'): void;
(e: "update"): void;
(e: "list"): void;
}>();
const handleUpdate = () => {
emit('update');
emit("update");
};
const handleList = () => {
emit('list');
emit("list");
};
</script>