Spaces:
Running
Running
Update
Browse files- index.html +18 -82
- style.css +18 -11
index.html
CHANGED
@@ -108,20 +108,20 @@
|
|
108 |
}
|
109 |
|
110 |
const pypi_svg = `<svg clip-rule="evenodd" fill-rule="evenodd" height="20" stroke-linecap="square" stroke-linejoin="round" stroke-miterlimit="1.5" viewBox=".006 0 673.409 600" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m.006 0h600v600h-600z" fill="#111827"/><g transform="translate(72.59 -63.209)"><path d="m673.41 236.016-64.271 8.252v281.357h64.276z" fill="#ffca1e" stroke="#d7c5b2" stroke-width="1.11" transform="matrix(1.02365 -.37275 .22115 .08093 -423.086 457.448)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#ffd241" stroke="#d7c5b2" stroke-width=".35" transform="matrix(3.93359 -1.43837 0 .53084 -2266.43 1087.94)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke="#d1e3f2" stroke-width=".62" transform="matrix(1.9604 -.71685 .2216 .07927 -1118.55 639.339)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#3775a8" stroke="#d1e3f2" stroke-width="1.15" transform="matrix(1.02281 -.374 0 1.05695 -430.773 214.178)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke="#fff" stroke-width="1.17" transform="matrix(-.97499 -.34924 0 1.05695 786.194 199.208)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#efeeea" stroke="#d8d8d8" stroke-width="1.44" transform="matrix(-.97499 -.35652 0 .26885 786.194 618.355)"/><g stroke="#d1e3f2"><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke-width="1.44" transform="matrix(-.96834 -.35409 0 .53077 719.483 427.5)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#3775a8" stroke-width="1.2" transform="matrix(.93554 -.3421 0 1.05695 -311.892 170.492)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#3775a8" stroke-width="1.43" transform="matrix(.9742 -.35623 0 .53084 -463.744 428.761)"/><path d="m67.575 393.161 62.121 22.465 188.708-68.299m-125.165-29.141 124.732-45.602" fill="none"/></g><path d="m318.404 347.327 63.939-23.209" fill="none" stroke="#d7c5b2"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke="#d1e3f2" stroke-width="1.16" transform="matrix(.96788 -.35244 .22115 .08093 -576.168 513.583)"/><circle cx="637.517" cy="260.001" fill="#fff" r="15.71" transform="matrix(.7826 -.4024 .05494 .8614 -295.363 304.934)"/><path d="m195.786 198.125 61.696 22.126" fill="none" stroke="#d1e3f2"/><path d="m673.415 244.268h-64.276l.018 282.405 64.258-1.048z" fill="#ffd241" stroke="#d7c5b2" stroke-width="1.37" transform="matrix(1.02281 -.374 0 .52843 -430.773 491.983)"/><path d="m673.415 244.268h-64.276l.001 281.758 64.275-.401z" fill="#ffd241" stroke="#d7c5b2" stroke-width="1.48" transform="matrix(.93554 -.3421 0 .52743 -311.892 448.822)"/><circle cx="637.517" cy="260.001" fill="#fefdfd" r="15.71" transform="matrix(.77074 -.3963 .05156 .80832 -205.916 509.411)"/><path d="m192.412 468.059 126.028-45.977" fill="none" stroke="#d7c5b2"/></g></svg>`
|
111 |
-
const github_svg = `<svg width="20" height="20" viewBox="0 0 20 20" fill="#fff" xmlns="http://www.w3.org/2000/svg"><script xmlns=""/><path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#1B1F23"/></svg>`
|
112 |
|
113 |
-
const
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
|
|
125 |
|
126 |
for (let i = 1; i < releases.length + 1; i++) {
|
127 |
const release = releases[i - 1];
|
@@ -134,16 +134,17 @@
|
|
134 |
commitNode.classList.add('commit-node');
|
135 |
commitNode.style.top = styleTop;
|
136 |
|
|
|
|
|
137 |
tooltip.innerHTML = `<div class="tooltip">
|
138 |
<div class="title relative h-[4.25rem] w-full overflow-hidden">
|
139 |
<a class="group flex h-full items-stretch overflow-hidden rounded-lg border border-gray-100 dark:border-gray-800"
|
140 |
-
href="https://
|
141 |
<div class="flex-1 overflow-hidden whitespace-nowrap px-4 bg-white dark:bg-gray-800 dark:bg-gradient-to-r dark:from-gray-900 dark:to-gray-950">
|
142 |
<div class="mt-2.5 flex items-center justify-between overflow-hidden leading-snug">
|
143 |
<div class="flex items-center overflow-hidden">
|
144 |
<h4 class="truncate font-semibold group-hover:underline dark:text-white">${release.title}</h4>
|
145 |
-
|
146 |
-
<div class="outer_svg">${github_svg}</div>
|
147 |
</div>
|
148 |
<div class="flex h-full items-start pt-2.5"></div>
|
149 |
</div>
|
@@ -348,71 +349,6 @@
|
|
348 |
</div>
|
349 |
</div>
|
350 |
</div>
|
351 |
-
<div class="commit-tree" id="commit-tree">
|
352 |
-
<!-- <div class="commit-node" style="top: 10%;">-->
|
353 |
-
<!-- <div class="tooltip">-->
|
354 |
-
<!-- <div class="title relative h-[4.25rem] w-full overflow-hidden">-->
|
355 |
-
<!-- <a class="group flex h-full items-stretch overflow-hidden rounded-lg border border-gray-100 dark:border-gray-800" href="https://huggingface.co/spaces/transformers-discussion-board/Support/discussions/5">-->
|
356 |
-
<!-- <div class="flex-1 overflow-hidden whitespace-nowrap px-4 bg-white dark:bg-gray-800 dark:bg-gradient-to-r dark:from-gray-900 dark:to-gray-950">-->
|
357 |
-
<!-- <div class="mt-2.5 flex items-center justify-between overflow-hidden leading-snug">-->
|
358 |
-
<!-- <div class="flex items-center overflow-hidden">-->
|
359 |
-
<!-- <h4 class="truncate font-semibold group-hover:underline dark:text-white">MLCD (based on 4.51.3)</h4>-->
|
360 |
-
<!-- </div>-->
|
361 |
-
<!-- <div class="flex h-full items-start pt-2.5"></div>-->
|
362 |
-
<!-- </div>-->
|
363 |
-
<!-- </div>-->
|
364 |
-
<!-- </a>-->
|
365 |
-
<!-- <div class="desc absolute bottom-2.5 max-w-full truncate pl-4 pr-4 text-sm text-gray-500 dark:text-gray-400">-->
|
366 |
-
<!-- <span class="discussion-num">v4.51.3-MLCD-preview,</span>-->
|
367 |
-
<!-- <span class="timeago">22nd April, 2025</span>-->
|
368 |
-
<!-- </div>-->
|
369 |
-
<!-- </div>-->
|
370 |
-
<!-- </div>-->
|
371 |
-
<!-- </div>-->
|
372 |
-
<!-- <div class="commit-node" style="top: 20%;">-->
|
373 |
-
<!-- <div class="tooltip">-->
|
374 |
-
<!-- <div class="relative h-[4.25rem] w-full overflow-hidden">-->
|
375 |
-
<!-- <a class="group flex h-full items-stretch overflow-hidden rounded-lg border border-gray-100 dark:border-gray-800" href="https://huggingface.co/spaces/transformers-discussion-board/Support/discussions/5">-->
|
376 |
-
<!-- <div class="flex-1 overflow-hidden whitespace-nowrap px-4 bg-white dark:bg-gray-800 dark:bg-gradient-to-r dark:from-gray-900 dark:to-gray-950">-->
|
377 |
-
<!-- <div class="mt-2.5 flex items-center justify-between overflow-hidden leading-snug">-->
|
378 |
-
<!-- <div class="flex items-center overflow-hidden">-->
|
379 |
-
<!-- <h4 class="truncate font-semibold group-hover:underline dark:text-white">Janus (based on v4.51.3)</h4>-->
|
380 |
-
<!-- </div>-->
|
381 |
-
<!-- <div class="flex h-full items-start pt-2.5"></div>-->
|
382 |
-
<!-- </div>-->
|
383 |
-
<!-- </div>-->
|
384 |
-
<!-- </a>-->
|
385 |
-
<!-- <div class="absolute bottom-2.5 max-w-full truncate pl-4 pr-4 text-sm text-gray-500 dark:text-gray-400">-->
|
386 |
-
<!-- <span class="discussion-num">v4.51.3-Janus-preview,</span>-->
|
387 |
-
<!-- <span class="timeago">8th of May, 2025</span>-->
|
388 |
-
<!-- </div>-->
|
389 |
-
<!-- </div>-->
|
390 |
-
<!-- </div>-->
|
391 |
-
<!-- </div>-->
|
392 |
-
<!-- <div class="commit-node" style="top: 30%;">-->
|
393 |
-
<!-- <div class="tooltip">Update Dependencies<br>def456</div>-->
|
394 |
-
<!-- </div>-->
|
395 |
-
<!-- <div class="commit-node" style="top: 40%;">-->
|
396 |
-
<!-- <div class="tooltip">Update Dependencies<br>def456</div>-->
|
397 |
-
<!-- </div>-->
|
398 |
-
<!-- <div class="commit-node" style="top: 50%;">-->
|
399 |
-
<!-- <div class="tooltip">Update Dependencies<br>def456</div>-->
|
400 |
-
<!-- </div>-->
|
401 |
-
<!-- <div class="commit-node" style="top: 60%;">-->
|
402 |
-
<!-- <div class="tooltip">Fix Bug<br>ghi789</div>-->
|
403 |
-
<!-- </div>-->
|
404 |
-
<!-- <div class="commit-node" style="top: 70%;">-->
|
405 |
-
<!-- <div class="tooltip">Fix Bug<br>ghi789</div>-->
|
406 |
-
<!-- </div>-->
|
407 |
-
<!-- <div class="commit-node" style="top: 80%;">-->
|
408 |
-
<!-- <div class="tooltip">Fix Bug<br>ghi789</div>-->
|
409 |
-
<!-- </div>-->
|
410 |
-
<!-- <div class="commit-node" style="top: 90%;">-->
|
411 |
-
<!-- <div class="tooltip">Fix Bug<br>ghi789</div>-->
|
412 |
-
<!-- </div>-->
|
413 |
-
<!-- <div class="commit-node" style="top: 100%;">-->
|
414 |
-
<!-- <div class="tooltip">Fix Bug<br>ghi789</div>-->
|
415 |
-
<!-- </div>-->
|
416 |
-
</div>
|
417 |
</body>
|
418 |
</html>
|
|
|
108 |
}
|
109 |
|
110 |
const pypi_svg = `<svg clip-rule="evenodd" fill-rule="evenodd" height="20" stroke-linecap="square" stroke-linejoin="round" stroke-miterlimit="1.5" viewBox=".006 0 673.409 600" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m.006 0h600v600h-600z" fill="#111827"/><g transform="translate(72.59 -63.209)"><path d="m673.41 236.016-64.271 8.252v281.357h64.276z" fill="#ffca1e" stroke="#d7c5b2" stroke-width="1.11" transform="matrix(1.02365 -.37275 .22115 .08093 -423.086 457.448)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#ffd241" stroke="#d7c5b2" stroke-width=".35" transform="matrix(3.93359 -1.43837 0 .53084 -2266.43 1087.94)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke="#d1e3f2" stroke-width=".62" transform="matrix(1.9604 -.71685 .2216 .07927 -1118.55 639.339)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#3775a8" stroke="#d1e3f2" stroke-width="1.15" transform="matrix(1.02281 -.374 0 1.05695 -430.773 214.178)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke="#fff" stroke-width="1.17" transform="matrix(-.97499 -.34924 0 1.05695 786.194 199.208)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#efeeea" stroke="#d8d8d8" stroke-width="1.44" transform="matrix(-.97499 -.35652 0 .26885 786.194 618.355)"/><g stroke="#d1e3f2"><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke-width="1.44" transform="matrix(-.96834 -.35409 0 .53077 719.483 427.5)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#3775a8" stroke-width="1.2" transform="matrix(.93554 -.3421 0 1.05695 -311.892 170.492)"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#3775a8" stroke-width="1.43" transform="matrix(.9742 -.35623 0 .53084 -463.744 428.761)"/><path d="m67.575 393.161 62.121 22.465 188.708-68.299m-125.165-29.141 124.732-45.602" fill="none"/></g><path d="m318.404 347.327 63.939-23.209" fill="none" stroke="#d7c5b2"/><path d="m609.139 244.268h64.276v281.357h-64.276z" fill="#2f6490" stroke="#d1e3f2" stroke-width="1.16" transform="matrix(.96788 -.35244 .22115 .08093 -576.168 513.583)"/><circle cx="637.517" cy="260.001" fill="#fff" r="15.71" transform="matrix(.7826 -.4024 .05494 .8614 -295.363 304.934)"/><path d="m195.786 198.125 61.696 22.126" fill="none" stroke="#d1e3f2"/><path d="m673.415 244.268h-64.276l.018 282.405 64.258-1.048z" fill="#ffd241" stroke="#d7c5b2" stroke-width="1.37" transform="matrix(1.02281 -.374 0 .52843 -430.773 491.983)"/><path d="m673.415 244.268h-64.276l.001 281.758 64.275-.401z" fill="#ffd241" stroke="#d7c5b2" stroke-width="1.48" transform="matrix(.93554 -.3421 0 .52743 -311.892 448.822)"/><circle cx="637.517" cy="260.001" fill="#fefdfd" r="15.71" transform="matrix(.77074 -.3963 .05156 .80832 -205.916 509.411)"/><path d="m192.412 468.059 126.028-45.977" fill="none" stroke="#d7c5b2"/></g></svg>`
|
|
|
111 |
|
112 |
+
const dataURL = 'https://datasets-server.huggingface.co/rows?dataset=reach-vb%2Ftransformers-releases&config=default&split=train&offset=0&length=100'
|
113 |
+
const dateOptions = { year: 'numeric', month: 'long', day: 'numeric' };
|
114 |
+
const releases = await fetch(dataURL)
|
115 |
+
.then(e => e.json())
|
116 |
+
.then(e => e.rows.map(a => {
|
117 |
+
return {
|
118 |
+
title: a['row']['name'],
|
119 |
+
publishedAt: a['row']['published_at'],
|
120 |
+
desc: `${a['row']['tag_name']}, released on ${new Date(a['row']['published_at']).toLocaleString("en-US", dateOptions)}`,
|
121 |
+
pypi: !a['row']['name'].includes('based'),
|
122 |
+
tag: a['row']['tag_name'],
|
123 |
+
}
|
124 |
+
}).sort((a, b) => new Date(a.publishedAt) - new Date(b.publishedAt)))
|
125 |
|
126 |
for (let i = 1; i < releases.length + 1; i++) {
|
127 |
const release = releases[i - 1];
|
|
|
134 |
commitNode.classList.add('commit-node');
|
135 |
commitNode.style.top = styleTop;
|
136 |
|
137 |
+
tooltip.style.animation = "fade-in ease 1s";
|
138 |
+
|
139 |
tooltip.innerHTML = `<div class="tooltip">
|
140 |
<div class="title relative h-[4.25rem] w-full overflow-hidden">
|
141 |
<a class="group flex h-full items-stretch overflow-hidden rounded-lg border border-gray-100 dark:border-gray-800"
|
142 |
+
href="https://github.com/huggingface/transformers/releases/tag/${release.tag}">
|
143 |
<div class="flex-1 overflow-hidden whitespace-nowrap px-4 bg-white dark:bg-gray-800 dark:bg-gradient-to-r dark:from-gray-900 dark:to-gray-950">
|
144 |
<div class="mt-2.5 flex items-center justify-between overflow-hidden leading-snug">
|
145 |
<div class="flex items-center overflow-hidden">
|
146 |
<h4 class="truncate font-semibold group-hover:underline dark:text-white">${release.title}</h4>
|
147 |
+
${release.pypi ? `<div class="outer_svg">${pypi_svg}</div>` : ""}
|
|
|
148 |
</div>
|
149 |
<div class="flex h-full items-start pt-2.5"></div>
|
150 |
</div>
|
|
|
349 |
</div>
|
350 |
</div>
|
351 |
</div>
|
352 |
+
<div class="commit-tree" id="commit-tree"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
</body>
|
354 |
</html>
|
style.css
CHANGED
@@ -34,16 +34,25 @@ p {
|
|
34 |
|
35 |
/* Container for the vertical line and nodes */
|
36 |
.commit-tree {
|
37 |
-
position:
|
38 |
height: 42.5rem; /* Full viewport height */
|
39 |
-
width: 100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
/* Vertical line using pseudo-element */
|
43 |
.commit-tree::before {
|
44 |
content: '';
|
45 |
position: absolute;
|
46 |
-
|
47 |
top: 0;
|
48 |
bottom: 0;
|
49 |
width: 4px;
|
@@ -53,8 +62,8 @@ p {
|
|
53 |
/* Commit node styling */
|
54 |
.commit-node {
|
55 |
position: absolute;
|
56 |
-
|
57 |
-
transform: translateX(
|
58 |
width: 12px;
|
59 |
height: 12px;
|
60 |
background-color: #e5e7eb; /* Blue circle */
|
@@ -110,10 +119,8 @@ p {
|
|
110 |
opacity: 1;
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
113 |
|
114 |
-
/*!* Show tooltip on hover *!*/
|
115 |
-
/*.commit-node:hover .tooltip {*/
|
116 |
-
/* visibility: visible;*/
|
117 |
-
/* opacity: 1;*/
|
118 |
-
/* top: 50%;*/
|
119 |
-
/*}*/
|
|
|
34 |
|
35 |
/* Container for the vertical line and nodes */
|
36 |
.commit-tree {
|
37 |
+
position: absolute;
|
38 |
height: 42.5rem; /* Full viewport height */
|
39 |
+
width: calc(100% - 600px);
|
40 |
+
bottom: 80px;
|
41 |
+
animation: fade-in ease 1s;
|
42 |
+
}
|
43 |
+
|
44 |
+
@media (width <= 1300px) {
|
45 |
+
.commit-tree {
|
46 |
+
visibility: hidden;
|
47 |
+
opacity: 0;
|
48 |
+
}
|
49 |
}
|
50 |
|
51 |
/* Vertical line using pseudo-element */
|
52 |
.commit-tree::before {
|
53 |
content: '';
|
54 |
position: absolute;
|
55 |
+
right: 0;
|
56 |
top: 0;
|
57 |
bottom: 0;
|
58 |
width: 4px;
|
|
|
62 |
/* Commit node styling */
|
63 |
.commit-node {
|
64 |
position: absolute;
|
65 |
+
right: 0;
|
66 |
+
transform: translateX(4px);
|
67 |
width: 12px;
|
68 |
height: 12px;
|
69 |
background-color: #e5e7eb; /* Blue circle */
|
|
|
119 |
opacity: 1;
|
120 |
}
|
121 |
|
122 |
+
@keyframes fade-in {
|
123 |
+
from { opacity: 0; }
|
124 |
+
to { opacity: 1; }
|
125 |
+
}
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|