2019-01-01 22:03:30 +00:00
|
|
|
<template lang='pug'>
|
|
|
|
v-dialog(v-model='isShown', persistent, max-width='700')
|
|
|
|
v-card.radius-7(color='blue darken-3', dark)
|
2019-08-04 02:51:29 +00:00
|
|
|
v-card-text.text-center.py-4
|
|
|
|
.subtitle-1.white--text {{$t('editor:select.title')}}
|
2019-01-01 22:03:30 +00:00
|
|
|
v-container(grid-list-lg, fluid)
|
|
|
|
v-layout(row, wrap, justify-center)
|
|
|
|
v-flex(xs4)
|
2019-09-10 18:50:16 +00:00
|
|
|
v-hover
|
|
|
|
template(v-slot:default='{ hover }')
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.grey.animated.fadeInUp(
|
2019-09-10 18:50:16 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
|
|
|
v-card-text.text-center(@click='')
|
2019-09-14 19:35:47 +00:00
|
|
|
img(src='/svg/editor-icon-api.svg', alt='API', style='width: 36px;')
|
2019-09-10 18:50:16 +00:00
|
|
|
.body-2.mt-2.grey--text.text--darken-2 API Docs
|
|
|
|
.caption.grey--text.text--darken-1 REST / GraphQL
|
|
|
|
v-fade-transition
|
|
|
|
v-overlay(
|
|
|
|
v-if='hover'
|
|
|
|
absolute
|
|
|
|
color='primary'
|
|
|
|
opacity='.8'
|
|
|
|
)
|
2019-09-14 19:35:47 +00:00
|
|
|
.body-2.mt-7 Coming Soon
|
2019-01-01 22:03:30 +00:00
|
|
|
v-flex(xs4)
|
2019-09-16 03:20:40 +00:00
|
|
|
v-card.radius-7.animated.fadeInUp.wait-p1s(
|
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
|
|
|
v-card-text.text-center(@click='selectEditor("code")')
|
|
|
|
img(src='/svg/editor-icon-code.svg', alt='Code', style='width: 36px;')
|
|
|
|
.body-2.primary--text.mt-2 Code
|
|
|
|
.caption.grey--text Raw HTML
|
2019-01-01 22:03:30 +00:00
|
|
|
v-flex(xs4)
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.animated.fadeInUp.wait-p2s(
|
2019-01-01 22:03:30 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
2019-08-04 02:51:29 +00:00
|
|
|
v-card-text.text-center(@click='selectEditor("markdown")')
|
2019-09-14 19:35:47 +00:00
|
|
|
img(src='/svg/editor-icon-markdown.svg', alt='Markdown', style='width: 36px;')
|
|
|
|
.body-2.primary--text.mt-2 Markdown
|
|
|
|
.caption.grey--text Plain Text Formatting
|
2019-01-01 22:03:30 +00:00
|
|
|
v-flex(xs4)
|
2019-09-10 18:50:16 +00:00
|
|
|
v-hover
|
|
|
|
template(v-slot:default='{ hover }')
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.grey.animated.fadeInUp.wait-p3s(
|
2019-09-10 18:50:16 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
|
|
|
v-card-text.text-center(@click='')
|
2019-09-14 19:35:47 +00:00
|
|
|
img(src='/svg/editor-icon-tabular.svg', alt='Tabular', style='width: 36px;')
|
2019-09-10 18:50:16 +00:00
|
|
|
.body-2.grey--text.mt-2.text--darken-2 Tabular
|
|
|
|
.caption.grey--text.text--darken-1 Excel-like
|
|
|
|
v-fade-transition
|
|
|
|
v-overlay(
|
|
|
|
v-if='hover'
|
|
|
|
absolute
|
|
|
|
color='primary'
|
|
|
|
opacity='.8'
|
|
|
|
)
|
2019-09-14 19:35:47 +00:00
|
|
|
.body-2.mt-7 Coming Soon
|
2019-01-01 22:03:30 +00:00
|
|
|
v-flex(xs4)
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.animated.fadeInUp.wait-p4s(
|
2019-01-01 22:03:30 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
2019-09-08 16:01:17 +00:00
|
|
|
v-card-text.text-center(@click='selectEditor("ckeditor")')
|
2019-09-14 19:35:47 +00:00
|
|
|
img(src='/svg/editor-icon-ckeditor.svg', alt='Visual Editor', style='width: 36px;')
|
2019-09-08 16:01:17 +00:00
|
|
|
.body-2.mt-2.primary--text Visual Editor
|
|
|
|
.caption.grey--text Rich-text WYSIWYG
|
2019-01-01 22:03:30 +00:00
|
|
|
v-flex(xs4)
|
2019-09-10 18:50:16 +00:00
|
|
|
v-hover
|
|
|
|
template(v-slot:default='{ hover }')
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.grey.animated.fadeInUp.wait-p5s(
|
2019-09-10 18:50:16 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
|
|
|
v-card-text.text-center(@click='')
|
2019-09-14 19:35:47 +00:00
|
|
|
img(src='/svg/editor-icon-wikitext.svg', alt='WikiText', style='width: 36px;')
|
2019-09-10 18:50:16 +00:00
|
|
|
.body-2.grey--text.mt-2.text--darken-2 WikiText
|
|
|
|
.caption.grey--text.text--darken-1 MediaWiki Format
|
|
|
|
v-fade-transition
|
|
|
|
v-overlay(
|
|
|
|
v-if='hover'
|
|
|
|
absolute
|
|
|
|
color='primary'
|
|
|
|
opacity='.8'
|
|
|
|
)
|
2019-09-14 19:35:47 +00:00
|
|
|
.body-2.mt-7 Coming Soon
|
2019-06-15 21:05:56 +00:00
|
|
|
.caption.blue--text.text--lighten-2 {{$t('editor:select.cannotChange')}}
|
2019-09-10 18:50:16 +00:00
|
|
|
|
|
|
|
v-card.radius-7.mt-3(color='teal darken-3', dark)
|
|
|
|
v-card-text.text-center.py-4
|
|
|
|
.subtitle-1.white--text {{$t('editor:select.customView')}}
|
|
|
|
v-container(grid-list-lg, fluid)
|
|
|
|
v-layout(row, wrap, justify-center)
|
|
|
|
v-flex(xs4)
|
|
|
|
v-hover
|
|
|
|
template(v-slot:default='{ hover }')
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.grey.animated.fadeInUp(
|
2019-09-10 18:50:16 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
|
|
|
v-card-text.text-center(@click='')
|
|
|
|
img(src='/svg/icon-cube.svg', alt='From Template', style='width: 42px;')
|
|
|
|
.body-2.mt-1.grey--text.text--darken-2 From Template
|
|
|
|
.caption.grey--text.text--darken-1 Use an existing page / tree
|
|
|
|
v-fade-transition
|
|
|
|
v-overlay(
|
|
|
|
v-if='hover'
|
|
|
|
absolute
|
|
|
|
color='teal'
|
|
|
|
opacity='.8'
|
|
|
|
)
|
2019-09-14 19:35:47 +00:00
|
|
|
.body-2.mt-7 Coming Soon
|
2019-09-10 18:50:16 +00:00
|
|
|
v-flex(xs4)
|
|
|
|
v-hover
|
|
|
|
template(v-slot:default='{ hover }')
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.grey.animated.fadeInUp.wait-p1s(
|
2019-09-10 18:50:16 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
|
|
|
v-card-text.text-center(@click='')
|
2019-09-14 19:35:47 +00:00
|
|
|
img(src='/svg/icon-tree-structure.svg', alt='Tree View', style='width: 42px;')
|
2019-09-10 18:50:16 +00:00
|
|
|
.body-2.mt-1.grey--text.text--darken-2 Tree View
|
|
|
|
.caption.grey--text.text--darken-1 List children pages
|
|
|
|
v-fade-transition
|
|
|
|
v-overlay(
|
|
|
|
v-if='hover'
|
|
|
|
absolute
|
|
|
|
color='teal'
|
|
|
|
opacity='.8'
|
|
|
|
)
|
2019-09-14 19:35:47 +00:00
|
|
|
.body-2.mt-7 Coming Soon
|
2019-09-10 18:50:16 +00:00
|
|
|
v-flex(xs4)
|
|
|
|
v-hover
|
|
|
|
template(v-slot:default='{ hover }')
|
2019-09-14 19:35:47 +00:00
|
|
|
v-card.radius-7.grey.animated.fadeInUp.wait-p2s(
|
2019-09-10 18:50:16 +00:00
|
|
|
hover
|
|
|
|
light
|
|
|
|
ripple
|
|
|
|
)
|
|
|
|
v-card-text.text-center(@click='')
|
|
|
|
img(src='/svg/icon-sewing-patch.svg', alt='Code', style='width: 42px;')
|
|
|
|
.body-2.mt-1.grey--text.text--darken-2 Embed
|
|
|
|
.caption.grey--text.text--darken-1 Include external pages
|
|
|
|
v-fade-transition
|
|
|
|
v-overlay(
|
|
|
|
v-if='hover'
|
|
|
|
absolute
|
|
|
|
color='teal'
|
|
|
|
opacity='.8'
|
|
|
|
)
|
2019-09-14 19:35:47 +00:00
|
|
|
.body-2.mt-7 Coming Soon
|
|
|
|
v-card.radius-7.mt-3(color='grey darken-3', dark)
|
|
|
|
v-toolbar(dense, flat)
|
|
|
|
v-spacer
|
|
|
|
v-btn(text, @click='goBack')
|
|
|
|
v-icon(left) mdi-undo-variant
|
|
|
|
span Cancel
|
|
|
|
v-spacer
|
2019-01-01 22:03:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import _ from 'lodash'
|
|
|
|
import { sync } from 'vuex-pathify'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return { }
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
isShown: {
|
|
|
|
get() { return this.value },
|
|
|
|
set(val) { this.$emit('input', val) }
|
|
|
|
},
|
2019-06-05 01:47:02 +00:00
|
|
|
currentEditor: sync('editor/editor')
|
2019-01-01 22:03:30 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
selectEditor(name) {
|
|
|
|
this.currentEditor = `editor${_.startCase(name)}`
|
|
|
|
this.isShown = false
|
2019-09-14 19:35:47 +00:00
|
|
|
},
|
|
|
|
goBack() {
|
|
|
|
window.history.go(-2)
|
2019-01-01 22:03:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang='scss'>
|
|
|
|
|
|
|
|
</style>
|