feat: Next.js 后端 + SQLite + 暗门后台 /virtheart + 服务咨询页
后端(node:sqlite 零原生依赖,data/site.db,WAL + busy_timeout 抗并发): - works / service_items / site_config / inquiries / admin_users / admin_sessions / captcha_challenges - API:admin 登录登出/密码、作品与服务 CRUD、图片上传、留言箱、 验证码 challenge/verify、咨询提交(一次性滑块令牌防重放) 后台 /virtheart(仅手动访问,未登录一律 307 → /virtheart/login): - 服务端布局鉴权 + DB 会话(httpOnly cookie 7 天)+ CSRF 头校验 - 概览 / 作品(上传、网格预设、发布开关)/ 服务 / 留言箱 / 配置(全站文案) - 设计与主站同语言:暗底点阵、mono、lime 选中,非传统后台模板 公开站: - 路由组 (site) 隔离站点壳层;首页/服务页文案全部 DB 驱动即时生效 - /services 服务菜单 + 留言表单 + 全屏居中滑块拼图验证码(对齐缺口) - 提交入 inquiries 并 SMTP(飞书 notify@)邮件通知 chenchun@virtheart.com - Header 新增「服务」菜单;旧作品清理,空状态自动接管 - 根布局仅承载字体/全局样式,后台无站点壳层 验证:登录/CSRF/发布隔离/滑块容错/令牌单次消费/SMTP 真发全部通过; lint 与基线一致(119 errors 均为存量)。
This commit is contained in:
+5
-107
@@ -23,110 +23,8 @@ export type WorkItem = {
|
||||
|
||||
export const SELECTED_WORK_SECTION_ID = "selected-work";
|
||||
|
||||
export const WORK_ITEMS: WorkItem[] = [
|
||||
{
|
||||
name: revealBrandLabel(), // "小红书" — char-code obfuscated, 同原站方案
|
||||
imageUrl: "/work/tt01.png",
|
||||
hoverImageUrl: "/work/tt02.png",
|
||||
href: "/2026",
|
||||
year: "2022-2026",
|
||||
type: "post",
|
||||
gridClass: "col-span-12 lg:col-span-8 lg:col-start-3",
|
||||
passcodeProtected: true,
|
||||
},
|
||||
{
|
||||
name: "Reunimos™",
|
||||
imageUrl: "/work/reunimos01.png",
|
||||
hoverImageUrl: "/work/reunimos02.png",
|
||||
href: "/reunimos",
|
||||
year: "2024-2026",
|
||||
type: "post",
|
||||
gridClass: "col-span-12 lg:col-span-8 lg:col-start-5",
|
||||
codingProject: true,
|
||||
},
|
||||
{
|
||||
name: "Inspire Mono",
|
||||
imageUrl: "/work/inspire_mono_01.png",
|
||||
hoverImageUrl: "/work/inspire_mono_02.png",
|
||||
href: "/inspire_mono",
|
||||
year: "2025",
|
||||
type: "post",
|
||||
gridClass: "col-span-12 lg:col-start-1 lg:col-span-6 xl:col-span-5",
|
||||
codingProject: true,
|
||||
},
|
||||
{
|
||||
name: "Wasm design utils",
|
||||
imageUrl: "/work/wasm01.png",
|
||||
hoverImageUrl: "/work/wasm02.png",
|
||||
href: "/wasm_design_utils",
|
||||
year: "2025",
|
||||
type: "post",
|
||||
gridClass: "col-span-12 lg:col-span-6 xl:col-span-5 lg:col-start-7 xl:col-start-7",
|
||||
codingProject: true,
|
||||
},
|
||||
{
|
||||
name: "VectorSymbols",
|
||||
imageUrl: "/work/vs01.png",
|
||||
hoverImageUrl: "/work/vs02.png",
|
||||
href: "https://www.figma.com/community/plugin/1255914175202017737/vectorsymbols",
|
||||
year: "2023",
|
||||
type: "tools",
|
||||
gridClass: "col-span-6 lg:col-start-5 lg:col-span-4 xl:col-start-6 xl:col-span-3",
|
||||
codingProject: true,
|
||||
},
|
||||
{
|
||||
name: "DarkSide",
|
||||
imageUrl: "/work/ds01.png",
|
||||
hoverImageUrl: "/work/ds02.png",
|
||||
href: "https://www.figma.com/community/plugin/986289377230504703/darkside",
|
||||
year: "2021",
|
||||
type: "tools",
|
||||
gridClass: "col-span-6 lg:col-start-9 lg:col-span-4 xl:col-start-10 xl:col-span-3",
|
||||
codingProject: true,
|
||||
},
|
||||
{
|
||||
name: "aDrive 阿里云盘",
|
||||
imageUrl: "/work/ali01.png",
|
||||
hoverImageUrl: "/work/ali02.png",
|
||||
href: "/adrive",
|
||||
year: "2020-2022",
|
||||
type: "post",
|
||||
gridClass: "col-span-12 lg:col-start-1 lg:col-span-4 xl:col-start-1 xl:col-span-3",
|
||||
},
|
||||
{
|
||||
name: "Shore Icon",
|
||||
imageUrl: "/work/si.png",
|
||||
hoverImageUrl: "/work/si02.png",
|
||||
href: "/shore_icon",
|
||||
year: "2022",
|
||||
type: "post",
|
||||
gridClass: "col-span-6 lg:col-start-5 lg:col-span-4 xl:col-start-5 xl:col-span-3",
|
||||
},
|
||||
{
|
||||
name: "Teambition",
|
||||
imageUrl: "/work/c4.png",
|
||||
hoverImageUrl: "/work/c4.png",
|
||||
href: "/teambition",
|
||||
year: "2018-2020",
|
||||
type: "post",
|
||||
gridClass: "col-span-6 lg:col-start-9 lg:col-span-4 xl:col-start-9 xl:col-span-3",
|
||||
},
|
||||
{
|
||||
name: "FoF: See Hear Touch",
|
||||
imageUrl: "/work/s01.png",
|
||||
hoverImageUrl: "/work/s02.png",
|
||||
href: "https://friends.figma.com/events/details/figma-shanghai-presents-see-hear-touch/",
|
||||
year: "2022",
|
||||
type: "event",
|
||||
gridClass: "col-span-6 lg:col-start-5 lg:col-span-4 xl:col-start-6 xl:col-span-3",
|
||||
},
|
||||
{
|
||||
name: "FoF: Design System",
|
||||
imageUrl: "/work/sd01.png",
|
||||
hoverImageUrl: "/work/sd02.png",
|
||||
href: "https://friends.figma.com/events/details/figma-shanghai-presents-design-system/",
|
||||
year: "2021",
|
||||
type: "event",
|
||||
gridClass: "col-span-6 lg:col-start-9 lg:col-span-4 xl:col-start-10 xl:col-span-3",
|
||||
},
|
||||
];
|
||||
/**
|
||||
* 作品数据已迁移至 SQLite(site_config + works 表),由后台管理。
|
||||
* 此处保留类型定义;运行时数据通过 lib/siteConfig.ts 从 DB 读取。
|
||||
*/
|
||||
export const WORK_ITEMS: WorkItem[] = [];
|
||||
|
||||
Reference in New Issue
Block a user