2018-03-03 06:32:58 +00:00
|
|
|
<template lang='pug'>
|
|
|
|
v-container(fluid, fill-height, grid-list-lg)
|
|
|
|
v-layout(row, wrap)
|
|
|
|
v-flex(xs12)
|
2018-06-24 04:20:35 +00:00
|
|
|
.headline.primary--text {{ $t('admin:system.title') }}
|
|
|
|
.subheading.grey--text {{ $t('admin:system.subtitle') }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-layout.mt-3(row wrap)
|
|
|
|
v-flex(lg6 xs12)
|
|
|
|
v-card
|
2018-03-18 04:34:32 +00:00
|
|
|
v-btn(fab, absolute, right, top, small, light, @click='refresh'): v-icon refresh
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list(two-line, dense)
|
|
|
|
v-subheader Wiki.js
|
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue.white--text system_update_alt
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.currentVersion') }}
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-sub-title {{ info.currentVersion }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue.white--text open_in_browser
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.latestVersion') }}
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-sub-title {{ info.latestVersion }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile-action
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-action-text {{ $t('admin:system.published') }} {{ info.latestVersionReleaseDate | moment('from') }}
|
2018-03-03 06:32:58 +00:00
|
|
|
|
2018-07-08 05:12:43 +00:00
|
|
|
v-divider.mt-3
|
2018-03-03 06:32:58 +00:00
|
|
|
|
2018-06-24 04:20:35 +00:00
|
|
|
v-subheader {{ $t('admin:system.hostInfo') }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue-grey.white--text bubble_chart
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.os') }}
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-sub-title {{ info.operatingSystem }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue-grey.white--text computer
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.hostname') }}
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-sub-title {{ info.hostname }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue-grey.white--text nfc
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.cpuCores') }}
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-sub-title {{ info.cpuCores }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue-grey.white--text memory
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.totalRAM') }}
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-sub-title {{ info.ramTotal }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue-grey.white--text last_page
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.workingDirectory') }}
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-sub-title {{ info.workingDirectory }}
|
2018-05-06 21:33:41 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-icon.blue-grey.white--text settings
|
|
|
|
v-list-tile-content
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-title {{ $t('admin:system.configFile') }}
|
2018-05-06 21:33:41 +00:00
|
|
|
v-list-tile-sub-title {{ info.configFile }}
|
2018-03-03 06:32:58 +00:00
|
|
|
|
|
|
|
v-flex(lg6 xs12)
|
|
|
|
v-card.pb-3
|
|
|
|
v-list(dense)
|
|
|
|
v-subheader Node.js
|
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-avatar.light-green(size='40')
|
|
|
|
icon-node-js(fillColor='#FFFFFF')
|
|
|
|
v-list-tile-content
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-title {{ info.nodeVersion }}
|
2018-03-03 06:32:58 +00:00
|
|
|
|
2018-07-08 05:12:43 +00:00
|
|
|
v-divider.mt-3
|
2018-03-03 06:32:58 +00:00
|
|
|
|
|
|
|
v-subheader Redis
|
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-avatar.red(size='40')
|
|
|
|
icon-cube(fillColor='#FFFFFF')
|
|
|
|
v-list-tile-content
|
2018-03-18 04:34:32 +00:00
|
|
|
v-list-tile-title {{ info.redisVersion }}
|
|
|
|
v-list-tile-sub-title {{ info.redisHost }}
|
|
|
|
v-list-tile-action
|
2018-06-24 04:20:35 +00:00
|
|
|
v-list-tile-action-text {{ $t('admin:system.ramUsage', { used: info.redisUsedRAM, total: info.redisTotalRAM }) }}
|
2018-03-03 06:32:58 +00:00
|
|
|
|
2018-07-08 05:12:43 +00:00
|
|
|
v-divider.mt-3
|
2018-03-03 06:32:58 +00:00
|
|
|
|
2018-05-06 21:33:41 +00:00
|
|
|
v-subheader {{ info.dbType }}
|
2018-03-03 06:32:58 +00:00
|
|
|
v-list-tile(avatar)
|
|
|
|
v-list-tile-avatar
|
|
|
|
v-avatar.indigo.darken-1(size='40')
|
|
|
|
icon-database(fillColor='#FFFFFF')
|
|
|
|
v-list-tile-content
|
2018-05-06 21:33:41 +00:00
|
|
|
v-list-tile-title {{ info.dbVersion }}
|
|
|
|
v-list-tile-sub-title {{ info.dbHost }}
|
2018-03-03 06:32:58 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import IconCube from 'mdi/cube'
|
|
|
|
import IconDatabase from 'mdi/database'
|
|
|
|
import IconNodeJs from 'mdi/nodejs'
|
|
|
|
|
2018-06-25 06:44:40 +00:00
|
|
|
import systemInfoQuery from 'gql/admin/system/system-query-info.gql'
|
2018-03-25 02:35:47 +00:00
|
|
|
|
2018-03-03 06:32:58 +00:00
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
IconCube,
|
|
|
|
IconDatabase,
|
|
|
|
IconNodeJs
|
|
|
|
},
|
|
|
|
data() {
|
2018-03-18 04:34:32 +00:00
|
|
|
return {
|
2018-03-25 02:35:47 +00:00
|
|
|
info: {}
|
2018-03-18 04:34:32 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
async refresh() {
|
|
|
|
await this.$apollo.queries.info.refetch()
|
2018-03-25 02:35:47 +00:00
|
|
|
this.$store.commit('showNotification', {
|
|
|
|
message: 'System Info has been refreshed.',
|
|
|
|
style: 'success',
|
|
|
|
icon: 'cached'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
apollo: {
|
|
|
|
info: {
|
|
|
|
query: systemInfoQuery,
|
2018-06-04 04:41:29 +00:00
|
|
|
fetchPolicy: 'network-only',
|
2018-03-25 02:35:47 +00:00
|
|
|
update: (data) => data.system.info,
|
|
|
|
watchLoading (isLoading) {
|
|
|
|
this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'admin-system-refresh')
|
|
|
|
}
|
2018-03-18 04:34:32 +00:00
|
|
|
}
|
2018-03-03 06:32:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang='scss'>
|
|
|
|
|
|
|
|
</style>
|