@banou/ftube 0.0.0-stage → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +44 -2
- package/__yt_engine__/engine.html +9 -0
- package/app.webmanifest +31 -0
- package/assets/account-BL8Hv7lS.js +157 -0
- package/assets/account-By94iboj.js +1 -0
- package/assets/account-DfiXzypA-YE6OyKjK.js +1 -0
- package/assets/account-generation-BP_-Qyck-BOth6YQ_.js +1 -0
- package/assets/agent-source-E4g0cDzU.js +1 -0
- package/assets/api-1NDCtwel-CAaxX8P1.js +3 -0
- package/assets/binary-encoding-By5K7InN.js +1 -0
- package/assets/build-CNn3bm6X.js +1 -0
- package/assets/busy-C1JPjoZ_-CJ0641jK.js +1 -0
- package/assets/cards-Csel8naI.js +2334 -0
- package/assets/channel-B5f9YTIf.js +1160 -0
- package/assets/client-version-D9kIz6Gz.js +1 -0
- package/assets/comments-CJp9O808.js +612 -0
- package/assets/dislikes-DH5jCVEY.js +1 -0
- package/assets/dist-7VpLCl1k.js +1 -0
- package/assets/dist-BOrL1gYg.js +2 -0
- package/assets/downloads-CMXDjA_E.js +191 -0
- package/assets/egress.worker-DopXr5uP.js +104 -0
- package/assets/engine-B_kFyW7L.js +2 -0
- package/assets/feed-channels-Dg2mvF5x.js +251 -0
- package/assets/feed-groups-CnyR4sOO.js +160 -0
- package/assets/feed-history-BDAGG9N5.js +368 -0
- package/assets/feed-playlists-DcGR2AL6.js +167 -0
- package/assets/feed-subscriptions-Sm3tKz4P.js +165 -0
- package/assets/feed-you-lxbqknXX.js +110 -0
- package/assets/formats-CDwXfKnr.js +1 -0
- package/assets/frame-BrGNSf3s.js +2 -0
- package/assets/fs-CjRTQ7Nu.js +1 -0
- package/assets/fs-CwRtKje1-CBsYhX2-.js +1 -0
- package/assets/fullscreen-view-BLgosU84.js +269 -0
- package/assets/group-C00s0aT7.js +183 -0
- package/assets/groups-button-CvVnqwlu.js +25 -0
- package/assets/hashtag-CCIhITaL.js +115 -0
- package/assets/icons-DKsqNLSs.js +1 -0
- package/assets/index-A5dHbptn.css +1 -0
- package/assets/index-DwsYJ-bu.js +1328 -0
- package/assets/lib-h0P14ZFl.js +70 -0
- package/assets/linkify-B6hdFhsL.js +1 -0
- package/assets/packages-C3w3tSjj-BCtDk0vj.js +1 -0
- package/assets/party-CUcxsJDF.js +180 -0
- package/assets/playlist-DF7wsidw.js +521 -0
- package/assets/playlist-card-Btoc7D8f.js +91 -0
- package/assets/playlist-panel-D97BwT1f.js +199 -0
- package/assets/post-CQ9mfVos.js +39 -0
- package/assets/post-card-ZUQixO1G.js +76 -0
- package/assets/privacy-hkbqXFeB.js +46 -0
- package/assets/protobuf-BXZ2dCCc.js +1 -0
- package/assets/read-more-BhddUSlS.js +20 -0
- package/assets/rich-text-07paR5O3.js +25 -0
- package/assets/roboto-cyrillic-ext-BCp_3N7R.woff2 +0 -0
- package/assets/roboto-cyrillic-fOt7epNf.woff2 +0 -0
- package/assets/roboto-greek-DlT9XTxE.woff2 +0 -0
- package/assets/roboto-greek-ext-Bgw4czJT.woff2 +0 -0
- package/assets/roboto-latin-ccAYIvAh.woff2 +0 -0
- package/assets/roboto-latin-ext-DYIxWhlt.woff2 +0 -0
- package/assets/roboto-math-4a3xuzGk.woff2 +0 -0
- package/assets/roboto-symbols-B7iHSfaG.woff2 +0 -0
- package/assets/roboto-vietnamese-_f1XEJpo.woff2 +0 -0
- package/assets/rooms-B-AvBY-c-FNDqRDHE.js +1 -0
- package/assets/rooms-B91zuirR.js +1 -0
- package/assets/save-menu-DF1WKqSE.js +462 -0
- package/assets/search-Cx5IpDtZ.js +1026 -0
- package/assets/settings-kESE_uBm.js +99 -0
- package/assets/shaka-BwT9pJcV.js +36 -0
- package/assets/share-dialog-Cp0BJ6bg.js +156 -0
- package/assets/shorts-BxDB7m0c.js +686 -0
- package/assets/shorts-grid-Bgbkl5dP.js +11 -0
- package/assets/sign-in-Bx3zmj-m.js +97 -0
- package/assets/signed-out-prompt-CEAx65kq.js +79 -0
- package/assets/signin-DkI8Ogzz.js +18 -0
- package/assets/social-bXt3vmd4.js +1 -0
- package/assets/video-card-compact-r-K4XyDb.js +190 -0
- package/assets/watch-CkxSP1IA.js +1802 -0
- package/assets/web-BNanCsH5.js +43 -0
- package/favicon.ico +0 -0
- package/favicon.svg +5 -0
- package/icons/icon-192.png +0 -0
- package/icons/icon-512.png +0 -0
- package/index-Bj-Q3X8Q.js +4120 -0
- package/index.html +32 -0
- package/package.json +45 -4
- package/store/background.webp +0 -0
- package/store/channel.webp +0 -0
- package/store/cover.webp +0 -0
- package/store/phone.webp +0 -0
- package/store/search.webp +0 -0
- package/store/watch.webp +0 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import{D as e,bt as t,d as n,n as r}from"./icons-DKsqNLSs.js";import{c as i,ot as a,s as o,y as s}from"./sign-in-Bx3zmj-m.js";import{$t as c,Jt as l,Qt as u,Xt as d,Zt as f,k as p,nn as m,qt as h}from"./cards-Csel8naI.js";import{n as g}from"../index-Bj-Q3X8Q.js";var _=a`
|
|
2
|
+
max-width: 88rem;
|
|
3
|
+
padding: 2.4rem 1.6rem;
|
|
4
|
+
|
|
5
|
+
.head {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
gap: 1.2rem;
|
|
10
|
+
margin-bottom: 2.4rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.heading {
|
|
14
|
+
margin: 0;
|
|
15
|
+
font-size: 2rem;
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
line-height: 2.8rem;
|
|
18
|
+
color: var(--text-primary);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.clear-btn {
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 0.6rem;
|
|
25
|
+
height: 3.6rem;
|
|
26
|
+
padding: 0 1.4rem;
|
|
27
|
+
border: none;
|
|
28
|
+
border-radius: 1.8rem;
|
|
29
|
+
background: var(--bg-chip);
|
|
30
|
+
color: var(--text-primary);
|
|
31
|
+
font: inherit;
|
|
32
|
+
font-size: 1.4rem;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
transition: background 0.15s ease;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.clear-btn:hover {
|
|
39
|
+
background: var(--bg-chip-hover);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.section + .section {
|
|
43
|
+
margin-top: 2.8rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.section-title {
|
|
47
|
+
margin: 0 0 1.2rem;
|
|
48
|
+
font-size: 1.6rem;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
color: var(--text-primary);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.list {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
gap: 1.2rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.row {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 1.2rem;
|
|
63
|
+
padding: 1.2rem;
|
|
64
|
+
border: 1px solid var(--border);
|
|
65
|
+
border-radius: 1.2rem;
|
|
66
|
+
background: var(--bg-subtle);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.thumb {
|
|
70
|
+
flex: none;
|
|
71
|
+
width: 12.8rem;
|
|
72
|
+
aspect-ratio: 16 / 9;
|
|
73
|
+
border-radius: 0.8rem;
|
|
74
|
+
object-fit: cover;
|
|
75
|
+
background: var(--bg-elevated);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.info {
|
|
79
|
+
flex: 1;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.title {
|
|
84
|
+
display: block;
|
|
85
|
+
font-size: 1.5rem;
|
|
86
|
+
font-weight: 500;
|
|
87
|
+
line-height: 2.1rem;
|
|
88
|
+
color: var(--text-primary);
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
text-overflow: ellipsis;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.title:hover {
|
|
95
|
+
text-decoration: underline;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.details {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 0.6rem 1.2rem;
|
|
103
|
+
margin-top: 0.4rem;
|
|
104
|
+
font-size: 1.3rem;
|
|
105
|
+
color: var(--text-secondary);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.error-text {
|
|
109
|
+
margin-top: 0.4rem;
|
|
110
|
+
font-size: 1.3rem;
|
|
111
|
+
color: var(--danger);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.progress-track {
|
|
115
|
+
margin-top: 0.8rem;
|
|
116
|
+
height: 0.5rem;
|
|
117
|
+
border-radius: 0.3rem;
|
|
118
|
+
background: var(--bg-chip);
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.progress-fill {
|
|
123
|
+
height: 100%;
|
|
124
|
+
background: var(--accent);
|
|
125
|
+
transition: width 0.2s ease;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.row-actions {
|
|
129
|
+
flex: none;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: 0.8rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.action-btn {
|
|
136
|
+
display: inline-flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: 0.6rem;
|
|
139
|
+
height: 3.4rem;
|
|
140
|
+
padding: 0 1.2rem;
|
|
141
|
+
border: none;
|
|
142
|
+
border-radius: 1.7rem;
|
|
143
|
+
background: var(--bg-chip);
|
|
144
|
+
color: var(--text-primary);
|
|
145
|
+
font: inherit;
|
|
146
|
+
font-size: 1.3rem;
|
|
147
|
+
font-weight: 500;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
transition: background 0.15s ease;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.action-btn:hover {
|
|
153
|
+
background: var(--bg-chip-hover);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.icon-btn {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
width: 3.4rem;
|
|
161
|
+
height: 3.4rem;
|
|
162
|
+
border: none;
|
|
163
|
+
border-radius: 50%;
|
|
164
|
+
background: transparent;
|
|
165
|
+
color: var(--text-secondary);
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
transition: background 0.15s ease, color 0.15s ease;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.icon-btn:hover {
|
|
171
|
+
background: var(--bg-hover);
|
|
172
|
+
color: var(--text-primary);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.empty {
|
|
176
|
+
padding: 4.8rem 1.6rem;
|
|
177
|
+
border-top: 1px solid var(--border-subtle);
|
|
178
|
+
color: var(--text-secondary);
|
|
179
|
+
font-size: 1.4rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@media (max-width: 640px) {
|
|
183
|
+
.row {
|
|
184
|
+
flex-wrap: wrap;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.thumb {
|
|
188
|
+
width: 100%;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,v=e=>e===`starting`?`Preparing…`:e===`downloading`?`Downloading…`:e===`muxing`?`Muxing MP4…`:e===`cancelled`?`Cancelled`:e===`failed`?`Failed`:`Completed`,y=()=>{g(`Downloads`);let a=m(),y=a.filter(e=>e.status===`starting`||e.status===`downloading`||e.status===`muxing`),b=a.filter(e=>!y.includes(e));return i(`main`,{css:_,children:[i(`div`,{className:`head`,children:[o(`h1`,{className:`heading`,children:`Downloads`}),b.length>0?i(`button`,{type:`button`,className:`clear-btn`,onClick:l,children:[o(n,{size:16,strokeWidth:1.75}),`Clear history`]}):void 0]}),a.length===0?o(`div`,{className:`empty`,children:`No downloads yet. Choose Download on a video page or card menu to save MP4 video or audio.`}):void 0,y.length>0?i(`section`,{className:`section`,"aria-label":`Active downloads`,children:[i(`h2`,{className:`section-title`,children:[`Active (`,y.length,`)`]}),o(`div`,{className:`list`,children:y.map(e=>{let t=e.totalBytes&&e.totalBytes>0?Math.min(100,Math.round(e.loadedBytes/e.totalBytes*100)):void 0;return i(`article`,{className:`row`,children:[e.thumbnail?o(`img`,{className:`thumb`,src:e.thumbnail,alt:``}):void 0,i(`div`,{className:`info`,children:[o(s,{href:p(e.videoId),className:`title`,children:e.title}),i(`div`,{className:`details`,children:[o(`span`,{children:e.qualityLabel}),o(`span`,{children:v(e.status)}),i(`span`,{children:[d(e.loadedBytes),e.totalBytes?` / ~${d(e.totalBytes)}`:``,t===void 0?``:` (${t}%)`]})]}),o(`div`,{className:`progress-track`,role:`progressbar`,"aria-label":`${e.title} download progress`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:o(`div`,{className:`progress-fill`,style:{width:`${t??15}%`}})})]}),o(`div`,{className:`row-actions`,children:o(`button`,{type:`button`,className:`icon-btn`,"aria-label":`Cancel ${e.title}`,onClick:()=>{h(e.id)},children:o(r,{size:18,strokeWidth:1.75})})})]},e.id)})})]}):void 0,b.length>0?i(`section`,{className:`section`,"aria-label":`Completed and past downloads`,children:[o(`h2`,{className:`section-title`,children:`History`}),o(`div`,{className:`list`,children:b.map(r=>i(`article`,{className:`row`,children:[r.thumbnail?o(`img`,{className:`thumb`,src:r.thumbnail,alt:``}):void 0,i(`div`,{className:`info`,children:[o(s,{href:p(r.videoId),className:`title`,children:r.title}),i(`div`,{className:`details`,children:[o(`span`,{children:r.qualityLabel}),o(`span`,{children:r.status===`completed`&&r.sizeBytes?d(r.sizeBytes):v(r.status)}),r.channelName?o(`span`,{children:r.channelName}):void 0]}),r.error?o(`div`,{className:`error-text`,children:r.error}):void 0]}),i(`div`,{className:`row-actions`,children:[r.status===`completed`&&r.blobUrl?i(`button`,{type:`button`,className:`action-btn`,onClick:()=>c(r.id),children:[o(t,{size:16,strokeWidth:1.75}),`Save file`]}):i(`button`,{type:`button`,className:`action-btn`,onClick:()=>f({videoId:r.videoId,title:r.title,thumbnail:r.thumbnail,channelName:r.channelName}),children:[o(e,{size:16,strokeWidth:1.75}),`Download again`]}),o(`button`,{type:`button`,className:`icon-btn`,"aria-label":`Remove ${r.title}`,onClick:()=>u(r.id),children:o(n,{size:16,strokeWidth:1.75})})]})]},r.id))})]}):void 0]})};export{y as DownloadsPage,y as default};
|