refactor(settings): ayarlar sayfası düzenini güncelle
This commit is contained in:
@@ -190,58 +190,6 @@ export function SettingsPage() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card>
|
|
||||||
<CardHeader>
|
|
||||||
<CardTitle>Image Temizliği</CardTitle>
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent className="space-y-4">
|
|
||||||
<div className="grid gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
|
|
||||||
<div className="space-y-2">
|
|
||||||
<Label htmlFor="cleanupValue">Temizlik Periyodu</Label>
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<Input
|
|
||||||
id="cleanupValue"
|
|
||||||
type="number"
|
|
||||||
min="1"
|
|
||||||
value={cleanupValue}
|
|
||||||
onChange={(e) => setCleanupValue(e.target.value)}
|
|
||||||
className="bg-white"
|
|
||||||
/>
|
|
||||||
<Select value={cleanupUnit} onValueChange={(value) => setCleanupUnit(value as typeof cleanupUnit)}>
|
|
||||||
<SelectTrigger className="w-32">
|
|
||||||
<SelectValue placeholder="Birim" />
|
|
||||||
</SelectTrigger>
|
|
||||||
<SelectContent>
|
|
||||||
<SelectItem value="saat">saat</SelectItem>
|
|
||||||
<SelectItem value="gün">gün</SelectItem>
|
|
||||||
<SelectItem value="hafta">hafta</SelectItem>
|
|
||||||
</SelectContent>
|
|
||||||
</Select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="flex flex-wrap items-center gap-2 sm:justify-end">
|
|
||||||
<Button
|
|
||||||
variant="outline"
|
|
||||||
onClick={handleSaveCleanup}
|
|
||||||
disabled={savingCleanup}
|
|
||||||
className="bg-white"
|
|
||||||
>
|
|
||||||
<FontAwesomeIcon icon={faFloppyDisk} className="mr-2 h-4 w-4" />
|
|
||||||
Kaydet
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
onClick={handleCleanupImages}
|
|
||||||
disabled={cleaning}
|
|
||||||
className="bg-rose-100 text-rose-700 hover:bg-rose-200"
|
|
||||||
>
|
|
||||||
<FontAwesomeIcon icon={faBroom} className="mr-2 h-4 w-4" />
|
|
||||||
Clean Cache Images
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader className="flex flex-row items-center justify-between">
|
<CardHeader className="flex flex-row items-center justify-between">
|
||||||
<CardTitle>Webhook Secret</CardTitle>
|
<CardTitle>Webhook Secret</CardTitle>
|
||||||
@@ -277,6 +225,58 @@ export function SettingsPage() {
|
|||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Image Temizliği</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent className="space-y-4">
|
||||||
|
<div className="grid gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
|
||||||
|
<div className="space-y-2">
|
||||||
|
<Label htmlFor="cleanupValue">Temizlik Periyodu</Label>
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<Input
|
||||||
|
id="cleanupValue"
|
||||||
|
type="number"
|
||||||
|
min="1"
|
||||||
|
value={cleanupValue}
|
||||||
|
onChange={(e) => setCleanupValue(e.target.value)}
|
||||||
|
className="bg-white"
|
||||||
|
/>
|
||||||
|
<Select value={cleanupUnit} onValueChange={(value) => setCleanupUnit(value as typeof cleanupUnit)}>
|
||||||
|
<SelectTrigger className="w-32">
|
||||||
|
<SelectValue placeholder="Birim" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="saat">saat</SelectItem>
|
||||||
|
<SelectItem value="gün">gün</SelectItem>
|
||||||
|
<SelectItem value="hafta">hafta</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="flex flex-wrap items-center gap-2 sm:justify-end">
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
onClick={handleSaveCleanup}
|
||||||
|
disabled={savingCleanup}
|
||||||
|
className="gap-2 bg-white text-foreground hover:bg-muted"
|
||||||
|
>
|
||||||
|
<FontAwesomeIcon icon={faFloppyDisk} className="h-4 w-4" />
|
||||||
|
Kaydet
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={handleCleanupImages}
|
||||||
|
disabled={cleaning}
|
||||||
|
className="gap-2 bg-black text-white hover:bg-black/90"
|
||||||
|
>
|
||||||
|
<FontAwesomeIcon icon={faBroom} className="h-4 w-4" />
|
||||||
|
Clean Cache Images
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user