HEX
Server: LiteSpeed
System: Linux baran.dnsprotection.me 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ddir12 (3618)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/glances/outputs/static/js/components/plugin-system.vue
<template>
    <section class="plugin" id="system">
        <span v-if="isDisconnected" class="critical">Disconnected from</span>
        <span class="title">{{ hostname }}</span>
        <span v-if="isLinux" class="hidden-xs hidden-sm">
            ({{ humanReadableName }} / {{ os.name }} {{ os.version }})
        </span>
        <span v-if="!isLinux" class="hidden-xs hidden-sm">
            ({{ os.name }} {{ os.version }} {{ platform }})
        </span>
    </section>
</template>

<script>
import { store } from '../store.js';

export default {
    props: {
        data: {
            type: Object
        }
    },
    data() {
        return {
            store
        };
    },
    computed: {
        stats() {
            return this.data.stats['system'];
        },
        isLinux() {
            return this.data.isLinux;
        },
        hostname() {
            return this.stats['hostname'];
        },
        platform() {
            return this.stats['platform'];
        },
        os() {
            return {
                name: this.stats['os_name'],
                version: this.stats['os_version']
            };
        },
        humanReadableName() {
            return this.stats['hr_name'];
        },
        isDisconnected() {
            return this.store.status === 'FAILURE';
        }
    }
};
</script>