Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
29780a8
日记
cuitengweii Feb 14, 2026
89497dd
日记
cuitengweii Feb 15, 2026
877e938
提交 png 图标
cuitengweii Feb 15, 2026
7530ee7
修复首页滚动数据提取
cuitengweii Feb 16, 2026
8f3fe32
更新 news,合并解决方案
cuitengweii Feb 16, 2026
bba5936
更新 news,合并解决方案
cuitengweii Feb 16, 2026
2778867
news
cuitengweii Feb 16, 2026
2b5a421
sitemap
cuitengweii Feb 16, 2026
953d24d
添加加拿大仪表板功能,包括数据加载和图表渲染
cuitengweii Feb 16, 2026
6b1e90e
更新加拿大仪表板,修改标题,添加图标样式和数据表格样式
cuitengweii Feb 16, 2026
601c9cd
chore: auto-update sitemap
github-actions[bot] Feb 17, 2026
517c770
更新新闻模块,添加可渲染封面检查和数据提取功能,优化文章加载逻辑,调整页面布局和样式
cuitengweii Feb 18, 2026
38ca43f
添加英雄模块自动刷新功能,优化英雄加载逻辑,增加英雄轮换和选择机制
cuitengweii Feb 18, 2026
d445218
优化文章提取逻辑,增加去重机制,确保新闻模块加载的文章唯一性
cuitengweii Feb 18, 2026
edcbd39
更新英雄模块样式,优化卡片布局和文本显示,增强响应式设计
cuitengweii Feb 18, 2026
2a0b8fe
优化文章链接和封面获取逻辑,增加文章去重机制,调整加载更多按钮的显示逻辑
cuitengweii Feb 18, 2026
3b73dc8
更新sitemap生成时间戳
cuitengweii Feb 18, 2026
3f215cd
添加区域数据视图配置和切换功能,优化相关样式
cuitengweii Feb 18, 2026
d3eaa33
添加数据更新提示,优化无数据时的用户反馈逻辑
cuitengweii Feb 18, 2026
eec9022
chore: auto-update sitemap
github-actions[bot] Feb 18, 2026
a566e23
chore: auto-update sitemap
github-actions[bot] Feb 19, 2026
dbf1ed5
fix(news/events): make index tag chips clickable
cuitengweii Feb 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env sh
set -eu

ROOT_DIR="$(git rev-parse --show-toplevel)"
cd "$ROOT_DIR"

if ! command -v python3 >/dev/null 2>&1; then
echo "[sitemap] python3 not found; cannot generate sitemap." >&2
exit 1
fi

python3 scripts/generate_sitemap.py
git add sitemap.html

38 changes: 38 additions & 0 deletions .github/workflows/sitemap-scheduled-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Scheduled Sitemap Update

on:
schedule:
- cron: "23 2 * * *"
workflow_dispatch:

permissions:
contents: write

jobs:
update-sitemap:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Generate sitemap
run: python3 scripts/generate_sitemap.py

- name: Commit and push if changed
run: |
if git diff --quiet -- sitemap.html; then
echo "No sitemap changes."
exit 0
fi

git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add sitemap.html
git commit -m "chore: auto-update sitemap"
git push
2 changes: 1 addition & 1 deletion news/data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data - GasGx Mining News</title>
<title>GasGx Canada Dashboard</title>

<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="https://cdn.tailwindcss.com"></script>
Expand Down
11 changes: 5 additions & 6 deletions news/flash/index - 副本.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h3 class="text-white font-bold text-xl mb-2 font-header tracking-wide uppercase

<div class="tech-card rounded-xl p-6 bg-[#080808]">
<div class="flex items-center justify-between mb-4">
<h3 class="text-sm font-bold text-white uppercase tracking-widest">Market Pulse</h3>
<h3 class="text-sm font-bold text-white uppercase tracking-widest">Homepage Pulse</h3>
<span class="w-2 h-2 rounded-full bg-gas-green animate-pulse"></span>
</div>
<div id="sidebar-market-pulse" class="space-y-3">
Expand Down Expand Up @@ -465,16 +465,16 @@ <h3 class="text-lg lg:text-xl font-bold text-white mb-3 leading-relaxed lg:leadi
const container = document.getElementById('sidebar-market-pulse');
if(!container) return;
try {
const { data } = await _supabase.from('market_metrics').select('*').limit(5);
const { data } = await _supabase.from('homepage_scrolling_data').select('*').order('sort_order').limit(5);
if(data) {
container.innerHTML = data.map(item => `
<div class="flex items-center justify-between border-b border-white/5 pb-2 last:border-0">
<div>
<div class="text-[10px] text-gray-500 uppercase">${item.label}</div>
<div class="text-sm font-mono font-bold text-white">${item.value} <span class="text-[10px] text-gray-600">${item.unit||''}</span></div>
<div class="text-sm font-mono font-bold text-white">${item.display_value ?? item.value ?? '--'} <span class="text-[10px] text-gray-600">${item.unit||''}</span></div>
</div>
<div class="${item.trend=='up'?'text-gas-green':(item.trend=='down'?'text-red-500':'text-gray-500')} text-xs font-bold">
${item.change_24h}
<div class="${item.status==='positive'?'text-gas-green':(item.status==='negative'?'text-red-500':'text-gray-500')} text-xs font-bold">
${item.secondary_text ?? item.change_24h ?? '--'}
</div>
</div>
`).join('');
Expand Down Expand Up @@ -577,4 +577,3 @@ <h3 class="text-lg lg:text-xl font-bold text-white mb-3 leading-relaxed lg:leadi
<script type="module" src="/news/shared/modules/legacy-shell.bootstrap.js"></script>
</body>
</html>

Loading