feat: 北极新一中文个人站 — MiSans 分片字体 + 全站内容国内化

- 字体: cn-font-split 分片 MiSans(4字重×~88片, unicode-range 按需加载)
  接入 --font-sans/--font-mono/--font-mono-2 栈尾; 修复 next/font 与
  Tailwind @theme 变量重名导致的死规则(--font-geist-mono/--font-departure-mono)
- 内容: 品牌名/首屏/关于/导航/页脚/滚动段/文章页 UI/解锁屏全部中文化;
  元数据 title 北极新一©2026, lang=zh-CN; 日期中文格式
- 彩蛋: 品牌标签 TikTok→小红书(保留 char-code 混淆与口令机制), /2026
  文案改为个人创作手记语境
- 页脚: 邮箱 + 抖音/微信/小红书; 有链接项点击新开主页, 全部支持悬停
  二维码卡片(正方形白衬+object-contain 防变形); 无链接项(微信)点击弹
  二维码浮层
- 移除原作者手写签名动画(AboutMedia)
- 构建: cn-font-split devDependency + onlyBuiltDependencies 允许列表
This commit is contained in:
2026-09-02 17:18:22 +08:00
parent 1860bc9f41
commit 285028c61d
380 changed files with 1189 additions and 181 deletions
+6 -3
View File
@@ -4,9 +4,12 @@
tokens, and the .dark block (below) flips their values — the same tokens, and the .dark block (below) flips their values — the same
light/dark token pairs the original stylesheet emits. */ light/dark token pairs the original stylesheet emits. */
@theme { @theme {
--font-sans: var(--font-tiktok), sans-serif; /* MiSans(中文,cn-font-split 分片 + unicode-range,经 <link> 引入)
--font-mono: var(--font-mono), monospace; 接在各栈尾:英文/数字由 TikTok Sans 与等宽字体先行命中,中文回落
--font-mono-2: var(--font-mono-2), monospace; 到 MiSans 分片。 */
--font-sans: var(--font-tiktok), "MiSans", sans-serif;
--font-mono: var(--font-geist-mono), "MiSans", monospace;
--font-mono-2: var(--font-departure-mono), "MiSans", monospace;
--color-l1: var(--label-1); --color-l1: var(--label-1);
--color-l2: var(--label-2); --color-l2: var(--label-2);
+44 -7
View File
@@ -20,21 +20,24 @@ const tiktokSans = localFont({
const geistMono = localFont({ const geistMono = localFont({
src: "./fonts/GeistMono[wght].ttf", src: "./fonts/GeistMono[wght].ttf",
variable: "--font-mono", variable: "--font-geist-mono",
display: "swap", display: "swap",
}); });
const departureMono = localFont({ const departureMono = localFont({
src: "./fonts/DepartureMono-Regular.otf", src: "./fonts/DepartureMono-Regular.otf",
variable: "--font-mono-2", variable: "--font-departure-mono",
display: "swap", display: "swap",
}); });
// MiSans 中文走 cn-font-split 的 unicode-range 分片(public/fonts/misans/),
// 以 <link> 引入 —— 见下方 <head>;不进 next/font 管线(整包 5MB/字重)。
export const metadata: Metadata = { export const metadata: Metadata = {
// Original home title (index.html): HAOQI©2026. Detail pages override via // Detail pages override the title via generateMetadata in
// generateMetadata in app/work/[slug]/layout.tsx (original: per-page title). // app/work/[slug]/layout.tsx (original: per-page title).
title: "HAOQI©2026", title: "北极新一©2026",
description: "Digital Product Designer & Builder © 2026", description: "设计与工程 / 数字产品与 AI 应用 © 2026",
}; };
export default async function RootLayout({ export default async function RootLayout({
@@ -45,9 +48,43 @@ export default async function RootLayout({
const initialAccess = await getPasscodeAccessServer(); const initialAccess = await getPasscodeAccessServer();
return ( return (
<html <html
lang="en" lang="zh-CN"
className={`${tiktokSans.variable} ${geistMono.variable} ${departureMono.variable}`} className={`${tiktokSans.variable} ${geistMono.variable} ${departureMono.variable}`}
> >
<head>
{/* MiSans 分片 CSS:~88 片/字重 × 4 字重,浏览器只下载
页面实际命中的 unicode-range 分片(首屏通常 <100KB)。
有意走 public 静态资源 + <link>:350+ 分片若交给打包器
处理会让构建显著变重(no-css-tags 警告在此预期内)。 */}
{/* eslint-disable-next-line @next/next/no-css-tags */}
<link
rel="stylesheet"
href="/fonts/misans/regular/result.css"
precedence="default"
suppressHydrationWarning
/>
{/* eslint-disable-next-line @next/next/no-css-tags */}
<link
rel="stylesheet"
href="/fonts/misans/medium/result.css"
precedence="default"
suppressHydrationWarning
/>
{/* eslint-disable-next-line @next/next/no-css-tags */}
<link
rel="stylesheet"
href="/fonts/misans/semibold/result.css"
precedence="default"
suppressHydrationWarning
/>
{/* eslint-disable-next-line @next/next/no-css-tags */}
<link
rel="stylesheet"
href="/fonts/misans/bold/result.css"
precedence="default"
suppressHydrationWarning
/>
</head>
<body className="min-h-screen relative"> <body className="min-h-screen relative">
<PasscodeAccessProvider initialAccess={initialAccess}> <PasscodeAccessProvider initialAccess={initialAccess}>
<FullscreenTransitionProvider> <FullscreenTransitionProvider>
+20 -34
View File
@@ -26,13 +26,13 @@ export default function Home() {
> >
<div className="flex flex-col order-2 lg:order-1 lg:grid lg:grid-cols-12 col-span-12 font-mono text-base"> <div className="flex flex-col order-2 lg:order-1 lg:grid lg:grid-cols-12 col-span-12 font-mono text-base">
<span className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-1 xl:col-start-1 p-2 font-sans font-medium text-[4svw] sm:text-2xl lg:text-3xl leading-tight"> <span className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-1 xl:col-start-1 p-2 font-sans font-medium text-[4svw] sm:text-2xl lg:text-3xl leading-tight">
<ScrambleReveal text="Design &" startDelayMs={300} letterDelayMs={10} /> <ScrambleReveal text="设计与" startDelayMs={300} letterDelayMs={10} />
<br /> <br />
<ScrambleReveal text="Engineering" startDelayMs={300} letterDelayMs={10} /> <ScrambleReveal text="工程" startDelayMs={300} letterDelayMs={10} />
</span> </span>
<ScrambleReveal <ScrambleReveal
className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-4 xl:col-start-5 p-2 text-balance" className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-4 xl:col-start-5 p-2 text-balance"
text="Thinking in systems. Designing with care." text="以系统思维思考,用心做出设计。"
startDelayMs={300} startDelayMs={300}
letterDelayMs={10} letterDelayMs={10}
/> />
@@ -42,9 +42,9 @@ export default function Home() {
className="flex flex-col self-end order-1 lg:order-2 col-span-12 px-2 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none" className="flex flex-col self-end order-1 lg:order-2 col-span-12 px-2 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none"
style={{ fontVariationSettings: '"wdth" 120' }} style={{ fontVariationSettings: '"wdth" 120' }}
> >
<ScrambleReveal text="I bring" startDelayMs={300} /> <ScrambleReveal text="我把匠心" startDelayMs={300} />
<ScrambleReveal text="craft & taste" startDelayMs={500} /> <ScrambleReveal text="与品味" startDelayMs={500} />
<ScrambleReveal text="to digital work" startDelayMs={700} /> <ScrambleReveal text="带进数字作品" startDelayMs={700} />
</div> </div>
</div> </div>
@@ -54,46 +54,32 @@ export default function Home() {
<div className="flex flex-col justify-start items-start gap-6 col-span-12 sm:col-span-7 lg:col-span-8 sm:col-start-6 lg:col-start-5 text-base lg:text-xl leading-none"> <div className="flex flex-col justify-start items-start gap-6 col-span-12 sm:col-span-7 lg:col-span-8 sm:col-start-6 lg:col-start-5 text-base lg:text-xl leading-none">
<p <p
className="p-2 w-full text-l1 md:text-[4.2svw] text-xl leading-[1.3] md:leading-none select-text" className="p-2 w-full text-l1 md:text-[4.2svw] text-xl leading-[1.3] md:leading-none select-text"
style={{ fontFamily: "var(--font-tiktok), sans-serif" }} style={{
fontFamily:
'var(--font-tiktok), "MiSans", sans-serif',
}}
> >
<span> <span>
I explore how to shape AI-era workflows with craft and taste, 全栈开发者,融合产品设计与工程能力,负责从产品构思、界面设计到前后端、跨端客户端的完整应用交付,现阶段深耕
building the next generation of digital products. AI 应用开发。
</span> </span>
</p> </p>
<p <p
className="p-2 w-full text-l2 md:text-[4.2svw] text-xl leading-[1.3] md:leading-none select-text" className="p-2 w-full text-l2 md:text-[4.2svw] text-xl leading-[1.3] md:leading-none select-text"
style={{ fontFamily: "var(--font-tiktok), sans-serif" }} style={{
fontFamily:
'var(--font-tiktok), "MiSans", sans-serif',
}}
> >
<span> <span>
I’m building{" "} 我相信工程塑造可靠的产品,设计赋予它们灵魂;
<a <a
href="https://reunimos.cc" href="#selected-work"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)" className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
> >
reunimos™ 我的作品
</a> </a>
, and previously worked on Alibaba{" "} 里记录了这些探索的痕迹。
<a
href="https://www.alipan.com/"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
aDrive
</a>
,{" "}
<a
href="https://www.teambition.com/"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
Teambition
</a>
, and 100offer.
</span> </span>
</p> </p>
</div> </div>
+2 -2
View File
@@ -20,10 +20,10 @@ export async function generateMetadata({
const path = `/${slug}`; const path = `/${slug}`;
if (isPasscodeProtectedPath(path)) { if (isPasscodeProtectedPath(path)) {
const access = await getPasscodeAccessServer(); const access = await getPasscodeAccessServer();
if (!access[path]) return { title: "Protected" }; if (!access[path]) return { title: "受保护内容" };
} }
const article = WORK_ARTICLES[path]; const article = WORK_ARTICLES[path];
return { title: article ? article.title : "HAOQI©2026" }; return { title: article ? article.title : "北极新一©2026" };
} }
export default function WorkLayout({ export default function WorkLayout({
+16 -16
View File
@@ -119,7 +119,7 @@ function MdxHeading({
<a <a
href={`#${encodeURIComponent(anchorId)}`} href={`#${encodeURIComponent(anchorId)}`}
onClick={onClick} onClick={onClick}
aria-label={`Copy link to ${text}`} aria-label={`复制「${text}」的链接`}
className="relative inline-block text-inherit no-underline" className="relative inline-block text-inherit no-underline"
> >
<span <span
@@ -215,10 +215,10 @@ function CodeBlock({
<button <button
type="button" type="button"
onClick={onCopy} onClick={onCopy}
aria-label={copied ? "Copied code" : "Copy code"} aria-label={copied ? "已复制代码" : "复制代码"}
className="block before:absolute relative before:inset-0 before:border-2 before:border-dotted before:border-transparent before:pointer-events-none before:transition-colors before:duration-200 lg:hover:before:border-l1 cursor-pointer px-1 py-0.5 font-mono text-xs uppercase tracking-wide text-(--label-2) transition-colors lg:hover:text-(--label-1) focus-visible:text-(--label-1) focus-visible:outline-none focus-visible:before:border-l1" className="block before:absolute relative before:inset-0 before:border-2 before:border-dotted before:border-transparent before:pointer-events-none before:transition-colors before:duration-200 lg:hover:before:border-l1 cursor-pointer px-1 py-0.5 font-mono text-xs tracking-wide text-(--label-2) transition-colors lg:hover:text-(--label-1) focus-visible:text-(--label-1) focus-visible:outline-none focus-visible:before:border-l1"
> >
{copied ? "COPIED" : "COPY"} {copied ? "已复制" : "复制"}
</button> </button>
</div> </div>
<pre className="overflow-x-auto px-4 py-2 font-mono text-xs leading-relaxed text-(--label-1) lg:px-5 lg:py-2.5 lg:text-sm"> <pre className="overflow-x-auto px-4 py-2 font-mono text-xs leading-relaxed text-(--label-1) lg:px-5 lg:py-2.5 lg:text-sm">
@@ -462,16 +462,16 @@ function ArticleFooter({ updated }: { updated: string }) {
className="bg-[rgba(var(--label-d),0.03)] mt-16 p-4 lg:p-6 rounded-xl" className="bg-[rgba(var(--label-d),0.03)] mt-16 p-4 lg:p-6 rounded-xl"
> >
<div className="mb-5 font-sans font-semibold text-l1 text-base"> <div className="mb-5 font-sans font-semibold text-l1 text-base">
Metadata 元信息
</div> </div>
<dl className="gap-x-6 gap-y-6 grid grid-cols-2 lg:grid-cols-3"> <dl className="gap-x-6 gap-y-6 grid grid-cols-2 lg:grid-cols-3">
{( {(
[ [
["Last Updated", updated], ["最后更新", updated],
["Dimensions", `${viewport.w}×${viewport.h}`], ["视口尺寸", `${viewport.w}×${viewport.h}`],
[ [
"Characters", "字数",
charCount !== null ? charCount.toLocaleString("en-US") : "—", charCount !== null ? charCount.toLocaleString("zh-CN") : "—",
], ],
] as const ] as const
).map(([label, value]) => ( ).map(([label, value]) => (
@@ -491,29 +491,29 @@ function ArticleFooter({ updated }: { updated: string }) {
<div className="my-6 border-line border-t border-dashed" /> <div className="my-6 border-line border-t border-dashed" />
<div className="gap-x-6 gap-y-4 grid grid-cols-2 lg:grid-cols-3"> <div className="gap-x-6 gap-y-4 grid grid-cols-2 lg:grid-cols-3">
<div className="hidden lg:block font-sans font-semibold text-l1 text-sm"> <div className="hidden lg:block font-sans font-semibold text-l1 text-sm">
Links 链接
</div> </div>
<div className="flex flex-col items-start gap-1 font-mono"> <div className="flex flex-col items-start gap-1 font-mono">
<Link href="/" className={`${dotted} text-left`}> <Link href="/" className={`${dotted} text-left`}>
<ScrambleReveal text="Home" startDelayMs={300} scrambleColors={false} /> <ScrambleReveal text="首页" startDelayMs={300} scrambleColors={false} />
</Link> </Link>
<button <button
type="button" type="button"
onClick={() => goAnchor("#selected-work")} onClick={() => goAnchor("#selected-work")}
className={`${dotted} text-left cursor-pointer`} className={`${dotted} text-left cursor-pointer`}
> >
<ScrambleReveal text="Work" startDelayMs={300} scrambleColors={false} /> <ScrambleReveal text="作品" startDelayMs={300} scrambleColors={false} />
</button> </button>
<button <button
type="button" type="button"
onClick={() => goAnchor("#contact")} onClick={() => goAnchor("#contact")}
className={`${dotted} text-left cursor-pointer`} className={`${dotted} text-left cursor-pointer`}
> >
<ScrambleReveal text="Contact" startDelayMs={300} scrambleColors={false} /> <ScrambleReveal text="联系" startDelayMs={300} scrambleColors={false} />
</button> </button>
</div> </div>
<div className="flex flex-col items-start gap-1 font-mono"> <div className="flex flex-col items-start gap-1 font-mono">
{["Twitter/X", "Figma", "GitHub"].map((label) => ( {["抖音", "微信", "小红书"].map((label) => (
<a key={label} href="#" className={dotted}> <a key={label} href="#" className={dotted}>
<ScrambleReveal text={label} startDelayMs={300} scrambleColors={false} /> <ScrambleReveal text={label} startDelayMs={300} scrambleColors={false} />
</a> </a>
@@ -534,12 +534,12 @@ function Article({ slug }: { slug: string }) {
404 404
</h1> </h1>
<p className="mt-1 text-l2! text-sm! lg:text-base! leading-relaxed"> <p className="mt-1 text-l2! text-sm! lg:text-base! leading-relaxed">
No article for this work yet. 该作品的文章尚未完成。
</p> </p>
<div className="mt-2 border-line border-b" /> <div className="mt-2 border-line border-b" />
<p className="pt-3 text-l2! text-sm! lg:text-base! leading-relaxed"> <p className="pt-3 text-l2! text-sm! lg:text-base! leading-relaxed">
<Link className="underline underline-offset-4" href="/"> <Link className="underline underline-offset-4" href="/">
← Home ← 返回首页
</Link> </Link>
</p> </p>
</header> </header>
+3 -4
View File
@@ -1,12 +1,12 @@
"use client"; "use client";
import SvgSignature from "@/components/dom/SvgSignature";
import { imageLayerTargets } from "@/lib/imageLayers"; import { imageLayerTargets } from "@/lib/imageLayers";
/** /**
* About-section left cell — exact original markup: * About-section left cell — markup follows the original layout minus the
* original author's hand-drawn SVG signature (SvgSignature, haoqi 的手写
* 签名动画,不属于北极新一,已移除;如需签名效果可换自己的 SVG 后再加回):
* <div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2"> * <div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2">
* <SvgSignature className="-top-1/32 -left-1/12 absolute w-3/4 pointer-events-none" />
* <div ref={n} className="aspect-square" /> * <div ref={n} className="aspect-square" />
* </div> * </div>
* The aspect-square div is the tracked target ("about" layer) that the * The aspect-square div is the tracked target ("about" layer) that the
@@ -15,7 +15,6 @@ import { imageLayerTargets } from "@/lib/imageLayers";
export default function AboutMedia() { export default function AboutMedia() {
return ( return (
<div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2"> <div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2">
<SvgSignature className="-top-1/32 -left-1/12 absolute w-3/4 pointer-events-none" />
<div <div
ref={(el) => { ref={(el) => {
imageLayerTargets.about.current = el; imageLayerTargets.about.current = el;
+143 -36
View File
@@ -1,22 +1,20 @@
"use client"; "use client";
import { useCallback, useState } from "react";
import ScrambleReveal from "@/components/dom/ScrambleReveal"; import ScrambleReveal from "@/components/dom/ScrambleReveal";
/** /**
* #contact footer — 1:1 port of the original footer (chunk 2689132c4e070b68.js * #contact footer — ported from the original footer (chunk
* module 28192): * 2689132c4e070b68.js module 28192),内容已中文化并替换为北极新一的联系方式:
* *
* - `<footer id="contact">` fills the last viewport (h-dvh / lg:h-screen) * - `<footer id="contact">` fills the last viewport (h-dvh / lg:h-screen)
* and carries `data-section="footer"` — SmoothScroller's sP f2 factor and * and carries `data-section="footer"` — SmoothScroller's sP f2 factor and
* PostFX's bright-source gating both read this attribute. * PostFX's bright-source gating both read this attribute.
* - Headline: three 12-col grid rows at 6svw, "Let's / Create / Something / * - Headline: 「让我们 / 创造 / 一些不凡的 / 数字作品」,
* Extraordinary"; "Create" and "Extraordinary" use reverse reveal (chars * "创造" 与 "数字作品" 行用 reverse reveal(字符从末位向前)。
* run last→first). * - Bottom bar: mailto + 抖音 / 微信 / 小红书:
* - Bottom bar: mailto + Twitter/X / Figma / GitHub links with the dotted * - 抖音、小红书:点击新窗口打开主页链接;悬停显示二维码卡片。
* hover border. * - 微信:无链接,点击弹出二维码浮层(移动端无 hover 也能查看)。
*
* NOTE: contact email is chenchun@virtheart.com (user-provided); social
* URLs are still placeholders.
*/ */
const CONTACT_EMAIL = "chenchun@virtheart.com"; const CONTACT_EMAIL = "chenchun@virtheart.com";
@@ -24,13 +22,72 @@ const CONTACT_EMAIL = "chenchun@virtheart.com";
const dottedLink = const dottedLink =
"block before:absolute relative before:inset-0 p-2 lg:hover:before:border-l1 before:border-2 before:border-transparent active:before:border-l1 before:border-dotted uppercase before:content-[''] before:transition-colors before:duration-200 cursor-pointer pointer-events-auto before:pointer-events-none"; "block before:absolute relative before:inset-0 p-2 lg:hover:before:border-l1 before:border-2 before:border-transparent active:before:border-l1 before:border-dotted uppercase before:content-[''] before:transition-colors before:duration-200 cursor-pointer pointer-events-auto before:pointer-events-none";
const SOCIALS = [ type Social = {
{ href: "#", label: "Twitter/X" }, key: string;
{ href: "#", label: "Figma" }, label: string;
{ href: "#", label: "GitHub" }, qr: string;
href?: string;
/** 无链接的条目(微信):点击弹出二维码浮层。 */
qrOnly?: boolean;
hint: string;
};
const SOCIALS: Social[] = [
{
key: "douyin",
label: "抖音",
qr: "/img/douyin.png",
href: "https://www.douyin.com/user/MS4wLjABAAAArYzCh3gIgSsDfQcN84MsMLoHFznc4wmNWJ5NsQR7T5naf21t-sCGc_tQdd4MV0zr",
hint: "扫码或点击打开抖音主页",
},
{
key: "wechat",
label: "微信",
qr: "/img/wechat.png",
qrOnly: true,
hint: "扫码添加微信",
},
{
key: "xiaohongshu",
label: "小红书",
qr: "/img/xiaohongshu.jpg",
href: "https://www.xiaohongshu.com/user/profile/6656326f0000000003033107",
hint: "扫码或点击打开小红书主页",
},
]; ];
function QrPreview({ social }: { social: Social }) {
return (
<span
aria-hidden="true"
className="bottom-full right-0 z-20 absolute mb-3 hidden flex-col items-center gap-2 lg:group-hover:flex"
>
<span className="flex w-44 flex-col items-center gap-2 bg-be p-3 shadow-[0_8px_32px_rgba(0,0,0,0.18)]">
{/* 严格正方形的白色内衬 + object-contain:无论源图留白如何,
二维码始终 1:1 完整显示,白底保证可扫。 */}
<span className="block aspect-square w-full bg-white p-1.5">
{/* eslint-disable-next-line @next/next/no-img-element -- 静态二维码 */}
<img
src={social.qr}
alt=""
width={152}
height={152}
className="block h-full w-full object-contain select-none"
draggable={false}
/>
</span>
<span className="text-xs normal-case text-l2 whitespace-nowrap">
{social.hint}
</span>
</span>
</span>
);
}
export default function FooterSection() { export default function FooterSection() {
const [activeQr, setActiveQr] = useState<Social | null>(null);
const closeQr = useCallback(() => setActiveQr(null), []);
return ( return (
<footer <footer
id="contact" id="contact"
@@ -38,17 +95,17 @@ export default function FooterSection() {
className="z-10 relative flex flex-col justify-center p-6 lg:p-16 w-full h-dvh lg:h-screen pointer-events-none" className="z-10 relative flex flex-col justify-center p-6 lg:p-16 w-full h-dvh lg:h-screen pointer-events-none"
> >
<div <div
className="gap-2 grid grid-cols-12 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none" className="gap-2 grid grid-cols-12 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] leading-none"
style={{ fontVariationSettings: '"wdth" 120' }} style={{ fontVariationSettings: '"wdth" 120' }}
> >
<ScrambleReveal <ScrambleReveal
text="Let's" text="让我们"
className="col-span-6 md:col-span-5 xl:col-span-4 md:col-start-2 xl:col-start-3 text-left pointer-events-auto" className="col-span-6 md:col-span-5 xl:col-span-4 md:col-start-2 xl:col-start-3 text-left pointer-events-auto"
startDelayMs={300} startDelayMs={300}
scrambleColors={false} scrambleColors={false}
/> />
<ScrambleReveal <ScrambleReveal
text="Create" text="创造"
className="col-span-6 md:col-span-5 xl:col-span-4 text-right pointer-events-auto" className="col-span-6 md:col-span-5 xl:col-span-4 text-right pointer-events-auto"
startDelayMs={300} startDelayMs={300}
reverse reverse
@@ -56,22 +113,22 @@ export default function FooterSection() {
/> />
</div> </div>
<div <div
className="gap-2 grid grid-cols-12 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none" className="gap-2 grid grid-cols-12 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] leading-none"
style={{ fontVariationSettings: '"wdth" 120' }} style={{ fontVariationSettings: '"wdth" 120' }}
> >
<ScrambleReveal <ScrambleReveal
text="Something" text="一些不凡的"
className="col-span-12 md:col-start-2 xl:col-start-3 text-left pointer-events-auto" className="col-span-12 md:col-start-2 xl:col-start-3 text-left pointer-events-auto"
startDelayMs={300} startDelayMs={300}
scrambleColors={false} scrambleColors={false}
/> />
</div> </div>
<div <div
className="gap-2 grid grid-cols-12 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none" className="gap-2 grid grid-cols-12 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] leading-none"
style={{ fontVariationSettings: '"wdth" 120' }} style={{ fontVariationSettings: '"wdth" 120' }}
> >
<ScrambleReveal <ScrambleReveal
text="Extraordinary" text="数字作品"
className="col-span-12 md:col-end-12 xl:col-end-11 text-right pointer-events-auto" className="col-span-12 md:col-end-12 xl:col-end-11 text-right pointer-events-auto"
startDelayMs={300} startDelayMs={300}
reverse reverse
@@ -88,24 +145,74 @@ export default function FooterSection() {
/> />
</a> </a>
<div className="flex flex-row items-center gap-2 lg:gap-4"> <div className="flex flex-row items-center gap-2 lg:gap-4">
{/* TODO: replace with the real VIRTHEART social URLs. */}{SOCIALS.map(({ href, label }) => ( {SOCIALS.map((social) => {
<a const inner = (
key={label} <>
className={dottedLink} <ScrambleReveal
href={href} text={social.label}
target={href.startsWith("http") ? "_blank" : undefined} startDelayMs={300}
rel={href.startsWith("http") ? "noopener noreferrer" : undefined} scrambleColors={false}
> />
<ScrambleReveal <QrPreview social={social} />
text={label} </>
startDelayMs={300} );
scrambleColors={false} const groupCls = `${dottedLink} group relative`;
/> if (social.href) {
</a> return (
))} <a
key={social.key}
className={groupCls}
href={social.href}
target="_blank"
rel="noopener noreferrer"
aria-label={`${social.label}主页(新窗口打开)`}
>
{inner}
</a>
);
}
return (
<button
key={social.key}
type="button"
className={`${groupCls} text-left`}
aria-label="微信 — 点击显示二维码"
onClick={() => setActiveQr(social)}
>
{inner}
</button>
);
})}
</div> </div>
</div> </div>
</div> </div>
{/* 二维码浮层(微信等无链接条目;移动端无 hover 的兜底) */}
{activeQr && (
<div
role="dialog"
aria-modal="true"
aria-label={`${activeQr.label}二维码`}
className="inset-0 z-50 fixed flex justify-center items-center bg-b1/80 p-6 pointer-events-auto"
onClick={closeQr}
>
<div className="flex flex-col items-center gap-4 bg-be p-8">
<span className="block aspect-square w-64 bg-white p-2 sm:w-80">
{/* eslint-disable-next-line @next/next/no-img-element -- 静态二维码 */}
<img
src={activeQr.qr}
alt={`${activeQr.label}二维码`}
width={288}
height={288}
className="block h-full w-full object-contain select-none"
draggable={false}
/>
</span>
<span className="text-sm text-l2">{activeQr.hint}</span>
<span className="font-mono-2 text-xs text-l3">点击任意处关闭</span>
</div>
</div>
)}
</footer> </footer>
); );
} }
+14 -15
View File
@@ -35,10 +35,10 @@ const dotted =
"relative before:content-[''] before:absolute before:inset-0 before:border-2 before:border-dotted before:border-transparent before:pointer-events-none before:transition-colors before:duration-200 lg:hover:before:border-l1"; "relative before:content-[''] before:absolute before:inset-0 before:border-2 before:border-dotted before:border-transparent before:pointer-events-none before:transition-colors before:duration-200 lg:hover:before:border-l1";
function useBrowserName(): string { function useBrowserName(): string {
const [name, setName] = useState("Unknown"); const [name, setName] = useState("未知");
useEffect(() => { useEffect(() => {
const ua = navigator.userAgent; const ua = navigator.userAgent;
let result = "Unknown"; let result = "未知";
if (/Edg\//.test(ua)) result = "Edge"; if (/Edg\//.test(ua)) result = "Edge";
else if (/OPR\//.test(ua)) result = "Opera"; else if (/OPR\//.test(ua)) result = "Opera";
else if (/Firefox\//.test(ua)) result = "Firefox"; else if (/Firefox\//.test(ua)) result = "Firefox";
@@ -179,10 +179,10 @@ export default function Header() {
}, [resetHint, setTheme, toggleSound]); }, [resetHint, setTheme, toggleSound]);
const themeLabel = const themeLabel =
theme === "light" ? "THEME[L]" : theme === "dark" ? "THEME[D]" : "THEME[A]"; theme === "light" ? "主题[L]" : theme === "dark" ? "主题[D]" : "主题[A]";
const soundLabel = soundEnabled const soundLabel = soundEnabled
? `SOUND[${SPINNER[spinnerIndex]}]` ? `音效[${SPINNER[spinnerIndex]}]`
: "SOUND[\u00B7]"; : "音效[·]";
const toggleCommon = const toggleCommon =
"inline-flex shrink-0 items-baseline gap-0 normal-case"; "inline-flex shrink-0 items-baseline gap-0 normal-case";
@@ -199,8 +199,7 @@ export default function Header() {
style={{ fontVariationSettings: '"wght" 700, "wdth" 120' }} style={{ fontVariationSettings: '"wght" 700, "wdth" 120' }}
href="/" href="/"
> >
<ScrambleReveal text="haoqi" startDelayMs={300} scrambleColors={false} /> <ScrambleReveal text="北极新一" startDelayMs={300} scrambleColors={false} />
<ScrambleReveal text=".design" startDelayMs={300} scrambleColors={false} />
</a> </a>
<div className="hidden lg:flex flex-wrap justify-between items-center gap-x-3 gap-y-2 pointer-events-auto basis-1/2 xl:basis-1/3"> <div className="hidden lg:flex flex-wrap justify-between items-center gap-x-3 gap-y-2 pointer-events-auto basis-1/2 xl:basis-1/3">
<button <button
@@ -208,19 +207,19 @@ export default function Header() {
className={`${dotted} p-2 uppercase cursor-pointer`} className={`${dotted} p-2 uppercase cursor-pointer`}
onClick={() => scrollEnv.scrollToSection("#selected-work")} onClick={() => scrollEnv.scrollToSection("#selected-work")}
> >
<ScrambleReveal text="Work" startDelayMs={300} scrambleColors={false} /> <ScrambleReveal text="作品" startDelayMs={300} scrambleColors={false} />
</button> </button>
<button <button
type="button" type="button"
className={`${dotted} p-2 uppercase cursor-pointer`} className={`${dotted} p-2 uppercase cursor-pointer`}
onClick={() => scrollEnv.scrollToSection("#contact")} onClick={() => scrollEnv.scrollToSection("#contact")}
> >
<ScrambleReveal text="Contact" startDelayMs={300} scrambleColors={false} /> <ScrambleReveal text="联系" startDelayMs={300} scrambleColors={false} />
</button> </button>
<span <span
role="button" role="button"
tabIndex={0} tabIndex={0}
aria-label={`Theme: ${theme}`} aria-label={`主题:${theme === "light" ? "浅色" : theme === "dark" ? "深色" : "跟随系统"}`}
className={`${dotted} ${toggleCommon} p-2 uppercase cursor-pointer pointer-events-auto`} className={`${dotted} ${toggleCommon} p-2 uppercase cursor-pointer pointer-events-auto`}
onClick={(e) => { onClick={(e) => {
e.preventDefault(); e.preventDefault();
@@ -247,7 +246,7 @@ export default function Header() {
role="button" role="button"
tabIndex={0} tabIndex={0}
aria-label={ aria-label={
soundEnabled ? "Sound playing, click to pause" : "Sound paused, click to play" soundEnabled ? "音效播放中,点击暂停" : "音效已暂停,点击播放"
} }
aria-pressed={soundEnabled} aria-pressed={soundEnabled}
className={`${dotted} ${toggleCommon} p-2 uppercase cursor-pointer pointer-events-auto`} className={`${dotted} ${toggleCommon} p-2 uppercase cursor-pointer pointer-events-auto`}
@@ -296,7 +295,7 @@ export default function Header() {
per-char 10ms stagger over the wrapped lines produces the per-char 10ms stagger over the wrapped lines produces the
top-to-bottom green sweep. */} top-to-bottom green sweep. */}
<ScrambleReveal <ScrambleReveal
text="Press [L] for light mode, [D] for dark mode, [A] for auto mode, or click THEME. Press [S] to pause or resume background music, or click SOUND; your choice is saved in this browser. [T] scroll to top, [B] scroll to bottom." text="按 [L] 切换浅色模式,[D] 切换深色模式,[A] 跟随系统,也可以点击「主题」。按 [S] 暂停或恢复背景音乐,也可以点击「音效」,你的选择会保存在当前浏览器。[T] 回到顶部,[B] 滚动到底部。"
startDelayMs={0} startDelayMs={0}
letterDelayMs={10} letterDelayMs={10}
/> />
@@ -340,10 +339,10 @@ export default function Header() {
scrambleColors={false} scrambleColors={false}
/> />
</span> </span>
{/* VIRTHEART copyright — replaces the original RotatingGlobe. */} {/* 版权行 — 替代原站的 RotatingGlobe。 */}
<span className="hidden lg:inline p-2 uppercase"> <span className="hidden lg:inline p-2">
<ScrambleReveal <ScrambleReveal
text={`VIRTHEART (c) ${year}`} text={`北极新一 (c) ${year}`}
startDelayMs={300} startDelayMs={300}
letterDelayMs={40} letterDelayMs={40}
scrambleColors={false} scrambleColors={false}
+11 -11
View File
@@ -45,9 +45,9 @@ const STAGES = [
type Stage = (typeof STAGES)[number]["stage"]; type Stage = (typeof STAGES)[number]["stage"];
const SEG0_PRIMARY = ["Innovate", "with", "purpose"]; const SEG0_PRIMARY = ["以创新", "拥抱", "目标"];
const SEG0_SECONDARY = ["Innovate", "with a", "human touch"]; const SEG0_SECONDARY = ["以创新", "怀抱一份", "人情的温度"];
const END_LINES = ["FUTURE-FIRST", "ALWAYS"]; const END_LINES = ["面向未来", "始终如一"];
const clamp = (v: number, min: number, max: number) => const clamp = (v: number, min: number, max: number) =>
Math.min(max, Math.max(min, v)); Math.min(max, Math.max(min, v));
@@ -470,24 +470,24 @@ function Seg1({ ringProgress01 }: { ringProgress01: number }) {
<> <>
<Ring progress01={ringProgress01} /> <Ring progress01={ringProgress01} />
<div className="col-span-8 lg:col-span-4 col-start-1 lg:col-start-7 row-start-2 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight"> <div className="col-span-8 lg:col-span-4 col-start-1 lg:col-start-7 row-start-2 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight">
<StaggerText text="Building tomorrow's" /> <StaggerText text="构建明天的" />
<br /> <br />
<StaggerText text="digital products." /> <StaggerText text="数字产品。" />
</div> </div>
<div className="col-span-8 lg:col-span-4 col-start-5 lg:col-start-9 row-start-3 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight"> <div className="col-span-8 lg:col-span-4 col-start-5 lg:col-start-9 row-start-3 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight">
<StaggerText text="Independent by" /> <StaggerText text="设计与工程" />
<br /> <br />
<StaggerText text="design & engineering." /> <StaggerText text="独立完成。" />
</div> </div>
<div className="col-span-8 lg:col-span-4 col-start-1 lg:col-start-2 row-start-4 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight"> <div className="col-span-8 lg:col-span-4 col-start-1 lg:col-start-2 row-start-4 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight">
<StaggerText text="Clarity first." /> <StaggerText text="先讲清晰。" />
<br /> <br />
<StaggerText text="Delight second." /> <StaggerText text="再谈愉悦。" />
</div> </div>
<div className="col-span-8 lg:col-span-4 col-start-5 lg:col-start-4 row-start-5 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight"> <div className="col-span-8 lg:col-span-4 col-start-5 lg:col-start-4 row-start-5 p-2 font-medium text-[5.6svw] lg:text-3xl leading-tight">
<StaggerText text="Ship in small loops." /> <StaggerText text="小步快跑交付。" />
<br /> <br />
<StaggerText text="Aim for long arcs." /> <StaggerText text="着眼长期主义。" />
</div> </div>
</> </>
); );
+12 -12
View File
@@ -1,16 +1,16 @@
"use client"; "use client";
/** /**
* About-paragraph passcode easter egg — 1:1 port of the original components * About-paragraph passcode easter egg — ported from the original components
* `c9` + `c2` (chunk 4d3f3b68dbbde33a.js): * `c9` + `c2` (chunk 4d3f3b68dbbde33a.js),品牌标签国内化为「小红书」:
* *
* - Locked: the brand label slot scrambles as "■■■■■■" (each char wrapped, * - Locked: the brand label slot scrambles as "■■" (each char wrapped,
* PASSCODE_LOCKED_CHAR_CLASS); clicking navigates through the route * PASSCODE_LOCKED_CHAR_CLASS); clicking navigates through the route
* transition to /unlock/2026?return=%2F. * transition to /unlock/2026?return=%2F.
* - Unlocked: the slot settles to the "TikTok" button span — long-press * - Unlocked: the slot settles to the "小红书" button span — long-press
* (500ms) or context-menu re-locks (confirm + reload). * (500ms) or context-menu re-locks (confirm + reload).
* - The reveal sequence (ScrambleReveal) treats the label as a slot part, so * - The reveal sequence (ScrambleReveal) treats the label as a slot part, so
* its 6 characters participate in the per-char scramble timing. * its characters participate in the per-char scramble timing.
*/ */
import { useCallback, useRef } from "react"; import { useCallback, useRef } from "react";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
@@ -30,8 +30,8 @@ import {
} from "@/lib/passcode"; } from "@/lib/passcode";
const SCOPE = primaryPasscodePath(); // "/2026" const SCOPE = primaryPasscodePath(); // "/2026"
const BRAND = revealBrandLabel(); // "TikTok" const BRAND = revealBrandLabel(); // "小红书"
const BRAND_LEN = revealBrandLabelLength(); // 6 const BRAND_LEN = revealBrandLabelLength(); // 2
function RevealLabelButton() { function RevealLabelButton() {
const allowed = usePasscodeAllowed(SCOPE); const allowed = usePasscodeAllowed(SCOPE);
@@ -47,7 +47,7 @@ function RevealLabelButton() {
const relock = useCallback(async () => { const relock = useCallback(async () => {
if ( if (
window.confirm("Lock protected content again? You will need the passcode to view it.") window.confirm("要重新锁定受保护的内容吗?再次查看需要输入口令。")
) { ) {
await logoutPasscodeAccess({ reload: true }); await logoutPasscodeAccess({ reload: true });
} }
@@ -62,7 +62,7 @@ function RevealLabelButton() {
<span <span
role="button" role="button"
tabIndex={0} tabIndex={0}
aria-label="Protected — enter passcode to reveal" aria-label="受保护内容 — 输入口令后显示"
className="inline-flex items-baseline gap-[0.12em] mx-[0.06em] align-baseline cursor-pointer select-text" className="inline-flex items-baseline gap-[0.12em] mx-[0.06em] align-baseline cursor-pointer select-text"
onClick={go} onClick={go}
onKeyDown={(e) => { onKeyDown={(e) => {
@@ -87,7 +87,7 @@ function RevealLabelButton() {
<span <span
role="button" role="button"
tabIndex={0} tabIndex={0}
aria-label={`${BRAND} — long press to lock again`} aria-label={`${BRAND} — 长按可重新锁定`}
className="inline mx-[0.06em] align-baseline cursor-default select-none" className="inline mx-[0.06em] align-baseline cursor-default select-none"
onPointerDown={() => { onPointerDown={() => {
clearTimer(); clearTimer();
@@ -117,14 +117,14 @@ export default function PasscodeRevealText({
}) { }) {
const allowed = usePasscodeAllowed(SCOPE); const allowed = usePasscodeAllowed(SCOPE);
const parts = [ const parts = [
"I'm Haoqi Wen, leading Design Engineering and AI exploration at ", "我是北极新一,一名横跨设计与工程的全栈开发者:Web 前端与后端、Flutter 客户端、AI 应用开发都有实践,也从产品设计一路做到工程落地。工作之外,我常在 ",
{ {
length: BRAND_LEN, length: BRAND_LEN,
scramble: allowed ? BRAND : passcodeLockedPlaceholderText(), scramble: allowed ? BRAND : passcodeLockedPlaceholderText(),
className: allowed ? undefined : PASSCODE_LOCKED_SCRAMBLE_CLASS, className: allowed ? undefined : PASSCODE_LOCKED_SCRAMBLE_CLASS,
settled: <RevealLabelButton />, settled: <RevealLabelButton />,
}, },
", engineering, and AI at scale. Outside work, I build design tools for team efficiency.", " 上记录与分享这些探索。",
]; ];
return ( return (
<ScrambleReveal <ScrambleReveal
+2 -2
View File
@@ -103,7 +103,7 @@ export function PasscodeUnlockScreen({
onClick={() => inputRef.current?.focus()} onClick={() => inputRef.current?.focus()}
> >
<label className="sr-only" htmlFor={inputId}> <label className="sr-only" htmlFor={inputId}>
Passcode for {path} {path} 的访问口令
</label> </label>
<input <input
ref={inputRef} ref={inputRef}
@@ -121,7 +121,7 @@ export function PasscodeUnlockScreen({
status === "success" ? "text-l1" : "text-l3" status === "success" ? "text-l1" : "text-l3"
}`} }`}
> >
{status === "success" ? "Access granted" : "Please enter passcode"} {status === "success" ? "验证通过" : "请输入访问口令"}
</span> </span>
<div ref={rowRef} className="flex gap-3"> <div ref={rowRef} className="flex gap-3">
{Array.from({ length: slotCount }).map((_, i) => { {Array.from({ length: slotCount }).map((_, i) => {
+10 -3
View File
@@ -38,6 +38,13 @@ import { useRouteTransitionController } from "@/lib/routeTransition";
// Module-level cache mirroring the original `o` (persists across remounts). // Module-level cache mirroring the original `o` (persists across remounts).
const ratioCache: Record<string, string> = {}; const ratioCache: Record<string, string> = {};
/** 作品卡片右下角类型角标(post 不显示角标)。 */
const TYPE_LABELS: Record<WorkItem["type"], string> = {
post: "文章",
tools: "工具",
event: "活动",
};
export default function WorkSection() { export default function WorkSection() {
const [ratios, setRatios] = useState<Record<string, string>>({ ...ratioCache }); const [ratios, setRatios] = useState<Record<string, string>>({ ...ratioCache });
const [colWidth, setColWidth] = useState(0); const [colWidth, setColWidth] = useState(0);
@@ -124,7 +131,7 @@ export default function WorkSection() {
function WorkCard({ item, ratio }: { item: WorkItem; ratio?: string }) { function WorkCard({ item, ratio }: { item: WorkItem; ratio?: string }) {
const external = item.href.startsWith("http://") || item.href.startsWith("https://"); const external = item.href.startsWith("http://") || item.href.startsWith("https://");
const cls = "group block space-y-3 p-2"; const cls = "group block space-y-3 p-2";
const label = `${item.name} - ${item.year}${external ? " (external)" : ""}`; const label = `${item.name} - ${item.year}${external ? "(外部链接)" : ""}`;
const target = getLayerTarget(item.href); const target = getLayerTarget(item.href);
const { startNavigation } = useRouteTransitionController(); const { startNavigation } = useRouteTransitionController();
const allowed = usePasscodeAllowed(item.href); const allowed = usePasscodeAllowed(item.href);
@@ -143,7 +150,7 @@ function WorkCard({ item, ratio }: { item: WorkItem; ratio?: string }) {
className="top-0 right-0 z-10 absolute bg-selection px-1 font-mono-2 text-black text-xs uppercase pointer-events-none select-none" className="top-0 right-0 z-10 absolute bg-selection px-1 font-mono-2 text-black text-xs uppercase pointer-events-none select-none"
aria-hidden="true" aria-hidden="true"
> >
Coding Project 代码项目
</span> </span>
)} )}
</div> </div>
@@ -153,7 +160,7 @@ function WorkCard({ item, ratio }: { item: WorkItem; ratio?: string }) {
<span>{item.year}</span> <span>{item.year}</span>
{item.type !== "post" && ( {item.type !== "post" && (
<span className="hidden lg:inline-flex items-center gap-1" aria-hidden="true"> <span className="hidden lg:inline-flex items-center gap-1" aria-hidden="true">
<span>{item.type}</span> <span>{TYPE_LABELS[item.type] ?? item.type}</span>
<span>↗</span> <span>↗</span>
</span> </span>
)} )}
+14 -16
View File
@@ -36,7 +36,7 @@ export type WorkArticle = {
export const WORK_ARTICLES: Record<string, WorkArticle> = { export const WORK_ARTICLES: Record<string, WorkArticle> = {
"/reunimos": { "/reunimos": {
title: "Reunimos™", title: "Reunimos™",
date: "May 31, 2026", date: "2026年5月31日",
year: "2024-2026", year: "2024-2026",
iframe: { src: "https://www.reunimos.cc", title: "Reunimos preview" }, iframe: { src: "https://www.reunimos.cc", title: "Reunimos preview" },
blocks: [ blocks: [
@@ -50,7 +50,7 @@ export const WORK_ARTICLES: Record<string, WorkArticle> = {
}, },
"/inspire_mono": { "/inspire_mono": {
title: "Inspire Mono", title: "Inspire Mono",
date: "May 07, 2026", date: "2026年5月7日",
year: "2025", year: "2025",
iframe: null, iframe: null,
blocks: [ blocks: [
@@ -75,7 +75,7 @@ export const WORK_ARTICLES: Record<string, WorkArticle> = {
}, },
"/wasm_design_utils": { "/wasm_design_utils": {
title: "Wasm design utils", title: "Wasm design utils",
date: "May 31, 2026", date: "2026年5月31日",
year: "2025", year: "2025",
iframe: null, iframe: null,
blocks: [ blocks: [
@@ -132,7 +132,7 @@ export const WORK_ARTICLES: Record<string, WorkArticle> = {
}, },
"/adrive": { "/adrive": {
title: "aDrive 阿里云盘", title: "aDrive 阿里云盘",
date: "Jan 07, 2022", date: "2022年1月7日",
year: "", year: "",
iframe: null, iframe: null,
blocks: [ blocks: [
@@ -188,7 +188,7 @@ export const WORK_ARTICLES: Record<string, WorkArticle> = {
}, },
"/shore_icon": { "/shore_icon": {
title: "Shore Icon", title: "Shore Icon",
date: "Mar 01, 2022", date: "2022年3月1日",
year: "2022", year: "2022",
iframe: null, iframe: null,
blocks: [ blocks: [
@@ -264,27 +264,25 @@ export const WORK_ARTICLES: Record<string, WorkArticle> = {
}, },
"/teambition": { "/teambition": {
title: "Teambition", title: "Teambition",
date: "May 31, 2026", date: "2026年5月31日",
year: "2018-2020", year: "2018-2020",
iframe: null, iframe: null,
blocks: [ blocks: [
{ type: "p", segs: [{ t: "text", v: "Work in progress — this page is not finished yet." }] }, { type: "p", segs: [{ t: "text", v: "内容筹备中——本页尚未完成。" }] },
{ type: "p", segs: [{ t: "text", v: "From 2018 to 2020, I worked on product and design at Teambition (Alibaba), focused on collaboration and project management. More details coming soon." }] }, { type: "p", segs: [{ t: "text", v: "2018 至 2020 年,我在 Teambition(阿里巴巴)负责产品与设计工作,专注于协作与项目管理方向,更多细节将陆续补充。" }] },
{ type: "p", segs: [{ t: "link", v: "teambition.com", href: "https://www.teambition.com/" }] }, { type: "p", segs: [{ t: "link", v: "teambition.com", href: "https://www.teambition.com/" }] },
], ],
}, },
// /2026 — the passcode-protected TikTok post. The original article body is // /2026 — the passcode-protected post(品牌国内化为「小红书」)。
// server-gated behind the site's secret passcode and therefore unreadable; // Stand-in content: replace the blocks with real copy when available.
// this is stand-in content in the same structure (swap in real copy if it
// ever becomes available).
"/2026": { "/2026": {
title: "TikTok", title: "小红书",
date: "May 31, 2026", date: "2026年5月31日",
year: "2022-2026", year: "2022-2026",
iframe: null, iframe: null,
blocks: [ blocks: [
{ type: "p", segs: [{ t: "text", v: "This article is passcode-protected on the original site, so its content could not be cloned. What is known from the public bundle: it is a post dated 2022-2026 about design engineering and AI exploration work, protected behind the 4-digit passcode flow." }] }, { type: "p", segs: [{ t: "text", v: "这里会陆续整理我在小红书上分享的内容:设计工程手记、AI 应用演示,以及一些开发过程中的踩坑记录。" }] },
{ type: "p", segs: [{ t: "text", v: "Everything around it — the card, the locked brand label, the unlock screen, and this route — is reproduced 1:1. Unlock with the clone's passcode (default 2026, override with PASSCODE_CODE) to read this page like on the original." }] }, { type: "p", segs: [{ t: "text", v: "图文笔记是一种很舒服的表达方式——把技术细节讲清楚,也把创作过程留下来。欢迎在小红书搜索「北极新一」找到我,这里的更新也会与之同步。" }] },
], ],
}, },
}; };
+12 -11
View File
@@ -1,16 +1,17 @@
/** /**
* Passcode constants + pure helpers — 1:1 port of the original modules * Passcode constants + pure helpers — ported from the original modules
* 58156 (paths/href) and 28116 (brand label) from d59f7a97fb1c563f.js. * 58156 (paths/href) and 28116 (brand label) from d59f7a97fb1c563f.js,
* 国内化:品牌标签 TikTok → 小红书。
* *
* The single passcode-protected scope is the TikTok work entry (/2026). * The single passcode-protected scope is the 小红书 work entry (/2026).
* The brand label itself is obfuscated in the original bundle as char codes * The brand label stays obfuscated as char codes minus one
* minus one; we keep the same obfuscation. * (same scheme as the original bundle).
*/ */
/** Original module 28116 `d` = "TikTok".charCodes + 1. */ /** "小红书".charCodes + 1(与原站 TikTok 相同的混淆方案)。 */
const BRAND_CODES = [85, 106, 108, 85, 112, 108]; const BRAND_CODES = [23568, 32419, 20071];
/** revealBrandLabel() — decodes to "TikTok". */ /** revealBrandLabel() — decodes to "小红书". */
export function revealBrandLabel(): string { export function revealBrandLabel(): string {
let out = ""; let out = "";
for (let i = 0; i < BRAND_CODES.length; i += 1) { for (let i = 0; i < BRAND_CODES.length; i += 1) {
@@ -19,14 +20,14 @@ export function revealBrandLabel(): string {
return out; return out;
} }
/** revealBrandLabelLength() — 6. */ /** revealBrandLabelLength() — 3. */
export function revealBrandLabelLength(): number { export function revealBrandLabelLength(): number {
return BRAND_CODES.length; return BRAND_CODES.length;
} }
/** passcodeLockedPlaceholderText() — "■■■■■■". */ /** passcodeLockedPlaceholderText() — "■■■"(与品牌标签等宽)。 */
export function passcodeLockedPlaceholderText(): string { export function passcodeLockedPlaceholderText(): string {
return "■■■■■■"; return "■■■";
} }
export const PASSCODE_LOCKED_CHAR_CLASS = export const PASSCODE_LOCKED_CHAR_CLASS =
+7 -8
View File
@@ -1,12 +1,11 @@
/** /**
* WORK_ITEMS — 1:1 from the original d59f7a97fb1c563f.js (module 28116), * WORK_ITEMS — from the original d59f7a97fb1c563f.js (module 28116),
* including the passcode-protected first entry (the original grid filters it * including the passcode-protected first entry (the grid filters it via
* via `WORK_ITEMS.filter(t => !t.passcodeProtected || lookup(t.href))` — the * `WORK_ITEMS.filter(t => !t.passcodeProtected || lookup(t.href))` — the
* locked one reveals the brand label "TikTok"; see WorkSection). * locked one reveals the brand label "小红书"; see WorkSection).
* *
* Internal detail routes render app/work/[slug]/page.tsx (content extracted * Internal detail routes render app/work/[slug]/page.tsx; clicks go through
* 1:1 from the original pages); clicks go through the cover/reveal * the cover/reveal transition (startNavigation).
* transition (startNavigation).
*/ */
import { revealBrandLabel } from "@/lib/passcode"; import { revealBrandLabel } from "@/lib/passcode";
@@ -26,7 +25,7 @@ export const SELECTED_WORK_SECTION_ID = "selected-work";
export const WORK_ITEMS: WorkItem[] = [ export const WORK_ITEMS: WorkItem[] = [
{ {
name: revealBrandLabel(), // "TikTok" — obfuscated in the original bundle name: revealBrandLabel(), // "小红书" — char-code obfuscated, 同原站方案
imageUrl: "/work/tt01.png", imageUrl: "/work/tt01.png",
hoverImageUrl: "/work/tt02.png", hoverImageUrl: "/work/tt02.png",
href: "/2026", href: "/2026",
+1
View File
@@ -29,6 +29,7 @@
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^19", "@types/react": "^19",
"@types/react-dom": "^19", "@types/react-dom": "^19",
"cn-font-split": "^7.4.3",
"eslint": "^9", "eslint": "^9",
"eslint-config-next": "16.3.3", "eslint-config-next": "16.3.3",
"tailwindcss": "^4", "tailwindcss": "^4",
+179
View File
@@ -63,6 +63,9 @@ importers:
'@types/react-dom': '@types/react-dom':
specifier: ^19 specifier: ^19
version: 19.2.5(@types/react@19.2.18) version: 19.2.5(@types/react@19.2.18)
cn-font-split:
specifier: ^7.4.3
version: 7.4.3
eslint: eslint:
specifier: ^9 specifier: ^9
version: 9.39.5(jiti@2.7.0)(supports-color@7.1.0) version: 9.39.5(jiti@2.7.0)(supports-color@7.1.0)
@@ -499,6 +502,33 @@ packages:
resolution: {integrity: sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==} resolution: {integrity: sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==}
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
'@protobufjs/aspromise@1.1.2':
resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
'@protobufjs/base64@1.1.2':
resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==}
'@protobufjs/codegen@2.0.5':
resolution: {integrity: sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==}
'@protobufjs/eventemitter@1.1.1':
resolution: {integrity: sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==}
'@protobufjs/fetch@1.1.1':
resolution: {integrity: sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==}
'@protobufjs/float@1.0.2':
resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==}
'@protobufjs/path@1.1.2':
resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==}
'@protobufjs/pool@1.1.0':
resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==}
'@protobufjs/utf8@1.1.2':
resolution: {integrity: sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==}
'@react-three/drei@10.7.8': '@react-three/drei@10.7.8':
resolution: {integrity: sha512-rJXyuzLm2Xq0kafHuR47ajDGbOe/pEhzIr4m8E8zwzQs0iNjloFDqBwRhrXmP/w+onLeYyN3EYPFW/cwWK/4yA==} resolution: {integrity: sha512-rJXyuzLm2Xq0kafHuR47ajDGbOe/pEhzIr4m8E8zwzQs0iNjloFDqBwRhrXmP/w+onLeYyN3EYPFW/cwWK/4yA==}
peerDependencies: peerDependencies:
@@ -914,6 +944,9 @@ packages:
resolution: {integrity: sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==} resolution: {integrity: sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==}
engines: {node: '>=10'} engines: {node: '>=10'}
change-case@5.4.4:
resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==}
client-only@0.0.1: client-only@0.0.1:
resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
@@ -921,6 +954,10 @@ packages:
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
engines: {node: '>=6'} engines: {node: '>=6'}
cn-font-split@7.4.3:
resolution: {integrity: sha512-qAOyG1P20aWQJlFfKqdPIQeKL2y1sHbaoy76gaEVgtBTN4Z00IDHVpzGU9bNqdXu7nZSDdyWV65llsvKah2RSg==}
hasBin: true
color-convert@2.0.1: color-convert@2.0.1:
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
engines: {node: '>=7.0.0'} engines: {node: '>=7.0.0'}
@@ -928,6 +965,14 @@ packages:
color-name@1.1.4: color-name@1.1.4:
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
commander@12.1.0:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'}
commander@13.1.0:
resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==}
engines: {node: '>=18'}
concat-map@0.0.1: concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
@@ -1252,6 +1297,10 @@ packages:
resolution: {integrity: sha512-lXeSPRCndWPaipZbtI4CkvTZpF6OPsy19dkvf7+5AHeJD+w+iAKPc9Q78xWBmX4SdR+8xrtY9jTXs/YDv8q+Ug==} resolution: {integrity: sha512-lXeSPRCndWPaipZbtI4CkvTZpF6OPsy19dkvf7+5AHeJD+w+iAKPc9Q78xWBmX4SdR+8xrtY9jTXs/YDv8q+Ug==}
engines: {node: '>=14'} engines: {node: '>=14'}
fs-extra@11.4.0:
resolution: {integrity: sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==}
engines: {node: '>=14.14'}
function-bind@1.1.2: function-bind@1.1.2:
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
@@ -1323,6 +1372,9 @@ packages:
glsl-noise@0.0.0: glsl-noise@0.0.0:
resolution: {integrity: sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==} resolution: {integrity: sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==}
google-protobuf@3.21.4:
resolution: {integrity: sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==}
gopd@1.2.0: gopd@1.2.0:
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
@@ -1472,6 +1524,14 @@ packages:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'} engines: {node: '>=0.12.0'}
is-plain-object@2.0.4:
resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==}
engines: {node: '>=0.10.0'}
is-primitive@3.0.1:
resolution: {integrity: sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==}
engines: {node: '>=0.10.0'}
is-promise@2.2.2: is-promise@2.2.2:
resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==}
@@ -1521,6 +1581,10 @@ packages:
isexe@2.0.0: isexe@2.0.0:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
isobject@3.0.1:
resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==}
engines: {node: '>=0.10.0'}
iterator.prototype@1.1.5: iterator.prototype@1.1.5:
resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==} resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
@@ -1571,6 +1635,9 @@ packages:
engines: {node: '>=6'} engines: {node: '>=6'}
hasBin: true hasBin: true
jsonfile@6.2.1:
resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==}
jsx-ast-utils@3.3.5: jsx-ast-utils@3.3.5:
resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==} resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
engines: {node: '>=4.0'} engines: {node: '>=4.0'}
@@ -1578,6 +1645,9 @@ packages:
keyv@4.5.4: keyv@4.5.4:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
koffi@2.10.0:
resolution: {integrity: sha512-TkCU8t2KE/ZcWGh87nRvqMPg0p2t+MXCz/6zAmQohf2UKyVPjGnx0suY88EeQbrP9aIMDVqgUu2j9phy/srqng==}
language-subtag-registry@0.3.20: language-subtag-registry@0.3.20:
resolution: {integrity: sha512-KPMwROklF4tEx283Xw0pNKtfTj1gZ4UByp4EsIFWLgBavJltF4TiYPc39k06zSTsLzxTVXXDSpbwaQXaFB4Qeg==} resolution: {integrity: sha512-KPMwROklF4tEx283Xw0pNKtfTj1gZ4UByp4EsIFWLgBavJltF4TiYPc39k06zSTsLzxTVXXDSpbwaQXaFB4Qeg==}
@@ -1687,6 +1757,9 @@ packages:
lodash.merge@4.6.2: lodash.merge@4.6.2:
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
long@5.3.2:
resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==}
loose-envify@1.4.0: loose-envify@1.4.0:
resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
hasBin: true hasBin: true
@@ -1922,6 +1995,14 @@ packages:
prop-types@15.8.1: prop-types@15.8.1:
resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
proto-to-cli@1.2.1:
resolution: {integrity: sha512-Wga68qpLWHad9ZmC+gORp+ZxyzFb6I+nfwFoZyJw8rSGlEHr9XhH4mzDQ0fWqCbECKZBBVneaLR8ZUI5TLBPSA==}
hasBin: true
protobufjs@7.6.6:
resolution: {integrity: sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==}
engines: {node: '>=12.0.0'}
punycode@2.3.1: punycode@2.3.1:
resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
engines: {node: '>=6'} engines: {node: '>=6'}
@@ -2022,6 +2103,10 @@ packages:
resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==} resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
set-value@4.1.0:
resolution: {integrity: sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==}
engines: {node: '>=11.0'}
sharp@0.35.4: sharp@0.35.4:
resolution: {integrity: sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==} resolution: {integrity: sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==}
engines: {node: '>=20.9.0'} engines: {node: '>=20.9.0'}
@@ -2255,6 +2340,10 @@ packages:
undici-types@6.21.0: undici-types@6.21.0:
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
universalify@2.0.1:
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
update-browserslist-db@1.3.2: update-browserslist-db@1.3.2:
resolution: {integrity: sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==} resolution: {integrity: sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==}
hasBin: true hasBin: true
@@ -2746,6 +2835,26 @@ snapshots:
tiny-glob: 0.2.9 tiny-glob: 0.2.9
tslib: 2.8.1 tslib: 2.8.1
'@protobufjs/aspromise@1.1.2': {}
'@protobufjs/base64@1.1.2': {}
'@protobufjs/codegen@2.0.5': {}
'@protobufjs/eventemitter@1.1.1': {}
'@protobufjs/fetch@1.1.1':
dependencies:
'@protobufjs/aspromise': 1.1.2
'@protobufjs/float@1.0.2': {}
'@protobufjs/path@1.1.2': {}
'@protobufjs/pool@1.1.0': {}
'@protobufjs/utf8@1.1.2': {}
'@react-three/drei@10.7.8(@react-three/fiber@9.7.0(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.185.1))(@types/react@19.2.18)(@types/three@0.185.4)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.185.1)': '@react-three/drei@10.7.8(@react-three/fiber@9.7.0(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.185.1))(@types/react@19.2.18)(@types/three@0.185.4)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.185.1)':
dependencies: dependencies:
'@babel/runtime': 7.29.7 '@babel/runtime': 7.29.7
@@ -3214,16 +3323,32 @@ snapshots:
ansi-styles: 4.1.0 ansi-styles: 4.1.0
supports-color: 7.1.0 supports-color: 7.1.0
change-case@5.4.4: {}
client-only@0.0.1: {} client-only@0.0.1: {}
clsx@2.1.1: {} clsx@2.1.1: {}
cn-font-split@7.4.3:
dependencies:
buffer: 6.0.3
commander: 12.1.0
fs-extra: 11.4.0
google-protobuf: 3.21.4
koffi: 2.10.0
proto-to-cli: 1.2.1
set-value: 4.1.0
color-convert@2.0.1: color-convert@2.0.1:
dependencies: dependencies:
color-name: 1.1.4 color-name: 1.1.4
color-name@1.1.4: {} color-name@1.1.4: {}
commander@12.1.0: {}
commander@13.1.0: {}
concat-map@0.0.1: {} concat-map@0.0.1: {}
convert-source-map@2.0.0: {} convert-source-map@2.0.0: {}
@@ -3705,6 +3830,12 @@ snapshots:
cross-spawn: 7.0.6 cross-spawn: 7.0.6
signal-exit: 4.1.0 signal-exit: 4.1.0
fs-extra@11.4.0:
dependencies:
graceful-fs: 4.2.11
jsonfile: 6.2.1
universalify: 2.0.1
function-bind@1.1.2: {} function-bind@1.1.2: {}
function.prototype.name@1.2.0: function.prototype.name@1.2.0:
@@ -3793,6 +3924,8 @@ snapshots:
glsl-noise@0.0.0: {} glsl-noise@0.0.0: {}
google-protobuf@3.21.4: {}
gopd@1.2.0: {} gopd@1.2.0: {}
graceful-fs@4.2.11: {} graceful-fs@4.2.11: {}
@@ -3927,6 +4060,12 @@ snapshots:
is-number@7.0.0: {} is-number@7.0.0: {}
is-plain-object@2.0.4:
dependencies:
isobject: 3.0.1
is-primitive@3.0.1: {}
is-promise@2.2.2: {} is-promise@2.2.2: {}
is-regex@1.2.1: is-regex@1.2.1:
@@ -3976,6 +4115,8 @@ snapshots:
isexe@2.0.0: {} isexe@2.0.0: {}
isobject@3.0.1: {}
iterator.prototype@1.1.5: iterator.prototype@1.1.5:
dependencies: dependencies:
define-data-property: 1.1.4 define-data-property: 1.1.4
@@ -4022,6 +4163,12 @@ snapshots:
json5@2.2.3: {} json5@2.2.3: {}
jsonfile@6.2.1:
dependencies:
universalify: 2.0.1
optionalDependencies:
graceful-fs: 4.2.11
jsx-ast-utils@3.3.5: jsx-ast-utils@3.3.5:
dependencies: dependencies:
array-includes: 3.1.9 array-includes: 3.1.9
@@ -4033,6 +4180,8 @@ snapshots:
dependencies: dependencies:
json-buffer: 3.0.1 json-buffer: 3.0.1
koffi@2.10.0: {}
language-subtag-registry@0.3.20: {} language-subtag-registry@0.3.20: {}
language-tags@1.0.9: language-tags@1.0.9:
@@ -4107,6 +4256,8 @@ snapshots:
lodash.merge@4.6.2: {} lodash.merge@4.6.2: {}
long@5.3.2: {}
loose-envify@1.4.0: loose-envify@1.4.0:
dependencies: dependencies:
js-tokens: 3.0.0 js-tokens: 3.0.0
@@ -4340,6 +4491,27 @@ snapshots:
object-assign: 4.1.1 object-assign: 4.1.1
react-is: 16.13.1 react-is: 16.13.1
proto-to-cli@1.2.1:
dependencies:
change-case: 5.4.4
commander: 13.1.0
fs-extra: 11.4.0
protobufjs: 7.6.6
protobufjs@7.6.6:
dependencies:
'@protobufjs/aspromise': 1.1.2
'@protobufjs/base64': 1.1.2
'@protobufjs/codegen': 2.0.5
'@protobufjs/eventemitter': 1.1.1
'@protobufjs/fetch': 1.1.1
'@protobufjs/float': 1.0.2
'@protobufjs/path': 1.1.2
'@protobufjs/pool': 1.1.0
'@protobufjs/utf8': 1.1.2
'@types/node': 20.19.43
long: 5.3.2
punycode@2.3.1: {} punycode@2.3.1: {}
queue-microtask@1.2.3: {} queue-microtask@1.2.3: {}
@@ -4451,6 +4623,11 @@ snapshots:
es-errors: 1.3.0 es-errors: 1.3.0
es-object-atoms: 1.1.2 es-object-atoms: 1.1.2
set-value@4.1.0:
dependencies:
is-plain-object: 2.0.4
is-primitive: 3.0.1
sharp@0.35.4(@types/node@20.19.43): sharp@0.35.4(@types/node@20.19.43):
dependencies: dependencies:
'@img/colour': 1.1.0 '@img/colour': 1.1.0
@@ -4762,6 +4939,8 @@ snapshots:
undici-types@6.21.0: {} undici-types@6.21.0: {}
universalify@2.0.1: {}
update-browserslist-db@1.3.2(browserslist@4.28.8): update-browserslist-db@1.3.2(browserslist@4.28.8):
dependencies: dependencies:
browserslist: 4.28.8 browserslist: 4.28.8
+7
View File
@@ -1,3 +1,10 @@
allowBuilds: allowBuilds:
cn-font-split: true
koffi: true
protobufjs: true
sharp: false sharp: false
unrs-resolver: false unrs-resolver: false
onlyBuiltDependencies:
- cn-font-split
- koffi
- protobufjs

Some files were not shown because too many files have changed in this diff Show More