Initial commit: Yakıt Takip Modülü - Akaryakıt İstasyonu Yönetim Sistemi

🚀 Features Implemented:
- Full-stack SvelteKit application with Express backend
- Role-based authentication (Admin, Fuel Manager, Goods Manager)
- Real-time notifications with Socket.IO
- SQLite database with auto-initialization in /db directory
- Comprehensive user management and fuel slip tracking
- Responsive design with Turkish language support

🏗️ Architecture:
- Frontend: Svelte + SvelteKit + Vite
- Backend: Node.js + Express + Socket.IO
- Database: SQLite3 with automatic schema creation
- Security: bcrypt password hashing + session management
- Real-time: Socket.IO for instant notifications

📁 Project Structure:
- Organized documentation in /docs directory
- Database files in /db directory with auto-setup
- Clean separation of API routes and UI components
- Comprehensive documentation including processes, architecture, and user guides

📚 Documentation:
- PROJECT_PROCESSES.md: Comprehensive project documentation
- KNOWLEDGE_BASE.md: Quick reference and user guide
- TEST_GUIDE.md: Testing and quality assurance guide
- README_ADMIN_FEATURES.md: Admin functionality guide
- Full API documentation and system architecture

🔒 Security Features:
- Role-based authorization system
- Encrypted password storage with bcrypt
- Session-based authentication
- SQL injection protection with parameterized queries
- CORS configuration and input validation

🎯 Key Features:
- Fuel slip creation and approval workflow
- Real-time notifications between users
- PDF generation for fuel slips
- User and vehicle management
- Comprehensive audit logging

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-05 08:35:13 +03:00
commit 4205a8d387
31 changed files with 11678 additions and 0 deletions

211
src/app.css Normal file
View File

@@ -0,0 +1,211 @@
/* Tailwind benzeri stil sistemi */
:root {
--primary-color: #6CA5E3;
--inactive-color: #F2F3F7;
--background-color: #FFFFFF;
--card-border-color: #F7F7F7;
--text-color: #1F2937;
--text-secondary: #6B7280;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
}
/* Responsive tasarım */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
/* 1080p ve 720p monitör uyumluluğu */
@media (min-width: 1280px) {
.container {
max-width: 1152px;
}
}
@media (min-width: 1920px) {
.container {
max-width: 1728px;
}
}
/* Kart yapısı */
.card {
background: var(--background-color);
border: 1px solid var(--card-border-color);
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
padding: 2rem;
transition: all 0.3s ease;
}
.card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
/* Buton stilleri */
.btn {
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: none;
font-size: 0.95rem;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: #5A94D3;
transform: translateY(-1px);
}
.btn-inactive {
background-color: var(--inactive-color);
color: var(--text-secondary);
}
.btn-inactive:hover {
background-color: #E5E7EB;
}
/* Form stilleri */
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-color);
}
.form-input {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid var(--card-border-color);
border-radius: 8px;
font-size: 0.95rem;
transition: all 0.3s ease;
background-color: var(--background-color);
}
.form-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(108, 165, 227, 0.1);
}
/* Login ekranı özel stilleri */
.login-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 1rem;
}
.login-card {
width: 100%;
max-width: 420px;
background: var(--background-color);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Karşılama ekranı stilleri */
.welcome-container {
min-height: 100vh;
background: #F2F3F7;
padding: 2rem;
}
.welcome-card {
max-width: 800px;
margin: 0 auto;
text-align: center;
}
/* Logo başlık */
.app-title {
font-size: 2rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.app-subtitle {
font-size: 1.1rem;
color: var(--text-secondary);
margin-bottom: 2rem;
}
/* Rol badge stilleri */
.role-badge {
display: inline-block;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.role-admin {
background-color: #FEE2E2;
color: #DC2626;
}
.role-fuel {
background-color: #DBEAFE;
color: #2563EB;
}
.role-goods {
background-color: #D1FAE5;
color: #059669;
}
/* Hata mesajları */
.error-message {
background-color: #FEE2E2;
color: #DC2626;
padding: 0.75rem 1rem;
border-radius: 8px;
margin-bottom: 1rem;
font-size: 0.9rem;
border-left: 4px solid #DC2626;
}
/* Başarı mesajları */
.success-message {
background-color: #D1FAE5;
color: #059669;
padding: 0.75rem 1rem;
border-radius: 8px;
margin-bottom: 1rem;
font-size: 0.9rem;
border-left: 4px solid #059669;
}