YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
iterate on tauri ui
Louis Beaumont0dc0163b1820
diff --git a/examples/apps/screenpipe-app-tauri/app/globals.css b/examples/apps/screenpipe-app-tauri/app/globals.cssindex 875c01e81..33ce1d9ba 100644--- a/examples/apps/screenpipe-app-tauri/app/globals.css+++ b/examples/apps/screenpipe-app-tauri/app/globals.css@@ -2,32 +2,68 @@@tailwind components;@tailwind utilities;-:root {- --foreground-rgb: 0, 0, 0;- --background-start-rgb: 214, 219, 220;- --background-end-rgb: 255, 255, 255;-}--@media (prefers-color-scheme: dark) {+@layer base {:root {- --foreground-rgb: 255, 255, 255;- --background-start-rgb: 0, 0, 0;- --background-end-rgb: 0, 0, 0;+ --background: 0 0% 100%;+ --foreground: 224 71.4% 4.1%;+ --card: 0 0% 100%;+ --card-foreground: 224 71.4% 4.1%;+ --popover: 0 0% 100%;+ --popover-foreground: 224 71.4% 4.1%;+ --primary: 220.9 39.3% 11%;+ --primary-foreground: 210 20% 98%;+ --secondary: 220 14.3% 95.9%;+ --secondary-foreground: 220.9 39.3% 11%;+ --muted: 220 14.3% 95.9%;+ --muted-foreground: 220 8.9% 46.1%;+ --accent: 220 14.3% 95.9%;+ --accent-foreground: 220.9 39.3% 11%;+ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 210 20% 98%;+ --border: 220 13% 91%;+ --input: 220 13% 91%;+ --ring: 224 71.4% 4.1%;+ --radius: 0.5rem;+ --chart-1: 12 76% 61%;+ --chart-2: 173 58% 39%;+ --chart-3: 197 37% 24%;+ --chart-4: 43 74% 66%;+ --chart-5: 27 87% 67%;}-}-body {- color: rgb(var(--foreground-rgb));- background: linear-gradient(- to bottom,- transparent,- rgb(var(--background-end-rgb))- )- rgb(var(--background-start-rgb));+ .dark {+ --background: 224 71.4% 4.1%;+ --foreground: 210 20% 98%;+ --card: 224 71.4% 4.1%;+ --card-foreground: 210 20% 98%;+ --popover: 224 71.4% 4.1%;+ --popover-foreground: 210 20% 98%;+ --primary: 210 20% 98%;+ --primary-foreground: 220.9 39.3% 11%;+ --secondary: 215 27.9% 16.9%;+ --secondary-foreground: 210 20% 98%;+ --muted: 215 27.9% 16.9%;+ --muted-foreground: 217.9 10.6% 64.9%;+ --accent: 215 27.9% 16.9%;+ --accent-foreground: 210 20% 98%;+ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 210 20% 98%;+ --border: 215 27.9% 16.9%;+ --input: 215 27.9% 16.9%;+ --ring: 216 12.2% 83.9%;+ --chart-1: 220 70% 50%;+ --chart-2: 160 60% 45%;+ --chart-3: 30 80% 55%;+ --chart-4: 280 65% 60%;+ --chart-5: 340 75% 55%;+ }}-@layer utilities {- .text-balance {- text-wrap: balance;+@layer base {+ * {+ @apply border-border;}-}+ body {+ @apply bg-background text-foreground;+ }+}\ No newline at end of filediff --git a/examples/apps/screenpipe-app-tauri/app/page.tsx b/examples/apps/screenpipe-app-tauri/app/page.tsxindex d25b44775..519132fc7 100644--- a/examples/apps/screenpipe-app-tauri/app/page.tsx+++ b/examples/apps/screenpipe-app-tauri/app/page.tsx@@ -1,60 +1,63 @@+"use client";++import { ChatList } from "@/components/chat-list";import Image from "next/image";+import { Button } from "@/components/ui/button"; // Import Button from shadcn-export default function Home() {+function Header() {return (- <main className="flex min-h-screen flex-col items-center justify-between p-24">- <div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex mb-16">- <p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">- Personalized AI that powered by what you have seen, said, or heard.- </p>- <div className="absolute top-9 right-16 animate-ping h-2 w-2 rounded-full bg-green-500"></div>- </div>-- <div className="mb-16 relative z-[-1] flex place-items-center before:absolute before:h-[300px] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 sm:before:w-[480px] sm:after:w-[240px] before:lg:h-[360px]">- <Image- className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"- src="/screenpipe.svg"- alt="Screenpipe Logo"- width={180}- height={37}- priority- />+ <div>+ <div className="mb-16 relative z-[-1] flex flex-col items-center">+ <div className="relative flex flex-col items-center before:absolute before:h-[300px] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 sm:before:w-[480px] sm:after:w-[240px] before:lg:h-[360px] gap-4">+ <Image+ className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"+ src="/screenpipe.svg"+ alt="Screenpipe Logo"+ width={180}+ height={37}+ priority+ />+ <p className="absolute left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">+ Personalized AI powered by what you have seen, said, or heard.+ </p>+ </div></div>-- <div className="mb-32 grid text-center lg:mb-0 lg:w-full lg:max-w-5xl lg:grid-cols-4 lg:text-left space-y-8">- <a- href="https://github.com/louis030195/screen-pipe/tree/main/examples/ts"- className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"- target="_blank"- rel="noopener noreferrer"+ <div className="mt-4 flex space-x-4 absolute top-4 right-4">+ {" "}+ {/* Added margin-top for spacing */}+ <Button+ asChild+ className="cursor-pointer"+ onClick={() =>+ window.open(+ "https://github.com/louis030195/screen-pipe/tree/main/examples/ts",+ "_blank"+ )+ }>- <h2 className="mb-3 text-2xl font-semibold">- Get started{" "}- <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">- ->- </span>- </h2>- <p className="m-0 max-w-[30ch] text-sm opacity-50">- Check out our examples- </p>- </a>- <a- href="mailto:[email protected]?subject=Screenpipe%20Feedback&body=Please%20enter%20your%20feedback%20here...%0A%0A...%20or%20let's%20chat?%0Ahttps://cal.com/louis030195/screenpipe"- className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"- target="_blank"- rel="noopener noreferrer"+ <h2 className="mb-3 text-2xl font-semibold">Get started</h2>+ </Button>+ <Button+ asChild+ className="cursor-pointer"+ onClick={() =>+ window.open(+ "mailto:[email protected]?subject=Screenpipe%20Feedback&body=Please%20enter%20your%20feedback%20here...%0A%0A...%20or%20let's%20chat?%0Ahttps://cal.com/louis030195/screenpipe",+ "_blank"+ )+ }>- <h2 className="mb-3 text-2xl font-semibold">- Send feedback{" "}- <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">- ->- </span>- </h2>- <p className="m-0 max-w-[30ch] text-sm opacity-50">- Send us your feedback- </p>- </a>+ <h2 className="mb-3 text-2xl font-semibold">Send feedback</h2>+ </Button></div>+ </div>+ );+}+export default function Home() {+ return (+ <main className="flex min-h-screen flex-col items-center justify-between p-8">+ <Header /> {/* Use Header component */}+ <ChatList /></main>);}diff --git a/examples/apps/screenpipe-app-tauri/bun.lockb b/examples/apps/screenpipe-app-tauri/bun.lockbindex 5a995097a..3cdc14226 100755Binary files a/examples/apps/screenpipe-app-tauri/bun.lockb and b/examples/apps/screenpipe-app-tauri/bun.lockb differdiff --git a/examples/apps/screenpipe-app-tauri/components.json b/examples/apps/screenpipe-app-tauri/components.jsonnew file mode 100644index 000000000..b0af43f32--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components.json@@ -0,0 +1,16 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "default",+ "rsc": true,+ "tsx": true,+ "tailwind": {+ "config": "tailwind.config.ts",+ "css": "app/globals.css",+ "baseColor": "gray",+ "cssVariables": true+ },+ "aliases": {+ "utils": "@/lib/utils",+ "components": "@/components"+ }+}\ No newline at end of filediff --git a/examples/apps/screenpipe-app-tauri/components/chat-list.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list.tsxnew file mode 100644index 000000000..877828186--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/chat-list.tsx@@ -0,0 +1,375 @@+import { Button } from "@/components/ui/button";+import Link from "next/link";+import {+ DropdownMenu,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuSeparator,+} from "@/components/ui/dropdown-menu";+import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";+import { Textarea } from "@/components/ui/textarea";++export function ChatList() {+ return (+ <div className="grid md:grid-cols-[520] min-h-screen w-full">+ <div className="flex flex-col">+ <div className="sticky top-0 p-2">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ variant="ghost"+ className="gap-1 rounded-xl px-3 h-10 data-[state=open]:bg-muted text-lg"+ >+ ChatGPT <span className="text-muted-foreground">3.5</span>+ <ChevronDownIcon className="w-4 h-4 text-muted-foreground" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="max-w-[300px]">+ <DropdownMenuItem className="items-start gap-2">+ <SparkleIcon className="w-4 h-4 mr-2 translate-y-1 shrink-0" />+ <div>+ <div className="font-medium">GPT-4</div>+ <div className="text-muted-foreground/80">+ With DALL-E, browing and analysis. Limit 40 messages / 3+ hours+ </div>+ </div>+ </DropdownMenuItem>+ <DropdownMenuSeparator />+ <DropdownMenuItem className="items-start gap-2">+ <ZapIcon className="w-4 h-4 mr-2 translate-y-1 shrink-0" />+ <div>+ <div className="font-medium">GPT-3</div>+ <div className="text-muted-foreground/80">+ Great for everyday tasks+ </div>+ </div>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ <div className="flex flex-col items-start flex-1 max-w-2xl gap-8 px-4 mx-auto">+ <div className="flex items-start gap-4">+ <Avatar className="w-6 h-6 border">+ <AvatarImage src="/placeholder-user.jpg" />+ <AvatarFallback>YO</AvatarFallback>+ </Avatar>+ <div className="grid gap-1">+ <div className="font-bold">You</div>+ <div className="prose text-muted-foreground">+ <p>+ Can you explain airplane turbulence to someone who has never+ flown before? Make it conversational and concise.+ </p>+ </div>+ </div>+ </div>+ <div className="flex items-start gap-4">+ <Avatar className="w-6 h-6 border">+ <AvatarImage src="/placeholder-user.jpg" />+ <AvatarFallback>OA</AvatarFallback>+ </Avatar>+ <div className="grid gap-1">+ <div className="font-bold">ChatGPT</div>+ <div className="prose text-muted-foreground">+ <p>+ Of course! Imagine you're in a car driving down a bumpy+ road, and the ride isn't perfectly smooth. Sometimes, you+ hit small potholes or bumps, right? Well, when you're in+ an airplane, it's kind of like that, but in the sky.+ </p>+ <p>+ Airplane turbulence happens when the plane encounters pockets+ of air that are moving differently. It's like sailing a+ boat on choppy water. These air pockets can make the plane+ feel like it's bouncing or shaking a bit. It's+ completely normal and usually not dangerous at all.+ </p>+ </div>+ <div className="flex items-center gap-2 py-2">+ <Button+ variant="ghost"+ size="icon"+ className="w-4 h-4 hover:bg-transparent text-stone-400 hover:text-stone-900"+ >+ <ClipboardIcon className="w-4 h-4" />+ <span className="sr-only">Copy</span>+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="w-4 h-4 hover:bg-transparent text-stone-400 hover:text-stone-900"+ >+ <ThumbsUpIcon className="w-4 h-4" />+ <span className="sr-only">Upvote</span>+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="w-4 h-4 hover:bg-transparent text-stone-400 hover:text-stone-900"+ >+ <ThumbsDownIcon className="w-4 h-4" />+ <span className="sr-only">Downvote</span>+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="w-4 h-4 hover:bg-transparent text-stone-400 hover:text-stone-900"+ >+ <RefreshCcwIcon className="w-4 h-4" />+ <span className="sr-only">Regenerate</span>+ </Button>+ </div>+ </div>+ </div>+ </div>+ <div className="max-w-2xl w-full sticky bottom-0 mx-auto py-2 flex flex-col gap-1.5 px-4 bg-background">+ <div className="relative">+ <Textarea+ placeholder="Message ChatGPT..."+ name="message"+ id="message"+ rows={1}+ className="min-h-[48px] rounded-2xl resize-none p-4 border border-neutral-400 shadow-sm pr-16"+ />+ <Button+ type="submit"+ size="icon"+ className="absolute w-8 h-8 top-3 right-3"+ disabled+ >+ <ArrowUpIcon className="w-4 h-4" />+ <span className="sr-only">Send</span>+ </Button>+ </div>+ <p className="text-xs font-medium text-center text-neutral-700">+ ChatGPT can make mistakes. Consider checking important information.+ </p>+ </div>+ </div>+ </div>+ );+}++function ArrowUpIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="m5 12 7-7 7 7" />+ <path d="M12 19V5" />+ </svg>+ );+}++function BotIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M12 8V4H8" />+ <rect width="16" height="12" x="4" y="8" rx="2" />+ <path d="M2 14h2" />+ <path d="M20 14h2" />+ <path d="M15 13v2" />+ <path d="M9 13v2" />+ </svg>+ );+}++function ChevronDownIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="m6 9 6 6 6-6" />+ </svg>+ );+}++function ClipboardIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <rect width="8" height="4" x="8" y="2" rx="1" ry="1" />+ <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />+ </svg>+ );+}++function PenIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" />+ </svg>+ );+}++function RefreshCcwIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />+ <path d="M3 3v5h5" />+ <path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" />+ <path d="M16 16h5v5" />+ </svg>+ );+}++function SparkleIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" />+ </svg>+ );+}++function ThumbsDownIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M17 14V2" />+ <path d="M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22h0a3.13 3.13 0 0 1-3-3.88Z" />+ </svg>+ );+}++function ThumbsUpIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M7 10v12" />+ <path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z" />+ </svg>+ );+}++function XIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M18 6 6 18" />+ <path d="m6 6 12 12" />+ </svg>+ );+}++function ZapIcon(props) {+ return (+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" />+ </svg>+ );+}diff --git a/examples/apps/screenpipe-app-tauri/components/ui/avatar.tsx b/examples/apps/screenpipe-app-tauri/components/ui/avatar.tsxnew file mode 100644index 000000000..51e507ba9--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/ui/avatar.tsx@@ -0,0 +1,50 @@+"use client"++import * as React from "react"+import * as AvatarPrimitive from "@radix-ui/react-avatar"++import { cn } from "@/lib/utils"++const Avatar = React.forwardRef<+ React.ElementRef<typeof AvatarPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>+>(({ className, ...props }, ref) => (+ <AvatarPrimitive.Root+ ref={ref}+ className={cn(+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",+ className+ )}+ {...props}+ />+))+Avatar.displayName = AvatarPrimitive.Root.displayName++const AvatarImage = React.forwardRef<+ React.ElementRef<typeof AvatarPrimitive.Image>,+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>+>(({ className, ...props }, ref) => (+ <AvatarPrimitive.Image+ ref={ref}+ className={cn("aspect-square h-full w-full", className)}+ {...props}+ />+))+AvatarImage.displayName = AvatarPrimitive.Image.displayName++const AvatarFallback = React.forwardRef<+ React.ElementRef<typeof AvatarPrimitive.Fallback>,+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>+>(({ className, ...props }, ref) => (+ <AvatarPrimitive.Fallback+ ref={ref}+ className={cn(+ "flex h-full w-full items-center justify-center rounded-full bg-muted",+ className+ )}+ {...props}+ />+))+AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName++export { Avatar, AvatarImage, AvatarFallback }diff --git a/examples/apps/screenpipe-app-tauri/components/ui/button.tsx b/examples/apps/screenpipe-app-tauri/components/ui/button.tsxnew file mode 100644index 000000000..0ba427735--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/ui/button.tsx@@ -0,0 +1,56 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground hover:bg-primary/90",+ destructive:+ "bg-destructive text-destructive-foreground hover:bg-destructive/90",+ outline:+ "border border-input bg-background hover:bg-accent hover:text-accent-foreground",+ secondary:+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",+ ghost: "hover:bg-accent hover:text-accent-foreground",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-10 px-4 py-2",+ sm: "h-9 rounded-md px-3",+ lg: "h-11 rounded-md px-8",+ icon: "h-10 w-10",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++export interface ButtonProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,+ VariantProps<typeof buttonVariants> {+ asChild?: boolean+}++const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(+ ({ className, variant, size, asChild = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "button"+ return (+ <Comp+ className={cn(buttonVariants({ variant, size, className }))}+ ref={ref}+ {...props}+ />+ )+ }+)+Button.displayName = "Button"++export { Button, buttonVariants }diff --git a/examples/apps/screenpipe-app-tauri/components/ui/dropdown-menu.tsx b/examples/apps/screenpipe-app-tauri/components/ui/dropdown-menu.tsxnew file mode 100644index 000000000..f69a0d64c--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/ui/dropdown-menu.tsx@@ -0,0 +1,200 @@+"use client"++import * as React from "react"+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"+import { Check, ChevronRight, Circle } from "lucide-react"++import { cn } from "@/lib/utils"++const DropdownMenu = DropdownMenuPrimitive.Root++const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger++const DropdownMenuGroup = DropdownMenuPrimitive.Group++const DropdownMenuPortal = DropdownMenuPrimitive.Portal++const DropdownMenuSub = DropdownMenuPrimitive.Sub++const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup++const DropdownMenuSubTrigger = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean+ }+>(({ className, inset, children, ...props }, ref) => (+ <DropdownMenuPrimitive.SubTrigger+ ref={ref}+ className={cn(+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",+ inset && "pl-8",+ className+ )}+ {...props}+ >+ {children}+ <ChevronRight className="ml-auto h-4 w-4" />+ </DropdownMenuPrimitive.SubTrigger>+))+DropdownMenuSubTrigger.displayName =+ DropdownMenuPrimitive.SubTrigger.displayName++const DropdownMenuSubContent = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>+>(({ className, ...props }, ref) => (+ <DropdownMenuPrimitive.SubContent+ ref={ref}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+DropdownMenuSubContent.displayName =+ DropdownMenuPrimitive.SubContent.displayName++const DropdownMenuContent = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>+>(({ className, sideOffset = 4, ...props }, ref) => (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ ref={ref}+ sideOffset={sideOffset}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+))+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName++const DropdownMenuItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <DropdownMenuPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName++const DropdownMenuCheckboxItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>+>(({ className, children, checked, ...props }, ref) => (+ <DropdownMenuPrimitive.CheckboxItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ checked={checked}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <Check className="h-4 w-4" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+))+DropdownMenuCheckboxItem.displayName =+ DropdownMenuPrimitive.CheckboxItem.displayName++const DropdownMenuRadioItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>+>(({ className, children, ...props }, ref) => (+ <DropdownMenuPrimitive.RadioItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <Circle className="h-2 w-2 fill-current" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+))+DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName++const DropdownMenuLabel = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Label>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <DropdownMenuPrimitive.Label+ ref={ref}+ className={cn(+ "px-2 py-1.5 text-sm font-semibold",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName++const DropdownMenuSeparator = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <DropdownMenuPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 my-1 h-px bg-muted", className)}+ {...props}+ />+))+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName++const DropdownMenuShortcut = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLSpanElement>) => {+ return (+ <span+ className={cn("ml-auto text-xs tracking-widest opacity-60", className)}+ {...props}+ />+ )+}+DropdownMenuShortcut.displayName = "DropdownMenuShortcut"++export {+ DropdownMenu,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuCheckboxItem,+ DropdownMenuRadioItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuGroup,+ DropdownMenuPortal,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuRadioGroup,+}diff --git a/examples/apps/screenpipe-app-tauri/components/ui/textarea.tsx b/examples/apps/screenpipe-app-tauri/components/ui/textarea.tsxnew file mode 100644index 000000000..9f9a6dc56--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/ui/textarea.tsx@@ -0,0 +1,24 @@+import * as React from "react"++import { cn } from "@/lib/utils"++export interface TextareaProps+ extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}++const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(+ ({ className, ...props }, ref) => {+ return (+ <textarea+ className={cn(+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ ref={ref}+ {...props}+ />+ )+ }+)+Textarea.displayName = "Textarea"++export { Textarea }diff --git a/examples/apps/screenpipe-app-tauri/lib/utils.ts b/examples/apps/screenpipe-app-tauri/lib/utils.tsnew file mode 100644index 000000000..d084ccade--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/lib/utils.ts@@ -0,0 +1,6 @@+import { type ClassValue, clsx } from "clsx"+import { twMerge } from "tailwind-merge"++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs))+}diff --git a/examples/apps/screenpipe-app-tauri/package.json b/examples/apps/screenpipe-app-tauri/package.jsonindex 062b86058..434ccbbf7 100644--- a/examples/apps/screenpipe-app-tauri/package.json+++ b/examples/apps/screenpipe-app-tauri/package.json@@ -7,17 +7,27 @@"start": "next start","lint": "next lint","build": "next build",- "tauri": "tauri"+ "tauri": "tauri",+ "clean": "rm -rf out && cargo clean"},"dependencies": {+ "@radix-ui/react-avatar": "^1.1.0",+ "@radix-ui/react-dropdown-menu": "^2.1.1",+ "@radix-ui/react-icons": "^1.3.0",+ "@radix-ui/react-slot": "^1.1.0","@tauri-apps/api": "^2.0.0-beta.9","@tauri-apps/plugin-cli": "2.0.0-beta.7","@tauri-apps/plugin-shell": "2.0.0-beta.8","@tauri-apps/plugin-store": "2.0.0-beta.7","@tauri-apps/plugin-updater": "2.0.0-beta.7",+ "class-variance-authority": "^0.7.0",+ "clsx": "^2.1.1",+ "lucide-react": "^0.414.0","next": "14.2.4","react": "^18",- "react-dom": "^18"+ "react-dom": "^18",+ "tailwind-merge": "^2.4.0",+ "tailwindcss-animate": "^1.0.7"},"devDependencies": {"@tauri-apps/cli": "2.0.0-beta.22",diff --git a/examples/apps/screenpipe-app-tauri/public/placeholder-user.jpg b/examples/apps/screenpipe-app-tauri/public/placeholder-user.jpgnew file mode 100644index 000000000..6fa7543d3Binary files /dev/null and b/examples/apps/screenpipe-app-tauri/public/placeholder-user.jpg differdiff --git a/examples/apps/screenpipe-app-tauri/src-tauri/Info.plist b/examples/apps/screenpipe-app-tauri/src-tauri/Info.plistindex bf11072b1..43dde8279 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/Info.plist+++ b/examples/apps/screenpipe-app-tauri/src-tauri/Info.plist@@ -2,13 +2,23 @@<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>+ <key>CFBundleName</key>+ <string>ScreenPipe</string>+ <key>CFBundleIdentifier</key>+ <string>com.screenpi.pe</string>+ <key>CFBundleVersion</key>+ <string>0.1.0</string>+ <key>CFBundleShortVersionString</key>+ <string>0.1</string><key>NSMicrophoneUsageDescription</key><string>This app requires microphone access to record audio.</string><key>NSScreenCaptureUsageDescription</key><string>This app requires screen capture access to record the screen.</string><key>CGRequestScreenCaptureAccess</key><string>This app requires screen capture access to record the screen.</string>- <!-- <key>NSSystemExtensionUsageDescription</key>- <string>This app requires system extension access to capture audio output.</string> -->+ <key>NSCameraUsageDescription</key>+ <string>This app requires camera access to capture video.</string>+ <key>NSSystemExtensionUsageDescription</key>+ <string>This app requires system extension access to capture audio output.</string></dict></plist>\ No newline at end of filediff --git a/examples/apps/screenpipe-app-tauri/src-tauri/entitlements.plist b/examples/apps/screenpipe-app-tauri/src-tauri/entitlements.plistindex d6b7409ae..f746bcf12 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/entitlements.plist+++ b/examples/apps/screenpipe-app-tauri/src-tauri/entitlements.plist@@ -8,6 +8,8 @@<true/><key>com.apple.security.files.user-selected.read-write</key><true/>+ <!-- <key>com.apple.developer.persistent-content-capture</key>+ <true/> --><!-- <key>com.apple.security.device.audio-input</key><true/><key>com.apple.security.temporary-exception.audio-unit-host</key>diff --git a/examples/apps/screenpipe-app-tauri/tailwind.config.ts b/examples/apps/screenpipe-app-tauri/tailwind.config.tsindex 7e4bd91a0..976594786 100644--- a/examples/apps/screenpipe-app-tauri/tailwind.config.ts+++ b/examples/apps/screenpipe-app-tauri/tailwind.config.ts@@ -14,7 +14,65 @@ const config: Config = {"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",},},- },- plugins: [],+ colors: {+ "border": "hsl(var(--border))",+ "input": "hsl(var(--input))",+ "ring": "hsl(var(--ring))",+ "background": "hsl(var(--background))",+ "foreground": "hsl(var(--foreground))",+ "primary": {+ "DEFAULT": "hsl(var(--primary))",+ "foreground": "hsl(var(--primary-foreground))"+ },+ "secondary": {+ "DEFAULT": "hsl(var(--secondary))",+ "foreground": "hsl(var(--secondary-foreground))"+ },+ "destructive": {+ "DEFAULT": "hsl(var(--destructive))",+ "foreground": "hsl(var(--destructive-foreground))"+ },+ "muted": {+ "DEFAULT": "hsl(var(--muted))",+ "foreground": "hsl(var(--muted-foreground))"+ },+ "accent": {+ "DEFAULT": "hsl(var(--accent))",+ "foreground": "hsl(var(--accent-foreground))"+ },+ "popover": {+ "DEFAULT": "hsl(var(--popover))",+ "foreground": "hsl(var(--popover-foreground))"+ },+ "card": {+ "DEFAULT": "hsl(var(--card))",+ "foreground": "hsl(var(--card-foreground))"+ }+ },+ borderRadius: {+ "lg": "var(--radius)",+ "md": "calc(var(--radius) - 2px)",+ "sm": "calc(var(--radius) - 4px)"+ },+ keyframes: {+ "accordion-down": {+ "from": {+ "height": "0"+ },+ "to": {+ "height": "var(--radix-accordion-content-height)"+ }+ },+ "accordion-up": {+ "from": {+ "height": "var(--radix-accordion-content-height)"+ },+ "to": {+ "height": "0"+ }+ }+ }+},+ plugins: [require("tailwindcss-animate")],};export default config;