Unverified Commit da9d2529 authored by NGPixel's avatar NGPixel

fix: hide unfinished editors from welcome screen

parent c4b57999
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
"markdown-it-footnote": "4.0.0", "markdown-it-footnote": "4.0.0",
"markdown-it-imsize": "2.0.1", "markdown-it-imsize": "2.0.1",
"markdown-it-mark": "4.0.0", "markdown-it-mark": "4.0.0",
"markdown-it-mdc": "0.2.1", "markdown-it-mdc": "0.2.2",
"markdown-it-multimd-table": "4.2.3", "markdown-it-multimd-table": "4.2.3",
"markdown-it-sub": "2.0.0", "markdown-it-sub": "2.0.0",
"markdown-it-sup": "2.0.0", "markdown-it-sup": "2.0.0",
......
...@@ -180,8 +180,8 @@ dependencies: ...@@ -180,8 +180,8 @@ dependencies:
specifier: 4.0.0 specifier: 4.0.0
version: 4.0.0 version: 4.0.0
markdown-it-mdc: markdown-it-mdc:
specifier: 0.2.1 specifier: 0.2.2
version: 0.2.1(@types/markdown-it@13.0.7)(markdown-it@14.0.0) version: 0.2.2(@types/markdown-it@13.0.7)(markdown-it@14.0.0)
markdown-it-multimd-table: markdown-it-multimd-table:
specifier: 4.2.3 specifier: 4.2.3
version: 4.2.3 version: 4.2.3
...@@ -3899,8 +3899,8 @@ packages: ...@@ -3899,8 +3899,8 @@ packages:
resolution: {integrity: sha512-YLhzaOsU9THO/cal0lUjfMjrqSMPjjyjChYM7oyj4DnyaXEzA8gnW6cVJeyCrCVeyesrY2PlEdUYJSPFYL4Nkg==} resolution: {integrity: sha512-YLhzaOsU9THO/cal0lUjfMjrqSMPjjyjChYM7oyj4DnyaXEzA8gnW6cVJeyCrCVeyesrY2PlEdUYJSPFYL4Nkg==}
dev: false dev: false
/markdown-it-mdc@0.2.1(@types/markdown-it@13.0.7)(markdown-it@14.0.0): /markdown-it-mdc@0.2.2(@types/markdown-it@13.0.7)(markdown-it@14.0.0):
resolution: {integrity: sha512-yUQKSlXXqS94VamsBPdmxAt5nXqSQ062NV9KTSXVR3RD9u+yFP/e+N13L7ebfRJRYRCXhANQF5z6N4/nIZ757g==} resolution: {integrity: sha512-80JZ1L6OsA+2uYnVvLW2sCoFx9htY07QSQJsb6PND8oqXrQk/LS4rRIrtY2MmuktNDXBDJr9os+B5dCFLZR6Zw==}
peerDependencies: peerDependencies:
'@types/markdown-it': '*' '@types/markdown-it': '*'
markdown-it: ^14.0.0 markdown-it: ^14.0.0
......
...@@ -109,10 +109,6 @@ module.exports = configure(function (ctx) { ...@@ -109,10 +109,6 @@ module.exports = configure(function (ctx) {
} }
} }
viteConf.build.chunkSizeWarningLimit = 5000 viteConf.build.chunkSizeWarningLimit = 5000
viteConf.build.dynamicImportVarsOptions = {
warnOnError: true,
include: ['!/_blocks/**']
}
viteConf.optimizeDeps.include = [ viteConf.optimizeDeps.include = [
'prosemirror-state', 'prosemirror-state',
'prosemirror-transform', 'prosemirror-transform',
...@@ -120,6 +116,10 @@ module.exports = configure(function (ctx) { ...@@ -120,6 +116,10 @@ module.exports = configure(function (ctx) {
'prosemirror-view' 'prosemirror-view'
] ]
} }
viteConf.build.dynamicImportVarsOptions = {
warnOnError: true,
include: ['!/_blocks/**']
}
}, },
// viteVuePluginOptions: {}, // viteVuePluginOptions: {},
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
.welcome-content .welcome-content
.welcome-logo .welcome-logo
img(src='/_assets/logo-wikijs.svg') img(src='/_assets/logo-wikijs.svg')
.welcome-title {{t('welcome.title')}} .welcome-title {{ t('welcome.title') }}
.welcome-subtitle {{t('welcome.subtitle')}} .welcome-subtitle {{ t('welcome.subtitle') }}
.welcome-actions .welcome-actions
q-btn( q-btn(
push push
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
q-item( q-item(
clickable clickable
@click='createHomePage(`wysiwyg`)' @click='createHomePage(`wysiwyg`)'
v-if='siteStore.editors.wysiwyg' v-if='flagsStore.experimental && siteStore.editors.wysiwyg'
) )
blueprint-icon(icon='google-presentation') blueprint-icon(icon='google-presentation')
q-item-section.q-pr-sm Using the Visual Editor q-item-section.q-pr-sm Using the Visual Editor
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
q-item( q-item(
clickable clickable
@click='createHomePage(`asciidoc`)' @click='createHomePage(`asciidoc`)'
v-if='siteStore.editors.asciidoc' v-if='flagsStore.experimental && siteStore.editors.asciidoc'
) )
blueprint-icon(icon='asciidoc') blueprint-icon(icon='asciidoc')
q-item-section.q-pr-sm Using the AsciiDoc Editor q-item-section.q-pr-sm Using the AsciiDoc Editor
...@@ -60,8 +60,9 @@ import { useI18n } from 'vue-i18n' ...@@ -60,8 +60,9 @@ import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useMeta, useQuasar } from 'quasar' import { useMeta, useQuasar } from 'quasar'
import { useSiteStore } from 'src/stores/site' import { useFlagsStore } from 'src/stores/flags'
import { usePageStore } from 'src/stores/page' import { usePageStore } from 'src/stores/page'
import { useSiteStore } from 'src/stores/site'
// QUASAR // QUASAR
...@@ -69,6 +70,7 @@ const $q = useQuasar() ...@@ -69,6 +70,7 @@ const $q = useQuasar()
// STORES // STORES
const flagsStore = useFlagsStore()
const pageStore = usePageStore() const pageStore = usePageStore()
const siteStore = useSiteStore() const siteStore = useSiteStore()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment