feat: first cut at menu editor

This commit is contained in:
2026-02-21 19:51:34 +01:00
parent f371dbd2b2
commit 76c3a8368e
37 changed files with 2148 additions and 4 deletions

View File

@@ -64,6 +64,10 @@ const getTabTitle = (
return importDefTitles.get(tab.id) || tr('activity.import');
}
if (tab.type === 'menu-editor') {
return tr('menuEditor.tabTitle');
}
if (tab.type === 'metadata-diff') {
return tr('app.metadataDiff');
}
@@ -129,6 +133,12 @@ const getTabIcon = (tab: Tab): React.ReactNode => {
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</svg>
);
case 'menu-editor':
return (
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
<path d="M2 3h12v1H2V3zm0 3h12v1H2V6zm0 3h8v1H2V9zm0 3h8v1H2v-1zm10-2 2 2-2 2v-1H9v-2h3V10z"/>
</svg>
);
case 'metadata-diff':
return (
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">