mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-03 19:25:19 +02:00
integrate electron forge
This commit is contained in:
parent
6abb3afc36
commit
f72dee731a
14 changed files with 3388 additions and 32 deletions
|
|
@ -558,9 +558,10 @@ function App() {
|
|||
}
|
||||
}
|
||||
|
||||
const handlePromptSubmit = async ({ text }: PromptInputMessage) => {
|
||||
const handlePromptSubmit = async (message: PromptInputMessage) => {
|
||||
if (isProcessing) return
|
||||
|
||||
const { text } = message;
|
||||
const userMessage = text.trim()
|
||||
if (!userMessage) return
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import {
|
|||
import { Reasoning, ReasoningContent, ReasoningTrigger } from '@/components/ai-elements/reasoning'
|
||||
import { Shimmer } from '@/components/ai-elements/shimmer'
|
||||
import { Tool, ToolContent, ToolHeader, ToolInput, ToolOutput } from '@/components/ai-elements/tool'
|
||||
import { type PromptInputMessage } from '@/components/ai-elements/prompt-input'
|
||||
|
||||
interface ChatMessage {
|
||||
id: string
|
||||
|
|
@ -106,7 +107,7 @@ interface ChatSidebarProps {
|
|||
isProcessing: boolean
|
||||
message: string
|
||||
onMessageChange: (message: string) => void
|
||||
onSubmit: (message: { text: string; files: never[] }) => void
|
||||
onSubmit: (message: PromptInputMessage) => void
|
||||
contextUsage: LanguageModelUsage
|
||||
maxTokens: number
|
||||
usedTokens: number
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import tailwindcss from '@tailwindcss/vite'
|
|||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: './', // Use relative paths for assets (required for Electron custom protocol)
|
||||
plugins: [
|
||||
react(),
|
||||
tailwindcss(),
|
||||
|
|
@ -14,4 +15,7 @@ export default defineConfig({
|
|||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue