-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from nnnnn319/dev
markdown component
- Loading branch information
Showing
14 changed files
with
115,350 additions
and
1,147 deletions.
There are no files selected for viewing
112,251 changes: 112,251 additions & 0 deletions
112,251
cmd/gopcomm/yap/component/GoplusMarkdown.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" href="./style.css"> | ||
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.8/plyr.css" > | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<!-- <markdown-editor></markdown-editor> --> | ||
<markdown-viewer md="```gop ```"></markdown-viewer> | ||
</div> | ||
</body> | ||
<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 type="importmap"> | ||
{ "imports": { | ||
"vue": "https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.41/vue.esm-browser.prod.js", | ||
"vue-router": "https://cdnjs.cloudflare.com/ajax/libs/vue-router/4.1.5/vue-router.esm-browser.min.js" | ||
} } | ||
</script> | ||
|
||
|
||
<script type="module"> | ||
import {MarkdownEditor, MarkdownViewer} from './GoplusMarkdown.js'; // vue组件与编辑组件 | ||
console.log(MarkdownEditor) | ||
const { createApp } = Vue | ||
|
||
createApp({ | ||
data() { | ||
return { | ||
message: 'Hello Vue!' | ||
} | ||
}, | ||
components: { | ||
MarkdownEditor: MarkdownEditor, | ||
MarkdownViewer: MarkdownViewer | ||
} | ||
}).mount('#app') | ||
|
||
|
||
</script> | ||
|
||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as MarkdownEditor } from "../src/components/MarkdownEditor.vue"; | ||
export { default as MarkdownViewer } from '../src/components/MarkdownViewer.vue' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.