| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90 | 2×
2×
2×
2×
2×
2×
2×
2×
2×
2×
2×
2×
17×
2×
2×
2×
| var LoadableItem, PerformanceForecast, React, ScoresActions, ScoresStore, Student, StudentComponent, Teacher, TeacherComponent, TeacherStudent, TeacherStudentComponent, ref;
React = require('react');
PerformanceForecast = require('../../flux/performance-forecast');
LoadableItem = require('../loadable-item');
TeacherComponent = require('./teacher');
StudentComponent = require('./student');
TeacherStudentComponent = require('./teacher-student');
ref = require('../../flux/scores'), ScoresStore = ref.ScoresStore, ScoresActions = ref.ScoresActions;
Student = React.createClass({
displayName: 'PerformanceForecastStudentShell',
contextTypes: {
router: React.PropTypes.func
},
render: function() {
var courseId;
courseId = this.context.router.getCurrentParams().courseId;
return React.createElement(LoadableItem, {
"id": courseId,
"store": PerformanceForecast.Student.store,
"actions": PerformanceForecast.Student.actions,
"renderItem": (function() {
return React.createElement(StudentComponent, {
"courseId": courseId
});
}),
"isLong": true
});
}
});
TeacherStudent = React.createClass({
displayName: 'PerformanceForecastTeacherStudentShell',
contextTypes: {
router: React.PropTypes.func
},
render: function() {
var courseId, ref1, roleId;
ref1 = this.context.router.getCurrentParams(), courseId = ref1.courseId, roleId = ref1.roleId;
return React.createElement(LoadableItem, {
"id": courseId,
"store": ScoresStore,
"actions": ScoresActions,
"renderItem": (function() {
return React.createElement(TeacherStudentComponent, {
"courseId": courseId,
"roleId": roleId
});
}),
"isLong": true
});
}
});
Teacher = React.createClass({
displayName: 'PerformanceForecastTeacherShell',
contextTypes: {
router: React.PropTypes.func
},
render: function() {
var courseId;
courseId = this.context.router.getCurrentParams().courseId;
return React.createElement(LoadableItem, {
"id": courseId,
"store": PerformanceForecast.Teacher.store,
"actions": PerformanceForecast.Teacher.actions,
"renderItem": (function() {
return React.createElement(TeacherComponent, {
"courseId": courseId
});
}),
"isLong": true
});
}
});
module.exports = {
Teacher: Teacher,
TeacherStudent: TeacherStudent,
Student: Student
};
|