diff --git a/extensions/download-twitter/.eslintrc.cjs b/extensions/download-twitter-video/.eslintrc.cjs similarity index 100% rename from extensions/download-twitter/.eslintrc.cjs rename to extensions/download-twitter-video/.eslintrc.cjs diff --git a/extensions/download-twitter/.gitignore b/extensions/download-twitter-video/.gitignore similarity index 100% rename from extensions/download-twitter/.gitignore rename to extensions/download-twitter-video/.gitignore diff --git a/extensions/download-twitter/README.md b/extensions/download-twitter-video/README.md similarity index 100% rename from extensions/download-twitter/README.md rename to extensions/download-twitter-video/README.md diff --git a/extensions/download-twitter/components.json b/extensions/download-twitter-video/components.json similarity index 100% rename from extensions/download-twitter/components.json rename to extensions/download-twitter-video/components.json diff --git a/extensions/download-twitter/index.html b/extensions/download-twitter-video/index.html similarity index 100% rename from extensions/download-twitter/index.html rename to extensions/download-twitter-video/index.html diff --git a/extensions/download-twitter/jarvis.ext.json b/extensions/download-twitter-video/jarvis.ext.json similarity index 61% rename from extensions/download-twitter/jarvis.ext.json rename to extensions/download-twitter-video/jarvis.ext.json index f5e77ea..a05feb3 100644 --- a/extensions/download-twitter/jarvis.ext.json +++ b/extensions/download-twitter-video/jarvis.ext.json @@ -1,8 +1,8 @@ { - "name": "download-twitter", + "name": "download-twitter-video", "version": "0.0.1", "description": "Download YouTube Video Extension", - "identifier": "tech.huakun.jarvis-twitter-download-ext", + "identifier": "tech.huakun.jarvis-twitter-download-video-ext", "demoImages": [], "icon": { "type": "iconify", @@ -11,8 +11,13 @@ "uiCmds": [ { "main": "dist", - "name": "Download Twitter", + "name": "Download Twitter Video", "devMain": "http://localhost:5173", + "window": { + "titleBarStyle": "overlay", + "width": 700, + "height": 300 + }, "cmds": [ { "type": "text", diff --git a/extensions/download-twitter/package.json b/extensions/download-twitter-video/package.json similarity index 100% rename from extensions/download-twitter/package.json rename to extensions/download-twitter-video/package.json diff --git a/extensions/download-twitter/postcss.config.js b/extensions/download-twitter-video/postcss.config.js similarity index 100% rename from extensions/download-twitter/postcss.config.js rename to extensions/download-twitter-video/postcss.config.js diff --git a/extensions/download-twitter/public/vite.svg b/extensions/download-twitter-video/public/vite.svg similarity index 100% rename from extensions/download-twitter/public/vite.svg rename to extensions/download-twitter-video/public/vite.svg diff --git a/extensions/download-twitter/src/App.css b/extensions/download-twitter-video/src/App.css similarity index 100% rename from extensions/download-twitter/src/App.css rename to extensions/download-twitter-video/src/App.css diff --git a/extensions/download-twitter/src/App.tsx b/extensions/download-twitter-video/src/App.tsx similarity index 79% rename from extensions/download-twitter/src/App.tsx rename to extensions/download-twitter-video/src/App.tsx index 10b33f0..8c7f604 100644 --- a/extensions/download-twitter/src/App.tsx +++ b/extensions/download-twitter-video/src/App.tsx @@ -7,8 +7,9 @@ function App() { return ( -
- +
+
+ Download Video diff --git a/extensions/download-twitter/src/assets/react.svg b/extensions/download-twitter-video/src/assets/react.svg similarity index 100% rename from extensions/download-twitter/src/assets/react.svg rename to extensions/download-twitter-video/src/assets/react.svg diff --git a/extensions/download-twitter/src/components/TwitterIcon.tsx b/extensions/download-twitter-video/src/components/TwitterIcon.tsx similarity index 100% rename from extensions/download-twitter/src/components/TwitterIcon.tsx rename to extensions/download-twitter-video/src/components/TwitterIcon.tsx diff --git a/extensions/download-twitter/src/components/download-form.tsx b/extensions/download-twitter-video/src/components/download-form.tsx similarity index 100% rename from extensions/download-twitter/src/components/download-form.tsx rename to extensions/download-twitter-video/src/components/download-form.tsx diff --git a/extensions/download-twitter/src/components/theme-provider.tsx b/extensions/download-twitter-video/src/components/theme-provider.tsx similarity index 100% rename from extensions/download-twitter/src/components/theme-provider.tsx rename to extensions/download-twitter-video/src/components/theme-provider.tsx diff --git a/extensions/download-twitter/src/components/ui/button.tsx b/extensions/download-twitter-video/src/components/ui/button.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/button.tsx rename to extensions/download-twitter-video/src/components/ui/button.tsx diff --git a/extensions/download-twitter/src/components/ui/dropdown-menu.tsx b/extensions/download-twitter-video/src/components/ui/dropdown-menu.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/dropdown-menu.tsx rename to extensions/download-twitter-video/src/components/ui/dropdown-menu.tsx diff --git a/extensions/download-twitter/src/components/ui/form.tsx b/extensions/download-twitter-video/src/components/ui/form.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/form.tsx rename to extensions/download-twitter-video/src/components/ui/form.tsx diff --git a/extensions/download-twitter/src/components/ui/input.tsx b/extensions/download-twitter-video/src/components/ui/input.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/input.tsx rename to extensions/download-twitter-video/src/components/ui/input.tsx diff --git a/extensions/download-twitter/src/components/ui/label.tsx b/extensions/download-twitter-video/src/components/ui/label.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/label.tsx rename to extensions/download-twitter-video/src/components/ui/label.tsx diff --git a/extensions/download-twitter/src/components/ui/mode-toggle.tsx b/extensions/download-twitter-video/src/components/ui/mode-toggle.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/mode-toggle.tsx rename to extensions/download-twitter-video/src/components/ui/mode-toggle.tsx diff --git a/extensions/download-twitter/src/components/ui/toast.tsx b/extensions/download-twitter-video/src/components/ui/toast.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/toast.tsx rename to extensions/download-twitter-video/src/components/ui/toast.tsx diff --git a/extensions/download-twitter/src/components/ui/toaster.tsx b/extensions/download-twitter-video/src/components/ui/toaster.tsx similarity index 100% rename from extensions/download-twitter/src/components/ui/toaster.tsx rename to extensions/download-twitter-video/src/components/ui/toaster.tsx diff --git a/extensions/download-twitter/src/components/ui/use-toast.ts b/extensions/download-twitter-video/src/components/ui/use-toast.ts similarity index 100% rename from extensions/download-twitter/src/components/ui/use-toast.ts rename to extensions/download-twitter-video/src/components/ui/use-toast.ts diff --git a/extensions/download-twitter-video/src/index.css b/extensions/download-twitter-video/src/index.css new file mode 100644 index 0000000..8a04b2b --- /dev/null +++ b/extensions/download-twitter-video/src/index.css @@ -0,0 +1,78 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + :root { + --background: 0 0% 100%; + --foreground: 240 10% 3.9%; + + --muted: 240 4.8% 95.9%; + --muted-foreground: 240 3.8% 46.1%; + + --popover: 0 0% 100%; + --popover-foreground: 240 10% 3.9%; + + --card: 0 0% 100%; + --card-foreground: 240 10% 3.9%; + + --border: 240 5.9% 90%; + --input: 240 5.9% 90%; + + --primary: 240 5.9% 10%; + --primary-foreground: 0 0% 98%; + + --secondary: 240 4.8% 95.9%; + --secondary-foreground: 240 5.9% 10%; + + --accent: 240 4.8% 95.9%; + --accent-foreground: 240 5.9% 10%; + + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 0 0% 98%; + + --ring: 240 10% 3.9%; + + --radius: 0.5rem; + } + + .dark { + --background: 240 10% 3.9%; + --foreground: 0 0% 98%; + + --muted: 240 3.7% 15.9%; + --muted-foreground: 240 5% 64.9%; + + --popover: 240 10% 3.9%; + --popover-foreground: 0 0% 98%; + + --card: 240 10% 3.9%; + --card-foreground: 0 0% 98%; + + --border: 240 3.7% 15.9%; + --input: 240 3.7% 15.9%; + + --primary: 0 0% 98%; + --primary-foreground: 240 5.9% 10%; + + --secondary: 240 3.7% 15.9%; + --secondary-foreground: 0 0% 98%; + + --accent: 240 3.7% 15.9%; + --accent-foreground: 0 0% 98%; + + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 0 0% 98%; + + --ring: 240 4.9% 83.9%; + } +} + +@layer base { + * { + @apply border-border; + } + body { + @apply bg-background text-foreground; + } +} \ No newline at end of file diff --git a/extensions/download-twitter/src/lib/utils.ts b/extensions/download-twitter-video/src/lib/utils.ts similarity index 100% rename from extensions/download-twitter/src/lib/utils.ts rename to extensions/download-twitter-video/src/lib/utils.ts diff --git a/extensions/download-twitter/src/main.tsx b/extensions/download-twitter-video/src/main.tsx similarity index 100% rename from extensions/download-twitter/src/main.tsx rename to extensions/download-twitter-video/src/main.tsx diff --git a/extensions/download-twitter/src/vite-env.d.ts b/extensions/download-twitter-video/src/vite-env.d.ts similarity index 100% rename from extensions/download-twitter/src/vite-env.d.ts rename to extensions/download-twitter-video/src/vite-env.d.ts diff --git a/extensions/download-twitter/tailwind.config.js b/extensions/download-twitter-video/tailwind.config.js similarity index 100% rename from extensions/download-twitter/tailwind.config.js rename to extensions/download-twitter-video/tailwind.config.js diff --git a/extensions/download-twitter/tsconfig.json b/extensions/download-twitter-video/tsconfig.json similarity index 100% rename from extensions/download-twitter/tsconfig.json rename to extensions/download-twitter-video/tsconfig.json diff --git a/extensions/download-twitter/tsconfig.node.json b/extensions/download-twitter-video/tsconfig.node.json similarity index 100% rename from extensions/download-twitter/tsconfig.node.json rename to extensions/download-twitter-video/tsconfig.node.json diff --git a/extensions/download-twitter/vite.config.ts b/extensions/download-twitter-video/vite.config.ts similarity index 100% rename from extensions/download-twitter/vite.config.ts rename to extensions/download-twitter-video/vite.config.ts diff --git a/extensions/download-twitter/src/index.css b/extensions/download-twitter/src/index.css deleted file mode 100644 index 0dc7668..0000000 --- a/extensions/download-twitter/src/index.css +++ /dev/null @@ -1,83 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -@layer base { - :root { - --background: 0 0% 100%; - --foreground: 222.2 84% 4.9%; - - --card: 0 0% 100%; - --card-foreground: 222.2 84% 4.9%; - - --popover: 0 0% 100%; - --popover-foreground: 222.2 84% 4.9%; - - --primary: 222.2 47.4% 11.2%; - --primary-foreground: 210 40% 98%; - - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; - - --muted: 210 40% 96.1%; - --muted-foreground: 215.4 16.3% 46.9%; - - --accent: 210 40% 96.1%; - --accent-foreground: 222.2 47.4% 11.2%; - - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 210 40% 98%; - - --success: 112 62.6% 51.8%; - --success-foreground: 210 40% 98%; - - --border: 214.3 31.8% 91.4%; - --input: 214.3 31.8% 91.4%; - --ring: 222.2 84% 4.9%; - - --radius: 0.5rem; - } - - .dark { - --background: 222.2 84% 4.9%; - --foreground: 210 40% 98%; - - --card: 222.2 84% 4.9%; - --card-foreground: 210 40% 98%; - - --popover: 222.2 84% 4.9%; - --popover-foreground: 210 40% 98%; - - --primary: 210 40% 98%; - --primary-foreground: 222.2 47.4% 11.2%; - - --secondary: 217.2 32.6% 17.5%; - --secondary-foreground: 210 40% 98%; - - --muted: 217.2 32.6% 17.5%; - --muted-foreground: 215 20.2% 65.1%; - - --accent: 217.2 32.6% 17.5%; - --accent-foreground: 210 40% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 40% 98%; - - --success: 110 62.6% 40.8%; - --success-foreground: 210 40% 98%; - - --border: 217.2 32.6% 17.5%; - --input: 217.2 32.6% 17.5%; - --ring: 212.7 26.8% 83.9%; - } -} - -@layer base { - * { - @apply border-border; - } - - body { - @apply bg-background text-foreground; - } -}