Skip to content

Commit 4968468

Browse files
committed
refactor: properly ensure cmd palette icons are included
1 parent 2667fda commit 4968468

File tree

4 files changed

+3
-32
lines changed

4 files changed

+3
-32
lines changed

app/composables/useCommandPaletteGlobalCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @unocss-include
12
import type { CommandPaletteCommand } from '~/types/command-palette'
23
import {
34
DISCORD_BUILDERS_URL,

app/composables/useCommandPalettePackageCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @unocss-include
12
import type { MaybeRefOrGetter } from 'vue'
23
import type {
34
CommandPaletteContextCommandInput,

app/composables/useCommandPaletteVersionCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @unocss-include
12
import type { MaybeRefOrGetter } from 'vue'
23
import type {
34
CommandPaletteCommand,

uno.config.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,7 @@ const customIcons = {
2121
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="6" r="1"/><path d="m9 18 3-5 3 5"/><path d="m8 10 8 0"/><path d="M12 10v4"/></svg>',
2222
}
2323

24-
const commandPaletteIconClasses = [
25-
'i-lucide:search',
26-
'i-lucide:command',
27-
'i-lucide:calendar-days',
28-
'i-lucide:house',
29-
'i-lucide:git-compare',
30-
'i-lucide:settings',
31-
'i-lucide:info',
32-
'i-lucide:notebook-pen',
33-
'i-lucide:shield-check',
34-
'i-custom:a11y',
35-
'i-lucide:terminal',
36-
'i-lucide:at-sign',
37-
'i-lucide:file-text',
38-
'i-simple-icons:github',
39-
'i-simple-icons:bluesky',
40-
'i-lucide:message-circle',
41-
'i-lucide:monitor',
42-
'i-lucide:sun',
43-
'i-lucide:moon',
44-
'i-lucide:palette',
45-
'i-lucide:swatch-book',
46-
'i-lucide:boxes',
47-
'i-lucide:users',
48-
'i-lucide:user',
49-
'i-lucide:package',
50-
'i-lucide:code',
51-
'i-lucide:tag',
52-
]
53-
5424
export default defineConfig({
55-
// XXX(serhalp): Fix this properly before merging PR. Temporary solution.
56-
safelist: commandPaletteIconClasses,
5725
presets: [
5826
presetWind4(),
5927
presetIcons({

0 commit comments

Comments
 (0)