From 515cdc5c0f3702af7fd09357ee6f50540c910119 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Wed, 20 Nov 2024 03:30:48 -0800 Subject: [PATCH] More work --- notes/bun.lockb | Bin 59786 -> 71300 bytes notes/package.json | 3 ++- notes/src/claude-generated-code.tsx | 2 +- notes/src/main.tsx | 15 ++++++++++----- notes/tsconfig.json | 1 + notes/vite.config.ts | 3 +++ 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/notes/bun.lockb b/notes/bun.lockb index 3af58aaa66162aa885d28f38516b738c546eefff..97bad5de0fa4a0af9a8d6d8b17c84d6e57658945 100755 GIT binary patch delta 15894 zcmeHucU)B0)Azlwi!2=kWa*%yf=h3LvSRNgD2T?gz*3avf*oBFYwUWAib@2#VnMOT zg2vurH1-x_G?oNoNi2!_eCO_7cFoTu@AJOD_xU`3{O)IGXU>^9bLPxBXU^TbbElp+ zov=YNJFtmuDxZ}Ru=w4L<}b{`#*`P%zIi|X+H>uxMn#%ymCn(lpF8m!U7P15d1-St z2{gWP^9t1kz~cZ`99OJSt5OR=`$L+_lYnKw>8Nu7P6D=W(0^dc)Zoppy zI|IMLFsS1-D0=`mhau#VMS25c^`1}wlff^*tOxula8uwUVA4MUO!CMWVDe;!4W|`4 z?2QVtycIBwRHH7)%O0-g5@5C$${m5JVJt92iZfLOc_VT;ZU%-&BdWnXkb$FAIoagF zcqpR|qJXKL7nG7GOn_+sYKaY{sLLIp3+xfvNca$SBY+4iLz~u751?qxS7-WG3BS-lVFnM+ZFnQ=%V|){F7+i9Z zKMK@QUss*rM3kw+xlC^A#b>i-re0lrFa)a0RpsVorE#3PAZ1uqb{e-Dt|DD?fN9#s z=&@RlyX$cbF!kjJ?8r(@W3`h#b$&0@W0f9v)8ppA7-_M;9=qtVnI1ofMa0+SWoHk| z=eSQB>-?M!Om67{i~$t~>Fb?=$sI2naU4`=i@ycY02Nz-y@BWJ7{vv^^-=B#O!E;6 z46BRl>hZ6Bf`Z~Jz|_%hVB&w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H?G!t$$P5Z(j3cSWr8c45!XV!Ypa_c2XQo z{)ZGMB8QhDT(NGfK;Cal+HfTfCRqE>z?~ z(+JsKK=+Qx_?VNAr-*IT=eTS$Zi-r;d$ZuobK8fZ`Xp@}F45fMvgt-Ny>>jpW?bj| zeeIMRrOK_{W`WU4;=Lf8P9K-kjO(BD$4|Upx_ZY2K3~oQ&V=tusCuAJMKL@XMO|)qrapz9bfMe-79)G zt-Vm~vDfI9Rw3~zV(Ay99?LiM4@ADJ+sS#Q*|_EF7JKX=6njz@Ey#INwiy>=13Lbx zbyRfl?>%1qDgUILW?ZDb(>-r^fzt9dkKMRx8$W8(y_(`(ojn$!O2i*c=TD}HeDXUb z+l)J@_wHS};Tw6Zxml#zlO6UHNqUQvQ*yd-hgFlj``+>!Lxjg}+;VwOIs44`Q{N%W zM#+0EXvL`rn{h3cacx%LfS^TZJPw&ueM%N1=^`3nT&n%8b90~XyLLP1@!Cj%r{y%` z5^nX}sH{0tzmNCWjcd9=pH`JFx;Zz}V=>Y2)3VLD*NdLnSA049oXca+pyJcA7(nlw zmeY+}!NmpZTh=Y^+0f&47N5!(Dc6Y7Hs5Z#cy+j0VB_KCEL}^WRp%nojqA2#-|sGk zO2mvYelhc0x=K gxI0}p-}p+RM(0y2hMwP?@XD$X5%583u;^#`Cz+$6J^%m! diff --git a/notes/package.json b/notes/package.json index f06fe0f..f52d81c 100644 --- a/notes/package.json +++ b/notes/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "tsc && vite build --jsx", "preview": "vite preview", "tauri": "tauri" }, @@ -19,6 +19,7 @@ }, "devDependencies": { "@tauri-apps/cli": "^2", + "@vitejs/plugin-react": "^4.2.1", "vite": "^5.3.1", "typescript": "^5.2.2" } diff --git a/notes/src/claude-generated-code.tsx b/notes/src/claude-generated-code.tsx index dc160c4..966efc1 100644 --- a/notes/src/claude-generated-code.tsx +++ b/notes/src/claude-generated-code.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import { useState, useEffect } from 'react'; import Card from '@mui/material/Card'; import Button from '@mui/material/Button'; import { diff --git a/notes/src/main.tsx b/notes/src/main.tsx index 0c0998d..8b70e55 100644 --- a/notes/src/main.tsx +++ b/notes/src/main.tsx @@ -1,14 +1,19 @@ import { invoke } from "@tauri-apps/api/core"; -import { createRoot } from 'react-dom/client'; -import React, { useState, useEffect } from 'react'; +import React from 'react'; +// @ts-ignore +import ReactDOM from "react-dom/client"; import NoteEditor from "./claude-generated-code"; const domElem = document.getElementById("editor"); -console.log(domElem); -const root = createRoot(domElem); -root.render(); + +ReactDOM.createRoot(domElem).render( + + + , +); + let greetInputEl: HTMLInputElement | null; let greetMsgEl: HTMLElement | null; diff --git a/notes/tsconfig.json b/notes/tsconfig.json index 75abdef..813e82b 100644 --- a/notes/tsconfig.json +++ b/notes/tsconfig.json @@ -12,6 +12,7 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, + "jsx": "react-jsx", /* Linting */ "strict": true, diff --git a/notes/vite.config.ts b/notes/vite.config.ts index e8e567a..e861c38 100644 --- a/notes/vite.config.ts +++ b/notes/vite.config.ts @@ -1,10 +1,13 @@ import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; + // @ts-expect-error process is a nodejs global const host = process.env.TAURI_DEV_HOST; // https://vitejs.dev/config/ export default defineConfig(async () => ({ + plugins: [react()], // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build` //