Set Faketime and Update plugin

This commit is contained in:
L3D 2024-03-10 19:29:04 +01:00
parent 06d130ff83
commit d159fe0bb0
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
8 changed files with 10 additions and 7 deletions

View file

@ -17,7 +17,7 @@ pip install lektor
Run lektor:
```bash
source lektor/bin/activate
lektor server -f scss
lektor server
```
esbuild instructions

View file

@ -1,9 +1,9 @@
'use strict';
// Fake 'now' date time for testing
const fakeNow = null;
// const fakeNow = null;
// const fakeNow = Date.parse("2023-11-04T13:10:00");
const fakeNow = Date.parse("2023-11-04T13:10:00");
const fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();

View file

@ -45,7 +45,7 @@
__export(time_exports, {
now: () => now
});
var fakeNow = null;
var fakeNow = Date.parse("2023-11-04T13:10:00");
var fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
var nowJS = () => Date.now() + fakeTimeDelta;
var now = () => luxon.DateTime.fromMillis(nowJS());

View file

@ -45,7 +45,7 @@
__export(time_exports, {
now: () => now
});
var fakeNow = null;
var fakeNow = Date.parse("2023-11-04T13:10:00");
var fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
var nowJS = () => Date.now() + fakeTimeDelta;
var now = () => luxon.DateTime.fromMillis(nowJS());

View file

@ -45,7 +45,7 @@
__export(time_exports, {
now: () => now
});
var fakeNow = null;
var fakeNow = Date.parse("2023-11-04T13:10:00");
var fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
var nowJS = () => Date.now() + fakeTimeDelta;
var now = () => luxon.DateTime.fromMillis(nowJS());

1
configs/scss.ini Normal file
View file

@ -0,0 +1 @@
use_compile_flag=false

View file

@ -7,5 +7,7 @@ body:
Hier findet ihr mehrere Endpunkte des HTML5 Info-Beamer.
Der Infobeamer ist Optimiert auf eine Auflösung von ``1920x1080px`` zum Beispiel zum Einfügen im OBS als BrowserSource.
Achtung, aktuell läuft der HTML5 Info-Beamer mit einer "Faketime", die angezeigte Uhrzeit und Datum ist also falsch.
Quelle: [git.l3d.ch](https://git.l3d.ch/voc/html5-infobeamer-aalen-geekend-23.git).
*Lizenz: [MIT](https://git.l3d.ch/voc/html5-infobeamer-aalen-geekend-23/raw/branch/main/LICENSE)*

View file

@ -18,4 +18,4 @@ primary = yes
locale = de_DE
[packages]
lektor-scss = 1.4.2
lektor-scss = 1.5.0