@opendesign-plus-test/components 0.0.1-rc.21 → 0.0.1-rc.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +428 -137
- package/dist/components/OBanner.vue.d.ts +10 -1
- package/dist/components/OFooter.vue.d.ts +1 -1
- package/dist/components/OHeaderSearch.vue.d.ts +4 -4
- package/dist/components/activity/OActivityApproval.vue.d.ts +277 -0
- package/dist/components/activity/OActivityForm.vue.d.ts +140 -0
- package/dist/components/activity/OMyActivityCalendar.vue.d.ts +578 -0
- package/dist/components/activity/config.d.ts +15 -0
- package/dist/components/activity/data.d.ts +51 -0
- package/dist/components/activity/index.d.ts +623 -0
- package/dist/components/activity/types.d.ts +76 -0
- package/dist/components/meeting/OMeetingCalendar.vue.d.ts +309 -0
- package/dist/components/meeting/OMeetingForm.vue.d.ts +156 -0
- package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +582 -0
- package/dist/components/meeting/OSigMeetingCalendar.vue.d.ts +24 -0
- package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +27 -0
- package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +664 -0
- package/dist/components/meeting/components/OMeetingDetail.vue.d.ts +12 -0
- package/dist/components/meeting/components/OMeetingPlaybackSubtitles.vue.d.ts +5 -0
- package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +17 -0
- package/dist/components/meeting/components/OSigMeetingAside.vue.d.ts +16 -0
- package/dist/components/meeting/config.d.ts +27 -0
- package/dist/components/meeting/types.d.ts +140 -0
- package/dist/components/meeting/utils.d.ts +21 -0
- package/dist/components.cjs.js +224 -3
- package/dist/components.css +1 -1
- package/dist/components.es.js +43544 -2307
- package/dist/index.d.ts +2 -0
- package/package.json +6 -3
- package/scripts/generate-components-index.js +4 -0
- package/src/assets/meeting/svg-icons/icon-all.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-backward.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-calendar.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-cancel.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-captions.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-close-captions.svg +6 -0
- package/src/assets/meeting/svg-icons/icon-close-fullscreen.svg +6 -0
- package/src/assets/meeting/svg-icons/icon-copy.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-create.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-delete.svg +7 -0
- package/src/assets/meeting/svg-icons/icon-empty.svg +31 -0
- package/src/assets/meeting/svg-icons/icon-empty_dark.svg +49 -0
- package/src/assets/meeting/svg-icons/icon-event.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-export.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-forward.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-fullscreen.svg +6 -0
- package/src/assets/meeting/svg-icons/icon-help.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-important.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-info.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-meet.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-meeting-message.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-meeting.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-play.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-playing-tip.svg +7 -0
- package/src/assets/meeting/svg-icons/icon-playing.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-question.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-sound.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-speaker.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-summit.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-telligent.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-tip.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-todo.svg +4 -0
- package/src/assets/meeting/transparent.png +0 -0
- package/src/assets/svg-icons/icon-chevron-up.svg +3 -0
- package/src/assets/svg-icons/icon-filter.svg +3 -0
- package/src/assets/svg-icons/icon-loading.svg +4 -0
- package/src/assets/svg-icons/icon-search.svg +3 -0
- package/src/assets/svg-icons/icon-tips.svg +3 -0
- package/src/components/OBanner.vue +11 -3
- package/src/components/OFooter.vue +1 -1
- package/src/components/activity/OActivityApproval.vue +775 -0
- package/src/components/activity/OActivityForm.vue +465 -0
- package/src/components/activity/OMyActivityCalendar.vue +1342 -0
- package/src/components/activity/config.ts +130 -0
- package/src/components/activity/data.ts +365 -0
- package/src/components/activity/index.ts +24 -0
- package/src/components/activity/types.ts +83 -0
- package/src/components/common/MoreText.vue +119 -0
- package/src/components/common/ThFilter.vue +326 -0
- package/src/components/events/OEventsApply.vue +2 -86
- package/src/components/events/OEventsCalendar.vue +0 -25
- package/src/components/events/OEventsList.vue +0 -51
- package/src/components/events/index.ts +1 -0
- package/src/components/meeting/OMeetingCalendar.vue +865 -0
- package/src/components/meeting/OMeetingForm.vue +1035 -0
- package/src/components/meeting/OMeetingPlayback.vue +439 -0
- package/src/components/meeting/OMyMeetingCalendar.vue +1501 -0
- package/src/components/meeting/OSigMeetingCalendar.vue +411 -0
- package/src/components/meeting/components/OMeetingCalendarList.vue +462 -0
- package/src/components/meeting/components/OMeetingCalendarSelector.vue +206 -0
- package/src/components/meeting/components/OMeetingDetail.vue +189 -0
- package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +611 -0
- package/src/components/meeting/components/OMeetingPlaybackVideo.vue +741 -0
- package/src/components/meeting/components/OMyCalendarWrapper.vue +160 -0
- package/src/components/meeting/components/OSigMeetingAside.vue +197 -0
- package/src/components/meeting/config.ts +110 -0
- package/src/components/meeting/index.ts +45 -0
- package/src/components/meeting/types.ts +167 -0
- package/src/components/meeting/utils.ts +106 -0
- package/src/draft/Footer.vue +4 -4
- package/src/env.d.ts +15 -0
- package/src/i18n/en.ts +140 -0
- package/src/i18n/index.ts +18 -4
- package/src/i18n/zh.ts +140 -0
- package/src/index.ts +2 -0
- package/tsconfig.json +6 -2
- package/vite.config.ts +25 -9
- package/npmcachae/_cacache/content-v2/sha512/05/f7/dd881de8b21208ea65cfce17c65f29964c3897505819f81151b9798a3a6ab1a1114324192354ead15cd2c8d93f76cc9929af168066ec9cc7878d0fd87578 +0 -1
- package/npmcachae/_cacache/content-v2/sha512/08/b7/879230f8c2f3765920a6fd6113f4687141f1f645f96af7d95a0dee9113d1095d000fb78a5dd55c1860bbfb9b698ef6281b3874b03b2384222f61fe055fc4 +0 -1
- package/npmcachae/_cacache/content-v2/sha512/10/a0/a6626613c03ee052925a762e8675878efdf83dac64fafea43beb2a875f7d7c3907bb0ee30761253cd16021fd58911449594e1d3358675cbb7c48e62f220a +0 -1
- package/npmcachae/_cacache/content-v2/sha512/2e/a6/7cbcf55a98bbe2ca881d10e982ebf59211a0ec051eaf46eb1914df66cc35ae502ed6888850e51d8f45cd92695bac16961a642bc41508f8d5160a9ab617ab +0 -1
- package/npmcachae/_cacache/content-v2/sha512/92/8d/e5259c5d5cc2a625247f3c4d809192ca9482467e23683d74924a11e91a7997ad890b3d26adaf34df66d5329cc7a5fbde6713110cad05107a0b504e4fd4e8 +0 -1
- package/npmcachae/_cacache/content-v2/sha512/e9/45/9597d870127c35681155cec5fe52fde4e1aa0f778b996ee371e856aca850ee4c13aba74b0c3d3a89ff0ea4c9e1d33e64e53c31dc9cede0b31012695ee659 +0 -1
- package/npmcachae/_cacache/index-v5/16/4a/7195fcc6857299c4ab7e26014a8ae6e3c396507a2c8db3da1b74b005d574 +0 -3
- package/npmcachae/_cacache/index-v5/58/f0/4fe556f104b09be642895a82afa463fe560d9a0dc8f507efeef825a6905e +0 -3
- package/npmcachae/_cacache/index-v5/67/7d/0b50dc4c09555fc922ccf43c46994f1a0a5ff47dc0a5d5cf41437ac2d3e6 +0 -3
- package/npmcachae/_cacache/index-v5/8f/28/353f8839e030ab11aab3e7d9f1b8c053403e9f593cf6d4aa6ec8fdd7610d +0 -3
- package/npmcachae/_cacache/index-v5/97/10/0fcf20eb29d0726bd820822f6729718464b591b0e6901217c956740e943c +0 -3
- package/npmcachae/_cacache/index-v5/db/89/a0a4f35f593105624ab39339962d9e9b5cc65ed0c346b0732fb8dd73721d +0 -3
- package/npmcachae/_logs/2026-03-26T14_10_35_885Z-debug-0.log +0 -171
- package/npmcachae/_logs/2026-03-26T14_10_38_617Z-debug-0.log +0 -4227
- package/npmcachae/_logs/2026-03-26T14_10_45_316Z-debug-0.log +0 -4228
- package/npmcachae/_logs/2026-03-26T14_10_48_169Z-debug-0.log +0 -4228
- package/npmcachae/_logs/2026-03-26T14_10_51_306Z-debug-0.log +0 -464
- package/npmcachae/_logs/2026-03-26T14_10_53_911Z-debug-0.log +0 -464
- package/npmcachae/_logs/2026-03-26T14_10_56_398Z-debug-0.log +0 -464
- package/npmcachae/_logs/2026-03-26T14_10_58_861Z-debug-0.log +0 -464
- package/npmcachae/_logs/2026-03-26T14_11_01_337Z-debug-0.log +0 -464
- package/npmcachae/_logs/2026-03-26T14_11_03_851Z-debug-0.log +0 -464
- package/npmcachae/_logs/2026-03-26T14_11_08_024Z-debug-0.log +0 -464
- package/npmcachae/_update-notifier-last-checked +0 -0
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/3e/17/1865217b9acb9f4921c53a09b5c76587cd2ab748beb2699ff6cfb1341d73b1aa56ed91ffc5ab2c9c9b3fbe626103b35d9a79ff29ff6b8cbb8d89755fe1a2 +0 -1
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/a6/15/47bb7552ec9248079e839a5feecc1742d4de19524fdf041cf581701cf4760a5025106036145e279ba193b07c8fa5b07ae3d75f1b6032f0cb2219115b6167 +0 -1
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/d1/4c/133b32e09c97101a27a07cc4432f94e470cff02d120d21babcea77c3f5cd436793516dc1a8e282ee1a568f923c148b1a48f4a43233462a530d35e8b41c67 +0 -1
- package/src/components/meeting/npmcachae/_cacache/index-v5/54/0d/a4909047714a0a7198bb9bd37020992464e47c79a791889919b84d90aab0 +0 -3
- package/src/components/meeting/npmcachae/_cacache/index-v5/8e/2b/21a79778e2ac08cf5663baf83cb35f951995a496007eb2e2f7fba54021a4 +0 -3
- package/src/components/meeting/npmcachae/_cacache/index-v5/eb/a0/b70c8132e5b57a0f1e129b8cc941796420a9c147c0baa680710083740898 +0 -2
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_54_955Z-debug-0.log +0 -277
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_57_842Z-debug-0.log +0 -277
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_00_016Z-debug-0.log +0 -277
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_02_191Z-debug-0.log +0 -277
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_04_425Z-debug-0.log +0 -277
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_06_642Z-debug-0.log +0 -277
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_08_826Z-debug-0.log +0 -277
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_36_140Z-debug-0.log +0 -433
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_39_573Z-debug-0.log +0 -433
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_42_134Z-debug-0.log +0 -212
- package/src/components/meeting/npmcachae/_update-notifier-last-checked +0 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, onMounted, onUnmounted, ref, watchEffect } from 'vue';
|
|
3
|
+
import { speakerNum, transformSeconds, transformTime } from './utils';
|
|
4
|
+
import { OOption, OSelect, OTab, OTabPane, type SelectValueT } from '@opensig/opendesign';
|
|
5
|
+
import OMeetingPlaybackSubtitles from './components/OMeetingPlaybackSubtitles.vue';
|
|
6
|
+
import OMeetingPlaybackVideo from './components/OMeetingPlaybackVideo.vue';
|
|
7
|
+
import { useI18n } from '@/i18n';
|
|
8
|
+
import { PROGRESS_COLORS } from './config';
|
|
9
|
+
import type { CaptionItemT, MeetingPlaybackPropsT, SubjectItemT } from './types';
|
|
10
|
+
|
|
11
|
+
const props = withDefaults(defineProps<MeetingPlaybackPropsT>(), {
|
|
12
|
+
dates: () => [],
|
|
13
|
+
data: () => ({}) as any,
|
|
14
|
+
detail: () => ({}) as any,
|
|
15
|
+
});
|
|
16
|
+
const emits = defineEmits(['change-date']);
|
|
17
|
+
|
|
18
|
+
const playbackInstance = ref(null);
|
|
19
|
+
const getInstance = (instance: any) => {
|
|
20
|
+
playbackInstance.value = instance;
|
|
21
|
+
};
|
|
22
|
+
const trackIdx = ref(0);
|
|
23
|
+
const setTrackIdx = (idx: number) => {
|
|
24
|
+
trackIdx.value = idx;
|
|
25
|
+
};
|
|
26
|
+
// -------------------- 字幕列表 --------------------
|
|
27
|
+
const captionsList = ref<CaptionItemT[]>([]);
|
|
28
|
+
const getCaptions = async (url: string) => {
|
|
29
|
+
const res = await fetch(url);
|
|
30
|
+
const json = await res.json();
|
|
31
|
+
captionsList.value = (json.segments || []).map((v: CaptionItemT) => {
|
|
32
|
+
const speakerIdx = speakerNum(v.speaker);
|
|
33
|
+
return {
|
|
34
|
+
...v,
|
|
35
|
+
contentHtml: v.content,
|
|
36
|
+
speakerIdx,
|
|
37
|
+
speakerLabel: `${ t('meeting.speaker') }${ speakerIdx }`,
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
// -------------------- 处理议题分段 --------------------
|
|
44
|
+
const subjectList = ref<SubjectItemT[]>([]);
|
|
45
|
+
const getProgressColor = (idx: number) => {
|
|
46
|
+
return PROGRESS_COLORS[idx % 3];
|
|
47
|
+
};
|
|
48
|
+
const playerDuration = ref(0);
|
|
49
|
+
const getPlayerDuration = (seconds: number) => {
|
|
50
|
+
playerDuration.value = seconds;
|
|
51
|
+
};
|
|
52
|
+
const playerRef = ref();
|
|
53
|
+
const mouseTime = ref('');
|
|
54
|
+
const mousePosition = ref<[number | string, number | string]>([0, 0]);
|
|
55
|
+
|
|
56
|
+
// 计算鼠标在柱子上的相对位置百分比
|
|
57
|
+
function calculateCurrentTime(e: any, bar: any) {
|
|
58
|
+
const rect = bar.getBoundingClientRect();
|
|
59
|
+
const x = e.clientX - rect.left;
|
|
60
|
+
const ratio = x / rect.width;
|
|
61
|
+
mousePosition.value[1] = `${ bar.offsetTop + bar.parentElement.offsetTop }px`;
|
|
62
|
+
mousePosition.value[0] = `${ ratio * 100 }%`;
|
|
63
|
+
return ratio * playerDuration.value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const getParentProgress = (el: HTMLElement) => {
|
|
67
|
+
let ele: HTMLElement | null = el;
|
|
68
|
+
while (ele && ele.className !== 'subject-progress') {
|
|
69
|
+
ele = ele.parentElement;
|
|
70
|
+
}
|
|
71
|
+
return ele;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const mouseOverItem = (e: any) => {
|
|
75
|
+
let ele = getParentProgress(e.target);
|
|
76
|
+
if (ele) {
|
|
77
|
+
mouseTime.value = transformSeconds(calculateCurrentTime(e, ele));
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const mouseLeaveItem = () => {
|
|
81
|
+
mouseTime.value = '';
|
|
82
|
+
};
|
|
83
|
+
const changeTime = (e: any) => {
|
|
84
|
+
let ele = getParentProgress(e.target);
|
|
85
|
+
if (ele) {
|
|
86
|
+
playerRef.value?.changeTime(calculateCurrentTime(e, ele));
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const getSubjectList = async (url: string) => {
|
|
91
|
+
const res = await fetch(url);
|
|
92
|
+
const json = await res.json();
|
|
93
|
+
subjectList.value = (json || []).map((z: SubjectItemT) => {
|
|
94
|
+
return {
|
|
95
|
+
...z,
|
|
96
|
+
startTime: transformTime(z.startTime as string),
|
|
97
|
+
endTime: transformTime(z.endTime as string),
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// -------------------- tab切换 --------------------
|
|
103
|
+
const tab = ref('info');
|
|
104
|
+
const tabOptions = computed(() => {
|
|
105
|
+
const items = [
|
|
106
|
+
{
|
|
107
|
+
label: t('meeting.baseInfo'),
|
|
108
|
+
value: 'info',
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
if (subjectList.value.length) {
|
|
112
|
+
items.push({
|
|
113
|
+
label: t('meeting.subject'),
|
|
114
|
+
value: 'subject',
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return items;
|
|
118
|
+
});
|
|
119
|
+
const getData = () => {
|
|
120
|
+
if (!props.data) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (props.data.textJson) {
|
|
124
|
+
getCaptions(props.data.textJson);
|
|
125
|
+
}
|
|
126
|
+
if (props.data.topicJson) {
|
|
127
|
+
getSubjectList(props.data.topicJson);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
watchEffect(() => {
|
|
132
|
+
getData();
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const changeDate = (val: SelectValueT) => {
|
|
136
|
+
emits('change-date', val);
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// -------------------- 同步高度 --------------------
|
|
140
|
+
const leftRef = ref<HTMLElement | null>(null);
|
|
141
|
+
const rightHeight = ref('auto');
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
let observer: any = null;
|
|
145
|
+
let raf: any = null;
|
|
146
|
+
|
|
147
|
+
const updateHeight = () => {
|
|
148
|
+
if (leftRef.value) {
|
|
149
|
+
rightHeight.value = `${ leftRef.value!.offsetHeight }px`;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const debouncedUpdate = () => {
|
|
154
|
+
cancelAnimationFrame(raf);
|
|
155
|
+
raf = requestAnimationFrame(updateHeight);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
onMounted(() => {
|
|
159
|
+
if (leftRef.value) {
|
|
160
|
+
observer = new ResizeObserver(debouncedUpdate);
|
|
161
|
+
observer.observe(leftRef.value);
|
|
162
|
+
updateHeight();
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
onUnmounted(() => {
|
|
167
|
+
cancelAnimationFrame(raf);
|
|
168
|
+
observer?.disconnect();
|
|
169
|
+
});
|
|
170
|
+
</script>
|
|
171
|
+
|
|
172
|
+
<template>
|
|
173
|
+
<div class="o-meeting-playback">
|
|
174
|
+
<div class="left-card card-wrapper" ref="leftRef">
|
|
175
|
+
<div class="video-header">
|
|
176
|
+
<div class="video-title">{{ detail?.topic }}({{ detail?.date }})</div>
|
|
177
|
+
<OSelect
|
|
178
|
+
v-if="dates?.length"
|
|
179
|
+
size="large"
|
|
180
|
+
:clearable="false"
|
|
181
|
+
:model-value="detail?.date"
|
|
182
|
+
:placeholder="t('meeting.selectDate')"
|
|
183
|
+
@change="changeDate">
|
|
184
|
+
<OOption v-for="t in dates" :key="t" :value="t" :label="t" />
|
|
185
|
+
</OSelect>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="video-content">
|
|
188
|
+
<OMeetingPlaybackVideo
|
|
189
|
+
v-if="data"
|
|
190
|
+
ref="playerRef"
|
|
191
|
+
:src="data.video"
|
|
192
|
+
:vtt="data.textVtt"
|
|
193
|
+
:poster="data.poster"
|
|
194
|
+
:captions="captionsList"
|
|
195
|
+
@getDuration="getPlayerDuration"
|
|
196
|
+
:instance="playbackInstance"
|
|
197
|
+
@getInstance="getInstance"
|
|
198
|
+
:trackIdx="trackIdx"
|
|
199
|
+
@setTrackIdx="setTrackIdx"
|
|
200
|
+
/>
|
|
201
|
+
</div>
|
|
202
|
+
<div class="info-wrapper">
|
|
203
|
+
<OTab v-model="tab">
|
|
204
|
+
<OTabPane v-for="t in tabOptions" :key="t.value" :value="t.value" :label="t.label" />
|
|
205
|
+
</OTab>
|
|
206
|
+
<div class="tab-content">
|
|
207
|
+
<div class="base-info" v-if="tab === tabOptions[0].value">
|
|
208
|
+
<div class="info-item">
|
|
209
|
+
<span>{{ t('meeting.item1') }}</span>
|
|
210
|
+
<span>{{ detail.sponsor }}</span>
|
|
211
|
+
</div>
|
|
212
|
+
<div class="info-item">
|
|
213
|
+
<span>{{ t('meeting.item2') }}</span>
|
|
214
|
+
<span>{{ detail.groupName }}</span>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="info-item">
|
|
217
|
+
<span>{{ t('meeting.item3') }}</span>
|
|
218
|
+
<span>{{ detail.date }} {{ detail.start }}~{{ detail.end }}</span>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="info-item">
|
|
221
|
+
<span>{{ t('meeting.item4') }}</span>
|
|
222
|
+
<span>{{ detail.agenda || '-' }}</span>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="subject-list" v-if="tab === tabOptions[1]?.value">
|
|
226
|
+
<div
|
|
227
|
+
v-if="mouseTime"
|
|
228
|
+
class="mouse-current-time"
|
|
229
|
+
:style="{
|
|
230
|
+
top: mousePosition[1],
|
|
231
|
+
left: mousePosition[0],
|
|
232
|
+
}"
|
|
233
|
+
>
|
|
234
|
+
{{ mouseTime }}
|
|
235
|
+
</div>
|
|
236
|
+
<div class="subject-item" v-for="(sub, idx) in subjectList" :key="sub.title">
|
|
237
|
+
<div class="subject-title">{{ sub.title }}</div>
|
|
238
|
+
<div class="subject-progress" v-if="playerDuration">
|
|
239
|
+
<div
|
|
240
|
+
class="subject-progress-item"
|
|
241
|
+
@click="changeTime"
|
|
242
|
+
@mousemove="mouseOverItem"
|
|
243
|
+
@mouseleave="mouseLeaveItem"
|
|
244
|
+
:data-start="sub.startTime"
|
|
245
|
+
:data-end="sub.endTime"
|
|
246
|
+
:style="{
|
|
247
|
+
'--start': (sub.startTime < 0 ? 0 : sub.startTime) / playerDuration,
|
|
248
|
+
'--end': (sub.endTime > playerDuration ? playerDuration : sub.endTime) / playerDuration,
|
|
249
|
+
background: getProgressColor(idx),
|
|
250
|
+
}"
|
|
251
|
+
></div>
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
<div class="right-card card-wrapper" :style="{
|
|
259
|
+
height: rightHeight
|
|
260
|
+
}">
|
|
261
|
+
<OMeetingPlaybackSubtitles
|
|
262
|
+
:captions="captionsList"
|
|
263
|
+
:trackIdx="trackIdx"
|
|
264
|
+
:instance="playbackInstance" />
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
</template>
|
|
268
|
+
|
|
269
|
+
<style lang="scss">
|
|
270
|
+
.o-meeting-playback {
|
|
271
|
+
display: flex;
|
|
272
|
+
gap: var(--grid-column-gutter);
|
|
273
|
+
align-items: flex-start;
|
|
274
|
+
|
|
275
|
+
@include respond-to('<=pad_v') {
|
|
276
|
+
flex-wrap: wrap;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.card-wrapper {
|
|
280
|
+
border-radius: var(--o-radius-xs);
|
|
281
|
+
background-color: var(--o-color-fill2);
|
|
282
|
+
padding: var(--o-gap-5);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.left-card {
|
|
286
|
+
width: 60%;
|
|
287
|
+
@include respond-to('<=pad_v') {
|
|
288
|
+
width: 100%;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.video-header {
|
|
292
|
+
display: flex;
|
|
293
|
+
align-items: center;
|
|
294
|
+
justify-content: space-between;
|
|
295
|
+
|
|
296
|
+
.video-title {
|
|
297
|
+
font-weight: 500;
|
|
298
|
+
@include h2;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.o-select {
|
|
302
|
+
width: 150px;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.video-content {
|
|
307
|
+
margin-top: var(--o-gap-5);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.info-wrapper {
|
|
311
|
+
margin-top: var(--o-gap-5);
|
|
312
|
+
|
|
313
|
+
.o-tab {
|
|
314
|
+
.o-tab-navs {
|
|
315
|
+
justify-content: flex-start;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.o-tab-nav {
|
|
319
|
+
padding-bottom: var(--o-gap-4);
|
|
320
|
+
@include respond-to('<=pad_v') {
|
|
321
|
+
padding-bottom: var(--o-gap-2);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.tab-content {
|
|
327
|
+
padding-top: var(--o-gap-4);
|
|
328
|
+
|
|
329
|
+
.base-info {
|
|
330
|
+
@include tip1;
|
|
331
|
+
|
|
332
|
+
.info-item {
|
|
333
|
+
display: flex;
|
|
334
|
+
align-items: center;
|
|
335
|
+
|
|
336
|
+
&:last-child {
|
|
337
|
+
align-items: flex-start;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
span:first-child {
|
|
341
|
+
width: 6em;
|
|
342
|
+
flex-shrink: 0;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
span:last-child {
|
|
346
|
+
color: var(--o-color-info2);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.info-item + .info-item {
|
|
351
|
+
margin-top: var(--o-gap-2);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.subject-list {
|
|
356
|
+
counter-reset: itemIndex;
|
|
357
|
+
position: relative;
|
|
358
|
+
|
|
359
|
+
.mouse-current-time {
|
|
360
|
+
position: absolute;
|
|
361
|
+
background-color: var(--o-color-fill2);
|
|
362
|
+
padding: var(--o-gap-1);
|
|
363
|
+
box-shadow: var(--o-shadow-1);
|
|
364
|
+
z-index: 10;
|
|
365
|
+
border-radius: var(--o-radius-xs);
|
|
366
|
+
transform: translateY(calc(0px - 100% - 4px));
|
|
367
|
+
color: var(--o-color-info2);
|
|
368
|
+
@include tip1;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.subject-item {
|
|
372
|
+
position: relative;
|
|
373
|
+
padding: 4px 0 8px 32px;
|
|
374
|
+
|
|
375
|
+
&::before {
|
|
376
|
+
counter-increment: itemIndex;
|
|
377
|
+
position: absolute;
|
|
378
|
+
content: counter(itemIndex);
|
|
379
|
+
width: 18px;
|
|
380
|
+
height: 18px;
|
|
381
|
+
text-align: center;
|
|
382
|
+
left: 4px;
|
|
383
|
+
top: 11px;
|
|
384
|
+
color: #fff;
|
|
385
|
+
background-color: var(--o-color-primary1);
|
|
386
|
+
border-radius: 50%;
|
|
387
|
+
font-size: 12px;
|
|
388
|
+
line-height: 18px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.subject-title {
|
|
392
|
+
color: var(--o-color-info2);
|
|
393
|
+
font-size: 14px;
|
|
394
|
+
line-height: 32px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
&::after {
|
|
398
|
+
content: '';
|
|
399
|
+
position: absolute;
|
|
400
|
+
bottom: 4px;
|
|
401
|
+
left: 32px;
|
|
402
|
+
right: 0;
|
|
403
|
+
height: 4px;
|
|
404
|
+
border-radius: 2px;
|
|
405
|
+
background-color: var(--o-color-fill1);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.subject-progress {
|
|
409
|
+
position: absolute;
|
|
410
|
+
bottom: 4px;
|
|
411
|
+
left: 30px;
|
|
412
|
+
right: 0;
|
|
413
|
+
height: 4px;
|
|
414
|
+
|
|
415
|
+
.subject-progress-item {
|
|
416
|
+
cursor: pointer;
|
|
417
|
+
position: absolute;
|
|
418
|
+
top: 0;
|
|
419
|
+
bottom: 0;
|
|
420
|
+
border-radius: var(--o-radius-xs);
|
|
421
|
+
left: calc(var(--start) * 100%);
|
|
422
|
+
right: calc((1 - var(--end)) * 100%);
|
|
423
|
+
z-index: 9;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.right-card {
|
|
433
|
+
width: 40%;
|
|
434
|
+
@include respond-to('<=pad_v') {
|
|
435
|
+
width: 100%;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
</style>
|