/usr/lib/python3.9/site-packages/glances/outputs/static/js/components
<template> <section class="plugin" id="fs"> <div class="table-row"> <div class="table-cell text-left title">FILE SYS</div> <div class="table-cell"> <span v-show="!args.fs_free_space">Used</span> <span v-show="args.fs_free_space">Free</span> </div> <div class="table-cell">Total</div> </div> <div class="table-row" v-for="(fs, fsId) in fileSystems" :key="fsId"> <div class="table-cell text-left"> {{ fs.shortMountPoint }} <span v-if="fs.shortMountPoint.length <= 12" class="visible-lg-inline"> ({{ fs.name }}) </span> </div> <div class="table-cell" :class="getDecoration(fs.mountPoint, 'used')"> <span v-show="!args.fs_free_space"> {{ $filters.bytes(fs.used) }} </span> <span v-show="args.fs_free_space"> {{ $filters.bytes(fs.free) }} </span> </div> <div class="table-cell">{{ $filters.bytes(fs.size) }}</div> </div> </section> </template> <script> import { orderBy } from 'lodash'; import { store } from '../store.js'; export default { props: { data: { type: Object } }, data() { return { store }; }, computed: { args() { return this.store.args || {}; }, stats() { return this.data.stats['fs']; }, view() { return this.data.views['fs']; }, fileSystems() { const fileSystems = this.stats.map((fsData) => { let shortMountPoint = fsData['mnt_point']; if (shortMountPoint.length > 22) { shortMountPoint = '_' + fsData['mnt_point'].slice(-21); } return { name: fsData['device_name'], mountPoint: fsData['mnt_point'], shortMountPoint: shortMountPoint, percent: fsData['percent'], size: fsData['size'], used: fsData['used'], free: fsData['free'] }; }); return orderBy(fileSystems, ['mnt_point']); } }, methods: { getDecoration(mountPoint, field) { if (this.view[mountPoint][field] == undefined) { return; } return this.view[mountPoint][field].decoration.toLowerCase(); } } }; </script>
.
Edit
..
Edit
help.vue
Edit
plugin-alert.vue
Edit
plugin-amps.vue
Edit
plugin-cloud.vue
Edit
plugin-connections.vue
Edit
plugin-cpu.vue
Edit
plugin-diskio.vue
Edit
plugin-docker.vue
Edit
plugin-folders.vue
Edit
plugin-fs.vue
Edit
plugin-gpu.vue
Edit
plugin-ip.vue
Edit
plugin-irq.vue
Edit
plugin-load.vue
Edit
plugin-mem-more.vue
Edit
plugin-mem.vue
Edit
plugin-memswap.vue
Edit
plugin-network.vue
Edit
plugin-now.vue
Edit
plugin-percpu.vue
Edit
plugin-ports.vue
Edit
plugin-process.vue
Edit
plugin-processcount.vue
Edit
plugin-processlist.vue
Edit
plugin-quicklook.vue
Edit
plugin-raid.vue
Edit
plugin-sensors.vue
Edit
plugin-system.vue
Edit
plugin-uptime.vue
Edit
plugin-wifi.vue
Edit