diff --git a/amd/src/report-viewer-components.js b/amd/src/report-viewer-components.js index 44fe31b..d7948fc 100644 --- a/amd/src/report-viewer-components.js +++ b/amd/src/report-viewer-components.js @@ -11,6 +11,7 @@ import {call} from 'core/ajax'; import notification from 'core/notification'; import {svgarcpath} from './svgarc'; //import {fixLineWrappers} from './studyplan-processor'; +import Debugger from './debugger'; // Make π available as a constant const π = Math.PI; @@ -18,7 +19,8 @@ const π = Math.PI; export default { install(Vue/*,options*/){ - + let debug = new Debugger("treestudyplan-viewer"); + debug.enable(); let strings = load_strings({ invalid: { error: 'error', @@ -32,15 +34,39 @@ export default { unknown: "unknown", }, completion: { - completion_completed: "completion_completed", - completion_incomplete: "completion_incomplete", + completed: "completion_completed", + incomplete: "completion_incomplete", + completed_pass: "completion_passed", + completed_fail: "completion_failed", + ungraded: "ungraded", + aggregation_all: "aggregation_all", + aggregation_any: "aggregation_any", + aggregation_overall_all: "aggregation_overall_all", + aggregation_overall_any: "aggregation_overall_any", + completion_not_configured: "completion_not_configured", + configure_completion: "configure_completion", }, badge: { share_badge: "share_badge", dateissued: "dateissued", dateexpire: "dateexpire", badgeinfo: "badgeinfo", - } + badgeissuedstats: "badgeissuedstats", + }, + course: { + completion_incomplete: "completion_incomplete", + completion_failed: "completion_failed", + completion_pending: "completion_pending", + completion_progress: "completion_progress", + completion_completed: "completion_completed", + completion_good: "completion_good", + completion_excellent: "completion_excellent", + view_feedback: "view_feedback", + coursetiming_past: "coursetiming_past", + coursetiming_present: "coursetiming_present", + coursetiming_future: "coursetiming_future", + required_goal: "required_goal", + }, }); @@ -573,20 +599,7 @@ export default { }, data() { return { - text: { - completion_incomplete: "completion_incomplete", - completion_failed: "completion_failed", - completion_pending: "completion_pending", - completion_progress: "completion_progress", - completion_completed: "completion_completed", - completion_good: "completion_good", - completion_excellent: "completion_excellent", - view_feedback: "view_feedback", - coursetiming_past: "coursetiming_past", - coursetiming_present: "coursetiming_present", - coursetiming_future: "coursetiming_future", - required_goal: "required_goal", - }, + text: strings.course, }; }, computed: { @@ -673,9 +686,21 @@ export default {
{{ text.aggregation_overall_all}}{{ text.aggregation_overall_any}} | +|||||
{{text.completion_not_configured}}!
+
+ {{text.configure_completion}} + + |
+ |||||
{{cgroup.title}} | -{{ text.aggregation_all}}{{ text.aggregation_any}} + {{cgroup.title}} | ||||
---|---|---|---|---|---|
{{ci.title}} - - - | {{ci.grade}} | -- + | + | -
- {{ text["view_feedback"]}}
- {{ course.fullname }}- {{ci.name}} - - - |
+ |
{{ text.aggregation_overall_all}}{{ text.aggregation_overall_any}} | +|
{{text.completion_not_configured}}!
+ {{text.configure_completion}} + |
+ |
{{ text.aggregation_all}}{{ text.aggregation_any}} + {{cgroup.title}} | +|
---|---|
+ | ++ {{ci.details.requirement}} + | +