diff --git a/client/components/admin.vue b/client/components/admin.vue
index ecb3b08e..ee7cd737 100644
--- a/client/components/admin.vue
+++ b/client/components/admin.vue
@@ -54,10 +54,10 @@
v-list-tile-avatar: v-icon lock_outline
v-list-tile-title {{ $t('admin:auth.title') }}
v-list-tile(to='/editor', disabled)
- v-list-tile-avatar: v-icon transform
+ v-list-tile-avatar: v-icon(color='grey lighten-2') transform
v-list-tile-title {{ $t('admin:editor.title') }}
- v-list-tile(to='/logging')
- v-list-tile-avatar: v-icon graphic_eq
+ v-list-tile(to='/logging', disabled)
+ v-list-tile-avatar: v-icon(color='grey lighten-2') graphic_eq
v-list-tile-title {{ $t('admin:logging.title') }}
v-list-tile(to='/rendering')
v-list-tile-avatar: v-icon system_update_alt
@@ -71,8 +71,8 @@
template(v-if='hasPermission([`manage:system`, `manage:api`])')
v-divider.my-2
v-subheader.pl-4 {{ $t('admin:nav.system') }}
- v-list-tile(to='/api', v-if='hasPermission([`manage:system`, `manage:api`])')
- v-list-tile-avatar: v-icon call_split
+ v-list-tile(to='/api', v-if='hasPermission([`manage:system`, `manage:api`])', disabled)
+ v-list-tile-avatar: v-icon(color='grey lighten-2') call_split
v-list-tile-title {{ $t('admin:api.title') }}
v-list-tile(to='/mail', v-if='hasPermission(`manage:system`)')
v-list-tile-avatar: v-icon email
@@ -83,6 +83,9 @@
v-list-tile(to='/utilities', v-if='hasPermission(`manage:system`)', disabled)
v-list-tile-avatar: v-icon(color='grey lighten-2') build
v-list-tile-title {{ $t('admin:utilities.title') }}
+ v-list-tile(to='/webhooks', v-if='hasPermission(`manage:system`)', disabled)
+ v-list-tile-avatar: v-icon(color='grey lighten-2') ac_unit
+ v-list-tile-title {{ $t('admin:webhooks.title') }}
v-list-group(
to='/dev'
no-action
@@ -150,6 +153,7 @@ const router = new VueRouter({
{ path: '/mail', component: () => import(/* webpackChunkName: "admin" */ './admin/admin-mail.vue') },
{ path: '/system', component: () => import(/* webpackChunkName: "admin" */ './admin/admin-system.vue') },
{ path: '/utilities', component: () => import(/* webpackChunkName: "admin" */ './admin/admin-utilities.vue') },
+ { path: '/webhooks', component: () => import(/* webpackChunkName: "admin" */ './admin/admin-webhooks.vue') },
{ path: '/dev-flags', component: () => import(/* webpackChunkName: "admin-dev" */ './admin/admin-dev-flags.vue') },
{ path: '/dev-graphiql', component: () => import(/* webpackChunkName: "admin-dev" */ './admin/admin-dev-graphiql.vue') },
{ path: '/dev-voyager', component: () => import(/* webpackChunkName: "admin-dev" */ './admin/admin-dev-voyager.vue') },
diff --git a/client/components/admin/admin-general.vue b/client/components/admin/admin-general.vue
index bd08d30b..209f58c5 100644
--- a/client/components/admin/admin-general.vue
+++ b/client/components/admin/admin-general.vue
@@ -42,6 +42,32 @@
persistent-hint
)
v-divider
+ v-subheader Logo #[v-chip.ml-2(label, color='grey', small, outline) coming soon]
+ v-card-text.pb-4.pl-5
+ v-layout.px-3(row, align-center)
+ v-avatar(size='100', :color='$vuetify.dark ? `grey darken-2` : `grey lighten-3`', :tile='config.logoIsSquare')
+ .ml-4
+ v-btn.mx-0(color='teal', depressed, disabled)
+ 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-divider
+ v-subheader Footer Copyright
+ .px-3.pb-3
+ v-text-field(
+ outline
+ label='Company / Organization Name'
+ v-model='config.company'
+ :counter='255'
+ prepend-icon='business'
+ persistent-hint
+ hint='Name to use when displaying copyright notice in the footer. Leave empty to hide.'
+ )
+ v-divider
v-subheader SEO
.px-3.pb-3
v-text-field(
@@ -64,73 +90,65 @@
hint='Default: Index, Follow. Can also be set on a per-page basis.'
persistent-hint
)
- v-divider
- v-subheader Analytics #[v-chip.ml-2(label, color='grey', small, outline) coming soon]
- .px-3.pb-3
- v-select.mt-2(
- outline
- label='Analytics Service Provider'
- :items='analyticsServices'
- v-model='config.analyticsService'
- prepend-icon='timeline'
- persistent-hint
- hint='Automatically add tracking code for services like Google Analytics.'
- )
- v-text-field.mt-2(
- v-if='config.analyticsService !== ``'
- outline
- label='Property Tracking ID'
- :counter='255'
- v-model='config.analyticsId'
- prepend-icon='timeline'
- persistent-hint
- hint='A unique identifier provided by your analytics service provider.'
- )
- v-flex(lg6 xs12)
- v-card.wiki-form.animated.fadeInUp.wait-p2s
- v-toolbar(color='primary', dark, dense, flat)
- v-toolbar-title
- .subheading {{ $t('admin:general.siteBranding') }}
- v-subheader Logo #[v-chip.ml-2(label, color='grey', small, outline) coming soon]
- v-card-text
- v-layout.px-3(row, align-center)
- v-avatar(size='120', :color='$vuetify.dark ? `grey darken-2` : `grey lighten-3`', :tile='config.logoIsSquare')
- .ml-4
- v-btn.mx-0(color='teal', depressed, disabled)
- 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='config.logoIsSquare'
- label='Use Square Logo Frame'
- color='primary'
- persistent-hint
- hint='Check this option if a round logo frame doesn\'t work with your logo.'
- )
- v-divider
- v-subheader Footer Copyright
- .px-3.pb-3
- v-text-field(
- outline
- label='Company / Organization Name'
- v-model='config.company'
- :counter='255'
- prepend-icon='business'
- persistent-hint
- hint='Name to use when displaying copyright notice in the footer. Leave empty to hide.'
- )
- v-card.wiki-form.mt-3.animated.fadeInUp.wait-p4s
+ v-flex(lg6 xs12)
+ v-card.wiki-form.animated.fadeInUp.wait-p4s
v-toolbar(color='primary', dark, dense, flat)
v-toolbar-title
.subheading Features
v-spacer
v-chip(label, color='white', small).primary--text coming soon
v-card-text
+ v-switch(
+ label='Analytics'
+ color='primary'
+ v-model='config.featureAnalytics'
+ persistent-hint
+ hint='Enable site analytics using service provider.'
+ disabled
+ )
+ v-select.mt-3(
+ outline
+ label='Analytics Service Provider'
+ :items='analyticsServices'
+ v-model='config.analyticsService'
+ prepend-icon='subdirectory_arrow_right'
+ persistent-hint
+ hint='Automatically add tracking code for services like Google Analytics.'
+ disabled
+ )
+ v-text-field.mt-2(
+ v-if='config.analyticsService !== ``'
+ outline
+ label='Property Tracking ID'
+ :counter='255'
+ v-model='config.analyticsId'
+ prepend-icon='timeline'
+ persistent-hint
+ hint='A unique identifier provided by your analytics service provider.'
+ )
+
+ v-divider.mt-3
+ v-switch(
+ label='Asset Image Optimization'
+ color='primary'
+ v-model='config.featureTinyPNG'
+ persistent-hint
+ hint='Image optimization tool to reduce filesize and bandwidth costs.'
+ disabled
+ )
+ v-text-field.mt-3(
+ outline
+ label='TinyPNG API Key'
+ :counter='255'
+ v-model='config.description'
+ prepend-icon='subdirectory_arrow_right'
+ hint='Get your API key at https://tinypng.com/developers'
+ persistent-hint
+ disabled
+ )
+
+ v-divider.mt-3
v-switch(
label='Page Ratings'
color='primary'
@@ -138,6 +156,7 @@
persistent-hint
hint='Allow users to rate pages.'
)
+
v-divider.mt-3
v-switch(
label='Page Comments'
@@ -146,6 +165,7 @@
persistent-hint
hint='Allow users to leave comments on pages.'
)
+
v-divider.mt-3
v-switch(
label='Personal Wikis'
@@ -188,9 +208,11 @@ export default {
company: '',
hasLogo: false,
logoIsSquare: false,
+ featureAnalytics: false,
featurePageRatings: false,
featurePageComments: false,
- featurePersonalWikis: false
+ featurePersonalWikis: false,
+ featureTinyPNG: false
}
}
},
diff --git a/client/components/admin/admin-webhooks.vue b/client/components/admin/admin-webhooks.vue
new file mode 100644
index 00000000..fe187866
--- /dev/null
+++ b/client/components/admin/admin-webhooks.vue
@@ -0,0 +1,116 @@
+
+ v-container(fluid, grid-list-lg)
+ v-layout(row, wrap)
+ v-flex(xs12)
+ .admin-header
+ img.animated.fadeInUp(src='/svg/icon-winter.svg', alt='Mail', style='width: 80px;')
+ .admin-header-title
+ .headline.primary--text.animated.fadeInLeft {{ $t('admin:webhooks.title') }}
+ .subheading.grey--text.animated.fadeInLeft.wait-p4s {{ $t('admin:webhooks.subtitle') }}
+ v-spacer
+ v-btn.animated.fadeInDown(color='success', depressed, @click='save', large, disabled)
+ v-icon(left) check
+ span {{$t('common:actions.apply')}}
+
+ v-flex(lg3, xs12)
+ v-card.animated.fadeInUp
+ v-toolbar(flat, color='primary', dark, dense)
+ .subheading Webhooks
+ v-spacer
+ v-btn(outline, small)
+ v-icon.mr-2 add
+ span New
+ v-list(two-line, dense).py-0
+ template(v-for='(str, idx) in hooks')
+ v-list-tile(:key='str.key', @click='selectedHook = str.key')
+ v-list-tile-avatar
+ v-icon(color='primary', v-if='str.isEnabled', v-ripple, @click='str.isEnabled = false') check_box
+ v-icon(color='grey', v-else, v-ripple, @click='str.isEnabled = true') check_box_outline_blank
+ v-list-tile-content
+ v-list-tile-title.body-2(:class='!str.isAvailable ? `grey--text` : (selectedHook === str.key ? `primary--text` : ``)') {{ str.title }}
+ v-list-tile-sub-title.caption(:class='!str.isAvailable ? `grey--text text--lighten-1` : (selectedHook === str.key ? `blue--text ` : ``)') {{ str.description }}
+ v-list-tile-avatar(v-if='selectedHook === str.key')
+ v-icon.animated.fadeInLeft(color='primary') arrow_forward_ios
+ v-divider(v-if='idx < hooks.length - 1')
+
+ v-flex(xs12, lg9)
+ v-card.wiki-form.animated.fadeInUp.wait-p2s
+ v-toolbar(color='primary', dense, flat, dark)
+ .subheading {{hook.title}}
+ v-card-text
+ v-form
+ .authlogo
+ img(:src='hook.logo', :alt='hook.title')
+ .caption.pt-3 {{hook.description}}
+ .caption.pb-3: a(:href='hook.website') {{hook.website}}
+ .body-2(v-if='hook.isEnabled')
+ span This hook is
+
+
+
+
+
+
diff --git a/client/components/common/nav-header.vue b/client/components/common/nav-header.vue
index 5404201c..e2b2861a 100644
--- a/client/components/common/nav-header.vue
+++ b/client/components/common/nav-header.vue
@@ -45,16 +45,16 @@
v-list-tile-avatar: v-icon(color='indigo') code
v-list-tile-content View Source
v-list-tile(avatar, @click='pageMove')
- v-list-tile-avatar: v-icon(color='indigo') forward
- v-list-tile-content Move / Rename
+ v-list-tile-avatar: v-icon(color='grey lighten-2') forward
+ v-list-tile-content.grey--text.text--ligten-2 Move / Rename
v-list-tile(avatar, @click='pageDelete')
v-list-tile-avatar: v-icon(color='red darken-2') delete
v-list-tile-content Delete
v-divider.my-0
v-subheader Assets
v-list-tile(avatar, @click='assets')
- v-list-tile-avatar: v-icon(color='blue-grey') burst_mode
- v-list-tile-content Images & Files
+ v-list-tile-avatar: v-icon(color='grey lighten-2') burst_mode
+ v-list-tile-content.grey--text.text--ligten-2 Images & Files
v-toolbar-title(:class='{ "ml-2": $vuetify.breakpoint.mdAndUp, "ml-0": $vuetify.breakpoint.smAndDown }')
span.subheading {{title}}
v-flex(md4, v-if='$vuetify.breakpoint.mdAndUp')
diff --git a/client/components/editor/editor-modal-media.vue b/client/components/editor/editor-modal-media.vue
index afa0cc63..33c4986a 100644
--- a/client/components/editor/editor-modal-media.vue
+++ b/client/components/editor/editor-modal-media.vue
@@ -70,38 +70,38 @@
v-btn.ma-0(icon, slot='activator')
v-icon(color='grey darken-2') more_horiz
v-list.py-0(style='border-top: 5px solid #444;')
- v-list-tile(@click='')
+ v-list-tile(@click='', disabled)
v-list-tile-avatar
v-icon(color='teal') short_text
v-list-tile-content Properties
v-divider
template(v-if='props.item.kind === `IMAGE`')
- v-list-tile(@click='')
+ v-list-tile(@click='previewDialog = true', disabled)
v-list-tile-avatar
v-icon(color='green') image_search
v-list-tile-content Preview
v-divider
- v-list-tile(@click='')
+ v-list-tile(@click='', disabled)
v-list-tile-avatar
v-icon(color='indigo') crop_rotate
v-list-tile-content Edit
v-divider
- v-list-tile(@click='')
+ v-list-tile(@click='', disabled)
v-list-tile-avatar
v-icon(color='purple') offline_bolt
v-list-tile-content Optimize
v-divider
- v-list-tile(@click='')
+ v-list-tile(@click='openRenameDialog')
v-list-tile-avatar
v-icon(color='orange') keyboard
v-list-tile-content Rename
v-divider
- v-list-tile(@click='')
+ v-list-tile(@click='', disabled)
v-list-tile-avatar
v-icon(color='blue') forward
v-list-tile-content Move
v-divider
- v-list-tile(@click='')
+ v-list-tile(@click='deleteDialog = true')
v-list-tile-avatar
v-icon(color='red') delete
v-list-tile-content Delete
@@ -186,6 +186,44 @@
background-color='grey lighten-2'
placeholder='None'
)
+
+ //- RENAME DIALOG
+
+ v-dialog(v-model='renameDialog', max-width='550', persistent)
+ v-card.wiki-form
+ .dialog-header.is-short.is-orange
+ v-icon.mr-2(color='white') keyboard
+ span Rename Asset
+ v-card-text
+ .body-2 Enter the new name for this asset:
+ v-text-field(
+ outline
+ single-line
+ :counter='255'
+ v-model='renameAssetName'
+ @keyup.enter='renameAsset'
+ :disabled='renameAssetLoading'
+ )
+ v-card-chin
+ v-spacer
+ v-btn(flat, @click='renameDialog = false', :disabled='renameAssetLoading') Cancel
+ v-btn(color='orange darken-3', @click='renameAsset', :loading='renameAssetLoading').white--text Rename
+
+ //- DELETE DIALOG
+
+ v-dialog(v-model='deleteDialog', max-width='550', persistent)
+ v-card.wiki-form
+ .dialog-header.is-short.is-red
+ v-icon.mr-2(color='white') highlight_off
+ span Delete Asset
+ v-card-text
+ .body-2 Are you sure you want to delete asset
+ .body-2.red--text.text--darken-2 {{currentAsset.filename}}?
+ .caption.mt-3 This action cannot be undone!
+ v-card-chin
+ v-spacer
+ v-btn(flat, @click='deleteDialog = false', :disabled='deleteAssetLoading') Cancel
+ v-btn(color='red darken-2', @click='deleteAsset', :loading='deleteAssetLoading').white--text Delete