2018-03-05 20:49:36 +00:00
|
|
|
<template lang='pug'>
|
2018-09-30 03:30:20 +00:00
|
|
|
v-container(fluid, grid-list-lg)
|
|
|
|
v-layout(row, wrap)
|
|
|
|
v-flex(xs12)
|
|
|
|
.admin-header
|
2018-12-15 22:15:13 +00:00
|
|
|
img(src='/svg/icon-maintenance.svg', alt='Utilities', style='width: 80px;')
|
2018-09-30 03:30:20 +00:00
|
|
|
.admin-header-title
|
2019-06-30 19:18:26 +00:00
|
|
|
.headline.primary--text {{$t('admin:utilities.title')}}
|
2019-08-03 04:48:55 +00:00
|
|
|
.subtitle-1.grey--text {{$t('admin:utilities.subtitle')}}
|
2018-04-01 06:06:55 +00:00
|
|
|
|
2019-06-30 19:18:26 +00:00
|
|
|
v-flex(lg3, xs12)
|
|
|
|
v-card.animated.fadeInUp
|
|
|
|
v-toolbar(flat, color='primary', dark, dense)
|
2019-08-03 04:48:55 +00:00
|
|
|
.subtitle-1 {{$t('admin:utilities.tools')}}
|
2019-06-30 19:18:26 +00:00
|
|
|
v-list(two-line, dense).py-0
|
|
|
|
template(v-for='(tool, idx) in tools')
|
2019-07-29 04:50:03 +00:00
|
|
|
v-list-item(:key='tool.key', @click='selectedTool = tool.key', :disabled='!tool.isAvailable')
|
|
|
|
v-list-item-avatar
|
2019-06-30 19:18:26 +00:00
|
|
|
v-icon(:color='!tool.isAvailable ? `grey lighten-1` : (selectedTool === tool.key ? `blue ` : `grey darken-1`)') {{ tool.icon }}
|
2019-07-29 04:50:03 +00:00
|
|
|
v-list-item-content
|
|
|
|
v-list-item-title.body-2(:class='!tool.isAvailable ? `grey--text` : (selectedTool === tool.key ? `primary--text` : ``)') {{ $t('admin:utilities.' + tool.i18nKey + 'Title') }}
|
2019-08-03 04:48:55 +00:00
|
|
|
v-list-item-subtitle: .caption(:class='!tool.isAvailable ? `grey--text text--lighten-1` : (selectedTool === tool.key ? `blue--text ` : ``)') {{ $t('admin:utilities.' + tool.i18nKey + 'Subtitle') }}
|
2019-07-29 04:50:03 +00:00
|
|
|
v-list-item-avatar(v-if='selectedTool === tool.key')
|
2019-08-03 04:48:55 +00:00
|
|
|
v-icon.animated.fadeInLeft(color='primary', large) mdi-chevron-right
|
2019-06-30 19:18:26 +00:00
|
|
|
v-divider(v-if='idx < tools.length - 1')
|
2018-04-01 06:06:55 +00:00
|
|
|
|
2019-06-30 19:18:26 +00:00
|
|
|
v-flex.animated.fadeInUp.wait-p2s(xs12, lg9)
|
|
|
|
transition(name='admin-router')
|
|
|
|
component(:is='selectedTool')
|
2018-04-07 18:08:36 +00:00
|
|
|
|
2018-03-05 20:49:36 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-04-07 18:08:36 +00:00
|
|
|
|
2018-03-05 20:49:36 +00:00
|
|
|
export default {
|
2018-04-07 18:08:36 +00:00
|
|
|
components: {
|
2019-06-30 19:18:26 +00:00
|
|
|
UtilityAuth: () => import(/* webpackChunkName: "admin" */ './admin-utilities-auth.vue'),
|
2019-07-13 03:56:44 +00:00
|
|
|
UtilityContent: () => import(/* webpackChunkName: "admin" */ './admin-utilities-content.vue'),
|
2019-06-30 19:18:26 +00:00
|
|
|
UtilityCache: () => import(/* webpackChunkName: "admin" */ './admin-utilities-cache.vue'),
|
|
|
|
UtilityImportv1: () => import(/* webpackChunkName: "admin" */ './admin-utilities-importv1.vue'),
|
|
|
|
UtilityTelemetry: () => import(/* webpackChunkName: "admin" */ './admin-utilities-telemetry.vue')
|
2018-04-07 18:08:36 +00:00
|
|
|
},
|
2018-03-05 20:49:36 +00:00
|
|
|
data() {
|
2018-04-01 06:06:55 +00:00
|
|
|
return {
|
2019-06-30 19:18:26 +00:00
|
|
|
selectedTool: 'UtilityAuth',
|
|
|
|
tools: [
|
|
|
|
{
|
|
|
|
key: 'UtilityAuth',
|
2019-08-03 04:48:55 +00:00
|
|
|
icon: 'mdi-lock-open-outline',
|
2019-06-30 19:18:26 +00:00
|
|
|
i18nKey: 'auth',
|
|
|
|
isAvailable: true
|
|
|
|
},
|
2019-07-13 03:56:44 +00:00
|
|
|
{
|
|
|
|
key: 'UtilityContent',
|
2019-08-03 04:48:55 +00:00
|
|
|
icon: 'mdi-content-duplicate',
|
2019-07-13 03:56:44 +00:00
|
|
|
i18nKey: 'content',
|
|
|
|
isAvailable: true
|
|
|
|
},
|
2019-06-30 19:18:26 +00:00
|
|
|
{
|
|
|
|
key: 'UtilityCache',
|
2019-08-03 04:48:55 +00:00
|
|
|
icon: 'mdi-database-refresh',
|
2019-06-30 19:18:26 +00:00
|
|
|
i18nKey: 'cache',
|
|
|
|
isAvailable: true
|
|
|
|
},
|
2020-05-10 22:29:24 +00:00
|
|
|
// {
|
|
|
|
// key: 'UtilityGraphEndpoint',
|
|
|
|
// icon: 'mdi-graphql',
|
|
|
|
// i18nKey: 'graphEndpoint',
|
|
|
|
// isAvailable: false
|
|
|
|
// },
|
2019-06-30 19:18:26 +00:00
|
|
|
{
|
|
|
|
key: 'UtilityImportv1',
|
2019-08-03 04:48:55 +00:00
|
|
|
icon: 'mdi-database-import',
|
2019-06-30 19:18:26 +00:00
|
|
|
i18nKey: 'importv1',
|
2019-09-16 03:20:40 +00:00
|
|
|
isAvailable: true
|
2019-06-30 19:18:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'UtilityTelemetry',
|
2019-08-03 04:48:55 +00:00
|
|
|
icon: 'mdi-math-compass',
|
2019-06-30 19:18:26 +00:00
|
|
|
i18nKey: 'telemetry',
|
|
|
|
isAvailable: true
|
|
|
|
}
|
|
|
|
]
|
2018-04-01 06:06:55 +00:00
|
|
|
}
|
2018-03-05 20:49:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang='scss'>
|
|
|
|
|
|
|
|
</style>
|