|
|
|
@ -144,7 +144,7 @@
|
|
|
|
|
//- )
|
|
|
|
|
|
|
|
|
|
//- v-divider.mt-3
|
|
|
|
|
v-switch(
|
|
|
|
|
v-switch.mt-0(
|
|
|
|
|
inset
|
|
|
|
|
label='Comments'
|
|
|
|
|
color='indigo'
|
|
|
|
@ -177,6 +177,76 @@
|
|
|
|
|
persistent-hint
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
v-card.mt-5.animated.fadeInUp.wait-p7s
|
|
|
|
|
v-toolbar(color='primary', dark, dense, flat)
|
|
|
|
|
v-toolbar-title.subtitle-1 {{$t('admin:general.editShortcuts')}}
|
|
|
|
|
v-card-text
|
|
|
|
|
v-switch.mt-0(
|
|
|
|
|
inset
|
|
|
|
|
:label='$t(`admin:general.editFab`)'
|
|
|
|
|
color='primary'
|
|
|
|
|
v-model='config.editFab'
|
|
|
|
|
persistent-hint
|
|
|
|
|
:hint='$t(`admin:general.editFabHint`)'
|
|
|
|
|
)
|
|
|
|
|
v-divider
|
|
|
|
|
.overline.grey--text.pa-4 {{$t('admin:general.editMenuBar')}}
|
|
|
|
|
.px-3.pb-3
|
|
|
|
|
v-switch.mt-0.ml-1(
|
|
|
|
|
inset
|
|
|
|
|
:label='$t(`admin:general.displayEditMenuBar`)'
|
|
|
|
|
color='primary'
|
|
|
|
|
v-model='config.editMenuBar'
|
|
|
|
|
persistent-hint
|
|
|
|
|
:hint='$t(`admin:general.displayEditMenuBarHint`)'
|
|
|
|
|
)
|
|
|
|
|
v-switch.mt-4.ml-1(
|
|
|
|
|
v-if='config.editMenuBar'
|
|
|
|
|
inset
|
|
|
|
|
:label='$t(`admin:general.displayEditMenuBtn`)'
|
|
|
|
|
color='primary'
|
|
|
|
|
v-model='config.editMenuBtn'
|
|
|
|
|
persistent-hint
|
|
|
|
|
:hint='$t(`admin:general.displayEditMenuBtnHint`)'
|
|
|
|
|
)
|
|
|
|
|
v-switch.mt-4.ml-1(
|
|
|
|
|
v-if='config.editMenuBar'
|
|
|
|
|
inset
|
|
|
|
|
:label='$t(`admin:general.displayEditMenuExternalBtn`)'
|
|
|
|
|
color='primary'
|
|
|
|
|
v-model='config.editMenuExternalBtn'
|
|
|
|
|
persistent-hint
|
|
|
|
|
:hint='$t(`admin:general.displayEditMenuExternalBtnHint`)'
|
|
|
|
|
)
|
|
|
|
|
template(v-if='config.editMenuBar && config.editMenuExternalBtn')
|
|
|
|
|
v-divider
|
|
|
|
|
.overline.grey--text.pa-4 External Edit Button
|
|
|
|
|
.px-3.pb-3
|
|
|
|
|
v-text-field(
|
|
|
|
|
outlined
|
|
|
|
|
:label='$t(`admin:general.editMenuExternalName`)'
|
|
|
|
|
v-model='config.editMenuExternalName'
|
|
|
|
|
prepend-icon='mdi-format-title'
|
|
|
|
|
:hint='$t(`admin:general.editMenuExternalNameHint`)'
|
|
|
|
|
persistent-hint
|
|
|
|
|
)
|
|
|
|
|
v-text-field.mt-3(
|
|
|
|
|
outlined
|
|
|
|
|
:label='$t(`admin:general.editMenuExternalIcon`)'
|
|
|
|
|
v-model='config.editMenuExternalIcon'
|
|
|
|
|
prepend-icon='mdi-dice-5'
|
|
|
|
|
:hint='$t(`admin:general.editMenuExternalIconHint`)'
|
|
|
|
|
persistent-hint
|
|
|
|
|
)
|
|
|
|
|
v-text-field.mt-3(
|
|
|
|
|
outlined
|
|
|
|
|
:label='$t(`admin:general.editMenuExternalUrl`)'
|
|
|
|
|
v-model='config.editMenuExternalUrl'
|
|
|
|
|
prepend-icon='mdi-near-me'
|
|
|
|
|
:hint='$t(`admin:general.editMenuExternalUrlHint`)'
|
|
|
|
|
persistent-hint
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
component(:is='activeModal')
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
@ -216,7 +286,14 @@ export default {
|
|
|
|
|
featurePageComments: false,
|
|
|
|
|
featurePersonalWikis: false,
|
|
|
|
|
featureTinyPNG: false,
|
|
|
|
|
pageExtensions: ''
|
|
|
|
|
pageExtensions: '',
|
|
|
|
|
editFab: false,
|
|
|
|
|
editMenuBar: false,
|
|
|
|
|
editMenuBtn: false,
|
|
|
|
|
editMenuExternalBtn: false,
|
|
|
|
|
editMenuExternalName: '',
|
|
|
|
|
editMenuExternalIcon: '',
|
|
|
|
|
editMenuExternalUrl: ''
|
|
|
|
|
},
|
|
|
|
|
metaRobots: [
|
|
|
|
|
{ text: 'Index', value: 'index' },
|
|
|
|
@ -274,6 +351,13 @@ export default {
|
|
|
|
|
$featurePageRatings: Boolean
|
|
|
|
|
$featurePageComments: Boolean
|
|
|
|
|
$featurePersonalWikis: Boolean
|
|
|
|
|
$editFab: Boolean
|
|
|
|
|
$editMenuBar: Boolean
|
|
|
|
|
$editMenuBtn: Boolean
|
|
|
|
|
$editMenuExternalBtn: Boolean
|
|
|
|
|
$editMenuExternalName: String
|
|
|
|
|
$editMenuExternalIcon: String
|
|
|
|
|
$editMenuExternalUrl: String
|
|
|
|
|
) {
|
|
|
|
|
site {
|
|
|
|
|
updateConfig(
|
|
|
|
@ -290,6 +374,13 @@ export default {
|
|
|
|
|
featurePageRatings: $featurePageRatings
|
|
|
|
|
featurePageComments: $featurePageComments
|
|
|
|
|
featurePersonalWikis: $featurePersonalWikis
|
|
|
|
|
editFab: $editFab
|
|
|
|
|
editMenuBar: $editMenuBar
|
|
|
|
|
editMenuBtn: $editMenuBtn
|
|
|
|
|
editMenuExternalBtn: $editMenuExternalBtn
|
|
|
|
|
editMenuExternalName: $editMenuExternalName
|
|
|
|
|
editMenuExternalIcon: $editMenuExternalIcon
|
|
|
|
|
editMenuExternalUrl: $editMenuExternalUrl
|
|
|
|
|
) {
|
|
|
|
|
responseResult {
|
|
|
|
|
succeeded
|
|
|
|
@ -314,7 +405,14 @@ export default {
|
|
|
|
|
pageExtensions: _.get(this.config, 'pageExtensions', ''),
|
|
|
|
|
featurePageRatings: _.get(this.config, 'featurePageRatings', false),
|
|
|
|
|
featurePageComments: _.get(this.config, 'featurePageComments', false),
|
|
|
|
|
featurePersonalWikis: _.get(this.config, 'featurePersonalWikis', false)
|
|
|
|
|
featurePersonalWikis: _.get(this.config, 'featurePersonalWikis', false),
|
|
|
|
|
editFab: _.get(this.config, 'editFab', false),
|
|
|
|
|
editMenuBar: _.get(this.config, 'editMenuBar', false),
|
|
|
|
|
editMenuBtn: _.get(this.config, 'editMenuBtn', false),
|
|
|
|
|
editMenuExternalBtn: _.get(this.config, 'editMenuExternalBtn', false),
|
|
|
|
|
editMenuExternalName: _.get(this.config, 'editMenuExternalName', ''),
|
|
|
|
|
editMenuExternalIcon: _.get(this.config, 'editMenuExternalIcon', ''),
|
|
|
|
|
editMenuExternalUrl: _.get(this.config, 'editMenuExternalUrl', '')
|
|
|
|
|
},
|
|
|
|
|
watchLoading (isLoading) {
|
|
|
|
|
this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'admin-site-update')
|
|
|
|
@ -368,6 +466,13 @@ export default {
|
|
|
|
|
featurePageRatings
|
|
|
|
|
featurePageComments
|
|
|
|
|
featurePersonalWikis
|
|
|
|
|
editFab
|
|
|
|
|
editMenuBar
|
|
|
|
|
editMenuBtn
|
|
|
|
|
editMenuExternalBtn
|
|
|
|
|
editMenuExternalName
|
|
|
|
|
editMenuExternalIcon
|
|
|
|
|
editMenuExternalUrl
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|