feat: align frontend languages with posts api

This commit is contained in:
TerryM
2026-05-26 07:36:53 +08:00
parent 453abfcec7
commit e7a5952d58
19 changed files with 565 additions and 544 deletions

View File

@@ -31,7 +31,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-001",
categoryId: 1,
categorySlug: "project",
language: "zh-CN",
language: "zh",
attachments: [
{
id: "a-001",
@@ -55,7 +55,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-002",
categoryId: 1,
categorySlug: "project",
language: "zh-CN",
language: "zh",
attachments: [
{
id: "a-002",
@@ -79,7 +79,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-013",
categoryId: 1,
categorySlug: "project",
language: "zh-CN",
language: "zh",
attachments: [
{
id: "a-013",
@@ -100,7 +100,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-003",
categoryId: 2,
categorySlug: "guide",
language: "zh-TW",
language: "zh",
attachments: [
{
id: "a-003",
@@ -121,7 +121,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-004",
categoryId: 2,
categorySlug: "guide",
language: "zh-TW",
language: "zh",
attachments: [
{
id: "a-004",
@@ -142,7 +142,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-005",
categoryId: 3,
categorySlug: "data",
language: "zh-CN",
language: "zh",
text:
"📊 ARK DeFAI 各大平台现已上线 🔥\n\n" +
"🔷 市场数据平台\n" +
@@ -163,7 +163,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-006",
categoryId: 3,
categorySlug: "data",
language: "zh-CN",
language: "zh",
text:
"📌 收取协议固定 2.5% 手续费。\n\n" +
"🔷 贡献值合约\n0x7736b5B84cADDB7661D250D10e60E31F3C905c99\n📌 用于新贡献值机制的 USDT 购买与资金流向管理(通缩销毁 / 储备 RBS",
@@ -178,7 +178,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-007",
categoryId: 4,
categorySlug: "videos",
language: "zh-CN",
language: "zh",
text: "ARK 山东·东营社区 招商复盘·势位重塑\n🔥 ARK DeFai 相位偏移锁死增值弧度。质能裂变诱发认知风暴,海岱动能正于中原合围!🚀",
attachments: [
{
@@ -204,7 +204,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-008",
categoryId: 5,
categorySlug: "poster",
language: "zh-CN",
language: "zh",
attachments: [
{
id: "a-008",
@@ -228,7 +228,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-009",
categoryId: 5,
categorySlug: "poster",
language: "zh-CN",
language: "zh",
attachments: [
{
id: "a-009",
@@ -252,7 +252,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-010",
categoryId: 6,
categorySlug: "meeting",
language: "zh-CN",
language: "zh",
text: "📌 ARK DeFAI 方舟晨间时刻\n\n🧠 会议主题:市场概况交流 & 市场问题讨论。\n🕙 会议时间3月1日10:00\n🎬 直播腾讯会议链接https://meeting.tencent.com/l/G718S4Sedm38",
attachments: [
{
@@ -277,7 +277,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-011",
categoryId: 5,
categorySlug: "poster",
language: "zh-CN",
language: "zh",
attachments: [
{
id: "a-011a",
@@ -323,7 +323,7 @@ export const MOCK_POSTS: Post[] = [
id: "p-012",
categoryId: 5,
categorySlug: "poster",
language: "zh-CN",
language: "zh",
attachments: Array.from({ length: 7 }).map((_, i) => ({
id: `a-012-${i}`,
kind: "image" as const,