Skip to content

Commit

Permalink
fix: hide unfinished editors from welcome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Feb 5, 2024
1 parent c4b5799 commit da9d252
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"markdown-it-footnote": "4.0.0",
"markdown-it-imsize": "2.0.1",
"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-sub": "2.0.0",
"markdown-it-sup": "2.0.0",
Expand Down
8 changes: 4 additions & 4 deletions ux/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ux/quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,17 @@ module.exports = configure(function (ctx) {
}
}
viteConf.build.chunkSizeWarningLimit = 5000
viteConf.build.dynamicImportVarsOptions = {
warnOnError: true,
include: ['!/_blocks/**']
}
viteConf.optimizeDeps.include = [
'prosemirror-state',
'prosemirror-transform',
'prosemirror-model',
'prosemirror-view'
]
}
viteConf.build.dynamicImportVarsOptions = {
warnOnError: true,
include: ['!/_blocks/**']
}
},
// viteVuePluginOptions: {},

Expand Down
12 changes: 7 additions & 5 deletions ux/src/components/WelcomeOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.welcome-content
.welcome-logo
img(src='/_assets/logo-wikijs.svg')
.welcome-title {{t('welcome.title')}}
.welcome-subtitle {{t('welcome.subtitle')}}
.welcome-title {{ t('welcome.title') }}
.welcome-subtitle {{ t('welcome.subtitle') }}
.welcome-actions
q-btn(
push
Expand All @@ -23,7 +23,7 @@
q-item(
clickable
@click='createHomePage(`wysiwyg`)'
v-if='siteStore.editors.wysiwyg'
v-if='flagsStore.experimental && siteStore.editors.wysiwyg'
)
blueprint-icon(icon='google-presentation')
q-item-section.q-pr-sm Using the Visual Editor
Expand All @@ -39,7 +39,7 @@
q-item(
clickable
@click='createHomePage(`asciidoc`)'
v-if='siteStore.editors.asciidoc'
v-if='flagsStore.experimental && siteStore.editors.asciidoc'
)
blueprint-icon(icon='asciidoc')
q-item-section.q-pr-sm Using the AsciiDoc Editor
Expand All @@ -60,15 +60,17 @@ import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import { useMeta, useQuasar } from 'quasar'
import { useSiteStore } from 'src/stores/site'
import { useFlagsStore } from 'src/stores/flags'
import { usePageStore } from 'src/stores/page'
import { useSiteStore } from 'src/stores/site'
// QUASAR
const $q = useQuasar()
// STORES
const flagsStore = useFlagsStore()
const pageStore = usePageStore()
const siteStore = useSiteStore()
Expand Down

0 comments on commit da9d252

Please sign in to comment.