mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
fix: Not need to load static/lib/video-js/7.20.2/video.min.js
This commit is contained in:
parent
9708c5e066
commit
a6c410bbc4
@ -19,12 +19,11 @@ const formatPage = (page) => {
|
|||||||
: page.component
|
: page.component
|
||||||
? templates.renderPageContent({ page: { id: pageContentId, component: page.component } })
|
? templates.renderPageContent({ page: { id: pageContentId, component: page.component } })
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
const headLinks = [
|
const headLinks = [
|
||||||
{ rel: 'preload', href: './static/lib/video-js/7.20.2/video.min.js', as: 'script' },
|
|
||||||
...(page.headLinks ? page.headLinks : []),
|
...(page.headLinks ? page.headLinks : []),
|
||||||
];
|
];
|
||||||
const bodyScripts = [
|
const bodyScripts = [
|
||||||
{ src: './static/lib/video-js/7.20.2/video.min.js' },
|
|
||||||
...(page.bodyScripts ? page.bodyScripts : []),
|
...(page.bodyScripts ? page.bodyScripts : []),
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -106,20 +105,6 @@ const PAGES = {
|
|||||||
component: 'MediaPage',
|
component: 'MediaPage',
|
||||||
global: { mediaId: DEV_SAMPLE_DATA.media.videoId },
|
global: { mediaId: DEV_SAMPLE_DATA.media.videoId },
|
||||||
},
|
},
|
||||||
'media-video': {
|
|
||||||
buildExclude: true,
|
|
||||||
id: 'media-video',
|
|
||||||
title: 'Media - Video',
|
|
||||||
component: 'MediaVideoPage',
|
|
||||||
global: { mediaId: DEV_SAMPLE_DATA.media.videoId },
|
|
||||||
},
|
|
||||||
'media-audio': {
|
|
||||||
buildExclude: true,
|
|
||||||
id: 'media-audio',
|
|
||||||
title: 'Media - Audio',
|
|
||||||
component: 'MediaAudioPage',
|
|
||||||
global: { mediaId: DEV_SAMPLE_DATA.media.audioId },
|
|
||||||
},
|
|
||||||
'media-image': {
|
'media-image': {
|
||||||
buildExclude: true,
|
buildExclude: true,
|
||||||
id: 'media-image',
|
id: 'media-image',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user