diff --git a/components/awesome/AlertBanner.vue b/components/awesome/AlertBanner.vue
index b2ecc73..9df6bba 100644
--- a/components/awesome/AlertBanner.vue
+++ b/components/awesome/AlertBanner.vue
@@ -24,11 +24,11 @@ const styles = reactive<{
}>({
primary: '',
success:
- 'dark:from-green-500/50 via-gray-200 to-gray-200 dark:via-gray-800 dark:to-gray-800',
+ 'dark:from-green-500/50 via-gray-200 to-gray-200 dark:via-gray-900 dark:to-gray-900',
warning:
- 'dark:from-yellow-500/50 via-gray-200 to-gray-200 dark:via-gray-800 dark:to-gray-800',
+ 'dark:from-yellow-500/50 via-gray-200 to-gray-200 dark:via-gray-900 dark:to-gray-900',
danger:
- 'dark:from-red-500/50 via-gray-200 to-gray-200 dark:via-gray-800 dark:to-gray-800',
+ 'dark:from-red-500/50 via-gray-200 to-gray-200 dark:via-gray-900 dark:to-gray-900',
})
const textStyles = reactive<{
[key: string]: string
@@ -67,7 +67,7 @@ const close = () => {
leave-to="opacity-0"
>
diff --git a/components/awesome/Card/Footer.vue b/components/awesome/Card/Footer.vue
index 544cd7a..ed0e3b6 100644
--- a/components/awesome/Card/Footer.vue
+++ b/components/awesome/Card/Footer.vue
@@ -1,6 +1,6 @@
diff --git a/components/awesome/Card/index.vue b/components/awesome/Card/index.vue
index 451ffd1..b133b5f 100644
--- a/components/awesome/Card/index.vue
+++ b/components/awesome/Card/index.vue
@@ -9,11 +9,11 @@ defineProps({
diff --git a/components/layouts/Page/Navbar.vue b/components/layouts/Page/Navbar.vue
index 45d1c84..728ee3e 100644
--- a/components/layouts/Page/Navbar.vue
+++ b/components/layouts/Page/Navbar.vue
@@ -3,11 +3,18 @@ import { RouteLocationRaw } from 'vue-router'
const { awesome } = useAppConfig()
const $screen = useAwesomeScreen()
+const nuxtApp = useNuxtApp()
const menus = computed(() => awesome?.layout?.page?.navbar?.menus || [])
// drawer
const showDrawer = ref(false)
+
+const parseMenuTitle = (title?: string | ((nuxt: any) => string)) =>
+ typeof title === 'function' ? title(nuxtApp) : title || ''
+const parseMenuRoute = (
+ to: RouteLocationRaw | ((nuxt: any) => RouteLocationRaw)
+) => (typeof to === 'function' ? to(nuxtApp) : to)
@@ -40,22 +47,22 @@ const showDrawer = ref(false)
-
+
{{ item?.title || '' }}{{ parseMenuTitle(item?.title) }}
@@ -112,7 +119,7 @@ const showDrawer = ref(false)
@@ -121,16 +128,16 @@ const showDrawer = ref(false)
'text-gray-900 dark:text-gray-100 font-bold': isActive,
'text-gray-700 dark:text-gray-300': !isActive,
}"
- >{{ item?.title || '' }}{{ parseMenuTitle(item?.title) }}