feat: 全量落地后端与功能闭环

- 真实后端(server/):SQLite 存储 + scrypt 会话鉴权 + SMTP 邮件
  - auth 注册/登录/登出/me/资料更新
  - contact 联系表单(落库+邮件)、newsletter 订阅(去重)
  - favorites 作品收藏、comments 新闻评论、account 管理收件箱
- 用户系统 UI:个人中心 /account(资料/收藏/评论/管理员面板)、
  收藏按钮、评论组件、登录/注册弹窗接真实 API(useApiError 错误映射)
- 内容单点事实源:app/data/news|work 消除三处重复,页面全部引用
- 修复断链:首页动态/作品卡可点击、分享按钮真实动作、移除 # 死链、
  语言切换器、社交链接统一 siteConfig
- SEO:动态 sitemap/robots、JSON-LD、脚本生成真实 og-image.png
- 列表增强:搜索 + 加载更多
- 部署自动化:build-and-push.sh 支持 git tag 版本化镜像;
  deploy.sh 一条命令构建推送+注入 Secret/ConfigMap+kubectl 滚动升级;
  deployment 挂 PVC 持久化;Dockerfile 支持 better-sqlite3 原生编译
- 组件注册去目录前缀,修复 AppLoader/AnimatedButton 等未渲染问题
This commit is contained in:
2026-08-06 15:00:56 +08:00
parent 6192ae0a38
commit 5c3f3bca63
61 changed files with 3408 additions and 1318 deletions
+135 -36
View File
@@ -32,13 +32,7 @@
"work": {
"label": "Portfolio 26©",
"title": "Work",
"viewAll": "View all work",
"items": {
"forma": "Forma Digital",
"oneStep": "One Step",
"neroVision": "Nero Vision",
"boldMoves": "Bold Moves"
}
"viewAll": "View all work"
},
"services": {
"title": "Our Services",
@@ -239,34 +233,7 @@
"updates": {
"title": "Latest Updates",
"subtitle": "Explore our latest projects, blog posts, and industry insights",
"viewAll": "View All Updates",
"categories": {
"project": "Project",
"blog": "Blog",
"news": "News"
},
"items": {
"project1": {
"title": "Brand Redesign: Modern E-commerce Platform",
"description": "Created a new brand identity and user experience for a leading e-commerce platform, boosting conversion by 45%."
},
"blog1": {
"title": "Web Design Trends in 2026"
},
"news1": {
"title": "Awarded Best Design Studio"
},
"project2": {
"title": "AI-Powered Recommendation System",
"description": "Developed an innovative AI recommendation engine for personalized experiences."
},
"blog2": {
"title": "How to Boost Website Performance"
},
"news2": {
"title": "Team Expands to 50 Members"
}
}
"viewAll": "View All Updates"
},
"cta": {
"titleLine1": "Ready to Start",
@@ -310,6 +277,32 @@
},
"cta": "View Project",
"backToList": "Back to Work",
"items": {
"forma-digital": {
"title": "Forma Digital",
"description": "A modern e-commerce platform with seamless user experience and dynamic product showcases."
},
"one-step": {
"title": "One Step",
"description": "Brand identity and marketing campaign for a fitness app focused on sustainable habits."
},
"nero-vision": {
"title": "Nero Vision",
"description": "Full-stack web application for creative professionals to manage their portfolios."
},
"bold-moves": {
"title": "Bold Moves",
"description": "Interactive website showcasing innovative architectural designs with 3D visualizations."
},
"echo-labs": {
"title": "Echo Labs",
"description": "Corporate branding and visual identity for a tech startup in the AI space."
},
"flux-api": {
"title": "Flux API",
"description": "Scalable REST API with comprehensive documentation and developer tools."
}
},
"detail": {
"overview": "Overview",
"challenge": "Challenge",
@@ -425,6 +418,33 @@
"projects": "Projects",
"announcements": "Announcements"
},
"minutes": "min",
"items": {
"design-trends-2026": {
"title": "Design Trends Shaping 2026",
"excerpt": "Explore the emerging design trends defining digital experiences this year, from minimalism to bold typography."
},
"forma-digital-launch": {
"title": "Forma Digital Platform Launch",
"excerpt": "We are excited to announce the successful launch of Forma Digital, a revolutionary e-commerce experience."
},
"studio-expansion": {
"title": "Studio Expansion Announcement",
"excerpt": "ArcticNewOne is growing! We are expanding our team and capabilities to serve you better."
},
"ux-research-methods": {
"title": "Modern UX Research Methods",
"excerpt": "Dive into the latest user experience research methodologies, from remote testing to behavioral analytics."
},
"bold-moves-case-study": {
"title": "Bold Moves: A Case Study",
"excerpt": "Behind the scenes of our award-winning architectural visualization project featuring cutting-edge 3D technology."
},
"new-tools-integration": {
"title": "New Tools Added to Our Platform",
"excerpt": "Check out the latest additions to our toolbox across design, development and collaboration."
}
},
"detail": {
"shareArticle": "Share Article",
"relatedArticles": "Related Articles",
@@ -523,6 +543,85 @@
"passwordMismatch": "Passwords do not match",
"invalidPhone": "Invalid phone number format",
"alreadyHaveAccount": "Already have an account?",
"backToLogin": "Back to Login"
"backToLogin": "Back to Login",
"usernameTaken": "Username is already taken",
"emailTaken": "This email is already registered",
"invalidCredentials": "Incorrect account or password",
"passwordTooShort": "Password must be at least 8 characters",
"invalidUsername": "Username must be 2-20 characters (letters, digits, underscores, Chinese)",
"invalidEmail": "Invalid email address",
"loginRequired": "Please sign in first",
"serverError": "Server error. Please try again later."
},
"account": {
"title": "My Account",
"profile": "Profile",
"favorites": "Favorites",
"comments": "My Comments",
"adminTitle": "Admin",
"username": "Username",
"email": "Email",
"phone": "Phone",
"joinedAt": "Joined",
"role": "Role",
"roleAdmin": "Admin",
"roleUser": "User",
"save": "Save Changes",
"saving": "Saving...",
"saved": "Saved",
"saveFailed": "Failed to save. Please try again.",
"emptyFavorites": "No favorites yet. Go to the Work page to explore.",
"emptyComments": "No comments posted yet",
"admin": {
"contacts": "Contact Messages",
"subscribers": "Newsletter Subscribers",
"emptyContacts": "No contact messages",
"emptySubscribers": "No subscribers yet",
"name": "Name",
"email": "Email",
"subject": "Subject",
"message": "Message",
"date": "Date",
"delivered": "Delivered to inbox",
"notDelivered": "Not delivered (SMTP not configured)"
}
},
"comments": {
"title": "Comments",
"placeholder": "Share your thoughts...",
"submit": "Post Comment",
"submitting": "Posting...",
"empty": "No comments yet. Be the first to comment.",
"loginToComment": "Sign in to join the discussion",
"commentError": "Failed to post comment. Please try again."
},
"favorites": {
"add": "Favorite",
"remove": "Unfavorite",
"added": "Favorited",
"loginToFavorite": "Sign in to favorite this project"
},
"search": {
"placeholder": "Search...",
"empty": "No matching results"
},
"pagination": {
"loadMore": "Load More",
"noMore": "All loaded"
},
"share": {
"article": "Share this article",
"copy": "Copy link",
"copied": "Link copied",
"copyFailed": "Copy failed. Please copy the URL from the address bar."
},
"lang": {
"toEnglish": "English",
"toChinese": "中文"
},
"newsletter": {
"subscribed": "Subscribed! Thank you for joining.",
"alreadySubscribed": "You are already subscribed",
"error": "Subscription failed. Please try again."
}
}
+135 -36
View File
@@ -32,13 +32,7 @@
"work": {
"label": "作品集 26©",
"title": "Work",
"viewAll": "查看全部作品",
"items": {
"forma": "Forma Digital",
"oneStep": "One Step",
"neroVision": "Nero Vision",
"boldMoves": "Bold Moves"
}
"viewAll": "查看全部作品"
},
"services": {
"title": "我们的服务",
@@ -239,34 +233,7 @@
"updates": {
"title": "最新动态",
"subtitle": "探索我们最新的项目、博客文章和行业洞察",
"viewAll": "查看全部动态",
"categories": {
"project": "项目",
"blog": "博客",
"news": "新闻"
},
"items": {
"project1": {
"title": "品牌重塑:现代电商平台设计",
"description": "为领先的电商平台打造全新品牌形象和用户体验,提升转化率 45%。"
},
"blog1": {
"title": "2026 年 Web 设计趋势"
},
"news1": {
"title": "公司荣获最佳设计奖"
},
"project2": {
"title": "AI 驱动的智能推荐系统",
"description": "开发创新的 AI 推荐引擎,个性化用户体验。"
},
"blog2": {
"title": "如何提升网站性能"
},
"news2": {
"title": "团队规模扩大至 50 人"
}
}
"viewAll": "查看全部动态"
},
"cta": {
"titleLine1": "准备好开始",
@@ -310,6 +277,32 @@
},
"cta": "查看项目",
"backToList": "返回作品列表",
"items": {
"forma-digital": {
"title": "Forma Digital",
"description": "现代化的电商平台,无缝用户体验与动态产品展示。"
},
"one-step": {
"title": "One Step",
"description": "为健身应用打造的品牌形象与营销战役,聚焦可持续习惯养成。"
},
"nero-vision": {
"title": "Nero Vision",
"description": "面向创意专业人士的全栈作品集管理应用。"
},
"bold-moves": {
"title": "Bold Moves",
"description": "以 3D 可视化展示创新建筑设计的交互式网站。"
},
"echo-labs": {
"title": "Echo Labs",
"description": "AI 科技创业公司的企业品牌与视觉识别。"
},
"flux-api": {
"title": "Flux API",
"description": "具备完善文档与开发者工具的可扩展 REST API 服务。"
}
},
"detail": {
"overview": "项目概述",
"challenge": "项目挑战",
@@ -425,6 +418,33 @@
"projects": "项目动态",
"announcements": "公告通知"
},
"minutes": "分钟",
"items": {
"design-trends-2026": {
"title": "2026 年设计趋势展望",
"excerpt": "从极简主义的回归到大胆排版的兴起,从 3D 元素普及到 AI 辅助设计成熟,探索塑造今年数字体验的前沿趋势。"
},
"forma-digital-launch": {
"title": "Forma Digital 电商平台正式上线",
"excerpt": "我们很高兴地宣布 Forma Digital 电商平台正式上线,上线后转化率提升 45%。"
},
"studio-expansion": {
"title": "工作室扩张公告",
"excerpt": "ArcticNewOne 正在成长!我们正在扩展团队与服务能力,以更好地服务客户。"
},
"ux-research-methods": {
"title": "现代 UX 研究方法",
"excerpt": "深入解析影响我们设计决策的最新用户体验研究方法,从远程测试到行为数据分析。"
},
"bold-moves-case-study": {
"title": "Bold Moves:项目复盘",
"excerpt": "走进我们屡获殊荣的建筑可视化项目幕后,见证前沿 3D 技术如何重塑用户体验。"
},
"new-tools-integration": {
"title": "工具箱新增多款实用工具",
"excerpt": "看看我们工具箱的最新成员,覆盖设计、开发、协作,助你精简工作流、提升生产力。"
}
},
"detail": {
"shareArticle": "分享文章",
"relatedArticles": "相关文章",
@@ -523,6 +543,85 @@
"passwordMismatch": "两次输入的密码不一致",
"invalidPhone": "手机号格式不正确",
"alreadyHaveAccount": "已有账号?",
"backToLogin": "返回登录"
"backToLogin": "返回登录",
"usernameTaken": "用户名已被使用",
"emailTaken": "该邮箱已被注册",
"invalidCredentials": "账号或密码错误",
"passwordTooShort": "密码至少需要 8 位",
"invalidUsername": "用户名需为 2-20 位字符(字母、数字、下划线、中文)",
"invalidEmail": "邮箱格式不正确",
"loginRequired": "请先登录后操作",
"serverError": "服务器开小差了,请稍后再试"
},
"account": {
"title": "个人中心",
"profile": "个人资料",
"favorites": "我的收藏",
"comments": "我的评论",
"adminTitle": "管理面板",
"username": "用户名",
"email": "邮箱",
"phone": "手机号",
"joinedAt": "注册时间",
"role": "角色",
"roleAdmin": "管理员",
"roleUser": "普通用户",
"save": "保存修改",
"saving": "保存中...",
"saved": "已保存",
"saveFailed": "保存失败,请重试",
"emptyFavorites": "还没有收藏任何作品,去「作品」页看看吧",
"emptyComments": "还没有发表过评论",
"admin": {
"contacts": "联系消息",
"subscribers": "邮箱订阅",
"emptyContacts": "暂无联系消息",
"emptySubscribers": "暂无订阅用户",
"name": "姓名",
"email": "邮箱",
"subject": "主题",
"message": "留言内容",
"date": "时间",
"delivered": "已送达邮箱",
"notDelivered": "未送达(SMTP 未配置)"
}
},
"comments": {
"title": "评论",
"placeholder": "写下你的想法…",
"submit": "发表评论",
"submitting": "发表中…",
"empty": "还没有评论,来说两句吧",
"loginToComment": "登录后参与评论",
"commentError": "评论发表失败,请重试"
},
"favorites": {
"add": "收藏",
"remove": "取消收藏",
"added": "已收藏",
"loginToFavorite": "登录后收藏作品"
},
"search": {
"placeholder": "搜索…",
"empty": "未找到相关内容"
},
"pagination": {
"loadMore": "加载更多",
"noMore": "已加载全部"
},
"share": {
"article": "分享文章",
"copy": "复制链接",
"copied": "链接已复制",
"copyFailed": "复制失败,请手动复制地址栏链接"
},
"lang": {
"toEnglish": "English",
"toChinese": "中文"
},
"newsletter": {
"subscribed": "订阅成功,感谢关注!",
"alreadySubscribed": "您已在订阅列表中",
"error": "订阅失败,请稍后再试"
}
}