@@ -42,103 +42,90 @@ const QUESTION_PREFIX_REGEX = /q\d+:(\d+)_/;
4242const STATES : Record < string , CoreQuestionState > = {
4343 todo : {
4444 name : 'todo' ,
45- class : 'core-question-notyetanswered' ,
4645 status : 'notyetanswered' ,
4746 stateclass : 'notyetanswered' ,
4847 active : true ,
4948 finished : false ,
5049 } ,
5150 invalid : {
5251 name : 'invalid' ,
53- class : 'core-question-invalidanswer' ,
5452 status : 'invalidanswer' ,
5553 stateclass : 'invalidanswer' ,
5654 active : true ,
5755 finished : false ,
5856 } ,
5957 complete : {
6058 name : 'complete' ,
61- class : 'core-question-answersaved' ,
6259 status : 'answersaved' ,
6360 stateclass : 'answersaved' ,
6461 active : true ,
6562 finished : false ,
6663 } ,
6764 needsgrading : {
6865 name : 'needsgrading' ,
69- class : 'core-question-requiresgrading' ,
7066 status : 'requiresgrading' ,
7167 stateclass : 'requiresgrading' ,
7268 active : false ,
7369 finished : true ,
7470 } ,
7571 finished : {
7672 name : 'finished' ,
77- class : 'core-question-complete' ,
7873 status : 'complete' ,
7974 stateclass : 'complete' ,
8075 active : false ,
8176 finished : true ,
8277 } ,
8378 gaveup : {
8479 name : 'gaveup' ,
85- class : 'core-question-notanswered' ,
8680 status : 'notanswered' ,
8781 stateclass : 'notanswered' ,
8882 active : false ,
8983 finished : true ,
9084 } ,
9185 gradedwrong : {
9286 name : 'gradedwrong' ,
93- class : 'core-question-incorrect' ,
9487 status : 'incorrect' ,
9588 stateclass : 'incorrect' ,
9689 active : false ,
9790 finished : true ,
9891 } ,
9992 gradedpartial : {
10093 name : 'gradedpartial' ,
101- class : 'core-question-partiallycorrect' ,
10294 status : 'partiallycorrect' ,
10395 stateclass : 'partiallycorrect' ,
10496 active : false ,
10597 finished : true ,
10698 } ,
10799 gradedright : {
108100 name : 'gradedright' ,
109- class : 'core-question-correct' ,
110101 status : 'correct' ,
111102 stateclass : 'correct' ,
112103 active : false ,
113104 finished : true ,
114105 } ,
115106 mangrwrong : {
116107 name : 'mangrwrong' ,
117- class : 'core-question-incorrect' ,
118108 status : 'incorrect' ,
119109 stateclass : 'incorrect' ,
120110 active : false ,
121111 finished : true ,
122112 } ,
123113 mangrpartial : {
124114 name : 'mangrpartial' ,
125- class : 'core-question-partiallycorrect' ,
126115 status : 'partiallycorrect' ,
127116 stateclass : 'partiallycorrect' ,
128117 active : false ,
129118 finished : true ,
130119 } ,
131120 mangrright : {
132121 name : 'mangrright' ,
133- class : 'core-question-correct' ,
134122 status : 'correct' ,
135123 stateclass : 'correct' ,
136124 active : false ,
137125 finished : true ,
138126 } ,
139127 cannotdeterminestatus : { // Special state for Mobile, sometimes we won't have enough data to detemrine the state.
140128 name : 'cannotdeterminestatus' ,
141- class : 'core-question-unknown' ,
142129 status : 'cannotdeterminestatus' ,
143130 stateclass : undefined ,
144131 active : true ,
@@ -594,7 +581,6 @@ export const CoreQuestion = makeSingleton(CoreQuestionProvider);
594581 */
595582export type CoreQuestionState = {
596583 name : string ; // Name of the state.
597- class : string ; // Class to style the state.
598584 status : string ; // The string key to translate the state.
599585 stateclass : // A machine-readable class name for the state that this question attempt is in.
600586 typeof QUESTION_TODO_STATE_CLASSES [ number ] |
0 commit comments