Browse Source

Cleanup debug views

pull/1886/head
Gabe Kangas 5 years ago
parent
commit
2fe1277cfa
  1. 12
      web/pages/hardware-info.tsx
  2. 15
      web/pages/storage.tsx
  3. 15
      web/pages/update-server-config.tsx
  4. 13
      web/pages/video-config.tsx

12
web/pages/hardware-info.tsx

@ -102,18 +102,6 @@ const series = [ @@ -102,18 +102,6 @@ const series = [
<Chart dataCollections={series} color="#FF7700" unit="%" />
</div>
</div>
<p>cpu:[], disk: [], memory: []; value = %age.</p>
<p>the times should be the same for each, though milliseconds differ</p>
<div
style={{
border: "1px solid blue",
height: "300px",
width: "100%",
overflow: "auto",
}}
>
{JSON.stringify(hardwareStatus)}
</div>
</div>
);
}

15
web/pages/storage.tsx

@ -12,7 +12,7 @@ function Storage({ config }) { @@ -12,7 +12,7 @@ function Storage({ config }) {
return (
<h3>
Local storage is being used. Enable external S3 storage if you want
to use it.
to use it. TODO: Make this message somewhat more informative. Point to documentation or something.
</h3>
);
}
@ -74,20 +74,7 @@ export default function ServerConfig() { @@ -74,20 +74,7 @@ export default function ServerConfig() {
return (
<div>
<h2>Server Config</h2>
<p>
Display this data all pretty, most things will be editable in the
future, not now.
</p>
<div
style={{
border: "1px solid pink",
width: "100%",
overflow: "auto",
}}
>
<Storage config={config} />
</div>
</div>
);
}

15
web/pages/update-server-config.tsx

@ -149,24 +149,9 @@ export default function ServerConfig() { @@ -149,24 +149,9 @@ export default function ServerConfig() {
return (
<div>
<h2>Server Config</h2>
<p>
Display this data all pretty, most things will be editable in the
future, not now.
</p>
<div
style={{
border: "1px solid pink",
width: "100%",
overflow: "auto",
}}
>
<InstanceDetails config={config} />
<SocialHandles config={config} />
<PageContent config={config} />
{JSON.stringify(config)}
</div>
</div>
);
}

13
web/pages/video-config.tsx

@ -109,20 +109,7 @@ export default function VideoConfig() { @@ -109,20 +109,7 @@ export default function VideoConfig() {
return (
<div>
<h2>Server Config</h2>
<p>
Display this data all pretty, most things will be editable in the
future, not now.
</p>
<div
style={{
border: "1px solid pink",
width: "100%",
overflow: "auto",
}}
>
<VideoVariants config={config} />
</div>
</div>
);
}

Loading…
Cancel
Save