Lint :)))

This commit is contained in:
Cadence Ember 2020-06-24 04:39:26 +12:00
parent 8bdc3640ba
commit f17d715e24
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
3 changed files with 22 additions and 8 deletions

View File

@ -7,21 +7,21 @@
> >
<ft-list-channel <ft-list-channel
v-if="result.type === 'channel'" v-if="result.type === 'channel'"
:key="index"
appearance="result" appearance="result"
:data="result" :data="result"
:key="index"
/> />
<ft-list-video <ft-list-video
v-if="result.type === 'video' || result.type === 'shortVideo'" v-if="result.type === 'video' || result.type === 'shortVideo'"
:key="index"
appearance="result" appearance="result"
:data="result" :data="result"
:key="index"
/> />
<ft-list-playlist <ft-list-playlist
v-if="result.type === 'playlist'" v-if="result.type === 'playlist'"
:key="index"
appearance="result" appearance="result"
:data="result" :data="result"
:key="index"
/> />
</template> </template>
</ft-auto-grid> </ft-auto-grid>

View File

@ -1,6 +1,6 @@
import Vue from 'vue' import Vue from 'vue'
import FtIconButton from '../ft-icon-button/ft-icon-button.vue' import FtIconButton from '../ft-icon-button/ft-icon-button.vue'
import FtCard from "../ft-card/ft-card.vue" import FtCard from '../ft-card/ft-card.vue'
export default Vue.extend({ export default Vue.extend({
name: 'FtListVideo', name: 'FtListVideo',

View File

@ -71,10 +71,24 @@
{{ title }} {{ title }}
</router-link> </router-link>
<div class="infoLine"> <div class="infoLine">
<router-link class="channelName" :to="`/channel/${channelId}`">{{ channelName }}</router-link> <router-link
<span v-if="!isLive && !hideViews" class="viewCount"> {{ viewCount }} views</span> class="channelName"
<span v-if="uploadedTime !== '' && !isLive" class="uploadedTime"> {{ uploadedTime }}</span> :to="`/channel/${channelId}`"
<span v-if="isLive" class="viewCount"> {{ viewCount }} watching</span> >
<span>{{ channelName }}</span>
</router-link>
<span
v-if="!isLive && !hideViews"
class="viewCount"
> {{ viewCount }} views</span>
<span
v-if="uploadedTime !== '' && !isLive"
class="uploadedTime"
> {{ uploadedTime }}</span>
<span
v-if="isLive"
class="viewCount"
> {{ viewCount }} watching</span>
</div> </div>
<p <p
v-if="listType !== 'grid' && appearance === 'result'" v-if="listType !== 'grid' && appearance === 'result'"