Skip to content

选择站点增加对子域名的选择 - #22

Open
mfblog wants to merge 8 commits into
afoim:mainfrom
mfblog:main
Open

选择站点增加对子域名的选择#22
mfblog wants to merge 8 commits into
afoim:mainfrom
mfblog:main

Conversation

@mfblog

@mfblog mfblog commented Dec 30, 2025

Copy link
Copy Markdown

选择站点增加对子域名的选择

Copilot AI review requested due to automatic review settings August 4, 2026 01:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本次 PR 主要在监控大屏中增加“按域名(子域名)筛选/下钻”的能力,并补充域名维度的 Web 防护处置(拦截/挑战)明细分析,以便在选定站点后进一步定位到具体加速域名的异常与安全事件。

Changes:

  • 前端新增“选择域名”下拉框,并将域名参数透传到流量/Top 分析请求,同时新增“域名拦截分析”可视化区块。
  • 后端新增 /domains 获取站点下加速域名列表,并在 /traffic 中对部分指标增加 domain Filters;新增 /security-intercepts 聚合域名维度的防护处置排行数据。
  • 文档与默认站点标题/图标文案更新,新增 PRODUCT.md 产品说明文档。

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
README.md 更新环境变量说明与默认标题/图标文案(当前存在与实际实现不一致的问题)。
PRODUCT.md 新增产品定位与设计原则文档(当前含明显占位文本)。
node-functions/api/[[default]].js 新增域名列表接口、域名过滤与安全拦截聚合接口。
index.html 增加域名选择 UI、域名拦截分析区块,以及 Top 图表渲染能力增强与域名参数透传。

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines +39 to +40
- `SITE_NAME`: 大屏标题,固定为 "茶茶吖 的 EdgeOne 监控大屏"
- `SITE_ICON`: 网页图标,固定为 "https://blog.ccya.top/logo.svg"
Comment on lines +268 to +284
const { secretId, secretKey } = getKeys();
const { zoneId } = req.query;

if (!secretId || !secretKey) {
return res.status(500).json({ error: "Missing credentials" });
}

const TeoClient = teo.v20220901.Client;
const client = new TeoClient({
credential: { secretId, secretKey },
region: "ap-guangzhou",
profile: { httpProfile: { endpoint: "teo.tencentcloudapi.com" } }
});

const params = zoneId && zoneId !== '*' ? { ZoneId: zoneId } : {};
const data = await client.DescribeAccelerationDomains(params);
res.json(data);
Comment thread PRODUCT.md
Comment on lines +3 to +6
## Register

product

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants