Compare commits

..
9 Commits
3 changed files with 1047 additions and 514 deletions
+661 -320
View File
File diff suppressed because it is too large Load Diff
+9 -5
View File
@@ -1,14 +1,17 @@
{
"name": "peertube-plugin-yaktube-ondemand",
"version": "1.2.4",
"version": "1.4.3",
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
"main": "main.js",
"library": "./main.js",
"staticDirs": {},
"translations": {},
"clientScripts": [
{
"script": "client.js",
"scopes": [
"common"
],
"script": "client.js"
]
}
],
"css": [
@@ -36,8 +39,9 @@
"author": "Enes Yakıştır <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/enesyakistir/peertube-plugin-yaktube-ondemand.git"
"url": "https://github.com/yakistir98/peertube-plugin-yaktube-ondemand.git"
},
"homepage": "https://yaktube.yakhub.com.tr",
"bugs": "https://github.com/yakistir98/peertube-plugin-yaktube-ondemand/issues",
"license": "AGPL-3.0-or-later"
}
}
+377 -189
View File
@@ -410,9 +410,13 @@ my-header .action-buttons {
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* YOUTUBE-STYLE SEARCH BAR & VOICE SEARCH (v1.2.3 - Universal & Visible) */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* YOUTUBE FULL SEARCH & VOICE MODAL (v1.3.3 - Display Fix) */
/* -------------------------------------------------------------------------- */
/* Header Search Trigger Container */
my-search-typeahead,
.search-container,
.header-search {
@@ -420,102 +424,66 @@ my-search-typeahead,
align-items: center !important;
position: relative !important;
width: 100% !important;
max-width: 580px !important;
max-width: 540px !important;
margin: 0 auto !important;
visibility: visible !important;
opacity: 1 !important;
}
.yaktube-search-outer-wrap {
display: flex !important;
align-items: center !important;
width: 100% !important;
position: relative !important;
}
.yaktube-search-pill-wrapper {
/* Clickable Pill Button in Header */
.yaktube-search-trigger-pill {
display: flex !important;
align-items: center !important;
background: #121212 !important;
border: 1px solid #303030 !important;
border-radius: 40px !important;
padding: 0 0 0 14px !important;
padding: 8px 18px !important;
transition: all 0.2s ease !important;
width: 100% !important;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
overflow: hidden !important;
}
.yaktube-search-pill-wrapper:focus-within {
border-color: #ff8f37 !important;
box-shadow:
0 0 0 1px #ff8f37,
0 0 12px rgba(255, 143, 55, 0.3) !important;
background: #0f0f0f !important;
}
.yaktube-search-pill-wrapper input {
background: transparent !important;
border: none !important;
color: #f1f1f1 !important;
font-size: 15px !important;
padding: 8px 6px !important;
width: 100% !important;
outline: none !important;
box-shadow: none !important;
}
.yaktube-search-pill-wrapper input::placeholder {
cursor: pointer !important;
color: #888 !important;
font-size: 14px !important;
font-size: 15px !important;
user-select: none !important;
gap: 10px !important;
}
/* Clear Button Inside Pill (✕) */
.yaktube-clear-search-btn {
background: rgba(255, 255, 255, 0.12) !important;
color: #aaa !important;
border: none !important;
border-radius: 50% !important;
width: 22px !important;
height: 22px !important;
display: none;
align-items: center !important;
justify-content: center !important;
font-size: 11px !important;
font-weight: 700 !important;
cursor: pointer !important;
margin: 0 6px !important;
transition: all 0.2s ease !important;
flex-shrink: 0 !important;
}
.yaktube-clear-search-btn:hover {
background: rgba(255, 255, 255, 0.25) !important;
color: #fff !important;
}
/* Search Submit Button on Right of Pill (🔍) */
.yaktube-search-submit-btn {
background: #222222 !important;
.yaktube-search-trigger-pill:hover,
.yaktube-search-trigger-pill:focus {
border-color: #ff8f37 !important;
background: #18181c !important;
color: #f1f1f1 !important;
border: none !important;
border-left: 1px solid #303030 !important;
padding: 8px 18px !important;
cursor: pointer !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 14px !important;
transition: all 0.2s ease !important;
flex-shrink: 0 !important;
box-shadow: 0 0 12px rgba(255, 143, 55, 0.25) !important;
outline: none !important;
}
.yaktube-search-submit-btn:hover {
background: #272727 !important;
.yaktube-search-trigger-icon {
font-size: 15px !important;
color: #ff8f37 !important;
}
/* YouTube Circular Voice Button (🎙️) */
.yaktube-search-trigger-text {
flex: 1 !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
text-align: left !important;
}
.yaktube-search-trigger-shortcut {
font-size: 11px !important;
background: #252530 !important;
color: #aaa !important;
padding: 2px 6px !important;
border-radius: 6px !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
/* Circular Voice Button in Header */
.yaktube-voice-search-btn {
background: #1f1f1f !important;
color: #f1f1f1 !important;
@@ -534,175 +502,395 @@ my-search-typeahead,
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.yaktube-voice-search-btn:hover {
.yaktube-voice-search-btn:hover,
.yaktube-voice-search-btn:focus {
background: #2a2a2a !important;
border-color: #ff8f37 !important;
color: #ff8f37 !important;
transform: scale(1.06) !important;
outline: none !important;
}
/* YouTube-Style Voice Search Modal Overlay */
.yaktube-voice-modal-overlay {
/* -------------------------------------------------------------------------- */
/* FULL YOUTUBE SEARCH & VOICE MODAL OVERLAY */
/* -------------------------------------------------------------------------- */
.yaktube-full-search-modal {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
height: 100vh !important;
background: rgba(0, 0, 0, 0.75) !important;
backdrop-filter: blur(8px) !important;
z-index: 99999 !important;
display: flex !important;
align-items: flex-start !important;
justify-content: center !important;
padding-top: 80px !important;
animation: yaktube-fade-in 0.2s ease !important;
}
.yaktube-voice-modal-card {
background: #212121 !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 16px !important;
width: 90% !important;
max-width: 560px !important;
padding: 24px 28px !important;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
color: #fff !important;
position: relative !important;
}
.yaktube-voice-modal-header {
display: flex !important;
justify-content: space-between !important;
background: rgba(0, 0, 0, 0.82) !important;
backdrop-filter: blur(12px) !important;
z-index: 999999 !important;
display: none;
flex-direction: column !important;
align-items: center !important;
margin-bottom: 24px !important;
justify-content: flex-start !important;
padding-top: 40px !important;
}
.yaktube-voice-modal-title {
font-size: 20px !important;
font-weight: 500 !important;
margin: 0 !important;
color: #f1f1f1 !important;
.yaktube-full-search-modal.yaktube-modal-open {
display: flex !important;
animation: yaktube-fade-in 0.2s ease-out !important;
}
.yaktube-voice-modal-close-btn {
.yaktube-modal-search-card {
background: #1e1e24 !important;
border: 1px solid rgba(255, 143, 55, 0.3) !important;
border-radius: 20px !important;
width: 92% !important;
max-width: 680px !important;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
overflow: hidden !important;
color: #fff !important;
}
/* Modal Search Bar */
.yaktube-modal-search-bar {
display: flex !important;
align-items: center !important;
padding: 10px 14px !important;
background: #141418 !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.yaktube-modal-back-btn {
background: transparent !important;
border: none !important;
color: #aaa !important;
font-size: 20px !important;
cursor: pointer !important;
width: 36px !important;
height: 36px !important;
font-size: 22px !important;
width: 40px !important;
height: 40px !important;
border-radius: 50% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
cursor: pointer !important;
margin-right: 8px !important;
flex-shrink: 0 !important;
transition: all 0.2s ease !important;
}
.yaktube-voice-modal-close-btn:hover {
.yaktube-modal-back-btn:hover {
background: rgba(255, 255, 255, 0.1) !important;
color: #fff !important;
}
.yaktube-voice-modal-body {
text-align: center !important;
padding: 10px 0 20px 0 !important;
.yaktube-modal-input-wrap {
display: flex !important;
align-items: center !important;
flex: 1 !important;
background: #22222a !important;
border: 1px solid #33333f !important;
border-radius: 30px !important;
padding: 2px 8px 2px 14px !important;
margin-right: 10px !important;
}
.yaktube-voice-status-text {
font-size: 22px !important;
font-weight: 600 !important;
color: #f1f1f1 !important;
margin-bottom: 12px !important;
min-height: 30px !important;
.yaktube-modal-input-wrap:focus-within {
border-color: #ff8f37 !important;
box-shadow: 0 0 10px rgba(255, 143, 55, 0.3) !important;
}
.yaktube-voice-transcript-preview {
.yaktube-modal-input-wrap input {
flex: 1 !important;
background: transparent !important;
border: none !important;
color: #fff !important;
font-size: 16px !important;
color: #ff8f37 !important;
font-weight: 500 !important;
margin-bottom: 30px !important;
min-height: 24px !important;
word-break: break-word !important;
padding: 8px 4px !important;
outline: none !important;
}
/* Pulsing Mic Circle Animation */
.yaktube-voice-mic-wrapper {
position: relative !important;
.yaktube-modal-clear-btn {
background: rgba(255, 255, 255, 0.12) !important;
color: #aaa !important;
border: none !important;
border-radius: 50% !important;
width: 24px !important;
height: 24px !important;
display: none;
align-items: center !important;
justify-content: center !important;
font-size: 12px !important;
font-weight: 700 !important;
cursor: pointer !important;
margin-right: 4px !important;
}
.yaktube-modal-clear-btn:hover {
background: rgba(255, 255, 255, 0.25) !important;
color: #fff !important;
}
.yaktube-modal-search-action-btn {
background: linear-gradient(135deg, #ff8f37 0%, #ff5e3a 100%) !important;
color: #fff !important;
border: none !important;
border-radius: 30px !important;
padding: 8px 18px !important;
font-size: 14px !important;
font-weight: 700 !important;
cursor: pointer !important;
display: inline-flex !important;
align-items: center !important;
gap: 6px !important;
transition: all 0.2s ease !important;
flex-shrink: 0 !important;
}
.yaktube-modal-search-action-btn:hover {
transform: scale(1.03) !important;
box-shadow: 0 4px 14px rgba(255, 143, 55, 0.4) !important;
}
.yaktube-modal-voice-btn {
background: #2a2a34 !important;
color: #ff8f37 !important;
border: 1px solid rgba(255, 143, 55, 0.3) !important;
border-radius: 50% !important;
width: 40px !important;
height: 40px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
margin: 10px 0 25px 0 !important;
font-size: 18px !important;
cursor: pointer !important;
margin-left: 8px !important;
transition: all 0.2s ease !important;
flex-shrink: 0 !important;
}
.yaktube-voice-mic-pulse-btn {
.yaktube-modal-voice-btn:hover {
background: #ff8f37 !important;
color: #fff !important;
transform: scale(1.06) !important;
}
/* Modal Body Content */
.yaktube-modal-body {
padding: 20px 24px 28px 24px !important;
}
/* Voice Recognition Banner Inside Modal */
.yaktube-modal-voice-section {
display: none;
background: #141418 !important;
border: 1px solid rgba(255, 143, 55, 0.3) !important;
border-radius: 14px !important;
padding: 20px !important;
text-align: center !important;
margin-bottom: 20px !important;
animation: yaktube-fade-in 0.2s ease !important;
}
.yaktube-modal-voice-status {
font-size: 18px !important;
font-weight: 700 !important;
color: #f1f1f1 !important;
margin-bottom: 12px !important;
}
.yaktube-modal-voice-transcript {
font-size: 16px !important;
color: #ff8f37 !important;
font-weight: 600 !important;
min-height: 24px !important;
margin-bottom: 16px !important;
}
.yaktube-modal-mic-pulse-btn {
background: #cc0000 !important;
color: #fff !important;
border: none !important;
border-radius: 50% !important;
width: 76px !important;
height: 76px !important;
font-size: 34px !important;
width: 64px !important;
height: 64px !important;
font-size: 28px !important;
cursor: pointer !important;
display: flex !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5) !important;
z-index: 2 !important;
animation: yaktube-pulse-recording 1.5s infinite !important;
}
/* Popular Topics & Chips */
.yaktube-modal-section-title {
font-size: 13px !important;
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 0.5px !important;
color: #888 !important;
margin-bottom: 12px !important;
display: flex !important;
align-items: center !important;
gap: 6px !important;
}
.yaktube-modal-chips-grid {
display: flex !important;
flex-wrap: wrap !important;
gap: 8px !important;
margin-bottom: 18px !important;
}
.yaktube-modal-chip {
background: #252530 !important;
color: #e2e8f0 !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 20px !important;
padding: 8px 14px !important;
font-size: 13px !important;
font-weight: 600 !important;
cursor: pointer !important;
transition: all 0.2s ease !important;
display: inline-flex !important;
align-items: center !important;
gap: 6px !important;
}
.yaktube-modal-chip:hover {
background: rgba(255, 143, 55, 0.2) !important;
border-color: #ff8f37 !important;
color: #fff !important;
transform: translateY(-1px) !important;
}
.yaktube-modal-hint-footer {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
font-size: 12px !important;
color: #777 !important;
border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
padding-top: 12px !important;
margin-top: 8px !important;
}
/* -------------------------------------------------------------------------- */
/* YOUTUBE THEATER MODE & QUICK VIDEO INFO TOAST (v1.4.0) */
/* -------------------------------------------------------------------------- */
/* Theater / Cinema Mode (T) */
body.yaktube-theater-mode my-video-watch,
body.yaktube-theater-mode .video-watch,
body.yaktube-theater-mode .watch-container {
max-width: 100% !important;
width: 100% !important;
padding: 0 !important;
}
body.yaktube-theater-mode .player-container,
body.yaktube-theater-mode .video-player-container,
body.yaktube-theater-mode .player-wrapper {
max-height: 82vh !important;
height: 82vh !important;
width: 100% !important;
max-width: 100% !important;
background: #000 !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
margin-bottom: 20px !important;
}
body.yaktube-theater-mode video,
body.yaktube-theater-mode .video-js {
width: 100% !important;
height: 100% !important;
max-height: 82vh !important;
}
/* Quick Video Info Toast (I) */
.yaktube-video-info-toast {
position: fixed !important;
top: 70px !important;
right: 20px !important;
background: rgba(20, 20, 26, 0.95) !important;
backdrop-filter: blur(12px) !important;
border: 1px solid rgba(255, 143, 55, 0.4) !important;
border-radius: 14px !important;
padding: 16px 20px !important;
color: #fff !important;
font-size: 14px !important;
z-index: 99999 !important;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
max-width: 380px !important;
animation: yaktube-fade-in 0.25s ease-out !important;
pointer-events: none !important;
}
.yaktube-info-toast-title {
font-size: 15px !important;
font-weight: 700 !important;
color: #ff8f37 !important;
margin-bottom: 8px !important;
display: flex !important;
align-items: center !important;
gap: 6px !important;
}
.yaktube-info-toast-row {
display: flex !important;
justify-content: space-between !important;
margin: 4px 0 !important;
font-size: 13px !important;
color: #ccc !important;
}
.yaktube-info-toast-row b {
color: #fff !important;
}
/* -------------------------------------------------------------------------- */
/* ACCESSIBLE PLAYER ACTION BAR & SHORTCUTS (v1.4.1) */
/* -------------------------------------------------------------------------- */
.yaktube-player-action-bar {
display: flex !important;
flex-wrap: wrap !important;
gap: 8px !important;
align-items: center !important;
background: #181820 !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 12px !important;
padding: 10px 14px !important;
margin: 12px 0 16px 0 !important;
width: 100% !important;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}
.yaktube-player-bar-label {
font-size: 13px !important;
font-weight: 700 !important;
color: #ff8f37 !important;
margin-right: 6px !important;
display: flex !important;
align-items: center !important;
gap: 4px !important;
}
.yaktube-player-action-btn {
background: #252530 !important;
color: #f1f1f1 !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 8px !important;
padding: 6px 12px !important;
font-size: 13px !important;
font-weight: 600 !important;
cursor: pointer !important;
display: inline-flex !important;
align-items: center !important;
gap: 6px !important;
transition: all 0.2s ease !important;
}
.yaktube-voice-mic-pulse-btn:hover {
transform: scale(1.05) !important;
}
.yaktube-voice-mic-pulse-btn.yaktube-idle-mic {
background: #333 !important;
box-shadow: none !important;
}
.yaktube-voice-ripple {
position: absolute !important;
width: 76px !important;
height: 76px !important;
border-radius: 50% !important;
background: rgba(204, 0, 0, 0.4) !important;
animation: yaktube-ripple-wave 1.6s infinite ease-out !important;
z-index: 1 !important;
}
@keyframes yaktube-ripple-wave {
0% {
transform: scale(1);
opacity: 0.8;
}
100% {
transform: scale(2.2);
opacity: 0;
}
}
.yaktube-voice-hint-text {
font-size: 13px !important;
color: #888 !important;
margin-top: 10px !important;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
my-search-typeahead,
.search-container,
.header-search {
max-width: 100% !important;
padding: 0 4px !important;
}
.yaktube-search-submit-btn {
padding: 8px 12px !important;
}
.yaktube-voice-search-btn {
width: 36px !important;
height: 36px !important;
font-size: 16px !important;
margin-left: 4px !important;
}
.yaktube-player-action-btn:hover,
.yaktube-player-action-btn:focus {
background: rgba(255, 143, 55, 0.2) !important;
border-color: #ff8f37 !important;
color: #fff !important;
outline: none !important;
}