Update package.json scripts, enhance layout with new components, and improve API error handling
Some checks failed
Deploy / deploy (push) Failing after 1h28m6s

- Added new scripts for database operations and temporary production in package.json.
- Integrated KaydetBannerLazy component into the layout for improved user notifications.
- Enhanced API error handling in the soru route to mark credit exhaustion.
- Updated the IletisimPage for better button styling and user experience.
- Refactored ListemPage to streamline user flow and improve session handling.
- Removed unused ListePaneli component to clean up the codebase.
This commit is contained in:
bilalgursen
2026-08-06 02:27:42 +03:00
parent 488845ae1f
commit e62c6f07df
77 changed files with 4132 additions and 1659 deletions

View File

@@ -33,6 +33,25 @@ export function bolumBazAdi(isim: string): string {
.trim();
}
/**
* /universite/[slug] sayfa slug'ı: harita.ts'teki uniAdiNormalize ile aynı
* kural (sondaki "(İL)" eki atılır). Katalog haritası DB'deki tüm universite
* değerlerinden kurulduğu için bu slug her zaman var olan bir sayfaya çıkar.
*/
export function uniSayfaSlug(ad: string): string {
return turkishSlugify(ad.replace(/\s*\([^)]*\)\s*$/, "").trim());
}
/**
* /bolum/[slug] sayfa slug'ı: katalog.ts'teki bolumSlugFromIsim ile aynı kural
* (bolumBazAdi + turkishSlugify). Bölüm haritası DB'deki tüm isim
* değerlerinden kurulduğu için bu slug da her zaman var olan bir sayfaya çıkar
* (bkz. liste-cekmecesi'ndeki bolumHref).
*/
export function bolumSayfaSlug(isim: string): string {
return turkishSlugify(bolumBazAdi(isim));
}
/** ALL-CAPS veritabanı adlarını tr-TR başlık düzenine çevirir (İSTANBUL → İstanbul). */
export function trBaslikDuzeni(s: string): string {
return s