mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
4.8 KiB
141 lines
4.8 KiB
7 years ago
|
<template lang='pug'>
|
||
|
v-container(fluid, fill-height, grid-list-lg)
|
||
|
v-layout(row, wrap)
|
||
|
v-flex(xs12)
|
||
7 years ago
|
.headline.primary--text System Info
|
||
7 years ago
|
.subheading.grey--text Information about your system
|
||
|
v-layout.mt-3(row wrap)
|
||
|
v-flex(lg6 xs12)
|
||
|
v-card
|
||
7 years ago
|
v-btn(fab, absolute, right, top, small, light, @click='refresh'): v-icon refresh
|
||
7 years ago
|
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
|
||
|
v-list-tile-title Current Version
|
||
7 years ago
|
v-list-tile-sub-title {{ info.currentVersion }}
|
||
7 years ago
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-icon.blue.white--text open_in_browser
|
||
|
v-list-tile-content
|
||
|
v-list-tile-title Latest Version
|
||
7 years ago
|
v-list-tile-sub-title {{ info.latestVersion }}
|
||
7 years ago
|
v-list-tile-action
|
||
7 years ago
|
v-list-tile-action-text Published X days ago
|
||
7 years ago
|
|
||
|
v-divider
|
||
|
|
||
|
v-subheader Host Information
|
||
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-icon.blue-grey.white--text bubble_chart
|
||
|
v-list-tile-content
|
||
|
v-list-tile-title Operating System
|
||
7 years ago
|
v-list-tile-sub-title {{ info.operatingSystem }}
|
||
7 years ago
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-icon.blue-grey.white--text computer
|
||
|
v-list-tile-content
|
||
|
v-list-tile-title Hostname
|
||
7 years ago
|
v-list-tile-sub-title {{ info.hostname }}
|
||
7 years ago
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-icon.blue-grey.white--text nfc
|
||
|
v-list-tile-content
|
||
|
v-list-tile-title CPU Cores
|
||
7 years ago
|
v-list-tile-sub-title {{ info.cpuCores }}
|
||
7 years ago
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-icon.blue-grey.white--text memory
|
||
|
v-list-tile-content
|
||
|
v-list-tile-title Total RAM
|
||
7 years ago
|
v-list-tile-sub-title {{ info.ramTotal }}
|
||
7 years ago
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-icon.blue-grey.white--text last_page
|
||
|
v-list-tile-content
|
||
|
v-list-tile-title Working Directory
|
||
7 years ago
|
v-list-tile-sub-title {{ info.workingDirectory }}
|
||
7 years ago
|
|
||
|
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
|
||
7 years ago
|
v-list-tile-title {{ info.nodeVersion }}
|
||
7 years ago
|
|
||
|
v-divider
|
||
|
|
||
|
v-subheader Redis
|
||
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-avatar.red(size='40')
|
||
|
icon-cube(fillColor='#FFFFFF')
|
||
|
v-list-tile-content
|
||
7 years ago
|
v-list-tile-title {{ info.redisVersion }}
|
||
|
v-list-tile-sub-title {{ info.redisHost }}
|
||
|
v-list-tile-action
|
||
|
v-list-tile-action-text RAM Usage: {{ info.redisUsedRAM }} / {{ info.redisTotalRAM }}
|
||
7 years ago
|
|
||
|
v-divider
|
||
|
|
||
|
v-subheader PostgreSQL
|
||
|
v-list-tile(avatar)
|
||
|
v-list-tile-avatar
|
||
|
v-avatar.indigo.darken-1(size='40')
|
||
|
icon-database(fillColor='#FFFFFF')
|
||
|
v-list-tile-content
|
||
7 years ago
|
v-list-tile-title {{ info.postgreVersion }}
|
||
|
v-list-tile-sub-title {{ info.postgreHost }}
|
||
7 years ago
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import IconCube from 'mdi/cube'
|
||
|
import IconDatabase from 'mdi/database'
|
||
|
import IconNodeJs from 'mdi/nodejs'
|
||
|
|
||
7 years ago
|
import systemInfoQuery from 'gql/admin-system-query-info.gql'
|
||
|
|
||
7 years ago
|
export default {
|
||
|
components: {
|
||
|
IconCube,
|
||
|
IconDatabase,
|
||
|
IconNodeJs
|
||
|
},
|
||
|
data() {
|
||
7 years ago
|
return {
|
||
7 years ago
|
info: {}
|
||
7 years ago
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
async refresh() {
|
||
|
await this.$apollo.queries.info.refetch()
|
||
7 years ago
|
this.$store.commit('showNotification', {
|
||
|
message: 'System Info has been refreshed.',
|
||
|
style: 'success',
|
||
|
icon: 'cached'
|
||
|
})
|
||
|
}
|
||
|
},
|
||
|
apollo: {
|
||
|
info: {
|
||
|
query: systemInfoQuery,
|
||
|
update: (data) => data.system.info,
|
||
|
watchLoading (isLoading) {
|
||
|
this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'admin-system-refresh')
|
||
|
}
|
||
7 years ago
|
}
|
||
7 years ago
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang='scss'>
|
||
|
|
||
|
</style>
|