[fix] i love lucide

This commit is contained in:
Arjan Singh
2025-09-16 12:29:02 -07:00
committed by Arjan Singh
parent 8165ec3bf1
commit e8bc61475b
5 changed files with 20 additions and 15 deletions

View File

@@ -67,15 +67,15 @@
"
>
<span v-if="asset.stats.stars" class="flex items-center gap-1">
<i class="pi pi-star text-xs"></i>
<i-lucide:star class="size-3" />
{{ asset.stats.stars }}
</span>
<span v-if="asset.stats.downloadCount" class="flex items-center gap-1">
<i class="pi pi-download text-xs"></i>
<i-lucide:download class="size-3" />
{{ asset.stats.downloadCount }}
</span>
<span v-if="asset.stats.formattedDate" class="flex items-center gap-1">
<i class="pi pi-clock text-xs"></i>
<i-lucide:clock class="size-3" />
{{ asset.stats.formattedDate }}
</span>
</div>

View File

@@ -1,8 +1,6 @@
<template>
<div :class="containerClasses" data-component-id="asset-filter-bar">
<!-- Left Side Filters -->
<div :class="leftSideClasses" data-component-id="asset-filter-bar-left">
<!-- File Format MultiSelect -->
<MultiSelect
v-model="fileFormats"
label="File formats"
@@ -12,7 +10,6 @@
@update:model-value="handleFilterChange"
/>
<!-- Base Model MultiSelect -->
<MultiSelect
v-model="baseModels"
label="Base models"
@@ -23,9 +20,7 @@
/>
</div>
<!-- Right Side Sort -->
<div :class="rightSideClasses" data-component-id="asset-filter-bar-right">
<!-- Sort SingleSelect -->
<SingleSelect
v-model="sortBy"
label="Sort by"
@@ -35,7 +30,7 @@
@update:model-value="handleFilterChange"
>
<template #icon>
<i class="icon-[lucide--arrow-up-down] size-3" />
<i-lucide:arrow-up-down class="size-3" />
</template>
</SingleSelect>
</div>

View File

@@ -29,7 +29,7 @@
)
"
>
<i class="pi pi-search text-4xl mb-4"></i>
<i-lucide:search class="size-10 mb-4" />
<h3 class="text-lg font-medium mb-2">
{{ $t('assetBrowser.noAssetsFound') }}
</h3>
@@ -41,15 +41,15 @@
v-if="loading"
class="col-span-full flex items-center justify-center py-16"
>
<i
<i-lucide:loader
:class="
cn(
'pi pi-spinner pi-spin text-2xl',
'size-6 animate-spin',
'text-stone-300',
'dark-theme:text-stone-200'
)
"
></i>
/>
</div>
</div>
</template>

View File

@@ -100,13 +100,13 @@ export function useAssetBrowser(assets: AssetItem[] = []) {
})
return [
{ id: 'all', label: 'All Models', icon: 'i-lucide:folder' },
{ id: 'all', label: 'All Models', icon: 'icon-[lucide--folder]' },
...Array.from(categorySet)
.sort()
.map((category) => ({
id: category,
label: category.charAt(0).toUpperCase() + category.slice(1),
icon: 'i-lucide:package'
icon: 'icon-[lucide--package]'
}))
]
})

View File

@@ -6,6 +6,16 @@ import { iconCollection } from './build/customIconCollection'
export default {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
safelist: [
'icon-[lucide--folder]',
'icon-[lucide--package]',
'icon-[lucide--image]',
'icon-[lucide--video]',
'icon-[lucide--box]',
'icon-[lucide--audio-waveform]',
'icon-[lucide--message-circle]'
],
plugins: [
addDynamicIconSelectors({
iconSets: {