mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
fix build error
This commit is contained in:
parent
c4ad60f884
commit
144f45a06c
3 changed files with 8 additions and 5 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { Loader2, Mic, Mail, Calendar } from "lucide-react"
|
import { Loader2, Mic, Mail, Calendar } from "lucide-react"
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
|
import { Separator } from "@/components/ui/separator"
|
||||||
import { GoogleClientIdModal } from "@/components/google-client-id-modal"
|
import { GoogleClientIdModal } from "@/components/google-client-id-modal"
|
||||||
import { ComposioApiKeyModal } from "@/components/composio-api-key-modal"
|
import { ComposioApiKeyModal } from "@/components/composio-api-key-modal"
|
||||||
import { useConnectors } from "@/hooks/useConnectors"
|
import { useConnectors } from "@/hooks/useConnectors"
|
||||||
|
|
|
||||||
|
|
@ -30,14 +30,14 @@ export function useAnalyticsIdentity() {
|
||||||
|
|
||||||
// Count notes for total_notes property
|
// Count notes for total_notes property
|
||||||
try {
|
try {
|
||||||
const dirs = await window.ipc.invoke('workspace:readdir', { path: '/' })
|
const entries = await window.ipc.invoke('workspace:readdir', { path: '/' })
|
||||||
let totalNotes = 0
|
let totalNotes = 0
|
||||||
if (dirs?.entries) {
|
if (entries) {
|
||||||
for (const entry of dirs.entries) {
|
for (const entry of entries) {
|
||||||
if (entry.type === 'directory') {
|
if (entry.kind === 'dir') {
|
||||||
try {
|
try {
|
||||||
const sub = await window.ipc.invoke('workspace:readdir', { path: `/${entry.name}` })
|
const sub = await window.ipc.invoke('workspace:readdir', { path: `/${entry.name}` })
|
||||||
totalNotes += sub?.entries?.length ?? 0
|
totalNotes += sub?.length ?? 0
|
||||||
} catch {
|
} catch {
|
||||||
// skip inaccessible dirs
|
// skip inaccessible dirs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -251,6 +251,7 @@ const ipcSchemas = {
|
||||||
config: z.record(z.string(), z.object({
|
config: z.record(z.string(), z.object({
|
||||||
connected: z.boolean(),
|
connected: z.boolean(),
|
||||||
error: z.string().nullable().optional(),
|
error: z.string().nullable().optional(),
|
||||||
|
userId: z.string().optional(),
|
||||||
})),
|
})),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
@ -267,6 +268,7 @@ const ipcSchemas = {
|
||||||
provider: z.string(),
|
provider: z.string(),
|
||||||
success: z.boolean(),
|
success: z.boolean(),
|
||||||
error: z.string().optional(),
|
error: z.string().optional(),
|
||||||
|
userId: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
res: z.null(),
|
res: z.null(),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue