2018-02-28 05:54:09 +00:00
|
|
|
<template lang='pug'>
|
2018-09-30 03:30:20 +00:00
|
|
|
v-container(fluid, grid-list-lg)
|
2018-02-28 05:54:09 +00:00
|
|
|
v-layout(row wrap)
|
|
|
|
v-flex(xs12)
|
2018-09-30 03:30:20 +00:00
|
|
|
.admin-header
|
|
|
|
v-icon(size='80', color='grey lighten-2') widgets
|
|
|
|
.admin-header-title
|
|
|
|
.headline.primary--text {{ $t('admin:general.title') }}
|
|
|
|
.subheading.grey--text {{ $t('admin:general.subtitle') }}
|
|
|
|
v-spacer
|
|
|
|
v-btn(color='success', depressed, @click='save', large)
|
|
|
|
v-icon(left) check
|
|
|
|
span {{$t('common:actions.apply')}}
|
2018-02-28 05:54:09 +00:00
|
|
|
v-form.pt-3
|
|
|
|
v-layout(row wrap)
|
|
|
|
v-flex(lg6 xs12)
|
2018-03-12 04:09:54 +00:00
|
|
|
v-form
|
2018-12-03 02:42:43 +00:00
|
|
|
v-card.wiki-form
|
2018-03-12 04:09:54 +00:00
|
|
|
v-toolbar(color='primary', dark, dense, flat)
|
|
|
|
v-toolbar-title
|
2018-06-17 21:29:19 +00:00
|
|
|
.subheading {{ $t('admin:general.siteInfo') }}
|
2018-03-12 04:09:54 +00:00
|
|
|
v-subheader General
|
2018-07-30 02:23:33 +00:00
|
|
|
.px-3.pb-3
|
2018-09-30 03:30:20 +00:00
|
|
|
v-text-field(
|
|
|
|
outline
|
|
|
|
label='Site Title'
|
|
|
|
required
|
|
|
|
:counter='50'
|
|
|
|
v-model='siteTitle'
|
|
|
|
prepend-icon='public'
|
|
|
|
)
|
2018-07-30 02:23:33 +00:00
|
|
|
v-divider
|
2018-03-12 04:09:54 +00:00
|
|
|
v-subheader SEO
|
2018-07-30 02:23:33 +00:00
|
|
|
.px-3.pb-3
|
2018-09-30 03:30:20 +00:00
|
|
|
v-text-field(
|
|
|
|
outline
|
|
|
|
label='Site Description'
|
|
|
|
:counter='255'
|
|
|
|
prepend-icon='public'
|
|
|
|
)
|
|
|
|
v-text-field(
|
|
|
|
outline
|
|
|
|
label='Site Keywords'
|
|
|
|
:counter='255'
|
|
|
|
prepend-icon='public'
|
|
|
|
)
|
|
|
|
v-select(
|
|
|
|
outline
|
|
|
|
label='Meta Robots'
|
|
|
|
chips
|
|
|
|
tags
|
|
|
|
:items='metaRobots'
|
|
|
|
v-model='metaRobotsSelection'
|
|
|
|
prepend-icon='public'
|
|
|
|
)
|
2018-07-30 02:23:33 +00:00
|
|
|
v-divider
|
|
|
|
v-subheader Analytics
|
|
|
|
.px-3.pb-3
|
|
|
|
v-text-field(
|
2018-09-30 03:30:20 +00:00
|
|
|
outline
|
2018-07-30 02:23:33 +00:00
|
|
|
label='Google Analytics ID'
|
|
|
|
:counter='255'
|
|
|
|
prepend-icon='public'
|
|
|
|
persistent-hint
|
|
|
|
hint='Property tracking ID for Google Analytics.'
|
|
|
|
)
|
|
|
|
v-divider
|
|
|
|
v-subheader Footer Copyright
|
|
|
|
.px-3.pb-3
|
|
|
|
v-text-field(
|
2018-09-30 03:30:20 +00:00
|
|
|
outline
|
2018-07-30 02:23:33 +00:00
|
|
|
label='Company / Organization Name'
|
2018-08-04 21:27:55 +00:00
|
|
|
v-model='company'
|
2018-07-30 02:23:33 +00:00
|
|
|
:counter='255'
|
|
|
|
prepend-icon='public'
|
|
|
|
persistent-hint
|
|
|
|
hint='Name to use when displaying copyright notice in the footer. Leave empty to hide.'
|
|
|
|
)
|
2018-02-28 05:54:09 +00:00
|
|
|
v-flex(lg6 xs12)
|
2018-12-03 02:42:43 +00:00
|
|
|
v-card.wiki-form
|
2018-03-12 04:09:54 +00:00
|
|
|
v-toolbar(color='primary', dark, dense, flat)
|
2018-02-28 05:54:09 +00:00
|
|
|
v-toolbar-title
|
2018-06-17 21:29:19 +00:00
|
|
|
.subheading {{ $t('admin:general.siteBranding') }}
|
2018-05-12 20:13:04 +00:00
|
|
|
v-card-text
|
2018-06-17 21:29:19 +00:00
|
|
|
v-layout.pa-3(row, align-center)
|
|
|
|
v-avatar(size='120', color='grey lighten-3', :tile='useSquareLogo')
|
|
|
|
.ml-4
|
|
|
|
v-layout(row, align-center)
|
|
|
|
v-btn(color='teal', depressed, dark)
|
|
|
|
v-icon(left) cloud_upload
|
|
|
|
span Upload Logo
|
|
|
|
v-btn(color='teal', depressed, disabled)
|
|
|
|
v-icon(left) clear
|
|
|
|
span Clear
|
|
|
|
.caption.grey--text An image of 120x120 pixels is recommended for best results.
|
|
|
|
.caption.grey--text SVG, PNG or JPG files only.
|
|
|
|
v-switch(
|
|
|
|
v-model='useSquareLogo'
|
|
|
|
label='Use Square Logo Frame'
|
|
|
|
color='primary'
|
|
|
|
persistent-hint
|
|
|
|
hint='Check this option if a round logo frame doesn\'t work with your logo.'
|
|
|
|
)
|
2018-07-08 05:12:43 +00:00
|
|
|
v-divider.mt-3
|
2018-06-17 21:29:19 +00:00
|
|
|
v-switch(
|
|
|
|
v-model='displayMascot'
|
|
|
|
label='Display Wiki.js Mascot'
|
|
|
|
color='primary'
|
|
|
|
persistent-hint
|
|
|
|
hint='Uncheck this box if you don\'t want Henry, Wiki.js mascot, to be displayed on client-facing pages.'
|
|
|
|
)
|
2018-09-04 04:46:24 +00:00
|
|
|
|
2018-12-03 02:42:43 +00:00
|
|
|
v-card.wiki-form.mt-3
|
2018-09-04 04:46:24 +00:00
|
|
|
v-toolbar(color='primary', dark, dense, flat)
|
|
|
|
v-toolbar-title
|
|
|
|
.subheading Features
|
|
|
|
v-card-text
|
|
|
|
v-switch(
|
|
|
|
v-model='featurePageRatings'
|
|
|
|
label='Page Ratings'
|
|
|
|
color='primary'
|
|
|
|
persistent-hint
|
|
|
|
hint='Allow users to rate pages.'
|
|
|
|
)
|
|
|
|
v-divider.mt-3
|
|
|
|
v-switch(
|
|
|
|
v-model='featurePersonalWiki'
|
|
|
|
label='Personal Wikis'
|
|
|
|
color='primary'
|
|
|
|
persistent-hint
|
|
|
|
hint='Allow users to have their own personal wiki.'
|
|
|
|
)
|
2018-02-28 05:54:09 +00:00
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-03-12 04:09:54 +00:00
|
|
|
|
2018-12-03 02:42:43 +00:00
|
|
|
import { get, sync } from 'vuex-pathify'
|
2018-08-04 21:27:55 +00:00
|
|
|
|
2018-02-28 05:54:09 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
2018-03-03 06:32:58 +00:00
|
|
|
return {
|
|
|
|
metaRobotsSelection: ['Index', 'Follow'],
|
2018-06-17 21:29:19 +00:00
|
|
|
metaRobots: ['Index', 'Follow', 'No Index', 'No Follow'],
|
|
|
|
useSquareLogo: false,
|
2018-09-04 04:46:24 +00:00
|
|
|
displayMascot: true,
|
2018-09-08 19:49:36 +00:00
|
|
|
featurePageRatings: true,
|
2018-09-04 04:46:24 +00:00
|
|
|
featurePersonalWiki: true
|
2018-03-03 06:32:58 +00:00
|
|
|
}
|
2018-08-04 21:27:55 +00:00
|
|
|
},
|
|
|
|
computed: {
|
2018-12-03 02:42:43 +00:00
|
|
|
darkMode: get('site/dark'),
|
2018-08-04 21:27:55 +00:00
|
|
|
siteTitle: sync('site/title'),
|
|
|
|
company: sync('site/company')
|
2018-09-04 04:46:24 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
async save () {
|
|
|
|
this.$store.commit('showNotification', {
|
|
|
|
message: 'Configuration saved successfully.',
|
|
|
|
style: 'success',
|
|
|
|
icon: 'check'
|
|
|
|
})
|
|
|
|
}
|
2018-02-28 05:54:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang='scss'>
|
|
|
|
|
|
|
|
</style>
|