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(categories): preserve category bar on homepage navigation and overview route (v1.6.3)
This commit is contained in:
@@ -3172,6 +3172,9 @@ try {
|
||||
|
||||
var isBrowsePage =
|
||||
path === '/' ||
|
||||
path === '' ||
|
||||
path === '/videos/overview' ||
|
||||
path.indexOf('/videos/overview') === 0 ||
|
||||
path === '/videos/browse' ||
|
||||
path.indexOf('/videos/browse') === 0 ||
|
||||
path.indexOf('/search') === 0 ||
|
||||
@@ -3188,8 +3191,11 @@ try {
|
||||
var targetElem =
|
||||
document.querySelector('my-video-filters-header') ||
|
||||
document.querySelector('my-videos-list') ||
|
||||
document.querySelector('my-video-overview') ||
|
||||
document.querySelector('my-home-menu') ||
|
||||
document.querySelector('my-search-results') ||
|
||||
document.querySelector('my-search') ||
|
||||
document.querySelector('.main-row') ||
|
||||
document.querySelector('.main-col') ||
|
||||
document.querySelector('main');
|
||||
|
||||
@@ -3201,6 +3207,26 @@ try {
|
||||
var activeKey = getActiveCategoryKey();
|
||||
var existingBar = document.getElementById('yaktube-category-chips-bar');
|
||||
|
||||
if (existingBar) {
|
||||
var isDetached = !existingBar.isConnected || !document.body.contains(existingBar);
|
||||
var isWrongParent =
|
||||
targetElem && targetElem.parentElement && existingBar.parentElement !== targetElem.parentElement;
|
||||
|
||||
if (isDetached) {
|
||||
try {
|
||||
existingBar.remove();
|
||||
} catch (e) {}
|
||||
existingBar = null;
|
||||
} else if (isWrongParent) {
|
||||
try {
|
||||
targetElem.parentElement.insertBefore(existingBar, targetElem);
|
||||
} catch (e) {
|
||||
existingBar.remove();
|
||||
existingBar = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (existingBar) {
|
||||
var chips = existingBar.querySelectorAll('.yaktube-category-chip');
|
||||
chips.forEach(function (chip) {
|
||||
@@ -3269,7 +3295,12 @@ try {
|
||||
|
||||
chip.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
if (cat.key === getActiveCategoryKey()) return;
|
||||
if (
|
||||
cat.key === getActiveCategoryKey() &&
|
||||
(window.location.pathname === '/videos/browse' ||
|
||||
(cat.url && window.location.pathname + window.location.search === cat.url))
|
||||
)
|
||||
return;
|
||||
|
||||
announce(cat.label + ' kategorisi seçildi.');
|
||||
|
||||
@@ -3319,6 +3350,8 @@ try {
|
||||
if (
|
||||
tag === 'my-video-filters-header' ||
|
||||
tag === 'my-videos-list' ||
|
||||
tag === 'my-video-overview' ||
|
||||
tag === 'my-home-menu' ||
|
||||
tag === 'my-search-results' ||
|
||||
tag === 'my-search'
|
||||
) {
|
||||
@@ -5645,7 +5678,13 @@ try {
|
||||
scheduleUnifiedCycle(true);
|
||||
setTimeout(function () {
|
||||
scheduleUnifiedCycle(false, 0);
|
||||
}, 350);
|
||||
}, 150);
|
||||
setTimeout(function () {
|
||||
scheduleUnifiedCycle(false, 0);
|
||||
}, 450);
|
||||
setTimeout(function () {
|
||||
scheduleUnifiedCycle(false, 0);
|
||||
}, 950);
|
||||
}
|
||||
|
||||
window.addEventListener('popstate', onLocationChange);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "peertube-plugin-yaktube-ondemand",
|
||||
"version": "1.6.2",
|
||||
"version": "1.6.3",
|
||||
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations, Sleep Timer, Touch Gestures, Voice Assistant & A11y Engine for PeerTube",
|
||||
"main": "main.js",
|
||||
"library": "./main.js",
|
||||
|
||||
Reference in New Issue
Block a user