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
fix(a11y): improve player controls visibility, restore browser Alt+Left navigation, add back button, and filter successful import notifications (v1.7.3)
This commit is contained in:
@@ -1963,6 +1963,15 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function injectControlBarSeekButtons(playerWrapper) {
|
function injectControlBarSeekButtons(playerWrapper) {
|
||||||
|
// A11y: Video.js büyük oynat butonunu ve denetim çubuğu butonlarını ekran okuyuculara erişilebilir kıl
|
||||||
|
// big-play-button custom label removed per user preference
|
||||||
|
var playBtn = (playerWrapper || document).querySelector('.vjs-play-control');
|
||||||
|
if (playBtn && !playBtn.hasAttribute('data-yaktube-a11y-label')) {
|
||||||
|
playBtn.setAttribute('data-yaktube-a11y-label', 'true');
|
||||||
|
var videoEl = getVideoElement();
|
||||||
|
var isPaused = videoEl ? videoEl.paused : true;
|
||||||
|
playBtn.setAttribute('aria-label', isPaused ? 'Oynat (Boşluk veya K)' : 'Duraklat (Boşluk veya K)');
|
||||||
|
}
|
||||||
var controlBar = (playerWrapper || document).querySelector('.vjs-control-bar');
|
var controlBar = (playerWrapper || document).querySelector('.vjs-control-bar');
|
||||||
if (!controlBar) return;
|
if (!controlBar) return;
|
||||||
|
|
||||||
@@ -2202,7 +2211,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Left Arrow or J: Rewind 10s
|
// Left Arrow or J: Rewind 10s
|
||||||
if (e.key === 'ArrowLeft' || e.key === 'j' || e.key === 'J') {
|
if ((e.key === 'ArrowLeft' && !e.altKey) || e.key === 'j' || e.key === 'J') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
video.currentTime = Math.max(0, video.currentTime - 10);
|
video.currentTime = Math.max(0, video.currentTime - 10);
|
||||||
@@ -2212,7 +2221,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Right Arrow or L: Forward 10s
|
// Right Arrow or L: Forward 10s
|
||||||
if (e.key === 'ArrowRight' || e.key === 'l' || e.key === 'L') {
|
if ((e.key === 'ArrowRight' && !e.altKey) || e.key === 'l' || e.key === 'L') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
video.currentTime = Math.min(video.duration || 999999, video.currentTime + 10);
|
video.currentTime = Math.min(video.duration || 999999, video.currentTime + 10);
|
||||||
@@ -2352,6 +2361,7 @@ try {
|
|||||||
|
|
||||||
bar.innerHTML =
|
bar.innerHTML =
|
||||||
'<span class="yaktube-player-bar-label">🛠️ Video Araçları:</span>' +
|
'<span class="yaktube-player-bar-label">🛠️ Video Araçları:</span>' +
|
||||||
|
'<button id="yaktube-bar-back-btn" class="yaktube-player-action-btn" aria-label="Önceki Sayfaya Geri Dön (Alt+Sol Ok)" title="Önceki Sayfaya Geri Dön (Alt+Sol Ok)">⬅️ Geri Dön</button>' +
|
||||||
'<button id="yaktube-bar-speed-btn" class="yaktube-player-action-btn" aria-label="Oynatma Hızını Değiştir (Alt+.)">⚡ Hız</button>' +
|
'<button id="yaktube-bar-speed-btn" class="yaktube-player-action-btn" aria-label="Oynatma Hızını Değiştir (Alt+.)">⚡ Hız</button>' +
|
||||||
'<button id="yaktube-bar-sleep-btn" class="yaktube-player-action-btn" aria-label="Uyku Zamanlayıcısı (Alt+U)">⏱️ Uyku</button>' +
|
'<button id="yaktube-bar-sleep-btn" class="yaktube-player-action-btn" aria-label="Uyku Zamanlayıcısı (Alt+U)">⏱️ Uyku</button>' +
|
||||||
'<button id="yaktube-bar-qr-btn" class="yaktube-player-action-btn" aria-label="Telefonda Devam Et / QR Kod (Alt+Q)">📱 Telefonda Aç</button>' +
|
'<button id="yaktube-bar-qr-btn" class="yaktube-player-action-btn" aria-label="Telefonda Devam Et / QR Kod (Alt+Q)">📱 Telefonda Aç</button>' +
|
||||||
@@ -2378,6 +2388,17 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Attach button actions
|
// Attach button actions
|
||||||
|
var backBtn = bar.querySelector('#yaktube-bar-back-btn');
|
||||||
|
if (backBtn) {
|
||||||
|
backBtn.addEventListener('click', function () {
|
||||||
|
if (window.history.length > 1) {
|
||||||
|
window.history.back();
|
||||||
|
} else {
|
||||||
|
window.location.href = '/videos/overview';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
bar.querySelector('#yaktube-bar-speed-btn').addEventListener('click', function () {
|
bar.querySelector('#yaktube-bar-speed-btn').addEventListener('click', function () {
|
||||||
adjustPlaybackSpeed(true);
|
adjustPlaybackSpeed(true);
|
||||||
});
|
});
|
||||||
@@ -2544,11 +2565,11 @@ try {
|
|||||||
announce('10 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
|
announce('10 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
}
|
}
|
||||||
// Seek 5s Back / Forward (ArrowLeft / ArrowRight or Alt+Left/Right)
|
// Seek 5s Back / Forward (ArrowLeft / ArrowRight or Alt+Left/Right)
|
||||||
else if (e.key === 'ArrowLeft' || (alt && e.key === 'ArrowLeft')) {
|
else if (e.key === 'ArrowLeft' && !alt) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.currentTime = Math.max(0, video.currentTime - 5);
|
video.currentTime = Math.max(0, video.currentTime - 5);
|
||||||
announce('5 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime));
|
announce('5 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
} else if (e.key === 'ArrowRight' || (alt && e.key === 'ArrowRight')) {
|
} else if (e.key === 'ArrowRight' && !alt) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.currentTime = Math.min(video.duration || 99999, video.currentTime + 5);
|
video.currentTime = Math.min(video.duration || 99999, video.currentTime + 5);
|
||||||
announce('5 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
|
announce('5 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
|
|||||||
@@ -178,9 +178,28 @@ function isContentBlocked(text, list = DEFAULT_BLOCKED_KEYWORDS) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function register({ getRouter, registerSetting, settingsManager, peertubeHelpers, logger }) {
|
async function register({ registerHook, getRouter, registerSetting, settingsManager, peertubeHelpers, logger }) {
|
||||||
const router = getRouter();
|
const router = getRouter();
|
||||||
|
|
||||||
|
// YakTube Bildirim Filtresi: Başarılı video içe aktarımları (type 7) bildirim kutusunu doldurmasın,
|
||||||
|
// Sadece başarısız olanlar (type 8 / MY_VIDEO_IMPORT_ERROR) bildirim olarak düşsün
|
||||||
|
if (typeof registerHook === 'function') {
|
||||||
|
registerHook({
|
||||||
|
target: 'filter:notifier.notification.enabled.result',
|
||||||
|
handler: async (result, { notification }) => {
|
||||||
|
if (notification && (notification.type === 7 || notification.type === 'my-video-import-success')) {
|
||||||
|
return {
|
||||||
|
webNotificationEnabled: false,
|
||||||
|
emailNotificationEnabled: false
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (logger) logger.info('[YakTube OnDemand] Registered filter:notifier.notification.enabled.result (suppressing successful import notifications).');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
let guestImportLimit = 5;
|
let guestImportLimit = 5;
|
||||||
let maxDiskUsagePercent = 85;
|
let maxDiskUsagePercent = 85;
|
||||||
let customChannelId = '';
|
let customChannelId = '';
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.7.2",
|
"version": "1.7.3",
|
||||||
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations, Sleep Timer, Touch Gestures, Voice Assistant & A11y Engine for PeerTube",
|
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations, Sleep Timer, Touch Gestures, Voice Assistant & A11y Engine for PeerTube",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"library": "./main.js",
|
"library": "./main.js",
|
||||||
|
|||||||
@@ -1763,3 +1763,29 @@ my-date-toggle .date-toggle:focus-visible {
|
|||||||
background-color: rgba(255, 143, 55, 0.15) !important;
|
background-color: rgba(255, 143, 55, 0.15) !important;
|
||||||
outline: 2px solid #ff8f37 !important;
|
outline: 2px solid #ff8f37 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* === YakTube WCAG 2.1 AAA Video Player Accessibility: Keep Controls Accessible === */
|
||||||
|
|
||||||
|
/* 1. Video duraklatıldığında veya klavye/ekran okuyucu odaklandığında denetim çubuğunu görünür tut */
|
||||||
|
.video-js.vjs-paused .vjs-control-bar,
|
||||||
|
.video-js:focus-within .vjs-control-bar,
|
||||||
|
.video-js .vjs-control-bar:focus-within,
|
||||||
|
.video-js.vjs-user-inactive.vjs-paused .vjs-control-bar {
|
||||||
|
opacity: 1 !important;
|
||||||
|
visibility: visible !important;
|
||||||
|
display: flex !important;
|
||||||
|
pointer-events: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 2. Büyük merkez oynatma düğmesi PeerTube varsayılanında bırakıldı */
|
||||||
|
|
||||||
|
/* 3. Tüm Video.js düğmelerinin klavye odağını belirgin kıl */
|
||||||
|
.video-js .vjs-control-bar .vjs-button:focus,
|
||||||
|
.video-js .vjs-control-bar .vjs-button:focus-visible,
|
||||||
|
.video-js .vjs-big-play-button:focus,
|
||||||
|
.video-js .vjs-big-play-button:focus-visible {
|
||||||
|
outline: 3px solid #ff8f37 !important;
|
||||||
|
outline-offset: 2px !important;
|
||||||
|
box-shadow: 0 0 10px rgba(255, 143, 55, 0.8) !important;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user