diff --git a/components/fili-info.riot b/components/fili-info.riot index 07fac86..db5e9c2 100644 --- a/components/fili-info.riot +++ b/components/fili-info.riot @@ -1,24 +1,41 @@ -
-

BUT / BUT - Production / Informatique

+
+

+ {props.course.fili} / + {props.course.sousfili} / + {props.course.soussousfili} +

-

Moyenne des admis19.3

-

Nombre de formations5

-

Capacité90

+

Moyenne des admis{state.average}

+

Nombre de formations{state.courseNumber}

+

Capacité{state.capacity}

Sélectivité

- +
- +
- +
\ No newline at end of file diff --git a/components/line-graph.riot b/components/line-graph.riot index 054cc50..afeeb8f 100644 --- a/components/line-graph.riot +++ b/components/line-graph.riot @@ -10,6 +10,8 @@ updateCanvas() { let canvas = this.$("canvas") + if (!canvas) return + canvas.width = canvas.clientWidth canvas.height = canvas.clientHeight @@ -36,7 +38,7 @@ cx.fillStyle = "#707070" cx.font = "15px Arial" - cx.fillText("This is an example title", width / 2, 10) + cx.fillText(this.props.title || "Example", width / 2, 10) cx.font = "10px Arial" cx.translate(0, 20) diff --git a/components/main-controller.riot b/components/main-controller.riot index b14febe..7bf37ec 100644 --- a/components/main-controller.riot +++ b/components/main-controller.riot @@ -8,24 +8,26 @@
- - + +