Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
35
node_modules/@astrojs/telemetry/dist/system-info.js
generated
vendored
Normal file
35
node_modules/@astrojs/telemetry/dist/system-info.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import os from "node:os";
|
||||
import { isCI, name as ciName } from "ci-info";
|
||||
import isDocker from "is-docker";
|
||||
import isWSL from "is-wsl";
|
||||
let meta;
|
||||
function getSystemInfo(versions) {
|
||||
if (meta) {
|
||||
return meta;
|
||||
}
|
||||
const cpus = os.cpus() || [];
|
||||
return {
|
||||
// Version information
|
||||
nodeVersion: process.version.replace(/^v?/, ""),
|
||||
viteVersion: versions.viteVersion,
|
||||
astroVersion: versions.astroVersion,
|
||||
// Software information
|
||||
systemPlatform: os.platform(),
|
||||
systemRelease: os.release(),
|
||||
systemArchitecture: os.arch(),
|
||||
// Machine information
|
||||
cpuCount: cpus.length,
|
||||
cpuModel: cpus.length ? cpus[0].model : null,
|
||||
cpuSpeed: cpus.length ? cpus[0].speed : null,
|
||||
memoryInMb: Math.trunc(os.totalmem() / Math.pow(1024, 2)),
|
||||
// Environment information
|
||||
isDocker: isDocker(),
|
||||
isTTY: process.stdout.isTTY,
|
||||
isWSL,
|
||||
isCI,
|
||||
ciName
|
||||
};
|
||||
}
|
||||
export {
|
||||
getSystemInfo
|
||||
};
|
Reference in New Issue
Block a user