Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions new/apps/web/src/routes/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,7 @@ export const load: ServerLoad = async ({ fetch }) => {
} catch {
error(503, "no spec-ify instance found at localhost:8080");
}
/*
const widgetHTML = await (
await fetch(`http://localhost:8080/widgets.php?file=${FILE_PATH}`)
).text();
const tableHTML = await (
await fetch(`http://localhost:8080/tables.php/?file=${FILE_PATH}`)
).text();
const tabbedInfoHTML = await (
await fetch(`http://localhost:8080/tabbed_info.php/?file=${FILE_PATH}`)
).text();
*/
const cpuMoreInfo = cpuLookup(report.Hardware.Cpu);
const eolList = await eolLookup();
return { report, cpuMoreInfo, eolList, /*widgetHTML, tableHTML, tabbedInfoHTML*/ };
return { report, cpuMoreInfo, eolList, };
};
9 changes: 0 additions & 9 deletions new/apps/web/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@
import { page } from '$app/state';

let { data: pageData }: { data: PageData } = $props();

/*
onMount(() => {
// console.log(data.widgetResponse);
const wrapperDiv = document.getElementById('legacy-content');
wrapperDiv!.innerHTML = pageData.widgetHTML + pageData.tabbedInfoHTML + pageData.tableHTML;
// document.appendChild(wrapperDiv);
});
*/
</script>

<!-- <div class="container h-full mx-auto flex justify-center items-center"> -->
Expand Down