mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Display views in trending.
This commit is contained in:
		
							parent
							
								
									35ddda7e66
								
							
						
					
					
						commit
						e7146f0b44
					
				
					 1 changed files with 11 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -3,23 +3,20 @@
 | 
			
		|||
 | 
			
		||||
    <hr />
 | 
			
		||||
 | 
			
		||||
    <div class="uk-grid-collapse" uk-grid="parallax: 0">
 | 
			
		||||
    <div class="uk-grid-xl" uk-grid="parallax: 0">
 | 
			
		||||
        <div
 | 
			
		||||
            style="background: #0b0e0f"
 | 
			
		||||
            class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"
 | 
			
		||||
            v-bind:key="video.url"
 | 
			
		||||
            v-for="video in videos"
 | 
			
		||||
        >
 | 
			
		||||
            <div
 | 
			
		||||
                class="uk-card uk-card-default uk-card-body uk-grid-match uk-text-secondary"
 | 
			
		||||
                style="background: #0b0e0f"
 | 
			
		||||
            >
 | 
			
		||||
            <div class="uk-text-secondary" style="background: #0b0e0f">
 | 
			
		||||
                <router-link
 | 
			
		||||
                    class="uk-text-emphasis"
 | 
			
		||||
                    v-bind:to="video.url || '/'"
 | 
			
		||||
                >
 | 
			
		||||
                    <p>{{ video.title }}</p>
 | 
			
		||||
                    <img style="width: 100%" v-bind:src="video.thumbnail" />
 | 
			
		||||
                    <p>{{ video.title }}</p>
 | 
			
		||||
                </router-link>
 | 
			
		||||
                <router-link
 | 
			
		||||
                    class="uk-link-muted"
 | 
			
		||||
| 
						 | 
				
			
			@ -27,8 +24,11 @@
 | 
			
		|||
                >
 | 
			
		||||
                    <p>{{ video.uploaderName }}</p>
 | 
			
		||||
                </router-link>
 | 
			
		||||
                {{ timeFormat(video.duration) }}
 | 
			
		||||
                <b class="uk-text-small uk-align-right">
 | 
			
		||||
                    <font-awesome-icon icon="eye"></font-awesome-icon>
 | 
			
		||||
                    {{ video.views }} views
 | 
			
		||||
                </b>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
| 
						 | 
				
			
			@ -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);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue