Commit 3ff00277 authored by Tim Honcoop's avatar Tim Honcoop
Browse files

Removed logs

parent 9f7bdd90
Pipeline #2532 failed with stages
in 1 minute and 3 seconds
...@@ -240,7 +240,6 @@ ...@@ -240,7 +240,6 @@
<script> <script>
import vueSlider from "vue-slider-component"; import vueSlider from "vue-slider-component";
import colors from "@/colors"; import colors from "@/colors";
import { hexToRgba } from "@coreui/coreui/dist/js/coreui-utilities";
export default { export default {
name: "Settings", name: "Settings",
......
...@@ -260,11 +260,11 @@ export default { ...@@ -260,11 +260,11 @@ export default {
nextItemPassingFraction: 0, nextItemPassingFraction: 0,
// Next video // Next video
nextVideoUrl: "", nextVideoUrl: "",
hasNextVideo: false hasNextVideo: false,
}; };
}, },
components: { components: {
Chart Chart,
}, },
beforeMount() { beforeMount() {
this.courseSlug = this.$route.params.courseid; this.courseSlug = this.$route.params.courseid;
...@@ -312,8 +312,6 @@ export default { ...@@ -312,8 +312,6 @@ export default {
} }
}, },
setVideoData() { setVideoData() {
console.log(this.videoData);
// Set url to the next item // Set url to the next item
if (this.videoData.next_item.category !== "") { if (this.videoData.next_item.category !== "") {
let result = util.parseItem( let result = util.parseItem(
...@@ -421,8 +419,8 @@ export default { ...@@ -421,8 +419,8 @@ export default {
name: "Highs", name: "Highs",
marker: { marker: {
color: colors.green, color: colors.green,
size: 12 size: 12,
} },
}; };
this.chartData[2] = { this.chartData[2] = {
x: [], x: [],
...@@ -431,21 +429,21 @@ export default { ...@@ -431,21 +429,21 @@ export default {
name: "Lows", name: "Lows",
marker: { marker: {
color: colors.red, color: colors.red,
size: 12 size: 12,
} },
}; };
this.chartData[0].x = []; this.chartData[0].x = [];
this.chartData[0].y = []; this.chartData[0].y = [];
this.chartData[0].name = "Video views over video runtime"; this.chartData[0].name = "Video views over video runtime";
this.chartData[0].marker = { color: this.mainColor }; this.chartData[0].marker = { color: this.mainColor, };
this.chartLayout = { this.chartLayout = {
xaxis: { xaxis: {
title: "Number of seconds", title: "Number of seconds",
tickformat: "%M:%S" tickformat: "%M:%S",
}, },
yaxis: { yaxis: {
title: "Number of views" title: "Number of views",
} },
}; };
this.chartLayout.shapes = []; this.chartLayout.shapes = [];
let high = 0; let high = 0;
...@@ -483,7 +481,7 @@ export default { ...@@ -483,7 +481,7 @@ export default {
getTime(seconds) { getTime(seconds) {
let date = new Date(seconds * 1000); let date = new Date(seconds * 1000);
return date.toISOString(); return date.toISOString();
} },
}, },
computed: { computed: {
large() { large() {
...@@ -523,8 +521,8 @@ export default { ...@@ -523,8 +521,8 @@ export default {
.split(" ") .split(" ")
.join("-") .join("-")
.toLowerCase(); .toLowerCase();
} },
} },
}; };
</script> </script>
......
...@@ -160,7 +160,6 @@ export default { ...@@ -160,7 +160,6 @@ export default {
util util
.getVideos(this.courseId, this.$store.state.filters) .getVideos(this.courseId, this.$store.state.filters)
.then(response => { .then(response => {
console.log(response.data);
if (response.data.length > 0) { if (response.data.length > 0) {
this.isLoading = false; this.isLoading = false;
this.lessons = util.convertToLessons(response.data); this.lessons = util.convertToLessons(response.data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment