Include hostname in runtime settings (#4148)

This commit is contained in:
Peter Hedenskog 2024-05-03 22:01:29 +02:00 committed by GitHub
parent d5eff7794c
commit 538bb7824a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { join } from 'node:path';
import osName from 'os-name';
import { promisify } from 'node:util';
import { platform } from 'node:os';
import { platform, hostname } from 'node:os';
import { createRequire } from 'node:module';
import { fileURLToPath } from 'node:url';
@ -287,7 +287,6 @@ export class HTMLBuilder {
options
)
: [];
let rootPath = this.storageManager.rootPathFromUrl(url, daurlAlias);
let data = {
daurl: url,
@ -454,6 +453,7 @@ export class HTMLBuilder {
pageTitle: name,
pageDescription: '',
browser,
hostname: hostname(),
cpuBenchmark,
windowSize,
os: osInfo,

View File

@ -26,6 +26,10 @@ block content
tr
td Emulated mobile
td Yes
if hostname
tr
td Hostname
td #{hostname}
if cpuBenchmark
tr
td CPU benchmark