misc: migrate to vuetify 2.0 (wip)
This commit is contained in:
@@ -6,107 +6,100 @@
|
||||
img.animated.fadeInUp(src='/svg/icon-tune.svg', alt='System Info', style='width: 80px;')
|
||||
.admin-header-title
|
||||
.headline.primary--text.animated.fadeInLeft {{ $t('admin:system.title') }}
|
||||
.subheading.grey--text.animated.fadeInLeft.wait-p2s {{ $t('admin:system.subtitle') }}
|
||||
.subtitle-1.grey--text.animated.fadeInLeft.wait-p2s {{ $t('admin:system.subtitle') }}
|
||||
v-layout.mt-3(row wrap)
|
||||
v-flex(lg6 xs12)
|
||||
v-card.animated.fadeInUp
|
||||
v-btn.animated.fadeInLeft.wait-p2s.btn-animate-rotate(fab, absolute, right, top, small, light, @click='refresh'): v-icon refresh
|
||||
v-btn.animated.fadeInLeft.wait-p2s.btn-animate-rotate(fab, absolute, right, top, small, light, @click='refresh'): v-icon(color='grey') mdi-refresh
|
||||
v-subheader Wiki.js
|
||||
v-list(two-line, dense)
|
||||
v-subheader Wiki.js
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-icon.blue.white--text system_update_alt
|
||||
v-icon.blue.white--text mdi-application-export
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.currentVersion') }}
|
||||
v-list-item-sub-title {{ info.currentVersion }}
|
||||
v-list-item-subtitle {{ info.currentVersion }}
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-icon.blue.white--text open_in_browser
|
||||
v-icon.blue.white--text mdi-inbox-arrow-up
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.latestVersion') }}
|
||||
v-list-item-sub-title {{ info.latestVersion }}
|
||||
v-list-item-subtitle {{ info.latestVersion }}
|
||||
v-list-item-action
|
||||
v-list-item-action-text {{ $t('admin:system.published') }} {{ info.latestVersionReleaseDate | moment('from') }}
|
||||
|
||||
v-divider.mt-3
|
||||
|
||||
v-subheader {{ $t('admin:system.hostInfo') }}
|
||||
v-divider.mt-3
|
||||
v-subheader {{ $t('admin:system.hostInfo') }}
|
||||
v-list(two-line, dense)
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-avatar.blue-grey(size='40')
|
||||
img(:src='`/svg/icon-` + platformLogo + `-logo.svg`', alt='Platform', style='width: 24px;')
|
||||
v-icon(color='white') {{platformLogo}}
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.os') }}
|
||||
v-list-item-sub-title {{ (info.platform === 'docker') ? 'Docker Container (Linux)' : info.operatingSystem }}
|
||||
v-list-item-subtitle {{ (info.platform === 'docker') ? 'Docker Container (Linux)' : info.operatingSystem }}
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-icon.blue-grey.white--text computer
|
||||
v-icon.blue-grey.white--text mdi-desktop-classic
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.hostname') }}
|
||||
v-list-item-sub-title {{ info.hostname }}
|
||||
v-list-item-subtitle {{ info.hostname }}
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-icon.blue-grey.white--text nfc
|
||||
v-icon.blue-grey.white--text mdi-cpu-64-bit
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.cpuCores') }}
|
||||
v-list-item-sub-title {{ info.cpuCores }}
|
||||
v-list-item-subtitle {{ info.cpuCores }}
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-icon.blue-grey.white--text memory
|
||||
v-icon.blue-grey.white--text mdi-memory
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.totalRAM') }}
|
||||
v-list-item-sub-title {{ info.ramTotal }}
|
||||
v-list-item-subtitle {{ info.ramTotal }}
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-icon.blue-grey.white--text last_page
|
||||
v-icon.blue-grey.white--text mdi-iframe-outline
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.workingDirectory') }}
|
||||
v-list-item-sub-title {{ info.workingDirectory }}
|
||||
v-list-item-subtitle {{ info.workingDirectory }}
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-icon.blue-grey.white--text settings
|
||||
v-icon.blue-grey.white--text mdi-card-bulleted-settings-outline
|
||||
v-list-item-content
|
||||
v-list-item-title {{ $t('admin:system.configFile') }}
|
||||
v-list-item-sub-title {{ info.configFile }}
|
||||
v-list-item-subtitle {{ info.configFile }}
|
||||
|
||||
v-flex(lg6 xs12)
|
||||
v-card.pb-3.animated.fadeInUp.wait-p4s
|
||||
v-subheader Node.js
|
||||
v-list(dense)
|
||||
v-subheader Node.js
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-avatar.light-green(size='40')
|
||||
icon-node-js(fillColor='#FFFFFF')
|
||||
v-icon(color='white') mdi-nodejs
|
||||
v-list-item-content
|
||||
v-list-item-title {{ info.nodeVersion }}
|
||||
|
||||
v-divider.mt-3
|
||||
|
||||
v-subheader {{ info.dbType }}
|
||||
v-divider.mt-3
|
||||
v-subheader {{ info.dbType }}
|
||||
v-list(dense)
|
||||
v-list-item(avatar)
|
||||
v-list-item-avatar
|
||||
v-avatar.indigo.darken-1(size='40')
|
||||
icon-database(fillColor='#FFFFFF')
|
||||
v-icon(color='white') mdi-database
|
||||
v-list-item-content
|
||||
v-list-item-title(v-html='dbVersion')
|
||||
v-list-item-sub-title {{ info.dbHost }}
|
||||
v-list-item-subtitle {{ info.dbHost }}
|
||||
|
||||
v-alert.mt-3(:value='isDbLimited', color='deep-orange', icon='warning') {{ $t('admin:system.dbPartialSupport') }}
|
||||
v-alert.mt-3.mx-4(:value='isDbLimited', color='deep-orange darken-2', icon='mdi-alert', dark) {{ $t('admin:system.dbPartialSupport') }}
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import _ from 'lodash'
|
||||
|
||||
import IconDatabase from 'mdi/Database'
|
||||
import IconNodeJs from 'mdi/Nodejs'
|
||||
|
||||
import systemInfoQuery from 'gql/admin/system/system-query-info.gql'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
IconDatabase,
|
||||
IconNodeJs
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
info: {}
|
||||
@@ -119,13 +112,17 @@ export default {
|
||||
platformLogo() {
|
||||
switch (this.info.platform) {
|
||||
case 'docker':
|
||||
return 'docker'
|
||||
return 'mdi-docker'
|
||||
case 'darwin':
|
||||
return 'apple'
|
||||
return 'mdi-apple'
|
||||
case 'linux':
|
||||
return 'linux'
|
||||
if (this.info.operatingSystem.indexOf('Ubuntu')) {
|
||||
return 'mdi-ubuntu'
|
||||
} else {
|
||||
return 'mdi-linux'
|
||||
}
|
||||
case 'win32':
|
||||
return 'windows'
|
||||
return 'mdi-windows'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
|
Reference in New Issue
Block a user