Files
classroomio/apps/dashboard/src/lib/utils/constants/quiz.js
T

103 lines
2.6 KiB
JavaScript
Raw Normal View History

2023-06-17 19:11:29 +00:00
import cloneDeep from 'lodash/cloneDeep';
export const themeImages = {
standard: {
2024-10-13 16:44:40 +01:00
card: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/standard-quiz-card.svg',
2023-06-17 19:11:29 +00:00
editor:
2024-10-13 16:44:40 +01:00
'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/standard-quiz-editor.svg',
play: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/standard-quiz-play.svg'
2023-06-17 19:11:29 +00:00
},
mainland: {
2024-10-13 16:44:40 +01:00
card: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/mainstream-quiz-card.svg',
2023-06-17 19:11:29 +00:00
editor:
2024-10-13 16:44:40 +01:00
'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/mainstream-quiz-editor.svg',
play: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/mainstream-quiz-play.svg'
2023-10-17 10:16:28 +01:00
}
2023-06-17 19:11:29 +00:00
};
export const defOption = {
id: 1,
label: '',
2023-10-17 10:16:28 +01:00
options: []
2023-06-17 19:11:29 +00:00
};
export const optionImage = {
2024-10-13 16:44:40 +01:00
circle: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/circle.svg',
spade: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/spade.svg',
square: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/square.svg',
pentagon: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/pentagon.svg',
hexagon: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/hexagon.svg',
triangle: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/triangle.svg'
2023-06-17 19:11:29 +00:00
};
export const allOptions = [
{
id: 'circle',
label: '',
2023-10-17 10:16:28 +01:00
isCorrect: false
2023-06-17 19:11:29 +00:00
},
{
id: 'triangle',
label: '',
2023-10-17 10:16:28 +01:00
isCorrect: false
2023-06-17 19:11:29 +00:00
},
{
id: 'spade',
label: '',
2023-10-17 10:16:28 +01:00
isCorrect: false
2023-06-17 19:11:29 +00:00
},
{
id: 'square',
label: '',
2023-10-17 10:16:28 +01:00
isCorrect: false
2023-06-17 19:11:29 +00:00
},
{
id: 'pentagon',
label: '',
2023-10-17 10:16:28 +01:00
isCorrect: false
2023-06-17 19:11:29 +00:00
},
{
id: 'hexagon',
label: '',
2023-10-17 10:16:28 +01:00
isCorrect: false
}
2023-06-17 19:11:29 +00:00
];
export const booleanOptions = [
{
id: 'triangle',
label: 'True',
2024-10-13 16:44:40 +01:00
image: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/triangle.svg'
2023-06-17 19:11:29 +00:00
},
{
id: 'square',
label: 'False',
2024-10-13 16:44:40 +01:00
image: 'https://pgrest.classroomio.com/storage/v1/object/public/avatars/quizes/square.svg'
2023-10-17 10:16:28 +01:00
}
2023-06-17 19:11:29 +00:00
];
export const allThemes = [
{
id: 'standard',
2023-10-17 10:16:28 +01:00
label: 'Standard'
2023-06-17 19:11:29 +00:00
},
{
id: 'mainland',
2023-10-17 10:16:28 +01:00
label: 'Mainland Bridge'
}
2023-06-17 19:11:29 +00:00
];
export const defQuestion = {
id: new Date().getTime(),
title: '',
type: 'multichoice',
options: [],
2023-10-17 10:16:28 +01:00
timelimit: '10s'
2023-06-17 19:11:29 +00:00
};
export const STEPS = {
CONNECT_TO_PLAY: 'CONNECT_TO_PLAY',
WAIT_FOR_PLAYERS: 'WAIT_FOR_PLAYERS',
SHOW_NEXT_QUESTION: 'SHOW_NEXT_QUESTION',
SCOREBOARD: 'SCOREBOARD',
2023-10-17 10:16:28 +01:00
PODIUM: 'PODIUM'
2023-06-17 19:11:29 +00:00
};