Class_generator/js/content/basic-chinese.js
StillHammer 1f8688c4aa Fix WebSocket logging system and add comprehensive network features
- Fix WebSocket server to properly broadcast logs to all connected clients
- Integrate professional logging system with real-time WebSocket interface
- Add network status indicator with DigitalOcean Spaces connectivity
- Implement AWS Signature V4 authentication for private bucket access
- Add JSON content loader with backward compatibility to JS modules
- Restore navigation breadcrumb system with comprehensive logging
- Add multiple content formats: JSON + JS with automatic discovery
- Enhance top bar with logger toggle and network status indicator
- Remove deprecated temp-games module and clean up unused files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 23:05:14 +08:00

115 lines
4.2 KiB
JavaScript

// Basic Chinese content for Chinese Study Mode
const basicChineseContent = {
vocabulary: {
// Basic greetings and common words
"你好": "hello (nǐ hǎo)",
"再见": "goodbye (zài jiàn)",
"谢谢": "thank you (xiè xiè)",
"对不起": "sorry (duì bu qǐ)",
"请": "please (qǐng)",
"是": "yes/to be (shì)",
"不": "no/not (bù)",
"我": "I/me (wǒ)",
"你": "you (nǐ)",
"他": "he/him (tā)",
"她": "she/her (tā)",
// Numbers 1-10
"一": "one (yī)",
"二": "two (èr)",
"三": "three (sān)",
"四": "four (sì)",
"五": "five (wǔ)",
"六": "six (liù)",
"七": "seven (qī)",
"八": "eight (bā)",
"九": "nine (jiǔ)",
"十": "ten (shí)",
// Basic family
"家": "family/home (jiā)",
"爸爸": "father (bà ba)",
"妈妈": "mother (mā ma)",
"儿子": "son (ér zi)",
"女儿": "daughter (nǚ ér)"
},
sentences: [
{
chinese: "你好!",
english: "Hello!",
prononciation: "Nǐ hǎo!"
},
{
chinese: "我是学生。",
english: "I am a student.",
prononciation: "Wǒ shì xué shēng."
},
{
chinese: "谢谢你!",
english: "Thank you!",
prononciation: "Xiè xiè nǐ!"
},
{
chinese: "这是我的家。",
english: "This is my home.",
prononciation: "Zhè shì wǒ de jiā."
}
],
dialogues: [
{
title: "Basic Greeting",
conversation: [
{ speaker: "A", chinese: "你好!", english: "Hello!", prononciation: "Nǐ hǎo!" },
{ speaker: "B", chinese: "你好!你叫什么名字?", english: "Hello! What's your name?", prononciation: "Nǐ hǎo! Nǐ jiào shén me míng zi?" },
{ speaker: "A", chinese: "我叫小明。你呢?", english: "My name is Xiaoming. And you?", prononciation: "Wǒ jiào Xiǎo Míng. Nǐ ne?" },
{ speaker: "B", chinese: "我叫小红。很高兴认识你!", english: "My name is Xiaohong. Nice to meet you!", prononciation: "Wǒ jiào Xiǎo Hóng. Hěn gāo xìng rèn shi nǐ!" }
]
}
],
texts: [
{
title: "Learning Chinese",
content: "Chinese is one of the most spoken languages in the world. It uses characters instead of letters. Each character can represent a word or part of a word. Learning Chinese characters, their pronunciation (pinyin), and meanings is the foundation of studying Chinese.",
chinese: "学习中文是很有趣的。中文使用汉字,不是字母。每个汉字都有意思。"
}
],
culturalNotes: [
{
topic: "Chinese Characters",
note: "Chinese characters are logograms, where each character represents a word or morpheme. There are thousands of characters, but you only need about 2000-3000 to read most modern Chinese texts."
},
{
topic: "Pinyin",
note: "Pinyin is the romanization system used to help learn Chinese pronunciation. It uses the Latin alphabet with tone marks to indicate the four main tones in Mandarin Chinese."
},
{
topic: "Tones",
note: "Mandarin Chinese has four main tones plus a neutral tone. The tone changes the meaning of the word, so it's important to learn them correctly."
}
]
};
// Export for web module system
window.ContentModules = window.ContentModules || {};
window.ContentModules.BasicChinese = {
name: "Basic Chinese",
description: "Essential Chinese characters, pronunciation and vocabulary for beginners",
difficulty: "beginner",
vocabulary: basicChineseContent.vocabulary,
sentences: basicChineseContent.sentences,
dialogues: basicChineseContent.dialogues,
texts: basicChineseContent.texts,
culturalNotes: basicChineseContent.culturalNotes,
language: "chinese",
hskLevel: "HSK1"
};
// Node.js export (optional)
if (typeof module !== 'undefined' && module.exports) {
module.exports = basicChineseContent;
}