Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
release: v3.2.0 - Enterprise Edition with Live Web Dashboard, PDF/Excel Exporters, Framework Stubs & 110 WCAG Rules
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# 🛠️ Framework & CMS Integrations Guide
|
||||
|
||||
## 1. Laravel Integration
|
||||
|
||||
### Middleware Registration (`app/Http/Kernel.php` or `bootstrap/app.php`)
|
||||
```php
|
||||
use YakNet\AccessibilityConsole\Stubs\Laravel\AccessibilityMiddleware;
|
||||
|
||||
$middleware->web(append: [
|
||||
AccessibilityMiddleware::class,
|
||||
]);
|
||||
```
|
||||
|
||||
### Automated PHPUnit / Pest Testing
|
||||
```php
|
||||
use YakNet\AccessibilityConsole\Stubs\Laravel\AssertsAccessibility;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
use AssertsAccessibility;
|
||||
|
||||
public function test_homepage_is_accessible(): void
|
||||
{
|
||||
$this->assertPageIsAccessible('https://localhost', minScore: 90);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 2. WordPress Integration
|
||||
|
||||
Drop `stubs/wordpress/yaknet-a11y-wp-plugin.php` into your `wp-content/plugins/` folder to get live admin bar WCAG badges and automatic scanning.
|
||||
@@ -0,0 +1,25 @@
|
||||
# ♿ YakNet Accessibility Console — WCAG 2.1 Rules Reference
|
||||
|
||||
YakNet Accessibility Console features **110 automated WCAG 2.1 rules** across Levels A, AA, and AAA.
|
||||
|
||||
## Rule Categories
|
||||
|
||||
### 1. ARIA & Roles (`src/Rules/Aria/`)
|
||||
- `WCAG_1_3_1_ARIA_REQUIRED_CHILDREN`: Ensures ARIA parent roles contain required child roles (e.g. `role="radiogroup"`).
|
||||
- `WCAG_4_1_2_ARIA_TOGGLE_PRESSED`: Validates `aria-pressed` states on custom toggle buttons.
|
||||
|
||||
### 2. Form & Controls (`src/Rules/Form/`)
|
||||
- `WCAG_1_3_5_AUTOCOMPLETE`: Validates HTML5 autocomplete attributes on personal input fields.
|
||||
- `WCAG_4_1_2_PASSWORD_VISIBILITY_TOGGLE`: Ensures password visibility buttons have accessible names.
|
||||
|
||||
### 3. Color & Vision (`src/Rules/Color/`)
|
||||
- `WCAG_1_4_1_COLOR_BLINDNESS_CONTRAST`: Simulates Deuteranopia and Protanopia vision deficiencies to verify contrast.
|
||||
- `WCAG_1_4_3_CONTRAST`: Verifies minimum 4.5:1 text-to-background contrast ratio.
|
||||
|
||||
### 4. Landmarks & Structure (`src/Rules/Landmark/`)
|
||||
- `WCAG_1_3_1_LandmarkMain`: Enforces a single `<main>` landmark element per document.
|
||||
- `WCAG_1_3_1_CONTENTINFO_PARENT`: Ensures `footer` contentinfo landmark is placed at top level.
|
||||
|
||||
### 5. Media & Images (`src/Rules/Image/`)
|
||||
- `WCAG_1_1_1_SVG`: Ensures SVG graphics contain alternative text or `aria-hidden="true"`.
|
||||
- `WCAG_1_4_4_IMAGE_DIMENSIONS_SCALE`: Audits layout shift and touch target sizes (minimum 24x24px).
|
||||
Reference in New Issue
Block a user