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(sso): update YakNet Auth URL to developer-console and SDK path to cdnjs (v1.5.2)
This commit is contained in:
@@ -153,7 +153,7 @@ try {
|
|||||||
) {
|
) {
|
||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
s.id = 'yaknet-account-script';
|
s.id = 'yaknet-account-script';
|
||||||
s.src = 'https://auth.yakhub.com.tr/js/yaknet-account.js';
|
s.src = 'https://cdnjs.yakhub.com.tr/ajax/libs/yaknet-account/latest/yaknet-account.js';
|
||||||
s.async = true;
|
s.async = true;
|
||||||
document.head.appendChild(s);
|
document.head.appendChild(s);
|
||||||
}
|
}
|
||||||
@@ -213,7 +213,7 @@ try {
|
|||||||
if (!document.getElementById(iframeId)) {
|
if (!document.getElementById(iframeId)) {
|
||||||
var iframe = document.createElement('iframe');
|
var iframe = document.createElement('iframe');
|
||||||
iframe.id = iframeId;
|
iframe.id = iframeId;
|
||||||
iframe.src = 'https://auth.yakhub.com.tr/sdk/sso-frame';
|
iframe.src = 'https://developer-console.yakhub.com.tr/sdk/sso-frame';
|
||||||
iframe.title = 'YakNet Oturum Kontrolü';
|
iframe.title = 'YakNet Oturum Kontrolü';
|
||||||
iframe.setAttribute('aria-hidden', 'true');
|
iframe.setAttribute('aria-hidden', 'true');
|
||||||
iframe.tabIndex = -1;
|
iframe.tabIndex = -1;
|
||||||
@@ -232,7 +232,7 @@ try {
|
|||||||
sessionStorage.removeItem('yaknet_manual_logout');
|
sessionStorage.removeItem('yaknet_manual_logout');
|
||||||
var callbackUrl = 'https://yaktube.yakhub.com.tr/plugins/peertube-plugin-auth-yaknet/router/auth-callback';
|
var callbackUrl = 'https://yaktube.yakhub.com.tr/plugins/peertube-plugin-auth-yaknet/router/auth-callback';
|
||||||
window.location.href =
|
window.location.href =
|
||||||
'https://auth.yakhub.com.tr/oauth/authorize?client_id=01a03c41-f758-721e-b927-619bffde5c23&redirect_uri=' +
|
'https://developer-console.yakhub.com.tr/oauth/authorize?client_id=01a03c41-f758-721e-b927-619bffde5c23&redirect_uri=' +
|
||||||
encodeURIComponent(callbackUrl) +
|
encodeURIComponent(callbackUrl) +
|
||||||
'&response_type=code&scope=';
|
'&response_type=code&scope=';
|
||||||
}
|
}
|
||||||
@@ -262,7 +262,7 @@ try {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Global listener for YakNet SSO broadcast from auth.yakhub.com.tr
|
// Global listener for YakNet SSO broadcast from developer-console.yakhub.com.tr
|
||||||
window.addEventListener('yaknet-auth', function (e) {
|
window.addEventListener('yaknet-auth', function (e) {
|
||||||
if (e.detail && e.detail.authenticated && e.detail.user) {
|
if (e.detail && e.detail.authenticated && e.detail.user) {
|
||||||
var token = localStorage.getItem('access_token');
|
var token = localStorage.getItem('access_token');
|
||||||
@@ -307,7 +307,8 @@ try {
|
|||||||
sessionStorage.setItem('yaknet_manual_logout', 'true');
|
sessionStorage.setItem('yaknet_manual_logout', 'true');
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
window.location.replace(
|
window.location.replace(
|
||||||
'https://auth.yakhub.com.tr/sdk/logout?redirect_uri=' + encodeURIComponent('https://yaktube.yakhub.com.tr')
|
'https://developer-console.yakhub.com.tr/sdk/logout?redirect_uri=' +
|
||||||
|
encodeURIComponent('https://yaktube.yakhub.com.tr')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -496,7 +497,7 @@ try {
|
|||||||
'<yaknet-account ' +
|
'<yaknet-account ' +
|
||||||
'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://developer-console.yakhub.com.tr" ' +
|
||||||
'login-url="/login" ' +
|
'login-url="/login" ' +
|
||||||
'authenticated="true" ' +
|
'authenticated="true" ' +
|
||||||
'user-name="' +
|
'user-name="' +
|
||||||
@@ -612,12 +613,12 @@ try {
|
|||||||
'<p style="font-size: 13px; color: #94a3b8; margin-bottom: 16px; line-height: 1.45;">' +
|
'<p style="font-size: 13px; color: #94a3b8; margin-bottom: 16px; line-height: 1.45;">' +
|
||||||
'YouTube gibi tek bir YakNet hesabıyla güvenle giriş yapabilir, kendi video ve müzik kanallarınızı oluşturabilirsiniz.' +
|
'YouTube gibi tek bir YakNet hesabıyla güvenle giriş yapabilir, kendi video ve müzik kanallarınızı oluşturabilirsiniz.' +
|
||||||
'</p>' +
|
'</p>' +
|
||||||
'<a href="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=" class="yaknet-sso-login-btn" aria-label="YakNet Hesabınız ile Tek Tıkla Giriş Yapın">' +
|
'<a href="https://developer-console.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=" class="yaknet-sso-login-btn" aria-label="YakNet Hesabınız ile Tek Tıkla Giriş Yapın">' +
|
||||||
'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg>' +
|
'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg>' +
|
||||||
'<span>YakNet ile Giriş Yap</span>' +
|
'<span>YakNet ile Giriş Yap</span>' +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
'<div style="margin-top: 14px; font-size: 13px; color: #94a3b8;">' +
|
'<div style="margin-top: 14px; font-size: 13px; color: #94a3b8;">' +
|
||||||
'YakNet hesabınız yok mu? <a href="https://auth.yakhub.com.tr/register" target="_blank" rel="noopener noreferrer" style="color: #ff8f37; font-weight: 600; text-decoration: underline;">YakNet Hesabı Oluştur</a>' +
|
'YakNet hesabınız yok mu? <a href="https://developer-console.yakhub.com.tr/register" target="_blank" rel="noopener noreferrer" style="color: #ff8f37; font-weight: 600; text-decoration: underline;">YakNet Hesabı Oluştur</a>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div style="margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11.5px; color: #64748b; line-height: 1.45;">' +
|
'<div style="margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11.5px; color: #64748b; line-height: 1.45;">' +
|
||||||
'Giriş yaparak <a href="/about/instance" target="_blank" style="color: #94a3b8; text-decoration: underline;">Kullanım Koşulları</a>\'nı ve <a href="/about/instance" target="_blank" style="color: #94a3b8; text-decoration: underline;">Gizlilik Politikası</a>\'nı kabul etmiş sayılırsınız.' +
|
'Giriş yaparak <a href="/about/instance" target="_blank" style="color: #94a3b8; text-decoration: underline;">Kullanım Koşulları</a>\'nı ve <a href="/about/instance" target="_blank" style="color: #94a3b8; text-decoration: underline;">Gizlilik Politikası</a>\'nı kabul etmiş sayılırsınız.' +
|
||||||
@@ -637,8 +638,7 @@ try {
|
|||||||
|
|
||||||
var registerLinks = document.querySelectorAll('a[href*="/signup"], a[href*="/register"]');
|
var registerLinks = document.querySelectorAll('a[href*="/signup"], a[href*="/register"]');
|
||||||
registerLinks.forEach(function (l) {
|
registerLinks.forEach(function (l) {
|
||||||
l.href = 'https://auth.yakhub.com.tr/register';
|
l.href = 'https://developer-console.yakhub.com.tr/register';
|
||||||
l.target = '_blank';
|
|
||||||
l.innerText = 'YakNet Hesabı Oluştur';
|
l.innerText = 'YakNet Hesabı Oluştur';
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -2995,7 +2995,7 @@ try {
|
|||||||
if (email) headers['X-User-Email'] = email;
|
if (email) headers['X-User-Email'] = email;
|
||||||
if (username) headers['X-User-Username'] = username;
|
if (username) headers['X-User-Username'] = username;
|
||||||
|
|
||||||
var authUrl = 'https://auth.yakhub.com.tr/api/yaktube/search-history' + (queryParams || '');
|
var authUrl = 'https://developer-console.yakhub.com.tr/api/yaktube/search-history' + (queryParams || '');
|
||||||
var bridgeUrl = '/api-custom/search-history' + (queryParams || '');
|
var bridgeUrl = '/api-custom/search-history' + (queryParams || '');
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"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