Files
ARC Developer 557ec13e11 fix: resolve Decap CMS media 404s and add Turkish translations
- Fix Decap CMS configuration with proper media folder paths
- Add Turkish translations for sharing interface elements
- Implement smart background handling for transparent logos
- Update image path conversion system for CMS compatibility
- Add comprehensive image optimization with Astro assets
- Update all blog post image paths for consistency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 19:15:11 +03:00

50 lines
1.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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 with role checking
if (window.netlifyIdentity) {
window.netlifyIdentity.on('init', (user) => {
if (!user) {
window.netlifyIdentity.on('login', () => {
document.location.href = '/admin/';
});
} else {
// Check if user has required roles
checkUserRole(user);
}
});
window.netlifyIdentity.on('login', (user) => {
checkUserRole(user);
});
}
function checkUserRole(user) {
const allowedRoles = ['admin', 'editor'];
const userRoles = user.app_metadata?.roles || [];
// Check if user has any of the allowed roles
const hasAccess = allowedRoles.some(role => userRoles.includes(role));
if (!hasAccess) {
// User doesn't have required roles
alert('Erişim reddedildi. Bu alanı kullanmak için yönetici izni gereklidir.');
window.netlifyIdentity.logout();
window.location.href = '/';
return;
}
}
</script>
</body>
</html>