frontPanel/src/constants/default.ts

29 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-11-14 20:15:52 +00:00
import { QuestionType } from "@model/question/question";
import { QUIZ_QUESTION_DATE } from "./date";
import { QUIZ_QUESTION_EMOJI } from "./emoji";
import { QUIZ_QUESTION_FILE } from "./file";
import { QUIZ_QUESTION_IMAGES } from "./images";
import { QUIZ_QUESTION_NUMBER } from "./number";
import { QUIZ_QUESTION_PAGE } from "./page";
import { QUIZ_QUESTION_RATING } from "./rating";
import { QUIZ_QUESTION_SELECT } from "./select";
import { QUIZ_QUESTION_TEXT } from "./text";
import { QUIZ_QUESTION_VARIANT } from "./variant";
import { QUIZ_QUESTION_VARIMG } from "./varimg";
import { AnyQuestionContent } from "@model/questionTypes/shared";
export const defaultQuestionContentByType: Record<QuestionType, AnyQuestionContent> = {
"date": QUIZ_QUESTION_DATE.content,
"emoji": QUIZ_QUESTION_EMOJI.content,
"file": QUIZ_QUESTION_FILE.content,
"images": QUIZ_QUESTION_IMAGES.content,
"number": QUIZ_QUESTION_NUMBER.content,
"page": QUIZ_QUESTION_PAGE.content,
"rating": QUIZ_QUESTION_RATING.content,
"select": QUIZ_QUESTION_SELECT.content,
"text": QUIZ_QUESTION_TEXT.content,
"variant": QUIZ_QUESTION_VARIANT.content,
"varimg": QUIZ_QUESTION_VARIMG.content,
} as const;