This commit is contained in:
eric
2026-03-29 01:54:10 -05:00
parent 784a4468b8
commit c3ee09674f
13 changed files with 4347 additions and 70 deletions

View File

@@ -12,6 +12,8 @@ import {
parseYoutubeStreamKeySuffix,
type YoutubeIniFields,
} from "@/lib/youtubeConfigUtils";
import type { PortalNavTarget } from "@/components/live-product/LivePipelineStrip";
import { LivePipelineStrip } from "@/components/live-product/LivePipelineStrip";
import { LiveProcessLiveLogCard } from "@/components/live-product/LiveProcessLiveLogCard";
import {
defaultPm2NameForChannel,
@@ -143,6 +145,7 @@ type Props = {
fetchJson: <T,>(path: string, init?: RequestInit) => Promise<T>;
liveProcesses: LiveProcRow[];
notify: (msg: string) => void;
onNavigate?: (target: PortalNavTarget) => void;
};
export function LiveYoutubeUnmannedView({
@@ -158,6 +161,7 @@ export function LiveYoutubeUnmannedView({
fetchJson,
liveProcesses,
notify,
onNavigate,
}: Props) {
const ytEntries = useMemo(() => entries.filter(isYoutubeProcess), [entries]);
const processOptions = ytEntries.length ? ytEntries : entries;
@@ -549,6 +553,37 @@ export function LiveYoutubeUnmannedView({
return (
<div className="mx-auto max-w-6xl space-y-6">
{onNavigate ? (
<LivePipelineStrip
t={t}
title={t("YouTube 转播链路", "YouTube relay chain")}
subtitle={t(
"与「网络」页相同风格的链路示意:代理 → 编码推流 → 浏览器侧操作工作室。",
"Same visual language as Network: proxy → encode → browser studio.",
)}
onNavigate={onNavigate}
steps={[
{
label: "ShellCrash",
sub: t("透明代理", "Proxy"),
gradient: "from-violet-500 to-fuchsia-500",
target: "network",
},
{
label: "FFmpeg",
sub: t("推流 / 转码", "Stream"),
gradient: "from-cyan-400 to-blue-500",
target: "live_youtube",
},
{
label: "Neko",
sub: t("Chromium 工作室", "Chromium"),
gradient: "from-emerald-400 to-teal-500",
target: "services",
},
]}
/>
) : null}
<div className="rounded-2xl border border-violet-500/25 bg-gradient-to-br from-violet-500/[0.12] via-zinc-950/80 to-cyan-500/5 p-6 shadow-xl shadow-violet-900/10">
<div className="flex flex-wrap items-start justify-between gap-4">
<div className="flex items-center gap-3">