From 01ed82c4ee5c9555f6676fdc34226a923f243887 Mon Sep 17 00:00:00 2001 From: coulisse Date: Fri, 27 Jan 2023 11:03:43 +0100 Subject: [PATCH] cache control, layout scrolling, no cyan --- docs/CHANGELOG.md | 10 ++- scripts/build.sh | 1 + scripts/dxcluster_schema_for_test.sh | 8 ++- scripts/lh.sh | 2 + static/html/rel/offline.html | 2 +- static/js/dev/table.js | 18 ++--- static/js/rel/table.min.js | 2 +- templates/_base.html | 2 +- templates/index.html | 101 +++++++++++++++++++++++++++ webapp.py | 2 +- 10 files changed, 128 insertions(+), 20 deletions(-) create mode 100755 scripts/lh.sh diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 5ced20a..49aa614 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,13 @@ ### Change log -Date: 23/01/2023 +Date: 27/01/2023 +Release: v2.4.1.2 +- Changed cache-control header +- Fixed Layout scrolling (SEO) +- First time spot load: not show cyan background + +___ + +Date: 25/01/2023 Release: v2.4.1.2 - fixed issue #30 bug on callsign search diff --git a/scripts/build.sh b/scripts/build.sh index 938f10a..a0096dd 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -121,6 +121,7 @@ if [ "$1" == "-r" ]; then echo 'remove some packages from requirements...' sed -i '/certifi==/d' ../requirements.txt sed -i '/staticjinja==/d' ../requirements.txt + sed -i '/lighthouse==/d' ../requirements.txt if ! sed -i '13,20s/level=DEBUG/level=INFO/g' ${app_ini}; then echo 'ERROR settimg loglevel=INFO ' diff --git a/scripts/dxcluster_schema_for_test.sh b/scripts/dxcluster_schema_for_test.sh index 2682e10..2b9c3fe 100755 --- a/scripts/dxcluster_schema_for_test.sh +++ b/scripts/dxcluster_schema_for_test.sh @@ -20,7 +20,13 @@ db_insert () { spotteritu=$(shuf -i 1-90 -n 1) spottercq=$(shuf -i 1-40 -n 1) #for epoc use https://www.epochconverter.com/ - timestamp=$(shuf -i 1673759569-1673763169 -n 1) + + curr_epoch_time=$(date +%s) + #timestamp=$(shuf -i 1673759569-1673763169 -n 1) + epoch_start=$((${curr_epoch_time}-3600)) + echo ${curr_epoch_time} + echo ${epoch_start} + timestamp=$(shuf -i ${epoch_start}-${curr_epoch_time} -n 1) cs_letter_1=$(chr $(shuf -i 65-90 -n1)) cs_letter_2=$(chr $(shuf -i 65-90 -n1)) diff --git a/scripts/lh.sh b/scripts/lh.sh new file mode 100755 index 0000000..591a9c2 --- /dev/null +++ b/scripts/lh.sh @@ -0,0 +1,2 @@ +lighthouse ${1} --chrome-flags=”--headless” --quiet --view + diff --git a/static/html/rel/offline.html b/static/html/rel/offline.html index e583eb0..f6d309c 100644 --- a/static/html/rel/offline.html +++ b/static/html/rel/offline.html @@ -129,7 +129,7 @@