2023-06-17 19:11:29 +00:00
|
|
|
import cloneDeep from 'lodash/cloneDeep';
|
|
|
|
|
|
|
|
|
|
export const themeImages = {
|
|
|
|
|
standard: {
|
2024-09-16 09:50:28 +01:00
|
|
|
card: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/standard-quiz-card.svg',
|
2023-06-17 19:11:29 +00:00
|
|
|
editor:
|
2024-09-16 09:50:28 +01:00
|
|
|
'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/standard-quiz-editor.svg',
|
|
|
|
|
play: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/standard-quiz-play.svg'
|
2023-06-17 19:11:29 +00:00
|
|
|
},
|
|
|
|
|
mainland: {
|
2024-09-16 09:50:28 +01:00
|
|
|
card: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/mainstream-quiz-card.svg',
|
2023-06-17 19:11:29 +00:00
|
|
|
editor:
|
2024-09-16 09:50:28 +01:00
|
|
|
'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/mainstream-quiz-editor.svg',
|
|
|
|
|
play: 'https://api.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-09-16 09:50:28 +01:00
|
|
|
circle: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/circle.svg',
|
|
|
|
|
spade: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/spade.svg',
|
|
|
|
|
square: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/square.svg',
|
|
|
|
|
pentagon: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/pentagon.svg',
|
|
|
|
|
hexagon: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/hexagon.svg',
|
|
|
|
|
triangle: 'https://api.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-09-16 09:50:28 +01:00
|
|
|
image: 'https://api.classroomio.com/storage/v1/object/public/avatars/quizes/triangle.svg'
|
2023-06-17 19:11:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'square',
|
|
|
|
|
label: 'False',
|
2024-09-16 09:50:28 +01:00
|
|
|
image: 'https://api.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
|
|
|
};
|