a9dce67054
- 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>
27 lines
843 B
HTML
27 lines
843 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="robots" content="noindex" />
|
|
<title>ARC İçerik Yöneticisi</title>
|
|
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
|
</head>
|
|
<body>
|
|
<!-- Include the script that builds the page and powers Decap CMS -->
|
|
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
|
<script>
|
|
// Initialize Netlify Identity widget
|
|
if (window.netlifyIdentity) {
|
|
window.netlifyIdentity.on('init', (user) => {
|
|
if (!user) {
|
|
window.netlifyIdentity.on('login', () => {
|
|
document.location.href = '/admin/';
|
|
});
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|