Fix TypeScript errors for Netlify Identity integration

- Add proper TypeScript types for Netlify Identity in env.d.ts
- Define NetlifyUser and NetlifyIdentity interfaces
- Fix ESLint errors by removing 'any' types
- Add optional chaining for safe access
- Apply code formatting with Prettier

All TypeScript, ESLint, and Prettier checks now pass successfully.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Buğra
2025-07-10 01:01:12 +03:00
parent 733be12298
commit a9dce67054
6 changed files with 75 additions and 13 deletions
+26 -3
View File
@@ -18,8 +18,31 @@ collections:
- { label: 'Başlık', name: 'title', widget: 'string' }
- { label: 'Yayın Tarihi', name: 'date', widget: 'datetime', format: 'YYYY-MM-DD HH:mm:ss' }
- { label: 'Yazar', name: 'author', widget: 'string', default: 'TA1SPH' }
- { label: 'Kategoriler', name: 'categories', widget: 'list', allow_add: true, allow_delete: true, collapsed: false, field: { label: 'Kategori', name: 'category', widget: 'string' } }
- { label: 'Etiketler', name: 'tags', widget: 'list', allow_add: true, allow_delete: true, collapsed: false, field: { label: 'Etiket', name: 'tag', widget: 'string' } }
- {
label: 'Kategoriler',
name: 'categories',
widget: 'list',
allow_add: true,
allow_delete: true,
collapsed: false,
field: { label: 'Kategori', name: 'category', widget: 'string' },
}
- {
label: 'Etiketler',
name: 'tags',
widget: 'list',
allow_add: true,
allow_delete: true,
collapsed: false,
field: { label: 'Etiket', name: 'tag', widget: 'string' },
}
- { label: 'Düzen', name: 'layout', widget: 'string', default: 'post' }
- { label: 'Öne Çıkan Görsel', name: 'image', widget: 'image', media_folder: '/src/assets/images', public_folder: '~/assets/images', required: false }
- {
label: 'Öne Çıkan Görsel',
name: 'image',
widget: 'image',
media_folder: '/src/assets/images',
public_folder: '~/assets/images',
required: false,
}
- { label: 'İçerik', name: 'body', widget: 'markdown' }