Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit_yap article_yap commit bug #175

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/gopcomm/yap/article_yap.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link href="https://fonts.proxy.ustclug.org/css2?family=Noto+Sans+SC&display=swap" rel="stylesheet">

<!-- markdown -->
<link rel="stylesheet" href="/static/GoplusMarkdown/style7.css">
<link rel="stylesheet" href="/static/GoplusMarkdown/style.css">
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.8/plyr.css" >
<script data-widgets="code" src="https://goplus.org/widgets/loader.js"></script>

Expand All @@ -51,7 +51,7 @@
<script src="https://cdn.plyr.io/3.6.8/plyr.js"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script data-widgets="code" src="https://goplus.org/widgets/loader.js"></script>
<script src="/static/GoplusMarkdown/GoplusMarkdown11.umd.cjs"></script>
<script src="/static/GoplusMarkdown/GoplusMarkdown.umd.cjs"></script>



Expand Down
8 changes: 4 additions & 4 deletions cmd/gopcomm/yap/edit_yap.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<!-- markdown -->

<link rel="stylesheet" href="/static/GoplusMarkdown/style.css">
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.8/plyr.css">
<link rel="stylesheet" href="https://cdn.plyr.io/3.7.8/plyr.css">

<!-- Resource Import -->
<!-- <script type="module" crossorigin src="/static/assets/index-s63-Szuh.js"></script>
Expand All @@ -46,7 +46,7 @@
<!-- <script src="https://cdn.plyr.io/3.6.8/plyr.js"></script> -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script data-widgets="code" src="https://goplus.org/widgets/loader.js"></script>
<script src="/static/GoplusMarkdown/GoplusMarkdown11.umd.cjs"></script>
<script src="/static/GoplusMarkdown/GoplusMarkdown.umd.cjs"></script>
<script src="https://cdn.plyr.io/3.7.8/plyr.js"></script>

<script type="importmap">
Expand Down Expand Up @@ -251,7 +251,7 @@
<!-- Content -->
<markdown-editor></markdown-editor>

<video controls crossorigin playsinline poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg">
<!-- <video controls crossorigin playsinline poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg">
<source src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4" type="video/mp4" size="576">
<source src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4" type="video/mp4" size="720">
<source src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4" type="video/mp4" size="1080">
Expand All @@ -260,7 +260,7 @@
default>
<track kind="captions" label="Français" srclang="fr" src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt">
<a href="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4" download>Download</a>
</video>
</video> -->
</div>

<script>
Expand Down
117,692 changes: 60,051 additions & 57,641 deletions cmd/gopcomm/yap/markdown-vue/dist2/GoplusMarkdown.js

Large diffs are not rendered by default.

995 changes: 498 additions & 497 deletions cmd/gopcomm/yap/markdown-vue/dist2/GoplusMarkdown.umd.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/gopcomm/yap/markdown-vue/dist2/style.css

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion cmd/gopcomm/yap/markdown-vue/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import MarkdownViewer from './components/MarkdownViewer.vue';

<template>
<markdown-editor></markdown-editor>
<markdown-viewer md="```gop println ```"></markdown-viewer>
<markdown-viewer :md="c"></markdown-viewer>
<!-- <markdown-viewer md="!video[video/mp4](https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4)(https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt)"></markdown-viewer> -->
<!-- <video id="player" playsinline controls data-poster="/path/to/poster.jpg" ref="plyr">
<source src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4" type="video/mp4" />
</video> -->
Expand Down Expand Up @@ -51,9 +52,14 @@ export default {
// crossorigin: 'anonymous',
// poster: '',
// playsinline: true
c: "!video[video/mp4](https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4)(https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt)"
}
},
mounted() {
setTimeout(() => {
this.c = "```gop ```"
console.log("set time out")
}, 5000)
// const player = new Plyr(this.$refs.plyr, {
// controls: ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'airplay', 'fullscreen']
// })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export default {
let vtt_a = now_v[i]
console.log("=========duibi", src, src_a)
// console.log("src", src)
return `<div><video controls crossorigin playsinline data-poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg" id="player"><source src=${src_a} type="video/mp4" size="576"/><track kind="captions" label="English" srclang="en" src=${vtt_a} default/><track kind="captions" label="Français" srclang="fr" src=${vtt_a}/><a href=${src_a} download>Download</a></video></div>`
// return `<div><video controls crossorigin playsinline data-poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg" id="player"><source src=${src_a} type="video/mp4" size="576"/><track kind="captions" label="English" srclang="en" src=${vtt_a} default/><track kind="captions" label="Français" srclang="fr" src=${vtt_a}/><a href=${src_a} download>Download</a></video></div>`
let poster = src_a + "/vframe/jpg/offset/7"
return `<div><video controls crossorigin playsinline preload="meta" poster=${poster} id="player"><source src=${src_a} type="video/mp4" size="576"/><track kind="captions" label="English" srclang="en" src=${vtt_a} default/><track kind="captions" label="Français" srclang="fr" src=${vtt_a}/><a href=${src_a} download>Download</a></video></div>`
})
}
console.log("replace")
Expand Down
Loading
Loading