Class_generator/js/content/test-animals.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

102 lines
3.7 KiB
JavaScript

// Test Animals Content - Contenu bidon pour tester le scanner automatique
const testAnimalsContent = {
vocabulary: {
"cat": {
translation: "chat",
type: "noun",
difficulty: "beginner",
examples: ["I have a cat", "The cat is sleeping"],
grammarNotes: "Count noun - singular: cat, plural: cats"
},
"dog": {
translation: "chien",
type: "noun",
difficulty: "beginner",
examples: ["My dog is friendly", "Dogs love to play"],
grammarNotes: "Count noun - singular: dog, plural: dogs"
},
"bird": {
translation: "oiseau",
type: "noun",
difficulty: "beginner",
examples: ["The bird can fly", "Birds sing in the morning"],
grammarNotes: "Count noun - singular: bird, plural: birds"
},
"fish": {
translation: "poisson",
type: "noun",
difficulty: "beginner",
examples: ["Fish live in water", "I caught a fish"],
grammarNotes: "Count/mass noun - same form for singular and plural"
},
"elephant": {
translation: "éléphant",
type: "noun",
difficulty: "intermediate",
examples: ["Elephants are very big", "The elephant has a long trunk"],
grammarNotes: "Count noun - uses 'an' article due to vowel sound"
}
},
sentences: [
{
english: "I love animals",
french: "J'aime les animaux",
prononciation: "I love animals"
},
{
english: "Cats and dogs are pets",
french: "Les chats et les chiens sont des animaux de compagnie",
prononciation: "Cats and dogs are pets"
},
{
english: "Birds can fly high in the sky",
french: "Les oiseaux peuvent voler haut dans le ciel",
prononciation: "Birds can fly high in the sky"
}
],
dialogues: [
{
title: "At the Zoo",
conversation: [
{ speaker: "Child", english: "Look! What animal is that?", french: "Regarde ! Quel animal est-ce ?" },
{ speaker: "Parent", english: "That's an elephant", french: "C'est un éléphant" },
{ speaker: "Child", english: "It's so big!", french: "Il est si grand !" },
{ speaker: "Parent", english: "Yes, elephants are the largest land animals", french: "Oui, les éléphants sont les plus grands animaux terrestres" }
]
}
],
grammar: {
animalPlurals: {
title: "Animal Plurals",
explanation: "Most animal names follow regular plural rules: add -s. Some have irregular plurals.",
examples: [
{ english: "One cat, two cats", french: "Un chat, deux chats" },
{ english: "One fish, many fish", french: "Un poisson, plusieurs poissons" },
{ english: "One mouse, two mice", french: "Une souris, deux souris" }
]
}
}
};
// Export for web module system
window.ContentModules = window.ContentModules || {};
window.ContentModules.TestAnimals = {
name: "Test Animals",
description: "Basic animal vocabulary for testing - will be auto-discovered!",
difficulty: "beginner",
language: "english",
vocabulary: testAnimalsContent.vocabulary,
sentences: testAnimalsContent.sentences,
dialogues: testAnimalsContent.dialogues,
grammar: testAnimalsContent.grammar,
icon: "🐾"
};
// Node.js export (optional)
if (typeof module !== 'undefined' && module.exports) {
module.exports = testAnimalsContent;
}