diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b559772..206dcb9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,5 +37,3 @@ jobs: project: "hcweb" entrypoint: "main.ts" root: "." - - diff --git a/.gitignore b/.gitignore index 3a28f2e..42ec201 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,4 @@ dist .yarn/install-state.gz .pnp.* /cov +/_fresh diff --git a/deno.json b/deno.json index 4e2e8dc..a9509f4 100644 --- a/deno.json +++ b/deno.json @@ -24,19 +24,16 @@ ], "imports": { "$fresh/": "https://deno.land/x/fresh@1.7.3/", - "@swanfactory/hclang": "jsr:@swanfactory/hclang@^0.6.7", + "@swanfactory/hclang": "jsr:@swanfactory/hclang@^0.6.9", "preact": "https://esm.sh/preact@10.22.0", "preact/": "https://esm.sh/preact@10.22.0/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", - "tailwindcss": "npm:tailwindcss@3.4.17", - "tailwindcss/": "npm:/tailwindcss@3.4.17/", - "tailwindcss/plugin": "npm:/tailwindcss@3.4.17/plugin.js", "$std/": "https://deno.land/std@0.216.0/" }, "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, - "nodeModulesDir": "auto" + "nodeModulesDir": "none" } diff --git a/fresh.config.ts b/fresh.config.ts index 6f7acca..d8f76ab 100644 --- a/fresh.config.ts +++ b/fresh.config.ts @@ -1,8 +1,5 @@ import { defineConfig } from "$fresh/server.ts"; -import tailwind from "$fresh/plugins/tailwind.ts"; export default defineConfig({ - plugins: [ - tailwind(), - ], + plugins: [], }); diff --git a/islands/Interpreter.tsx b/islands/Interpreter.tsx index c16e85f..8393ae2 100644 --- a/islands/Interpreter.tsx +++ b/islands/Interpreter.tsx @@ -1,8 +1,12 @@ import { useState } from "preact/hooks"; +// import { execute } from "@swanfactory/hclang"; function evaluateCode(code: string): string { + console.log(`Evaluating code: ${code}`); + // console.log(execute); try { - const result = code.toLocaleUpperCase(); + const result = code.toUpperCase(); + console.log(`Result: ${result}`); return result.toString(); } catch (error: unknown) { console.error(error); @@ -30,28 +34,27 @@ export default function Interpreter() { }; return ( -