diff --git a/admin/src/components/shell/AppShell.vue b/admin/src/components/shell/AppShell.vue index 8e848ad..91b0f85 100644 --- a/admin/src/components/shell/AppShell.vue +++ b/admin/src/components/shell/AppShell.vue @@ -6,8 +6,10 @@ import SectionPanel from './SectionPanel.vue' import Breadcrumbs from './Breadcrumbs.vue' import UserMenu from './UserMenu.vue' import Toast from '../ui/Toast.vue' +import { ExternalLink } from '@lucide/vue' import { activeEntry } from '../../state/useNavigation' import { useSidebar } from '../../state/useSidebar' +import { t } from '../../app/i18n' // Navigation shell (design: Navigation shell and Top header; D-06, D-10): // the plugin rail, the active plugin's section panel (hidden when the @@ -20,6 +22,10 @@ const { collapsed, watchViewport } = useSidebar() const stopViewport = watchViewport() onBeforeUnmount(stopViewport) +// "View site" (WinterCMS parity) opens the public site in a new tab: the +// admin page's own origin, without the admin path prefix. +const siteURL = `${window.location.origin}/` + const active = computed(() => activeEntry(String(route.params.vendor ?? ''), String(route.params.plugin ?? ''))) @@ -30,7 +36,20 @@ const active = computed(() => activeEntry(String(route.params.vendor ?? ''), Str