diff --git a/bun.lockb b/bun.lockb deleted file mode 100755 index 1de66bf..0000000 Binary files a/bun.lockb and /dev/null differ diff --git a/claude-generated-code.ts b/claude-generated-code.ts deleted file mode 100644 index f5a845e..0000000 --- a/claude-generated-code.ts +++ /dev/null @@ -1,138 +0,0 @@ -import React, { useState, useEffect } from 'react'; -import { Card } from '@/components/ui/card'; -import { Button } from '@/components/ui/button'; -import { - Bold, - Italic, - List, - ListOrdered, - Heading1, - Heading2, - Quote, - MoreVertical, - X -} from 'lucide-react'; - -const NoteEditor = () => { - const [content, setContent] = useState(''); - const [isToolbarOpen, setIsToolbarOpen] = useState(false); - const [viewportHeight, setViewportHeight] = useState('100vh'); - - // Handle viewport resize when keyboard appears - useEffect(() => { - const handleResize = () => { - const visualViewport = window.visualViewport; - if (visualViewport) { - setViewportHeight(`${visualViewport.height}px`); - } - }; - - window.visualViewport?.addEventListener('resize', handleResize); - window.visualViewport?.addEventListener('scroll', handleResize); - - return () => { - window.visualViewport?.removeEventListener('resize', handleResize); - window.visualViewport?.removeEventListener('scroll', handleResize); - }; - }, []); - - const execCommand = (command, value = false) => { - document.execCommand(command, false, value); - }; - - const ToolbarButton = ({ icon: Icon, command, value, label }) => ( - - ); - - return ( -
- {/* Main toolbar button */} - - - {/* Expandable toolbar */} - {isToolbarOpen && ( - -
- - - - - - - -
-
- )} - - {/* Editor area */} -
-
setContent(e.currentTarget.innerHTML)} - suppressContentEditableWarning={true} - style={{ - WebkitUserSelect: 'text', - WebkitTouchCallout: 'none', - overflowY: 'auto', - }} - /> -
-
- ); -}; - -export default NoteEditor; diff --git a/justfile b/justfile index f60231d..e81c5d8 100644 --- a/justfile +++ b/justfile @@ -9,3 +9,8 @@ run-android *args: export NDK_HOME="$ANDROID_HOME/ndk/28.0.12433566" {{args}} + +dev-server: + #!/usr/bin/env bash + cd notes && bun run tauri dev + diff --git a/notes/bun.lockb b/notes/bun.lockb index 29c32d4..3af58aa 100755 Binary files a/notes/bun.lockb and b/notes/bun.lockb differ diff --git a/notes/package.json b/notes/package.json index 9cc1ca7..f06fe0f 100644 --- a/notes/package.json +++ b/notes/package.json @@ -14,7 +14,8 @@ "@emotion/styled": "^11.13.0", "@mui/material": "^6.1.7", "@tauri-apps/api": "^2", - "@tauri-apps/plugin-shell": "^2" + "@tauri-apps/plugin-shell": "^2", + "lucide-react": "^0.460.0" }, "devDependencies": { "@tauri-apps/cli": "^2", diff --git a/package.json b/package.json deleted file mode 100644 index 394a84f..0000000 --- a/package.json +++ /dev/null @@ -1 +0,0 @@ -{ "dependencies": { "lucide-react": "^0.460.0", "react-dom": "^18.3.1" } } \ No newline at end of file