mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
feat(quiz): new Quiz module — build & play private quizzes (Phase 1)
Four question types (single/multi/truefalse/text), inline editor, play view with per-question feedback + final score review. Attempts are persisted per quiz. Encrypted at rest: title/description/tags on the container, questionText/explanation/options on questions. Attempts stay plaintext. Dexie v21, appId 'quiz', tier 'guest'. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0af50f0166
commit
3b99356464
18 changed files with 1978 additions and 0 deletions
|
|
@ -85,6 +85,11 @@ export const APP_ICONS = {
|
|||
chat: svgToDataUrl(chatSvg),
|
||||
presi: svgToDataUrl(presiSvg),
|
||||
cards: svgToDataUrl(cardsSvg),
|
||||
quiz: svgToDataUrl(
|
||||
// Speech-bubble question mark with a small checkmark — quiz / answer.
|
||||
// Pink→fuchsia gradient to stand apart from the purple Cards icon.
|
||||
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="qz" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:#ec4899"/><stop offset="100%" style="stop-color:#a21caf"/></linearGradient></defs><rect width="100" height="100" rx="22" fill="url(#qz)"/><path d="M22 34a8 8 0 0 1 8-8h40a8 8 0 0 1 8 8v24a8 8 0 0 1-8 8H42l-12 10v-10h0a8 8 0 0 1-8-8V34z" fill="white"/><path d="M42 42c0-5 4-8 8-8s8 3 8 8c0 4-4 5-6 7-1 1-2 3-2 5" stroke="#a21caf" stroke-width="3.5" stroke-linecap="round" fill="none"/><circle cx="50" cy="60" r="2.4" fill="#a21caf"/><path d="M60 72l5 5 11-11" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>`
|
||||
),
|
||||
picture: svgToDataUrl(pictureSvg),
|
||||
quotes: svgToDataUrl(quotesSvg),
|
||||
wisekeep: svgToDataUrl(wisekeepSvg),
|
||||
|
|
|
|||
|
|
@ -170,6 +170,23 @@ export const MANA_APPS: ManaApp[] = [
|
|||
status: 'development',
|
||||
requiredTier: 'guest',
|
||||
},
|
||||
{
|
||||
id: 'quiz',
|
||||
name: 'Quiz',
|
||||
description: {
|
||||
de: 'Wissen testen',
|
||||
en: 'Test your knowledge',
|
||||
},
|
||||
longDescription: {
|
||||
de: 'Eigene Quizze bauen und spielen — Single-, Multiple-Choice, Wahr/Falsch oder Freitext.',
|
||||
en: 'Build and play your own quizzes — single/multiple choice, true/false, or free text.',
|
||||
},
|
||||
icon: APP_ICONS.quiz,
|
||||
color: '#ec4899',
|
||||
comingSoon: false,
|
||||
status: 'beta',
|
||||
requiredTier: 'guest',
|
||||
},
|
||||
{
|
||||
id: 'picture',
|
||||
name: 'ManaPicture',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue