+
当前版本
+
+
+ {info ? `happy 出口通 v${info.version}` : '正在读取版本…'}
+ {info ? `运行环境 Node ${info.node} · ${info.platform} ${info.arch}` : '读取本机信息中'}
+
+ 正式版
+
+ {info?.startedAt &&
服务启动于 {fmtTime(info.startedAt)}
}
+
+
更新源
+
+
+ setRepo(e.target.value)}
+ disabled={checking}
+ />
+
+
默认抓取官方仓库,也支持填完整地址(https://github.com/owner/repo)。
+
+
检查更新
+
+
+
+ {!checking && result && (
+
+ 上次检查:{fmtTime(result.checkedAt)}
+ {result.cached ? '(结果来自缓存)' : ''}
+
+ )}
+
+ {checking && (
+
+
+ 正在连接 GitHub,请稍候…
+
+ )}
+
+ {!checking && error && (
+
+
+ {error}
+
+ )}
+
+ {!checking && !error && result?.ok && result.hasUpdate && (
+ <>
+
+
+
+ 发现新版本 v{result.latest},当前 v{result.current}
+
+
+ {result.publishedAt &&
发布于 {fmtTime(result.publishedAt)}
}
+ {(result.url || result.notes) && (
+
+ {result.url && (
+
+ 在 GitHub 上查看
+
+ )}
+ {result.notes && (
+
+ )}
+
+ )}
+ {showNotes && result.notes &&
{result.notes}}
+ >
+ )}
+
+ {!checking && !error && result?.ok && !result.hasUpdate && (
+ <>
+
+
+ 已是最新版本(v{result.current})
+
+ {result.note &&
{result.note}
}
+ >
+ )}
+