!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/netdata/web/gui/src/dashboard.js/charting/   drwxr-xr-x
Free 13.09 GB of 57.97 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     _morris.js (2.47 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// DEPRECATED: will be removed!

// morris

NETDATA.morrisInitialize = function(callback) {
    if (typeof netdataNoMorris === 'undefined' || !netdataNoMorris) {

        // morris requires raphael
        if (!NETDATA.chartLibraries.raphael.initialized) {
            if (NETDATA.chartLibraries.raphael.enabled) {
                NETDATA.raphaelInitialize(function() {
                    NETDATA.morrisInitialize(callback);
                });
            } else {
                NETDATA.chartLibraries.morris.enabled = false;
                if (typeof callback === "function")
                    return callback();
            }
        } else {
            NETDATA._loadCSS(NETDATA.morris_css);

            $.ajax({
                url: NETDATA.morris_js,
                cache: true,
                dataType: "script",
                xhrFields: { withCredentials: true } // required for the cookie
            })
            .done(function() {
                NETDATA.registerChartLibrary('morris', NETDATA.morris_js);
            })
            .fail(function() {
                NETDATA.chartLibraries.morris.enabled = false;
                NETDATA.error(100, NETDATA.morris_js);
            })
            .always(function() {
                if (typeof callback === "function")
                    return callback();
            });
        }
    } else {
        NETDATA.chartLibraries.morris.enabled = false;
        if (typeof callback === "function")
            return callback();
    }
};

NETDATA.morrisChartUpdate = function(state, data) {
    state.morris_instance.setData(data.result.data);
    return true;
};

NETDATA.morrisChartCreate = function(state, data) {

    state.morris_options = {
            element: state.element_chart.id,
            data: data.result.data,
            xkey: 'time',
            ykeys: data.dimension_names,
            labels: data.dimension_names,
            lineWidth: 2,
            pointSize: 3,
            smooth: true,
            hideHover: 'auto',
            parseTime: true,
            continuousLine: false,
            behaveLikeLine: false
    };

    if (state.chart.chart_type === 'line')
        state.morris_instance = new Morris.Line(state.morris_options);

    else if (state.chart.chart_type === 'area') {
        state.morris_options.behaveLikeLine = true;
        state.morris_instance = new Morris.Area(state.morris_options);
    }
    else // stacked
        state.morris_instance = new Morris.Area(state.morris_options);

    return true;
};

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0544 ]--