@@ -5,10 +5,10 @@ const projects = [
5
5
]
6
6
const recent = [projects [0 ]]
7
7
const quickActions = [
8
- { name: ' Add new file...' , icon: ' i-heroicons-document-plus' , shortcut: ' N' , url: ' #' },
9
- { name: ' Add new folder...' , icon: ' i-heroicons-folder-plus' , shortcut: ' F' , url: ' #' },
10
- { name: ' Add hashtag...' , icon: ' i-heroicons-hashtag' , shortcut: ' H' , url: ' #' },
11
- { name: ' Add label...' , icon: ' i-heroicons-tag' , shortcut: ' L' , url: ' #' },
8
+ { name: ' Add new file...' , icon: ' i-heroicons-outline- document-plus' , shortcut: ' N' , url: ' #' },
9
+ { name: ' Add new folder...' , icon: ' i-heroicons-outline- folder-plus' , shortcut: ' F' , url: ' #' },
10
+ { name: ' Add hashtag...' , icon: ' i-heroicons-outline- hashtag' , shortcut: ' H' , url: ' #' },
11
+ { name: ' Add label...' , icon: ' i-heroicons-outline- tag' , shortcut: ' L' , url: ' #' },
12
12
]
13
13
14
14
const open = ref (true )
@@ -91,36 +91,29 @@ function onSelect(item: any) {
91
91
</h2 >
92
92
<ul class =" text-sm text-gray-700" >
93
93
<!-- Active: "bg-indigo-600 text-white" -->
94
- <li class =" group flex cursor-default select-none items-center rounded-md px-3 py-2" >
94
+ <li
95
+ v-for =" (action, key) in quickActions"
96
+ :key =" key"
97
+ class =" group flex cursor-default select-none items-center rounded-md px-3 py-2"
98
+ >
95
99
<!-- Active: "text-white", Not Active: "text-gray-400" -->
96
- <i class =" i-heroicons-outline-document-plus h-6 w-6 flex-none text-gray-400" />
100
+ <i
101
+ class =" h-6 w-6 flex-none text-gray-400"
102
+ :class =" action.icon"
103
+ />
97
104
<span class =" ml-3 flex-auto truncate" >Add new file...</span >
98
105
<!-- Active: "text-indigo-100", Not Active: "text-gray-400" -->
99
- <span class =" ml-3 flex-none text-xs font-semibold text-gray-400" ><kbd class =" font-sans" >⌘</kbd ><kbd class =" font-sans" >N</kbd ></span >
100
- </li >
101
- <li class =" group flex cursor-default select-none items-center rounded-md px-3 py-2" >
102
- <i class =" i-heroicons-outline-folder-plus h-6 w-6 flex-none text-gray-400" />
103
- <span class =" ml-3 flex-auto truncate" >Add new folder...</span >
104
- <span class =" ml-3 flex-none text-xs font-semibold text-gray-400" ><kbd class =" font-sans" >⌘</kbd ><kbd class =" font-sans" >F</kbd ></span >
105
- </li >
106
- <li class =" group flex cursor-default select-none items-center rounded-md px-3 py-2" >
107
- <!-- Heroicon name: outline/hashtag -->
108
- <i class =" i-heroicons-outline-hashtag h-6 w-6 flex-none text-gray-400" />
109
- <span class =" ml-3 flex-auto truncate" >Add hashtag...</span >
110
- <span class =" ml-3 flex-none text-xs font-semibold text-gray-400" ><kbd class =" font-sans" >⌘</kbd ><kbd class =" font-sans" >H</kbd ></span >
111
- </li >
112
- <li class =" group flex cursor-default select-none items-center rounded-md px-3 py-2" >
113
- <!-- Heroicon name: outline/tag -->
114
- <i class =" i-heroicons-outline-tag h-6 w-6 flex-none text-gray-400" />
115
- <span class =" ml-3 flex-auto truncate" >Add label...</span >
116
- <span class =" ml-3 flex-none text-xs font-semibold text-gray-400" ><kbd class =" font-sans" >⌘</kbd ><kbd class =" font-sans" >L</kbd ></span >
106
+ <span class =" ml-3 flex-none text-xs font-semibold text-gray-400" ><kbd class =" font-sans" >⌘</kbd ><kbd class =" font-sans" >{{ action.shortcut }}</kbd ></span >
117
107
</li >
118
108
</ul >
119
109
</li >
120
110
</ul >
121
111
122
112
<!-- Results, show/hide based on command palette state. -->
123
- <ul class =" max-h-96 overflow-y-auto p-2 text-sm text-gray-700" >
113
+ <ul
114
+ v-if =" false"
115
+ class =" max-h-96 overflow-y-auto p-2 text-sm text-gray-700"
116
+ >
124
117
<!-- Active: "bg-indigo-600 text-white" -->
125
118
<li class =" group flex cursor-default select-none items-center rounded-md px-3 py-2" >
126
119
<!-- Active: "text-white", Not Active: "text-gray-400" -->
@@ -132,7 +125,10 @@ function onSelect(item: any) {
132
125
</ul >
133
126
134
127
<!-- Empty state, show/hide based on command palette state. -->
135
- <div class =" py-14 px-6 text-center sm:px-14" >
128
+ <div
129
+ v-if =" false"
130
+ class =" py-14 px-6 text-center sm:px-14"
131
+ >
136
132
<i class =" i-heroicons-outline-folder mx-auto h-6 w-6 text-gray-400" />
137
133
<p class =" mt-4 text-sm text-gray-900" >
138
134
We couldn't find any projects with that term. Please try again.
0 commit comments