Sms Rehber eklemesi,Mobil uyumluluk ayarları,iletişim sayfası düzenlemeler vb.

This commit is contained in:
2026-01-30 00:09:16 +03:00
parent 5fdb7592e7
commit d320787df6
20 changed files with 800 additions and 101 deletions

View File

@@ -11,6 +11,7 @@ interface ProductData {
image_url?: string
is_active?: boolean
images?: string[]
product_code?: string
}
export async function createProduct(data: ProductData) {
@@ -24,7 +25,8 @@ export async function createProduct(data: ProductData) {
description: data.description,
price: data.price,
image_url: data.image_url, // Main image (can be first of images)
is_active: data.is_active ?? true
is_active: data.is_active ?? true,
product_code: data.product_code
}).select().single()
if (error) throw error
@@ -62,7 +64,8 @@ export async function updateProduct(id: number, data: ProductData) {
description: data.description,
price: data.price,
image_url: data.image_url,
is_active: data.is_active
is_active: data.is_active,
product_code: data.product_code
}).eq("id", id)
if (error) throw error

View File

@@ -32,7 +32,7 @@ export default async function ProductsPage() {
</div>
</div>
<div className="border rounded-md">
<div className="border rounded-md overflow-x-auto">
<Table>
<TableHeader>
<TableRow>

View File

@@ -19,11 +19,11 @@ export default async function SmsLogsPage() {
}
return (
<div className="flex-1 space-y-4 p-8 pt-6">
<h2 className="text-3xl font-bold tracking-tight">SMS Geçmişi</h2>
<div className="flex-1 space-y-4 p-4 pt-6 md:p-8">
<h2 className="text-2xl md:text-3xl font-bold tracking-tight">SMS Geçmişi</h2>
<p className="text-muted-foreground">Son gönderilen mesajların durumu.</p>
<div className="rounded-md border">
<div className="rounded-md border overflow-x-auto">
<Table>
<TableHeader>
<TableRow>

View File

@@ -0,0 +1,27 @@
import { Skeleton } from "@/components/ui/skeleton"
export default function DashboardLoading() {
return (
<div className="flex flex-col space-y-6 p-8">
<div className="flex items-center justify-between space-y-2">
<div className="space-y-2">
<Skeleton className="h-8 w-[200px]" />
<Skeleton className="h-4 w-[300px]" />
</div>
<div className="flex items-center space-x-2">
<Skeleton className="h-10 w-[120px]" />
</div>
</div>
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
<Skeleton className="h-[120px] rounded-xl" />
<Skeleton className="h-[120px] rounded-xl" />
<Skeleton className="h-[120px] rounded-xl" />
<Skeleton className="h-[120px] rounded-xl" />
</div>
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-7">
<Skeleton className="col-span-4 h-[400px] rounded-xl" />
<Skeleton className="col-span-3 h-[400px] rounded-xl" />
</div>
</div>
)
}