From b8614b16e958cbacfff05a8e2f79f8e4410654b8 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Thu, 19 Feb 2026 12:18:34 +0100 Subject: added frontend (vanilla-ts with bun) --- frontend/src/main.ts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 frontend/src/main.ts (limited to 'frontend/src/main.ts') diff --git a/frontend/src/main.ts b/frontend/src/main.ts new file mode 100644 index 0000000..3628147 --- /dev/null +++ b/frontend/src/main.ts @@ -0,0 +1,35 @@ +import './style.css' +/* +import typescriptLogo from './typescript.svg' +import viteLogo from '/vite.svg' +import { setupCounter } from './counter.ts' +*/ + +const response = await fetch('http://localhost:8080/'); +const text = await response.text(); +const app = document.querySelector('#app'); +if (app) { + app.innerHTML = text; +} + +/* +document.querySelector('#app')!.innerHTML = ` +
+ + + + + + +

Vite + TypeScript

+
+ +
+

+ Click on the Vite and TypeScript logos to learn more +

+
+` + +setupCounter(document.querySelector('#counter')!) +*/ \ No newline at end of file -- cgit v1.2.3