Spaces:
Sleeping
Sleeping
Added elevnlabs
Browse files
app/components/ContextMenu.tsx
CHANGED
|
@@ -3,12 +3,8 @@
|
|
| 3 |
import React from 'react'
|
| 4 |
import { motion, AnimatePresence } from 'framer-motion'
|
| 5 |
import {
|
| 6 |
-
FolderPlus,
|
| 7 |
Info,
|
| 8 |
-
Image
|
| 9 |
-
Broom,
|
| 10 |
-
ArrowsClockwise,
|
| 11 |
-
Desktop
|
| 12 |
} from '@phosphor-icons/react'
|
| 13 |
|
| 14 |
interface ContextMenuProps {
|
|
@@ -20,14 +16,8 @@ interface ContextMenuProps {
|
|
| 20 |
|
| 21 |
export function ContextMenu({ isOpen, position, onClose, onAction }: ContextMenuProps) {
|
| 22 |
const menuItems = [
|
| 23 |
-
{ id: '
|
| 24 |
{ id: 'get-info', label: 'Get Info', icon: Info },
|
| 25 |
-
{ type: 'separator' },
|
| 26 |
-
{ id: 'change-wallpaper', label: 'Change Wallpaper', icon: Image },
|
| 27 |
-
{ id: 'clean-up', label: 'Clean Up', icon: Broom },
|
| 28 |
-
{ id: 'refresh', label: 'Refresh', icon: ArrowsClockwise },
|
| 29 |
-
{ type: 'separator' },
|
| 30 |
-
{ id: 'display-settings', label: 'Display Settings', icon: Desktop },
|
| 31 |
]
|
| 32 |
|
| 33 |
const handleAction = (actionId: string) => {
|
|
|
|
| 3 |
import React from 'react'
|
| 4 |
import { motion, AnimatePresence } from 'framer-motion'
|
| 5 |
import {
|
|
|
|
| 6 |
Info,
|
| 7 |
+
Image
|
|
|
|
|
|
|
|
|
|
| 8 |
} from '@phosphor-icons/react'
|
| 9 |
|
| 10 |
interface ContextMenuProps {
|
|
|
|
| 16 |
|
| 17 |
export function ContextMenu({ isOpen, position, onClose, onAction }: ContextMenuProps) {
|
| 18 |
const menuItems = [
|
| 19 |
+
{ id: 'change-wallpaper', label: 'Change Background', icon: Image },
|
| 20 |
{ id: 'get-info', label: 'Get Info', icon: Info },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
]
|
| 22 |
|
| 23 |
const handleAction = (actionId: string) => {
|
app/components/Desktop.tsx
CHANGED
|
@@ -304,8 +304,8 @@ export function Desktop() {
|
|
| 304 |
case 'change-wallpaper':
|
| 305 |
setBackgroundSelectorOpen(true)
|
| 306 |
break
|
| 307 |
-
case '
|
| 308 |
-
|
| 309 |
break
|
| 310 |
case 'refresh':
|
| 311 |
window.location.reload()
|
|
|
|
| 304 |
case 'change-wallpaper':
|
| 305 |
setBackgroundSelectorOpen(true)
|
| 306 |
break
|
| 307 |
+
case 'get-info':
|
| 308 |
+
setAboutModalOpen(true)
|
| 309 |
break
|
| 310 |
case 'refresh':
|
| 311 |
window.location.reload()
|
app/components/FileManager.tsx
CHANGED
|
@@ -289,6 +289,8 @@ export function FileManager({ currentPath, onNavigate, onClose, onOpenFlutterApp
|
|
| 289 |
case 'docx': return <FileDoc size={48} weight="fill" className="text-blue-500" />
|
| 290 |
case 'txt':
|
| 291 |
case 'md': return <FileText size={48} weight="fill" className="text-gray-600" />
|
|
|
|
|
|
|
| 292 |
case 'jpg':
|
| 293 |
case 'jpeg':
|
| 294 |
case 'png':
|
|
|
|
| 289 |
case 'docx': return <FileDoc size={48} weight="fill" className="text-blue-500" />
|
| 290 |
case 'txt':
|
| 291 |
case 'md': return <FileText size={48} weight="fill" className="text-gray-600" />
|
| 292 |
+
case 'dart': return <Code size={48} weight="fill" className="text-blue-400" />
|
| 293 |
+
case 'tex': return <Function size={48} weight="fill" className="text-green-600" />
|
| 294 |
case 'jpg':
|
| 295 |
case 'jpeg':
|
| 296 |
case 'png':
|