diff --git a/dashboard/src/pages/settings/CoreSettings.tsx b/dashboard/src/pages/settings/CoreSettings.tsx
index fabbf42d..11b01436 100644
--- a/dashboard/src/pages/settings/CoreSettings.tsx
+++ b/dashboard/src/pages/settings/CoreSettings.tsx
@@ -21,6 +21,7 @@ import {
import { openPort, stopCli } from 'utils/apis';
import InputField from 'components/Atoms/Form/InputField';
import { useDocumentTitle } from 'usehooks-ts';
+import packageinfo from '../../../package.json';
export const CoreSettings = () => {
useDocumentTitle('Lodestone Core Settings - Lodestone');
@@ -288,6 +289,85 @@ export const CoreSettings = () => {
);
+ const coreVersionField = (
+
+
+
+
+
+ );
+
+ const dashboardVersionField = (
+
+
+
+
+
+ );
+
+ const osField = (
+
+
+
+
+
+ );
+
+ const architectureField = (
+
+
+
+
+
+ );
+
+ const cpuField = (
+
+
+
+
+
+ );
+
+ const cpuCountField = (
+
+
+
+
+
+ );
+
+ function formatRamSize(totalRam?: number): string {
+ if (!totalRam) return "No ram? How are you running lodestone?";
+ const exponent = Math.floor(Math.log2(totalRam) / 10);
+ const size = (totalRam / Math.pow(1024, exponent)).toFixed(2);
+ const unit = ['B', 'KB', 'MB', 'GB', 'TB'][exponent];
+ return `${size} ${unit}`;
+ }
+
+ const ramField = (
+
+
+
+
+
+ );
+
return (
<>
{safeModeDialog}
@@ -317,11 +397,30 @@ export const CoreSettings = () => {
These settings can cause irreversible damage to your server!
-
+
{unsafeModeField}
{openPortField}
+
+
+
+ Information
+
+
+ This is information about your core and dashboard
+
+
+
+ {coreVersionField}
+ {dashboardVersionField}
+ {osField}
+ {architectureField}
+ {cpuField}
+ {cpuCountField}
+ {ramField}
+
+
>