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
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fb927e211 |
@@ -18,7 +18,7 @@ use YakNet\AccessibilityConsole\Console\Command\InitCommand;
|
||||
use YakNet\AccessibilityConsole\Console\Command\RulesCommand;
|
||||
|
||||
$container = ContainerFactory::create();
|
||||
$application = new Application('YakNet Accessibility Console', '3.2.1');
|
||||
$application = new Application('YakNet Accessibility Console', '3.2.2');
|
||||
|
||||
// Add commands resolved via DI Container
|
||||
$application->addCommand($container->get(ScanCommand::class));
|
||||
|
||||
+6
-4
@@ -12,7 +12,7 @@
|
||||
"yaknet"
|
||||
],
|
||||
"homepage": "https://forum.yak.net.tr",
|
||||
"version": "3.2.1",
|
||||
"version": "3.2.2",
|
||||
"type": "library",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
@@ -41,9 +41,11 @@
|
||||
"symfony/css-selector": "^6.4 || ^7.0 || ^8.0",
|
||||
"symfony/dom-crawler": "^6.4 || ^7.0 || ^8.0",
|
||||
"spatie/color": "^1.5 || ^2.0",
|
||||
"intervention/image": "^2.7 || ^3.0",
|
||||
"dompdf/dompdf": "^2.0 || ^3.0",
|
||||
"phpoffice/phpspreadsheet": "^1.28 || ^2.0 || ^3.0"
|
||||
"intervention/image": "^2.7 || ^3.0"
|
||||
},
|
||||
"suggest": {
|
||||
"dompdf/dompdf": "Required for generating PDF Accessibility Certificates (^2.0 || ^3.0).",
|
||||
"phpoffice/phpspreadsheet": "Required for exporting Excel Accessibility Audit Reports (^1.28 || ^2.0 || ^3.0)."
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^10.5",
|
||||
|
||||
@@ -18,6 +18,10 @@ class ExcelReportExporter
|
||||
*/
|
||||
public static function exportExcel(array $scanResult, string $targetUrl): string
|
||||
{
|
||||
if (!class_exists(Spreadsheet::class)) {
|
||||
throw new \RuntimeException('To export Excel audit reports, please install phpspreadsheet via: composer require phpoffice/phpspreadsheet');
|
||||
}
|
||||
|
||||
/** @var int $score */
|
||||
$score = is_numeric($scanResult['score'] ?? null) ? intval($scanResult['score']) : 0;
|
||||
|
||||
|
||||
@@ -16,6 +16,10 @@ class PdfReportGenerator
|
||||
*/
|
||||
public static function generatePdf(array $scanResult, string $targetUrl): string
|
||||
{
|
||||
if (!class_exists(Dompdf::class)) {
|
||||
throw new \RuntimeException('To generate PDF certificates, please install dompdf via: composer require dompdf/dompdf');
|
||||
}
|
||||
|
||||
/** @var int $score */
|
||||
$score = is_numeric($scanResult['score'] ?? null) ? intval($scanResult['score']) : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user