feat(loop): setup profil yönetimini LoopSetupCard'a taşı

Dashboard'daki ProfilesCard bileşenini kaldırıp profil yönetimi
işlevselliğini LoopSetupCard bileşeni içine entegre etti. Artık
kullanıcılar loop setuplarını doğrudan LoopSetupCard üzerinden
oluşturabilir, düzenleyebilir, silebilir ve uygulayabilir.
This commit is contained in:
2026-01-04 00:22:40 +03:00
parent 915fb48828
commit 2bf2e2495d
2 changed files with 246 additions and 81 deletions

View File

@@ -4,12 +4,7 @@ import { TorrentDetailsCard } from "../components/torrents/TorrentDetailsCard";
import { LoopSetupCard } from "../components/loop/LoopSetupCard";
import { LoopStatsCard } from "../components/loop/LoopStatsCard";
import { LogsPanel } from "../components/loop/LogsPanel";
import { ProfilesCard } from "../components/loop/ProfilesCard";
import { useAppStore } from "../store/useAppStore";
export const DashboardPage = () => {
const setLoopForm = useAppStore((s) => s.setLoopForm);
return (
<>
<div className="grid grid-cols-1 gap-6 lg:grid-cols-[1.2fr_1fr]">
@@ -21,19 +16,8 @@ export const DashboardPage = () => {
</div>
</div>
<div className="grid grid-cols-1 gap-6 lg:grid-cols-[1.2fr_1fr]">
<div className="grid grid-cols-1 gap-6">
<LogsPanel />
<div className="space-y-4">
<ProfilesCard
onApply={(profile) => {
setLoopForm({
allowIp: profile.allowIp,
delayMs: profile.delayMs,
targetLoops: profile.targetLoops,
});
}}
/>
</div>
</div>
</>
);