Include hostname in runtime settings (#4148)
This commit is contained in:
parent
d5eff7794c
commit
538bb7824a
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue