simple-content-site 1.0.7 → 1.0.8

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.
@@ -12,7 +12,7 @@ const { localePath, isEnabled, locales } = useSiteI18n()
12
12
 
13
13
  <template>
14
14
  <UHeader
15
- :ui="{ center: 'flex-1' }"
15
+ :ui="{ center: header?.navigation && header.navigation.length > 0 ? '' : 'flex-1' }"
16
16
  :to="localePath('/')"
17
17
  :title="header?.title || appConfig.header?.title || site.name"
18
18
  >
@@ -1,12 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { useSiteHeader, twMerge } from '#imports'
2
+ import { useSiteHeader } from '#imports'
3
3
 
4
4
  const appConfig = useAppConfig()
5
5
  const { data: header } = await useSiteHeader()
6
-
7
- defineProps<{
8
- class?: string | string[]
9
- }>()
10
6
  </script>
11
7
 
12
8
  <template>
@@ -15,7 +11,7 @@ defineProps<{
15
11
  :light="header?.logo?.light || appConfig.header?.logo?.light || appConfig.header?.logo?.dark"
16
12
  :dark="(header?.logo?.dark || header?.logo?.light) || appConfig.header?.logo?.dark || appConfig.header?.logo?.light"
17
13
  :alt="header?.logo?.alt || appConfig.header?.logo?.alt || appConfig.header?.title"
18
- :class="twMerge('h-6 w-auto shrink-0', $props.class || '')"
14
+ :class="header?.logo?.class || []"
19
15
  />
20
16
  <span v-else>
21
17
  {{ header?.title || appConfig.header?.title || '{appConfig.header.title}' }}
@@ -21,7 +21,7 @@ export const useSiteI18n = () => {
21
21
  }
22
22
 
23
23
  const { locale, t } = useI18n()
24
- const filteredLocales = (config.docus as { filteredLocales: LocaleObject<string>[] })?.filteredLocales || []
24
+ const filteredLocales = (config.Site as { filteredLocales: LocaleObject<string>[] })?.filteredLocales || []
25
25
 
26
26
  return {
27
27
  isEnabled,
package/modules/config.ts CHANGED
@@ -68,11 +68,11 @@ export default defineNuxtModule({
68
68
  const hasContentFolder = existsSync(contentPath)
69
69
 
70
70
  if (!hasLocaleFile) {
71
- console.warn(`[Docus] Locale file not found: ${localeCode}.json - skipping locale "${localeCode}"`)
71
+ console.warn(`[Site] Locale file not found: ${localeCode}.json - skipping locale "${localeCode}"`)
72
72
  }
73
73
 
74
74
  if (!hasContentFolder) {
75
- console.warn(`[Docus] Content folder not found: content/${localeCode}/ - skipping locale "${localeCode}"`)
75
+ console.warn(`[Site] Content folder not found: content/${localeCode}/ - skipping locale "${localeCode}"`)
76
76
  }
77
77
 
78
78
  return hasLocaleFile && hasContentFolder
@@ -85,7 +85,7 @@ export default defineNuxtModule({
85
85
  }
86
86
 
87
87
  // Expose filtered locales
88
- nuxt.options.runtimeConfig.public.docus = {
88
+ nuxt.options.runtimeConfig.public.Site = {
89
89
  filteredLocales,
90
90
  }
91
91
 
package/modules/css.ts CHANGED
@@ -16,7 +16,7 @@ export default defineNuxtModule({
16
16
  const layerDir = resolver.resolve('../app')
17
17
 
18
18
  const cssTemplate = addTemplate({
19
- filename: 'docus.css',
19
+ filename: 'website.css',
20
20
  getContents: () => {
21
21
  return `@import ${JSON.stringify(tailwindPath)};
22
22
  @import ${JSON.stringify(uiPath)};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "simple-content-site",
3
3
  "description": "Nuxt layer for simple website with basic functions.",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
@@ -42,7 +42,6 @@
42
42
  "nuxt-studio": "^1.0.0-alpha.1",
43
43
  "pkg-types": "^2.3.0",
44
44
  "scule": "^1.3.0",
45
- "tailwind-merge": "^3.3.1",
46
45
  "tailwindcss": "^4.1.14",
47
46
  "ufo": "^1.6.1"
48
47
  },
@@ -1,6 +0,0 @@
1
- import type { ClassNameValue } from 'tailwind-merge'
2
- import { twMerge as _twMerge } from 'tailwind-merge'
3
-
4
- export const twMerge = (...classLists: ClassNameValue[]) => {
5
- return _twMerge(classLists)
6
- }