Compare commits

...

42 Commits
v6.3 ... master

Author SHA1 Message Date
Adam Warner
cd0c392d5b
Pi-hole Web v6.4 (#3670) 2025-11-27 18:10:45 +00:00
yubiuser
7a51bb1b53
build(deps): bump github/codeql-action from 4.31.3 to 4.31.4 (#3665) 2025-11-22 21:45:18 +01:00
yubiuser
7933fff9cf
build(deps): bump actions/checkout from 5.0.0 to 6.0.0 (#3666) 2025-11-22 21:44:32 +01:00
yubiuser
a4f057d80e
build(deps-dev): bump autoprefixer from 10.4.21 to 10.4.22 (#3668) 2025-11-22 19:33:15 +01:00
dependabot[bot]
242d76a68f
build(deps-dev): bump autoprefixer from 10.4.21 to 10.4.22
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.21 to 10.4.22.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.21...10.4.22)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-version: 10.4.22
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-22 10:04:03 +00:00
dependabot[bot]
013f3c58fa
build(deps): bump actions/checkout from 5.0.0 to 6.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](08c6903cd8...1af3b93b68)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-22 10:03:31 +00:00
dependabot[bot]
9e0daf847d
build(deps): bump github/codeql-action from 4.31.3 to 4.31.4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.3 to 4.31.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](014f16e7ab...e12f017898)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-22 10:03:24 +00:00
Dominik
ff299898ea
Request ANSI colour codes when calling gravity API (#3662) 2025-11-22 09:49:45 +01:00
Adam Warner
e2d711f547
Request ANSI colour codes when calling gravity API
Add the 'color=true' query parameter to the gravity API call so that the
FTL backend will include ANSI escape codes for terminal color output.

This works in conjunction with FTL changes that make color codes opt-in
rather than always-on.

Addresses: pi-hole/FTL#2671
2025-11-19 21:28:47 +00:00
Adam Warner
24141635b0
Set "All Time " range for query log datepicker based on Database ranges (moment) (#3657) 2025-11-19 20:39:35 +00:00
Adam Warner
77b3833fa6
Use the start of day for past 7 and 30 days
No need to check for null on endofTime, it will always have a values

Co-authored-by: yubiuser <github@yubiuser.dev>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-11-19 20:06:57 +00:00
yubiuser
eb975e5f0e
build(deps): bump github/codeql-action from 4.31.2 to 4.31.3 (#3659) 2025-11-15 13:56:03 +01:00
dependabot[bot]
3214e975ae
build(deps): bump github/codeql-action from 4.31.2 to 4.31.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.2 to 4.31.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](0499de31b9...014f16e7ab)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-15 10:03:53 +00:00
Adam Warner
1b509593c9
Treat 0.0 response as NULL. Also get the in-memory timetamp, and then use whichever of the two timestamps is smallest (and non-zero)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-11-12 23:11:53 +00:00
yubiuser
2fb7c7eb92
Enable one-time code autofill for TOTP input (#3658) 2025-11-12 22:10:46 +01:00
Sebastian Livoni
d1f00195f2
Enable one-time code autofill for TOTP input
Replaced autocomplete="off" with autocomplete="one-time-code" to allow
browsers and mobile devices to suggest one-time passcodes automatically,
improving the user experience.

Signed-off-by: Sebastian Livoni <29739749+sebastianlivoni@users.noreply.github.com>
2025-11-12 18:13:55 +01:00
Adam Warner
0f76df92b9
Refactor date range initialization to fetch earliest timestamp from API and set default values
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-11-10 00:00:08 +00:00
Dominik
1d7d203c79
Add hint that partial matching may not return all possible results (#3654) 2025-11-09 20:04:07 +01:00
Dominik
836de7d9db
Add hint that partial matching may not return all possible results
Signed-off-by: Dominik <dl6er@dl6er.de>
2025-11-09 11:11:46 +01:00
yubiuser
a6affad350
build(deps-dev): bump eslint from 9.39.0 to 9.39.1 (#3653) 2025-11-08 11:44:55 +01:00
yubiuser
54f1cebf59
build(deps): bump codespell-project/actions-codespell from 2.1 to 2.2 (#3652) 2025-11-08 11:43:04 +01:00
dependabot[bot]
2846bc1b84
build(deps-dev): bump eslint from 9.39.0 to 9.39.1
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.0 to 9.39.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.39.0...v9.39.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-08 10:03:25 +00:00
dependabot[bot]
e123607454
build(deps): bump codespell-project/actions-codespell from 2.1 to 2.2
Bumps [codespell-project/actions-codespell](https://github.com/codespell-project/actions-codespell) from 2.1 to 2.2.
- [Release notes](https://github.com/codespell-project/actions-codespell/releases)
- [Commits](406322ec52...8f01853be1)

---
updated-dependencies:
- dependency-name: codespell-project/actions-codespell
  dependency-version: '2.2'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-08 10:02:52 +00:00
yubiuser
bfaa3ee0ac
build(deps-dev): bump eslint from 9.38.0 to 9.39.0 (#3648) 2025-11-01 12:25:34 +01:00
dependabot[bot]
bc440c3d8d
build(deps-dev): bump eslint from 9.38.0 to 9.39.0
Bumps [eslint](https://github.com/eslint/eslint) from 9.38.0 to 9.39.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.38.0...v9.39.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 10:46:39 +00:00
yubiuser
1442a2f8b9
build(deps-dev): bump globals from 16.4.0 to 16.5.0 (#3647) 2025-11-01 11:45:21 +01:00
yubiuser
67abf257c4
build(deps): bump github/codeql-action from 4.31.0 to 4.31.2 (#3646) 2025-11-01 11:43:36 +01:00
dependabot[bot]
beb974f826
build(deps-dev): bump globals from 16.4.0 to 16.5.0
Bumps [globals](https://github.com/sindresorhus/globals) from 16.4.0 to 16.5.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v16.4.0...v16.5.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 16.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 10:03:42 +00:00
dependabot[bot]
8ca3216464
build(deps): bump github/codeql-action from 4.31.0 to 4.31.2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.0 to 4.31.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](4e94bd11f7...0499de31b9)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 10:03:24 +00:00
RD WebDesign
8632a750fa
Make sure the table is redrawn after the dnssec API call returns (#3645) 2025-10-29 23:20:13 -03:00
RD WebDesign
5e3000c141
Make sure the table is redrawn after the dnssec API call returns
Without this, the icons won't show up on the initial table draw because the
asynchronous AJAX call usually only completes after that.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-10-29 18:04:49 -03:00
Adam Warner
2a7d10ebfb
Remove some unused code (leftover from v5) (#3636) 2025-10-28 13:37:21 +00:00
RD WebDesign
356666122b
Remove unused filter_dnsmasq_warnings=true option
Also remove the old code used to read hideNonfatalDnsmasqWarnings_chkbox
from localstorage. This value was a leftover from v5 web interface.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-10-27 19:50:17 -03:00
yubiuser
2a4dc20003
Start using commented tags for editorconfig-checker (#3643) 2025-10-26 20:33:52 +01:00
yubiuser
6fc3bc6464
Start using commented tags for editorconfig-checker
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-10-26 20:25:37 +01:00
yubiuser
e4e96954e1
build(deps): bump chart.js from 4.5.0 to 4.5.1 (#3630) 2025-10-26 17:04:45 +01:00
yubiuser
0171aea158
Sync master back into development (#3639) 2025-10-26 15:21:49 +01:00
yubiuser
ddfadd7141
build(deps): bump github/codeql-action from 4.30.9 to 4.31.0 (#3638) 2025-10-26 15:20:03 +01:00
dependabot[bot]
7b048945db
build(deps): bump github/codeql-action from 4.30.9 to 4.31.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.30.9 to 4.31.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](16140ae1a1...4e94bd11f7)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-25 10:02:50 +00:00
yubiuser
f662668979
Regenerate packahe-lock.json
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-10-15 20:33:13 +02:00
yubiuser
5d47aee17e
Update files
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-10-15 20:29:19 +02:00
dependabot[bot]
658eac4ddd
build(deps): bump chart.js from 4.5.0 to 4.5.1
Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](https://github.com/chartjs/Chart.js/compare/v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: chart.js
  dependency-version: 4.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-14 20:26:53 +00:00
17 changed files with 569 additions and 531 deletions

View File

@ -26,21 +26,21 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 #v4.30.9
uses: github/codeql-action/init@e12f0178983d466f2f6028f5cc7a6d786fd97f4b #v4.31.4
with:
config-file: ./.github/codeql/codeql-config.yml
languages: "javascript"
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 #v4.30.9
uses: github/codeql-action/autobuild@e12f0178983d466f2f6028f5cc7a6d786fd97f4b #v4.31.4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 #v4.30.9
uses: github/codeql-action/analyze@e12f0178983d466f2f6028f5cc7a6d786fd97f4b #v4.31.4
with:
category: "/language:javascript"

View File

@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0
with:
persist-credentials: false
- name: Spell-Checking
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 #v2.1
uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 #v2.2
with:
ignore_words_file: .codespellignore
skip: ./vendor,./package.json,./package-lock.json

View File

@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0
with:
persist-credentials: false
- uses: editorconfig-checker/action-editorconfig-checker@5ecdd656fe347c26f76b1b435b90e1d74fb5e787 # tag v2. is really out of date
- uses: editorconfig-checker/action-editorconfig-checker@4b6cd6190d435e7e084fb35e36a096e98506f7b9 #v2.1.0
- run: editorconfig-checker

View File

@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0
with:
persist-credentials: false
- name: Remove 'stale' label

View File

@ -11,7 +11,7 @@ jobs:
name: Syncing branches
steps:
- name: Clone repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0
with:
persist-credentials: false
- name: Opening pull request

View File

@ -19,7 +19,7 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0
with:
persist-credentials: false

View File

@ -53,7 +53,7 @@ mg.include('scripts/lua/header.lp','r')
</div>
<div class="form-group hidden" id="totp_input">
<div class="input-group">
<input type="text" id="totp" size="6" maxlen="6" class="form-control totp_token" placeholder="123456" value="" spellcheck="false" autofocus autocomplete="off">
<input type="text" id="totp" size="6" maxlen="6" class="form-control totp_token" placeholder="123456" value="" spellcheck="false" autofocus autocomplete="one-time-code">
<div class="input-group-addon" data-toggle="tooltip" data-placement="auto" title="TOTP verification code">
<i class="fa fa-clock-rotate-left"></i>
</div>

956
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@
"bootstrap-select": "1.13.18",
"bootstrap-toggle": "2.2.2",
"bstreeview": "1.2.0",
"chart.js": "4.5.0",
"chart.js": "4.5.1",
"chartjs-adapter-moment": "1.0.1",
"chartjs-plugin-deferred": "2.0.0",
"chartjs-plugin-zoom": "2.2.0",
@ -52,10 +52,10 @@
"select2": "4.0.13"
},
"devDependencies": {
"autoprefixer": "^10.4.21",
"eslint": "^9.38.0",
"autoprefixer": "^10.4.22",
"eslint": "^9.39.1",
"eslint-plugin-compat": "^6.0.2",
"globals": "^16.4.0",
"globals": "^16.5.0",
"postcss": "^8.5.6",
"postcss-cli": "^11.0.1",
"prettier": "^3.6.2",

View File

@ -64,6 +64,7 @@ mg.include('scripts/lua/header_authenticated.lp','r')
</div>
<input type="button" class="form-control pull-right" id="querytime" value="Click to select date and time range">
</div>
<small id="querytime-note" class="form-text text-muted" style="margin-top: 5px;"></small>
</div>
<div class="form-group col-md-6">
<div><input type="checkbox" id="disk"><label for="disk">Query on-disk data. This is <em>a lot</em> slower but necessary if you want to obtain queries older than 24 hours. This option disables live update.</label></div>

View File

@ -15,7 +15,7 @@ function eventsource() {
const outputElement = document.getElementById("output");
const gravityBtn = document.getElementById("gravityBtn");
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute("content");
const url = `${document.body.dataset.apiurl}/action/gravity`;
const url = `${document.body.dataset.apiurl}/action/gravity?color=true`;
if (outputElement.innerHTML.length > 0) {
outputElement.innerHTML = "";

View File

@ -13,13 +13,7 @@ let table;
const toasts = {};
$(() => {
const ignoreNonfatal = localStorage
? localStorage.getItem("hideNonfatalDnsmasqWarnings_chkbox") === "true"
: false;
const url =
document.body.dataset.apiurl +
"/info/messages" +
(ignoreNonfatal ? "?filter_dnsmasq_warnings=true" : "");
const url = document.body.dataset.apiurl + "/info/messages";
table = $("#messagesTable").DataTable({
ajax: {
url,

View File

@ -9,10 +9,13 @@
"use strict";
const beginningOfTime = 1_262_304_000; // Jan 01 2010, 00:00 in seconds
const endOfTime = 2_147_483_647; // Jan 19, 2038, 03:14 in seconds
let from = beginningOfTime;
let until = endOfTime;
// These values are provided by the API (/info/database).
// We initialize them as null and populate them during page init.
let beginningOfTime = null; // seconds since epoch (set from API: info/database.earliest_timestamp)
// endOfTime should be the end of today (local), in seconds since epoch
const endOfTime = moment().endOf("day").unix();
let from = null;
let until = null;
const dateformat = "MMM Do YYYY, HH:mm";
@ -34,10 +37,58 @@ let doDNSSEC = false;
function getDnssecConfig() {
$.getJSON(document.body.dataset.apiurl + "/config/dns/dnssec", data => {
doDNSSEC = data.config.dns.dnssec;
// redraw the table to show the icons when the API call returns
$("#all-queries").DataTable().draw();
});
}
// Fetch database info (earliest timestamp, sizes, ...) from the API and
// initialize related globals.
function getDatabaseInfo() {
$.getJSON(document.body.dataset.apiurl + "/info/database", data => {
// earliest_timestamp is provided in seconds since epoch
// We have two sources: earliest_timestamp_disk (on-disk) and earliest_timestamp (in-memory)
// Use whichever is smallest and non-zero
const diskTimestamp = Number(data.earliest_timestamp_disk);
const memoryTimestamp = Number(data.earliest_timestamp);
// Filter out zero/invalid timestamps
const validTimestamps = [diskTimestamp, memoryTimestamp].filter(ts => ts > 0);
// Use the smallest valid timestamp, or null if none exist
beginningOfTime = validTimestamps.length > 0 ? Math.min(...validTimestamps) : null;
// Round down to nearest 5-minute segment (300 seconds) if valid
if (beginningOfTime !== null) {
beginningOfTime = Math.floor(beginningOfTime / 300) * 300;
}
// If from/until were not provided via GET, default them
// Only use defaults if beginningOfTime is valid
if (beginningOfTime !== null) {
from ??= beginningOfTime;
until ??= endOfTime;
}
initDateRangePicker();
});
}
function initDateRangePicker() {
// If there's no valid data in the database, disable the datepicker
if (beginningOfTime === null) {
$("#querytime").prop("disabled", true);
$("#querytime").addClass("disabled");
$("#querytime-note").text(" No data in the database");
return;
}
const minDateMoment = moment.unix(beginningOfTime);
const maxDateMoment = moment.unix(endOfTime);
const earliestDateStr = minDateMoment.format(dateformat);
$("#querytime-note").text(`Earliest date: ${earliestDateStr}`);
$("#querytime").daterangepicker(
{
timePicker: true,
@ -49,21 +100,24 @@ function initDateRangePicker() {
ranges: {
"Last 10 Minutes": [moment().subtract(10, "minutes"), moment()],
"Last Hour": [moment().subtract(1, "hours"), moment()],
Today: [moment().startOf("day"), moment().endOf("day")],
Today: [moment().startOf("day"), maxDateMoment],
Yesterday: [
moment().subtract(1, "days").startOf("day"),
moment().subtract(1, "days").endOf("day"),
],
"Last 7 Days": [moment().subtract(6, "days"), moment().endOf("day")],
"Last 30 Days": [moment().subtract(29, "days"), moment().endOf("day")],
"This Month": [moment().startOf("month"), moment().endOf("month")],
"Last 7 Days": [moment().subtract(6, "days").startOf("day"), maxDateMoment],
"Last 30 Days": [moment().subtract(29, "days").startOf("day"), maxDateMoment],
"This Month": [moment().startOf("month"), maxDateMoment],
"Last Month": [
moment().subtract(1, "month").startOf("month"),
moment().subtract(1, "month").endOf("month"),
],
"This Year": [moment().startOf("year"), moment().endOf("year")],
"All Time": [moment(beginningOfTime * 1000), moment(endOfTime * 1000)], // convert to milliseconds since epoch
"This Year": [moment().startOf("year"), maxDateMoment],
"All Time": [minDateMoment, maxDateMoment],
},
// Don't allow selecting dates outside the database range
minDate: minDateMoment,
maxDate: maxDateMoment,
opens: "center",
showDropdowns: true,
autoUpdateInput: true,
@ -507,14 +561,15 @@ $(() => {
const apiURL = getAPIURL(GETDict);
if ("from" in GETDict) {
from = GETDict.from;
from = Number(GETDict.from);
}
if ("until" in GETDict) {
until = GETDict.until;
until = Number(GETDict.until);
}
initDateRangePicker();
// Fetch earliest timestamp from API and initialize date picker / table
getDatabaseInfo();
table = $("#all-queries").DataTable({
ajax: {

View File

@ -386,14 +386,8 @@ function colorBar(percentage, total, cssClass) {
}
function checkMessages() {
const ignoreNonfatal = localStorage
? localStorage.getItem("hideNonfatalDnsmasqWarnings_chkbox") === "true"
: false;
$.ajax({
url:
document.body.dataset.apiurl +
"/info/messages/count" +
(ignoreNonfatal ? "?filter_dnsmasq_warnings=true" : ""),
url: document.body.dataset.apiurl + "/info/messages/count",
method: "GET",
dataType: "json",
})

View File

@ -26,14 +26,14 @@ mg.include('scripts/lua/header_authenticated.lp','r')
</div>
<div class="box-body">
<div class="row">
<div class="col-md-4">
<div class="col-md-6">
<div>
<input type="checkbox" id="partialMatch" data-key="partialMatch">
<label for="partialMatch"><strong>Use partial matching</strong></label>
<label for="partialMatch"><strong>Use partial matching</strong> (may not find complex regex entries)</label>
</div>
</div>
<br class="hidden-md hidden-lg">
<div class="col-md-8">
<div class="col-md-6">
<div id="domain-limitbox-block" class="form-inline">
<label for="number">Maximum number of results to be returned:&nbsp;</label>
<input class="form-control input-sm" type="number" min="0" value="20" id="number">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long