diff --git a/src/components/TrendingPage.vue b/src/components/TrendingPage.vue index 10c6582a..a838f2bf 100644 --- a/src/components/TrendingPage.vue +++ b/src/components/TrendingPage.vue @@ -3,23 +3,20 @@
-
+
-
+
-

{{ video.title }}

+

{{ video.title }}

{{ video.uploaderName }}

- - {{ video.views }} views + {{ timeFormat(video.duration) }} + + + {{ video.views }} views +
@@ -51,6 +51,9 @@ export default { methods: { async fetchTrending() { return await (await fetch(Constants.BASE_URL + "/trending")).json(); + }, + timeFormat(d) { + return require("@/utils/TimeUtils.js").default.timeFormat(d); } } };