Turn off dev mode in production, work on mod pages

This commit is contained in:
Jai A
2020-10-19 22:02:29 -07:00
parent 8cd4cc7d0d
commit 39f29399e7
7 changed files with 1057 additions and 753 deletions

View File

@@ -13,7 +13,7 @@
:src="
previewImage
? previewImage
: 'https://cdn.modrinth.com/file/modrinth/placeholder.png'
: 'https://cdn.modrinth.com/placeholder.png'
"
alt="preview-image"
/>
@@ -283,7 +283,7 @@
import axios from 'axios'
import Multiselect from 'vue-multiselect'
import DOMPurify from 'dompurify'
import xss from 'xss'
import marked from 'marked'
import ExitIcon from '~/assets/images/utils/exit.svg?inline'
@@ -434,7 +434,7 @@ export default {
this.currentVersionIndex = -1
},
setMarkdownBody() {
this.compiledBody = DOMPurify.sanitize(marked(this.body))
this.compiledBody = xss(marked(this.body))
},
getFilesSelectedText(length, defaultText) {
if (length === 0) {