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): place skip-to-categories strictly after skip-to-content (v1.6.5)
This commit is contained in:
@@ -2136,8 +2136,18 @@ try {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
focusVideoPlayer();
|
focusVideoPlayer();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (skipLink && !isEmbedUrl()) {
|
||||||
|
var skipContent = document.querySelector('.skip-to-content, a[href*="content"]');
|
||||||
|
if (skipContent) {
|
||||||
|
if (skipContent.nextElementSibling !== skipLink) {
|
||||||
|
skipContent.insertAdjacentElement('afterend', skipLink);
|
||||||
|
}
|
||||||
|
} else if (skipLink.parentElement !== document.body) {
|
||||||
document.body.insertBefore(skipLink, document.body.firstChild);
|
document.body.insertBefore(skipLink, document.body.firstChild);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 4. Configure Player Container (#videojs-wrapper or .video-js or #video-wrapper)
|
// 4. Configure Player Container (#videojs-wrapper or .video-js or #video-wrapper)
|
||||||
var playerWrapper =
|
var playerWrapper =
|
||||||
@@ -3155,7 +3165,7 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function injectCategoryChipsBar() {
|
function isBrowsePageUrl() {
|
||||||
var path = (window.location.pathname || '').toLowerCase();
|
var path = (window.location.pathname || '').toLowerCase();
|
||||||
if (
|
if (
|
||||||
path.indexOf('/videos/watch') === 0 ||
|
path.indexOf('/videos/watch') === 0 ||
|
||||||
@@ -3165,12 +3175,9 @@ try {
|
|||||||
path.indexOf('/my-library') === 0 ||
|
path.indexOf('/my-library') === 0 ||
|
||||||
path.indexOf('/settings') === 0
|
path.indexOf('/settings') === 0
|
||||||
) {
|
) {
|
||||||
var oldBar = document.getElementById('yaktube-category-chips-bar');
|
return false;
|
||||||
if (oldBar) oldBar.remove();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return (
|
||||||
var isBrowsePage =
|
|
||||||
path === '/' ||
|
path === '/' ||
|
||||||
path === '' ||
|
path === '' ||
|
||||||
path === '/videos/overview' ||
|
path === '/videos/overview' ||
|
||||||
@@ -3180,9 +3187,12 @@ try {
|
|||||||
path.indexOf('/search') === 0 ||
|
path.indexOf('/search') === 0 ||
|
||||||
path.indexOf('/videos/trending') === 0 ||
|
path.indexOf('/videos/trending') === 0 ||
|
||||||
path.indexOf('/videos/recently-added') === 0 ||
|
path.indexOf('/videos/recently-added') === 0 ||
|
||||||
path.indexOf('/videos/local') === 0;
|
path.indexOf('/videos/local') === 0
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isBrowsePage) {
|
function injectCategoryChipsBar() {
|
||||||
|
if (!isBrowsePageUrl()) {
|
||||||
var exBar = document.getElementById('yaktube-category-chips-bar');
|
var exBar = document.getElementById('yaktube-category-chips-bar');
|
||||||
if (exBar) exBar.remove();
|
if (exBar) exBar.remove();
|
||||||
return;
|
return;
|
||||||
@@ -3385,12 +3395,19 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function injectSkipToCategoriesLink() {
|
function injectSkipToCategoriesLink() {
|
||||||
if (document.getElementById('yaktube-skip-to-categories')) return;
|
var skipLink = document.getElementById('yaktube-skip-to-categories');
|
||||||
|
|
||||||
|
// Only show top skip-link on browse / overview pages where category bar actually exists
|
||||||
|
if (!isBrowsePageUrl()) {
|
||||||
|
if (skipLink) skipLink.remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var skipContent = document.querySelector('.skip-to-content, a[href*="content"]');
|
var skipContent = document.querySelector('.skip-to-content, a[href*="content"]');
|
||||||
var toggleBtn = document.querySelector('.toggle-menu, button[title*="Yanal"], button[aria-label*="Yanal"]');
|
if (!skipContent) return;
|
||||||
|
|
||||||
var skipLink = document.createElement('a');
|
if (!skipLink) {
|
||||||
|
skipLink = document.createElement('a');
|
||||||
skipLink.id = 'yaktube-skip-to-categories';
|
skipLink.id = 'yaktube-skip-to-categories';
|
||||||
skipLink.href = '#yaktube-category-chips-bar';
|
skipLink.href = '#yaktube-category-chips-bar';
|
||||||
skipLink.className = 'visually-hidden-focusable skip-to-content yaktube-skip-categories';
|
skipLink.className = 'visually-hidden-focusable skip-to-content yaktube-skip-categories';
|
||||||
@@ -3408,13 +3425,11 @@ try {
|
|||||||
jumpToCategories();
|
jumpToCategories();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (skipContent && skipContent.parentElement) {
|
// GUARANTEE: skipLink MUST ALWAYS be placed IMMEDIATELY AFTER skipContent ("Ana içeriğe atla")
|
||||||
skipContent.parentElement.insertBefore(skipLink, skipContent.nextSibling);
|
if (skipContent.nextElementSibling !== skipLink) {
|
||||||
} else if (toggleBtn && toggleBtn.parentElement) {
|
skipContent.insertAdjacentElement('afterend', skipLink);
|
||||||
toggleBtn.parentElement.insertBefore(skipLink, toggleBtn);
|
|
||||||
} else {
|
|
||||||
document.body.prepend(skipLink);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.6.4",
|
"version": "1.6.5",
|
||||||
"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",
|
||||||
|
|||||||
Reference in New Issue
Block a user