@yeeyoon/library 3.6.7 → 3.6.8
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.
@@ -9,10 +9,7 @@ import React from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
10
10
|
import videojs from 'video.js';
|
11
11
|
import 'videojs-flash';
|
12
|
-
// import 'video.js/dist/video-js.css';
|
13
|
-
// import './video-js.min.css';
|
14
12
|
import styles from './styles.less';
|
15
|
-
// import 'videojs-font';
|
16
13
|
|
17
14
|
const videoOption = {
|
18
15
|
autoplay: true,
|
@@ -7,8 +7,9 @@
|
|
7
7
|
font-weight: normal;
|
8
8
|
font-style: normal;
|
9
9
|
}
|
10
|
-
|
10
|
+
@videoHeight: 560px;
|
11
11
|
.container {
|
12
|
+
height: @videoHeight;
|
12
13
|
:global {
|
13
14
|
.vjs-modal-dialog .vjs-modal-dialog-content,
|
14
15
|
.video-js .vjs-modal-dialog,
|
@@ -453,7 +454,8 @@
|
|
453
454
|
.video-js.vjs-1-1 {
|
454
455
|
width: 100%;
|
455
456
|
max-width: 100%;
|
456
|
-
height:
|
457
|
+
height: @videoHeight;
|
458
|
+
// height: 0;
|
457
459
|
}
|
458
460
|
|
459
461
|
.video-js.vjs-16-9 {
|
@@ -55,6 +55,7 @@ export const getVersionData = async (productName) => {
|
|
55
55
|
'https://prod-yeeyoon-oss.oss-cn-zhangjiakou.aliyuncs.com/newbie/version-center.json',
|
56
56
|
{ prefix: '' }
|
57
57
|
);
|
58
|
+
// const res = config;
|
58
59
|
const items = lodash.find(res, (item) => item.key == productName);
|
59
60
|
const newData = items?.content?.[0] || {};
|
60
61
|
if (oldData?.version !== newData?.version) {
|
@@ -66,13 +67,14 @@ export const getVersionData = async (productName) => {
|
|
66
67
|
ls.set('Yyun-Version', data);
|
67
68
|
}
|
68
69
|
if (oldData) return [oldData.isNew, newData, oldData.hasRead];
|
69
|
-
return [
|
70
|
+
return [true, newData, false];
|
70
71
|
}
|
71
72
|
if (productName == 'profile') {
|
72
73
|
const res = await request(
|
73
74
|
'https://prod-yeeyoon-oss.oss-cn-zhangjiakou.aliyuncs.com/newbie/version-center.json',
|
74
75
|
{ prefix: '' }
|
75
76
|
);
|
77
|
+
// const res = config;
|
76
78
|
let oldVersion = ls.get('Yyun-Version');
|
77
79
|
let versionObj = {};
|
78
80
|
let flag = false;
|