81 lines
1.3 KiB
V
81 lines
1.3 KiB
V
module models
|
|
|
|
pub const data_set = [
|
|
{
|
|
'end': Question{
|
|
title: 'Last question'
|
|
description: 'This is last question'
|
|
buttons: []
|
|
}
|
|
'q1': Question{
|
|
title: 'Question 1'
|
|
description: 'This question 1 after start question'
|
|
buttons: [
|
|
Button{
|
|
text: 'q2'
|
|
state: 'q2'
|
|
},
|
|
Button{
|
|
text: 'q3'
|
|
state: 'q3'
|
|
},
|
|
Button{
|
|
text: 'q4'
|
|
state: 'q4'
|
|
},
|
|
]
|
|
}
|
|
'q2': Question{
|
|
title: 'Question 2'
|
|
description: 'This question 2 after question 1'
|
|
buttons: [
|
|
Button{
|
|
text: 'Go end'
|
|
state: 'end'
|
|
},
|
|
Button{
|
|
text: 'Need end'
|
|
state: 'end'
|
|
},
|
|
]
|
|
}
|
|
'q3': Question{
|
|
title: 'Question 3'
|
|
description: 'This question 3 after question 1'
|
|
buttons: [
|
|
Button{
|
|
text: 'Want end'
|
|
state: 'end'
|
|
},
|
|
Button{
|
|
text: 'Go dota 2'
|
|
state: 'end'
|
|
},
|
|
]
|
|
}
|
|
'q4': Question{
|
|
title: 'Question 4'
|
|
description: 'This question 4 after question 1'
|
|
buttons: [
|
|
Button{
|
|
text: 'Run end'
|
|
state: 'end'
|
|
},
|
|
Button{
|
|
text: 'Swimming to end'
|
|
state: 'end'
|
|
},
|
|
]
|
|
}
|
|
'start': Question{
|
|
title: 'Start question'
|
|
description: 'This first question, start'
|
|
buttons: [
|
|
Button{
|
|
text: 'start'
|
|
state: 'q1'
|
|
},
|
|
]
|
|
}
|
|
},
|
|
] |