[优化] 代码优化Format

This commit is contained in:
ryan
2026-06-04 09:31:27 +08:00
parent fbb0909638
commit e117e314d9
28 changed files with 6394 additions and 3014 deletions
@@ -21,4 +21,3 @@ export function EmptyState({ title, description, children }: EmptyStateProps) {
</div>
);
}
@@ -221,7 +221,7 @@ function SidebarContent({
) : null}
</div>
<nav className="min-h-0 flex-1 overflow-y-auto no-scrollbar pr-1 flex flex-col gap-2">
<nav className="no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto pr-1">
{dashboardNavigation.map((item) => (
<SidebarNavItem
key={item.href}
@@ -214,10 +214,7 @@ export function DashboardTopbar() {
socket.onmessage = (event) => {
const snapshot = parseUpgradeStreamSnapshot(String(event.data));
if (snapshot) {
if (
snapshot.in_progress ||
snapshot.upgrade_status === 'succeeded'
) {
if (snapshot.in_progress || snapshot.upgrade_status === 'succeeded') {
upgradeRefreshPendingRef.current = true;
}
if (snapshot.upgrade_status === 'failed') {