📜 Fix empty files + Add v1.1.0 changelog entry
✅ Fixed Files: • CHANGELOG.md - Added v1.1.0 (2025-06-28) mono-repo restructure • LICENSE - MIT license with EasyProTech LLC copyright • README.md - Platform overview with multi-implementation vision • docs/architecture.md - Complete CB2FA architecture documentation • core/README.md - Shared components overview (i18n, queue, types) 🎯 Version 1.1.0 Changes: - Repo converted to mono-structure - Matrix implementation moved to /matrix - Core architecture documentation started 📊 All files now have proper content (not 1-byte empty files) 🌍 Ready for CB2FA platform expansion!
This commit is contained in:
@@ -1 +1,82 @@
|
||||
|
||||
# CB2FA Core Components
|
||||
|
||||
This directory contains **shared components** used across all CB2FA implementations.
|
||||
|
||||
## 🌍 Internationalization (i18n)
|
||||
|
||||
**Location**: `./i18n/`
|
||||
|
||||
Shared translations for all CB2FA implementations supporting 7 languages:
|
||||
- 🇬🇧 English (default)
|
||||
- 🇷🇺 Russian
|
||||
- 🇩🇪 German
|
||||
- 🇨🇳 Chinese (Simplified)
|
||||
- 🇫🇷 French
|
||||
- 🇪🇸 Spanish
|
||||
- 🇹🇷 Turkish
|
||||
|
||||
### Usage
|
||||
```typescript
|
||||
import { t, availableLanguages } from '@cb2fa/core/i18n';
|
||||
|
||||
// Get translated message
|
||||
const message = t('loginRequest'); // "🔐 Login Request"
|
||||
|
||||
// List available languages
|
||||
console.log(availableLanguages);
|
||||
```
|
||||
|
||||
## 🔄 Queue System
|
||||
|
||||
**Location**: `./queue/`
|
||||
|
||||
Shared queue management for handling multiple simultaneous requests:
|
||||
- One active request at a time
|
||||
- Automatic queuing and processing
|
||||
- Timeout handling
|
||||
- Anti-spam protection
|
||||
|
||||
### Usage
|
||||
```typescript
|
||||
import { RequestQueue } from '@cb2fa/core/queue';
|
||||
|
||||
const queue = new RequestQueue({
|
||||
timeout: 15 * 60 * 1000, // 15 minutes
|
||||
});
|
||||
|
||||
await queue.add(request);
|
||||
```
|
||||
|
||||
## 🏗️ Types
|
||||
|
||||
**Location**: `./types/`
|
||||
|
||||
Shared TypeScript types and interfaces:
|
||||
```typescript
|
||||
interface LoginRequest {
|
||||
username: string;
|
||||
ip: string;
|
||||
userAgent: string;
|
||||
timestamp: Date;
|
||||
}
|
||||
|
||||
interface ApprovalResponse {
|
||||
approved: boolean;
|
||||
timestamp: Date;
|
||||
approver?: string;
|
||||
}
|
||||
```
|
||||
|
||||
## 🔧 Utils
|
||||
|
||||
**Location**: `./utils/`
|
||||
|
||||
Shared utility functions:
|
||||
- Input validation
|
||||
- Security helpers
|
||||
- Common formatting
|
||||
- Configuration loading
|
||||
|
||||
---
|
||||
|
||||
**Note**: Core components are designed to be platform-agnostic and reusable across all CB2FA implementations.
|
||||
|
||||
Reference in New Issue
Block a user