MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/views/courses/TeacherClassesView.js:160–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 static initClass () {
161 this.prototype.id = 'teacher-classes-view'
162 this.prototype.template = template
163 this.prototype.helper = helper
164 this.prototype.translateWithMarkdown = translateWithMarkdown
165
166 // TODO: where to track/save this data?
167 this.prototype.teacherQuestData = {
168 create_classroom: {
169 title: translateWithMarkdown('teacher.teacher_quest_create_classroom')
170 },
171 add_students: {
172 title: translateWithMarkdown('teacher.teacher_quest_add_students')
173 },
174 teach_methods: {
175 title: translateWithMarkdown('teacher.teacher_quest_teach_methods'),
176 steps: [
177 translateWithMarkdown('teacher.teacher_quest_teach_methods_step1'),
178 translateWithMarkdown('teacher.teacher_quest_teach_methods_step2')
179 ]
180 },
181 teach_strings: {
182 title: translateWithMarkdown('teacher.teacher_quest_teach_strings'),
183 steps: [
184 translateWithMarkdown('teacher.teacher_quest_teach_strings_step1'),
185 translateWithMarkdown('teacher.teacher_quest_teach_strings_step2')
186 ]
187 },
188 teach_loops: {
189 title: translateWithMarkdown('teacher.teacher_quest_teach_loops'),
190 steps: [
191 translateWithMarkdown('teacher.teacher_quest_teach_loops_step1'),
192 translateWithMarkdown('teacher.teacher_quest_teach_loops_step2')
193 ]
194 },
195 teach_variables: {
196 title: translateWithMarkdown('teacher.teacher_quest_teach_variables'),
197 steps: [
198 translateWithMarkdown('teacher.teacher_quest_teach_variables_step1'),
199 translateWithMarkdown('teacher.teacher_quest_teach_variables_step2')
200 ]
201 },
202 kithgard_gates_100: {
203 title: translateWithMarkdown('teacher.teacher_quest_kithgard_gates_100'),
204 steps: [
205 translateWithMarkdown('teacher.teacher_quest_kithgard_gates_100_step1'),
206 translateWithMarkdown('teacher.teacher_quest_kithgard_gates_100_step2')
207 ]
208 },
209 wakka_maul_100: {
210 title: translateWithMarkdown('teacher.teacher_quest_wakka_maul_100'),
211 steps: [
212 translateWithMarkdown('teacher.teacher_quest_wakka_maul_100_step1'),
213 translateWithMarkdown('teacher.teacher_quest_wakka_maul_100_step2')
214 ]
215 },
216 reach_gamedev: {
217 title: translateWithMarkdown('teacher.teacher_quest_reach_gamedev'),

Callers 1

Calls 4

translateWithMarkdownFunction · 0.85
getMethod · 0.45
saveMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected