@feathersdev/websites 0.0.2 → 0.0.4
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.
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
const
|
|
3
|
-
/** Array of Nuxt Content collection names to search. If not provided, auto-detects from route. */
|
|
4
|
-
collections?: string[]
|
|
5
|
-
/** Display name for the search (e.g., "Feathers Docs"). If not provided, auto-generates. */
|
|
6
|
-
searchLabel?: string
|
|
7
|
-
/** Array of doc paths to show as popular/featured when search is empty */
|
|
8
|
-
popularPaths?: string[]
|
|
9
|
-
}>()
|
|
10
|
-
|
|
11
|
-
const { isSearchOpen, openSearch } = useGlobalSearch()
|
|
2
|
+
const { openSearch } = useGlobalSearch()
|
|
12
3
|
|
|
13
4
|
const isMac = computed(() => {
|
|
14
5
|
if (import.meta.server) return false
|
|
@@ -28,13 +19,5 @@ const isMac = computed(() => {
|
|
|
28
19
|
<Text class="grow text-left">Search docs...</Text>
|
|
29
20
|
<Kbd sm class="hidden sm:inline-flex">{{ isMac ? '⌘' : 'Ctrl' }}k</Kbd>
|
|
30
21
|
</Button>
|
|
31
|
-
|
|
32
|
-
<!-- Search Modal -->
|
|
33
|
-
<DocsSearchModal
|
|
34
|
-
v-model="isSearchOpen"
|
|
35
|
-
:collections="props.collections"
|
|
36
|
-
:search-label="props.searchLabel"
|
|
37
|
-
:popular-paths="props.popularPaths"
|
|
38
|
-
/>
|
|
39
22
|
</div>
|
|
40
23
|
</template>
|