chore: removed unused imports
This commit is contained in:
@@ -7,7 +7,7 @@ import Paragraph from '@editorjs/paragraph'
|
|||||||
import { CodeBox } from '@/utils/code'
|
import { CodeBox } from '@/utils/code'
|
||||||
import NestedList from '@editorjs/nested-list'
|
import NestedList from '@editorjs/nested-list'
|
||||||
import InlineCode from '@editorjs/inline-code'
|
import InlineCode from '@editorjs/inline-code'
|
||||||
import { watch, createApp } from 'vue'
|
import { watch } from 'vue'
|
||||||
import dayjs from '@/utils/dayjs'
|
import dayjs from '@/utils/dayjs'
|
||||||
import Embed from '@editorjs/embed'
|
import Embed from '@editorjs/embed'
|
||||||
|
|
||||||
|
|||||||
@@ -13,14 +13,12 @@ export class Upload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
console.log('render')
|
|
||||||
this.wrapper = document.createElement('div')
|
this.wrapper = document.createElement('div')
|
||||||
this.renderUpload(this.data)
|
this.renderUpload(this.data)
|
||||||
return this.wrapper
|
return this.wrapper
|
||||||
}
|
}
|
||||||
|
|
||||||
renderUpload(file) {
|
renderUpload(file) {
|
||||||
console.log(file.file_type)
|
|
||||||
if (this.isVideo(file.file_type)) {
|
if (this.isVideo(file.file_type)) {
|
||||||
const app = createApp(VideoBlock, {
|
const app = createApp(VideoBlock, {
|
||||||
file: file.file_url,
|
file: file.file_url,
|
||||||
@@ -39,7 +37,6 @@ export class Upload {
|
|||||||
)}#toolbar=0" width='100%' height='700px' class="mb-4"></iframe>`
|
)}#toolbar=0" width='100%' height='700px' class="mb-4"></iframe>`
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
console.log('in else')
|
|
||||||
this.wrapper.innerHTML = `<img class="mb-4" src=${encodeURI(
|
this.wrapper.innerHTML = `<img class="mb-4" src=${encodeURI(
|
||||||
file.file_url
|
file.file_url
|
||||||
)} width='100%'>`
|
)} width='100%'>`
|
||||||
|
|||||||
Reference in New Issue
Block a user