5 "require adblock-fast.status as adb";
9 return baseclass.extend({
10 title: _("AdBlock-Fast"),
13 return Promise.all([adb.getInitStatus(pkg.Name)]);
16 render: function (data) {
18 status: (data[0] && data[0][pkg.Name]) || {
25 force_dns_active: null,
32 outputFileExists: null,
33 outputCacheExists: null,
34 outputGzipExists: null,
40 if (reply.status.outputCacheExists) {
41 cacheText = _("Cache file");
42 } else if (reply.status.outputGzipExists) {
43 cacheText = _("Compressed cache");
45 var forceDnsText = "";
46 if (reply.status.force_dns_active) {
47 reply.status.force_dns_ports.forEach((element) => {
48 forceDnsText += element + " ";
56 { class: "table", id: "adblock-fast_status_table" },
58 E("tr", { class: "tr table-titles" }, [
59 E("th", { class: "th" }, _("Status")),
60 E("th", { class: "th" }, _("Version")),
61 E("th", { class: "th" }, _("DNS Service")),
62 E("th", { class: "th" }, _("Blocked Domains")),
63 E("th", { class: "th" }, _("Cache")),
64 E("th", { class: "th" }, _("Force DNS Ports")),
66 E("tr", { class: "tr" }, [
70 pkg.statusTable[reply.status.status] || _("Unknown")
72 E("td", { class: "td" }, reply.status.version || _("-")),
73 E("td", { class: "td" }, reply.status.dns || _("-")),
74 E("td", { class: "td" }, reply.status.entries || _("-")),
75 E("td", { class: "td" }, cacheText || _("-")),
76 E("td", { class: "td" }, forceDnsText || _("-")),