Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/sync-content.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const SOURCE_FOLDERS = [
'GetStartedWithBitcoin',
'Web3Thoughts',
'Web3BuilderLab',
'DeFiDeepDive',
'L2CrossChain',
'其它学习资源整理/DeFi',
'其它学习资源整理/Etherum',
Expand Down
4 changes: 2 additions & 2 deletions src/config/__tests__/courseData.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { describe, it, expect } from 'vitest';
import { COURSE_DATA } from '../courseData';

describe('courseData', () => {
it('should have 8 modules', () => {
expect(COURSE_DATA).toHaveLength(8);
it('should have 9 modules', () => {
expect(COURSE_DATA).toHaveLength(9);
});

it('module-7 should have correct structure', () => {
Expand Down
50 changes: 49 additions & 1 deletion src/config/courseData.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { BookOpen, BrainCircuit, Shield, Globe, Cpu, Layers, Wrench, Network } from 'lucide-react';
import {
BookOpen,
BrainCircuit,
Shield,
Globe,
Cpu,
Layers,
Wrench,
Landmark,
Network,
} from 'lucide-react';

// GitHub 配置
export const GITHUB_USERNAME = 'beihaili';
Expand Down Expand Up @@ -318,6 +328,44 @@ export const COURSE_DATA = [
},
],
},
{
id: 'module-8',
title: 'DeFi 深度解析',
icon: Landmark,
color: 'from-violet-400 to-purple-400',
lessons: [
{
id: '8-1',
title: 'DeFi 核心概念与架构',
path: 'DeFiDeepDive/01_CoreConcepts',
fallbackContent: FALLBACK,
},
{
id: '8-2',
title: 'AMM 与去中心化交易所',
path: 'DeFiDeepDive/02_AMMAndDEX',
fallbackContent: FALLBACK,
},
{
id: '8-3',
title: '借贷协议原理',
path: 'DeFiDeepDive/03_LendingProtocols',
fallbackContent: FALLBACK,
},
{
id: '8-4',
title: '稳定币全景',
path: 'DeFiDeepDive/04_Stablecoins',
fallbackContent: FALLBACK,
},
{
id: '8-5',
title: 'DeFi 风险与安全',
path: 'DeFiDeepDive/05_DeFiRisks',
fallbackContent: FALLBACK,
},
],
},
{
id: 'module-9',
title: '跨链与 Layer 2 深度解析',
Expand Down
20 changes: 20 additions & 0 deletions src/features/badges/badgeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Calendar,
Layers,
Wrench,
Landmark,
Network,
} from 'lucide-react';

Expand Down Expand Up @@ -164,6 +165,25 @@ export const ACHIEVEMENT_BADGES = {
nextBadgeHint: '试试构建自己的 Web3 项目并提交到 Showcase!',
},
},
'module-8': {
id: 'defi-expert',
name: 'DeFi Expert',
title: 'DeFi 专家',
description: '深入理解 DeFi 协议原理,掌握去中心化金融的核心机制',
icon: Landmark,
rarity: 'Epic',
color: 'from-violet-500 to-purple-500',
glowColor: 'shadow-violet-500/50',
borderColor: 'border-violet-500',
bgColor: 'bg-violet-500/10',
requirement: '完成 DeFi 深度解析的所有 5 个课程',
rewards: {
title: '🏦 DeFi 专家',
experience: 300,
unlockedFeatures: ['DeFi 协议分析工具', '收益率计算器'],
nextBadgeHint: '继续学习跨链与 Layer 2 深度解析',
},
},
'module-9': {
id: 'l2-cross-chain-expert',
name: 'L2 Cross-Chain Expert',
Expand Down
Loading
Loading