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(search): route to native /search instead of 404 /search/videos and cleanup error mascot (v1.4.21)
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Immediate URL rewrite: redirect legacy /search/videos to /search
|
||||||
|
if (typeof window !== 'undefined' && window.location) {
|
||||||
|
if (window.location.pathname === '/search/videos' || window.location.pathname.startsWith('/search/videos/')) {
|
||||||
|
var targetSearch = window.location.search || '';
|
||||||
|
window.location.replace('/search' + targetSearch);
|
||||||
|
}
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
(function () {
|
(function () {
|
||||||
if (window.__YAKTUBE_ENGINE_LOADED__) return;
|
if (window.__YAKTUBE_ENGINE_LOADED__) return;
|
||||||
@@ -1626,6 +1634,18 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkAndInjectSearchResults() {
|
function checkAndInjectSearchResults() {
|
||||||
|
// Clean up stray 404 error mascot pages if on search
|
||||||
|
try {
|
||||||
|
var errPages = document.querySelectorAll('my-error-page');
|
||||||
|
errPages.forEach(function(ep) { ep.remove(); });
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
|
// Instant URL fixer: redirect legacy /search/videos to native /search
|
||||||
|
if (window.location.pathname === '/search/videos' || window.location.pathname.startsWith('/search/videos/')) {
|
||||||
|
window.location.replace('/search' + window.location.search);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var url = new URL(window.location.href);
|
var url = new URL(window.location.href);
|
||||||
var searchParam = url.searchParams.get('search');
|
var searchParam = url.searchParams.get('search');
|
||||||
|
|
||||||
@@ -2126,7 +2146,7 @@ try {
|
|||||||
saveRecentSearch(q);
|
saveRecentSearch(q);
|
||||||
announce('"' + q + '" için arama yapılıyor...', true);
|
announce('"' + q + '" için arama yapılıyor...', true);
|
||||||
closeFullSearchModal();
|
closeFullSearchModal();
|
||||||
window.location.href = '/search/videos?search=' + encodeURIComponent(q);
|
window.location.href = '/search?search=' + encodeURIComponent(q);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.__yaktube_execute_search__ = executeSearch;
|
window.__yaktube_execute_search__ = executeSearch;
|
||||||
@@ -2257,7 +2277,7 @@ try {
|
|||||||
announce('"' + transcript + '" için arama başlatılıyor...', true);
|
announce('"' + transcript + '" için arama başlatılıyor...', true);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
closeFullSearchModal();
|
closeFullSearchModal();
|
||||||
window.location.href = '/search/videos?search=' + encodeURIComponent(transcript);
|
window.location.href = '/search?search=' + encodeURIComponent(transcript);
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.4.20",
|
"version": "1.4.21",
|
||||||
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"library": "./main.js",
|
"library": "./main.js",
|
||||||
|
|||||||
@@ -942,3 +942,18 @@ body.yaktube-theater-mode .video-js {
|
|||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Suppress 404 Mascot and Error Page on Search results */
|
||||||
|
body:has(#yaktube-ondemand-container) my-error-page,
|
||||||
|
#yaktube-ondemand-container ~ my-error-page,
|
||||||
|
my-error-page:has(~ #yaktube-ondemand-container),
|
||||||
|
my-error-page {
|
||||||
|
/* Only hide if search param is active */
|
||||||
|
}
|
||||||
|
body:has(#yaktube-ondemand-container) my-error-page {
|
||||||
|
display: none !important;
|
||||||
|
visibility: hidden !important;
|
||||||
|
height: 0 !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user