Skip to content

Commit

Permalink
deploy: 14e667a
Browse files Browse the repository at this point in the history
  • Loading branch information
qianmoQ committed Feb 25, 2025
1 parent 5eb1278 commit 530728c
Show file tree
Hide file tree
Showing 104 changed files with 6,728 additions and 1,386 deletions.
4 changes: 2 additions & 2 deletions en/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html" class="inline-flex items-center rounded-lg justify-center px-3.5 py-3 text-sm font-medium leading-none whitespace-nowrap hover:text-gray-900 hover:bg-gray-50">
<a href="/en/release/2025.1.6.html" class="inline-flex items-center rounded-lg justify-center px-3.5 py-3 text-sm font-medium leading-none whitespace-nowrap hover:text-gray-900 hover:bg-gray-50">
Release Notes
</a>
</li>
Expand Down Expand Up @@ -436,7 +436,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">
<a href="/en/release/2025.1.6.html" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">
Release Notes
</a>

Expand Down
4 changes: 2 additions & 2 deletions en/getting-started/create-site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="inline-flex items-center rounded-lg justify-center px-3.5 py-3
text-sm font-medium leading-none whitespace-nowrap
Expand Down Expand Up @@ -515,7 +515,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="block px-3 py-2 rounded-md text-base font-medium
text-gray-700 hover:text-gray-900 hover:bg-gray-50 ">
Release Notes
Expand Down
4 changes: 2 additions & 2 deletions en/getting-started/customization.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="inline-flex items-center rounded-lg justify-center px-3.5 py-3
text-sm font-medium leading-none whitespace-nowrap
Expand Down Expand Up @@ -515,7 +515,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="block px-3 py-2 rounded-md text-base font-medium
text-gray-700 hover:text-gray-900 hover:bg-gray-50 ">
Release Notes
Expand Down
4 changes: 2 additions & 2 deletions en/getting-started/get-started.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="inline-flex items-center rounded-lg justify-center px-3.5 py-3
text-sm font-medium leading-none whitespace-nowrap
Expand Down Expand Up @@ -515,7 +515,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="block px-3 py-2 rounded-md text-base font-medium
text-gray-700 hover:text-gray-900 hover:bg-gray-50 ">
Release Notes
Expand Down
4 changes: 2 additions & 2 deletions en/getting-started/publish-site.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="inline-flex items-center rounded-lg justify-center px-3.5 py-3
text-sm font-medium leading-none whitespace-nowrap
Expand Down Expand Up @@ -515,7 +515,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="block px-3 py-2 rounded-md text-base font-medium
text-gray-700 hover:text-gray-900 hover:bg-gray-50 ">
Release Notes
Expand Down
4 changes: 2 additions & 2 deletions en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="inline-flex items-center rounded-lg justify-center px-3.5 py-3
text-sm font-medium leading-none whitespace-nowrap
Expand Down Expand Up @@ -515,7 +515,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="block px-3 py-2 rounded-md text-base font-medium
text-gray-700 hover:text-gray-900 hover:bg-gray-50 ">
Release Notes
Expand Down
101 changes: 24 additions & 77 deletions en/release/1.0.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="inline-flex items-center rounded-lg justify-center px-3.5 py-3
text-sm font-medium leading-none whitespace-nowrap
Expand Down Expand Up @@ -515,7 +515,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="block px-3 py-2 rounded-md text-base font-medium
text-blue-600 bg-blue-50/80 ">
Release Notes
Expand Down Expand Up @@ -722,7 +722,7 @@

<li class="relative">

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="group block">

<div class="relative flex items-center px-2 sm:px-3 md:px-4 py-1.5 sm:py-2
Expand All @@ -732,87 +732,34 @@


<span class="flex flex-grow items-center space-x-4 text-sm sm:text-base whitespace-nowrap">
<span>2025.1.5</span>
<span>2025.1.6</span>



<div class="inline-flex items-center">
<div data-tooltip="新添加" class="relative status-container">

<svg class="w-4 h-4 text-green-500 hover:opacity-80 cursor-pointer status-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>

</div>
</div>

<script>
document.addEventListener('DOMContentLoaded', () => {
// 创建或获取 tooltips 容器
let tooltipContainer = document.getElementById('tooltip-container');
if (!tooltipContainer) {
tooltipContainer = document.createElement('div');
tooltipContainer.id = 'tooltip-container';
document.body.appendChild(tooltipContainer);
}

// 创建单个 tooltip 元素
const tooltip = document.createElement('div');
tooltip.className = 'fixed hidden px-2 py-1 bg-gray-900 text-white text-xs rounded whitespace-nowrap z-[9999] pointer-events-none transition-opacity duration-200';
tooltipContainer.appendChild(tooltip);

// 监听所有状态图标
document.querySelectorAll('.status-container').forEach(container => {
const icon = container.querySelector('.status-icon');
const text = container.dataset.tooltip;

container.addEventListener('mouseenter', () => {
const rect = container.getBoundingClientRect();
tooltip.textContent = text;
tooltip.style.display = 'block';

// 获取 tooltip 的尺寸
const tooltipRect = tooltip.getBoundingClientRect();

// 计算位置
let top = rect.top - tooltipRect.height - 8;
const left = rect.left + (rect.width - tooltipRect.width) / 2;

// 如果顶部空间不足,显示在底部
if (top < 8) {
top = rect.bottom + 8;
}
</span>

tooltip.style.top = `${top}px`;
tooltip.style.left = `${left}px`;
});

</div>

</a>

</li>

<li class="relative">

<a href="/en/release/2025.1.5.html"
class="group block">

<div class="relative flex items-center px-2 sm:px-3 md:px-4 py-1.5 sm:py-2
hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-800/40
rounded-md transition-all duration-200 ease-in-out">

container.addEventListener('mouseleave', () => {
tooltip.style.display = 'none';
});
});


// 处理页面滚动时更新位置
window.addEventListener('scroll', () => {
const visibleTooltip = document.querySelector('#tooltip-container div[style*="display: block"]');
if (visibleTooltip) {
const container = document.querySelector('.status-container:hover');
if (container) {
const rect = container.getBoundingClientRect();
const tooltipRect = visibleTooltip.getBoundingClientRect();

let top = rect.top - tooltipRect.height - 8;
if (top < 8) {
top = rect.bottom + 8;
}
<span class="flex flex-grow items-center space-x-4 text-sm sm:text-base whitespace-nowrap">
<span>2025.1.5</span>


visibleTooltip.style.top = `${top}px`;
visibleTooltip.style.left = `${rect.left + (rect.width - tooltipRect.width) / 2}px`;
}
}
}, {passive: true});
});
</script>

</span>

Expand Down
101 changes: 24 additions & 77 deletions en/release/2025.1.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</li>

<li class="shrink-0">
<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="inline-flex items-center rounded-lg justify-center px-3.5 py-3
text-sm font-medium leading-none whitespace-nowrap
Expand Down Expand Up @@ -515,7 +515,7 @@
Technology
</a>

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="block px-3 py-2 rounded-md text-base font-medium
text-blue-600 bg-blue-50/80 ">
Release Notes
Expand Down Expand Up @@ -722,7 +722,7 @@

<li class="relative">

<a href="/en/release/2025.1.5.html"
<a href="/en/release/2025.1.6.html"
class="group block">

<div class="relative flex items-center px-2 sm:px-3 md:px-4 py-1.5 sm:py-2
Expand All @@ -732,87 +732,34 @@


<span class="flex flex-grow items-center space-x-4 text-sm sm:text-base whitespace-nowrap">
<span>2025.1.5</span>
<span>2025.1.6</span>



<div class="inline-flex items-center">
<div data-tooltip="新添加" class="relative status-container">

<svg class="w-4 h-4 text-green-500 hover:opacity-80 cursor-pointer status-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>

</div>
</div>

<script>
document.addEventListener('DOMContentLoaded', () => {
// 创建或获取 tooltips 容器
let tooltipContainer = document.getElementById('tooltip-container');
if (!tooltipContainer) {
tooltipContainer = document.createElement('div');
tooltipContainer.id = 'tooltip-container';
document.body.appendChild(tooltipContainer);
}

// 创建单个 tooltip 元素
const tooltip = document.createElement('div');
tooltip.className = 'fixed hidden px-2 py-1 bg-gray-900 text-white text-xs rounded whitespace-nowrap z-[9999] pointer-events-none transition-opacity duration-200';
tooltipContainer.appendChild(tooltip);

// 监听所有状态图标
document.querySelectorAll('.status-container').forEach(container => {
const icon = container.querySelector('.status-icon');
const text = container.dataset.tooltip;

container.addEventListener('mouseenter', () => {
const rect = container.getBoundingClientRect();
tooltip.textContent = text;
tooltip.style.display = 'block';

// 获取 tooltip 的尺寸
const tooltipRect = tooltip.getBoundingClientRect();

// 计算位置
let top = rect.top - tooltipRect.height - 8;
const left = rect.left + (rect.width - tooltipRect.width) / 2;

// 如果顶部空间不足,显示在底部
if (top < 8) {
top = rect.bottom + 8;
}
</span>

tooltip.style.top = `${top}px`;
tooltip.style.left = `${left}px`;
});

</div>

</a>

</li>

<li class="relative">

<a href="/en/release/2025.1.5.html"
class="group block">

<div class="relative flex items-center px-2 sm:px-3 md:px-4 py-1.5 sm:py-2
hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-800/40
rounded-md transition-all duration-200 ease-in-out">

container.addEventListener('mouseleave', () => {
tooltip.style.display = 'none';
});
});


// 处理页面滚动时更新位置
window.addEventListener('scroll', () => {
const visibleTooltip = document.querySelector('#tooltip-container div[style*="display: block"]');
if (visibleTooltip) {
const container = document.querySelector('.status-container:hover');
if (container) {
const rect = container.getBoundingClientRect();
const tooltipRect = visibleTooltip.getBoundingClientRect();

let top = rect.top - tooltipRect.height - 8;
if (top < 8) {
top = rect.bottom + 8;
}
<span class="flex flex-grow items-center space-x-4 text-sm sm:text-base whitespace-nowrap">
<span>2025.1.5</span>


visibleTooltip.style.top = `${top}px`;
visibleTooltip.style.left = `${rect.left + (rect.width - tooltipRect.width) / 2}px`;
}
}
}, {passive: true});
});
</script>

</span>

Expand Down
Loading

0 comments on commit 530728c

Please sign in to comment.