This repository was archived by the owner on May 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ The development server will be running at [http://localhost:3000](http://localho
44
44
- [ ] Allow each guide to configure file filter
45
45
- [ ] Persist user changes when toggling solutions
46
46
- [ ] Verification for tutorial tasks
47
- - [ ] Search feature
47
+ - [x ] Search feature
48
48
- [x] Search in command palette
49
- - [ ] Search button
50
- - [ ] Navigation
49
+ - [x ] Search button
50
+ - [x ] Navigation
51
51
- [x] Dropdown for guide outlines
52
52
- [x] Breadcrumbs
53
53
- [x] Previous/Next buttons
Original file line number Diff line number Diff line change @@ -88,7 +88,10 @@ useEventListener('keydown', (e) => {
88
88
v-if =" commands.isShown"
89
89
fixed inset-0 z-index-command-palette flex =" ~ items-center justify-center"
90
90
>
91
- <div absolute inset-0 z--1 bg-black:75 />
91
+ <div
92
+ absolute inset-0 z--1 bg-black:75
93
+ @click =" commands.isShown = false"
94
+ />
92
95
<div
93
96
border =" ~ base rounded" h-100 w-200 of-hidden bg-base
94
97
grid =" ~ rows-[max-content_1fr]"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const ui = useUiState()
3
3
const play = usePlaygroundStore ()
4
4
const guide = useGuideStore ()
5
5
const runtime = useRuntimeConfig ()
6
+ const commands = useCommandsStore ()
6
7
7
8
const repo = ' https://github.com/nuxt/learn.nuxt.com'
8
9
const buildTime = new Date (runtime .public .buildTime )
@@ -44,6 +45,14 @@ addCommands(
44
45
flex =" ~ gap-1 items-center"
45
46
:class =" guide.embeddedDocs ? 'z-embedded-docs-raised' : ''"
46
47
>
48
+ <button
49
+ rounded p2
50
+ hover =" bg-active"
51
+ title =" Search"
52
+ @click =" commands.isShown = true"
53
+ >
54
+ <div i-ph-magnifying-glass-duotone text-2xl />
55
+ </button >
47
56
<button
48
57
v-if =" play.status === 'ready' && guide.features.download !== false"
49
58
rounded p2
You can’t perform that action at this time.
0 commit comments