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:
@@ -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>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user