feat(yonetim): üyeleri görme ve elle kredi tanımlama paneli (S-017)
All checks were successful
Deploy / deploy (push) Successful in 11m10s
All checks were successful
Deploy / deploy (push) Successful in 11m10s
/yonetim yalnız ADMIN_EMAILS'teki hesaba açılır (varsayılan yok; tanımsızsa kimseye açılmaz). Üye listesi, arama, özet şeridi ve kredi ekle/düş çekmecesi. Hareket credit_ledger'a admin_grant nedeniyle, ref_id'de yönetici kimliğiyle yazılır; bakiye sıfırın altına inmez, çift gönderim UNIQUE(reason, ref_id) ile durur. Sayfa Rybbit'ten çıkarıldı (arama e-postası analitiğe gitmesin). Öğrenciye görünmediği için sürüm artmadı. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
34
src/app/yonetim/page.tsx
Normal file
34
src/app/yonetim/page.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import { Suspense } from "react";
|
||||
import type { Metadata } from "next";
|
||||
import {
|
||||
YonetimIcerik,
|
||||
YonetimIcerikSkeleton,
|
||||
} from "@/features/yonetim/components/yonetim-icerik";
|
||||
|
||||
// Yönetim paneli (S-017). Yalnız ADMIN_EMAILS'teki hesaba açılır; diğer
|
||||
// herkes 404 görür. Arama motoruna kapalı. Başlık bilerek yok: 404 gören
|
||||
// ziyaretçinin sekmesinde "Yönetim" yazıp sayfanın varlığını ele vermesin.
|
||||
export const metadata: Metadata = {
|
||||
robots: { index: false, follow: false },
|
||||
};
|
||||
|
||||
export default function YonetimPage({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: Promise<{ ara?: string | string[]; sayfa?: string | string[] }>;
|
||||
}) {
|
||||
return (
|
||||
<Suspense fallback={<YonetimIcerikSkeleton />}>
|
||||
{searchParams.then(({ ara, sayfa }) => {
|
||||
const araTek = (Array.isArray(ara) ? ara[0] : ara)?.trim().slice(0, 100);
|
||||
const n = Number(Array.isArray(sayfa) ? sayfa[0] : sayfa);
|
||||
return (
|
||||
<YonetimIcerik
|
||||
ara={araTek || undefined}
|
||||
sayfa={Number.isInteger(n) && n > 0 ? n : 1}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user