mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
chore: cleanup dead props, deps, dirs, and stale comments
- Remove empty dirs: modules/mana/, modules/subscription/, and 7 empty route dirs (spiral, profile, themes, help, apps, mana, credits) - Remove @mana/subscriptions from web app dependencies (never imported) - PillNavigation: drop settingsHref, manaHref, allAppsHref/allAppsLabel props + their link-builder blocks (none are passed anymore; all system pages route via /?app=<id> deep-links now) - Update layout comment to reflect current architecture Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d40a61119e
commit
299cf9cf72
3 changed files with 11 additions and 48 deletions
|
|
@ -287,18 +287,10 @@
|
|||
showAppSwitcher?: boolean;
|
||||
/** User email for user dropdown */
|
||||
userEmail?: string;
|
||||
/** Settings page href */
|
||||
settingsHref?: string;
|
||||
/** Mana/subscription page href */
|
||||
manaHref?: string;
|
||||
/** Profile page href */
|
||||
profileHref?: string;
|
||||
/** Login page href (shown when not logged in) */
|
||||
loginHref?: string;
|
||||
/** All Apps page href */
|
||||
allAppsHref?: string;
|
||||
/** All Apps label (default: "Alle Apps") */
|
||||
allAppsLabel?: string;
|
||||
// A11y Settings
|
||||
/** A11y contrast level */
|
||||
a11yContrast?: 'normal' | 'high';
|
||||
|
|
@ -379,12 +371,8 @@
|
|||
appItems = [],
|
||||
showAppSwitcher = false,
|
||||
userEmail,
|
||||
settingsHref,
|
||||
manaHref,
|
||||
profileHref,
|
||||
loginHref,
|
||||
allAppsHref,
|
||||
allAppsLabel = 'Alle Apps',
|
||||
a11yContrast = 'normal',
|
||||
onA11yContrastChange,
|
||||
a11yReduceMotion = false,
|
||||
|
|
@ -476,24 +464,6 @@
|
|||
active: currentPath === profileHref,
|
||||
});
|
||||
}
|
||||
if (settingsHref) {
|
||||
links.push({
|
||||
id: 'settings',
|
||||
label: 'Einstellungen',
|
||||
icon: 'settings',
|
||||
href: settingsHref,
|
||||
active: currentPath === settingsHref,
|
||||
});
|
||||
}
|
||||
if (userEmail && manaHref) {
|
||||
links.push({
|
||||
id: 'mana',
|
||||
label: 'Mana',
|
||||
icon: 'sparkle',
|
||||
href: manaHref,
|
||||
active: currentPath === manaHref,
|
||||
});
|
||||
}
|
||||
if (spiralHref) {
|
||||
links.push({
|
||||
id: 'spiral',
|
||||
|
|
@ -568,16 +538,6 @@
|
|||
},
|
||||
});
|
||||
}
|
||||
if (settingsHref) {
|
||||
out.push({
|
||||
id: 'settings',
|
||||
label: 'Einstellungen',
|
||||
icon: 'settings',
|
||||
onClick: () => {
|
||||
window.location.href = settingsHref;
|
||||
},
|
||||
});
|
||||
}
|
||||
if (onThemeModeChange) {
|
||||
out.push(
|
||||
{
|
||||
|
|
@ -655,8 +615,6 @@
|
|||
isOpen={appDrawerOpen}
|
||||
onToggle={(open) => (appDrawerOpen = open)}
|
||||
{onOpenInPanel}
|
||||
{allAppsHref}
|
||||
{allAppsLabel}
|
||||
triggerLabel={appName}
|
||||
/>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue