@altafusion/fugue-app-shell 0.0.0-stage → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +153 -0
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/app/app.config.ts +15 -0
- package/app/components/ShellAsidePlaceholder.vue +16 -0
- package/app/components/ShellBrandLogo.vue +26 -0
- package/app/components/ShellLangToggle.vue +129 -0
- package/app/components/ShellPageHeader.vue +25 -0
- package/app/components/ShellSiteHeader.vue +63 -0
- package/app/composables/useAppNav.ts +67 -0
- package/app/composables/useBrandTheme.ts +37 -0
- package/app/composables/usePageChrome.ts +40 -0
- package/app/composables/useShellChrome.ts +122 -0
- package/app/composables/useShellFooterRight.ts +13 -0
- package/app/composables/useShellHeaderActions.ts +18 -0
- package/app/composables/useShellHeaderRight.ts +13 -0
- package/app/composables/useShellI18n.ts +31 -0
- package/app/layouts/default.vue +80 -0
- package/app/layouts/fullscreen.vue +20 -0
- package/app/layouts/minimal.vue +11 -0
- package/app/layouts/product.vue +23 -0
- package/app/plugins/brand-theme.ts +29 -0
- package/app/plugins/shell-brand-head.ts +30 -0
- package/assets/css/brand-variants.css +50 -0
- package/assets/css/sections/landing-header.css +249 -0
- package/assets/css/sections/shell-chrome.css +34 -0
- package/assets/css/shell-sections.css +2 -0
- package/components/BaseButton.vue +106 -0
- package/eslint.config.mjs +4 -0
- package/lib/fugue-content-public-config.ts +39 -0
- package/lib/injection-keys.ts +9 -0
- package/lib/locale-switch-path.ts +20 -0
- package/lib/nuxt-ui-icons.ts +14 -0
- package/nuxt.config.ts +47 -0
- package/package.json +58 -3
- package/themes/tailwind-shell.css +28 -0
- package/types/app-brand.ts +42 -0
- package/types/nuxt-shell.d.ts +38 -0
- package/utils/altafusionBrandTheme.ts +15 -0
- package/utils/formatDate.ts +13 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ModuleOptions as NuxtFontsOptions } from '@nuxt/fonts'
|
|
2
|
+
import type { ShellAppConfig } from './app-brand'
|
|
3
|
+
|
|
4
|
+
declare module '@nuxt/schema' {
|
|
5
|
+
interface NuxtConfig {
|
|
6
|
+
fonts?: NuxtFontsOptions | false
|
|
7
|
+
}
|
|
8
|
+
interface NuxtConfigInput {
|
|
9
|
+
fonts?: NuxtFontsOptions | false
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare module '#app' {
|
|
14
|
+
interface PageMeta {
|
|
15
|
+
/** Product layout: primary nav highlight and optional aside panels */
|
|
16
|
+
nav?: {
|
|
17
|
+
primary?: string
|
|
18
|
+
/** Aside slot ids enabled for this route (filter panels, etc.) */
|
|
19
|
+
aside?: string[]
|
|
20
|
+
}
|
|
21
|
+
/** Page title for chrome composables and headers */
|
|
22
|
+
title?: string
|
|
23
|
+
/** Single breadcrumb label from route meta (v0 stub) */
|
|
24
|
+
breadcrumb?: string
|
|
25
|
+
/** Shell layout chrome overrides (`default`, `fullscreen`, `minimal`) */
|
|
26
|
+
shell?: {
|
|
27
|
+
header?: boolean
|
|
28
|
+
footer?: boolean
|
|
29
|
+
mainPadding?: boolean
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface AppConfig extends ShellAppConfig {}
|
|
34
|
+
|
|
35
|
+
interface AppConfigInput extends ShellAppConfig {}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BrandThemeConfig } from '@altafusion/fugue-ui/utils/brandTheme'
|
|
2
|
+
|
|
3
|
+
export const ALTAFUSION_BRANDS = [
|
|
4
|
+
{ id: 'default' as const, label: 'Default', primary: 'blue' as const },
|
|
5
|
+
{ id: 'violet' as const, label: 'Violet', primary: 'violet' as const },
|
|
6
|
+
{ id: 'green' as const, label: 'Green', primary: 'green' as const }
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
export const ALTAFUSION_BRAND_THEME = {
|
|
10
|
+
brands: ALTAFUSION_BRANDS,
|
|
11
|
+
cookieKey: 'altafusion:brand',
|
|
12
|
+
defaultBrandId: 'default' as const
|
|
13
|
+
} as const satisfies BrandThemeConfig<typeof ALTAFUSION_BRANDS>
|
|
14
|
+
|
|
15
|
+
export type BrandId = typeof ALTAFUSION_BRANDS[number]['id']
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* formatDate – a utility shared across product apps via the @altafusion/fugue-app-shell layer.
|
|
3
|
+
*
|
|
4
|
+
* Files placed in `packages-product/fugue-app-shell/utils/` are auto-imported by every app
|
|
5
|
+
* that extends this layer, just like composables.
|
|
6
|
+
*/
|
|
7
|
+
export function formatDate(
|
|
8
|
+
date: Date | string | number,
|
|
9
|
+
locale = 'en-US',
|
|
10
|
+
options: Intl.DateTimeFormatOptions = { dateStyle: 'medium' }
|
|
11
|
+
): string {
|
|
12
|
+
return new Intl.DateTimeFormat(locale, options).format(new Date(date))
|
|
13
|
+
}
|