添加工具箱及跳转

This commit is contained in:
chicrobot committed 2025-11-24 02:23:45 +08:00
1 parent a9cb7f9d15
commit 0c565ead27
2 files changed
+13

No files matched your search

+7
View File
@@ -75,6 +75,13 @@
<span class="status online"><i class="fas fa-circle"></i> 运行中</span>
<a id="cloudreveLink" href="#" class="service-link" target="_blank">访问 <i class="fas fa-arrow-right"></i></a>
</div>
<div class="service-card glass-card">
<div class="service-icon"><i class="fas fa-toolbox"></i></div>
<h3>百川在线工具箱</h3>
<p>实用工具集合</p>
<span class="status online"><i class="fas fa-circle"></i> 运行中</span>
<a id="baichuanToolsLink" href="#" class="service-link" target="_blank">访问 <i class="fas fa-arrow-right"></i></a>
</div>
<div class="service-card glass-card">
<div class="service-icon"><i class="fas fa-chart-line"></i></div>
<h3>Grafana</h3>
+6
View File
@@ -54,6 +54,7 @@ window.addEventListener('load', function() {
const chatUrl = `${window.location.protocol}//${currentHost}/baseTalk`;
const cloudreveUrl = `${window.location.protocol}//${currentHost}:5212`;
const codeServerUrl = `${window.location.protocol}//${currentHost}:8443`;
const baichuanToolsUrl = `${window.location.protocol}//${currentHost}/xTools`;
// 构建博客文章URL,指向8090端口
const blogBaseUrl = `${window.location.protocol}//${currentHost}:8090`;
@@ -65,6 +66,7 @@ window.addEventListener('load', function() {
const chatLink = document.getElementById('chatLink');
const cloudreveLink = document.getElementById('cloudreveLink');
const codeServerLink = document.getElementById('codeServerLink');
const baichuanToolsLink = document.getElementById('baichuanToolsLink');
if (portainerLink) {
portainerLink.href = portainerUrl;
@@ -94,6 +96,10 @@ window.addEventListener('load', function() {
codeServerLink.href = codeServerUrl;
codeServerLink.target = '_blank';
}
if (baichuanToolsLink) {
baichuanToolsLink.href = baichuanToolsUrl;
baichuanToolsLink.target = '_blank';
}
// 处理博客文章链接
const blogPosts = document.querySelectorAll('.thought-card');