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
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46a9c8ab8c | ||
|
|
a5568de3cc | ||
|
|
d629c97dd8 |
@@ -287,7 +287,8 @@ try {
|
|||||||
var defaultLoginLink = headerRight.querySelector('my-login-link, a[href*="/login"], .login-button');
|
var defaultLoginLink = headerRight.querySelector('my-login-link, a[href*="/login"], .login-button');
|
||||||
var liveWidget = headerRight.querySelector('#yaknet-header-account-widget');
|
var liveWidget = headerRight.querySelector('#yaknet-header-account-widget');
|
||||||
|
|
||||||
// Always hide duplicate native login link in favor of unified YakNet component
|
if (isAuth) {
|
||||||
|
// 1. AUTHENTICATED: Hide native login link, Show YakNet Account Profile Menu
|
||||||
if (defaultLoginLink) {
|
if (defaultLoginLink) {
|
||||||
defaultLoginLink.style.display = 'none';
|
defaultLoginLink.style.display = 'none';
|
||||||
defaultLoginLink.setAttribute('aria-hidden', 'true');
|
defaultLoginLink.setAttribute('aria-hidden', 'true');
|
||||||
@@ -306,8 +307,8 @@ try {
|
|||||||
'client-id="01a03c41-f758-721e-b927-619bffde5c23" ' +
|
'client-id="01a03c41-f758-721e-b927-619bffde5c23" ' +
|
||||||
'redirect-uri="https://yaktube.yakhub.com.tr/plugins/peertube-plugin-auth-yaknet/router/auth-callback" ' +
|
'redirect-uri="https://yaktube.yakhub.com.tr/plugins/peertube-plugin-auth-yaknet/router/auth-callback" ' +
|
||||||
'base-url="https://auth.yakhub.com.tr" ' +
|
'base-url="https://auth.yakhub.com.tr" ' +
|
||||||
'login-url="https://auth.yakhub.com.tr/oauth/authorize?client_id=01a03c41-f758-721e-b927-619bffde5c23&redirect_uri=https%3A%2F%2Fyaktube.yakhub.com.tr%2Fplugins%2Fpeertube-plugin-auth-yaknet%2Frouter%2Fauth-callback&response_type=code&scope=" ' +
|
'login-url="/login" ' +
|
||||||
(isAuth ? 'authenticated="true" ' : 'authenticated="false" ') +
|
'authenticated="true" ' +
|
||||||
'user-name="' +
|
'user-name="' +
|
||||||
displayName.replace(/"/g, '"') +
|
displayName.replace(/"/g, '"') +
|
||||||
'" ' +
|
'" ' +
|
||||||
@@ -332,9 +333,8 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
var el = liveWidget.querySelector('yaknet-account');
|
var el = liveWidget.querySelector('yaknet-account');
|
||||||
if (el) {
|
if (el) {
|
||||||
var authAttr = isAuth ? 'true' : 'false';
|
if (el.getAttribute('authenticated') !== 'true' || el.getAttribute('user-name') !== displayName) {
|
||||||
if (el.getAttribute('authenticated') !== authAttr || el.getAttribute('user-name') !== displayName) {
|
el.setAttribute('authenticated', 'true');
|
||||||
el.setAttribute('authenticated', authAttr);
|
|
||||||
el.setAttribute('user-name', displayName);
|
el.setAttribute('user-name', displayName);
|
||||||
el.setAttribute('user-email', emailStr);
|
el.setAttribute('user-email', emailStr);
|
||||||
if (typeof el.syncStateFromAttributes === 'function') {
|
if (typeof el.syncStateFromAttributes === 'function') {
|
||||||
@@ -363,6 +363,32 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// 2. GUEST / NOT LOGGED IN:
|
||||||
|
// A. Physically remove any <yaknet-account> widget from DOM to guarantee zero shadow DOM duplicate buttons
|
||||||
|
if (liveWidget) {
|
||||||
|
liveWidget.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
// B. Ensure PeerTube's native login link is the ONLY single accessible login element
|
||||||
|
if (defaultLoginLink) {
|
||||||
|
defaultLoginLink.style.display = '';
|
||||||
|
defaultLoginLink.removeAttribute('aria-hidden');
|
||||||
|
|
||||||
|
var loginAnchor =
|
||||||
|
defaultLoginLink.tagName.toLowerCase() === 'a' ? defaultLoginLink : defaultLoginLink.querySelector('a');
|
||||||
|
if (loginAnchor) {
|
||||||
|
loginAnchor.setAttribute('aria-label', 'YakNet ile Giriş Yap');
|
||||||
|
loginAnchor.setAttribute('title', 'YakNet ile Giriş Yap');
|
||||||
|
var spanText = loginAnchor.querySelector('span');
|
||||||
|
if (spanText) {
|
||||||
|
spanText.textContent = 'YakNet ile Giriş Yap';
|
||||||
|
} else {
|
||||||
|
loginAnchor.textContent = 'YakNet ile Giriş Yap';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2.2 Login Modal / Page
|
// 2.2 Login Modal / Page
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.4.11",
|
"version": "1.4.14",
|
||||||
"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",
|
||||||
|
|||||||
Reference in New Issue
Block a user