docs: Update all documentation for standalone mode and settings structure

This commit is contained in:
dwindown
2025-11-05 11:28:09 +07:00
parent 3e7d75c98c
commit d52fc3bb24
6 changed files with 271 additions and 33 deletions

View File

@@ -103,25 +103,30 @@ function getStaticFallbackTree(): MainNode[] {
path: '/settings',
icon: 'settings',
// Only show submenu in standalone mode
children: (window as any).WNW_CONFIG?.standaloneMode ? [
// WooNooW Settings
{ label: 'WooNooW', mode: 'spa', path: '/settings' },
get children() {
const isStandalone = (window as any).WNW_CONFIG?.standaloneMode;
if (!isStandalone) return [];
// WooCommerce Settings (Most Used First)
{ label: 'General', mode: 'spa', path: '/settings/general' },
{ label: 'Payments', mode: 'spa', path: '/settings/payments' },
{ label: 'Shipping', mode: 'spa', path: '/settings/shipping' },
{ label: 'Products', mode: 'spa', path: '/settings/products' },
{ label: 'Tax', mode: 'spa', path: '/settings/tax' },
{ label: 'Accounts & Privacy', mode: 'spa', path: '/settings/accounts' },
{ label: 'Emails', mode: 'spa', path: '/settings/emails' },
// Less Common (Bridge to WP Admin for now)
{ label: 'Advanced', mode: 'bridge', href: `${admin}?page=wc-settings&tab=advanced` },
{ label: 'Integration', mode: 'bridge', href: `${admin}?page=wc-settings&tab=integration` },
{ label: 'Status', mode: 'bridge', href: `${admin}?page=wc-status` },
{ label: 'Extensions', mode: 'bridge', href: `${admin}?page=wc-addons` },
] : [],
return [
// WooNooW Settings
{ label: 'WooNooW', mode: 'spa' as const, path: '/settings' },
// WooCommerce Settings (Most Used First)
{ label: 'General', mode: 'spa' as const, path: '/settings/general' },
{ label: 'Payments', mode: 'spa' as const, path: '/settings/payments' },
{ label: 'Shipping', mode: 'spa' as const, path: '/settings/shipping' },
{ label: 'Products', mode: 'spa' as const, path: '/settings/products' },
{ label: 'Tax', mode: 'spa' as const, path: '/settings/tax' },
{ label: 'Accounts & Privacy', mode: 'spa' as const, path: '/settings/accounts' },
{ label: 'Emails', mode: 'spa' as const, path: '/settings/emails' },
// Less Common (Bridge to WP Admin for now)
{ label: 'Advanced', mode: 'bridge' as const, href: `${admin}?page=wc-settings&tab=advanced` },
{ label: 'Integration', mode: 'bridge' as const, href: `${admin}?page=wc-settings&tab=integration` },
{ label: 'Status', mode: 'bridge' as const, href: `${admin}?page=wc-status` },
{ label: 'Extensions', mode: 'bridge' as const, href: `${admin}?page=wc-addons` },
];
},
},
];
}