33df893f865baf745b019868fa5113db515d8572
[openwrt-luci.git] /
1 /*
2  * Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
3  * Licensed to the public under the Apache License 2.0.
4  */
5
6 'use strict';
7 'require baseclass';
8
9 return baseclass.extend({
10         title: _('Splash Leases'),
11
12         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
13                 return {
14                         title: "%H: Splash Leases",
15                         vlabel: "Active Clients",
16                         y_min: "0",
17                         number_format: "%5.1lf",
18                         data: {
19                                 sources: {
20                                         splash_leases: [ "leased", "whitelisted", "blacklisted" ]
21                                 },
22                                 options: {
23                                         splash_leases__leased     : { color: "00CC00", title: "Leased",      overlay: false },
24                                         splash_leases__whitelisted: { color: "0000FF", title: "Whitelisted", overlay: false },
25                                         splash_leases__blacklisted: { color: "FF0000", title: "Blacklisted", overlay: false }
26                                 }
27                         }
28                 };
29         }
30 });
git clone https://git.99rst.org/PROJECT