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
Format codebase with Prettier
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
node_modules/
|
||||
dist/
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "none",
|
||||
"printWidth": 120,
|
||||
"arrowParens": "avoid",
|
||||
"endOfLine": "auto"
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
|
||||
// 100% Incompatible Browser Suppression & Error Guardian
|
||||
// CRITICAL: PeerTube's Angular app (my-app ngOnInit) relies on document.getElementById('incompatible-browser')
|
||||
// to exist so it can do .className += " browser-ok" before calling this.loadUser()!
|
||||
// Removing it from DOM causes a null pointer crash that breaks user session initialization!
|
||||
if (typeof window !== 'undefined') {
|
||||
// 100% Incompatible Browser Suppression & Error Guardian
|
||||
// CRITICAL: PeerTube's Angular app (my-app ngOnInit) relies on document.getElementById('incompatible-browser')
|
||||
// to exist so it can do .className += " browser-ok" before calling this.loadUser()!
|
||||
// Removing it from DOM causes a null pointer crash that breaks user session initialization!
|
||||
if (typeof window !== 'undefined') {
|
||||
try {
|
||||
window.displayIncompatibleBrowser = function () {};
|
||||
var neuterIncompatible = function () {
|
||||
@@ -34,15 +33,15 @@
|
||||
}
|
||||
setInterval(neuterIncompatible, 1000);
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
// Immediate URL rewrite: redirect legacy /search/videos to /search
|
||||
if (typeof window !== 'undefined' && window.location) {
|
||||
// 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 {
|
||||
(function () {
|
||||
if (window.__YAKTUBE_ENGINE_LOADED__) return;
|
||||
@@ -1694,7 +1693,9 @@ try {
|
||||
// Clean up stray 404 error mascot pages if on search
|
||||
try {
|
||||
var errPages = document.querySelectorAll('my-error-page');
|
||||
errPages.forEach(function(ep) { ep.remove(); });
|
||||
errPages.forEach(function (ep) {
|
||||
ep.remove();
|
||||
});
|
||||
} catch (e) {}
|
||||
|
||||
// Instant URL fixer: redirect legacy /search/videos to native /search
|
||||
@@ -2053,7 +2054,9 @@ try {
|
||||
.catch(function () {
|
||||
// Fallback to local PeerTube bridge proxy
|
||||
fetch(bridgeUrl, options)
|
||||
.then(function (res) { return res.json(); })
|
||||
.then(function (res) {
|
||||
return res.json();
|
||||
})
|
||||
.then(function (data) {
|
||||
if (typeof onSuccess === 'function') onSuccess(data);
|
||||
})
|
||||
@@ -2068,7 +2071,11 @@ try {
|
||||
if (!isAccountSyncEnabled() || isSyncingHistory) return;
|
||||
isSyncingHistory = true;
|
||||
|
||||
callCloudSearchHistory('GET', '', null, function (data) {
|
||||
callCloudSearchHistory(
|
||||
'GET',
|
||||
'',
|
||||
null,
|
||||
function (data) {
|
||||
isSyncingHistory = false;
|
||||
if (data && data.status === 'success' && Array.isArray(data.history)) {
|
||||
if (data.history.length > 0) {
|
||||
@@ -2076,9 +2083,11 @@ try {
|
||||
}
|
||||
if (typeof callback === 'function') callback();
|
||||
}
|
||||
}, function () {
|
||||
},
|
||||
function () {
|
||||
isSyncingHistory = false;
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function saveRecentSearch(query) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* 100% Elimination of PeerTube Mobile Open-in-App & Incompatible Browser Banners */
|
||||
#incompatible-browser,
|
||||
.alert-light#incompatible-browser,
|
||||
div[id="incompatible-browser"],
|
||||
div[id='incompatible-browser'],
|
||||
.incompatible-browser,
|
||||
.mobile-msg,
|
||||
my-header .mobile-msg,
|
||||
@@ -947,7 +947,6 @@ body.yaktube-theater-mode .video-js {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user