fix lint
This commit is contained in:
1 parent
f225debe34
commit
d1f7b0fe5f
23 files changed
+1054
-362
No files matched your search
@@ -1,7 +1,9 @@
|
||||
<template>
|
||||
<el-breadcrumb separator="/" class="breadcrumb">
|
||||
<el-breadcrumb-item :to="{ path: '/' }">{{ $t('common.nav.home') }}</el-breadcrumb-item>
|
||||
<el-breadcrumb-item v-for="item in items" :to="{ name: item.name }">{{ item.meta.title }}</el-breadcrumb-item>
|
||||
<el-breadcrumb-item v-for="(item, itemIndex) in items" :key="itemIndex" :to="{ name: item.name }">{{
|
||||
item.meta.title
|
||||
}}</el-breadcrumb-item>
|
||||
</el-breadcrumb>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<el-pagination
|
||||
class="mt-3 mb-3"
|
||||
background
|
||||
@currentChange="onPageChange"
|
||||
layout="prev, pager, next"
|
||||
:current-page="currentPage"
|
||||
:total="total"
|
||||
:page-size="pageSize"
|
||||
@currentChange="onPageChange"
|
||||
>
|
||||
</el-pagination>
|
||||
</template>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-alert :title="content" v-if="show" type="success" center :closable="false" show-icon class="alert-succcess-info">
|
||||
<el-alert v-if="show" :title="content" type="success" center :closable="false" show-icon class="alert-succcess-info">
|
||||
</el-alert>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -7,16 +7,16 @@
|
||||
<el-row>
|
||||
<el-col :span="20">
|
||||
<el-menu :default-active="active" class="el-menu-demo" mode="horizontal" @select="onSelect">
|
||||
<el-menu-item index="/courses" v-t="'common.nav.course'"></el-menu-item>
|
||||
<el-menu-item v-t="'common.nav.course'" index="/courses"></el-menu-item>
|
||||
</el-menu>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<div class="mt-4 pr-10" v-if="!$store.getters.authenticated">
|
||||
<div v-if="!$store.getters.authenticated" class="mt-4 pr-10">
|
||||
<el-button type="primary" class="float-right" size="small" round @click="onLogin">{{
|
||||
$t('common.button.login')
|
||||
}}</el-button>
|
||||
</div>
|
||||
<div class="mt-3 pr-10 float-right" v-else>
|
||||
<div v-else class="mt-3 pr-10 float-right">
|
||||
<el-dropdown trigger="click">
|
||||
<img :src="$store.getters.user?.avatar" class="avatar" />
|
||||
<template #dropdown>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<vue-plyr :options="options" ref="plyr">
|
||||
<video controls playsinline :data-poster="preview" ref="video"></video>
|
||||
<vue-plyr ref="plyr" :options="options">
|
||||
<video ref="video" controls playsinline :data-poster="preview"></video>
|
||||
</vue-plyr>
|
||||
</template>
|
||||
|
||||
@@ -27,16 +27,16 @@ export default defineComponent({
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
options: {}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
const video = this.$refs.video as HTMLMediaElement;
|
||||
const hls = new Hls();
|
||||
hls.loadSource(this.resource);
|
||||
hls.attachMedia(video);
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
options: {}
|
||||
};
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -2,8 +2,9 @@
|
||||
<div class="wrapper">
|
||||
<el-row
|
||||
v-for="(episode, episodeIndex) in episodes"
|
||||
@click="onClick(episode)"
|
||||
:key="episodeIndex"
|
||||
:class="{ item: true, active: episode.id === active }"
|
||||
@click="onClick(episode)"
|
||||
>
|
||||
<el-col :span="6" class="left">
|
||||
<span class="index">
|
||||
|
||||
Reference in new issue
Block a user