chore(release): 发布 v1.9.0 并更新 Cloudflare 文档

This commit is contained in:
2026-10-01 13:12:37 +08:00
parent 83cc9d504b
commit c377405696
9 changed files with 65 additions and 34 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "fonu-web",
"version": "1.8.0",
"version": "1.9.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "fonu-web",
"version": "1.8.0",
"version": "1.9.0",
"dependencies": {
"@codemirror/commands": "^6.11.1",
"@codemirror/lang-javascript": "^6.2.5",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "fonu-web",
"private": true,
"version": "1.8.0",
"version": "1.9.0",
"packageManager": "npm@10.9.4",
"type": "module",
"scripts": {
+14 -15
View File
@@ -266,7 +266,7 @@ const routeEditingIndex = ref<number | null>(null)
const routeForm = ref({ subdomain: '', domain: '', type: 'http', target: '' })
const loadError = ref('')
const form = ref({ name: '', subdomain: '', domain: '', type: 'http', target: '', autoStart: false })
const TOPOLOGY_WIDTH = 820
const TOPOLOGY_WIDTH = 880
const TOPOLOGY_ROW_HEIGHT = 54
const TOPOLOGY_START_Y = 38
@@ -298,15 +298,15 @@ function serviceY(index: number) {
}
function domainToExitPath(sourceY: number) {
return `M 220 ${sourceY} C 250 ${sourceY}, 265 ${centerY.value}, 292 ${centerY.value}`
return `M 280 ${sourceY} C 295 ${sourceY}, 305 ${centerY.value}, 320 ${centerY.value}`
}
function exitToTunnelPath() {
return `M 392 ${centerY.value} L 470 ${centerY.value}`
return `M 420 ${centerY.value} L 460 ${centerY.value}`
}
function tunnelToServicePath(targetY: number) {
return `M 578 ${centerY.value} C 610 ${centerY.value}, 625 ${targetY}, 660 ${targetY}`
return `M 570 ${centerY.value} C 585 ${centerY.value}, 598 ${targetY}, 610 ${targetY}`
}
async function load() {
@@ -568,7 +568,7 @@ onMounted(load)
}
.topology-graph {
position: relative;
width: 820px;
width: 880px;
height: 100%;
margin: 0 auto;
}
@@ -579,13 +579,10 @@ onMounted(load)
display: flex;
align-items: center;
gap: 8px;
width: 220px;
width: 280px;
height: 44px;
}
.topology-domain__name {
max-width: 125px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--fonu-brand-text);
text-decoration: underline;
@@ -599,7 +596,7 @@ onMounted(load)
position: absolute;
inset: 0;
z-index: 1;
width: 820px;
width: 880px;
height: 100%;
pointer-events: none;
}
@@ -628,16 +625,17 @@ onMounted(load)
box-shadow: var(--fonu-shadow);
white-space: nowrap;
}
.topology-exit { left: 292px; min-width: 100px; }
.topology-tunnel { left: 470px; min-width: 108px; }
.topology-exit { left: 320px; min-width: 100px; }
.topology-tunnel { left: 460px; min-width: 110px; }
.topology-service {
position: absolute;
left: 660px;
left: 610px;
z-index: 2;
display: flex;
align-items: center;
gap: 8px;
width: 150px;
width: max-content;
min-width: 260px;
height: 44px;
padding: 7px 8px;
border: 1px solid var(--fonu-border);
@@ -645,8 +643,9 @@ onMounted(load)
background: var(--fonu-surface);
color: var(--fonu-text-secondary);
font-size: 12px;
overflow-wrap: anywhere;
white-space: nowrap;
}
.topology-service .mono { white-space: nowrap; }
.topology-service :deep(.n-icon) { flex: none; color: var(--fonu-brand); }
.config-form { max-width: 780px; }
.config-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
+8 -8
View File
@@ -8,7 +8,7 @@
</template>
</PageHeader>
<n-alert type="success" :bordered="false" class="example-alert" title="v1.8.0 示例页面验证标识已生效">
<n-alert type="success" :bordered="false" class="example-alert" title="v1.9.0 示例页面验证标识已生效">
当前页面由 v{{ version }} 提供,验证标识为 <span class="mono">{{ verificationMarker }}</span>。
如果你是在升级后首次看到这行内容,说明前端构建、镜像重建和服务重启均已成功。
</n-alert>
@@ -19,7 +19,7 @@
<strong class="example-proof__value">{{ verificationRound }}</strong>
</div>
<div class="example-proof__hint">
看到这个新区块,说明前端资源已经从旧版本切换到 v1.8.0。
看到这个新区块,说明前端资源已经从旧版本切换到 v1.9.0。
</div>
</div>
@@ -33,16 +33,16 @@
<StatCard label="本次验证标识" :value="verificationMarker" sub="用于区分升级前后的前端资源" tone="blue" value-small>
<template #icon><n-icon :component="FlashOutline" /></template>
</StatCard>
<StatCard label="页面状态" value="已更新" sub="v1.8.0 前端资源已加载" tone="teal">
<StatCard label="页面状态" value="已更新" sub="v1.9.0 前端资源已加载" tone="teal">
<template #icon><n-icon :component="CheckmarkCircleOutline" /></template>
</StatCard>
</div>
<FonuCard title="本次示例页变化" subtitle="用于确认升级后的页面内容确实发生变化">
<ul class="example-changes">
<li>页面版本提示更新为 v1.8.0。</li>
<li>「本次升级验证」区块和页面状态同步更新为 v1.8.0。</li>
<li>验证标识更新为 <span class="mono">v1.8.0-example-page</span>。</li>
<li>页面版本提示更新为 v1.9.0。</li>
<li>「本次升级验证」区块和页面状态同步更新为 v1.9.0。</li>
<li>验证标识更新为 <span class="mono">v1.9.0-example-page</span>。</li>
</ul>
</FonuCard>
@@ -87,8 +87,8 @@ const message = useMessage()
const version = ref(__APP_VERSION__)
const checkedAt = ref('')
const refreshing = ref(false)
const verificationRound = 'v1.8.0'
const verificationMarker = 'v1.8.0-example-page'
const verificationRound = 'v1.9.0'
const verificationMarker = 'v1.9.0-example-page'
async function refreshVersion() {
refreshing.value = true