pub / goaccess_dashboard

Tiny tool for privacy-preserving web-analytics
git clone https://src.jayvii.de/pub/goaccess_dashboard.git
Home | Log | Files | Exports | Refs | Submodules | README | RSS

commit 6eb7af52ae11fb45db22a908535f3b4c0adcc712
parent 4684106a27d783d110f81455206c3a89cb64c93a
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon, 23 Mar 2026 13:04:04 +0100

feat: several smaller improvements

Diffstat:
Mcreate_logs_report.sh | 31+++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)

diff --git a/create_logs_report.sh b/create_logs_report.sh @@ -16,21 +16,23 @@ function autoTheme() { function autoTheme() { // If browser/client prefers dark color-scheme if (window.matchMedia('(prefers-color-scheme: dark)').matches) { - // unwind sidebar to load theme-toggles - document.querySelector('.nav-gears').click(); - // Enable theme: dark-gray - setTimeout( - function() { document.querySelector('.theme-dark-gray').click(); }, - 250 - ); + var theme = "theme-dark-gray"; + } else { + var theme = "theme-bright"; } + // unwind sidebar to load theme-toggles + document.querySelector('.nav-gears').click(); + // Enable theme: dark-gray + setTimeout( + function() { document.querySelector('.' + theme).click(); }, + 250 + ); }; // run autoTheme function after 1ms delay setTimeout(autoTheme, 1); </script> " | tee --append "${1}" > /dev/null } - # set dates -------------------------------------------------------------------- TODAY=$(date +%Y-%m-%d) THIS_WEEK=$(date +%V --date "${TODAY}") @@ -56,9 +58,10 @@ mkdir -p "${HTML_PATH}/${THIS_YEAR}/week-${THIS_WEEK}" echo "Create this Week's log" sed -n '/'${TODAY}'/,$ p' ${LOG_PATH} | \ grep -v -E "$(cat ./spammers.txt)" | \ + grep -v -E "${1}" | \ goaccess \ --db-path="${DB_PATH}/${THIS_YEAR}/week-${THIS_WEEK}" \ - --output-format="${HTML_PATH}/${THIS_YEAR}/week-${THIS_WEEK}/index.html" \ + --output="${HTML_PATH}/${THIS_YEAR}/week-${THIS_WEEK}/index.html" \ - # auto automatic theme to weekly log @@ -68,9 +71,10 @@ autoTheme "${HTML_PATH}/${THIS_YEAR}/week-${THIS_WEEK}/index.html" echo "Create this Month's log" sed -n '/'${TODAY}'/,$ p' ${LOG_PATH} | \ grep -v -E "$(cat ./spammers.txt)" | \ + grep -v -E "${1}" | \ goaccess \ --db-path="${DB_PATH}/${THIS_YEAR}/${THIS_MONTH}" \ - --output-format="${HTML_PATH}/${THIS_YEAR}/${THIS_MONTH}/index.html" \ + --output="${HTML_PATH}/${THIS_YEAR}/${THIS_MONTH}/index.html" \ - # auto automatic theme to monthly log @@ -80,9 +84,10 @@ autoTheme "${HTML_PATH}/${THIS_YEAR}/${THIS_MONTH}/index.html" echo "Create this Year's log" sed -n '/'${TODAY}'/,$ p' ${LOG_PATH} | \ grep -v -E "$(cat ./spammers.txt)" | \ + grep -v -E "${1}" | \ goaccess \ --db-path="${DB_PATH}/${THIS_YEAR}" \ - --output-format="${HTML_PATH}/${THIS_YEAR}/index.html" \ + --output="${HTML_PATH}/${THIS_YEAR}/index.html" \ - # auto automatic theme to yearly log @@ -92,9 +97,11 @@ autoTheme "${HTML_PATH}/${THIS_YEAR}/index.html" echo "Create global log" sed -n '/'${TODAY}'/,$ p' ${LOG_PATH} | \ grep -v -E "$(cat ./spammers.txt)" | \ + grep -v -E "${1}" | \ + goaccess \ --db-path="${DB_PATH}/all" \ - --output-format="${HTML_PATH}/all/index.html" \ + --output="${HTML_PATH}/all/index.html" \ - # auto automatic theme to global log