feat: update desktop workflows and app center

This commit is contained in:
inman
2026-05-13 19:14:56 +08:00
parent 20b5aff4ad
commit 7c8781a6e3
160 changed files with 55492 additions and 1423 deletions

View File

@@ -3,6 +3,7 @@ import {
ArrowUpRight,
Clapperboard,
LayoutGrid,
ShoppingBag,
} from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
@@ -18,6 +19,7 @@ import type { AppCenterItem } from '@/types/app-center';
const APP_ICONS = {
Clapperboard,
LayoutGrid,
ShoppingBag,
};
function getAppIcon(icon: string) {
@@ -56,7 +58,7 @@ export function AppCenter() {
void window.electron.openExternal(item.url);
return;
}
if (item.type === 'native' && item.route) {
if ((item.type === 'native' || item.type === 'webview') && item.route) {
navigate(item.route);
return;
}