Update luma experience (#230)

This commit is contained in:
Germey authored and GitHub committed 2025-07-19 23:02:19 +08:00
1 parent 1150762ce5
commit 465159c7e5
27 files changed
+404 -944

No files matched your search

+7 -35
View File
@@ -1,16 +1,10 @@
<template>
<div class="field">
<div class="box">
<h2 class="title font-bold">{{ $t('luma.name.extend') }}</h2>
<div class="relative">
<div class="flex mb-2">
<span class="text-sm font-bold">{{ $t('luma.name.extend') }}</span>
</div>
<div class="task">
<div>
<vue-plyr :options="options" class="video">
<video controls crossorigin playsinline :data-poster="config?.thumbnail_url">
<source size="1080" :src="config?.video_url" type="video/mp4" />
</video>
</vue-plyr>
</div>
<div>
<video-player v-if="config?.video_url" :src="config?.video_url" />
</div>
</div>
</template>
@@ -18,14 +12,12 @@
<script lang="ts">
import { defineComponent } from 'vue';
// @ts-ignore
import VuePlyr from '@skjnldsv/vue-plyr';
// @ts-ignore
import { ILumaTask } from '@/models';
import '@skjnldsv/vue-plyr/dist/vue-plyr.css';
import VideoPlayer from '@/components/common/VideoPlayer.vue';
export default defineComponent({
name: 'ExtendFromInput',
components: { VuePlyr },
components: { VideoPlayer },
props: {
modelValue: {
type: Object as () => ILumaTask | undefined,
@@ -44,23 +36,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss" scoped>
.field {
.box {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
position: relative;
.title {
font-size: 14px;
margin-bottom: 10px;
}
.input-wrapper {
width: 150px;
margin-left: 30px;
}
}
}
</style>